Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80728 views
1
"use strict";
2
/* jshint ignore:start */
3
/* istanbul ignore next */
4
/* Jison generated parser */
5
var handlebars = (function(){
6
var parser = {trace: function trace() { },
7
yy: {},
8
symbols_: {"error":2,"root":3,"program":4,"EOF":5,"program_repetition0":6,"statement":7,"mustache":8,"block":9,"rawBlock":10,"partial":11,"content":12,"COMMENT":13,"CONTENT":14,"openRawBlock":15,"END_RAW_BLOCK":16,"OPEN_RAW_BLOCK":17,"helperName":18,"openRawBlock_repetition0":19,"openRawBlock_option0":20,"CLOSE_RAW_BLOCK":21,"openBlock":22,"block_option0":23,"closeBlock":24,"openInverse":25,"block_option1":26,"OPEN_BLOCK":27,"openBlock_repetition0":28,"openBlock_option0":29,"openBlock_option1":30,"CLOSE":31,"OPEN_INVERSE":32,"openInverse_repetition0":33,"openInverse_option0":34,"openInverse_option1":35,"openInverseChain":36,"OPEN_INVERSE_CHAIN":37,"openInverseChain_repetition0":38,"openInverseChain_option0":39,"openInverseChain_option1":40,"inverseAndProgram":41,"INVERSE":42,"inverseChain":43,"inverseChain_option0":44,"OPEN_ENDBLOCK":45,"OPEN":46,"mustache_repetition0":47,"mustache_option0":48,"OPEN_UNESCAPED":49,"mustache_repetition1":50,"mustache_option1":51,"CLOSE_UNESCAPED":52,"OPEN_PARTIAL":53,"partialName":54,"partial_repetition0":55,"partial_option0":56,"param":57,"sexpr":58,"OPEN_SEXPR":59,"sexpr_repetition0":60,"sexpr_option0":61,"CLOSE_SEXPR":62,"hash":63,"hash_repetition_plus0":64,"hashSegment":65,"ID":66,"EQUALS":67,"blockParams":68,"OPEN_BLOCK_PARAMS":69,"blockParams_repetition_plus0":70,"CLOSE_BLOCK_PARAMS":71,"path":72,"dataName":73,"STRING":74,"NUMBER":75,"BOOLEAN":76,"DATA":77,"pathSegments":78,"SEP":79,"$accept":0,"$end":1},
9
terminals_: {2:"error",5:"EOF",13:"COMMENT",14:"CONTENT",16:"END_RAW_BLOCK",17:"OPEN_RAW_BLOCK",21:"CLOSE_RAW_BLOCK",27:"OPEN_BLOCK",31:"CLOSE",32:"OPEN_INVERSE",37:"OPEN_INVERSE_CHAIN",42:"INVERSE",45:"OPEN_ENDBLOCK",46:"OPEN",49:"OPEN_UNESCAPED",52:"CLOSE_UNESCAPED",53:"OPEN_PARTIAL",59:"OPEN_SEXPR",62:"CLOSE_SEXPR",66:"ID",67:"EQUALS",69:"OPEN_BLOCK_PARAMS",71:"CLOSE_BLOCK_PARAMS",74:"STRING",75:"NUMBER",76:"BOOLEAN",77:"DATA",79:"SEP"},
10
productions_: [0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[12,1],[10,3],[15,5],[9,4],[9,4],[22,6],[25,6],[36,6],[41,2],[43,3],[43,1],[24,3],[8,5],[8,5],[11,5],[57,1],[57,1],[58,5],[63,1],[65,3],[68,3],[18,1],[18,1],[18,1],[18,1],[18,1],[54,1],[54,1],[73,2],[72,1],[78,3],[78,1],[6,0],[6,2],[19,0],[19,2],[20,0],[20,1],[23,0],[23,1],[26,0],[26,1],[28,0],[28,2],[29,0],[29,1],[30,0],[30,1],[33,0],[33,2],[34,0],[34,1],[35,0],[35,1],[38,0],[38,2],[39,0],[39,1],[40,0],[40,1],[44,0],[44,1],[47,0],[47,2],[48,0],[48,1],[50,0],[50,2],[51,0],[51,1],[55,0],[55,2],[56,0],[56,1],[60,0],[60,2],[61,0],[61,1],[64,1],[64,2],[70,1],[70,2]],
11
performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
12
13
var $0 = $$.length - 1;
14
switch (yystate) {
15
case 1: return $$[$0-1];
16
break;
17
case 2:this.$ = new yy.Program($$[$0], null, {}, yy.locInfo(this._$));
18
break;
19
case 3:this.$ = $$[$0];
20
break;
21
case 4:this.$ = $$[$0];
22
break;
23
case 5:this.$ = $$[$0];
24
break;
25
case 6:this.$ = $$[$0];
26
break;
27
case 7:this.$ = $$[$0];
28
break;
29
case 8:this.$ = new yy.CommentStatement(yy.stripComment($$[$0]), yy.stripFlags($$[$0], $$[$0]), yy.locInfo(this._$));
30
break;
31
case 9:this.$ = new yy.ContentStatement($$[$0], yy.locInfo(this._$));
32
break;
33
case 10:this.$ = yy.prepareRawBlock($$[$0-2], $$[$0-1], $$[$0], this._$);
34
break;
35
case 11:this.$ = { path: $$[$0-3], params: $$[$0-2], hash: $$[$0-1] };
36
break;
37
case 12:this.$ = yy.prepareBlock($$[$0-3], $$[$0-2], $$[$0-1], $$[$0], false, this._$);
38
break;
39
case 13:this.$ = yy.prepareBlock($$[$0-3], $$[$0-2], $$[$0-1], $$[$0], true, this._$);
40
break;
41
case 14:this.$ = { path: $$[$0-4], params: $$[$0-3], hash: $$[$0-2], blockParams: $$[$0-1], strip: yy.stripFlags($$[$0-5], $$[$0]) };
42
break;
43
case 15:this.$ = { path: $$[$0-4], params: $$[$0-3], hash: $$[$0-2], blockParams: $$[$0-1], strip: yy.stripFlags($$[$0-5], $$[$0]) };
44
break;
45
case 16:this.$ = { path: $$[$0-4], params: $$[$0-3], hash: $$[$0-2], blockParams: $$[$0-1], strip: yy.stripFlags($$[$0-5], $$[$0]) };
46
break;
47
case 17:this.$ = { strip: yy.stripFlags($$[$0-1], $$[$0-1]), program: $$[$0] };
48
break;
49
case 18:
50
var inverse = yy.prepareBlock($$[$0-2], $$[$0-1], $$[$0], $$[$0], false, this._$),
51
program = new yy.Program([inverse], null, {}, yy.locInfo(this._$));
52
program.chained = true;
53
54
this.$ = { strip: $$[$0-2].strip, program: program, chain: true };
55
56
break;
57
case 19:this.$ = $$[$0];
58
break;
59
case 20:this.$ = {path: $$[$0-1], strip: yy.stripFlags($$[$0-2], $$[$0])};
60
break;
61
case 21:this.$ = yy.prepareMustache($$[$0-3], $$[$0-2], $$[$0-1], $$[$0-4], yy.stripFlags($$[$0-4], $$[$0]), this._$);
62
break;
63
case 22:this.$ = yy.prepareMustache($$[$0-3], $$[$0-2], $$[$0-1], $$[$0-4], yy.stripFlags($$[$0-4], $$[$0]), this._$);
64
break;
65
case 23:this.$ = new yy.PartialStatement($$[$0-3], $$[$0-2], $$[$0-1], yy.stripFlags($$[$0-4], $$[$0]), yy.locInfo(this._$));
66
break;
67
case 24:this.$ = $$[$0];
68
break;
69
case 25:this.$ = $$[$0];
70
break;
71
case 26:this.$ = new yy.SubExpression($$[$0-3], $$[$0-2], $$[$0-1], yy.locInfo(this._$));
72
break;
73
case 27:this.$ = new yy.Hash($$[$0], yy.locInfo(this._$));
74
break;
75
case 28:this.$ = new yy.HashPair($$[$0-2], $$[$0], yy.locInfo(this._$));
76
break;
77
case 29:this.$ = $$[$0-1];
78
break;
79
case 30:this.$ = $$[$0];
80
break;
81
case 31:this.$ = $$[$0];
82
break;
83
case 32:this.$ = new yy.StringLiteral($$[$0], yy.locInfo(this._$));
84
break;
85
case 33:this.$ = new yy.NumberLiteral($$[$0], yy.locInfo(this._$));
86
break;
87
case 34:this.$ = new yy.BooleanLiteral($$[$0], yy.locInfo(this._$));
88
break;
89
case 35:this.$ = $$[$0];
90
break;
91
case 36:this.$ = $$[$0];
92
break;
93
case 37:this.$ = yy.preparePath(true, $$[$0], this._$);
94
break;
95
case 38:this.$ = yy.preparePath(false, $$[$0], this._$);
96
break;
97
case 39: $$[$0-2].push({part: $$[$0], separator: $$[$0-1]}); this.$ = $$[$0-2];
98
break;
99
case 40:this.$ = [{part: $$[$0]}];
100
break;
101
case 41:this.$ = [];
102
break;
103
case 42:$$[$0-1].push($$[$0]);
104
break;
105
case 43:this.$ = [];
106
break;
107
case 44:$$[$0-1].push($$[$0]);
108
break;
109
case 51:this.$ = [];
110
break;
111
case 52:$$[$0-1].push($$[$0]);
112
break;
113
case 57:this.$ = [];
114
break;
115
case 58:$$[$0-1].push($$[$0]);
116
break;
117
case 63:this.$ = [];
118
break;
119
case 64:$$[$0-1].push($$[$0]);
120
break;
121
case 71:this.$ = [];
122
break;
123
case 72:$$[$0-1].push($$[$0]);
124
break;
125
case 75:this.$ = [];
126
break;
127
case 76:$$[$0-1].push($$[$0]);
128
break;
129
case 79:this.$ = [];
130
break;
131
case 80:$$[$0-1].push($$[$0]);
132
break;
133
case 83:this.$ = [];
134
break;
135
case 84:$$[$0-1].push($$[$0]);
136
break;
137
case 87:this.$ = [$$[$0]];
138
break;
139
case 88:$$[$0-1].push($$[$0]);
140
break;
141
case 89:this.$ = [$$[$0]];
142
break;
143
case 90:$$[$0-1].push($$[$0]);
144
break;
145
}
146
},
147
table: [{3:1,4:2,5:[2,41],6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],46:[2,41],49:[2,41],53:[2,41]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:[1,11],14:[1,18],15:16,17:[1,21],22:14,25:15,27:[1,19],32:[1,20],37:[2,2],42:[2,2],45:[2,2],46:[1,12],49:[1,13],53:[1,17]},{1:[2,1]},{5:[2,42],13:[2,42],14:[2,42],17:[2,42],27:[2,42],32:[2,42],37:[2,42],42:[2,42],45:[2,42],46:[2,42],49:[2,42],53:[2,42]},{5:[2,3],13:[2,3],14:[2,3],17:[2,3],27:[2,3],32:[2,3],37:[2,3],42:[2,3],45:[2,3],46:[2,3],49:[2,3],53:[2,3]},{5:[2,4],13:[2,4],14:[2,4],17:[2,4],27:[2,4],32:[2,4],37:[2,4],42:[2,4],45:[2,4],46:[2,4],49:[2,4],53:[2,4]},{5:[2,5],13:[2,5],14:[2,5],17:[2,5],27:[2,5],32:[2,5],37:[2,5],42:[2,5],45:[2,5],46:[2,5],49:[2,5],53:[2,5]},{5:[2,6],13:[2,6],14:[2,6],17:[2,6],27:[2,6],32:[2,6],37:[2,6],42:[2,6],45:[2,6],46:[2,6],49:[2,6],53:[2,6]},{5:[2,7],13:[2,7],14:[2,7],17:[2,7],27:[2,7],32:[2,7],37:[2,7],42:[2,7],45:[2,7],46:[2,7],49:[2,7],53:[2,7]},{5:[2,8],13:[2,8],14:[2,8],17:[2,8],27:[2,8],32:[2,8],37:[2,8],42:[2,8],45:[2,8],46:[2,8],49:[2,8],53:[2,8]},{18:22,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:31,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{4:32,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],37:[2,41],42:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{4:33,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],42:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{12:34,14:[1,18]},{18:36,54:35,58:37,59:[1,38],66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{5:[2,9],13:[2,9],14:[2,9],16:[2,9],17:[2,9],27:[2,9],32:[2,9],37:[2,9],42:[2,9],45:[2,9],46:[2,9],49:[2,9],53:[2,9]},{18:39,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:40,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:41,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{31:[2,71],47:42,59:[2,71],66:[2,71],74:[2,71],75:[2,71],76:[2,71],77:[2,71]},{21:[2,30],31:[2,30],52:[2,30],59:[2,30],62:[2,30],66:[2,30],69:[2,30],74:[2,30],75:[2,30],76:[2,30],77:[2,30]},{21:[2,31],31:[2,31],52:[2,31],59:[2,31],62:[2,31],66:[2,31],69:[2,31],74:[2,31],75:[2,31],76:[2,31],77:[2,31]},{21:[2,32],31:[2,32],52:[2,32],59:[2,32],62:[2,32],66:[2,32],69:[2,32],74:[2,32],75:[2,32],76:[2,32],77:[2,32]},{21:[2,33],31:[2,33],52:[2,33],59:[2,33],62:[2,33],66:[2,33],69:[2,33],74:[2,33],75:[2,33],76:[2,33],77:[2,33]},{21:[2,34],31:[2,34],52:[2,34],59:[2,34],62:[2,34],66:[2,34],69:[2,34],74:[2,34],75:[2,34],76:[2,34],77:[2,34]},{21:[2,38],31:[2,38],52:[2,38],59:[2,38],62:[2,38],66:[2,38],69:[2,38],74:[2,38],75:[2,38],76:[2,38],77:[2,38],79:[1,43]},{66:[1,30],78:44},{21:[2,40],31:[2,40],52:[2,40],59:[2,40],62:[2,40],66:[2,40],69:[2,40],74:[2,40],75:[2,40],76:[2,40],77:[2,40],79:[2,40]},{50:45,52:[2,75],59:[2,75],66:[2,75],74:[2,75],75:[2,75],76:[2,75],77:[2,75]},{23:46,36:48,37:[1,50],41:49,42:[1,51],43:47,45:[2,47]},{26:52,41:53,42:[1,51],45:[2,49]},{16:[1,54]},{31:[2,79],55:55,59:[2,79],66:[2,79],74:[2,79],75:[2,79],76:[2,79],77:[2,79]},{31:[2,35],59:[2,35],66:[2,35],74:[2,35],75:[2,35],76:[2,35],77:[2,35]},{31:[2,36],59:[2,36],66:[2,36],74:[2,36],75:[2,36],76:[2,36],77:[2,36]},{18:56,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{28:57,31:[2,51],59:[2,51],66:[2,51],69:[2,51],74:[2,51],75:[2,51],76:[2,51],77:[2,51]},{31:[2,57],33:58,59:[2,57],66:[2,57],69:[2,57],74:[2,57],75:[2,57],76:[2,57],77:[2,57]},{19:59,21:[2,43],59:[2,43],66:[2,43],74:[2,43],75:[2,43],76:[2,43],77:[2,43]},{18:63,31:[2,73],48:60,57:61,58:64,59:[1,38],63:62,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{66:[1,68]},{21:[2,37],31:[2,37],52:[2,37],59:[2,37],62:[2,37],66:[2,37],69:[2,37],74:[2,37],75:[2,37],76:[2,37],77:[2,37],79:[1,43]},{18:63,51:69,52:[2,77],57:70,58:64,59:[1,38],63:71,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{24:72,45:[1,73]},{45:[2,48]},{4:74,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],37:[2,41],42:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{45:[2,19]},{18:75,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{4:76,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{24:77,45:[1,73]},{45:[2,50]},{5:[2,10],13:[2,10],14:[2,10],17:[2,10],27:[2,10],32:[2,10],37:[2,10],42:[2,10],45:[2,10],46:[2,10],49:[2,10],53:[2,10]},{18:63,31:[2,81],56:78,57:79,58:64,59:[1,38],63:80,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{59:[2,83],60:81,62:[2,83],66:[2,83],74:[2,83],75:[2,83],76:[2,83],77:[2,83]},{18:63,29:82,31:[2,53],57:83,58:64,59:[1,38],63:84,64:65,65:66,66:[1,67],69:[2,53],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:63,31:[2,59],34:85,57:86,58:64,59:[1,38],63:87,64:65,65:66,66:[1,67],69:[2,59],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:63,20:88,21:[2,45],57:89,58:64,59:[1,38],63:90,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{31:[1,91]},{31:[2,72],59:[2,72],66:[2,72],74:[2,72],75:[2,72],76:[2,72],77:[2,72]},{31:[2,74]},{21:[2,24],31:[2,24],52:[2,24],59:[2,24],62:[2,24],66:[2,24],69:[2,24],74:[2,24],75:[2,24],76:[2,24],77:[2,24]},{21:[2,25],31:[2,25],52:[2,25],59:[2,25],62:[2,25],66:[2,25],69:[2,25],74:[2,25],75:[2,25],76:[2,25],77:[2,25]},{21:[2,27],31:[2,27],52:[2,27],62:[2,27],65:92,66:[1,93],69:[2,27]},{21:[2,87],31:[2,87],52:[2,87],62:[2,87],66:[2,87],69:[2,87]},{21:[2,40],31:[2,40],52:[2,40],59:[2,40],62:[2,40],66:[2,40],67:[1,94],69:[2,40],74:[2,40],75:[2,40],76:[2,40],77:[2,40],79:[2,40]},{21:[2,39],31:[2,39],52:[2,39],59:[2,39],62:[2,39],66:[2,39],69:[2,39],74:[2,39],75:[2,39],76:[2,39],77:[2,39],79:[2,39]},{52:[1,95]},{52:[2,76],59:[2,76],66:[2,76],74:[2,76],75:[2,76],76:[2,76],77:[2,76]},{52:[2,78]},{5:[2,12],13:[2,12],14:[2,12],17:[2,12],27:[2,12],32:[2,12],37:[2,12],42:[2,12],45:[2,12],46:[2,12],49:[2,12],53:[2,12]},{18:96,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{36:48,37:[1,50],41:49,42:[1,51],43:98,44:97,45:[2,69]},{31:[2,63],38:99,59:[2,63],66:[2,63],69:[2,63],74:[2,63],75:[2,63],76:[2,63],77:[2,63]},{45:[2,17]},{5:[2,13],13:[2,13],14:[2,13],17:[2,13],27:[2,13],32:[2,13],37:[2,13],42:[2,13],45:[2,13],46:[2,13],49:[2,13],53:[2,13]},{31:[1,100]},{31:[2,80],59:[2,80],66:[2,80],74:[2,80],75:[2,80],76:[2,80],77:[2,80]},{31:[2,82]},{18:63,57:102,58:64,59:[1,38],61:101,62:[2,85],63:103,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{30:104,31:[2,55],68:105,69:[1,106]},{31:[2,52],59:[2,52],66:[2,52],69:[2,52],74:[2,52],75:[2,52],76:[2,52],77:[2,52]},{31:[2,54],69:[2,54]},{31:[2,61],35:107,68:108,69:[1,106]},{31:[2,58],59:[2,58],66:[2,58],69:[2,58],74:[2,58],75:[2,58],76:[2,58],77:[2,58]},{31:[2,60],69:[2,60]},{21:[1,109]},{21:[2,44],59:[2,44],66:[2,44],74:[2,44],75:[2,44],76:[2,44],77:[2,44]},{21:[2,46]},{5:[2,21],13:[2,21],14:[2,21],17:[2,21],27:[2,21],32:[2,21],37:[2,21],42:[2,21],45:[2,21],46:[2,21],49:[2,21],53:[2,21]},{21:[2,88],31:[2,88],52:[2,88],62:[2,88],66:[2,88],69:[2,88]},{67:[1,94]},{18:63,57:110,58:64,59:[1,38],66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{5:[2,22],13:[2,22],14:[2,22],17:[2,22],27:[2,22],32:[2,22],37:[2,22],42:[2,22],45:[2,22],46:[2,22],49:[2,22],53:[2,22]},{31:[1,111]},{45:[2,18]},{45:[2,70]},{18:63,31:[2,65],39:112,57:113,58:64,59:[1,38],63:114,64:65,65:66,66:[1,67],69:[2,65],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{5:[2,23],13:[2,23],14:[2,23],17:[2,23],27:[2,23],32:[2,23],37:[2,23],42:[2,23],45:[2,23],46:[2,23],49:[2,23],53:[2,23]},{62:[1,115]},{59:[2,84],62:[2,84],66:[2,84],74:[2,84],75:[2,84],76:[2,84],77:[2,84]},{62:[2,86]},{31:[1,116]},{31:[2,56]},{66:[1,118],70:117},{31:[1,119]},{31:[2,62]},{14:[2,11]},{21:[2,28],31:[2,28],52:[2,28],62:[2,28],66:[2,28],69:[2,28]},{5:[2,20],13:[2,20],14:[2,20],17:[2,20],27:[2,20],32:[2,20],37:[2,20],42:[2,20],45:[2,20],46:[2,20],49:[2,20],53:[2,20]},{31:[2,67],40:120,68:121,69:[1,106]},{31:[2,64],59:[2,64],66:[2,64],69:[2,64],74:[2,64],75:[2,64],76:[2,64],77:[2,64]},{31:[2,66],69:[2,66]},{21:[2,26],31:[2,26],52:[2,26],59:[2,26],62:[2,26],66:[2,26],69:[2,26],74:[2,26],75:[2,26],76:[2,26],77:[2,26]},{13:[2,14],14:[2,14],17:[2,14],27:[2,14],32:[2,14],37:[2,14],42:[2,14],45:[2,14],46:[2,14],49:[2,14],53:[2,14]},{66:[1,123],71:[1,122]},{66:[2,89],71:[2,89]},{13:[2,15],14:[2,15],17:[2,15],27:[2,15],32:[2,15],42:[2,15],45:[2,15],46:[2,15],49:[2,15],53:[2,15]},{31:[1,124]},{31:[2,68]},{31:[2,29]},{66:[2,90],71:[2,90]},{13:[2,16],14:[2,16],17:[2,16],27:[2,16],32:[2,16],37:[2,16],42:[2,16],45:[2,16],46:[2,16],49:[2,16],53:[2,16]}],
148
defaultActions: {4:[2,1],47:[2,48],49:[2,19],53:[2,50],62:[2,74],71:[2,78],76:[2,17],80:[2,82],90:[2,46],97:[2,18],98:[2,70],103:[2,86],105:[2,56],108:[2,62],109:[2,11],121:[2,68],122:[2,29]},
149
parseError: function parseError(str, hash) {
150
throw new Error(str);
151
},
152
parse: function parse(input) {
153
var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
154
this.lexer.setInput(input);
155
this.lexer.yy = this.yy;
156
this.yy.lexer = this.lexer;
157
this.yy.parser = this;
158
if (typeof this.lexer.yylloc == "undefined")
159
this.lexer.yylloc = {};
160
var yyloc = this.lexer.yylloc;
161
lstack.push(yyloc);
162
var ranges = this.lexer.options && this.lexer.options.ranges;
163
if (typeof this.yy.parseError === "function")
164
this.parseError = this.yy.parseError;
165
function popStack(n) {
166
stack.length = stack.length - 2 * n;
167
vstack.length = vstack.length - n;
168
lstack.length = lstack.length - n;
169
}
170
function lex() {
171
var token;
172
token = self.lexer.lex() || 1;
173
if (typeof token !== "number") {
174
token = self.symbols_[token] || token;
175
}
176
return token;
177
}
178
var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
179
while (true) {
180
state = stack[stack.length - 1];
181
if (this.defaultActions[state]) {
182
action = this.defaultActions[state];
183
} else {
184
if (symbol === null || typeof symbol == "undefined") {
185
symbol = lex();
186
}
187
action = table[state] && table[state][symbol];
188
}
189
if (typeof action === "undefined" || !action.length || !action[0]) {
190
var errStr = "";
191
if (!recovering) {
192
expected = [];
193
for (p in table[state])
194
if (this.terminals_[p] && p > 2) {
195
expected.push("'" + this.terminals_[p] + "'");
196
}
197
if (this.lexer.showPosition) {
198
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
199
} else {
200
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1?"end of input":"'" + (this.terminals_[symbol] || symbol) + "'");
201
}
202
this.parseError(errStr, {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected});
203
}
204
}
205
if (action[0] instanceof Array && action.length > 1) {
206
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
207
}
208
switch (action[0]) {
209
case 1:
210
stack.push(symbol);
211
vstack.push(this.lexer.yytext);
212
lstack.push(this.lexer.yylloc);
213
stack.push(action[1]);
214
symbol = null;
215
if (!preErrorSymbol) {
216
yyleng = this.lexer.yyleng;
217
yytext = this.lexer.yytext;
218
yylineno = this.lexer.yylineno;
219
yyloc = this.lexer.yylloc;
220
if (recovering > 0)
221
recovering--;
222
} else {
223
symbol = preErrorSymbol;
224
preErrorSymbol = null;
225
}
226
break;
227
case 2:
228
len = this.productions_[action[1]][1];
229
yyval.$ = vstack[vstack.length - len];
230
yyval._$ = {first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column};
231
if (ranges) {
232
yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
233
}
234
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
235
if (typeof r !== "undefined") {
236
return r;
237
}
238
if (len) {
239
stack = stack.slice(0, -1 * len * 2);
240
vstack = vstack.slice(0, -1 * len);
241
lstack = lstack.slice(0, -1 * len);
242
}
243
stack.push(this.productions_[action[1]][0]);
244
vstack.push(yyval.$);
245
lstack.push(yyval._$);
246
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
247
stack.push(newState);
248
break;
249
case 3:
250
return true;
251
}
252
}
253
return true;
254
}
255
};
256
/* Jison generated lexer */
257
var lexer = (function(){
258
var lexer = ({EOF:1,
259
parseError:function parseError(str, hash) {
260
if (this.yy.parser) {
261
this.yy.parser.parseError(str, hash);
262
} else {
263
throw new Error(str);
264
}
265
},
266
setInput:function (input) {
267
this._input = input;
268
this._more = this._less = this.done = false;
269
this.yylineno = this.yyleng = 0;
270
this.yytext = this.matched = this.match = '';
271
this.conditionStack = ['INITIAL'];
272
this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0};
273
if (this.options.ranges) this.yylloc.range = [0,0];
274
this.offset = 0;
275
return this;
276
},
277
input:function () {
278
var ch = this._input[0];
279
this.yytext += ch;
280
this.yyleng++;
281
this.offset++;
282
this.match += ch;
283
this.matched += ch;
284
var lines = ch.match(/(?:\r\n?|\n).*/g);
285
if (lines) {
286
this.yylineno++;
287
this.yylloc.last_line++;
288
} else {
289
this.yylloc.last_column++;
290
}
291
if (this.options.ranges) this.yylloc.range[1]++;
292
293
this._input = this._input.slice(1);
294
return ch;
295
},
296
unput:function (ch) {
297
var len = ch.length;
298
var lines = ch.split(/(?:\r\n?|\n)/g);
299
300
this._input = ch + this._input;
301
this.yytext = this.yytext.substr(0, this.yytext.length-len-1);
302
//this.yyleng -= len;
303
this.offset -= len;
304
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
305
this.match = this.match.substr(0, this.match.length-1);
306
this.matched = this.matched.substr(0, this.matched.length-1);
307
308
if (lines.length-1) this.yylineno -= lines.length-1;
309
var r = this.yylloc.range;
310
311
this.yylloc = {first_line: this.yylloc.first_line,
312
last_line: this.yylineno+1,
313
first_column: this.yylloc.first_column,
314
last_column: lines ?
315
(lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length:
316
this.yylloc.first_column - len
317
};
318
319
if (this.options.ranges) {
320
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
321
}
322
return this;
323
},
324
more:function () {
325
this._more = true;
326
return this;
327
},
328
less:function (n) {
329
this.unput(this.match.slice(n));
330
},
331
pastInput:function () {
332
var past = this.matched.substr(0, this.matched.length - this.match.length);
333
return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
334
},
335
upcomingInput:function () {
336
var next = this.match;
337
if (next.length < 20) {
338
next += this._input.substr(0, 20-next.length);
339
}
340
return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, "");
341
},
342
showPosition:function () {
343
var pre = this.pastInput();
344
var c = new Array(pre.length + 1).join("-");
345
return pre + this.upcomingInput() + "\n" + c+"^";
346
},
347
next:function () {
348
if (this.done) {
349
return this.EOF;
350
}
351
if (!this._input) this.done = true;
352
353
var token,
354
match,
355
tempMatch,
356
index,
357
col,
358
lines;
359
if (!this._more) {
360
this.yytext = '';
361
this.match = '';
362
}
363
var rules = this._currentRules();
364
for (var i=0;i < rules.length; i++) {
365
tempMatch = this._input.match(this.rules[rules[i]]);
366
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
367
match = tempMatch;
368
index = i;
369
if (!this.options.flex) break;
370
}
371
}
372
if (match) {
373
lines = match[0].match(/(?:\r\n?|\n).*/g);
374
if (lines) this.yylineno += lines.length;
375
this.yylloc = {first_line: this.yylloc.last_line,
376
last_line: this.yylineno+1,
377
first_column: this.yylloc.last_column,
378
last_column: lines ? lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length};
379
this.yytext += match[0];
380
this.match += match[0];
381
this.matches = match;
382
this.yyleng = this.yytext.length;
383
if (this.options.ranges) {
384
this.yylloc.range = [this.offset, this.offset += this.yyleng];
385
}
386
this._more = false;
387
this._input = this._input.slice(match[0].length);
388
this.matched += match[0];
389
token = this.performAction.call(this, this.yy, this, rules[index],this.conditionStack[this.conditionStack.length-1]);
390
if (this.done && this._input) this.done = false;
391
if (token) return token;
392
else return;
393
}
394
if (this._input === "") {
395
return this.EOF;
396
} else {
397
return this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),
398
{text: "", token: null, line: this.yylineno});
399
}
400
},
401
lex:function lex() {
402
var r = this.next();
403
if (typeof r !== 'undefined') {
404
return r;
405
} else {
406
return this.lex();
407
}
408
},
409
begin:function begin(condition) {
410
this.conditionStack.push(condition);
411
},
412
popState:function popState() {
413
return this.conditionStack.pop();
414
},
415
_currentRules:function _currentRules() {
416
return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;
417
},
418
topState:function () {
419
return this.conditionStack[this.conditionStack.length-2];
420
},
421
pushState:function begin(condition) {
422
this.begin(condition);
423
}});
424
lexer.options = {};
425
lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
426
427
428
function strip(start, end) {
429
return yy_.yytext = yy_.yytext.substr(start, yy_.yyleng-end);
430
}
431
432
433
var YYSTATE=YY_START
434
switch($avoiding_name_collisions) {
435
case 0:
436
if(yy_.yytext.slice(-2) === "\\\\") {
437
strip(0,1);
438
this.begin("mu");
439
} else if(yy_.yytext.slice(-1) === "\\") {
440
strip(0,1);
441
this.begin("emu");
442
} else {
443
this.begin("mu");
444
}
445
if(yy_.yytext) return 14;
446
447
break;
448
case 1:return 14;
449
break;
450
case 2:
451
this.popState();
452
return 14;
453
454
break;
455
case 3:
456
yy_.yytext = yy_.yytext.substr(5, yy_.yyleng-9);
457
this.popState();
458
return 16;
459
460
break;
461
case 4: return 14;
462
break;
463
case 5:
464
this.popState();
465
return 13;
466
467
break;
468
case 6:return 59;
469
break;
470
case 7:return 62;
471
break;
472
case 8: return 17;
473
break;
474
case 9:
475
this.popState();
476
this.begin('raw');
477
return 21;
478
479
break;
480
case 10:return 53;
481
break;
482
case 11:return 27;
483
break;
484
case 12:return 45;
485
break;
486
case 13:this.popState(); return 42;
487
break;
488
case 14:this.popState(); return 42;
489
break;
490
case 15:return 32;
491
break;
492
case 16:return 37;
493
break;
494
case 17:return 49;
495
break;
496
case 18:return 46;
497
break;
498
case 19:
499
this.unput(yy_.yytext);
500
this.popState();
501
this.begin('com');
502
503
break;
504
case 20:
505
this.popState();
506
return 13;
507
508
break;
509
case 21:return 46;
510
break;
511
case 22:return 67;
512
break;
513
case 23:return 66;
514
break;
515
case 24:return 66;
516
break;
517
case 25:return 79;
518
break;
519
case 26:// ignore whitespace
520
break;
521
case 27:this.popState(); return 52;
522
break;
523
case 28:this.popState(); return 31;
524
break;
525
case 29:yy_.yytext = strip(1,2).replace(/\\"/g,'"'); return 74;
526
break;
527
case 30:yy_.yytext = strip(1,2).replace(/\\'/g,"'"); return 74;
528
break;
529
case 31:return 77;
530
break;
531
case 32:return 76;
532
break;
533
case 33:return 76;
534
break;
535
case 34:return 75;
536
break;
537
case 35:return 69;
538
break;
539
case 36:return 71;
540
break;
541
case 37:return 66;
542
break;
543
case 38:yy_.yytext = strip(1,2); return 66;
544
break;
545
case 39:return 'INVALID';
546
break;
547
case 40:return 5;
548
break;
549
}
550
};
551
lexer.rules = [/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/];
552
lexer.conditions = {"mu":{"rules":[6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"inclusive":false},"emu":{"rules":[2],"inclusive":false},"com":{"rules":[5],"inclusive":false},"raw":{"rules":[3,4],"inclusive":false},"INITIAL":{"rules":[0,1,40],"inclusive":true}};
553
return lexer;})()
554
parser.lexer = lexer;
555
function Parser () { this.yy = {}; }Parser.prototype = parser;parser.Parser = Parser;
556
return new Parser;
557
})();exports["default"] = handlebars;
558
/* jshint ignore:end */
559