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