emblem-source 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/dist/emblem.js +139 -94
- data/dist/emblem.min.js +2 -2
- metadata +2 -2
data/dist/emblem.js
CHANGED
@@ -267,14 +267,16 @@ Emblem.Parser = (function() {
|
|
267
267
|
|
268
268
|
peg$c0 = null,
|
269
269
|
peg$c1 = "",
|
270
|
-
peg$c2 =
|
271
|
-
peg$c3 =
|
272
|
-
peg$c4 = function(c) {return c;},
|
273
|
-
peg$c5 = function(c, i) {
|
270
|
+
peg$c2 = function(c) {return c;},
|
271
|
+
peg$c3 = function(c, i) {
|
274
272
|
return new AST.ProgramNode(c, i || []);
|
275
273
|
},
|
276
|
-
peg$
|
277
|
-
peg$
|
274
|
+
peg$c4 = "=",
|
275
|
+
peg$c5 = "\"=\"",
|
276
|
+
peg$c6 = "else",
|
277
|
+
peg$c7 = "\"else\"",
|
278
|
+
peg$c8 = [],
|
279
|
+
peg$c9 = function(statements) {
|
278
280
|
// Coalesce all adjacent ContentNodes into one.
|
279
281
|
|
280
282
|
var compressedStatements = [];
|
@@ -308,24 +310,24 @@ Emblem.Parser = (function() {
|
|
308
310
|
|
309
311
|
return compressedStatements;
|
310
312
|
},
|
311
|
-
peg$
|
312
|
-
peg$
|
313
|
-
peg$
|
314
|
-
peg$
|
315
|
-
peg$
|
313
|
+
peg$c10 = "BeginStatement",
|
314
|
+
peg$c11 = function() { return []; },
|
315
|
+
peg$c12 = ">",
|
316
|
+
peg$c13 = "\">\"",
|
317
|
+
peg$c14 = function(n, params) {
|
316
318
|
return [new AST.PartialNode(n, params[0])];
|
317
319
|
},
|
318
|
-
peg$
|
319
|
-
peg$
|
320
|
-
peg$
|
321
|
-
peg$
|
320
|
+
peg$c15 = /^[a-zA-Z0-9_$-\/]/,
|
321
|
+
peg$c16 = "[a-zA-Z0-9_$-\\/]",
|
322
|
+
peg$c17 = function(s) { return new AST.PartialNameNode(s); },
|
323
|
+
peg$c18 = function(m) {
|
322
324
|
return [m];
|
323
325
|
},
|
324
|
-
peg$
|
325
|
-
peg$
|
326
|
-
peg$
|
327
|
-
peg$
|
328
|
-
peg$
|
326
|
+
peg$c19 = "/",
|
327
|
+
peg$c20 = "\"/\"",
|
328
|
+
peg$c21 = /^[A-Z]/,
|
329
|
+
peg$c22 = "[A-Z]",
|
330
|
+
peg$c23 = function(ret) {
|
329
331
|
// TODO make this configurable
|
330
332
|
var defaultCapitalizedHelper = 'view';
|
331
333
|
|
@@ -347,7 +349,7 @@ Emblem.Parser = (function() {
|
|
347
349
|
return unshiftParam(ret, defaultCapitalizedHelper);
|
348
350
|
}
|
349
351
|
},
|
350
|
-
peg$
|
352
|
+
peg$c24 = function(h, c) {
|
351
353
|
var ret = h[0];
|
352
354
|
if(c) {
|
353
355
|
ret = ret.concat(c[2]);
|
@@ -360,10 +362,8 @@ Emblem.Parser = (function() {
|
|
360
362
|
|
361
363
|
return ret;
|
362
364
|
},
|
363
|
-
peg$
|
364
|
-
peg$
|
365
|
-
peg$c25 = "=",
|
366
|
-
peg$c26 = "\"=\"",
|
365
|
+
peg$c25 = " ",
|
366
|
+
peg$c26 = "\" \"",
|
367
367
|
peg$c27 = function(h, c, multilineContent) {
|
368
368
|
// h is [[open tag content], closing tag ContentNode]
|
369
369
|
var ret = h[0];
|
@@ -853,13 +853,7 @@ Emblem.Parser = (function() {
|
|
853
853
|
s2 = peg$currPos;
|
854
854
|
s3 = peg$parseDEDENT();
|
855
855
|
if (s3 !== null) {
|
856
|
-
|
857
|
-
s4 = peg$c2;
|
858
|
-
peg$currPos += 4;
|
859
|
-
} else {
|
860
|
-
s4 = null;
|
861
|
-
if (peg$silentFails === 0) { peg$fail(peg$c3); }
|
862
|
-
}
|
856
|
+
s4 = peg$parseelse();
|
863
857
|
if (s4 !== null) {
|
864
858
|
s5 = peg$parse_();
|
865
859
|
if (s5 !== null) {
|
@@ -870,7 +864,7 @@ Emblem.Parser = (function() {
|
|
870
864
|
s8 = peg$parsecontent();
|
871
865
|
if (s8 !== null) {
|
872
866
|
peg$reportedPos = s2;
|
873
|
-
s3 = peg$
|
867
|
+
s3 = peg$c2(s8);
|
874
868
|
if (s3 === null) {
|
875
869
|
peg$currPos = s2;
|
876
870
|
s2 = s3;
|
@@ -906,7 +900,7 @@ Emblem.Parser = (function() {
|
|
906
900
|
}
|
907
901
|
if (s2 !== null) {
|
908
902
|
peg$reportedPos = s0;
|
909
|
-
s1 = peg$
|
903
|
+
s1 = peg$c3(s1,s2);
|
910
904
|
if (s1 === null) {
|
911
905
|
peg$currPos = s0;
|
912
906
|
s0 = s1;
|
@@ -925,6 +919,57 @@ Emblem.Parser = (function() {
|
|
925
919
|
return s0;
|
926
920
|
}
|
927
921
|
|
922
|
+
function peg$parseelse() {
|
923
|
+
var s0, s1, s2, s3;
|
924
|
+
|
925
|
+
s0 = peg$currPos;
|
926
|
+
s1 = peg$currPos;
|
927
|
+
if (input.charCodeAt(peg$currPos) === 61) {
|
928
|
+
s2 = peg$c4;
|
929
|
+
peg$currPos++;
|
930
|
+
} else {
|
931
|
+
s2 = null;
|
932
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
933
|
+
}
|
934
|
+
if (s2 !== null) {
|
935
|
+
s3 = peg$parse_();
|
936
|
+
if (s3 !== null) {
|
937
|
+
s2 = [s2, s3];
|
938
|
+
s1 = s2;
|
939
|
+
} else {
|
940
|
+
peg$currPos = s1;
|
941
|
+
s1 = peg$c0;
|
942
|
+
}
|
943
|
+
} else {
|
944
|
+
peg$currPos = s1;
|
945
|
+
s1 = peg$c0;
|
946
|
+
}
|
947
|
+
if (s1 === null) {
|
948
|
+
s1 = peg$c1;
|
949
|
+
}
|
950
|
+
if (s1 !== null) {
|
951
|
+
if (input.substr(peg$currPos, 4) === peg$c6) {
|
952
|
+
s2 = peg$c6;
|
953
|
+
peg$currPos += 4;
|
954
|
+
} else {
|
955
|
+
s2 = null;
|
956
|
+
if (peg$silentFails === 0) { peg$fail(peg$c7); }
|
957
|
+
}
|
958
|
+
if (s2 !== null) {
|
959
|
+
s1 = [s1, s2];
|
960
|
+
s0 = s1;
|
961
|
+
} else {
|
962
|
+
peg$currPos = s0;
|
963
|
+
s0 = peg$c0;
|
964
|
+
}
|
965
|
+
} else {
|
966
|
+
peg$currPos = s0;
|
967
|
+
s0 = peg$c0;
|
968
|
+
}
|
969
|
+
|
970
|
+
return s0;
|
971
|
+
}
|
972
|
+
|
928
973
|
function peg$parsecontent() {
|
929
974
|
var s0, s1, s2;
|
930
975
|
|
@@ -937,7 +982,7 @@ Emblem.Parser = (function() {
|
|
937
982
|
}
|
938
983
|
if (s1 !== null) {
|
939
984
|
peg$reportedPos = s0;
|
940
|
-
s1 = peg$
|
985
|
+
s1 = peg$c9(s1);
|
941
986
|
}
|
942
987
|
if (s1 === null) {
|
943
988
|
peg$currPos = s0;
|
@@ -972,7 +1017,7 @@ Emblem.Parser = (function() {
|
|
972
1017
|
peg$silentFails--;
|
973
1018
|
if (s0 === null) {
|
974
1019
|
s1 = null;
|
975
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
1020
|
+
if (peg$silentFails === 0) { peg$fail(peg$c10); }
|
976
1021
|
}
|
977
1022
|
|
978
1023
|
return s0;
|
@@ -987,7 +1032,7 @@ Emblem.Parser = (function() {
|
|
987
1032
|
s2 = peg$parseTERM();
|
988
1033
|
if (s2 !== null) {
|
989
1034
|
peg$reportedPos = s0;
|
990
|
-
s1 = peg$
|
1035
|
+
s1 = peg$c11();
|
991
1036
|
if (s1 === null) {
|
992
1037
|
peg$currPos = s0;
|
993
1038
|
s0 = s1;
|
@@ -1011,11 +1056,11 @@ Emblem.Parser = (function() {
|
|
1011
1056
|
|
1012
1057
|
s0 = peg$currPos;
|
1013
1058
|
if (input.charCodeAt(peg$currPos) === 62) {
|
1014
|
-
s1 = peg$
|
1059
|
+
s1 = peg$c12;
|
1015
1060
|
peg$currPos++;
|
1016
1061
|
} else {
|
1017
1062
|
s1 = null;
|
1018
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
1063
|
+
if (peg$silentFails === 0) { peg$fail(peg$c13); }
|
1019
1064
|
}
|
1020
1065
|
if (s1 !== null) {
|
1021
1066
|
s2 = peg$parse_();
|
@@ -1036,7 +1081,7 @@ Emblem.Parser = (function() {
|
|
1036
1081
|
s7 = peg$parseTERM();
|
1037
1082
|
if (s7 !== null) {
|
1038
1083
|
peg$reportedPos = s0;
|
1039
|
-
s1 = peg$
|
1084
|
+
s1 = peg$c14(s3,s5);
|
1040
1085
|
if (s1 === null) {
|
1041
1086
|
peg$currPos = s0;
|
1042
1087
|
s0 = s1;
|
@@ -1081,22 +1126,22 @@ Emblem.Parser = (function() {
|
|
1081
1126
|
s0 = peg$currPos;
|
1082
1127
|
s1 = peg$currPos;
|
1083
1128
|
s2 = [];
|
1084
|
-
if (peg$
|
1129
|
+
if (peg$c15.test(input.charAt(peg$currPos))) {
|
1085
1130
|
s3 = input.charAt(peg$currPos);
|
1086
1131
|
peg$currPos++;
|
1087
1132
|
} else {
|
1088
1133
|
s3 = null;
|
1089
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
1134
|
+
if (peg$silentFails === 0) { peg$fail(peg$c16); }
|
1090
1135
|
}
|
1091
1136
|
if (s3 !== null) {
|
1092
1137
|
while (s3 !== null) {
|
1093
1138
|
s2.push(s3);
|
1094
|
-
if (peg$
|
1139
|
+
if (peg$c15.test(input.charAt(peg$currPos))) {
|
1095
1140
|
s3 = input.charAt(peg$currPos);
|
1096
1141
|
peg$currPos++;
|
1097
1142
|
} else {
|
1098
1143
|
s3 = null;
|
1099
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
1144
|
+
if (peg$silentFails === 0) { peg$fail(peg$c16); }
|
1100
1145
|
}
|
1101
1146
|
}
|
1102
1147
|
} else {
|
@@ -1108,7 +1153,7 @@ Emblem.Parser = (function() {
|
|
1108
1153
|
s1 = s2;
|
1109
1154
|
if (s1 !== null) {
|
1110
1155
|
peg$reportedPos = s0;
|
1111
|
-
s1 = peg$
|
1156
|
+
s1 = peg$c17(s1);
|
1112
1157
|
}
|
1113
1158
|
if (s1 === null) {
|
1114
1159
|
peg$currPos = s0;
|
@@ -1141,7 +1186,7 @@ Emblem.Parser = (function() {
|
|
1141
1186
|
}
|
1142
1187
|
if (s1 !== null) {
|
1143
1188
|
peg$reportedPos = s0;
|
1144
|
-
s1 = peg$
|
1189
|
+
s1 = peg$c18(s1);
|
1145
1190
|
}
|
1146
1191
|
if (s1 === null) {
|
1147
1192
|
peg$currPos = s0;
|
@@ -1227,7 +1272,7 @@ Emblem.Parser = (function() {
|
|
1227
1272
|
}
|
1228
1273
|
if (s3 !== null) {
|
1229
1274
|
peg$reportedPos = s0;
|
1230
|
-
s1 = peg$
|
1275
|
+
s1 = peg$c11();
|
1231
1276
|
if (s1 === null) {
|
1232
1277
|
peg$currPos = s0;
|
1233
1278
|
s0 = s1;
|
@@ -1255,17 +1300,17 @@ Emblem.Parser = (function() {
|
|
1255
1300
|
|
1256
1301
|
s0 = peg$currPos;
|
1257
1302
|
if (input.charCodeAt(peg$currPos) === 47) {
|
1258
|
-
s1 = peg$
|
1303
|
+
s1 = peg$c19;
|
1259
1304
|
peg$currPos++;
|
1260
1305
|
} else {
|
1261
1306
|
s1 = null;
|
1262
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
1307
|
+
if (peg$silentFails === 0) { peg$fail(peg$c20); }
|
1263
1308
|
}
|
1264
1309
|
if (s1 !== null) {
|
1265
1310
|
s2 = peg$parsecommentContent();
|
1266
1311
|
if (s2 !== null) {
|
1267
1312
|
peg$reportedPos = s0;
|
1268
|
-
s1 = peg$
|
1313
|
+
s1 = peg$c11();
|
1269
1314
|
if (s1 === null) {
|
1270
1315
|
peg$currPos = s0;
|
1271
1316
|
s0 = s1;
|
@@ -1301,12 +1346,12 @@ Emblem.Parser = (function() {
|
|
1301
1346
|
s0 = peg$currPos;
|
1302
1347
|
s1 = peg$currPos;
|
1303
1348
|
peg$silentFails++;
|
1304
|
-
if (peg$
|
1349
|
+
if (peg$c21.test(input.charAt(peg$currPos))) {
|
1305
1350
|
s2 = input.charAt(peg$currPos);
|
1306
1351
|
peg$currPos++;
|
1307
1352
|
} else {
|
1308
1353
|
s2 = null;
|
1309
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
1354
|
+
if (peg$silentFails === 0) { peg$fail(peg$c22); }
|
1310
1355
|
}
|
1311
1356
|
peg$silentFails--;
|
1312
1357
|
if (s2 !== null) {
|
@@ -1319,7 +1364,7 @@ Emblem.Parser = (function() {
|
|
1319
1364
|
s2 = peg$parsemustacheMaybeBlock();
|
1320
1365
|
if (s2 !== null) {
|
1321
1366
|
peg$reportedPos = s0;
|
1322
|
-
s1 = peg$
|
1367
|
+
s1 = peg$c23(s2);
|
1323
1368
|
if (s1 === null) {
|
1324
1369
|
peg$currPos = s0;
|
1325
1370
|
s0 = s1;
|
@@ -1385,7 +1430,7 @@ Emblem.Parser = (function() {
|
|
1385
1430
|
}
|
1386
1431
|
if (s4 !== null) {
|
1387
1432
|
peg$reportedPos = s0;
|
1388
|
-
s1 = peg$
|
1433
|
+
s1 = peg$c24(s1,s4);
|
1389
1434
|
if (s1 === null) {
|
1390
1435
|
peg$currPos = s0;
|
1391
1436
|
s0 = s1;
|
@@ -1419,21 +1464,21 @@ Emblem.Parser = (function() {
|
|
1419
1464
|
s1 = peg$parsehtmlTagAndOptionalAttributes();
|
1420
1465
|
if (s1 !== null) {
|
1421
1466
|
if (input.charCodeAt(peg$currPos) === 32) {
|
1422
|
-
s2 = peg$
|
1467
|
+
s2 = peg$c25;
|
1423
1468
|
peg$currPos++;
|
1424
1469
|
} else {
|
1425
1470
|
s2 = null;
|
1426
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
1471
|
+
if (peg$silentFails === 0) { peg$fail(peg$c26); }
|
1427
1472
|
}
|
1428
1473
|
if (s2 === null) {
|
1429
1474
|
s2 = peg$currPos;
|
1430
1475
|
peg$silentFails++;
|
1431
1476
|
if (input.charCodeAt(peg$currPos) === 61) {
|
1432
|
-
s3 = peg$
|
1477
|
+
s3 = peg$c4;
|
1433
1478
|
peg$currPos++;
|
1434
1479
|
} else {
|
1435
1480
|
s3 = null;
|
1436
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
1481
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
1437
1482
|
}
|
1438
1483
|
peg$silentFails--;
|
1439
1484
|
if (s3 !== null) {
|
@@ -1652,11 +1697,11 @@ Emblem.Parser = (function() {
|
|
1652
1697
|
|
1653
1698
|
s0 = peg$currPos;
|
1654
1699
|
if (input.charCodeAt(peg$currPos) === 62) {
|
1655
|
-
s1 = peg$
|
1700
|
+
s1 = peg$c12;
|
1656
1701
|
peg$currPos++;
|
1657
1702
|
} else {
|
1658
1703
|
s1 = null;
|
1659
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
1704
|
+
if (peg$silentFails === 0) { peg$fail(peg$c13); }
|
1660
1705
|
}
|
1661
1706
|
if (s1 === null) {
|
1662
1707
|
s1 = peg$c1;
|
@@ -1940,11 +1985,11 @@ Emblem.Parser = (function() {
|
|
1940
1985
|
s2 = peg$currPos;
|
1941
1986
|
peg$silentFails++;
|
1942
1987
|
if (input.charCodeAt(peg$currPos) === 61) {
|
1943
|
-
s3 = peg$
|
1988
|
+
s3 = peg$c4;
|
1944
1989
|
peg$currPos++;
|
1945
1990
|
} else {
|
1946
1991
|
s3 = null;
|
1947
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
1992
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
1948
1993
|
}
|
1949
1994
|
peg$silentFails--;
|
1950
1995
|
if (s3 === null) {
|
@@ -2005,11 +2050,11 @@ Emblem.Parser = (function() {
|
|
2005
2050
|
s3 = peg$parsekey();
|
2006
2051
|
if (s3 !== null) {
|
2007
2052
|
if (input.charCodeAt(peg$currPos) === 61) {
|
2008
|
-
s4 = peg$
|
2053
|
+
s4 = peg$c4;
|
2009
2054
|
peg$currPos++;
|
2010
2055
|
} else {
|
2011
2056
|
s4 = null;
|
2012
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
2057
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
2013
2058
|
}
|
2014
2059
|
if (s4 !== null) {
|
2015
2060
|
s5 = peg$parsepathIdNode();
|
@@ -2033,11 +2078,11 @@ Emblem.Parser = (function() {
|
|
2033
2078
|
s3 = peg$parsekey();
|
2034
2079
|
if (s3 !== null) {
|
2035
2080
|
if (input.charCodeAt(peg$currPos) === 61) {
|
2036
|
-
s4 = peg$
|
2081
|
+
s4 = peg$c4;
|
2037
2082
|
peg$currPos++;
|
2038
2083
|
} else {
|
2039
2084
|
s4 = null;
|
2040
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
2085
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
2041
2086
|
}
|
2042
2087
|
if (s4 !== null) {
|
2043
2088
|
s5 = peg$parsestringNode();
|
@@ -2061,11 +2106,11 @@ Emblem.Parser = (function() {
|
|
2061
2106
|
s3 = peg$parsekey();
|
2062
2107
|
if (s3 !== null) {
|
2063
2108
|
if (input.charCodeAt(peg$currPos) === 61) {
|
2064
|
-
s4 = peg$
|
2109
|
+
s4 = peg$c4;
|
2065
2110
|
peg$currPos++;
|
2066
2111
|
} else {
|
2067
2112
|
s4 = null;
|
2068
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
2113
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
2069
2114
|
}
|
2070
2115
|
if (s4 !== null) {
|
2071
2116
|
s5 = peg$parseintegerNode();
|
@@ -2089,11 +2134,11 @@ Emblem.Parser = (function() {
|
|
2089
2134
|
s3 = peg$parsekey();
|
2090
2135
|
if (s3 !== null) {
|
2091
2136
|
if (input.charCodeAt(peg$currPos) === 61) {
|
2092
|
-
s4 = peg$
|
2137
|
+
s4 = peg$c4;
|
2093
2138
|
peg$currPos++;
|
2094
2139
|
} else {
|
2095
2140
|
s4 = null;
|
2096
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
2141
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
2097
2142
|
}
|
2098
2143
|
if (s4 !== null) {
|
2099
2144
|
s5 = peg$parsebooleanNode();
|
@@ -2746,11 +2791,11 @@ Emblem.Parser = (function() {
|
|
2746
2791
|
}
|
2747
2792
|
if (s1 !== null) {
|
2748
2793
|
if (input.charCodeAt(peg$currPos) === 32) {
|
2749
|
-
s2 = peg$
|
2794
|
+
s2 = peg$c25;
|
2750
2795
|
peg$currPos++;
|
2751
2796
|
} else {
|
2752
2797
|
s2 = null;
|
2753
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
2798
|
+
if (peg$silentFails === 0) { peg$fail(peg$c26); }
|
2754
2799
|
}
|
2755
2800
|
if (s2 === null) {
|
2756
2801
|
s2 = peg$c1;
|
@@ -3617,11 +3662,11 @@ Emblem.Parser = (function() {
|
|
3617
3662
|
}
|
3618
3663
|
if (s1 !== null) {
|
3619
3664
|
if (input.charCodeAt(peg$currPos) === 32) {
|
3620
|
-
s2 = peg$
|
3665
|
+
s2 = peg$c25;
|
3621
3666
|
peg$currPos++;
|
3622
3667
|
} else {
|
3623
3668
|
s2 = null;
|
3624
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3669
|
+
if (peg$silentFails === 0) { peg$fail(peg$c26); }
|
3625
3670
|
}
|
3626
3671
|
if (s2 === null) {
|
3627
3672
|
s2 = peg$c1;
|
@@ -3646,19 +3691,19 @@ Emblem.Parser = (function() {
|
|
3646
3691
|
if (s0 === null) {
|
3647
3692
|
s0 = peg$currPos;
|
3648
3693
|
if (input.charCodeAt(peg$currPos) === 61) {
|
3649
|
-
s1 = peg$
|
3694
|
+
s1 = peg$c4;
|
3650
3695
|
peg$currPos++;
|
3651
3696
|
} else {
|
3652
3697
|
s1 = null;
|
3653
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3698
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
3654
3699
|
}
|
3655
3700
|
if (s1 !== null) {
|
3656
3701
|
if (input.charCodeAt(peg$currPos) === 32) {
|
3657
|
-
s2 = peg$
|
3702
|
+
s2 = peg$c25;
|
3658
3703
|
peg$currPos++;
|
3659
3704
|
} else {
|
3660
3705
|
s2 = null;
|
3661
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3706
|
+
if (peg$silentFails === 0) { peg$fail(peg$c26); }
|
3662
3707
|
}
|
3663
3708
|
if (s2 === null) {
|
3664
3709
|
s2 = peg$c1;
|
@@ -3872,21 +3917,21 @@ Emblem.Parser = (function() {
|
|
3872
3917
|
s0 = peg$currPos;
|
3873
3918
|
s1 = [];
|
3874
3919
|
if (input.charCodeAt(peg$currPos) === 32) {
|
3875
|
-
s2 = peg$
|
3920
|
+
s2 = peg$c25;
|
3876
3921
|
peg$currPos++;
|
3877
3922
|
} else {
|
3878
3923
|
s2 = null;
|
3879
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3924
|
+
if (peg$silentFails === 0) { peg$fail(peg$c26); }
|
3880
3925
|
}
|
3881
3926
|
if (s2 !== null) {
|
3882
3927
|
while (s2 !== null) {
|
3883
3928
|
s1.push(s2);
|
3884
3929
|
if (input.charCodeAt(peg$currPos) === 32) {
|
3885
|
-
s2 = peg$
|
3930
|
+
s2 = peg$c25;
|
3886
3931
|
peg$currPos++;
|
3887
3932
|
} else {
|
3888
3933
|
s2 = null;
|
3889
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3934
|
+
if (peg$silentFails === 0) { peg$fail(peg$c26); }
|
3890
3935
|
}
|
3891
3936
|
}
|
3892
3937
|
} else {
|
@@ -4053,11 +4098,11 @@ Emblem.Parser = (function() {
|
|
4053
4098
|
s1 = peg$parseknownEvent();
|
4054
4099
|
if (s1 !== null) {
|
4055
4100
|
if (input.charCodeAt(peg$currPos) === 61) {
|
4056
|
-
s2 = peg$
|
4101
|
+
s2 = peg$c4;
|
4057
4102
|
peg$currPos++;
|
4058
4103
|
} else {
|
4059
4104
|
s2 = null;
|
4060
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4105
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
4061
4106
|
}
|
4062
4107
|
if (s2 !== null) {
|
4063
4108
|
s3 = peg$parseactionValue();
|
@@ -4105,11 +4150,11 @@ Emblem.Parser = (function() {
|
|
4105
4150
|
s5 = peg$parseboundAttributeValueChar();
|
4106
4151
|
if (s5 === null) {
|
4107
4152
|
if (input.charCodeAt(peg$currPos) === 32) {
|
4108
|
-
s5 = peg$
|
4153
|
+
s5 = peg$c25;
|
4109
4154
|
peg$currPos++;
|
4110
4155
|
} else {
|
4111
4156
|
s5 = null;
|
4112
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4157
|
+
if (peg$silentFails === 0) { peg$fail(peg$c26); }
|
4113
4158
|
}
|
4114
4159
|
}
|
4115
4160
|
if (s5 !== null) {
|
@@ -4118,11 +4163,11 @@ Emblem.Parser = (function() {
|
|
4118
4163
|
s5 = peg$parseboundAttributeValueChar();
|
4119
4164
|
if (s5 === null) {
|
4120
4165
|
if (input.charCodeAt(peg$currPos) === 32) {
|
4121
|
-
s5 = peg$
|
4166
|
+
s5 = peg$c25;
|
4122
4167
|
peg$currPos++;
|
4123
4168
|
} else {
|
4124
4169
|
s5 = null;
|
4125
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4170
|
+
if (peg$silentFails === 0) { peg$fail(peg$c26); }
|
4126
4171
|
}
|
4127
4172
|
}
|
4128
4173
|
}
|
@@ -4200,11 +4245,11 @@ Emblem.Parser = (function() {
|
|
4200
4245
|
s1 = peg$parsekey();
|
4201
4246
|
if (s1 !== null) {
|
4202
4247
|
if (input.charCodeAt(peg$currPos) === 61) {
|
4203
|
-
s2 = peg$
|
4248
|
+
s2 = peg$c4;
|
4204
4249
|
peg$currPos++;
|
4205
4250
|
} else {
|
4206
4251
|
s2 = null;
|
4207
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4252
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
4208
4253
|
}
|
4209
4254
|
if (s2 !== null) {
|
4210
4255
|
s3 = peg$parseboundAttributeValue();
|
@@ -4273,11 +4318,11 @@ Emblem.Parser = (function() {
|
|
4273
4318
|
s1 = peg$parsekey();
|
4274
4319
|
if (s1 !== null) {
|
4275
4320
|
if (input.charCodeAt(peg$currPos) === 61) {
|
4276
|
-
s2 = peg$
|
4321
|
+
s2 = peg$c4;
|
4277
4322
|
peg$currPos++;
|
4278
4323
|
} else {
|
4279
4324
|
s2 = null;
|
4280
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4325
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
4281
4326
|
}
|
4282
4327
|
if (s2 !== null) {
|
4283
4328
|
s3 = peg$parsepathIdNode();
|
@@ -4313,11 +4358,11 @@ Emblem.Parser = (function() {
|
|
4313
4358
|
s1 = peg$parsekey();
|
4314
4359
|
if (s1 !== null) {
|
4315
4360
|
if (input.charCodeAt(peg$currPos) === 61) {
|
4316
|
-
s2 = peg$
|
4361
|
+
s2 = peg$c4;
|
4317
4362
|
peg$currPos++;
|
4318
4363
|
} else {
|
4319
4364
|
s2 = null;
|
4320
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4365
|
+
if (peg$silentFails === 0) { peg$fail(peg$c5); }
|
4321
4366
|
}
|
4322
4367
|
if (s2 !== null) {
|
4323
4368
|
s3 = peg$parseattributeTextNodes();
|
data/dist/emblem.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(function(e){(function(e){var t;t=function(){function e(e){this.str=e!=null?e:"",this.str=""+this.str,this.pos=0,this.lastMatch={reset:function(){return this.str=null,this.captures=[],this}}.reset(),this}return e.prototype.bol=function(){return this.pos<=0||this.str[this.pos-1]==="\n"},e.prototype.captures=function(){return this.lastMatch.captures},e.prototype.check=function(e){var t;return this.str.substr(this.pos).search(e)!==0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos).match(e),this.lastMatch.str=t[0],this.lastMatch.captures=t.slice(1),this.lastMatch.str)},e.prototype.checkUntil=function(e){var t,n;return n=this.str.substr(this.pos).search(e),n<0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos+n).match(e),this.lastMatch.captures=t.slice(1),this.lastMatch.str=this.str.substr(this.pos,n)+t[0])},e.prototype.clone=function(){var e,t,n,r;e=new this.constructor(this.str),e.pos=this.pos,e.lastMatch={},r=this.lastMatch;for(t in r)n=r[t],e.lastMatch[t]=n;return e},e.prototype.concat=function(e){return this.str+=e,this},e.prototype.eos=function(){return this.pos===this.str.length},e.prototype.exists=function(e){var t,n;return n=this.str.substr(this.pos).search(e),n<0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos+n).match(e),this.lastMatch.str=t[0],this.lastMatch.captures=t.slice(1),n)},e.prototype.getch=function(){return this.scan(/./)},e.prototype.match=function(){return this.lastMatch.str},e.prototype.matches=function(e){return this.check(e),this.matchSize()},e.prototype.matched=function(){return this.lastMatch.str!=null},e.prototype.matchSize=function(){return this.matched()?this.match().length:null},e.prototype.peek=function(e){return this.str.substr(this.pos,e)},e.prototype.pointer=function(){return this.pos},e.prototype.setPointer=function(e){return e=+e,e<0&&(e=0),e>this.str.length&&(e=this.str.length),this.pos=e},e.prototype.reset=function(){return this.lastMatch.reset(),this.pos=0,this},e.prototype.rest=function(){return this.str.substr(this.pos)},e.prototype.scan=function(e){var t;return t=this.check(e),t!=null&&(this.pos+=t.length),t},e.prototype.scanUntil=function(e){var t;return t=this.checkUntil(e),t!=null&&(this.pos+=t.length),t},e.prototype.skip=function(e){return this.scan(e),this.matchSize()},e.prototype.skipUntil=function(e){return this.scanUntil(e),this.matchSize()},e.prototype.string=function(){return this.str},e.prototype.terminate=function(){return this.pos=this.str.length,this.lastMatch.reset(),this},e.prototype.toString=function(){return"#<StringScanner "+(this.eos()?"fin":""+this.pos+"/"+this.str.length+" @ "+(this.str.length>8?""+this.str.substr(0,5)+"...":this.str))+">"},e}(),t.prototype.beginningOfLine=t.prototype.bol,t.prototype.clear=t.prototype.terminate,t.prototype.dup=t.prototype.clone,t.prototype.endOfString=t.prototype.eos,t.prototype.exist=t.prototype.exists,t.prototype.getChar=t.prototype.getch,t.prototype.position=t.prototype.pointer,t.StringScanner=t,this.StringScanner=t})(this);var t=this.StringScanner,n;this.Emblem={},n=this.Emblem,n.VERSION="0.1.13",n.Parser=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,t,n,r,i){function s(e,t){function n(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var r,i;switch(e.length){case 0:r="end of input";break;case 1:r=e[0];break;default:r=e.slice(0,-1).join(", ")+" or "+e[e.length-1]}return i=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+i+" found."}this.expected=e,this.found=t,this.offset=n,this.line=r,this.column=i,this.name="SyntaxError",this.message=s(e,t)}function r(e){function Hr(){return e.substring(Lr,kr)}function Br(){return Lr}function jr(){return Ir(Lr).line}function Fr(){return Ir(Lr).column}function Ir(t){function n(t,n){var r,i;for(r=0;r<n;r++)i=e.charAt(r),i==="\n"?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):i==="\r"||i==="\u2028"||i==="\u2029"?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return Ar!==t&&(Ar>t&&(Ar=0,Or={line:1,column:1,seenCR:!1}),Ar=t,n(Or,Ar)),Or}function qr(e){if(kr<Mr)return;kr>Mr&&(Mr=kr,_r=[]),_r.push(e)}function Rr(e){var t=0;e.sort();while(t<e.length)e[t-1]===e[t]?e.splice(t,1):t++}function Ur(){var e;return e=zr(),e}function zr(){var t,n,r,i,s,h,p,d,v;return t=kr,n=Wr(),n!==null?(r=kr,i=As(),i!==null?(e.substr(kr,4)===a?(s=a,kr+=4):(s=null,Dr===0&&qr(f)),s!==null?(h=Ps(),h!==null?(p=Ms(),p!==null?(d=ks(),d!==null?(v=Wr(),v!==null?(Lr=r,i=l(v),i===null?(kr=r,r=i):r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=u),r!==null?(Lr=t,n=c(n,r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function Wr(){var e,t,n;e=kr,t=[],n=Xr();while(n!==null)t.push(n),n=Xr();return t!==null&&(Lr=e,t=p(t)),t===null?(kr=e,e=t):e=t,e}function Xr(){var e,t;return Dr++,e=Vr(),e===null&&(e=Yr(),e===null&&(e=$r(),e===null&&(e=Kr(),e===null&&(e=_i(),e===null&&(e=Qr()))))),Dr--,e===null&&(t=null,Dr===0&&qr(d)),e}function Vr(){var e,t,n;return e=kr,t=Ps(),t!==null?(n=Ms(),n!==null?(Lr=e,t=v(),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function $r(){var t,n,r,i,s,u,a,f;t=kr,e.charCodeAt(kr)===62?(n=m,kr++):(n=null,Dr===0&&qr(g));if(n!==null){r=Ps();if(r!==null){i=Jr();if(i!==null){s=Ps();if(s!==null){u=[],a=ci();while(a!==null)u.push(a),a=ci();u!==null?(a=Ps(),a!==null?(f=Ms(),f!==null?(Lr=t,n=y(i,u),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;return t}function Jr(){var t,n,r,i;t=kr,n=kr,r=[],b.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(w));if(i!==null)while(i!==null)r.push(i),b.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(w));else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=E(n)),n===null?(kr=t,t=n):t=n,t}function Kr(){var e;return e=ti(),e===null&&(e=ni()),e}function Qr(){var e,t;return e=kr,t=si(),t===null&&(t=Zr()),t!==null&&(Lr=e,t=S(t)),t===null?(kr=e,e=t):e=t,e}function Gr(){var e,t,n,r,i,s,u,a;e=kr,t=js();if(t!==null){n=Ms();if(n!==null){r=[],i=kr,s=ks();if(s!==null){u=[],a=Gr();if(a!==null)while(a!==null)u.push(a),a=Gr();else u=o;u!==null?(a=_s(),a!==null?(s=[s,u,a],i=s):(kr=i,i=o)):(kr=i,i=o)}else kr=i,i=o;while(i!==null){r.push(i),i=kr,s=ks();if(s!==null){u=[],a=Gr();if(a!==null)while(a!==null)u.push(a),a=Gr();else u=o;u!==null?(a=_s(),a!==null?(s=[s,u,a],i=s):(kr=i,i=o)):(kr=i,i=o)}else kr=i,i=o}r!==null?(Lr=e,t=v(),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o;return e}function Yr(){var t,n,r;return t=kr,e.charCodeAt(kr)===47?(n=x,kr++):(n=null,Dr===0&&qr(T)),n!==null?(r=Gr(),r!==null?(Lr=t,n=v(),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function Zr(){var e;return e=ei(),e===null&&(e=ri()),e}function ei(){var t,n,r;return t=kr,n=kr,Dr++,N.test(e.charAt(kr))?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(C)),Dr--,r!==null?(kr=n,n=u):n=o,n!==null?(r=ri(),r!==null?(Lr=t,n=k(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function ti(){var e,t,n,r,i,s,a,f,l;e=kr,t=ts();if(t!==null){n=Ps();if(n!==null){r=Ms();if(r!==null){i=kr,s=[],a=Vr();while(a!==null)s.push(a),a=Vr();s!==null?(a=ks(),a!==null?(f=Wr(),f!==null?(l=As(),l!==null?(s=[s,a,f,l],i=s):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o),i===null&&(i=u),i!==null?(Lr=e,t=L(t,i),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o}else kr=e,e=o;return e}function ni(){var t,n,r,i,s,a,f,l;t=kr,n=ts();if(n!==null){e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O)),r===null&&(r=kr,Dr++,e.charCodeAt(kr)===61?(i=M,kr++):(i=null,Dr===0&&qr(_)),Dr--,i!==null?(kr=r,r=u):r=o);if(r!==null){i=Ai();if(i!==null){s=kr,a=ks();if(a!==null){f=[],l=Oi();if(l!==null)while(l!==null)f.push(l),l=Oi();else f=o;f!==null?(l=As(),l!==null?(a=[a,f,l],s=a):(kr=s,s=o)):(kr=s,s=o)}else kr=s,s=o;s===null&&(s=u),s!==null?(Lr=t,n=D(n,i,s),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;return t}function ri(){var e,t,n,r,i,s,a,f,l;e=ii();if(e===null){e=kr,t=oi();if(t!==null){n=Ps();if(n!==null){r=Ms();if(r!==null){i=kr,s=[],a=Vr();while(a!==null)s.push(a),a=Vr();s!==null?(a=ks(),a!==null?(f=zr(),f!==null?(l=As(),l!==null?(s=[s,a,f,l],i=s):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o),i===null&&(i=u),i!==null?(Lr=e,t=P(t,i),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o}else kr=e,e=o}return e}function ii(){var e,t,n,r;return e=kr,t=oi(),t!==null?(n=Ps(),n!==null?(r=_i(),r!==null?(Lr=e,t=H(t,r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e}function si(){var e,t,n;return e=kr,t=es(),t!==null?(n=ri(),n!==null?(Lr=e,t=B(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function oi(){var t,n,r,i,s,a;t=kr,e.charCodeAt(kr)===62?(n=m,kr++):(n=null,Dr===0&&qr(g)),n===null&&(n=u);if(n!==null){r=Ps();if(r!==null){i=bi();if(i!==null){s=[],a=ci();while(a!==null)s.push(a),a=ci();s!==null?(a=hi(),a===null&&(a=u),a!==null?(Lr=t,n=j(n,i,s,a),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;return t}function ui(){var e,t;return e=kr,t=ds(),t!==null&&(Lr=e,t=F(t)),t===null?(kr=e,e=t):e=t,e===null&&(e=kr,t=vs(),t!==null&&(Lr=e,t=I(t)),t===null?(kr=e,e=t):e=t,e===null&&(e=kr,t=ms(),t!==null&&(Lr=e,t=q(t)),t===null?(kr=e,e=t):e=t)),e}function ai(){var e;return e=fi(),e===null&&(e=li()),e}function fi(){var e,t,n,r;e=kr,t=vs();if(t!==null){n=[],r=ms();while(r!==null)n.push(r),r=ms();n!==null?(Lr=e,t=R(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o;return e}function li(){var e,t,n;e=kr,t=[],n=ms();if(n!==null)while(n!==null)t.push(n),n=ms();else t=o;return t!==null&&(Lr=e,t=U(t)),t===null?(kr=e,e=t):e=t,e}function ci(){var e,t,n;return e=kr,t=Ps(),t!==null?(n=ui(),n===null&&(n=mi()),n!==null?(Lr=e,t=z(n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function hi(){var e,t,n;e=kr,t=[],n=vi();if(n!==null)while(n!==null)t.push(n),n=vi();else t=o;return t!==null&&(Lr=e,t=W(t)),t===null?(kr=e,e=t):e=t,e}function pi(){var t,n,r,i;Dr++,e.substr(kr,2)===V?(t=V,kr+=2):(t=null,Dr===0&&qr($));if(t===null){e.charCodeAt(kr)===46?(t=J,kr++):(t=null,Dr===0&&qr(K));if(t===null){t=kr,n=kr,r=[],Q.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(G));if(i!==null)while(i!==null)r.push(i),Q.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(G));else r=o;r!==null&&(r=e.substring(n,kr)),n=r,n!==null?(r=kr,Dr++,e.charCodeAt(kr)===61?(i=M,kr++):(i=null,Dr===0&&qr(_)),Dr--,i===null?r=u:(kr=r,r=o),r!==null?(Lr=t,n=Y(n),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)}}return Dr--,t===null&&(n=null,Dr===0&&qr(X)),t}function di(){var e,t;return Dr++,e=ys(),Dr--,e===null&&(t=null,Dr===0&&qr(Z)),e}function vi(){var t,n,r,i,s,u;return t=kr,n=Ps(),n!==null?(r=kr,i=di(),i!==null?(e.charCodeAt(kr)===61?(s=M,kr++):(s=null,Dr===0&&qr(_)),s!==null?(u=bi(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=kr,i=di(),i!==null?(e.charCodeAt(kr)===61?(s=M,kr++):(s=null,Dr===0&&qr(_)),s!==null?(u=wi(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=kr,i=di(),i!==null?(e.charCodeAt(kr)===61?(s=M,kr++):(s=null,Dr===0&&qr(_)),s!==null?(u=Ei(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=kr,i=di(),i!==null?(e.charCodeAt(kr)===61?(s=M,kr++):(s=null,Dr===0&&qr(_)),s!==null?(u=Si(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o)))),r!==null?(Lr=t,n=et(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function mi(){var e;return e=bi(),e===null&&(e=wi(),e===null&&(e=Ei(),e===null&&(e=Si()))),e}function gi(){var e,t,n,r,i,s;e=kr,t=pi();if(t!==null){n=[],r=kr,i=yi(),i!==null?(s=pi(),s!==null?(Lr=r,i=tt(s),i===null?(kr=r,r=i):r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=yi(),i!==null?(s=pi(),s!==null?(Lr=r,i=tt(s),i===null?(kr=r,r=i):r=i):(kr=r,r=o)):(kr=r,r=o);n!==null?(Lr=e,t=nt(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o;return e}function yi(){var t,n;return Dr++,it.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(st)),Dr--,t===null&&(n=null,Dr===0&&qr(rt)),t}function bi(){var e,t;return e=kr,t=gi(),t!==null&&(Lr=e,t=ot(t)),t===null?(kr=e,e=t):e=t,e}function wi(){var e,t;return e=kr,t=Ni(),t!==null&&(Lr=e,t=ut(t)),t===null?(kr=e,e=t):e=t,e}function Ei(){var e,t;return e=kr,t=Ti(),t!==null&&(Lr=e,t=at(t)),t===null?(kr=e,e=t):e=t,e}function Si(){var e,t;return e=kr,t=xi(),t!==null&&(Lr=e,t=ft(t)),t===null?(kr=e,e=t):e=t,e}function xi(){var t,n;return Dr++,e.substr(kr,4)===ct?(t=ct,kr+=4):(t=null,Dr===0&&qr(ht)),t===null&&(e.substr(kr,5)===pt?(t=pt,kr+=5):(t=null,Dr===0&&qr(dt))),Dr--,t===null&&(n=null,Dr===0&&qr(lt)),t}function Ti(){var t,n,r,i;Dr++,t=kr,n=kr,r=[],mt.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(gt));if(i!==null)while(i!==null)r.push(i),mt.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(gt));else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=yt(n)),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(vt)),t}function Ni(){var t,n,r,i,s;return t=kr,n=kr,e.charCodeAt(kr)===34?(r=bt,kr++):(r=null,Dr===0&&qr(wt)),r!==null?(i=Ci(),i!==null?(e.charCodeAt(kr)===34?(s=bt,kr++):(s=null,Dr===0&&qr(wt)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o),n===null&&(n=kr,e.charCodeAt(kr)===39?(r=Et,kr++):(r=null,Dr===0&&qr(St)),r!==null?(i=ki(),i!==null?(e.charCodeAt(kr)===39?(s=Et,kr++):(s=null,Dr===0&&qr(St)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o)),n!==null&&(Lr=t,n=xt(n)),n===null?(kr=t,t=n):t=n,t}function Ci(){var t,n,r,i,s;t=kr,n=[],r=kr,i=kr,Dr++,s=Ms(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Tt.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(Nt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=kr,Dr++,s=Ms(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Tt.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(Nt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);return n!==null&&(n=e.substring(t,kr)),t=n,t}function ki(){var t,n,r,i,s;t=kr,n=[],r=kr,i=kr,Dr++,s=Ms(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Ct.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(kt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=kr,Dr++,s=Ms(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Ct.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(kt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);return n!==null&&(n=e.substring(t,kr)),t=n,t}function Li(){var t;return Lt.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(At)),t}function Ai(){var e,t,n;return e=kr,t=Ps(),t!==null?(n=si(),n!==null?(Lr=e,t=Ot(n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e===null&&(e=Di()),e}function Oi(){var e,t,n,r,i;e=kr,t=ks();if(t!==null){n=Di();if(n!==null){r=[],i=Oi();while(i!==null)r.push(i),i=Oi();r!==null?(i=_s(),i!==null?(Lr=e,t=Mt(t,n,r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o;return e===null&&(e=Di()),e}function Mi(){var t,n,r;return t=kr,_t.test(e.charAt(kr))?(n=e.charAt(kr),kr++):(n=null,Dr===0&&qr(Dt)),n!==null?(e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O)),r===null&&(r=u),r!==null?(Lr=t,n=Y(n),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t===null&&(t=kr,n=kr,Dr++,e.charCodeAt(kr)===60?(r=Pt,kr++):(r=null,Dr===0&&qr(Ht)),Dr--,r!==null?(kr=n,n=u):n=o,n!==null&&(Lr=t,n=Bt()),n===null?(kr=t,t=n):t=n),t}function _i(){var e,t,n,r,i,s,a;e=kr,t=Mi();if(t!==null){n=Di();if(n!==null){r=kr,i=ks();if(i!==null){s=[],a=Oi();while(a!==null)s.push(a),a=Oi();s!==null?(a=As(),a!==null?(i=[i,s,a],r=i):(kr=r,r=o)):(kr=r,r=o)}else kr=r,r=o;r===null&&(r=u),r!==null?(Lr=e,t=jt(t,n,r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o;return e}function Di(){var e,t,n,r,i,s;e=kr,t=Ri(),t===null&&(t=u);if(t!==null){n=[],r=kr,i=Bi(),i!==null?(s=Ri(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=Bi(),i!==null?(s=Ri(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);n!==null?(r=Ms(),r!==null?(Lr=e,t=Ft(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)}else kr=e,e=o;return e}function Pi(){var t,n,r,i;return t=kr,e.charCodeAt(kr)===34?(n=bt,kr++):(n=null,Dr===0&&qr(wt)),n!==null?(r=Hi(),r!==null?(e.charCodeAt(kr)===34?(i=bt,kr++):(i=null,Dr===0&&qr(wt)),i!==null?(Lr=t,n=It(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function Hi(){var e,t,n,r,i,s;e=kr,t=Ii(),t===null&&(t=u);if(t!==null){n=[],r=kr,i=Bi(),i!==null?(s=Ii(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=Bi(),i!==null?(s=Ii(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);n!==null?(Lr=e,t=Ft(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o;return e}function Bi(){var e;return e=Fi(),e===null&&(e=ji()),e}function ji(){var e,t,n,r,i,s;return e=kr,t=$i(),t!==null?(n=Ps(),n!==null?(r=oi(),r!==null?(i=Ps(),i!==null?(s=Qi(),s!==null?(Lr=e,t=qt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e===null&&(e=kr,t=Yi(),t!==null?(n=Ps(),n!==null?(r=oi(),r!==null?(i=Ps(),i!==null?(s=Zi(),s!==null?(Lr=e,t=qt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)),e}function Fi(){var e,t,n,r,i,s;return e=kr,t=Ji(),t!==null?(n=Ps(),n!==null?(r=oi(),r!==null?(i=Ps(),i!==null?(s=Gi(),s!==null?(Lr=e,t=Rt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e}function Ii(){var t,n,r,i;t=kr,n=kr,r=[],i=qi();if(i!==null)while(i!==null)r.push(i),i=qi();else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=Ut(n)),n===null?(kr=t,t=n):t=n,t}function qi(){var t,n,r;return t=kr,n=kr,Dr++,r=zi(),r===null&&(e.charCodeAt(kr)===34?(r=bt,kr++):(r=null,Dr===0&&qr(wt))),Dr--,r===null?n=u:(kr=n,n=o),n!==null?(e.length>kr?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(zt)),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function Ri(){var t,n,r,i;t=kr,n=kr,r=[],i=Ui();if(i!==null)while(i!==null)r.push(i),i=Ui();else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=Ut(n)),n===null?(kr=t,t=n):t=n,t}function Ui(){var t,n,r;return t=kr,n=kr,Dr++,r=zi(),Dr--,r===null?n=u:(kr=n,n=o),n!==null?(e.length>kr?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(zt)),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function zi(){var e;return e=Ji(),e===null&&(e=$i(),e===null&&(e=Yi(),e===null&&(e=_s(),e===null&&(e=Ms())))),e}function Wi(){var e,t,n,r,i,s;return e=kr,t=Vi(),t!==null?(n=Ps(),n!==null?(r=oi(),r!==null?(i=Ps(),i!==null?(s=Ki(),s!==null?(Lr=e,t=qt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e}function Xi(){var e;return e=Wi(),e===null&&(e=Fi(),e===null&&(e=ji())),e}function Vi(){var t,n;return Dr++,e.charCodeAt(kr)===123?(t=Vt,kr++):(t=null,Dr===0&&qr($t)),Dr--,t===null&&(n=null,Dr===0&&qr(Xt)),t}function $i(){var t,n;return Dr++,e.substr(kr,2)===Kt?(t=Kt,kr+=2):(t=null,Dr===0&&qr(Qt)),Dr--,t===null&&(n=null,Dr===0&&qr(Jt)),t}function Ji(){var t,n;return Dr++,e.substr(kr,3)===Yt?(t=Yt,kr+=3):(t=null,Dr===0&&qr(Zt)),Dr--,t===null&&(n=null,Dr===0&&qr(Gt)),t}function Ki(){var t,n;return Dr++,e.charCodeAt(kr)===125?(t=tn,kr++):(t=null,Dr===0&&qr(nn)),Dr--,t===null&&(n=null,Dr===0&&qr(en)),t}function Qi(){var t,n;return Dr++,e.substr(kr,2)===sn?(t=sn,kr+=2):(t=null,Dr===0&&qr(on)),Dr--,t===null&&(n=null,Dr===0&&qr(rn)),t}function Gi(){var t,n;return Dr++,e.substr(kr,3)===an?(t=an,kr+=3):(t=null,Dr===0&&qr(fn)),Dr--,t===null&&(n=null,Dr===0&&qr(un)),t}function Yi(){var t,n;return Dr++,e.substr(kr,2)===cn?(t=cn,kr+=2):(t=null,Dr===0&&qr(hn)),Dr--,t===null&&(n=null,Dr===0&&qr(ln)),t}function Zi(){var t,n;return Dr++,e.charCodeAt(kr)===125?(t=tn,kr++):(t=null,Dr===0&&qr(nn)),Dr--,t===null&&(n=null,Dr===0&&qr(pn)),t}function es(){var t,n,r;return t=kr,e.substr(kr,2)===dn?(n=dn,kr+=2):(n=null,Dr===0&&qr(vn)),n!==null?(e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O)),r===null&&(r=u),r!==null?(Lr=t,n=mn(),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t===null&&(t=kr,e.charCodeAt(kr)===61?(n=M,kr++):(n=null,Dr===0&&qr(_)),n!==null?(e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O)),r===null&&(r=u),r!==null?(Lr=t,n=gn(),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)),t}function ts(){var e,t,n,r,i,s,a;e=kr,t=kr,n=xs();if(n!==null){r=ai(),r===null&&(r=u);if(r!==null){i=[],s=Xi();while(s!==null)i.push(s),s=Xi();if(i!==null){s=[],a=ns();while(a!==null)s.push(a),a=ns();s!==null?(Lr=t,n=yn(n,r,i,s),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;if(t===null){t=kr,n=ai();if(n!==null){r=[],i=Xi();while(i!==null)r.push(i),i=Xi();if(r!==null){i=[],s=ns();while(s!==null)i.push(s),s=ns();i!==null?(Lr=t,n=bn(n,r,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}return t!==null&&(Lr=e,t=wn(t)),t===null?(kr=e,e=t):e=t,e}function ai(){var e,t,n,r;e=kr,t=[],n=kr,r=vs(),r!==null&&(Lr=n,r=En(r)),r===null?(kr=n,n=r):n=r,n===null&&(n=kr,r=ms(),r!==null&&(Lr=n,r=Sn(r)),r===null?(kr=n,n=r):n=r);if(n!==null)while(n!==null)t.push(n),n=kr,r=vs(),r!==null&&(Lr=n,r=En(r)),r===null?(kr=n,n=r):n=r,n===null&&(n=kr,r=ms(),r!==null&&(Lr=n,r=Sn(r)),r===null?(kr=n,n=r):n=r);else t=o;return t!==null&&(Lr=e,t=xn(t)),t===null?(kr=e,e=t):e=t,e}function ns(){var t,n,r;t=kr,n=[],e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O));if(r!==null)while(r!==null)n.push(r),e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O));else n=o;return n!==null?(r=os(),r===null&&(r=as(),r===null&&(r=fs(),r===null&&(r=ls()))),r!==null?(Lr=t,n=Tn(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function rs(){var t;return Nn.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Cn)),t}function is(){var e,t;return e=ss(),e===null&&(e=kr,t=bi(),t!==null&&(Lr=e,t=kn(t)),t===null?(kr=e,e=t):e=t),e}function ss(){var t,n,r,i,s;return t=kr,n=kr,e.charCodeAt(kr)===34?(r=bt,kr++):(r=null,Dr===0&&qr(wt)),r!==null?(i=oi(),i!==null?(e.charCodeAt(kr)===34?(s=bt,kr++):(s=null,Dr===0&&qr(wt)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o),n===null&&(n=kr,e.charCodeAt(kr)===39?(r=Et,kr++):(r=null,Dr===0&&qr(St)),r!==null?(i=oi(),i!==null?(e.charCodeAt(kr)===39?(s=Et,kr++):(s=null,Dr===0&&qr(St)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o)),n!==null&&(Lr=t,n=xt(n)),n===null?(kr=t,t=n):t=n,t}function os(){var t,n,r,i;return t=kr,n=Cs(),n!==null?(e.charCodeAt(kr)===61?(r=M,kr++):(r=null,Dr===0&&qr(_)),r!==null?(i=is(),i!==null?(Lr=t,n=Ln(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function us(){var t,n,r,i,s,u;t=kr,e.charCodeAt(kr)===123?(n=Vt,kr++):(n=null,Dr===0&&qr($t));if(n!==null){r=Ps();if(r!==null){i=kr,s=[],u=rs(),u===null&&(e.charCodeAt(kr)===32?(u=A,kr++):(u=null,Dr===0&&qr(O)));if(u!==null)while(u!==null)s.push(u),u=rs(),u===null&&(e.charCodeAt(kr)===32?(u=A,kr++):(u=null,Dr===0&&qr(O)));else s=o;s!==null&&(s=e.substring(i,kr)),i=s,i!==null?(s=Ps(),s!==null?(e.charCodeAt(kr)===125?(u=tn,kr++):(u=null,Dr===0&&qr(nn)),u!==null?(Lr=t,n=An(i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o;if(t===null){t=kr,n=[],r=rs();if(r!==null)while(r!==null)n.push(r),r=rs();else n=o;n!==null&&(n=e.substring(t,kr)),t=n}return t}function as(){var t,n,r,i,s,a;return t=kr,n=di(),n!==null?(e.charCodeAt(kr)===61?(r=M,kr++):(r=null,Dr===0&&qr(_)),r!==null?(i=us(),i!==null?(s=kr,Dr++,e.charCodeAt(kr)===33?(a=On,kr++):(a=null,Dr===0&&qr(Mn)),Dr--,a===null?s=u:(kr=s,s=o),s!==null?(Lr=kr,a=_n(n,i),a?a=u:a=o,a!==null?(Lr=t,n=Dn(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function fs(){var t,n,r,i;return t=kr,n=di(),n!==null?(e.charCodeAt(kr)===61?(r=M,kr++):(r=null,Dr===0&&qr(_)),r!==null?(i=bi(),i!==null?(Lr=t,n=Pn(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function ls(){var t,n,r,i;return t=kr,n=di(),n!==null?(e.charCodeAt(kr)===61?(r=M,kr++):(r=null,Dr===0&&qr(_)),r!==null?(i=Pi(),i!==null?(Lr=t,n=Hn(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function cs(){var t,n,r;t=kr,n=[],r=ps();while(r!==null)n.push(r),r=ps();return n!==null&&(n=e.substring(t,kr)),t=n,t}function hs(){var e;return e=Ni(),e===null&&(e=mi()),e}function ps(){var t;return t=Li(),t===null&&(mt.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(gt)),t===null&&(e.charCodeAt(kr)===95?(t=Bn,kr++):(t=null,Dr===0&&qr(jn)),t===null&&(e.charCodeAt(kr)===45?(t=Fn,kr++):(t=null,Dr===0&&qr(In))))),t}function ds(){var t,n,r;return t=kr,e.charCodeAt(kr)===37?(n=qn,kr++):(n=null,Dr===0&&qr(Rn)),n!==null?(r=gs(),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function vs(){var t,n,r;return t=kr,e.charCodeAt(kr)===35?(n=Un,kr++):(n=null,Dr===0&&qr(zn)),n!==null?(r=gs(),r!==null?(Lr=t,n=Wn(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function ms(){var t,n,r;return t=kr,e.charCodeAt(kr)===46?(n=J,kr++):(n=null,Dr===0&&qr(K)),n!==null?(r=gs(),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function gs(){var e,t;return Dr++,e=ys(),Dr--,e===null&&(t=null,Dr===0&&qr(Xn)),e}function ys(){var t,n,r,i,s;t=kr,n=ws();if(n!==null){r=kr,i=[],s=bs();while(s!==null)i.push(s),s=bs();i!==null&&(i=e.substring(r,kr)),r=i,r!==null?(Lr=t,n=Vn(n,r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o;return t}function bs(){var t;return $n.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Jn)),t===null&&(t=Es()),t}function ws(){var t;return Kn.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Qn)),t===null&&(t=Es()),t}function Es(){var t;return Gn.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Yn)),t}function Ss(){var t,n,r;t=kr,n=[],r=Ns();if(r!==null)while(r!==null)n.push(r),r=Ns();else n=o;return n!==null&&(n=e.substring(t,kr)),t=n,t}function xs(){var t,n,r;return Dr++,t=kr,e.charCodeAt(kr)===37?(n=qn,kr++):(n=null,Dr===0&&qr(Rn)),n!==null?(r=Ss(),r!==null?(Lr=t,n=Y(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t===null&&(t=Ts()),Dr--,t===null&&(n=null,Dr===0&&qr(Zn)),t}function Ts(){var e,t,n;return e=kr,t=Ss(),t!==null?(Lr=kr,n=er(t),n?n=u:n=o,n!==null?(Lr=e,t=tr(t),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function Ns(){var t;return nr.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(rr)),t}function Cs(){var e,t,n;return Dr++,e=kr,t=Ss(),t!==null?(Lr=kr,n=sr(t),n?n=u:n=o,n!==null?(Lr=e,t=tr(t),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),Dr--,e===null&&(t=null,Dr===0&&qr(ir)),e}function ks(){var e,t,n;return e=kr,t=Ls(),t!==null?(n=Ds(),n!==null?(Lr=e,t=Y(n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function Ls(){var t,n;return Dr++,t=kr,e.charCodeAt(kr)===61423?(n=ur,kr++):(n=null,Dr===0&&qr(ar)),n!==null&&(Lr=t,n=fr()),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(or)),t}function As(){var t,n;return Dr++,t=kr,e.charCodeAt(kr)===61438?(n=cr,kr++):(n=null,Dr===0&&qr(hr)),n!==null&&(Lr=t,n=fr()),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(lr)),t}function Os(){var t,n;return Dr++,t=kr,e.charCodeAt(kr)===61422?(n=dr,kr++):(n=null,Dr===0&&qr(vr)),n!==null&&(Lr=t,n=fr()),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(pr)),t}function Ms(){var t,n,r;return Dr++,t=kr,e.charCodeAt(kr)===61439?(n=gr,kr++):(n=null,Dr===0&&qr(yr)),n!==null?(e.charCodeAt(kr)===10?(r=br,kr++):(r=null,Dr===0&&qr(wr)),r!==null?(n=[n,r],t=n):(kr=t,t=o)):(kr=t,t=o),Dr--,t===null&&(n=null,Dr===0&&qr(mr)),t}function _s(){var e,t;return Dr++,e=As(),e===null&&(e=Os()),Dr--,e===null&&(t=null,Dr===0&&qr(Er)),e}function Ds(){var t,n,r;Dr++,t=kr,n=[],r=Hs();if(r!==null)while(r!==null)n.push(r),r=Hs();else n=o;return n!==null&&(n=e.substring(t,kr)),t=n,Dr--,t===null&&(n=null,Dr===0&&qr(Sr)),t}function Ps(){var e,t;Dr++,e=[],t=Hs();while(t!==null)e.push(t),t=Hs();return Dr--,e===null&&(t=null,Dr===0&&qr(xr)),e}function Hs(){var t,n;return Dr++,Nr.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Cr)),Dr--,t===null&&(n=null,Dr===0&&qr(Tr)),t}function Bs(){var t,n,r;return t=kr,n=kr,Dr++,r=Ls(),r===null&&(r=As(),r===null&&(r=Ms())),Dr--,r===null?n=u:(kr=n,n=o),n!==null?(e.length>kr?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(zt)),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function js(){var t,n,r;t=kr,n=[],r=Bs();while(r!==null)n.push(r),r=Bs();return n!==null&&(n=e.substring(t,kr)),t=n,t}function Ws(e,t,n){var r=e.hash;if(n){r=r||new qs.HashNode([]);for(var i=0;i<n.length;++i)r.pairs.push(n[i])}var s=[e.id].concat(e.params);return s.unshift(new qs.IdNode([t])),new qs.MustacheNode(s,r,!e.escaped)}function Xs(e,t){var n=[];e&&n.push(e);for(var r=0;r<t.length;++r){var i=t[r];n.push(i[0]),i[1]&&n.push(i[1])}return n}function Vs(e){Fs.log(9,e)}var r=arguments.length>1?arguments[1]:{},i={start:Ur},s=Ur,o=null,u="",a="else",f='"else"',l=function(e){return e},c=function(e,t){return new qs.ProgramNode(e,t||[])},h=[],p=function(e){var t=[],n=[];for(var r=0;r<e.length;++r){var i=e[r];for(var s=0;s<i.length;++s){var o=i[s];if(o.type==="content"){o.string&&n.push(o.string);continue}n.length&&(t.push(new qs.ContentNode(n.join(""))),n=[]),t.push(o)}}return n.length&&t.push(new qs.ContentNode(n.join(""))),t},d="BeginStatement",v=function(){return[]},m=">",g='">"',y=function(e,t){return[new qs.PartialNode(e,t[0])]},b=/^[a-zA-Z0-9_$-\/]/,w="[a-zA-Z0-9_$-\\/]",E=function(e){return new qs.PartialNameNode(e)},S=function(e){return[e]},x="/",T='"/"',N=/^[A-Z]/,C="[A-Z]",k=function(e){var t="view";if(e.mustache){var n=e.mustache.id.string.charAt(0);return!Is||!n.match(/[A-Z]/)?e:(e.mustache=Ws(e.mustache,t),e)}var n=e.id.string.charAt(0);return!Is||!n.match(/[A-Z]/)?e:Ws(e,t)},L=function(e,t){var n=e[0];return t&&(n=n.concat(t[2])),e[1]&&n.push(e[1]),n},A=" ",O='" "',M="=",_='"="',D=function(e,t,n){var r=e[0];t&&(r=r.concat(t));if(n){n=n[1];for(var i=0;i<n.length;++i)r.push(new qs.ContentNode(" ")),r=r.concat(n[i])}return e[1]&&r.push(e[1]),r},P=function(e,t){if(!t)return e;var n=t[2];return new qs.BlockNode(e,n,n.inverse,e.id)},H=function(e,t){var n=new qs.ProgramNode(t,[]);return new qs.BlockNode(e,n,n.inverse,e.id)},B=function(e,t){var n=t.mustache||t;return n.escaped=e,t},j=function(e,t,n,r){if(e){var i=new qs.PartialNameNode(t.string);return new qs.PartialNode(i,n[0])}var s=[],o={},u=!1;for(var a=0;a<n.length;++a){var f=n[a],l=f[0];l=="tagName"||l=="elementId"||l=="class"?(u=!0,o[l]=o[l]||[],o[l].push(f[1])):s.push(f)}if(u){r=r||new qs.HashNode([]);for(var c in o){if(!o.hasOwnProperty(c))continue;r.pairs.push([c,new qs.StringNode(o[c].join(" "))])}}s.unshift(t);var h=new qs.MustacheNode(s,r),p=t._emblemSuffixModifier;return p==="!"?Ws(h,"unbound"):p==="?"?Ws(h,"if"):p==="^"?Ws(h,"unless"):h},F=function(e){return["tagName",e]},I=function(e){return["elementId",e]},q=function(e){return["class",e]},R=function(e,t){return[e,t]},U=function(e){return[null,e]},z=function(e){return e},W=function(e){return new qs.HashNode(e)},X="PathIdent",V="..",$='".."',J=".",K='"."',Q=/^[a-zA-Z0-9_$\-!?\^]/,G="[a-zA-Z0-9_$\\-!?\\^]",Y=function(e){return e},Z="Key",et=function(e){return[e[0],e[2]]},tt=function(e){return e},nt=function(e,t){var n=[e];for(var r=0;r<t.length;++r)n.push(t[r]);return n},rt="PathSeparator",it=/^[\/.]/,st="[\\/.]",ot=function(e){var t=e[e.length-1],n,r;if(n=t.match(/[!\?\^]$/))r=n[0],e[e.length-1]=t.slice(0,-1);var i=new qs.IdNode(e);return i._emblemSuffixModifier=r,i},ut=function(e){return new qs.StringNode(e)},at=function(e){return new qs.IntegerNode(e)},ft=function(e){return new qs.BooleanNode(e)},lt="Boolean",ct="true",ht='"true"',pt="false",dt='"false"',vt="Integer",mt=/^[0-9]/,gt="[0-9]",yt=function(e){return parseInt(e)},bt='"',wt='"\\""',Et="'",St='"\'"',xt=function(e){return e[1]},Tt=/^[^"}]/,Nt='[^"}]',Ct=/^[^'}]/,kt="[^'}]",Lt=/^[A-Za-z]/,At="[A-Za-z]",Ot=function(e){return[e]},Mt=function(e,t,n){t.unshift(new qs.ContentNode(e));for(var r=0;r<n.length;++r)t.push(new qs.ContentNode(e)),t=t.concat(n[r]),t.push("\n");return t},_t=/^[|`']/,Dt="[|`']",Pt="<",Ht='"<"',Bt=function(){return"<"},jt=function(e,t,n){(t.length||!n)&&t.push("\n");if(n){n=n[1];for(var r=0;r<n.length;++r)t=t.concat(n[r]),t.push("\n")}var i=[],s=e!=="`";for(var r=0;r<t.length;++r){var o=t[r];o=="\n"?s||i.push(new qs.ContentNode("\n")):i.push(o)}return e==="'"&&i.push(new qs.ContentNode(" ")),i},Ft=function(e,t){return Xs(e,t)},It=function(
|
2
|
-
e){return e},qt=function(e){return e.escaped=!0,e},Rt=function(e){return e.escaped=!1,e},Ut=function(e){return new
|
1
|
+
(function(e){(function(e){var t;t=function(){function e(e){this.str=e!=null?e:"",this.str=""+this.str,this.pos=0,this.lastMatch={reset:function(){return this.str=null,this.captures=[],this}}.reset(),this}return e.prototype.bol=function(){return this.pos<=0||this.str[this.pos-1]==="\n"},e.prototype.captures=function(){return this.lastMatch.captures},e.prototype.check=function(e){var t;return this.str.substr(this.pos).search(e)!==0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos).match(e),this.lastMatch.str=t[0],this.lastMatch.captures=t.slice(1),this.lastMatch.str)},e.prototype.checkUntil=function(e){var t,n;return n=this.str.substr(this.pos).search(e),n<0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos+n).match(e),this.lastMatch.captures=t.slice(1),this.lastMatch.str=this.str.substr(this.pos,n)+t[0])},e.prototype.clone=function(){var e,t,n,r;e=new this.constructor(this.str),e.pos=this.pos,e.lastMatch={},r=this.lastMatch;for(t in r)n=r[t],e.lastMatch[t]=n;return e},e.prototype.concat=function(e){return this.str+=e,this},e.prototype.eos=function(){return this.pos===this.str.length},e.prototype.exists=function(e){var t,n;return n=this.str.substr(this.pos).search(e),n<0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos+n).match(e),this.lastMatch.str=t[0],this.lastMatch.captures=t.slice(1),n)},e.prototype.getch=function(){return this.scan(/./)},e.prototype.match=function(){return this.lastMatch.str},e.prototype.matches=function(e){return this.check(e),this.matchSize()},e.prototype.matched=function(){return this.lastMatch.str!=null},e.prototype.matchSize=function(){return this.matched()?this.match().length:null},e.prototype.peek=function(e){return this.str.substr(this.pos,e)},e.prototype.pointer=function(){return this.pos},e.prototype.setPointer=function(e){return e=+e,e<0&&(e=0),e>this.str.length&&(e=this.str.length),this.pos=e},e.prototype.reset=function(){return this.lastMatch.reset(),this.pos=0,this},e.prototype.rest=function(){return this.str.substr(this.pos)},e.prototype.scan=function(e){var t;return t=this.check(e),t!=null&&(this.pos+=t.length),t},e.prototype.scanUntil=function(e){var t;return t=this.checkUntil(e),t!=null&&(this.pos+=t.length),t},e.prototype.skip=function(e){return this.scan(e),this.matchSize()},e.prototype.skipUntil=function(e){return this.scanUntil(e),this.matchSize()},e.prototype.string=function(){return this.str},e.prototype.terminate=function(){return this.pos=this.str.length,this.lastMatch.reset(),this},e.prototype.toString=function(){return"#<StringScanner "+(this.eos()?"fin":""+this.pos+"/"+this.str.length+" @ "+(this.str.length>8?""+this.str.substr(0,5)+"...":this.str))+">"},e}(),t.prototype.beginningOfLine=t.prototype.bol,t.prototype.clear=t.prototype.terminate,t.prototype.dup=t.prototype.clone,t.prototype.endOfString=t.prototype.eos,t.prototype.exist=t.prototype.exists,t.prototype.getChar=t.prototype.getch,t.prototype.position=t.prototype.pointer,t.StringScanner=t,this.StringScanner=t})(this);var t=this.StringScanner,n;this.Emblem={},n=this.Emblem,n.VERSION="0.1.13",n.Parser=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,t,n,r,i){function s(e,t){function n(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var r,i;switch(e.length){case 0:r="end of input";break;case 1:r=e[0];break;default:r=e.slice(0,-1).join(", ")+" or "+e[e.length-1]}return i=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+i+" found."}this.expected=e,this.found=t,this.offset=n,this.line=r,this.column=i,this.name="SyntaxError",this.message=s(e,t)}function r(e){function Hr(){return e.substring(Lr,kr)}function Br(){return Lr}function jr(){return Ir(Lr).line}function Fr(){return Ir(Lr).column}function Ir(t){function n(t,n){var r,i;for(r=0;r<n;r++)i=e.charAt(r),i==="\n"?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):i==="\r"||i==="\u2028"||i==="\u2029"?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return Ar!==t&&(Ar>t&&(Ar=0,Or={line:1,column:1,seenCR:!1}),Ar=t,n(Or,Ar)),Or}function qr(e){if(kr<Mr)return;kr>Mr&&(Mr=kr,_r=[]),_r.push(e)}function Rr(e){var t=0;e.sort();while(t<e.length)e[t-1]===e[t]?e.splice(t,1):t++}function Ur(){var e;return e=zr(),e}function zr(){var e,t,n,r,i,s,l,c,h;return e=kr,t=Xr(),t!==null?(n=kr,r=Os(),r!==null?(i=Wr(),i!==null?(s=Hs(),s!==null?(l=_s(),l!==null?(c=Ls(),c!==null?(h=Xr(),h!==null?(Lr=n,r=a(h),r===null?(kr=n,n=r):n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o),n===null&&(n=u),n!==null?(Lr=e,t=f(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function Wr(){var t,n,r,i;return t=kr,n=kr,e.charCodeAt(kr)===61?(r=l,kr++):(r=null,Dr===0&&qr(c)),r!==null?(i=Hs(),i!==null?(r=[r,i],n=r):(kr=n,n=o)):(kr=n,n=o),n===null&&(n=u),n!==null?(e.substr(kr,4)===h?(r=h,kr+=4):(r=null,Dr===0&&qr(p)),r!==null?(n=[n,r],t=n):(kr=t,t=o)):(kr=t,t=o),t}function Xr(){var e,t,n;e=kr,t=[],n=Vr();while(n!==null)t.push(n),n=Vr();return t!==null&&(Lr=e,t=v(t)),t===null?(kr=e,e=t):e=t,e}function Vr(){var e,t;return Dr++,e=$r(),e===null&&(e=Zr(),e===null&&(e=Jr(),e===null&&(e=Qr(),e===null&&(e=Di(),e===null&&(e=Gr()))))),Dr--,e===null&&(t=null,Dr===0&&qr(m)),e}function $r(){var e,t,n;return e=kr,t=Hs(),t!==null?(n=_s(),n!==null?(Lr=e,t=g(),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function Jr(){var t,n,r,i,s,u,a,f;t=kr,e.charCodeAt(kr)===62?(n=y,kr++):(n=null,Dr===0&&qr(b));if(n!==null){r=Hs();if(r!==null){i=Kr();if(i!==null){s=Hs();if(s!==null){u=[],a=hi();while(a!==null)u.push(a),a=hi();u!==null?(a=Hs(),a!==null?(f=_s(),f!==null?(Lr=t,n=w(i,u),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;return t}function Kr(){var t,n,r,i;t=kr,n=kr,r=[],E.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(S));if(i!==null)while(i!==null)r.push(i),E.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(S));else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=x(n)),n===null?(kr=t,t=n):t=n,t}function Qr(){var e;return e=ni(),e===null&&(e=ri()),e}function Gr(){var e,t;return e=kr,t=oi(),t===null&&(t=ei()),t!==null&&(Lr=e,t=T(t)),t===null?(kr=e,e=t):e=t,e}function Yr(){var e,t,n,r,i,s,u,a;e=kr,t=Fs();if(t!==null){n=_s();if(n!==null){r=[],i=kr,s=Ls();if(s!==null){u=[],a=Yr();if(a!==null)while(a!==null)u.push(a),a=Yr();else u=o;u!==null?(a=Ds(),a!==null?(s=[s,u,a],i=s):(kr=i,i=o)):(kr=i,i=o)}else kr=i,i=o;while(i!==null){r.push(i),i=kr,s=Ls();if(s!==null){u=[],a=Yr();if(a!==null)while(a!==null)u.push(a),a=Yr();else u=o;u!==null?(a=Ds(),a!==null?(s=[s,u,a],i=s):(kr=i,i=o)):(kr=i,i=o)}else kr=i,i=o}r!==null?(Lr=e,t=g(),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o;return e}function Zr(){var t,n,r;return t=kr,e.charCodeAt(kr)===47?(n=N,kr++):(n=null,Dr===0&&qr(C)),n!==null?(r=Yr(),r!==null?(Lr=t,n=g(),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function ei(){var e;return e=ti(),e===null&&(e=ii()),e}function ti(){var t,n,r;return t=kr,n=kr,Dr++,k.test(e.charAt(kr))?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(L)),Dr--,r!==null?(kr=n,n=u):n=o,n!==null?(r=ii(),r!==null?(Lr=t,n=A(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function ni(){var e,t,n,r,i,s,a,f,l;e=kr,t=ns();if(t!==null){n=Hs();if(n!==null){r=_s();if(r!==null){i=kr,s=[],a=$r();while(a!==null)s.push(a),a=$r();s!==null?(a=Ls(),a!==null?(f=Xr(),f!==null?(l=Os(),l!==null?(s=[s,a,f,l],i=s):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o),i===null&&(i=u),i!==null?(Lr=e,t=O(t,i),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o}else kr=e,e=o;return e}function ri(){var t,n,r,i,s,a,f,h;t=kr,n=ns();if(n!==null){e.charCodeAt(kr)===32?(r=M,kr++):(r=null,Dr===0&&qr(_)),r===null&&(r=kr,Dr++,e.charCodeAt(kr)===61?(i=l,kr++):(i=null,Dr===0&&qr(c)),Dr--,i!==null?(kr=r,r=u):r=o);if(r!==null){i=Oi();if(i!==null){s=kr,a=Ls();if(a!==null){f=[],h=Mi();if(h!==null)while(h!==null)f.push(h),h=Mi();else f=o;f!==null?(h=Os(),h!==null?(a=[a,f,h],s=a):(kr=s,s=o)):(kr=s,s=o)}else kr=s,s=o;s===null&&(s=u),s!==null?(Lr=t,n=D(n,i,s),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;return t}function ii(){var e,t,n,r,i,s,a,f,l;e=si();if(e===null){e=kr,t=ui();if(t!==null){n=Hs();if(n!==null){r=_s();if(r!==null){i=kr,s=[],a=$r();while(a!==null)s.push(a),a=$r();s!==null?(a=Ls(),a!==null?(f=zr(),f!==null?(l=Os(),l!==null?(s=[s,a,f,l],i=s):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o),i===null&&(i=u),i!==null?(Lr=e,t=P(t,i),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o}else kr=e,e=o}return e}function si(){var e,t,n,r;return e=kr,t=ui(),t!==null?(n=Hs(),n!==null?(r=Di(),r!==null?(Lr=e,t=H(t,r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e}function oi(){var e,t,n;return e=kr,t=ts(),t!==null?(n=ii(),n!==null?(Lr=e,t=B(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function ui(){var t,n,r,i,s,a;t=kr,e.charCodeAt(kr)===62?(n=y,kr++):(n=null,Dr===0&&qr(b)),n===null&&(n=u);if(n!==null){r=Hs();if(r!==null){i=wi();if(i!==null){s=[],a=hi();while(a!==null)s.push(a),a=hi();s!==null?(a=pi(),a===null&&(a=u),a!==null?(Lr=t,n=j(n,i,s,a),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;return t}function ai(){var e,t;return e=kr,t=vs(),t!==null&&(Lr=e,t=F(t)),t===null?(kr=e,e=t):e=t,e===null&&(e=kr,t=ms(),t!==null&&(Lr=e,t=I(t)),t===null?(kr=e,e=t):e=t,e===null&&(e=kr,t=gs(),t!==null&&(Lr=e,t=q(t)),t===null?(kr=e,e=t):e=t)),e}function fi(){var e;return e=li(),e===null&&(e=ci()),e}function li(){var e,t,n,r;e=kr,t=ms();if(t!==null){n=[],r=gs();while(r!==null)n.push(r),r=gs();n!==null?(Lr=e,t=R(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o;return e}function ci(){var e,t,n;e=kr,t=[],n=gs();if(n!==null)while(n!==null)t.push(n),n=gs();else t=o;return t!==null&&(Lr=e,t=U(t)),t===null?(kr=e,e=t):e=t,e}function hi(){var e,t,n;return e=kr,t=Hs(),t!==null?(n=ai(),n===null&&(n=gi()),n!==null?(Lr=e,t=z(n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function pi(){var e,t,n;e=kr,t=[],n=mi();if(n!==null)while(n!==null)t.push(n),n=mi();else t=o;return t!==null&&(Lr=e,t=W(t)),t===null?(kr=e,e=t):e=t,e}function di(){var t,n,r,i;Dr++,e.substr(kr,2)===V?(t=V,kr+=2):(t=null,Dr===0&&qr($));if(t===null){e.charCodeAt(kr)===46?(t=J,kr++):(t=null,Dr===0&&qr(K));if(t===null){t=kr,n=kr,r=[],Q.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(G));if(i!==null)while(i!==null)r.push(i),Q.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(G));else r=o;r!==null&&(r=e.substring(n,kr)),n=r,n!==null?(r=kr,Dr++,e.charCodeAt(kr)===61?(i=l,kr++):(i=null,Dr===0&&qr(c)),Dr--,i===null?r=u:(kr=r,r=o),r!==null?(Lr=t,n=Y(n),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)}}return Dr--,t===null&&(n=null,Dr===0&&qr(X)),t}function vi(){var e,t;return Dr++,e=bs(),Dr--,e===null&&(t=null,Dr===0&&qr(Z)),e}function mi(){var t,n,r,i,s,u;return t=kr,n=Hs(),n!==null?(r=kr,i=vi(),i!==null?(e.charCodeAt(kr)===61?(s=l,kr++):(s=null,Dr===0&&qr(c)),s!==null?(u=wi(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=kr,i=vi(),i!==null?(e.charCodeAt(kr)===61?(s=l,kr++):(s=null,Dr===0&&qr(c)),s!==null?(u=Ei(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=kr,i=vi(),i!==null?(e.charCodeAt(kr)===61?(s=l,kr++):(s=null,Dr===0&&qr(c)),s!==null?(u=Si(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=kr,i=vi(),i!==null?(e.charCodeAt(kr)===61?(s=l,kr++):(s=null,Dr===0&&qr(c)),s!==null?(u=xi(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o)))),r!==null?(Lr=t,n=et(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function gi(){var e;return e=wi(),e===null&&(e=Ei(),e===null&&(e=Si(),e===null&&(e=xi()))),e}function yi(){var e,t,n,r,i,s;e=kr,t=di();if(t!==null){n=[],r=kr,i=bi(),i!==null?(s=di(),s!==null?(Lr=r,i=tt(s),i===null?(kr=r,r=i):r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=bi(),i!==null?(s=di(),s!==null?(Lr=r,i=tt(s),i===null?(kr=r,r=i):r=i):(kr=r,r=o)):(kr=r,r=o);n!==null?(Lr=e,t=nt(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o;return e}function bi(){var t,n;return Dr++,it.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(st)),Dr--,t===null&&(n=null,Dr===0&&qr(rt)),t}function wi(){var e,t;return e=kr,t=yi(),t!==null&&(Lr=e,t=ot(t)),t===null?(kr=e,e=t):e=t,e}function Ei(){var e,t;return e=kr,t=Ci(),t!==null&&(Lr=e,t=ut(t)),t===null?(kr=e,e=t):e=t,e}function Si(){var e,t;return e=kr,t=Ni(),t!==null&&(Lr=e,t=at(t)),t===null?(kr=e,e=t):e=t,e}function xi(){var e,t;return e=kr,t=Ti(),t!==null&&(Lr=e,t=ft(t)),t===null?(kr=e,e=t):e=t,e}function Ti(){var t,n;return Dr++,e.substr(kr,4)===ct?(t=ct,kr+=4):(t=null,Dr===0&&qr(ht)),t===null&&(e.substr(kr,5)===pt?(t=pt,kr+=5):(t=null,Dr===0&&qr(dt))),Dr--,t===null&&(n=null,Dr===0&&qr(lt)),t}function Ni(){var t,n,r,i;Dr++,t=kr,n=kr,r=[],mt.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(gt));if(i!==null)while(i!==null)r.push(i),mt.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(gt));else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=yt(n)),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(vt)),t}function Ci(){var t,n,r,i,s;return t=kr,n=kr,e.charCodeAt(kr)===34?(r=bt,kr++):(r=null,Dr===0&&qr(wt)),r!==null?(i=ki(),i!==null?(e.charCodeAt(kr)===34?(s=bt,kr++):(s=null,Dr===0&&qr(wt)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o),n===null&&(n=kr,e.charCodeAt(kr)===39?(r=Et,kr++):(r=null,Dr===0&&qr(St)),r!==null?(i=Li(),i!==null?(e.charCodeAt(kr)===39?(s=Et,kr++):(s=null,Dr===0&&qr(St)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o)),n!==null&&(Lr=t,n=xt(n)),n===null?(kr=t,t=n):t=n,t}function ki(){var t,n,r,i,s;t=kr,n=[],r=kr,i=kr,Dr++,s=_s(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Tt.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(Nt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=kr,Dr++,s=_s(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Tt.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(Nt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);return n!==null&&(n=e.substring(t,kr)),t=n,t}function Li(){var t,n,r,i,s;t=kr,n=[],r=kr,i=kr,Dr++,s=_s(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Ct.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(kt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=kr,Dr++,s=_s(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Ct.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(kt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);return n!==null&&(n=e.substring(t,kr)),t=n,t}function Ai(){var t;return Lt.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(At)),t}function Oi(){var e,t,n;return e=kr,t=Hs(),t!==null?(n=oi(),n!==null?(Lr=e,t=Ot(n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e===null&&(e=Pi()),e}function Mi(){var e,t,n,r,i;e=kr,t=Ls();if(t!==null){n=Pi();if(n!==null){r=[],i=Mi();while(i!==null)r.push(i),i=Mi();r!==null?(i=Ds(),i!==null?(Lr=e,t=Mt(t,n,r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o;return e===null&&(e=Pi()),e}function _i(){var t,n,r;return t=kr,_t.test(e.charAt(kr))?(n=e.charAt(kr),kr++):(n=null,Dr===0&&qr(Dt)),n!==null?(e.charCodeAt(kr)===32?(r=M,kr++):(r=null,Dr===0&&qr(_)),r===null&&(r=u),r!==null?(Lr=t,n=Y(n),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t===null&&(t=kr,n=kr,Dr++,e.charCodeAt(kr)===60?(r=Pt,kr++):(r=null,Dr===0&&qr(Ht)),Dr--,r!==null?(kr=n,n=u):n=o,n!==null&&(Lr=t,n=Bt()),n===null?(kr=t,t=n):t=n),t}function Di(){var e,t,n,r,i,s,a;e=kr,t=_i();if(t!==null){n=Pi();if(n!==null){r=kr,i=Ls();if(i!==null){s=[],a=Mi();while(a!==null)s.push(a),a=Mi();s!==null?(a=Os(),a!==null?(i=[i,s,a],r=i):(kr=r,r=o)):(kr=r,r=o)}else kr=r,r=o;r===null&&(r=u),r!==null?(Lr=e,t=jt(t,n,r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o;return e}function Pi(){var e,t,n,r,i,s;e=kr,t=Ui(),t===null&&(t=u);if(t!==null){n=[],r=kr,i=ji(),i!==null?(s=Ui(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=ji(),i!==null?(s=Ui(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);n!==null?(r=_s(),r!==null?(Lr=e,t=Ft(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)}else kr=e,e=o;return e}function Hi(){var t,n,r,i;return t=kr,e.charCodeAt(kr)===34?(n=bt,kr++):(n=null,Dr===0&&qr(wt)),n!==null?(r=Bi(),r!==null?(e.charCodeAt(kr)===34?(i=bt,kr++):(i=null,Dr===0&&qr(wt)),i!==null?(Lr=t,n=It(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function Bi(){var e,t,n,r,i,s;e=kr,t=qi(),t===null&&(t=u);if(t!==null){n=[],r=kr,i=ji(),i!==null?(s=qi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=ji(),i!==null?(s=qi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);n!==null?(Lr=e,t=Ft(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o;return e}function ji(){var e;return e=Ii(),e===null&&(e=Fi()),e}function Fi(){var e,t,n,r,i,s;return e=kr,t=Ji(),t!==null?(n=Hs(),n!==null?(r=ui(),r!==null?(i=Hs(),i!==null?(s=Gi(),s!==null?(Lr=e,t=qt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e===null&&(e=kr,t=Zi(),t!==null?(n=Hs(),n!==null?(r=ui(),r!==null?(i=Hs(),i!==null?(s=es(),s!==null?(Lr=e,t=qt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)),e}function Ii(){var e,t,n,r,i,s;return e=kr,t=Ki(),t!==null?(n=Hs(),n!==null?(r=ui(),r!==null?(i=Hs(),i!==null?(s=Yi(),s!==null?(Lr=e,t=Rt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e}function qi(){var t,n,r,i;t=kr,n=kr,r=[],i=Ri();if(i!==null)while(i!==null)r.push(i),i=Ri();else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=Ut(n)),n===null?(kr=t,t=n):t=n,t}function Ri(){var t,n,r;return t=kr,n=kr,Dr++,r=Wi(),r===null&&(e.charCodeAt(kr)===34?(r=bt,kr++):(r=null,Dr===0&&qr(wt))),Dr--,r===null?n=u:(kr=n,n=o),n!==null?(e.length>kr?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(zt)),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function Ui(){var t,n,r,i;t=kr,n=kr,r=[],i=zi();if(i!==null)while(i!==null)r.push(i),i=zi();else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=Ut(n)),n===null?(kr=t,t=n):t=n,t}function zi(){var t,n,r;return t=kr,n=kr,Dr++,r=Wi(),Dr--,r===null?n=u:(kr=n,n=o),n!==null?(e.length>kr?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(zt)),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function Wi(){var e;return e=Ki(),e===null&&(e=Ji(),e===null&&(e=Zi(),e===null&&(e=Ds(),e===null&&(e=_s())))),e}function Xi(){var e,t,n,r,i,s;return e=kr,t=$i(),t!==null?(n=Hs(),n!==null?(r=ui(),r!==null?(i=Hs(),i!==null?(s=Qi(),s!==null?(Lr=e,t=qt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e}function Vi(){var e;return e=Xi(),e===null&&(e=Ii(),e===null&&(e=Fi())),e}function $i(){var t,n;return Dr++,e.charCodeAt(kr)===123?(t=Vt,kr++):(t=null,Dr===0&&qr($t)),Dr--,t===null&&(n=null,Dr===0&&qr(Xt)),t}function Ji(){var t,n;return Dr++,e.substr(kr,2)===Kt?(t=Kt,kr+=2):(t=null,Dr===0&&qr(Qt)),Dr--,t===null&&(n=null,Dr===0&&qr(Jt)),t}function Ki(){var t,n;return Dr++,e.substr(kr,3)===Yt?(t=Yt,kr+=3):(t=null,Dr===0&&qr(Zt)),Dr--,t===null&&(n=null,Dr===0&&qr(Gt)),t}function Qi(){var t,n;return Dr++,e.charCodeAt(kr)===125?(t=tn,kr++):(t=null,Dr===0&&qr(nn)),Dr--,t===null&&(n=null,Dr===0&&qr(en)),t}function Gi(){var t,n;return Dr++,e.substr(kr,2)===sn?(t=sn,kr+=2):(t=null,Dr===0&&qr(on)),Dr--,t===null&&(n=null,Dr===0&&qr(rn)),t}function Yi(){var t,n;return Dr++,e.substr(kr,3)===an?(t=an,kr+=3):(t=null,Dr===0&&qr(fn)),Dr--,t===null&&(n=null,Dr===0&&qr(un)),t}function Zi(){var t,n;return Dr++,e.substr(kr,2)===cn?(t=cn,kr+=2):(t=null,Dr===0&&qr(hn)),Dr--,t===null&&(n=null,Dr===0&&qr(ln)),t}function es(){var t,n;return Dr++,e.charCodeAt(kr)===125?(t=tn,kr++):(t=null,Dr===0&&qr(nn)),Dr--,t===null&&(n=null,Dr===0&&qr(pn)),t}function ts(){var t,n,r;return t=kr,e.substr(kr,2)===dn?(n=dn,kr+=2):(n=null,Dr===0&&qr(vn)),n!==null?(e.charCodeAt(kr)===32?(r=M,kr++):(r=null,Dr===0&&qr(_)),r===null&&(r=u),r!==null?(Lr=t,n=mn(),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t===null&&(t=kr,e.charCodeAt(kr)===61?(n=l,kr++):(n=null,Dr===0&&qr(c)),n!==null?(e.charCodeAt(kr)===32?(r=M,kr++):(r=null,Dr===0&&qr(_)),r===null&&(r=u),r!==null?(Lr=t,n=gn(),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)),t}function ns(){var e,t,n,r,i,s,a;e=kr,t=kr,n=Ts();if(n!==null){r=fi(),r===null&&(r=u);if(r!==null){i=[],s=Vi();while(s!==null)i.push(s),s=Vi();if(i!==null){s=[],a=rs();while(a!==null)s.push(a),a=rs();s!==null?(Lr=t,n=yn(n,r,i,s),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;if(t===null){t=kr,n=fi();if(n!==null){r=[],i=Vi();while(i!==null)r.push(i),i=Vi();if(r!==null){i=[],s=rs();while(s!==null)i.push(s),s=rs();i!==null?(Lr=t,n=bn(n,r,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}return t!==null&&(Lr=e,t=wn(t)),t===null?(kr=e,e=t):e=t,e}function fi(){var e,t,n,r;e=kr,t=[],n=kr,r=ms(),r!==null&&(Lr=n,r=En(r)),r===null?(kr=n,n=r):n=r,n===null&&(n=kr,r=gs(),r!==null&&(Lr=n,r=Sn(r)),r===null?(kr=n,n=r):n=r);if(n!==null)while(n!==null)t.push(n),n=kr,r=ms(),r!==null&&(Lr=n,r=En(r)),r===null?(kr=n,n=r):n=r,n===null&&(n=kr,r=gs(),r!==null&&(Lr=n,r=Sn(r)),r===null?(kr=n,n=r):n=r);else t=o;return t!==null&&(Lr=e,t=xn(t)),t===null?(kr=e,e=t):e=t,e}function rs(){var t,n,r;t=kr,n=[],e.charCodeAt(kr)===32?(r=M,kr++):(r=null,Dr===0&&qr(_));if(r!==null)while(r!==null)n.push(r),e.charCodeAt(kr)===32?(r=M,kr++):(r=null,Dr===0&&qr(_));else n=o;return n!==null?(r=us(),r===null&&(r=fs(),r===null&&(r=ls(),r===null&&(r=cs()))),r!==null?(Lr=t,n=Tn(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function is(){var t;return Nn.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Cn)),t}function ss(){var e,t;return e=os(),e===null&&(e=kr,t=wi(),t!==null&&(Lr=e,t=kn(t)),t===null?(kr=e,e=t):e=t),e}function os(){var t,n,r,i,s;return t=kr,n=kr,e.charCodeAt(kr)===34?(r=bt,kr++):(r=null,Dr===0&&qr(wt)),r!==null?(i=ui(),i!==null?(e.charCodeAt(kr)===34?(s=bt,kr++):(s=null,Dr===0&&qr(wt)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o),n===null&&(n=kr,e.charCodeAt(kr)===39?(r=Et,kr++):(r=null,Dr===0&&qr(St)),r!==null?(i=ui(),i!==null?(e.charCodeAt(kr)===39?(s=Et,kr++):(s=null,Dr===0&&qr(St)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o)),n!==null&&(Lr=t,n=xt(n)),n===null?(kr=t,t=n):t=n,t}function us(){var t,n,r,i;return t=kr,n=ks(),n!==null?(e.charCodeAt(kr)===61?(r=l,kr++):(r=null,Dr===0&&qr(c)),r!==null?(i=ss(),i!==null?(Lr=t,n=Ln(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function as(){var t,n,r,i,s,u;t=kr,e.charCodeAt(kr)===123?(n=Vt,kr++):(n=null,Dr===0&&qr($t));if(n!==null){r=Hs();if(r!==null){i=kr,s=[],u=is(),u===null&&(e.charCodeAt(kr)===32?(u=M,kr++):(u=null,Dr===0&&qr(_)));if(u!==null)while(u!==null)s.push(u),u=is(),u===null&&(e.charCodeAt(kr)===32?(u=M,kr++):(u=null,Dr===0&&qr(_)));else s=o;s!==null&&(s=e.substring(i,kr)),i=s,i!==null?(s=Hs(),s!==null?(e.charCodeAt(kr)===125?(u=tn,kr++):(u=null,Dr===0&&qr(nn)),u!==null?(Lr=t,n=An(i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o;if(t===null){t=kr,n=[],r=is();if(r!==null)while(r!==null)n.push(r),r=is();else n=o;n!==null&&(n=e.substring(t,kr)),t=n}return t}function fs(){var t,n,r,i,s,a;return t=kr,n=vi(),n!==null?(e.charCodeAt(kr)===61?(r=l,kr++):(r=null,Dr===0&&qr(c)),r!==null?(i=as(),i!==null?(s=kr,Dr++,e.charCodeAt(kr)===33?(a=On,kr++):(a=null,Dr===0&&qr(Mn)),Dr--,a===null?s=u:(kr=s,s=o),s!==null?(Lr=kr,a=_n(n,i),a?a=u:a=o,a!==null?(Lr=t,n=Dn(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function ls(){var t,n,r,i;return t=kr,n=vi(),n!==null?(e.charCodeAt(kr)===61?(r=l,kr++):(r=null,Dr===0&&qr(c)),r!==null?(i=wi(),i!==null?(Lr=t,n=Pn(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function cs(){var t,n,r,i;return t=kr,n=vi(),n!==null?(e.charCodeAt(kr)===61?(r=l,kr++):(r=null,Dr===0&&qr(c)),r!==null?(i=Hi(),i!==null?(Lr=t,n=Hn(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function hs(){var t,n,r;t=kr,n=[],r=ds();while(r!==null)n.push(r),r=ds();return n!==null&&(n=e.substring(t,kr)),t=n,t}function ps(){var e;return e=Ci(),e===null&&(e=gi()),e}function ds(){var t;return t=Ai(),t===null&&(mt.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(gt)),t===null&&(e.charCodeAt(kr)===95?(t=Bn,kr++):(t=null,Dr===0&&qr(jn)),t===null&&(e.charCodeAt(kr)===45?(t=Fn,kr++):(t=null,Dr===0&&qr(In))))),t}function vs(){var t,n,r;return t=kr,e.charCodeAt(kr)===37?(n=qn,kr++):(n=null,Dr===0&&qr(Rn)),n!==null?(r=ys(),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function ms(){var t,n,r;return t=kr,e.charCodeAt(kr)===35?(n=Un,kr++):(n=null,Dr===0&&qr(zn)),n!==null?(r=ys(),r!==null?(Lr=t,n=Wn(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function gs(){var t,n,r;return t=kr,e.charCodeAt(kr)===46?(n=J,kr++):(n=null,Dr===0&&qr(K)),n!==null?(r=ys(),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function ys(){var e,t;return Dr++,e=bs(),Dr--,e===null&&(t=null,Dr===0&&qr(Xn)),e}function bs(){var t,n,r,i,s;t=kr,n=Es();if(n!==null){r=kr,i=[],s=ws();while(s!==null)i.push(s),s=ws();i!==null&&(i=e.substring(r,kr)),r=i,r!==null?(Lr=t,n=Vn(n,r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o;return t}function ws(){var t;return $n.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Jn)),t===null&&(t=Ss()),t}function Es(){var t;return Kn.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Qn)),t===null&&(t=Ss()),t}function Ss(){var t;return Gn.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Yn)),t}function xs(){var t,n,r;t=kr,n=[],r=Cs();if(r!==null)while(r!==null)n.push(r),r=Cs();else n=o;return n!==null&&(n=e.substring(t,kr)),t=n,t}function Ts(){var t,n,r;return Dr++,t=kr,e.charCodeAt(kr)===37?(n=qn,kr++):(n=null,Dr===0&&qr(Rn)),n!==null?(r=xs(),r!==null?(Lr=t,n=Y(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t===null&&(t=Ns()),Dr--,t===null&&(n=null,Dr===0&&qr(Zn)),t}function Ns(){var e,t,n;return e=kr,t=xs(),t!==null?(Lr=kr,n=er(t),n?n=u:n=o,n!==null?(Lr=e,t=tr(t),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function Cs(){var t;return nr.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(rr)),t}function ks(){var e,t,n;return Dr++,e=kr,t=xs(),t!==null?(Lr=kr,n=sr(t),n?n=u:n=o,n!==null?(Lr=e,t=tr(t),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),Dr--,e===null&&(t=null,Dr===0&&qr(ir)),e}function Ls(){var e,t,n;return e=kr,t=As(),t!==null?(n=Ps(),n!==null?(Lr=e,t=Y(n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function As(){var t,n;return Dr++,t=kr,e.charCodeAt(kr)===61423?(n=ur,kr++):(n=null,Dr===0&&qr(ar)),n!==null&&(Lr=t,n=fr()),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(or)),t}function Os(){var t,n;return Dr++,t=kr,e.charCodeAt(kr)===61438?(n=cr,kr++):(n=null,Dr===0&&qr(hr)),n!==null&&(Lr=t,n=fr()),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(lr)),t}function Ms(){var t,n;return Dr++,t=kr,e.charCodeAt(kr)===61422?(n=dr,kr++):(n=null,Dr===0&&qr(vr)),n!==null&&(Lr=t,n=fr()),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(pr)),t}function _s(){var t,n,r;return Dr++,t=kr,e.charCodeAt(kr)===61439?(n=gr,kr++):(n=null,Dr===0&&qr(yr)),n!==null?(e.charCodeAt(kr)===10?(r=br,kr++):(r=null,Dr===0&&qr(wr)),r!==null?(n=[n,r],t=n):(kr=t,t=o)):(kr=t,t=o),Dr--,t===null&&(n=null,Dr===0&&qr(mr)),t}function Ds(){var e,t;return Dr++,e=Os(),e===null&&(e=Ms()),Dr--,e===null&&(t=null,Dr===0&&qr(Er)),e}function Ps(){var t,n,r;Dr++,t=kr,n=[],r=Bs();if(r!==null)while(r!==null)n.push(r),r=Bs();else n=o;return n!==null&&(n=e.substring(t,kr)),t=n,Dr--,t===null&&(n=null,Dr===0&&qr(Sr)),t}function Hs(){var e,t;Dr++,e=[],t=Bs();while(t!==null)e.push(t),t=Bs();return Dr--,e===null&&(t=null,Dr===0&&qr(xr)),e}function Bs(){var t,n;return Dr++,Nr.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Cr)),Dr--,t===null&&(n=null,Dr===0&&qr(Tr)),t}function js(){var t,n,r;return t=kr,n=kr,Dr++,r=As(),r===null&&(r=Os(),r===null&&(r=_s())),Dr--,r===null?n=u:(kr=n,n=o),n!==null?(e.length>kr?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(zt)),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function Fs(){var t,n,r;t=kr,n=[],r=js();while(r!==null)n.push(r),r=js();return n!==null&&(n=e.substring(t,kr)),t=n,t}function Xs(e,t,n){var r=e.hash;if(n){r=r||new Rs.HashNode([]);for(var i=0;i<n.length;++i)r.pairs.push(n[i])}var s=[e.id].concat(e.params);return s.unshift(new Rs.IdNode([t])),new Rs.MustacheNode(s,r,!e.escaped)}function Vs(e,t){var n=[];e&&n.push(e);for(var r=0;r<t.length;++r){var i=t[r];n.push(i[0]),i[1]&&n.push(i[1])}return n}function $s(e){Is.log(9,e)}var r=arguments.length>1?arguments[1]:{},i={start:Ur},s=Ur,o=null,u="",a=function(e){return e},f=function(e,t){return new Rs.ProgramNode(e,t||[])},l="=",c='"="',h="else",p='"else"',d=[],v=function(e){var t=[],n=[];for(var r=0;r<e.length;++r){var i=e[r];for(var s=0;s<i.length;++s){var o=i[s];if(o.type==="content"){o.string&&n.push(o.string);continue}n.length&&(t.push(new Rs.ContentNode(n.join(""))),n=[]),t.push(o)}}return n.length&&t.push(new Rs.ContentNode(n.join(""))),t},m="BeginStatement",g=function(){return[]},y=">",b='">"',w=function(e,t){return[new Rs.PartialNode(e,t[0])]},E=/^[a-zA-Z0-9_$-\/]/,S="[a-zA-Z0-9_$-\\/]",x=function(e){return new Rs.PartialNameNode(e)},T=function(e){return[e]},N="/",C='"/"',k=/^[A-Z]/,L="[A-Z]",A=function(e){var t="view";if(e.mustache){var n=e.mustache.id.string.charAt(0);return!qs||!n.match(/[A-Z]/)?e:(e.mustache=Xs(e.mustache,t),e)}var n=e.id.string.charAt(0);return!qs||!n.match(/[A-Z]/)?e:Xs(e,t)},O=function(e,t){var n=e[0];return t&&(n=n.concat(t[2])),e[1]&&n.push(e[1]),n},M=" ",_='" "',D=function(e,t,n){var r=e[0];t&&(r=r.concat(t));if(n){n=n[1];for(var i=0;i<n.length;++i)r.push(new Rs.ContentNode(" ")),r=r.concat(n[i])}return e[1]&&r.push(e[1]),r},P=function(e,t){if(!t)return e;var n=t[2];return new Rs.BlockNode(e,n,n.inverse,e.id)},H=function(e,t){var n=new Rs.ProgramNode(t,[]);return new Rs.BlockNode(e,n,n.inverse,e.id)},B=function(e,t){var n=t.mustache||t;return n.escaped=e,t},j=function(e,t,n,r){if(e){var i=new Rs.PartialNameNode(t.string);return new Rs.PartialNode(i,n[0])}var s=[],o={},u=!1;for(var a=0;a<n.length;++a){var f=n[a],l=f[0];l=="tagName"||l=="elementId"||l=="class"?(u=!0,o[l]=o[l]||[],o[l].push(f[1])):s.push(f)}if(u){r=r||new Rs.HashNode([]);for(var c in o){if(!o.hasOwnProperty(c))continue;r.pairs.push([c,new Rs.StringNode(o[c].join(" "))])}}s.unshift(t);var h=new Rs.MustacheNode(s,r),p=t._emblemSuffixModifier;return p==="!"?Xs(h,"unbound"):p==="?"?Xs(h,"if"):p==="^"?Xs(h,"unless"):h},F=function(e){return["tagName",e]},I=function(e){return["elementId",e]},q=function(e){return["class",e]},R=function(e,t){return[e,t]},U=function(e){return[null,e]},z=function(e){return e},W=function(e){return new Rs.HashNode(e)},X="PathIdent",V="..",$='".."',J=".",K='"."',Q=/^[a-zA-Z0-9_$\-!?\^]/,G="[a-zA-Z0-9_$\\-!?\\^]",Y=function(e){return e},Z="Key",et=function(e){return[e[0],e[2]]},tt=function(e){return e},nt=function(e,t){var n=[e];for(var r=0;r<t.length;++r)n.push(t[r]);return n},rt="PathSeparator",it=/^[\/.]/,st="[\\/.]",ot=function(e){var t=e[e.length-1],n,r;if(n=t.match(/[!\?\^]$/))r=n[0],e[e.length-1]=t.slice(0,-1);var i=new Rs.IdNode(e);return i._emblemSuffixModifier=r,i},ut=function(e){return new Rs.StringNode(e)},at=function(e){return new Rs.IntegerNode(e)},ft=function(e){return new Rs.BooleanNode(e)},lt="Boolean",ct="true",ht='"true"',pt="false",dt='"false"',vt="Integer",mt=/^[0-9]/,gt="[0-9]",yt=function(e){return parseInt(e)},bt='"',wt='"\\""',Et="'",St='"\'"',xt=function(e){return e[1]},Tt=/^[^"}]/,Nt='[^"}]',Ct=/^[^'}]/,kt="[^'}]",Lt=/^[A-Za-z]/,At="[A-Za-z]",Ot=function(e){return[e]},Mt=function(e,t,n){t.unshift(new Rs.ContentNode(e));for(var r=0;r<n.length;++r)t.push(new Rs.ContentNode(e)),t=t.concat(n[r]),t.push("\n");return t},_t=/^[|`']/,Dt="[|`']",Pt="<",Ht='"<"',Bt=function(){return"<"},jt=function(e,t,n){(t.length||!n)&&t.push("\n");if(n){n=n[1];for(var r=0;r<n.length
|
2
|
+
;++r)t=t.concat(n[r]),t.push("\n")}var i=[],s=e!=="`";for(var r=0;r<t.length;++r){var o=t[r];o=="\n"?s||i.push(new Rs.ContentNode("\n")):i.push(o)}return e==="'"&&i.push(new Rs.ContentNode(" ")),i},Ft=function(e,t){return Vs(e,t)},It=function(e){return e},qt=function(e){return e.escaped=!0,e},Rt=function(e){return e.escaped=!1,e},Ut=function(e){return new Rs.ContentNode(e)},zt="any character",Wt=function(e){return e},Xt="SingleMustacheOpen",Vt="{",$t='"{"',Jt="DoubleMustacheOpen",Kt="{{",Qt='"{{"',Gt="TripleMustacheOpen",Yt="{{{",Zt='"{{{"',en="SingleMustacheClose",tn="}",nn='"}"',rn="DoubleMustacheClose",sn="}}",on='"}}"',un="TripleMustacheClose",an="}}}",fn='"}}}"',ln="InterpolationOpen",cn="#{",hn='"#{"',pn="InterpolationClose",dn="==",vn='"=="',mn=function(){return!1},gn=function(){return!0},yn=function(e,t,n,r){return[e,t,n,r]},bn=function(e,t,n){return[null,e,t,n]},wn=function(e){var t=e[0]||"div",n=e[1]||[],r=e[2],i=e[3],s=n[0],o=n[1],u=[];u.push(new Rs.ContentNode("<"+t)),s&&u.push(new Rs.ContentNode(' id="'+s+'"')),o&&o.length&&u.push(new Rs.ContentNode(' class="'+o.join(" ")+'"'));for(var a=0;a<r.length;++a)u.push(new Rs.ContentNode(" ")),u.push(r[a]);for(var a=0;a<i.length;++a)u=u.concat(i[a]);return Us[t]?(u.push(new Rs.ContentNode(" />")),[u]):(u.push(new Rs.ContentNode(">")),[u,new Rs.ContentNode("</"+t+">")])},En=function(e){return{shorthand:e,id:!0}},Sn=function(e){return{shorthand:e}},xn=function(e){var t,n=[];for(var r=0,i=e.length;r<i;++r){var s=e[r];s.id?t=s.shorthand:n.push(s.shorthand)}return[t,n]},Tn=function(e){return[new Rs.ContentNode(" ")].concat(e)},Nn=/^[A-Za-z.:0-9_\-]/,Cn="[A-Za-z.:0-9_\\-]",kn=function(e){return new Rs.MustacheNode([e])},Ln=function(e,t){return[Xs(t,"action",[["on",new Rs.StringNode(e)]])]},An=function(e){return e.replace(/ *$/,"")},On="!",Mn='"!"',_n=function(e,t){return qs},Dn=function(e,t){var n=new Rs.HashNode([[e,new Rs.StringNode(t)]]),r=[new Rs.IdNode(["bindAttr"])],i=new Rs.MustacheNode(r,n);return[i]},Pn=function(e,t){var n=new Rs.MustacheNode([t]);return qs&&t._emblemSuffixModifier==="!"&&(n=Xs(n,"unbound")),[new Rs.ContentNode(e+"="+'"'),n,new Rs.ContentNode('"')]},Hn=function(e,t){var n=[new Rs.ContentNode(e+"="+'"')].concat(t);return n.concat([new Rs.ContentNode('"')])},Bn="_",jn='"_"',Fn="-",In='"-"',qn="%",Rn='"%"',Un="#",zn='"#"',Wn=function(e){return e},Xn="CSSIdentifier",Vn=function(e,t){return e+t},$n=/^[_a-zA-Z0-9\-]/,Jn="[_a-zA-Z0-9\\-]",Kn=/^[_a-zA-Z]/,Qn="[_a-zA-Z]",Gn=/^[\x80-\xFF]/,Yn="[\\x80-\\xFF]",Zn="KnownHTMLTagName",er=function(e){return!!zs[e]},tr=function(e){return e},nr=/^[:_a-zA-Z0-9\-]/,rr="[:_a-zA-Z0-9\\-]",ir="a JS event",sr=function(e){return!!Ws[e]},or="INDENT",ur="",ar='"\\uEFEF"',fr=function(){return""},lr="DEDENT",cr="",hr='"\\uEFFE"',pr="Unmatched DEDENT",dr="",vr='"\\uEFEE"',mr="LineEnd",gr="",yr='"\\uEFFF"',br="\n",wr='"\\n"',Er="ANYDEDENT",Sr="RequiredWhitespace",xr="OptionalWhitespace",Tr="InlineWhitespace",Nr=/^[ \t]/,Cr="[ \\t]",kr=0,Lr=0,Ar=0,Or={line:1,column:1,seenCR:!1},Mr=0,_r=[],Dr=0,Pr;if("startRule"in r){if(!(r.startRule in i))throw new Error("Can't start parsing from rule \""+r.startRule+'".');s=i[r.startRule]}var Is=n.handlebarsVariant,qs=Is.JavaScriptCompiler.prototype.namespace==="Ember.Handlebars",Rs=Is.AST,Us={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},zs={figcaption:!0,blockquote:!0,plaintext:!0,textarea:!0,progress:!0,optgroup:!0,noscript:!0,noframes:!0,frameset:!0,fieldset:!0,datalist:!0,colgroup:!0,basefont:!0,summary:!0,section:!0,marquee:!0,listing:!0,isindex:!0,details:!0,command:!0,caption:!0,bgsound:!0,article:!0,address:!0,acronym:!0,strong:!0,strike:!0,spacer:!0,source:!0,select:!0,script:!0,output:!0,option:!0,object:!0,legend:!0,keygen:!0,iframe:!0,hgroup:!0,header:!0,footer:!0,figure:!0,center:!0,canvas:!0,button:!0,applet:!0,video:!0,track:!0,title:!0,thead:!0,tfoot:!0,tbody:!0,table:!0,style:!0,small:!0,param:!0,meter:!0,label:!0,input:!0,frame:!0,embed:!0,blink:!0,audio:!0,aside:!0,time:!0,span:!0,samp:!0,ruby:!0,nobr:!0,meta:!0,menu:!0,mark:!0,main:!0,link:!0,html:!0,head:!0,form:!0,font:!0,data:!0,code:!0,cite:!0,body:!0,base:!0,area:!0,abbr:!0,xmp:!0,wbr:!0,"var":!0,sup:!0,sub:!0,pre:!0,nav:!0,map:!0,kbd:!0,ins:!0,img:!0,div:!0,dir:!0,dfn:!0,del:!0,col:!0,big:!0,bdo:!0,bdi:!0,ul:!0,tt:!0,tr:!0,th:!0,td:!0,rt:!0,rp:!0,ol:!0,li:!0,hr:!0,h6:!0,h5:!0,h4:!0,h3:!0,h2:!0,h1:!0,em:!0,dt:!0,dl:!0,dd:!0,br:!0,u:!0,s:!0,q:!0,p:!0,i:!0,b:!0,a:!0},Ws={touchStart:!0,touchMove:!0,touchEnd:!0,touchCancel:!0,keyDown:!0,keyUp:!0,keyPress:!0,mouseDown:!0,mouseUp:!0,contextMenu:!0,click:!0,doubleClick:!0,mouseMove:!0,focusIn:!0,focusOut:!0,mouseEnter:!0,mouseLeave:!0,submit:!0,input:!0,change:!0,dragStart:!0,drag:!0,dragEnter:!0,dragLeave:!0,dragOver:!0,drop:!0,dragEnd:!0};Pr=s();if(Pr!==null&&kr===e.length)return Pr;throw Rr(_r),Lr=Math.max(kr,Mr),new t(_r,Lr<e.length?e.charAt(Lr):null,Lr,Ir(Lr).line,Ir(Lr).column)}return e(t,Error),{SyntaxError:t,parse:r}}();var n;n.throwCompileError=function(e,t){throw new Error("Emblem syntax error, line "+e+": "+t)},n.registerPartial=function(e,t,r){return r||(r=t,t=e,e=Handlebars),e.registerPartial(t,n.compile(e,r))},n.parse=function(e){var t,r,i,s;try{return s=n.Preprocessor.processSync(e),n.Parser.parse(s)}catch(o){if(o instanceof n.Parser.SyntaxError)return r=e.split("\n"),t=r[o.line-1],i=""+o.message+"\n"+t+"\n",i+=(new Array(o.column)).join("-"),i+="^",n.throwCompileError(o.line,i);throw o}},n.precompile=function(e,t,r){var i;return r==null&&(r={}),n.handlebarsVariant=e,i=n.parse(t),e.precompile(i,r)},n.compile=function(e,t,r){var i;return r==null&&(r={}),n.handlebarsVariant=e,i=n.parse(t),e.compile(i,r)};var n,r,t;n.Preprocessor=r=function(){function l(){this.base=null,this.indents=[],this.context=[],this.context.peek=function(){return this.length?this[this.length-1]:null},this.context.err=function(e){throw new Error("Unexpected "+e)},this.output="",this.context.observe=function(t){var n;n=this.peek();switch(t){case r:this.push(t);break;case e:n!==r&&this.err(t),this.pop();break;case"\n":n!=="/"&&this.err(t),this.pop();break;case"/":this.push(t);break;case"end-\\":n!=="\\"&&this.err(t),this.pop();break;default:throw new Error("undefined token observed: "+t)}return this},this.StringScanner?this.ss=new this.StringScanner(""):n.StringScanner?this.ss=new n.StringScanner(""):this.ss=new t("")}var e,r,i,s,o,u,a,f;return f="\\t\\x0B\\f \\xA0\\u1680\\u180E\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF",r="",e="",s="",i="",o=RegExp("["+f+"\\n]*$"),u=RegExp("(?:["+f+"]*\\n)+"),l.prototype.p=function(e){return e&&(this.output+=e),e},l.prototype.scan=function(e){return this.p(this.ss.scan(e))},l.prototype.discard=function(e){return this.ss.scan(e)},a=function(t){return function(n){var a,l,c,h;t||(this.ss.concat(n),this.discard(u));while(!this.ss.eos())switch(this.context.peek()){case null:case r:if(this.ss.bol()||this.discard(u)){if(this.discard(RegExp("["+f+"]*\\n"))){this.p(""+i+"\n");continue}if(this.base!=null){if(this.discard(this.base)==null)throw new Error("inconsistent base indentation")}else a=this.discard(RegExp("["+f+"]*")),this.base=RegExp(""+a);if(this.indents.length===0)this.ss.check(RegExp("["+f+"]+"))&&(this.p(r),this.context.observe(r),this.indents.push(this.scan(RegExp("(["+f+"]+)"))));else{c=this.indents[this.indents.length-1];if(l=this.ss.check(RegExp("("+c+")")))this.discard(l),this.ss.check(RegExp("(["+f+"]+)"))&&(this.p(r),this.context.observe(r),this.indents.push(l+this.scan(RegExp("(["+f+"]+)"))));else{while(this.indents.length){c=this.indents[this.indents.length-1];if(this.discard(RegExp("(?:"+c+")")))break;this.context.observe(e),this.p(e),this.indents.pop()}if(h=this.discard(RegExp("["+f+"]+")))this.output=this.output.slice(0,-1),this.output+=s,this.p(r),this.context.observe(r),this.indents.push(h)}}}this.scan(/[^\n\\]+/),this.discard(/\n/)&&this.p(""+i+"\n")}if(t){this.scan(o);while(this.context.length&&r===this.context.peek())this.context.observe(e),this.p(e);if(this.context.length)throw new Error("Unclosed "+this.context.peek()+" at EOF")}}},l.prototype.processData=a(!1),l.prototype.processEnd=a(!0),l.processSync=function(e){var t;return e+="\n",t=new l,t.processData(e),t.processEnd(),t.output},l}();var i,n,s;n.compileScriptTags=function(){if(typeof Ember=="undefined"||Ember===null)throw new Error("Can't run Emblem.enableEmber before Ember has been defined");if(typeof document!="undefined"&&document!==null)return Ember.$('script[type="text/x-emblem"], script[type="text/x-raw-emblem"]',Ember.$(document)).each(function(){var e,t,r;return t=Ember.$(this),e=t.attr("type")==="text/x-raw-handlebars"?Handlebars:Ember.Handlebars,r=t.attr("data-template-name")||t.attr("id")||"application",Ember.TEMPLATES[r]=n.compile(e,t.html()),t.remove()})},this.ENV||(this.ENV={}),i=this.ENV,i.EMBER_LOAD_HOOKS||(i.EMBER_LOAD_HOOKS={}),(s=i.EMBER_LOAD_HOOKS).application||(s.application=[]),i.EMBER_LOAD_HOOKS.application.push(function(){return n.compileScriptTags()}),e.Emblem=n})(this);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emblem-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Emblem.js source code wrapper for (pre)compilation gems.
|
15
15
|
email:
|