aboutsummaryrefslogtreecommitdiff
path: root/content/resources/viz.js/convert.js
blob: 0a4cf1f5aa2f6de3427c0f7b747d8d1bde54e175 (plain)
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
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
// Generated by js_of_ocaml 3.9.1
(function(d){"use strict";var
db="%Li",dc=" : flags Open_text and Open_binary are not compatible",dT="Invalid_argument",dS="@[",bY=1255,dH=", characters ",ds=255,dt=0x800,V=0xffff,bf="jsError",U=0x8000,dR="%ni",dG=12520,dr=256,dF="(Program not linked with -g, cannot print stack backtrace)\n",dq="End_of_file",bV=0.1,dp="Failure",dE="infinity",ad=0xff,aV=1000,da="Stack_overflow",f="",b0="^",G="0",c$=-97,aC=0x3f,c_="Not_found",bX=0xf,aX=128,dm=-48,dn=0xdc00,dP="Sys_blocked_io",dQ="fd ",dD="Match_failure",v=248,c9="static/",s="camlinternalFormat.ml",dl="Division_by_zero",bg=252,dO=1027,dk="Sys_error",ao=".",aB="+",dC=0xf0,dN="%u",bW="%d",b4=2147483000.,c8=1026,dB="%li",dj="buffer.ml",dA=-32,b3=127,aW=1024,dM="@{",aa=" ",Q=0x80,b2="e",c7="Undefined_recursive_module",dh=120,di=103,dL=" : flags Open_rdonly and Open_wronly are not compatible",dK="([^/]*)",dg=512,ap="-",dz="Lwt.%s",bZ="nan",df=0x7ff0,dy="Lwt.",dx=0xe0,dJ=" : file already exists",dw=0xdfff,ac=0xffffff,bU="compare: functional value",dv="Assert_failure",ab="/",de="0x",c6="%i",dI="Out_of_memory",be=254,b1="index out of bounds",dd=100,du=250,bh="_bigarr02";function
cf(c,b,a){var
d=String.fromCharCode;if(b==0&&a<=4096&&a==c.length)return d.apply(null,c);var
e=f;for(;0<a;b+=aW,a-=aW)e+=d.apply(null,c.slice(b,b+Math.min(a,aW)));return e}function
bk(b){if(d.Uint8Array)var
c=new(d.Uint8Array)(b.l);else
var
c=new
Array(b.l);var
f=b.c,e=f.length,a=0;for(;a<e;a++)c[a]=f.charCodeAt(a);for(e=b.l;a<e;a++)c[a]=0;b.c=c;b.t=4;return c}function
ak(d,e,b,f,c){if(c==0)return 0;if(f==0&&(c>=b.l||b.t==2&&c>=b.c.length)){b.c=d.t==4?cf(d.c,e,c):e==0&&d.c.length==c?d.c:d.c.substr(e,c);b.t=b.c.length==b.l?0:2}else
if(b.t==2&&f==b.c.length){b.c+=d.t==4?cf(d.c,e,c):e==0&&d.c.length==c?d.c:d.c.substr(e,c);b.t=b.c.length==b.l?0:2}else{if(b.t!=4)bk(b);var
g=d.c,h=b.c;if(d.t==4)if(f<=e)for(var
a=0;a<c;a++)h[f+a]=g[e+a];else
for(var
a=c-1;a>=0;a--)h[f+a]=g[e+a];else{var
i=Math.min(c,g.length-e);for(var
a=0;a<i;a++)h[f+a]=g.charCodeAt(e+a);for(;a<c;a++)h[f+a]=0}}return 0}function
ar(a){return a}function
aq(a,b,c,d,e){ak(ar(a),b,c,d,e);return 0}function
ip(b,a){throw[0,b,a]}function
aH(b,a){if(b==0)return f;if(a.repeat)return a.repeat(b);var
d=f,c=0;for(;;){if(b&1)d+=a;b>>=1;if(b==0)return d;a+=a;c++;if(c==9)a.slice(0,1)}}function
bl(a){if(a.t==2)a.c+=aH(a.l-a.c.length,"\0");else
a.c=cf(a.c,0,a.c.length);a.t=0}function
ej(a){if(a.length<24){for(var
b=0;b<a.length;b++)if(a.charCodeAt(b)>b3)return false;return true}else
return!/[^\x00-\x7f]/.test(a)}function
cg(e){for(var
k=f,c=f,h,g,i,a,b=0,j=e.length;b<j;b++){g=e.charCodeAt(b);if(g<Q){for(var
d=b+1;d<j&&(g=e.charCodeAt(d))<Q;d++);if(d-b>dg){c.substr(0,1);k+=c;c=f;k+=e.slice(b,d)}else
c+=e.slice(b,d);if(d==j)break;b=d}a=1;if(++b<j&&((i=e.charCodeAt(b))&-64)==aX){h=i+(g<<6);if(g<dx){a=h-0x3080;if(a<Q)a=1}else{a=2;if(++b<j&&((i=e.charCodeAt(b))&-64)==aX){h=i+(h<<6);if(g<dC){a=h-0xe2080;if(a<dt||a>=0xd7ff&&a<0xe000)a=2}else{a=3;if(++b<j&&((i=e.charCodeAt(b))&-64)==aX&&g<0xf5){a=i-0x3c82080+(h<<6);if(a<0x10000||a>0x10ffff)a=3}}}}}if(a<4){b-=a;c+="\ufffd"}else
if(a>V)c+=String.fromCharCode(0xd7c0+(a>>10),dn+(a&0x3FF));else
c+=String.fromCharCode(a);if(c.length>aW){c.substr(0,1);k+=c;c=f}}return k+c}function
ae(c,a,b){this.t=c;this.c=a;this.l=b}ae.prototype.toString=function(){switch(this.t){case
9:return this.c;default:bl(this);case
0:if(ej(this.c)){this.t=9;return this.c}this.t=8;case
8:return this.c}};ae.prototype.toUtf16=function(){var
a=this.toString();if(this.t==9)return a;return cg(a)};ae.prototype.slice=function(){var
a=this.t==4?this.c.slice():this.c;return new
ae(this.t,a,this.l)};function
d3(a){return new
ae(0,a,a.length)}function
a(a){return d3(a)}function
ce(c,b){ip(c,a(b))}var
o=[0];function
q(a){ce(o.Invalid_argument,a)}function
d1(){q(b1)}function
n(a,c,b){b&=ad;if(a.t!=4){if(c==a.c.length){a.c+=String.fromCharCode(b);if(c+1==a.l)a.t=0;return 0}bk(a)}a.c[c]=b;return 0}function
as(b,a,c){if(a>>>0>=b.l)d1();return n(b,a,c)}function
aY(a,b){switch(a.t&6){default:if(b>=a.c.length)return 0;case
0:return a.c.charCodeAt(b);case
4:return a.c[b]}}function
N(c,a){if(c.fun)return N(c.fun,a);if(typeof
c!=="function")return c;var
b=c.length|0;if(b===0)return c.apply(null,a);var
e=a.length|0,d=b-e|0;if(d==0)return c.apply(null,a);else
if(d<0)return N(c.apply(null,a.slice(0,b)),a.slice(b));else
return function(){var
e=arguments.length==0?1:arguments.length,d=new
Array(a.length+e);for(var
b=0;b<a.length;b++)d[b]=a[b];for(var
b=0;b<arguments.length;b++)d[a.length+b]=arguments[b];return N(c,d)}}function
bi(){q(b1)}function
hP(a,b){if(b>>>0>=a.length-1)bi();return a}function
hQ(a){if(isFinite(a)){if(Math.abs(a)>=2.2250738585072014e-308)return 0;if(a!=0)return 1;return 2}return isNaN(a)?4:3}function
ag(a){if((a.t&6)!=0)bl(a);return a.c}var
iB=Math.log2&&Math.log2(1.1235582092889474E+307)==1020;function
iA(a){if(iB)return Math.floor(Math.log2(a));var
b=0;if(a==0)return-Infinity;if(a>=1)while(a>=2){a/=2;b++}else
while(a<1){a*=2;b--}return b}function
b9(c){var
a=new(d.Float32Array)(1);a[0]=c;var
b=new(d.Int32Array)(a.buffer);return b[0]|0}var
d_=Math.pow(2,-24);function
im(a){throw a}function
eg(){im(o.Division_by_zero)}function
c(b,c,a){this.lo=b&ac;this.mi=c&ac;this.hi=a&V}c.prototype.caml_custom="_j";c.prototype.copy=function(){return new
c(this.lo,this.mi,this.hi)};c.prototype.ucompare=function(a){if(this.hi>a.hi)return 1;if(this.hi<a.hi)return-1;if(this.mi>a.mi)return 1;if(this.mi<a.mi)return-1;if(this.lo>a.lo)return 1;if(this.lo<a.lo)return-1;return 0};c.prototype.compare=function(a){var
b=this.hi<<16,c=a.hi<<16;if(b>c)return 1;if(b<c)return-1;if(this.mi>a.mi)return 1;if(this.mi<a.mi)return-1;if(this.lo>a.lo)return 1;if(this.lo<a.lo)return-1;return 0};c.prototype.neg=function(){var
a=-this.lo,b=-this.mi+(a>>24),d=-this.hi+(b>>24);return new
c(a,b,d)};c.prototype.add=function(a){var
b=this.lo+a.lo,d=this.mi+a.mi+(b>>24),e=this.hi+a.hi+(d>>24);return new
c(b,d,e)};c.prototype.sub=function(a){var
b=this.lo-a.lo,d=this.mi-a.mi+(b>>24),e=this.hi-a.hi+(d>>24);return new
c(b,d,e)};c.prototype.mul=function(a){var
b=this.lo*a.lo,d=(b*d_|0)+this.mi*a.lo+this.lo*a.mi,e=(d*d_|0)+this.hi*a.lo+this.mi*a.mi+this.lo*a.hi;return new
c(b,d,e)};c.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0};c.prototype.isNeg=function(){return this.hi<<16<0};c.prototype.and=function(a){return new
c(this.lo&a.lo,this.mi&a.mi,this.hi&a.hi)};c.prototype.or=function(a){return new
c(this.lo|a.lo,this.mi|a.mi,this.hi|a.hi)};c.prototype.xor=function(a){return new
c(this.lo^a.lo,this.mi^a.mi,this.hi^a.hi)};c.prototype.shift_left=function(a){a=a&63;if(a==0)return this;if(a<24)return new
c(this.lo<<a,this.mi<<a|this.lo>>24-a,this.hi<<a|this.mi>>24-a);if(a<48)return new
c(0,this.lo<<a-24,this.mi<<a-24|this.lo>>48-a);return new
c(0,0,this.lo<<a-48)};c.prototype.shift_right_unsigned=function(a){a=a&63;if(a==0)return this;if(a<24)return new
c(this.lo>>a|this.mi<<24-a,this.mi>>a|this.hi<<24-a,this.hi>>a);if(a<48)return new
c(this.mi>>a-24|this.hi<<48-a,this.hi>>a-24,0);return new
c(this.hi>>a-48,0,0)};c.prototype.shift_right=function(a){a=a&63;if(a==0)return this;var
d=this.hi<<16>>16;if(a<24)return new
c(this.lo>>a|this.mi<<24-a,this.mi>>a|d<<24-a,this.hi<<16>>a>>>16);var
b=this.hi<<16>>31;if(a<48)return new
c(this.mi>>a-24|this.hi<<48-a,this.hi<<16>>a-24>>16,b&V);return new
c(this.hi<<16>>a-32,b,b)};c.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23;this.mi=(this.mi<<1|this.lo>>23)&ac;this.lo=this.lo<<1&ac};c.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&ac;this.mi=(this.mi>>>1|this.hi<<23)&ac;this.hi=this.hi>>>1};c.prototype.udivmod=function(f){var
d=0,b=this.copy(),a=f.copy(),e=new
c(0,0,0);while(b.ucompare(a)>0){d++;a.lsl1()}while(d>=0){d--;e.lsl1();if(b.ucompare(a)>=0){e.lo++;b=b.sub(a)}a.lsr1()}return{quotient:e,modulus:b}};c.prototype.div=function(a){var
b=this;if(a.isZero())eg();var
d=b.hi^a.hi;if(b.hi&U)b=b.neg();if(a.hi&U)a=a.neg();var
c=b.udivmod(a).quotient;if(d&U)c=c.neg();return c};c.prototype.mod=function(b){var
a=this;if(b.isZero())eg();var
d=a.hi;if(a.hi&U)a=a.neg();if(b.hi&U)b=b.neg();var
c=a.udivmod(b).modulus;if(d&U)c=c.neg();return c};c.prototype.toInt=function(){return this.lo|this.mi<<24};c.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo};c.prototype.toArray=function(){return[this.hi>>8,this.hi&ad,this.mi>>16,this.mi>>8&ad,this.mi&ad,this.lo>>16,this.lo>>8&ad,this.lo&ad]};c.prototype.lo32=function(){return this.lo|(this.mi&ad)<<24};c.prototype.hi32=function(){return this.mi>>>8&V|this.hi<<16};function
bo(b,d,a){return new
c(b,d,a)}function
bn(a){if(!isFinite(a)){if(isNaN(a))return bo(1,0,df);return a>0?bo(0,0,df):bo(0,0,0xfff0)}var
f=a==0&&1/a==-Infinity?U:a>=0?0:U;if(f)a=-a;var
b=iA(a)+1023;if(b<=0){b=0;a/=Math.pow(2,-c8)}else{a/=Math.pow(2,b-dO);if(a<16){a*=2;b-=1}if(b==0)a/=2}var
d=Math.pow(2,24),c=a|0;a=(a-c)*d;var
e=a|0;a=(a-e)*d;var
g=a|0;c=c&bX|f|b<<4;return bo(g,e,c)}function
a1(a){return a.toArray()}function
d0(c,b,g){c.write(32,b.dims.length);c.write(32,b.kind|b.layout<<8);if(b.caml_custom==bh)for(var
a=0;a<b.dims.length;a++)if(b.dims[a]<V)c.write(16,b.dims[a]);else{c.write(16,V);c.write(32,0);c.write(32,b.dims[a])}else
for(var
a=0;a<b.dims.length;a++)c.write(32,b.dims[a]);switch(b.kind){case
2:case
3:case
12:for(var
a=0;a<b.data.length;a++)c.write(8,b.data[a]);break;case
4:case
5:for(var
a=0;a<b.data.length;a++)c.write(16,b.data[a]);break;case
6:for(var
a=0;a<b.data.length;a++)c.write(32,b.data[a]);break;case
8:case
9:c.write(8,0);for(var
a=0;a<b.data.length;a++)c.write(32,b.data[a]);break;case
7:for(var
a=0;a<b.data.length/2;a++){var
e=a1(b.get(a));for(var
d=0;d<8;d++)c.write(8,e[d])}break;case
1:for(var
a=0;a<b.data.length;a++){var
e=a1(bn(b.get(a)));for(var
d=0;d<8;d++)c.write(8,e[d])}break;case
0:for(var
a=0;a<b.data.length;a++){var
e=b9(b.get(a));c.write(32,e)}break;case
10:for(var
a=0;a<b.data.length/2;a++){var
d=b.get(a);c.write(32,b9(d[1]));c.write(32,b9(d[2]))}break;case
11:for(var
a=0;a<b.data.length/2;a++){var
f=b.get(a),e=a1(bn(f[1]));for(var
d=0;d<8;d++)c.write(8,e[d]);var
e=a1(bn(f[2]));for(var
d=0;d<8;d++)c.write(8,e[d])}break}g[0]=(4+b.dims.length)*4;g[1]=(4+b.dims.length)*8}function
dY(a){switch(a){case
7:case
10:case
11:return 2;default:return 1}}function
hK(c,f){var
b=d,a;switch(c){case
0:a=b.Float32Array;break;case
1:a=b.Float64Array;break;case
2:a=b.Int8Array;break;case
3:a=b.Uint8Array;break;case
4:a=b.Int16Array;break;case
5:a=b.Uint16Array;break;case
6:a=b.Int32Array;break;case
7:a=b.Int32Array;break;case
8:a=b.Int32Array;break;case
9:a=b.Int32Array;break;case
10:a=b.Float32Array;break;case
11:a=b.Float64Array;break;case
12:a=b.Uint8Array;break}if(!a)q("Bigarray.create: unsupported kind");var
e=new
a(f*dY(c));return e}function
b_(c){var
a=new(d.Int32Array)(1);a[0]=c;var
b=new(d.Float32Array)(a.buffer);return b[0]}function
a0(a){return new
c(a[7]<<0|a[6]<<8|a[5]<<16,a[4]<<0|a[3]<<8|a[2]<<16,a[1]<<0|a[0]<<8)}function
b$(d){var
f=d.lo,g=d.mi,b=d.hi,c=(b&0x7fff)>>4;if(c==2047)return(f|g|b&bX)==0?b&U?-Infinity:Infinity:NaN;var
e=Math.pow(2,-24),a=(f*e+g)*e+(b&bX);if(c>0){a+=16;a*=Math.pow(2,c-dO)}else
a*=Math.pow(2,-c8);if(b&U)a=-a;return a}function
b5(b){var
d=b.length,c=1;for(var
a=0;a<d;a++){if(b[a]<0)q("Bigarray.create: negative dimension");c=c*b[a]}return c}function
h0(b,a){return new
c(b&ac,b>>>24&ad|(a&V)<<8,a>>>16&V)}function
ca(a){return a.hi32()}function
cb(a){return a.lo32()}var
hL=bh;function
aj(c,d,b,a){this.kind=c;this.layout=d;this.dims=b;this.data=a}aj.prototype.caml_custom=hL;aj.prototype.offset=function(b){var
c=0;if(typeof
b==="number")b=[b];if(!(b
instanceof
Array))q("bigarray.js: invalid offset");if(this.dims.length!=b.length)q("Bigarray.get/set: bad number of dimensions");if(this.layout==0)for(var
a=0;a<this.dims.length;a++){if(b[a]<0||b[a]>=this.dims[a])bi();c=c*this.dims[a]+b[a]}else
for(var
a=this.dims.length-1;a>=0;a--){if(b[a]<1||b[a]>this.dims[a])bi();c=c*this.dims[a]+(b[a]-1)}return c};aj.prototype.get=function(a){switch(this.kind){case
7:var
d=this.data[a*2+0],b=this.data[a*2+1];return h0(d,b);case
10:case
11:var
e=this.data[a*2+0],c=this.data[a*2+1];return[be,e,c];default:return this.data[a]}};aj.prototype.set=function(a,b){switch(this.kind){case
7:this.data[a*2+0]=cb(b);this.data[a*2+1]=ca(b);break;case
10:case
11:this.data[a*2+0]=b[1];this.data[a*2+1]=b[2];break;default:this.data[a]=b;break}return 0};aj.prototype.fill=function(b){switch(this.kind){case
7:var
c=cb(b),e=ca(b);if(c==e)this.data.fill(c);else
for(var
a=0;a<this.data.length;a++)this.data[a]=a%2==0?c:e;break;case
10:case
11:var
d=b[1],f=b[2];if(d==f)this.data.fill(d);else
for(var
a=0;a<this.data.length;a++)this.data[a]=a%2==0?d:f;break;default:this.data.fill(b);break}};aj.prototype.compare=function(b,g){if(this.layout!=b.layout||this.kind!=b.kind){var
e=this.kind|this.layout<<8,f=b.kind|b.layout<<8;return f-e}if(this.dims.length!=b.dims.length)return b.dims.length-this.dims.length;for(var
a=0;a<this.dims.length;a++)if(this.dims[a]!=b.dims[a])return this.dims[a]<b.dims[a]?-1:1;switch(this.kind){case
0:case
1:case
10:case
11:var
c,d;for(var
a=0;a<this.data.length;a++){c=this.data[a];d=b.data[a];if(c<d)return-1;if(c>d)return 1;if(c!=d){if(!g)return NaN;if(c==c)return 1;if(d==d)return-1}}break;case
7:for(var
a=0;a<this.data.length;a+=2){if(this.data[a+1]<b.data[a+1])return-1;if(this.data[a+1]>b.data[a+1])return 1;if(this.data[a]>>>0<b.data[a]>>>0)return-1;if(this.data[a]>>>0>b.data[a]>>>0)return 1}break;case
2:case
3:case
4:case
5:case
6:case
8:case
9:case
12:for(var
a=0;a<this.data.length;a++){if(this.data[a]<b.data[a])return-1;if(this.data[a]>b.data[a])return 1}break}return 0};function
aD(c,d,b,a){this.kind=c;this.layout=d;this.dims=b;this.data=a}aD.prototype=new
aj();aD.prototype.offset=function(a){if(typeof
a!=="number")if(a
instanceof
Array&&a.length==1)a=a[0];else
q("Ml_Bigarray_c_1_1.offset");if(a<0||a>=this.dims[0])bi();return a};aD.prototype.get=function(a){return this.data[a]};aD.prototype.set=function(a,b){this.data[a]=b;return 0};aD.prototype.fill=function(a){this.data.fill(a);return 0};function
dW(c,d,a,b){var
e=dY(c);if(b5(a)*e!=b.length)q("length doesn't match dims");if(d==0&&a.length==1&&e==1)return new
aD(c,d,a,b);return new
aj(c,d,a,b)}function
aE(a){ce(o.Failure,a)}function
dX(b,v,r){var
i=b.read32s();if(i<0||i>16)aE("input_value: wrong number of bigarray dimensions");var
p=b.read32s(),j=p&ad,o=p>>8&1,h=[];if(r==bh)for(var
a=0;a<i;a++){var
n=b.read16u();if(n==V){var
t=b.read32u(),u=b.read32u();if(t!=0)aE("input_value: bigarray dimension overflow in 32bit");n=u}h.push(n)}else
for(var
a=0;a<i;a++)h.push(b.read32u());var
d=b5(h),f=hK(j,d),g=dW(j,o,h,f);switch(j){case
2:for(var
a=0;a<d;a++)f[a]=b.read8s();break;case
3:case
12:for(var
a=0;a<d;a++)f[a]=b.read8u();break;case
4:for(var
a=0;a<d;a++)f[a]=b.read16s();break;case
5:for(var
a=0;a<d;a++)f[a]=b.read16u();break;case
6:for(var
a=0;a<d;a++)f[a]=b.read32s();break;case
8:case
9:var
s=b.read8u();if(s)aE("input_value: cannot read bigarray with 64-bit OCaml ints");for(var
a=0;a<d;a++)f[a]=b.read32s();break;case
7:var
e=new
Array(8);for(var
a=0;a<d;a++){for(var
c=0;c<8;c++)e[c]=b.read8u();var
q=a0(e);g.set(a,q)}break;case
1:var
e=new
Array(8);for(var
a=0;a<d;a++){for(var
c=0;c<8;c++)e[c]=b.read8u();var
k=b$(a0(e));g.set(a,k)}break;case
0:for(var
a=0;a<d;a++){var
k=b_(b.read32s());g.set(a,k)}break;case
10:for(var
a=0;a<d;a++){var
m=b_(b.read32s()),l=b_(b.read32s());g.set(a,[be,m,l])}break;case
11:var
e=new
Array(8);for(var
a=0;a<d;a++){for(var
c=0;c<8;c++)e[c]=b.read8u();var
m=b$(a0(e));for(var
c=0;c<8;c++)e[c]=b.read8u();var
l=b$(a0(e));g.set(a,[be,m,l])}break}v[0]=(4+i)*4;return dW(j,o,h,f)}function
dV(a,b,c){return a.compare(b,c)}function
aF(a,b){return Math.imul(a,b)}function
af(b,a){a=aF(a,0xcc9e2d51|0);a=a<<15|a>>>32-15;a=aF(a,0x1b873593);b^=a;b=b<<13|b>>>32-13;return(b+(b<<2)|0)+(0xe6546b64|0)|0}function
hW(a,b){a=af(a,cb(b));a=af(a,ca(b));return a}function
d9(a,b){return hW(a,bn(b))}function
dZ(c){var
b=b5(c.dims),d=0;switch(c.kind){case
2:case
3:case
12:if(b>dr)b=dr;var
e=0,a=0;for(a=0;a+4<=c.data.length;a+=4){e=c.data[a+0]|c.data[a+1]<<8|c.data[a+2]<<16|c.data[a+3]<<24;d=af(d,e)}e=0;switch(b&3){case
3:e=c.data[a+2]<<16;case
2:e|=c.data[a+1]<<8;case
1:e|=c.data[a+0];d=af(d,e)}break;case
4:case
5:if(b>aX)b=aX;var
e=0,a=0;for(a=0;a+2<=c.data.length;a+=2){e=c.data[a+0]|c.data[a+1]<<16;d=af(d,e)}if((b&1)!=0)d=af(d,c.data[a]);break;case
6:if(b>64)b=64;for(var
a=0;a<b;a++)d=af(d,c.data[a]);break;case
8:case
9:if(b>64)b=64;for(var
a=0;a<b;a++)d=af(d,c.data[a]);break;case
7:if(b>32)b=32;b*=2;for(var
a=0;a<b;a++)d=af(d,c.data[a]);break;case
10:b*=2;case
0:if(b>64)b=64;for(var
a=0;a<b;a++)d=d9(d,c.data[a]);break;case
11:b*=2;case
1:if(b>32)b=32;for(var
a=0;a<b;a++)d=d9(d,c.data[a]);break}return d}function
hY(a,b){b[0]=4;return a.read32s()}function
ik(a,b){switch(a.read8u()){case
1:b[0]=4;return a.read32s();case
2:aE("input_value: native integer value too large");default:aE("input_value: ill-formed native integer")}}function
h9(c,d){var
b=new
Array(8);for(var
a=0;a<8;a++)b[a]=c.read8u();d[0]=8;return a0(b)}function
h5(e,d,b){var
c=a1(d);for(var
a=0;a<8;a++)e.write(8,c[a]);b[0]=8;b[1]=8}function
hZ(a,b,c){return a.compare(b)}function
h2(a){return a.lo32()^a.hi32()}var
d7={"_j":{deserialize:h9,serialize:h5,fixed_length:8,compare:hZ,hash:h2},"_i":{deserialize:hY,fixed_length:4},"_n":{deserialize:ik,fixed_length:4},"_bigarray":{deserialize:function(a,b){return dX(a,b,"_bigarray")},serialize:d0,compare:dV,hash:dZ},"_bigarr02":{deserialize:function(a,b){return dX(a,b,bh)},serialize:d0,compare:dV,hash:dZ}};function
b6(a){return d7[a.caml_custom]&&d7[a.caml_custom].compare}function
d4(f,c,d,e){var
b=b6(c);if(b){var
a=d>0?b(c,f,e):b(f,c,e);if(e&&a!=a)return d;if(+a!=+a)return+a;if((a|0)!=0)return a|0}return d}function
bp(a){return a
instanceof
ae}function
cc(a){return bp(a)}function
d5(a){if(typeof
a==="number")return aV;else
if(bp(a))return bg;else
if(cc(a))return 1252;else
if(a
instanceof
Array&&a[0]===a[0]>>>0&&a[0]<=ds){var
b=a[0]|0;return b==be?0:b}else
if(a
instanceof
String)return dG;else
if(typeof
a=="string")return dG;else
if(a
instanceof
Number)return aV;else
if(a&&a.caml_custom)return bY;else
if(a&&a.compare)return 1256;else
if(typeof
a=="function")return 1247;else
if(typeof
a=="symbol")return 1251;return 1001}function
h_(a,b){if(a<b)return-1;if(a==b)return 0;return 1}function
d2(a,b){a.t&6&&bl(a);b.t&6&&bl(b);return a.c<b.c?-1:a.c>b.c?1:0}function
iD(a,b){return d2(a,b)}function
bj(a,b,d){var
e=[];for(;;){if(!(d&&a===b)){var
f=d5(a);if(f==du){a=a[1];continue}var
g=d5(b);if(g==du){b=b[1];continue}if(f!==g){if(f==aV){if(g==bY)return d4(a,b,-1,d);return-1}if(g==aV){if(f==bY)return d4(b,a,1,d);return 1}return f<g?-1:1}switch(f){case
247:q(bU);break;case
248:var
c=h_(a[2],b[2]);if(c!=0)return c|0;break;case
249:q(bU);break;case
250:q("equal: got Forward_tag, should not happen");break;case
251:q("equal: abstract value");break;case
252:if(a!==b){var
c=d2(a,b);if(c!=0)return c|0}break;case
253:q("equal: got Double_tag, should not happen");break;case
254:q("equal: got Double_array_tag, should not happen");break;case
255:q("equal: got Custom_tag, should not happen");break;case
1247:q(bU);break;case
1255:var
i=b6(a);if(i!=b6(b))return a.caml_custom<b.caml_custom?-1:1;if(!i)q("compare: abstract value");var
c=i(a,b,d);if(c!=c)return d?-1:c;if(c!==(c|0))return-1;if(c!=0)return c|0;break;case
1256:var
c=a.compare(b,d);if(c!=c)return d?-1:c;if(c!==(c|0))return-1;if(c!=0)return c|0;break;case
1000:a=+a;b=+b;if(a<b)return-1;if(a>b)return 1;if(a!=b){if(!d)return NaN;if(a==a)return 1;if(b==b)return-1}break;case
1001:if(a<b)return-1;if(a>b)return 1;if(a!=b){if(!d)return NaN;if(a==a)return 1;if(b==b)return-1}break;case
1251:if(a!==b){if(!d)return NaN;return 1}break;case
1252:var
a=ag(a),b=ag(b);if(a!==b){if(a<b)return-1;if(a>b)return 1}break;case
12520:var
a=a.toString(),b=b.toString();if(a!==b){if(a<b)return-1;if(a>b)return 1}break;case
246:case
254:default:if(a.length!=b.length)return a.length<b.length?-1:1;if(a.length>1)e.push(a,b,1);break}}if(e.length==0)return 0;var
h=e.pop();b=e.pop();a=e.pop();if(h+1<a.length)e.push(a,b,h+1);a=a[h];b=b[h]}}function
iC(a,b){return bj(a,b,true)}function
hR(){return[0]}function
t(a){if(a<0)q("Bytes.create");return new
ae(a?2:9,f,a)}function
d8(a,b){return+(bj(a,b,false)==0)}function
hS(a,c,b,d){if(b>0)if(c==0&&(b>=a.l||a.t==2&&b>=a.c.length))if(d==0){a.c=f;a.t=2}else{a.c=aH(b,String.fromCharCode(d));a.t=b==a.l?0:2}else{if(a.t!=4)bk(a);for(b+=c;c<b;c++)a.c[c]=d}return 0}function
cd(d){d=ag(d);var
e=d.length;if(e>31)q("format_int: format too long");var
a={justify:aB,signstyle:ap,filler:aa,alternate:false,base:0,signedconv:false,width:0,uppercase:false,sign:1,prec:-1,conv:"f"};for(var
c=0;c<e;c++){var
b=d.charAt(c);switch(b){case"-":a.justify=ap;break;case"+":case" ":a.signstyle=b;break;case"0":a.filler=G;break;case"#":a.alternate=true;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":a.width=0;while(b=d.charCodeAt(c)-48,b>=0&&b<=9){a.width=a.width*10+b;c++}c--;break;case".":a.prec=0;c++;while(b=d.charCodeAt(c)-48,b>=0&&b<=9){a.prec=a.prec*10+b;c++}c--;case"d":case"i":a.signedconv=true;case"u":a.base=10;break;case"x":a.base=16;break;case"X":a.base=16;a.uppercase=true;break;case"o":a.base=8;break;case"e":case"f":case"g":a.signedconv=true;a.conv=b;break;case"E":case"F":case"G":a.signedconv=true;a.uppercase=true;a.conv=b.toLowerCase();break}}return a}function
b7(b,g){if(b.uppercase)g=g.toUpperCase();var
e=g.length;if(b.signedconv&&(b.sign<0||b.signstyle!=ap))e++;if(b.alternate){if(b.base==8)e+=1;if(b.base==16)e+=2}var
c=f;if(b.justify==aB&&b.filler==aa)for(var
d=e;d<b.width;d++)c+=aa;if(b.signedconv)if(b.sign<0)c+=ap;else
if(b.signstyle!=ap)c+=b.signstyle;if(b.alternate&&b.base==8)c+=G;if(b.alternate&&b.base==16)c+=de;if(b.justify==aB&&b.filler==G)for(var
d=e;d<b.width;d++)c+=G;c+=g;if(b.justify==ap)for(var
d=e;d<b.width;d++)c+=aa;return a(c)}function
b8(i,c){function
j(a,b){if(Math.abs(a)<1.0)return a.toFixed(b);else{var
c=parseInt(a.toString().split(aB)[1]);if(c>20){c-=20;a/=Math.pow(10,c);a+=new
Array(c+1).join(G);if(b>0)a=a+ao+new
Array(b+1).join(G);return a}else
return a.toFixed(b)}}var
a,e=cd(i),d=e.prec<0?6:e.prec;if(c<0||c==0&&1/c==-Infinity){e.sign=-1;c=-c}if(isNaN(c)){a=bZ;e.filler=aa}else
if(!isFinite(c)){a="inf";e.filler=aa}else
switch(e.conv){case"e":var
a=c.toExponential(d),b=a.length;if(a.charAt(b-3)==b2)a=a.slice(0,b-1)+G+a.slice(b-1);break;case"f":a=j(c,d);break;case"g":d=d?d:1;a=c.toExponential(d-1);var
h=a.indexOf(b2),g=+a.slice(h+1);if(g<-4||c>=1e21||c.toFixed(0).length>d){var
b=h-1;while(a.charAt(b)==G)b--;if(a.charAt(b)==ao)b--;a=a.slice(0,b+1)+a.slice(h);b=a.length;if(a.charAt(b-3)==b2)a=a.slice(0,b-1)+G+a.slice(b-1);break}else{var
f=d;if(g<0){f-=g+1;a=c.toFixed(f)}else
while(a=c.toFixed(f),a.length>d+1)f--;if(f){var
b=a.length-1;while(a.charAt(b)==G)b--;if(a.charAt(b)==ao)b--;a=a.slice(0,b+1)}}break}return b7(e,a)}function
bm(e,c){if(ag(e)==bW)return a(f+c);var
b=cd(e);if(c<0)if(b.signedconv){b.sign=-1;c=-c}else
c>>>=0;var
d=c.toString(b.base);if(b.prec>=0){b.filler=aa;var
g=b.prec-d.length;if(g>0)d=aH(g,G)+d}return b7(b,d)}var
il=0;function
R(){return il++}function
a2(a){return a.toUtf16()}if(d.process&&d.process.cwd)var
aZ=d.process.cwd().replace(/\\/g,ab);else
var
aZ="/static";if(aZ.slice(-1)!==ab)aZ+=ab;function
ig(a){a=a2(a);if(a.charCodeAt(0)!=47)a=aZ+a;var
d=a.split(ab),b=[];for(var
c=0;c<d.length;c++)switch(d[c]){case"..":if(b.length>1)b.pop();break;case".":break;case"":if(b.length==0)b.push(f);break;default:b.push(d[c]);break}b.orig=a;return b}function
hN(a){return new
ae(4,a,a.length)}function
iw(e){for(var
g=f,b=g,a,i,c=0,h=e.length;c<h;c++){a=e.charCodeAt(c);if(a<Q){for(var
d=c+1;d<h&&(a=e.charCodeAt(d))<Q;d++);if(d-c>dg){b.substr(0,1);g+=b;b=f;g+=e.slice(c,d)}else
b+=e.slice(c,d);if(d==h)break;c=d}if(a<dt){b+=String.fromCharCode(0xc0|a>>6);b+=String.fromCharCode(Q|a&aC)}else
if(a<0xd800||a>=dw)b+=String.fromCharCode(dx|a>>12,Q|a>>6&aC,Q|a&aC);else
if(a>=0xdbff||c+1==h||(i=e.charCodeAt(c+1))<dn||i>dw)b+="\xef\xbf\xbd";else{c++;a=(a<<10)+i-0x35fdc00;b+=String.fromCharCode(dC|a>>18,Q|a>>12&aC,Q|a>>6&aC,Q|a&aC)}if(b.length>aW){b.substr(0,1);g+=b;b=f}}return g+b}function
hO(a){var
b=9;if(!ej(a))b=8,a=iw(a);return new
ae(b,a,a.length)}function
at(a){return hO(a)}function
g(a){ce(o.Sys_error,a)}function
io(a){a=ag(a);g(a+": No such file or directory")}function
hM(b,a){if(a>>>0>=b.l)d1();return aY(b,a)}function
L(a){return a.l}function
dU(){}function
w(a){this.data=a}w.prototype=new
dU();w.prototype.truncate=function(a){var
b=this.data;this.data=t(a|0);ak(b,0,this.data,0,a)};w.prototype.length=function(){return L(this.data)};w.prototype.write=function(b,d,g,a){var
c=this.length();if(b+a>=c){var
e=t(b+a),f=this.data;this.data=e;ak(f,0,this.data,0,c)}aq(d,g,this.data,b,a);return 0};w.prototype.read=function(c,a,d,b){var
e=this.length();ak(this.data,c,a,d,b);return 0};w.prototype.read_one=function(a){return hM(this.data,a)};w.prototype.close=function(){};w.prototype.constructor=w;function
M(b,a){this.content={};this.root=b;this.lookupFun=a}M.prototype.nm=function(a){return this.root+a};M.prototype.lookup=function(b){if(!this.content[b]&&this.lookupFun){var
c=this.lookupFun(a(this.root),a(b));if(c!==0)this.content[b]=new
w(ar(c[1]))}};M.prototype.exists=function(a){if(a==f)return 1;var
c=a+ab,d=new
RegExp(b0+c);for(var
b
in
this.content)if(b.match(d))return 1;this.lookup(a);return this.content[a]?1:0};M.prototype.readdir=function(c){var
g=c==f?f:c+ab,h=new
RegExp(b0+g+dK),d={},b=[];for(var
e
in
this.content){var
a=e.match(h);if(a&&!d[a[1]]){d[a[1]]=true;b.push(a[1])}}return b};M.prototype.is_dir=function(a){var
d=a==f?f:a+ab,e=new
RegExp(b0+d+dK),g=[];for(var
c
in
this.content){var
b=c.match(e);if(b)return 1}return 0};M.prototype.unlink=function(a){var
b=this.content[a]?true:false;delete
this.content[a];return b};M.prototype.open=function(a,b){if(b.rdonly&&b.wronly)g(this.nm(a)+dL);if(b.text&&b.binary)g(this.nm(a)+dc);this.lookup(a);if(this.content[a]){if(this.is_dir(a))g(this.nm(a)+" : is a directory");if(b.create&&b.excl)g(this.nm(a)+dJ);var
c=this.content[a];if(b.truncate)c.truncate();return c}else
if(b.create){this.content[a]=new
w(t(0));return this.content[a]}else
io(this.nm(a))};M.prototype.register=function(b,a){if(this.content[b])g(this.nm(b)+dJ);if(bp(a))this.content[b]=new
w(a);if(cc(a))this.content[b]=new
w(ar(a));else
if(a
instanceof
Array)this.content[b]=new
w(hN(a));else
if(typeof
a==="string")this.content[b]=new
w(d3(a));else
if(a.toString){var
c=ar(at(a.toString()));this.content[b]=new
w(c)}else
g(this.nm(b)+" : registering file with invalid content type")};M.prototype.constructor=M;function
x(a){return L(a)}function
a4(b,a){return aY(b,a)}function
hJ(d){var
c=x(d),b=new
Array(c),a=0;for(;a<c;a++)b[a]=a4(d,a);return b}function
hI(a){if(a.t!=4)bk(a);return a.c}function
X(a){this.fs=require("fs");this.fd=a}X.prototype=new
dU();X.prototype.truncate=function(a){try{this.fs.ftruncateSync(this.fd,a|0)}catch(a){g(a.toString())}};X.prototype.length=function(){try{return this.fs.fstatSync(this.fd).size}catch(a){g(a.toString())}};X.prototype.write=function(h,b,c,f){var
a=hJ(b);if(!(a
instanceof
d.Uint8Array))a=new(d.Uint8Array)(a);var
e=d.Buffer.from(a);try{this.fs.writeSync(this.fd,e,c,f,h)}catch(a){g(a.toString())}return 0};X.prototype.read=function(i,e,c,h){var
a=hI(e);if(!(a
instanceof
d.Uint8Array))a=new(d.Uint8Array)(a);var
f=d.Buffer.from(a);try{this.fs.readSync(this.fd,f,c,h,i)}catch(a){g(a.toString())}for(var
b=0;b<h;b++)as(e,c+b,f[c+b]);return 0};X.prototype.read_one=function(c){var
b=new(d.Uint8Array)(1),a=d.Buffer.from(b);try{this.fs.readSync(this.fd,a,0,1,c)}catch(a){g(a.toString())}return a[0]};X.prototype.close=function(){try{this.fs.closeSync(this.fd)}catch(a){g(a.toString())}};X.prototype.constructor=X;function
W(a){this.fs=require("fs");this.root=a}W.prototype.nm=function(a){return this.root+a};W.prototype.exists=function(a){try{return this.fs.existsSync(this.nm(a))?1:0}catch(a){g(a.toString())}};W.prototype.readdir=function(a){try{return this.fs.readdirSync(this.nm(a))}catch(a){g(a.toString())}};W.prototype.is_dir=function(a){try{return this.fs.statSync(this.nm(a)).isDirectory()?1:0}catch(a){g(a.toString())}};W.prototype.unlink=function(a){try{var
b=this.fs.existsSync(this.nm(a))?1:0;this.fs.unlinkSync(this.nm(a))}catch(a){g(a.toString())}return b};W.prototype.open=function(f,c){var
a=require("constants"),b=0;for(var
e
in
c)switch(e){case"rdonly":b|=a.O_RDONLY;break;case"wronly":b|=a.O_WRONLY;break;case"append":b|=a.O_WRONLY|a.O_APPEND;break;case"create":b|=a.O_CREAT;break;case"truncate":b|=a.O_TRUNC;break;case"excl":b|=a.O_EXCL;break;case"binary":b|=a.O_BINARY;break;case"text":b|=a.O_TEXT;break;case"nonblock":b|=a.O_NONBLOCK;break}try{var
d=this.fs.openSync(this.nm(f),b);return new
X(d)}catch(a){g(a.toString())}};W.prototype.rename=function(b,a){try{this.fs.renameSync(this.nm(b),this.nm(a))}catch(a){g(a.toString())}};W.prototype.constructor=W;var
aG=aZ.match(/[^\/]*\//)[0];function
ix(){return typeof
d.process!=="undefined"&&typeof
d.process.versions!=="undefined"&&typeof
d.process.versions.node!=="undefined"&&d.process.platform!=="browser"}var
a6=[];if(ix())a6.push({path:aG,device:new
W(aG)});else
a6.push({path:aG,device:new
M(aG)});a6.push({path:aG+c9,device:new
M(aG+c9)});function
ek(b){var
f=ig(b),b=f.join(ab),e=b+ab,c;for(var
d=0;d<a6.length;d++){var
a=a6[d];if(e.search(a.path)==0&&(!c||c.path.length<a.path.length))c={path:a.path,device:a.device,rest:b.substring(a.path.length,b.length)}}return c}function
d6(c,b){var
c=typeof
c=="string"?a(c):c,b=typeof
b=="string"?a(b):b,d=ek(c);if(!d.device.register)aE("cannot register file");d.device.register(d.rest,b);return 0}function
hT(){var
b=d.caml_fs_tmp;if(b)for(var
a=0;a<b.length;a++)d6(b[a].name,b[a].content);d.caml_create_file=d6;d.caml_fs_tmp=[];return 0}function
hU(){return[0]}function
hV(a,b){return+(bj(a,b,false)>=0)}function
hX(a,c,l){if(!isFinite(a)){if(isNaN(a))return at(bZ);return at(a>0?dE:"-infinity")}var
j=a==0&&1/a==-Infinity?1:a>=0?0:1;if(j)a=-a;var
d=0;if(a==0);else
if(a<1)while(a<1&&d>-1022){a*=2;d--}else
while(a>=2){a/=2;d++}var
k=d<0?f:aB,e=f;if(j)e=ap;else
switch(l){case
43:e=aB;break;case
32:e=aa;break;default:break}if(c>=0&&c<13){var
h=Math.pow(2,c*4);a=Math.round(a*h)/h}var
b=a.toString(16);if(c>=0){var
i=b.indexOf(ao);if(i<0)b+=ao+aH(c,G);else{var
g=i+1+c;if(b.length<g)b+=aH(g-b.length,G);else
b=b.substr(0,g)}}return at(e+de+b+"p"+k+d.toString(10))}function
h4(a){return+a.isZero()}function
h7(a){return new
c(a&ac,a>>24&ac,a>>31&V)}function
h8(a){return a.toInt()}function
h3(a){return+a.isNeg()}function
h6(a){return a.neg()}function
h1(h,c){var
a=cd(h);if(a.signedconv&&h3(c)){a.sign=-1;c=h6(c)}var
b=f,i=h7(a.base),g="0123456789abcdef";do{var
e=c.udivmod(i);c=e.quotient;b=g.charAt(h8(e.modulus))+b}while(!h4(c));if(a.prec>=0){a.filler=aa;var
d=a.prec-b.length;if(d>0)b=aH(d,G)+b}return b7(a,b)}function
ib(a){return a.slice(1)}function
h$(b,c,a){return b.apply(c,ib(a))}function
ia(){return typeof
module!=="undefined"&&module&&module.exports?module.exports:d}function
d$(a){return!!a}function
ic(){var
b=d.console?d.console:{},c=["log","debug","info","warn","error","assert","dir","dirxml","trace","group","groupCollapsed","groupEnd","time","timeEnd"];function
e(){}for(var
a=0;a<c.length;a++)if(!b[c[a]])b[c[a]]=e;return b}function
ea(d){return function(){var
b=arguments.length;if(b>0){var
c=new
Array(b);for(var
a=0;a<b;a++)c[a]=arguments[a];return N(d,c)}else
return N(d,[undefined])}}function
id(d){return function(){var
c=arguments.length,b=new
Array(c+1);b[0]=this;for(var
a=0;a<c;a++)b[a+1]=arguments[a];return N(d,b)}}function
ie(d){return function(){var
c=arguments.length,b=new
Array(c+1);b[0]=this;for(var
a=0;a<c;a++)b[a+1]=arguments[a];return d.apply(null,b)}}var
Y=new
Array();function
bq(c){var
a=Y[c];if(!a.opened)g("Cannot flush a closed channel");if(!a.buffer||a.buffer==f)return 0;if(a.fd&&o.fds[a.fd]&&o.fds[a.fd].output){var
b=o.fds[a.fd].output;switch(b.length){case
2:b(c,a.buffer);break;default:b(a.buffer)}}a.buffer=f;return 0}function
ei(e,f){var
b=Y[e],d=a(f),c=x(d);b.file.write(b.offset,d,0,c);b.offset+=c;return 0}function
iy(a){var
a=cg(a),b=d;if(b.process&&b.process.stdout&&b.process.stdout.write)b.process.stderr.write(a);else{if(a.charCodeAt(a.length-1)==10)a=a.substr(0,a.length-1);var
c=b.console;c&&c.error&&c.error(a)}}function
iz(a){var
a=cg(a),b=d;if(b.process&&b.process.stdout&&b.process.stdout.write)b.process.stdout.write(a);else{if(a.charCodeAt(a.length-1)==10)a=a.substr(0,a.length-1);var
c=b.console;c&&c.log&&c.log(a)}}function
bs(c,e,d,a){if(o.fds===undefined)o.fds=new
Array();a=a?a:{};var
b={};b.file=d;b.offset=a.append?d.length():0;b.flags=a;b.output=e;o.fds[c]=b;if(!o.fd_last_idx||c>o.fd_last_idx)o.fd_last_idx=c;return c}function
iE(c,b,h){var
a={};while(b){switch(b[1]){case
0:a.rdonly=1;break;case
1:a.wronly=1;break;case
2:a.append=1;break;case
3:a.create=1;break;case
4:a.truncate=1;break;case
5:a.excl=1;break;case
6:a.binary=1;break;case
7:a.text=1;break;case
8:a.nonblock=1;break}b=b[2]}if(a.rdonly&&a.wronly)g(ag(c)+dL);if(a.text&&a.binary)g(ag(c)+dc);var
d=ek(c),e=d.device.open(d.rest,a),f=o.fd_last_idx?o.fd_last_idx:0;return bs(f+1,ei,e,a)}bs(0,ei,new
w(t(0)));bs(1,iz,new
w(t(0)));bs(2,iy,new
w(t(0)));function
ih(c){var
b=o.fds[c];if(b.flags.wronly)g(dQ+c+" is writeonly");var
a={file:b.file,offset:b.offset,fd:c,opened:true,out:false,refill:null};Y[a.fd]=a;return a.fd}function
eb(c){var
b=o.fds[c];if(b.flags.rdonly)g(dQ+c+" is readonly");var
a={file:b.file,offset:b.offset,fd:c,opened:true,out:true,buffer:f};Y[a.fd]=a;return a.fd}function
ii(){var
b=0;for(var
a=0;a<Y.length;a++)if(Y[a]&&Y[a].opened&&Y[a].out)b=[0,Y[a].fd,b];return b}function
D(a){return a}function
ij(h,d,i,f){var
b=Y[h];if(!b.opened)g("Cannot output to a closed channel");var
a;if(i==0&&L(d)==f)a=d;else{a=t(f);ak(d,i,a,0,f)}var
j=D(a),c=ag(j),e=c.lastIndexOf("\n");if(e<0)b.buffer+=c;else{b.buffer+=c.substr(0,e+1);bq(h);b.buffer+=c.substr(e+1)}return 0}function
ec(b,a,d,c){return ij(b,ar(a),d,c)}function
ed(c,b){var
d=a(String.fromCharCode(b));ec(c,d,0,1);return 0}function
a3(a,b){return+(bj(a,b,false)!=0)}function
br(a){if(a
instanceof
Array&&a[0]==a[0]>>>0)return a[0];else
if(bp(a))return bg;else
if(cc(a))return bg;else
if(a
instanceof
Function||typeof
a=="function")return 247;else
if(a&&a.caml_custom)return ds;else
return aV}function
O(b,c,a){if(a&&d.toplevelReloc)b=d.toplevelReloc(a);o[b+1]=c;if(a)o[a]=c}var
ef={};function
iq(a,b){ef[ag(a)]=b;return 0}function
ir(){q(b1)}function
H(b,a){if(a>>>0>=x(b))ir();return a4(b,a)}function
is(){return[0,a("js_of_ocaml")]}function
it(){return 0x7FFFFFFF/4|0}function
iu(b){var
a=d;if(a.quit)a.quit(b);if(a.process&&a.process.exit)a.process.exit(b);q("Function 'exit' not implemented")}function
a5(a){var
b=1;while(a&&a.joo_tramp){a=a.joo_tramp.apply(null,a.joo_args);b++}return a}function
j(b,a){return{joo_tramp:b,joo_args:a}}function
iv(c,a){if(typeof
a==="function"){c.fun=a;return 0}if(a.fun){c.fun=a.fun;return 0}var
b=a.length;while(b--)c[b]=a[b];return 0}function
eh(a){return a}function
ee(a){return ef[a]}function
aI(a){if(a
instanceof
Array)return a;if(d.RangeError&&a
instanceof
d.RangeError&&a.message&&a.message.match(/maximum call stack/i))return eh(o.Stack_overflow);if(d.InternalError&&a
instanceof
d.InternalError&&a.message&&a.message.match(/too much recursion/i))return eh(o.Stack_overflow);if(a
instanceof
d.Error&&ee(bf))return[0,ee(bf),a];return[0,o.Failure,at(String(a))]}function
b(a,b){return a.length==1?a(b):N(a,[b])}function
K(a,b,c){return a.length==2?a(b,c):N(a,[b,c])}function
hH(a,b,c,d){return a.length==3?a(b,c,d):N(a,[b,c,d])}function
c5(a,b,c,d,e){return a.length==4?a(b,c,d,e):N(a,[b,c,d,e])}function
bT(a,b,c,d,e,f){return a.length==5?a(b,c,d,e,f):N(a,[b,c,d,e,f])}function
hG(a,b,c,d,e,f,g,h){return a.length==7?a(b,c,d,e,f,g,h):N(a,[b,c,d,e,f,g,h])}hT();var
ck=[v,a(dI),-1],cm=[v,a(dk),-2],bt=[v,a(dp),-3],ch=[v,a(dT),-4],cj=[v,a(dD),-8],cl=[v,a(da),-9],m=[v,a(dv),-11],cn=[v,a(c7),-12],cz=[0,di],hF=[4,0,0,0,[12,45,[4,0,0,0,0]]],bA=[0,[11,a('File "'),[2,0,[11,a('", line '),[4,0,0,0,[11,a(dH),[4,0,0,0,[12,45,[4,0,0,0,[11,a(": "),[2,0,0]]]]]]]]]],a('File "%s", line %d, characters %d-%d: %s')],cR=a("wakeup");O(11,cn,c7);O(10,m,dv);O(9,[v,a(dP),-10],dP);O(8,cl,da);O(7,cj,dD);O(6,[v,a(c_),-7],c_);O(5,[v,a(dl),-6],dl);O(4,[v,a(dq),-5],dq);O(3,ch,dT);O(2,bt,dp);O(1,cm,dk);O(0,ck,dI);var
ep=a("%.12g"),eo=a(ao),em=a("true"),en=a("false"),eq=a("\\\\"),er=a("\\'"),es=a("\\b"),et=a("\\t"),eu=a("\\n"),ev=a("\\r"),ey=a("String.blit / Bytes.blit_string"),ex=a("Bytes.blit"),ew=a("String.sub / Bytes.sub"),eA=a("Stdlib.Queue.Empty"),eE=a("Buffer.add: cannot grow buffer"),eD=[0,a(dj),93,2],eC=[0,a(dj),94,2],eN=a("%c"),eO=a("%s"),eP=a(c6),eQ=a(dB),eR=a(dR),eS=a(db),eT=a("%f"),eU=a("%B"),eV=a("%{"),eW=a("%}"),eX=a("%("),eY=a("%)"),eZ=a("%a"),e0=a("%t"),e1=a("%?"),e2=a("%r"),e3=a("%_r"),e4=[0,a(s),850,23],fd=[0,a(s),814,21],e7=[0,a(s),815,21],fe=[0,a(s),818,21],e8=[0,a(s),819,21],ff=[0,a(s),822,19],e9=[0,a(s),823,19],fg=[0,a(s),826,22],e_=[0,a(s),827,22],fh=[0,a(s),831,30],e$=[0,a(s),832,30],fb=[0,a(s),836,26],e5=[0,a(s),837,26],fc=[0,a(s),846,28],e6=[0,a(s),847,28],fa=[0,a(s),851,23],gj=a(dN),gh=[0,a(s),1558,4],gi=a("Printf: bad conversion %["),gk=[0,a(s),1626,39],gl=[0,a(s),1649,31],gm=[0,a(s),1650,31],gn=a("Printf: bad conversion %_"),go=a(dM),gp=a(dS),gq=a(dM),gr=a(dS),gf=a(bZ),gd=a("neg_infinity"),ge=a(dE),gc=a(ao),fY=a("%+nd"),fZ=a("% nd"),f1=a("%+ni"),f2=a("% ni"),f3=a("%nx"),f4=a("%#nx"),f5=a("%nX"),f6=a("%#nX"),f7=a("%no"),f8=a("%#no"),fX=a("%nd"),f0=a(dR),f9=a("%nu"),fL=a("%+ld"),fM=a("% ld"),fO=a("%+li"),fP=a("% li"),fQ=a("%lx"),fR=a("%#lx"),fS=a("%lX"),fT=a("%#lX"),fU=a("%lo"),fV=a("%#lo"),fK=a("%ld"),fN=a(dB),fW=a("%lu"),fy=a("%+Ld"),fz=a("% Ld"),fB=a("%+Li"),fC=a("% Li"),fD=a("%Lx"),fE=a("%#Lx"),fF=a("%LX"),fG=a("%#LX"),fH=a("%Lo"),fI=a("%#Lo"),fx=a("%Ld"),fA=a(db),fJ=a("%Lu"),fl=a("%+d"),fm=a("% d"),fo=a("%+i"),fp=a("% i"),fq=a("%x"),fr=a("%#x"),fs=a("%X"),ft=a("%#X"),fu=a("%o"),fv=a("%#o"),fk=a(bW),fn=a(c6),fw=a(dN),eF=a("@]"),eG=a("@}"),eH=a("@?"),eI=a("@\n"),eJ=a("@."),eK=a("@@"),eL=a("@%"),eM=a("@"),fi=a("CamlinternalFormat.Type_mismatch"),gv=a(f),gw=[0,[11,a(", "),[2,0,[2,0,0]]],a(", %s%s")],gO=[0,[2,0,[12,10,0]],a("%s\n")],gP=[0,[11,a(dF),0],a(dF)],gG=a("Raised at"),gH=a("Re-raised at"),gI=a("Raised by primitive operation at"),gJ=a("Called from"),gK=a(" (inlined)"),gM=a(f),gL=[0,[2,0,[12,32,[2,0,[11,a(' in file "'),[2,0,[12,34,[2,0,[11,a(", line "),[4,0,0,0,[11,a(dH),hF]]]]]]]]]],a('%s %s in file "%s"%s, line %d, characters %d-%d')],gN=[0,[2,0,[11,a(" unknown location"),0]],a("%s unknown location")],gB=a("Out of memory"),gC=a("Stack overflow"),gD=a("Pattern matching failed"),gE=a("Assertion failed"),gF=a("Undefined recursive module"),gx=[0,[12,40,[2,0,[2,0,[12,41,0]]]],a("(%s%s)")],gy=a(f),gz=a(f),gA=[0,[12,40,[2,0,[12,41,0]]],a("(%s)")],gu=[0,[4,0,0,0,0],a(bW)],gs=[0,[3,0,0],a("%S")],gt=a("_"),gR=a("Js_of_ocaml__Js.Error"),gS=a(bf),g2=a("canvas"),gZ=a("img"),gY=[0,[11,a("getElementById_exn: "),[3,0,[11,a(" not found"),0]]],a("getElementById_exn: %S not found")],g0=a("Js_of_ocaml__Dom_html.Canvas_not_available"),hh=[0,0],hi=[0,1],hf=[0,0],hg=[0,1],hd=[0,0],he=[0,1],hb=[0,0],hc=[0,0],g$=[0,0],g8=[0,[11,a(dy),[2,0,0]],a(dz)],g9=[0,[11,a(dy),[2,0,0]],a(dz)],g_=[0,0],g5=a("Fatal error: exception "),g6=a("Lwt.Resolution_loop.Canceled"),hl=a("Exception during Lwt.async: "),hm=a("Lwt_js_event"),hq=a(bf),hp=a("Jv.Error"),hC=[0,bV],hB=[0,bV],hw=a("image/svg+xml"),hx=a("svg"),hy=a("png_output"),hz=a("dot_output"),hA=a("editor");function
l(a){if(typeof
a==="number")return 0;else
switch(a[0]){case
0:return[0,l(a[1])];case
1:return[1,l(a[1])];case
2:return[2,l(a[1])];case
3:return[3,l(a[1])];case
4:return[4,l(a[1])];case
5:return[5,l(a[1])];case
6:return[6,l(a[1])];case
7:return[7,l(a[1])];case
8:var
c=a[1];return[8,c,l(a[2])];case
9:var
b=a[1];return[9,b,b,l(a[3])];case
10:return[10,l(a[1])];case
11:return[11,l(a[1])];case
12:return[12,l(a[1])];case
13:return[13,l(a[1])];default:return[14,l(a[1])]}}function
A(a,b){if(typeof
a==="number")return b;else
switch(a[0]){case
0:return[0,A(a[1],b)];case
1:return[1,A(a[1],b)];case
2:return[2,A(a[1],b)];case
3:return[3,A(a[1],b)];case
4:return[4,A(a[1],b)];case
5:return[5,A(a[1],b)];case
6:return[6,A(a[1],b)];case
7:return[7,A(a[1],b)];case
8:var
c=a[1];return[8,c,A(a[2],b)];case
9:var
d=a[2],e=a[1];return[9,e,d,A(a[3],b)];case
10:return[10,A(a[1],b)];case
11:return[11,A(a[1],b)];case
12:return[12,A(a[1],b)];case
13:return[13,A(a[1],b)];default:return[14,A(a[1],b)]}}function
k(a,b){if(typeof
a==="number")return b;else
switch(a[0]){case
0:return[0,k(a[1],b)];case
1:return[1,k(a[1],b)];case
2:var
c=a[1];return[2,c,k(a[2],b)];case
3:var
d=a[1];return[3,d,k(a[2],b)];case
4:var
e=a[3],f=a[2],g=a[1];return[4,g,f,e,k(a[4],b)];case
5:var
h=a[3],i=a[2],j=a[1];return[5,j,i,h,k(a[4],b)];case
6:var
l=a[3],m=a[2],n=a[1];return[6,n,m,l,k(a[4],b)];case
7:var
o=a[3],p=a[2],q=a[1];return[7,q,p,o,k(a[4],b)];case
8:var
r=a[3],s=a[2],t=a[1];return[8,t,s,r,k(a[4],b)];case
9:var
u=a[1];return[9,u,k(a[2],b)];case
10:return[10,k(a[1],b)];case
11:var
v=a[1];return[11,v,k(a[2],b)];case
12:var
w=a[1];return[12,w,k(a[2],b)];case
13:var
x=a[2],y=a[1];return[13,y,x,k(a[3],b)];case
14:var
z=a[2],A=a[1];return[14,A,z,k(a[3],b)];case
15:return[15,k(a[1],b)];case
16:return[16,k(a[1],b)];case
17:var
B=a[1];return[17,B,k(a[2],b)];case
18:var
C=a[1];return[18,C,k(a[2],b)];case
19:return[19,k(a[1],b)];case
20:var
D=a[2],E=a[1];return[20,E,D,k(a[3],b)];case
21:var
F=a[1];return[21,F,k(a[2],b)];case
22:return[22,k(a[1],b)];case
23:var
G=a[1];return[23,G,k(a[2],b)];default:var
H=a[2],I=a[1];return[24,I,H,k(a[3],b)]}}function
ci(a){throw[0,bt,a]}function
al(a){throw[0,ch,a]}R(0);function
bu(a){return 0<=a?a:-a|0}function
a7(d,c){var
a=x(d),e=x(c),b=t(a+e|0);aq(d,0,b,0,a);aq(c,0,b,a,e);return D(b)}function
el(a){return a?em:en}ih(0);eb(1);var
aJ=eb(2);function
aK(b,a){return ec(b,a,0,x(a))}function
co(a){return aK(aJ,a)}function
cp(b){function
a(b){var
a=b;for(;;){if(a){var
c=a[2],d=a[1];try{bq(d)}catch(a){a=aI(a);if(a[1]!==cm)throw a;var
e=a}var
a=c;continue}return 0}}return a(ii(0))}var
aL=(4*it(0)|0)-1|0;R(0);typeof
is(0)==="number";function
a8(d,c){var
a=c;for(;;){if(a){var
e=a[2];b(d,a[1]);var
a=e;continue}return 0}}function
am(a,c){var
b=t(a);hS(b,0,a,c);return b}function
cq(d,b,a){var
f=0;if(0<=b&&0<=a&&!((L(d)-a|0)<b)){var
c=t(a);ak(d,b,c,0,a);var
e=c;f=1}if(!f)var
e=al(ew);return D(e)}function
cr(e,c,d,b,a){if(0<=a&&0<=c&&!((L(e)-a|0)<c)&&0<=b&&!((L(d)-a|0)<b))return ak(e,c,d,b,a);return al(ex)}function
Z(e,c,d,b,a){if(0<=a&&0<=c&&!((x(e)-a|0)<c)&&0<=b&&!((L(d)-a|0)<b))return aq(e,c,d,b,a);return al(ey)}R(0);var
eB=[v,eA,R(0)];function
cs(d,a){var
b=[0,d,0],c=a[3];return c?(a[1]=a[1]+1|0,c[2]=b,a[3]=b,0):(a[1]=1,a[2]=b,a[3]=b,0)}R(0);function
ct(a,c){var
d=a[2],b=[0,a[3]];for(;;){if(b[1]<(d+c|0)){b[1]=2*b[1]|0;continue}if(aL<b[1])if((d+c|0)<=aL)b[1]=aL;else
ci(eE);var
e=t(b[1]);cr(a[1],0,e,0,a[2]);a[1]=e;a[3]=b[1];if((a[2]+c|0)<=a[3]){if((d+c|0)<=a[3])return 0;throw[0,m,eC]}throw[0,m,eD]}}function
aM(a,c){var
b=x(c),d=a[2]+b|0;if(a[3]<d)ct(a,b);aq(c,0,a[1],a[2],b);a[2]=d;return 0}function
bv(a){return 5===a[2]?12:-6}function
cu(a){return[0,0,t(a)]}function
cv(a,h){var
b=L(a[2]),c=a[1]+h|0,d=b<c?1:0;if(d){var
e=b*2|0,i=hV(e,c)?e:c,f=t(i);cr(a[2],0,f,0,b);a[2]=f;var
g=0}else
var
g=d;return g}function
au(a,b){cv(a,1);as(a[2],a[1],b);a[1]=a[1]+1|0;return 0}function
y(a,c){var
b=x(c);cv(a,b);Z(c,0,a[2],a[1],b);a[1]=a[1]+b|0;return 0}function
cw(a){return cq(a[2],0,a[1])}function
cx(a){if(typeof
a==="number")switch(a){case
0:return eF;case
1:return eG;case
2:return eH;case
3:return eI;case
4:return eJ;case
5:return eK;default:return eL}else
switch(a[0]){case
0:return a[1];case
1:return a[1];default:return a7(eM,D(am(1,a[1])))}}function
bw(b,c){var
a=c;for(;;)if(typeof
a==="number")return 0;else
switch(a[0]){case
0:var
d=a[1];y(b,eN);var
a=d;continue;case
1:var
e=a[1];y(b,eO);var
a=e;continue;case
2:var
f=a[1];y(b,eP);var
a=f;continue;case
3:var
g=a[1];y(b,eQ);var
a=g;continue;case
4:var
h=a[1];y(b,eR);var
a=h;continue;case
5:var
i=a[1];y(b,eS);var
a=i;continue;case
6:var
j=a[1];y(b,eT);var
a=j;continue;case
7:var
k=a[1];y(b,eU);var
a=k;continue;case
8:var
l=a[2],m=a[1];y(b,eV);bw(b,m);y(b,eW);var
a=l;continue;case
9:var
n=a[3],o=a[1];y(b,eX);bw(b,o);y(b,eY);var
a=n;continue;case
10:var
p=a[1];y(b,eZ);var
a=p;continue;case
11:var
q=a[1];y(b,e0);var
a=q;continue;case
12:var
r=a[1];y(b,e1);var
a=r;continue;case
13:var
s=a[1];y(b,e2);var
a=s;continue;default:var
t=a[1];y(b,e3);var
a=t;continue}}function
p(a){if(typeof
a==="number")return 0;else
switch(a[0]){case
0:return[0,p(a[1])];case
1:return[1,p(a[1])];case
2:return[2,p(a[1])];case
3:return[3,p(a[1])];case
4:return[4,p(a[1])];case
5:return[5,p(a[1])];case
6:return[6,p(a[1])];case
7:return[7,p(a[1])];case
8:var
b=a[1];return[8,b,p(a[2])];case
9:var
c=a[2],d=a[1];return[9,c,d,p(a[3])];case
10:return[10,p(a[1])];case
11:return[11,p(a[1])];case
12:return[12,p(a[1])];case
13:return[13,p(a[1])];default:return[14,p(a[1])]}}function
z(a){if(typeof
a==="number"){var
u=function(a){return 0},v=function(a){return 0},w=function(a){return 0};return[0,function(a){return 0},w,v,u]}else
switch(a[0]){case
0:var
c=z(a[1]),x=c[4],y=c[3],A=c[2],B=c[1],C=function(a){b(A,0);return 0};return[0,function(a){b(B,0);return 0},C,y,x];case
1:var
d=z(a[1]),D=d[4],E=d[3],F=d[2],G=d[1],H=function(a){b(F,0);return 0};return[0,function(a){b(G,0);return 0},H,E,D];case
2:var
e=z(a[1]),I=e[4],J=e[3],K=e[2],L=e[1],M=function(a){b(K,0);return 0};return[0,function(a){b(L,0);return 0},M,J,I];case
3:var
f=z(a[1]),N=f[4],O=f[3],P=f[2],Q=f[1],R=function(a){b(P,0);return 0};return[0,function(a){b(Q,0);return 0},R,O,N];case
4:var
g=z(a[1]),S=g[4],T=g[3],U=g[2],V=g[1],W=function(a){b(U,0);return 0};return[0,function(a){b(V,0);return 0},W,T,S];case
5:var
h=z(a[1]),X=h[4],Y=h[3],Z=h[2],_=h[1],$=function(a){b(Z,0);return 0};return[0,function(a){b(_,0);return 0},$,Y,X];case
6:var
i=z(a[1]),aa=i[4],ab=i[3],ac=i[2],ad=i[1],ae=function(a){b(ac,0);return 0};return[0,function(a){b(ad,0);return 0},ae,ab,aa];case
7:var
j=z(a[1]),af=j[4],ag=j[3],ah=j[2],ai=j[1],aj=function(a){b(ah,0);return 0};return[0,function(a){b(ai,0);return 0},aj,ag,af];case
8:var
k=z(a[2]),ak=k[4],al=k[3],am=k[2],an=k[1],ao=function(a){b(am,0);return 0};return[0,function(a){b(an,0);return 0},ao,al,ak];case
9:var
ap=a[2],aq=a[1],l=z(a[3]),ar=l[4],as=l[3],at=l[2],au=l[1],m=z(r(p(aq),ap)),av=m[4],aw=m[3],ax=m[2],ay=m[1],az=function(a){b(av,0);b(ar,0);return 0},aA=function(a){b(as,0);b(aw,0);return 0},aB=function(a){b(ax,0);b(at,0);return 0};return[0,function(a){b(au,0);b(ay,0);return 0},aB,aA,az];case
10:var
n=z(a[1]),aC=n[4],aD=n[3],aE=n[2],aF=n[1],aG=function(a){b(aE,0);return 0};return[0,function(a){b(aF,0);return 0},aG,aD,aC];case
11:var
o=z(a[1]),aH=o[4],aI=o[3],aJ=o[2],aK=o[1],aL=function(a){b(aJ,0);return 0};return[0,function(a){b(aK,0);return 0},aL,aI,aH];case
12:var
q=z(a[1]),aM=q[4],aN=q[3],aO=q[2],aP=q[1],aQ=function(a){b(aO,0);return 0};return[0,function(a){b(aP,0);return 0},aQ,aN,aM];case
13:var
s=z(a[1]),aR=s[4],aS=s[3],aT=s[2],aU=s[1],aV=function(a){b(aR,0);return 0},aW=function(a){b(aS,0);return 0},aX=function(a){b(aT,0);return 0};return[0,function(a){b(aU,0);return 0},aX,aW,aV];default:var
t=z(a[1]),aY=t[4],aZ=t[3],a0=t[2],a1=t[1],a2=function(a){b(aY,0);return 0},a3=function(a){b(aZ,0);return 0},a4=function(a){b(a0,0);return 0};return[0,function(a){b(a1,0);return 0},a4,a3,a2]}}function
r(d,c){var
a=0;if(typeof
d==="number")if(typeof
c==="number")return 0;else
switch(c[0]){case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:a=3;break;case
14:a=4;break;case
8:a=5;break;case
9:a=6;break;default:throw[0,m,e4]}else
switch(d[0]){case
0:var
e=0,w=d[1];if(typeof
c!=="number")switch(c[0]){case
0:return[0,r(w,c[1])];case
8:a=5;e=1;break;case
9:a=6;e=1;break;case
10:e=1;break;case
11:a=1;e=1;break;case
12:a=2;e=1;break;case
13:a=3;e=1;break;case
14:a=4;e=1;break}if(!e)a=7;break;case
1:var
f=0,x=d[1];if(typeof
c!=="number")switch(c[0]){case
1:return[1,r(x,c[1])];case
8:a=5;f=1;break;case
9:a=6;f=1;break;case
10:f=1;break;case
11:a=1;f=1;break;case
12:a=2;f=1;break;case
13:a=3;f=1;break;case
14:a=4;f=1;break}if(!f)a=7;break;case
2:var
g=0,y=d[1];if(typeof
c==="number")g=1;else
switch(c[0]){case
2:return[2,r(y,c[1])];case
8:a=5;break;case
9:a=6;break;case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:a=3;break;case
14:a=4;break;default:g=1}if(g)a=7;break;case
3:var
h=0,A=d[1];if(typeof
c==="number")h=1;else
switch(c[0]){case
3:return[3,r(A,c[1])];case
8:a=5;break;case
9:a=6;break;case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:a=3;break;case
14:a=4;break;default:h=1}if(h)a=7;break;case
4:var
i=0,B=d[1];if(typeof
c==="number")i=1;else
switch(c[0]){case
4:return[4,r(B,c[1])];case
8:a=5;break;case
9:a=6;break;case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:a=3;break;case
14:a=4;break;default:i=1}if(i)a=7;break;case
5:var
j=0,C=d[1];if(typeof
c==="number")j=1;else
switch(c[0]){case
5:return[5,r(C,c[1])];case
8:a=5;break;case
9:a=6;break;case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:a=3;break;case
14:a=4;break;default:j=1}if(j)a=7;break;case
6:var
k=0,D=d[1];if(typeof
c==="number")k=1;else
switch(c[0]){case
6:return[6,r(D,c[1])];case
8:a=5;break;case
9:a=6;break;case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:a=3;break;case
14:a=4;break;default:k=1}if(k)a=7;break;case
7:var
l=0,E=d[1];if(typeof
c==="number")l=1;else
switch(c[0]){case
7:return[7,r(E,c[1])];case
8:a=5;break;case
9:a=6;break;case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:a=3;break;case
14:a=4;break;default:l=1}if(l)a=7;break;case
8:var
n=0,F=d[2],G=d[1];if(typeof
c==="number")n=1;else
switch(c[0]){case
8:var
H=c[1],I=r(F,c[2]);return[8,r(G,H),I];case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:a=3;break;case
14:a=4;break;default:n=1}if(n)throw[0,m,fb];break;case
9:var
o=0,J=d[3],K=d[2],L=d[1];if(typeof
c==="number")o=1;else
switch(c[0]){case
8:a=5;break;case
9:var
M=c[3],N=c[2],O=c[1],v=z(r(p(K),O)),P=v[4];b(v[2],0);b(P,0);return[9,L,N,r(J,M)];case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:a=3;break;case
14:a=4;break;default:o=1}if(o)throw[0,m,fc];break;case
10:var
Q=d[1];if(typeof
c!=="number"&&10===c[0])return[10,r(Q,c[1])];throw[0,m,fd];case
11:var
q=0,R=d[1];if(typeof
c==="number")q=1;else
switch(c[0]){case
10:break;case
11:return[11,r(R,c[1])];default:q=1}if(q)throw[0,m,fe];break;case
12:var
s=0,S=d[1];if(typeof
c==="number")s=1;else
switch(c[0]){case
10:break;case
11:a=1;break;case
12:return[12,r(S,c[1])];default:s=1}if(s)throw[0,m,ff];break;case
13:var
t=0,T=d[1];if(typeof
c==="number")t=1;else
switch(c[0]){case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:return[13,r(T,c[1])];default:t=1}if(t)throw[0,m,fg];break;default:var
u=0,U=d[1];if(typeof
c==="number")u=1;else
switch(c[0]){case
10:break;case
11:a=1;break;case
12:a=2;break;case
13:a=3;break;case
14:return[14,r(U,c[1])];default:u=1}if(u)throw[0,m,fh]}switch(a){case
0:throw[0,m,e7];case
1:throw[0,m,e8];case
2:throw[0,m,e9];case
3:throw[0,m,e_];case
4:throw[0,m,e$];case
5:throw[0,m,e5];case
6:throw[0,m,e6];default:throw[0,m,fa]}}var
u=[v,fi,R(0)];function
a9(b,a){if(typeof
b==="number")return[0,0,a];else{if(0===b[0])return[0,[0,b[1],b[2]],a];if(typeof
a!=="number"&&2===a[0])return[0,[1,b[1]],a[1]];throw u}}function
aN(e,b,d){var
a=a9(e,d);if(typeof
b==="number"){if(b){var
c=a[2];if(typeof
c!=="number"&&2===c[0])return[0,a[1],1,c[1]];throw u}return[0,a[1],0,a[2]]}return[0,a[1],[0,b[1]],a[2]]}function
B(c,d,a){if(typeof
c==="number")return[0,0,i(d,a)];else
switch(c[0]){case
0:if(typeof
a!=="number"&&0===a[0]){var
g=B(c[1],d,a[1]);return[0,[0,g[1]],g[2]]}break;case
1:if(typeof
a!=="number"&&1===a[0]){var
h=B(c[1],d,a[1]);return[0,[1,h[1]],h[2]]}break;case
2:if(typeof
a!=="number"&&2===a[0]){var
j=B(c[1],d,a[1]);return[0,[2,j[1]],j[2]]}break;case
3:if(typeof
a!=="number"&&3===a[0]){var
k=B(c[1],d,a[1]);return[0,[3,k[1]],k[2]]}break;case
4:if(typeof
a!=="number"&&4===a[0]){var
m=B(c[1],d,a[1]);return[0,[4,m[1]],m[2]]}break;case
5:if(typeof
a!=="number"&&5===a[0]){var
n=B(c[1],d,a[1]);return[0,[5,n[1]],n[2]]}break;case
6:if(typeof
a!=="number"&&6===a[0]){var
o=B(c[1],d,a[1]);return[0,[6,o[1]],o[2]]}break;case
7:if(typeof
a!=="number"&&7===a[0]){var
q=B(c[1],d,a[1]);return[0,[7,q[1]],q[2]]}break;case
8:if(typeof
a!=="number"&&8===a[0]){var
s=a[1],D=a[2],E=c[2];if(a3([0,c[1]],[0,s]))throw u;var
t=B(E,d,D);return[0,[8,s,t[1]],t[2]]}break;case
9:if(typeof
a!=="number"&&9===a[0]){var
e=a[2],f=a[1],F=a[3],G=c[3],H=c[2],I=c[1],J=[0,l(f)];if(a3([0,l(I)],J))throw u;var
K=[0,l(e)];if(a3([0,l(H)],K))throw u;var
v=z(r(p(f),e)),L=v[4];b(v[2],0);b(L,0);var
w=B(l(G),d,F),M=w[2];return[0,[9,f,e,p(w[1])],M]}break;case
10:if(typeof
a!=="number"&&10===a[0]){var
x=B(c[1],d,a[1]);return[0,[10,x[1]],x[2]]}break;case
11:if(typeof
a!=="number"&&11===a[0]){var
y=B(c[1],d,a[1]);return[0,[11,y[1]],y[2]]}break;case
13:if(typeof
a!=="number"&&13===a[0]){var
A=B(c[1],d,a[1]);return[0,[13,A[1]],A[2]]}break;case
14:if(typeof
a!=="number"&&14===a[0]){var
C=B(c[1],d,a[1]);return[0,[14,C[1]],C[2]]}break}throw u}function
i(b,a){if(typeof
b==="number")return[0,0,a];else
switch(b[0]){case
0:if(typeof
a!=="number"&&0===a[0]){var
v=i(b[1],a[1]);return[0,[0,v[1]],v[2]]}break;case
1:if(typeof
a!=="number"&&0===a[0]){var
w=i(b[1],a[1]);return[0,[1,w[1]],w[2]]}break;case
2:var
af=b[2],x=a9(b[1],a),e=x[2],ag=x[1];if(typeof
e!=="number"&&1===e[0]){var
y=i(af,e[1]);return[0,[2,ag,y[1]],y[2]]}throw u;case
3:var
ah=b[2],z=a9(b[1],a),f=z[2],ai=z[1];if(typeof
f!=="number"&&1===f[0]){var
A=i(ah,f[1]);return[0,[3,ai,A[1]],A[2]]}throw u;case
4:var
aj=b[4],ak=b[1],g=aN(b[2],b[3],a),h=g[3],al=g[1];if(typeof
h!=="number"&&2===h[0]){var
am=g[2],C=i(aj,h[1]);return[0,[4,ak,al,am,C[1]],C[2]]}throw u;case
5:var
an=b[4],ao=b[1],j=aN(b[2],b[3],a),k=j[3],ap=j[1];if(typeof
k!=="number"&&3===k[0]){var
aq=j[2],D=i(an,k[1]);return[0,[5,ao,ap,aq,D[1]],D[2]]}throw u;case
6:var
ar=b[4],as=b[1],m=aN(b[2],b[3],a),n=m[3],at=m[1];if(typeof
n!=="number"&&4===n[0]){var
au=m[2],F=i(ar,n[1]);return[0,[6,as,at,au,F[1]],F[2]]}throw u;case
7:var
av=b[4],aw=b[1],o=aN(b[2],b[3],a),p=o[3],ax=o[1];if(typeof
p!=="number"&&5===p[0]){var
ay=o[2],G=i(av,p[1]);return[0,[7,aw,ax,ay,G[1]],G[2]]}throw u;case
8:var
az=b[4],aA=b[1],q=aN(b[2],b[3],a),r=q[3],aB=q[1];if(typeof
r!=="number"&&6===r[0]){var
aC=q[2],H=i(az,r[1]);return[0,[8,aA,aB,aC,H[1]],H[2]]}throw u;case
9:var
aD=b[2],I=a9(b[1],a),s=I[2],aE=I[1];if(typeof
s!=="number"&&7===s[0]){var
J=i(aD,s[1]);return[0,[9,aE,J[1]],J[2]]}throw u;case
10:var
K=i(b[1],a);return[0,[10,K[1]],K[2]];case
11:var
aF=b[1],L=i(b[2],a);return[0,[11,aF,L[1]],L[2]];case
12:var
aG=b[1],M=i(b[2],a);return[0,[12,aG,M[1]],M[2]];case
13:if(typeof
a!=="number"&&8===a[0]){var
N=a[1],aH=a[2],aI=b[3],aJ=b[1];if(a3([0,b[2]],[0,N]))throw u;var
O=i(aI,aH);return[0,[13,aJ,N,O[1]],O[2]]}break;case
14:if(typeof
a!=="number"&&9===a[0]){var
P=a[1],aK=a[3],aL=b[3],aM=b[2],aO=b[1],aP=[0,l(P)];if(a3([0,l(aM)],aP))throw u;var
Q=i(aL,l(aK));return[0,[14,aO,P,Q[1]],Q[2]]}break;case
15:if(typeof
a!=="number"&&10===a[0]){var
R=i(b[1],a[1]);return[0,[15,R[1]],R[2]]}break;case
16:if(typeof
a!=="number"&&11===a[0]){var
S=i(b[1],a[1]);return[0,[16,S[1]],S[2]]}break;case
17:var
aQ=b[1],T=i(b[2],a);return[0,[17,aQ,T[1]],T[2]];case
18:var
U=b[2],t=b[1];if(0===t[0]){var
Y=t[1],aU=Y[2],Z=i(Y[1],a),aV=Z[1],_=i(U,Z[2]);return[0,[18,[0,[0,aV,aU]],_[1]],_[2]]}var
$=t[1],aW=$[2],aa=i($[1],a),aX=aa[1],ab=i(U,aa[2]);return[0,[18,[1,[0,aX,aW]],ab[1]],ab[2]];case
19:if(typeof
a!=="number"&&13===a[0]){var
V=i(b[1],a[1]);return[0,[19,V[1]],V[2]]}break;case
20:if(typeof
a!=="number"&&1===a[0]){var
aR=b[2],aS=b[1],W=i(b[3],a[1]);return[0,[20,aS,aR,W[1]],W[2]]}break;case
21:if(typeof
a!=="number"&&2===a[0]){var
aT=b[1],X=i(b[2],a[1]);return[0,[21,aT,X[1]],X[2]]}break;case
23:var
d=b[2],c=b[1];if(typeof
c==="number")switch(c){case
0:return E(c,d,a);case
1:return E(c,d,a);case
2:if(typeof
a!=="number"&&14===a[0]){var
ac=i(d,a[1]);return[0,[23,2,ac[1]],ac[2]]}throw u;default:return E(c,d,a)}else
switch(c[0]){case
0:return E(c,d,a);case
1:return E(c,d,a);case
2:return E(c,d,a);case
3:return E(c,d,a);case
4:return E(c,d,a);case
5:return E(c,d,a);case
6:return E(c,d,a);case
7:return E(c,d,a);case
8:return E([8,c[1],c[2]],d,a);case
9:var
aY=c[1],ad=B(c[2],d,a),ae=ad[2];return[0,[23,[9,aY,ad[1]],ae[1]],ae[2]];case
10:return E(c,d,a);default:return E(c,d,a)}}throw u}function
E(d,c,b){var
a=i(c,b);return[0,[23,d,a[1]],a[2]]}function
F(k,g,a){var
b=x(a),h=0<=g?k:0,d=bu(g);if(d<=b)return a;var
l=2===h?48:32,c=am(d,l);switch(h){case
0:Z(a,0,c,0,b);break;case
1:Z(a,0,c,d-b|0,b);break;default:var
e=0;if(0<b){var
i=0;if(43!==H(a,0)&&45!==H(a,0)&&32!==H(a,0)){e=1;i=1}if(!i){as(c,0,H(a,0));Z(a,1,c,(d-b|0)+1|0,b-1|0)}}else
e=1;if(e){var
f=0;if(1<b&&48===H(a,0)){var
j=0;if(dh!==H(a,1)&&88!==H(a,1)){f=1;j=1}if(!j){as(c,1,H(a,1));Z(a,2,c,(d-b|0)+2|0,b-2|0)}}else
f=1;if(f)Z(a,0,c,d-b|0,b)}}return D(c)}function
av(k,b){var
c=bu(k),a=x(b),d=H(b,0),e=0;if(58<=d){if(71<=d){if(!(5<(d+c$|0)>>>0))e=1}else
if(65<=d)e=1}else{var
f=0;if(32!==d)if(43<=d)switch(d-43|0){case
5:if(a<(c+2|0)&&1<a){var
j=0;if(dh===H(b,1)||88===H(b,1))j=1;if(j){var
h=am(c+2|0,48);as(h,1,H(b,1));Z(b,2,h,(c-a|0)+4|0,a-2|0);return D(h)}}e=1;f=1;break;case
0:case
2:break;case
1:case
3:case
4:f=1;break;default:e=1;f=1}else
f=1;if(!f&&a<(c+1|0)){var
g=am(c+1|0,48);as(g,0,d);Z(b,1,g,(c-a|0)+2|0,a-1|0);return D(g)}}if(e&&a<c){var
i=am(c,48);Z(b,0,i,c-a|0,a);return D(i)}return b}function
fj(k){var
j=0,G=x(k);for(;;){if(G<=j)var
p=k;else{var
o=a4(k,j)+dA|0,q=0;if(59<o>>>0){if(33<(o-61|0)>>>0)q=1}else
if(2===o)q=1;if(!q){var
j=j+1|0;continue}var
e=ar(k),a=[0,0],v=L(e)-1|0,B=0;if(!(v<0)){var
i=B;for(;;){var
f=aY(e,i),g=0;if(32<=f){var
l=f-34|0,r=0;if(58<l>>>0){if(93<=l)r=1}else
if(56<(l-1|0)>>>0){g=1;r=1}if(!r){var
m=1;g=2}}else
if(11<=f){if(13===f)g=1}else
if(8<=f)g=1;switch(g){case
0:var
m=4;break;case
1:var
m=2;break}a[1]=a[1]+m|0;var
F=i+1|0;if(v!==i){var
i=F;continue}break}}if(a[1]===L(e)){var
s=L(e),u=t(s);ak(e,0,u,0,s);var
y=u}else{var
b=t(a[1]);a[1]=0;var
w=L(e)-1|0,C=0;if(!(w<0)){var
h=C;for(;;){var
c=aY(e,h),d=0;if(35<=c)if(92===c)d=2;else
if(b3<=c)d=1;else
d=3;else
if(32<=c)if(34<=c)d=2;else
d=3;else
if(14<=c)d=1;else
switch(c){case
8:n(b,a[1],92);a[1]++;n(b,a[1],98);break;case
9:n(b,a[1],92);a[1]++;n(b,a[1],116);break;case
10:n(b,a[1],92);a[1]++;n(b,a[1],110);break;case
13:n(b,a[1],92);a[1]++;n(b,a[1],114);break;default:d=1}switch(d){case
1:n(b,a[1],92);a[1]++;n(b,a[1],48+(c/dd|0)|0);a[1]++;n(b,a[1],48+((c/10|0)%10|0)|0);a[1]++;n(b,a[1],48+(c%10|0)|0);break;case
2:n(b,a[1],92);a[1]++;n(b,a[1],c);break;case
3:n(b,a[1],c);break}a[1]++;var
E=h+1|0;if(w!==h){var
h=E;continue}break}}var
y=b}var
p=D(y)}var
z=x(p),A=am(z+2|0,34);aq(p,0,A,1,z);return D(A)}}function
cy(d,g){var
h=bu(g),e=cz?cz[1]:70;switch(d[2]){case
0:var
b=102;break;case
1:var
b=101;break;case
2:var
b=69;break;case
3:var
b=di;break;case
4:var
b=71;break;case
5:var
b=e;break;case
6:var
b=104;break;case
7:var
b=72;break;default:var
b=70}var
c=cu(16);au(c,37);switch(d[1]){case
0:break;case
1:au(c,43);break;default:au(c,32)}if(8<=d[2])au(c,35);au(c,46);y(c,a(f+h));au(c,b);return cw(c)}function
a_(m,a){if(13<=m){var
g=[0,0],h=x(a)-1|0,n=0;if(!(h<0)){var
c=n;for(;;){if(!(9<(a4(a,c)+dm|0)>>>0))g[1]++;var
q=c+1|0;if(h!==c){var
c=q;continue}break}}var
i=g[1],j=t(x(a)+((i-1|0)/3|0)|0),k=[0,0],d=function(a){as(j,k[1],a);k[1]++;return 0},e=[0,((i-1|0)%3|0)+1|0],l=x(a)-1|0,o=0;if(!(l<0)){var
b=o;for(;;){var
f=a4(a,b);if(9<(f+dm|0)>>>0)d(f);else{if(0===e[1]){d(95);e[1]=3}e[1]+=-1;d(f)}var
p=b+1|0;if(l!==b){var
b=p;continue}break}}return D(j)}return a}function
f_(b,c){switch(b){case
1:var
a=fl;break;case
2:var
a=fm;break;case
4:var
a=fo;break;case
5:var
a=fp;break;case
6:var
a=fq;break;case
7:var
a=fr;break;case
8:var
a=fs;break;case
9:var
a=ft;break;case
10:var
a=fu;break;case
11:var
a=fv;break;case
0:case
13:var
a=fk;break;case
3:case
14:var
a=fn;break;default:var
a=fw}return a_(b,bm(a,c))}function
f$(b,c){switch(b){case
1:var
a=fL;break;case
2:var
a=fM;break;case
4:var
a=fO;break;case
5:var
a=fP;break;case
6:var
a=fQ;break;case
7:var
a=fR;break;case
8:var
a=fS;break;case
9:var
a=fT;break;case
10:var
a=fU;break;case
11:var
a=fV;break;case
0:case
13:var
a=fK;break;case
3:case
14:var
a=fN;break;default:var
a=fW}return a_(b,bm(a,c))}function
ga(b,c){switch(b){case
1:var
a=fY;break;case
2:var
a=fZ;break;case
4:var
a=f1;break;case
5:var
a=f2;break;case
6:var
a=f3;break;case
7:var
a=f4;break;case
8:var
a=f5;break;case
9:var
a=f6;break;case
10:var
a=f7;break;case
11:var
a=f8;break;case
0:case
13:var
a=fX;break;case
3:case
14:var
a=f0;break;default:var
a=f9}return a_(b,bm(a,c))}function
gb(b,c){switch(b){case
1:var
a=fy;break;case
2:var
a=fz;break;case
4:var
a=fB;break;case
5:var
a=fC;break;case
6:var
a=fD;break;case
7:var
a=fE;break;case
8:var
a=fF;break;case
9:var
a=fG;break;case
10:var
a=fH;break;case
11:var
a=fI;break;case
0:case
13:var
a=fx;break;case
3:case
14:var
a=fA;break;default:var
a=fJ}return a_(b,h1(a,c))}function
_(c,i,b){function
j(d){switch(c[1]){case
0:var
a=45;break;case
1:var
a=43;break;default:var
a=32}return hX(b,i,a)}function
r(c){var
a=hQ(b);return 3===a?b<0.?gd:ge:4<=a?gf:c}switch(c[2]){case
5:var
e=b8(cy(c,i),b),d=0,w=x(e);for(;;){if(d===w)var
q=0;else{var
k=H(e,d)-46|0,l=0;if(23<k>>>0){if(55===k)l=1}else
if(21<(k-1|0)>>>0)l=1;if(!l){var
d=d+1|0;continue}var
q=1}var
y=q?e:a7(e,gc);return r(y)}case
6:return j(0);case
7:var
h=ar(j(0)),f=L(h);if(0===f)var
p=h;else{var
m=t(f),o=f-1|0,s=0;if(!(o<0)){var
a=s;for(;;){var
g=aY(h,a),u=25<(g+c$|0)>>>0?g:g+dA|0;n(m,a,u);var
v=a+1|0;if(o!==a){var
a=v;continue}break}}var
p=m}return D(p);case
8:return r(j(0));default:return b8(cy(c,i),b)}}function
aU(f,M,L,J){var
c=M,a=L,d=J;for(;;)if(typeof
d==="number")return b(c,a);else
switch(d[0]){case
0:var
N=d[1];return function(b){return e(c,[5,a,b],N)};case
1:var
O=d[1];return function(b){var
f=0;if(40<=b)if(92===b)var
d=eq;else
if(b3<=b)f=1;else
f=2;else
if(32<=b)if(39<=b)var
d=er;else
f=2;else
if(14<=b)f=1;else
switch(b){case
8:var
d=es;break;case
9:var
d=et;break;case
10:var
d=eu;break;case
13:var
d=ev;break;default:f=1}switch(f){case
1:var
g=t(4);n(g,0,92);n(g,1,48+(b/dd|0)|0);n(g,2,48+((b/10|0)%10|0)|0);n(g,3,48+(b%10|0)|0);var
d=D(g);break;case
2:var
h=t(1);n(h,0,b);var
d=D(h);break}var
i=x(d),j=am(i+2|0,39);aq(d,0,j,1,i);return e(c,[4,a,D(j)],O)};case
2:var
P=d[2],Q=d[1];return bx(c,a,P,Q,function(a){return a});case
3:return bx(c,a,d[2],d[1],fj);case
4:return a$(c,a,d[4],d[2],d[3],f_,d[1]);case
5:return a$(c,a,d[4],d[2],d[3],f$,d[1]);case
6:return a$(c,a,d[4],d[2],d[3],ga,d[1]);case
7:return a$(c,a,d[4],d[2],d[3],gb,d[1]);case
8:var
q=d[4],r=d[3],s=d[2],o=d[1];if(typeof
s==="number"){if(typeof
r==="number")return r?function(d,b){return e(c,[4,a,_(o,d,b)],q)}:function(b){return e(c,[4,a,_(o,bv(o),b)],q)};var
ag=r[1];return function(b){return e(c,[4,a,_(o,ag,b)],q)}}else{if(0===s[0]){var
y=s[2],z=s[1];if(typeof
r==="number")return r?function(d,b){return e(c,[4,a,F(z,y,_(o,d,b))],q)}:function(b){return e(c,[4,a,F(z,y,_(o,bv(o),b))],q)};var
ah=r[1];return function(b){return e(c,[4,a,F(z,y,_(o,ah,b))],q)}}var
A=s[1];if(typeof
r==="number")return r?function(f,d,b){return e(c,[4,a,F(A,f,_(o,d,b))],q)}:function(d,b){return e(c,[4,a,F(A,d,_(o,bv(o),b))],q)};var
ai=r[1];return function(d,b){return e(c,[4,a,F(A,d,_(o,ai,b))],q)}}case
9:return bx(c,a,d[2],d[1],el);case
10:var
a=[7,a],d=d[1];continue;case
11:var
a=[2,a,d[1]],d=d[2];continue;case
12:var
a=[3,a,d[1]],d=d[2];continue;case
13:var
R=d[3],S=d[2],B=cu(16);bw(B,S);var
I=cw(B);return function(b){return e(c,[4,a,I],R)};case
14:var
T=d[3],U=d[2];return function(d){var
f=d[1],b=i(f,l(p(U)));if(typeof
b[2]==="number")return e(c,a,k(b[1],T));throw u};case
15:var
V=d[1];return function(d,b){return e(c,[6,a,function(a){return K(d,a,b)}],V)};case
16:var
W=d[1];return function(b){return e(c,[6,a,b],W)};case
17:var
a=[0,a,d[1]],d=d[2];continue;case
18:var
w=d[1];if(0===w[0]){var
X=d[2],Y=w[1][1],Z=0,c=function(b,c,d){return function(a){return e(c,[1,b,[0,a]],d)}}(a,c,X),a=Z,d=Y;continue}var
$=d[2],aa=w[1][1],ab=0,c=function(b,c,d){return function(a){return e(c,[1,b,[1,a]],d)}}(a,c,$),a=ab,d=aa;continue;case
19:throw[0,m,gh];case
20:var
ac=d[3],ad=[8,a,gi];return function(a){return e(c,ad,ac)};case
21:var
ae=d[2];return function(b){return e(c,[4,a,bm(gj,b)],ae)};case
22:var
af=d[1];return function(b){return e(c,[5,a,b],af)};case
23:var
g=d[2],v=d[1];if(typeof
v==="number")switch(v){case
0:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
1:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
2:throw[0,m,gk];default:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g])}else
switch(v[0]){case
0:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
1:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
2:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
3:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
4:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
5:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
6:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
7:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
8:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case
9:var
H=v[2];return f<50?bS(f+1|0,c,a,H,g):j(bS,[0,c,a,H,g]);case
10:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);default:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g])}default:var
C=d[3],E=d[1],G=b(d[2],0);return f<50?bR(f+1|0,c,a,C,E,G):j(bR,[0,c,a,C,E,G])}}function
bS(e,d,c,a,b){if(typeof
a==="number")return e<50?h(e+1|0,d,c,b):j(h,[0,d,c,b]);else
switch(a[0]){case
0:var
f=a[1];return function(a){return I(d,c,f,b)};case
1:var
g=a[1];return function(a){return I(d,c,g,b)};case
2:var
i=a[1];return function(a){return I(d,c,i,b)};case
3:var
k=a[1];return function(a){return I(d,c,k,b)};case
4:var
l=a[1];return function(a){return I(d,c,l,b)};case
5:var
n=a[1];return function(a){return I(d,c,n,b)};case
6:var
o=a[1];return function(a){return I(d,c,o,b)};case
7:var
q=a[1];return function(a){return I(d,c,q,b)};case
8:var
s=a[2];return function(a){return I(d,c,s,b)};case
9:var
t=a[3],u=a[2],v=r(p(a[1]),u);return function(a){return I(d,c,A(v,t),b)};case
10:var
w=a[1];return function(e,a){return I(d,c,w,b)};case
11:var
x=a[1];return function(a){return I(d,c,x,b)};case
12:var
y=a[1];return function(a){return I(d,c,y,b)};case
13:throw[0,m,gl];default:throw[0,m,gm]}}function
h(d,b,e,a){var
c=[8,e,gn];return d<50?aU(d+1|0,b,c,a):j(aU,[0,b,c,a])}function
bR(h,c,f,a,e,d){if(e){var
i=e[1];return function(e){return gg(c,f,a,i,b(d,e))}}var
g=[4,f,d];return h<50?aU(h+1|0,c,g,a):j(aU,[0,c,g,a])}function
e(a,b,c){return a5(aU(0,a,b,c))}function
I(a,b,c,d){return a5(bS(0,a,b,c,d))}function
gg(a,b,c,d,e){return a5(bR(0,a,b,c,d,e))}function
bx(g,f,d,a,c){if(typeof
a==="number")return function(a){return e(g,[4,f,b(c,a)],d)};else{if(0===a[0]){var
h=a[2],i=a[1];return function(a){return e(g,[4,f,F(i,h,b(c,a))],d)}}var
j=a[1];return function(h,a){return e(g,[4,f,F(j,h,b(c,a))],d)}}}function
a$(g,f,d,h,c,b,a){if(typeof
h==="number"){if(typeof
c==="number")return c?function(h,c){return e(g,[4,f,av(h,K(b,a,c))],d)}:function(c){return e(g,[4,f,K(b,a,c)],d)};var
l=c[1];return function(c){return e(g,[4,f,av(l,K(b,a,c))],d)}}else{if(0===h[0]){var
i=h[2],j=h[1];if(typeof
c==="number")return c?function(h,c){return e(g,[4,f,F(j,i,av(h,K(b,a,c)))],d)}:function(c){return e(g,[4,f,F(j,i,K(b,a,c))],d)};var
m=c[1];return function(c){return e(g,[4,f,F(j,i,av(m,K(b,a,c)))],d)}}var
k=h[1];if(typeof
c==="number")return c?function(i,h,c){return e(g,[4,f,F(k,i,av(h,K(b,a,c)))],d)}:function(h,c){return e(g,[4,f,F(k,h,K(b,a,c))],d)};var
n=c[1];return function(h,c){return e(g,[4,f,F(k,h,av(n,K(b,a,c)))],d)}}}function
$(c,f){var
a=f;for(;;)if(typeof
a==="number")return 0;else
switch(a[0]){case
0:var
g=a[1],h=cx(a[2]);$(c,g);return aK(c,h);case
1:var
d=a[2],e=a[1];if(0===d[0]){var
i=d[1];$(c,e);aK(c,go);var
a=i;continue}var
j=d[1];$(c,e);aK(c,gp);var
a=j;continue;case
6:var
m=a[2];$(c,a[1]);return b(m,c);case
7:$(c,a[1]);return bq(c);case
8:var
n=a[2];$(c,a[1]);return al(n);case
2:case
4:var
k=a[2];$(c,a[1]);return aK(c,k);default:var
l=a[2];$(c,a[1]);return ed(c,l)}}function
ah(c,g){var
a=g;for(;;)if(typeof
a==="number")return 0;else
switch(a[0]){case
0:var
h=a[1],i=cx(a[2]);ah(c,h);return aM(c,i);case
1:var
e=a[2],f=a[1];if(0===e[0]){var
j=e[1];ah(c,f);aM(c,gq);var
a=j;continue}var
k=e[1];ah(c,f);aM(c,gr);var
a=k;continue;case
6:var
o=a[2];ah(c,a[1]);return aM(c,b(o,0));case
7:var
a=a[1];continue;case
8:var
p=a[2];ah(c,a[1]);return al(p);case
2:case
4:var
l=a[2];ah(c,a[1]);return aM(c,l);default:var
m=a[2];ah(c,a[1]);var
d=c[2];if(c[3]<=d)ct(c,1);n(c[1],d,m);c[2]=d+1|0;return 0}}function
cA(d,c){var
a=c[1],b=0;return e(function(a){$(d,a);return 0},b,a)}function
by(f,a){var
c=a[1];return e(function(e){var
g=64,c=aL<64?aL:g,d=t(c),a=[0,d,0,c,d];ah(a,e);return b(f,cq(a[1],0,a[2]))},0,c)}function
P(a){return by(function(a){return a},a)}var
bz=[0,0];function
bB(i,h){var
a=i[1+h];if(1-(typeof
a==="number"?1:0)){if(br(a)===bg)return b(P(gs),a);if(br(a)===253){var
d=b8(ep,a),c=0,g=x(d);for(;;){if(g<=c)return a7(d,eo);var
e=H(d,c),f=0;if(48<=e){if(!(58<=e))f=1}else
if(45===e)f=1;if(f){var
c=c+1|0;continue}return d}}return gt}return b(P(gu),a)}function
cB(b,a){if(b.length-1<=a)return gv;var
c=cB(b,a+1|0),d=bB(b,a);return K(P(gw),d,c)}function
bC(a){function
p(f){var
c=f;for(;;){if(c){var
g=c[2],h=c[1];try{var
e=0,d=b(h,a);e=1}catch(a){}if(e&&d)return[0,d[1]];var
c=g;continue}return 0}}var
h=p(bz[1]);if(h)return h[1];if(a===ck)return gB;if(a===cl)return gC;if(a[1]===cj){var
d=a[2],i=d[3],q=d[2],r=d[1];return bT(P(bA),r,q,i,i+5|0,gD)}if(a[1]===m){var
e=a[2],j=e[3],s=e[2],t=e[1];return bT(P(bA),t,s,j,j+6|0,gE)}if(a[1]===cn){var
f=a[2],k=f[3],u=f[2],v=f[1];return bT(P(bA),v,u,k,k+6|0,gF)}if(0===br(a)){var
g=a.length-1,w=a[1][1];if(2<g>>>0)var
l=cB(a,2),n=bB(a,1),c=K(P(gx),n,l);else
switch(g){case
0:var
c=gy;break;case
1:var
c=gz;break;default:var
o=bB(a,1),c=b(P(gA),o)}return a7(w,c)}return a[1]}function
cC(h){var
e=hR(hU(0));if([0,e]){var
g=e.length-1-1|0,q=0;if(!(g<0)){var
c=q;for(;;){var
a=hP(e,c)[1+c],f=function(a){return function(b){return b?0===a?gG:gH:0===a?gI:gJ}}(c);if(0===a[0])var
i=a[5],j=a[4],k=a[3],l=a[6]?gK:gM,m=a[2],n=a[7],o=f(a[1]),d=[0,hG(P(gL),o,n,m,l,k,j,i)];else
if(a[1])var
d=0;else
var
p=f(0),d=[0,b(P(gN),p)];if(d){var
r=d[1];b(cA(h,gO),r)}var
s=c+1|0;if(g!==c){var
c=s;continue}break}}return 0}return cA(h,gP)}function
cD(a){bz[1]=[0,a,bz[1]];return 0}function
cE(b,a){var
c=br(a)===v?a:a[1];return iq(b,c)}var
C=d,aw=null,cF=undefined;function
bD(a){return 1-(a==aw?1:0)}function
aO(a,d){var
c=1-(a==aw?1:0);return c?b(d,a):c}function
cG(a,d,c){return a==aw?b(d,0):b(c,a)}var
bE=true,aP=false,gQ=C.Array,cH=[v,gR,R(0)];cE(gS,[0,cH,{}]);(function(a){throw a});cD(function(a){return a[1]===cH?[0,at(a[2].toString())]:0});cD(function(a){return a
instanceof
gQ?0:[0,at(a.toString())]});function
cI(b,a){b.appendChild(a);return 0}function
ax(d){return function(a){if(bD(a)){var
e=b(d,a);if(1-(e|0))a.preventDefault();return e}var
f=event,c=b(d,f);if(1-(c|0))f.returnValue=c;return c}}function
cJ(a,e,k,j,i,d){if(a.addEventListener===cF){var
g="on".concat(e),h=function(a){var
b=[0,d,a,[0]];return function(a,c){return h$(b,a,c)}};a.attachEvent(g,h);return function(b){return a.detachEvent(g,h)}}var
c={};function
f(a,c){return a?b(c,a[1]):0}f(k,function(a){return c.capture=a});f(j,function(a){return c.once=a});f(i,function(a){return c.passive=a});a.addEventListener(e,d,c);return function(b){return a.removeEventListener(e,d,c)}}function
gT(a){return b(a,0)}var
ba=C.document,gU="click",gV="change",gW="input",gX="load";function
bb(a){function
c(a){return a}function
d(c){return ci(b(P(gY),a))}return cG(ba.getElementById(a2(a)),d,c)}function
cK(b,a){return b.createElement(a2(a))}var
g1=[v,g0,R(0)];C.HTMLElement===cF;var
cL=ic(0),g4=C.Worker;R(0);var
g3=b4;function
cM(b){var
a=[];iv(a,[0,a,a]);return a}var
ez=0;function
J(a){var
c=a[1];switch(c[0]){case
0:return a;case
1:return a;case
2:return a;default:var
d=c[1],b=J(d);if(1-(b===d?1:0))a[1]=[3,b];return b}}function
bF(a,b){a[1]=b;return a}var
ai=[0,ez];function
cN(b,a){return typeof
b==="number"?a:typeof
a==="number"?b:[0,b,a]}function
bG(a){if(typeof
a!=="number")switch(a[0]){case
0:var
b=a[2],c=bG(a[1]);return cN(c,bG(b));case
2:if(!a[1][1])return 0;break}return a}function
bc(b,e){var
c=[1,e],a=b[1],d=typeof
a==="number"?c:[0,c,a];b[1]=d;return 0}var
aQ=[0,function(a){co(g5);co(bC(a));ed(aJ,10);cC(aJ);bq(aJ);cp(0);return iu(2)}];function
bH(c,a){try{var
d=b(c,a);return d}catch(a){a=aI(a);return b(aQ[1],a)}}var
aR=[v,g6,R(0)];function
cO(a,f){if(1===f[0])var
l=f[1]===aR?1:0,h=l;else
var
h=0;if(h){var
i=a[2],g=function(d,g,f){var
b=g,a=f;for(;;)if(typeof
b==="number")return d<50?e(d+1|0,a):j(e,[0,a]);else
switch(b[0]){case
0:var
h=[0,b[2],a],b=b[1],a=h;continue;case
1:var
i=b[2];ai[1]=b[1];bH(i,0);return d<50?e(d+1|0,a):j(e,[0,a]);default:var
c=b[1];if(c[4]){c[4]=0;c[1][2]=c[2];c[2][1]=c[1]}return d<50?e(d+1|0,a):j(e,[0,a])}},e=function(d,a){if(a){var
b=a[2],c=a[1];return d<50?g(d+1|0,c,b):j(g,[0,c,b])}return 0};(function(a,b){return a5(g(0,a,b))}(i,0))}var
k=a[1];function
c(c,i,h){var
e=i,a=h;for(;;)if(typeof
e==="number")return c<50?d(c+1|0,a):j(d,[0,a]);else
switch(e[0]){case
0:var
k=[0,e[2],a],e=e[1],a=k;continue;case
1:b(e[1],f);return c<50?d(c+1|0,a):j(d,[0,a]);default:var
g=e[1][1];return g?(b(g[1],f),c<50?d(c+1|0,a):j(d,[0,a])):c<50?d(c+1|0,a):j(d,[0,a])}}function
d(e,a){if(a){var
b=a[2],d=a[1];return e<50?c(e+1|0,d,b):j(c,[0,d,b])}return 0}return function(a,b){return a5(c(0,a,b))}(k,0)}var
an=[0,0],S=[0,0,0,0],g7=42;function
cP(f){an[1]=an[1]+1|0;var
e=ai[1],g=b(f,0);if(1===an[1])for(;;){if(0!==S[1]){var
a=S[2];if(a){var
c=a[1];if(a[2]){var
d=a[2];S[1]=S[1]-1|0;S[2]=d}else{S[1]=0;S[2]=0;S[3]=0}cO(c[1],c[2]);continue}throw eB}break}an[1]=an[1]-1|0;ai[1]=e;return g}function
cQ(d,c,b,a){var
e=d?d[1]:1,f=c?c[1]:g7,g=e?f<=an[1]?1:0:e;return g?cs([0,b,a],S):cP(function(c){return cO(b,a)})}function
aS(d,c,b,a){var
e=b[1][1],f=bF(b,a);cQ(d,c,e,a);return f}function
bI(d,c,e){var
f=d?d[1]:0;if(f)return b(c,0);if(42<=an[1]){var
a=b(e,0),g=a[1];cs([0,[0,[1,a[2]],0,0,0],a[3]],S);return g}return cP(function(a){return b(c,0)})}function
bJ(e,d){var
a=J(e),c=a[1];switch(c[0]){case
1:return c[1]===aR?0:b(by(al,g9),cR);case
2:aS(g_,0,a,[0,d]);return 0;default:return b(by(al,g8),cR)}}function
ay(a){return[0,[0,a]]}function
az(a){return[0,[1,a]]}var
ha=ay(0);function
bK(a){return[0,[2,[0,0,0,a,0]]]}function
bL(b){var
a=bK(1);return[0,a,a]}function
cS(b,m){var
c=J(m);if(c===b)return c;var
k=c[1];switch(k[0]){case
1:return aS(hc,0,b,c[1]);case
2:var
d=k[1],a=b[1][1],g=cN(a[1],d[1]),h=a[4]+d[4]|0;if(42<h)var
j=0,i=bG(g);else
var
j=h,i=g;var
e=d[2],f=a[2],l=typeof
f==="number"?e:typeof
e==="number"?f:[0,f,e];a[1]=i;a[2]=l;a[4]=j;a[3]=d[3];bF(c,[3,b]);return b;default:return aS(hb,0,b,c[1])}}function
bd(g,d){var
c=J(g);function
e(e){var
a=bK([0,c]),f=ai[1];return[0,a,function(c){if(1===c[0]){aS(hd,0,J(a),c);return 0}var
g=c[1];ai[1]=f;try{var
h=b(d,g),e=h}catch(a){a=aI(a);var
e=az(a)}cS(J(a),e);return 0}]}var
a=c[1];switch(a[0]){case
1:return[0,a];case
2:var
j=a[1],f=e(0),k=f[1];bc(j,f[2]);return k;default:var
h=a[1],i=function(b){var
a=e(0);return[0,a[1],a[2],c[1]]};return bI(he,function(a){return b(d,h)},i)}}function
cT(h,d){try{var
m=b(h,0),e=m}catch(a){a=aI(a);var
e=az(a)}var
a=J(e);function
f(e){var
c=bK([0,a]),f=ai[1];return[0,c,function(a){if(1===a[0]){var
g=a[1];ai[1]=f;try{var
h=b(d,g),e=h}catch(a){a=aI(a);var
e=az(a)}cS(J(c),e);return 0}aS(hf,0,J(c),a);return 0}]}var
c=a[1];switch(c[0]){case
1:var
i=c[1],j=function(c){var
b=f(0);return[0,b[1],b[2],a[1]]};return bI(hg,function(a){return b(d,i)},j);case
2:var
k=c[1],g=f(0),l=g[1];bc(k,g[2]);return l;default:return a}}function
bM(f,a){var
b=J(f)[1];switch(b[0]){case
1:if(b[1]===aR){var
g=function(b){return[0,0,function(b){return bH(a,0)},hh]};return bI(hi,function(b){return bH(a,0)},g)}return 0;case
2:var
c=b[1],d=[1,ai[1],a],e=typeof
c[2]==="number"?d:[0,d,c[2]];c[2]=e;return 0;default:return 0}}function
bN(d){try{var
f=b(d,0),c=f}catch(a){a=aI(a);var
c=az(a)}var
a=J(c)[1];switch(a[0]){case
1:return b(aQ[1],a[1]);case
2:var
e=a[1];return bc(e,function(a){return 1===a[0]?b(aQ[1],a[1]):0});default:return 0}}var
hj=[0,function(a){return 0}],T=cM(0),cU=[0,0];function
hk(d){if(T[2]===T){cU[1]=0;return 0}var
a=cM(0);a[1][2]=T[2];T[2][1]=a[1];a[1]=T[1];T[1][2]=a;T[1]=T;T[2]=T;cU[1]=0;var
b=a[2];for(;;){var
c=b!==a?1:0;if(c){if(b[4])bJ(b[3],0);var
b=b[2];continue}return c}}function
cV(e){var
b=bL(0),c=b[1],f=b[2],g=e*1000.,a=[0,0];function
h(a){return bJ(f,a)}function
d(b,g){if(b4<b)var
c=b-b4,e=g3;else
var
c=0.,e=b;var
f=c==0.?h:function(a){return d(c,a)};a[1]=[0,C.setTimeout(ea(f),e)];return 0}d(g,0);bM(c,function(d){var
b=a[1];if(b){var
c=b[1];a[1]=0;return C.clearTimeout(c)}return 0});return c}hj[1]=function(a){return 1===a?(C.setTimeout(ea(hk),0.),0):0};function
cW(a){return cL.log(a2(a))}aQ[1]=function(a){cW(hl);cW(bC(a));return cC(aJ)};function
cX(a){return bN(function(b){return bd(cV(0.),a)})}function
cY(c,a){return a?[0,b(c,a[1])]:0}function
bO(h,g,f,e){var
a=[0,aw],b=bL(0),c=b[1],i=b[2];function
d(b){return aO(a[1],gT)}bM(c,d);var
j=ax(function(a){d(0);bJ(i,a);return!!1}),k=cY(d$,f);a[1]=cJ(e,h,cY(d$,g),0,k,j);return c}function
cZ(g,a){var
h=a?a[1]:bV;return function(i,j,k,l){var
b=[0,0],c=[0,0],d=[0,az([0,bt,hm])],a=bL(0)[1];bM(a,function(g){var
e=[1,aR],b=d[1];function
f(a,l){var
g=l;for(;;){var
h=J(g),i=h[1];switch(i[0]){case
1:return a;case
2:var
j=i[1],b=j[3];if(typeof
b==="number")return 0===b?a:(bF(h,e),[0,j,a]);else{if(0===b[0]){var
g=b[1];continue}var
d=a,c=b[1];for(;;){if(c){var
k=c[2],d=f(d,c[1]),c=k;continue}return d}}default:return a}}}var
a=f(0,b);a8(function(a){return cQ(g$,0,a,e)},a);c[1]=1;return 0});function
e(m){if(c[1])return ay(0);var
f=hH(g,i,j,k);d[1]=f;return bd(f,function(d){bN(function(e){function
c(a){cL.log(a2(bC(a)));return ay(0)}return cT(function(f){b[1]++;var
c=b[1];function
e(e){return b[1]===c?K(l,d,a):ay(0)}return bd(cV(h),e)},c)});return e(0)})}bN(function(b){function
a(a){return a===aR?ay(0):az(a)}return cT(function(a){return e(b)},a)});return a}}function
hn(c,b,a){return bO(gV,c,b,a)}var
c0=globalThis;function
ho(c,b,a){return bO(gW,c,b,a)}cE(hq,[0,[v,hp,R(0)],{}]);var
hr="class",hs="href",ht=c0.document;function
c1(e,d){var
b=[0,[0,hs,d],[0,[0,"download",e],0]],f=0,c=[0,b]?b:0,a=ht.createElement("a");a8(function(d){var
b=d[2],c=d[1];return d8(c,hr)?0===b.length?0:(a.classList.add(b),0):(a.setAttribute(c,b),0)},c);a8(function(b){a.appendChild(b);return 0},f);a.click();return 0}var
aA=2*C.devicePixelRatio|0,aT=[0,0],hu=C.XMLSerializer;function
c2(c,b){var
a=[0,c,b];aT[1]=[0,a,aT[1]];return a}var
bP="generated_svg";function
c3(b,e){var
c=b.childNodes,d=c.length,f=0;if(!(d<0)){var
a=f;for(;;){var
g=function(a){b.removeChild(a);return 0};aO(c.item(a),g);var
h=a+1|0;if(d!==a){var
a=h;continue}break}}cI(b,e);return 0}function
bQ(b,a,d,c){b.postMessage(a.value);return ha}var
hv=new(C.DOMParser)();function
c4(p){var
a=new
g4("/resources/viz.js/worker.js");a.onmessage=ax(function(d){var
a=d.data,e=a[1],f=[0,hv.parseFromString(a[2],hw).documentElement,e],c=aT[1];a8(function(a){var
c=d8([0,bP],[0,a[1]]),d=a[2];return c?b(d,f):c},c);return bE});var
e=bb(hx),l=bb(hy),m=bb(hz),c=bb(hA);c2(bP,function(a){var
c=a[1],b=a[2];c3(e,c);m.onclick=ax(function(a){c1("output.dot","data:".concat("text/plain",";base64,",c0.btoa(b)));return aP});return l.onclick=ax(function(e){var
a=cK(ba,gZ);a.onload=ax(function(g){var
b=cK(ba,g2);if(1-bD(b.getContext))throw g1;var
f=b.getContext("2d"),d=c.width.baseVal.value,e=c.height.baseVal.value;a.width=aF(aA,d|0);a.height=aF(aA,e|0);b.width=aF(aA,d|0);b.height=aF(aA,e|0);f.drawImage(a,0.,0.,aA*d,aA*e);c1("output.png",b.toDataURL("image/png"));return aP});var
d=new
hu().serializeToString(c),b=C.encodeURIComponent(d);a.src="data:image/svg+xml;base64,".concat(C.btoa(C.unescape(b)));return aP})});function
n(e){cX(function(d){function
b(b,c){return bQ(a,e,b,c)}return c5(cZ(hn,hB),0,0,c,b)});cX(function(d){function
b(b,c){return bQ(a,e,b,c)}return c5(cZ(ho,hC),0,0,c,b)});var
d=J(bQ(a,e,0,0))[1];switch(d[0]){case
1:throw d[1];case
2:var
f=d[1];return bc(f,function(a){return 1===a[0]?b(aQ[1],a[1]):0});default:return 0}}var
o=c.tagName.toLowerCase()==="textarea"?c:aw;aO(o,n);var
j=ba.getElementById("btn_window");function
i(a){return[0,a]}var
d=cG(j,function(a){return 0},i);if(d){var
h=d[1],k=!!0,g=function(c,b){var
a=C.open(f,"_image",aw);aO(a,function(b){var
h=c2(bP,function(a){var
c=a[1].cloneNode(bE);c3(b.document.body,c);return 0});b.onunload=ax(function(i){var
d=0,a=aT[1];for(;;){if(a){var
e=a[2],f=a[1];if(f!==h){var
d=[0,f,d],a=e;continue}var
a=e;continue}var
b=d,c=0;for(;;){if(b){var
g=[0,b[1],c],b=b[2],c=g;continue}aT[1]=c;return aP}}});var
c=e.childNodes,d=c.length,f=0;if(!(d<0)){var
a=f;for(;;){var
g=function(a){var
c=a.cloneNode(bE);return cI(b.document.body,c)};aO(c.item(a),g);var
i=a+1|0;if(d!==a){var
a=i;continue}break}}return 0});return!!0};cJ(h,gU,[0,k],0,0,ie(function(c,a){if(bD(a)){var
d=g(c,a);if(1-(d|0))a.preventDefault();return d}var
e=event,b=g(c,e);if(1-(b|0))e.returnValue=b;return b}))}return ay(aP)}function
hD(a){return c4(0)}bd(bO(gX,0,0,C),hD);var
hE={"load":id(function(a){return c4(0)})};ia(0).generator=hE;cp(0);return}(function(){return this}()));