/* handlebars v3.0.3 Copyright (C) 2011-2014 by Yehuda Katz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @license */ (function(w,p){"object"===typeof exports&&"object"===typeof module?module.exports=p():"function"===typeof define&&define.amd?define(p):"object"===typeof exports?exports.Handlebars=p():w.Handlebars=p()})(this,function(){return function(w){function p(u){if(t[u])return t[u].exports;var n=t[u]={exports:{},id:u,loaded:!1};w[u].call(n.exports,n,n.exports,p);n.loaded=!0;return n.exports}var t={};p.m=w;p.c=t;p.p="";return p(0)}([function(w,p,t){function u(){var a=b();a.compile=function(f,l){return e.compile(f, l,a)};a.precompile=function(f,l){return e.precompile(f,l,a)};a.AST=h["default"];a.Compiler=e.Compiler;a.JavaScriptCompiler=c["default"];a.Parser=g.parser;a.parse=g.parse;return a}var n=t(8)["default"];p.__esModule=!0;var r=t(1);r=n(r);var d=t(2),h=n(d),g=t(3),e=t(4);d=t(5);var c=n(d);d=t(6);d=n(d);t=t(7);n=n(t);var b=r["default"].create;r=u();r.create=u;n["default"](r);r.Visitor=d["default"];r["default"]=r;p["default"]=r;w.exports=p["default"]},function(w,p,t){function u(){var a=new h.HandlebarsEnvironment; c.extend(a,h);a.SafeString=g["default"];a.Exception=e["default"];a.Utils=c;a.escapeExpression=c.escapeExpression;a.VM=b;a.template=function(f){return b.template(f,a)};return a}var n=t(9)["default"],r=t(8)["default"];p.__esModule=!0;var d=t(10),h=n(d);d=t(11);var g=r(d);d=t(12);var e=r(d);d=t(13);var c=n(d);d=t(14);var b=n(d);t=t(7);r=r(t);t=u();t.create=u;r["default"](t);t["default"]=t;p["default"]=t;w.exports=p["default"]},function(w,p,t){p.__esModule=!0;var u={Program:function(n,r,d,h){this.loc= h;this.type="Program";this.body=n;this.blockParams=r;this.strip=d},MustacheStatement:function(n,r,d,h,g,e){this.loc=e;this.type="MustacheStatement";this.path=n;this.params=r||[];this.hash=d;this.escaped=h;this.strip=g},BlockStatement:function(n,r,d,h,g,e,c,b,a){this.loc=a;this.type="BlockStatement";this.path=n;this.params=r||[];this.hash=d;this.program=h;this.inverse=g;this.openStrip=e;this.inverseStrip=c;this.closeStrip=b},PartialStatement:function(n,r,d,h,g){this.loc=g;this.type="PartialStatement"; this.name=n;this.params=r||[];this.hash=d;this.indent="";this.strip=h},ContentStatement:function(n,r){this.loc=r;this.type="ContentStatement";this.original=this.value=n},CommentStatement:function(n,r,d){this.loc=d;this.type="CommentStatement";this.value=n;this.strip=r},SubExpression:function(n,r,d,h){this.loc=h;this.type="SubExpression";this.path=n;this.params=r||[];this.hash=d},PathExpression:function(n,r,d,h,g){this.loc=g;this.type="PathExpression";this.data=n;this.original=h;this.parts=d;this.depth= r},StringLiteral:function(n,r){this.loc=r;this.type="StringLiteral";this.original=this.value=n},NumberLiteral:function(n,r){this.loc=r;this.type="NumberLiteral";this.original=this.value=Number(n)},BooleanLiteral:function(n,r){this.loc=r;this.type="BooleanLiteral";this.original=this.value="true"===n},UndefinedLiteral:function(n){this.loc=n;this.type="UndefinedLiteral";this.original=this.value=void 0},NullLiteral:function(n){this.loc=n;this.type="NullLiteral";this.original=this.value=null},Hash:function(n, r){this.loc=r;this.type="Hash";this.pairs=n},HashPair:function(n,r,d){this.loc=d;this.type="HashPair";this.key=n;this.value=r},helpers:{helperExpression:function(n){return!("SubExpression"!==n.type&&!n.params.length&&!n.hash)},scopedId:function(n){return/^\.|this\b/.test(n.original)},simpleId:function(n){return 1===n.parts.length&&!u.helpers.scopedId(n)&&!n.depth}}};p["default"]=u;w.exports=p["default"]},function(w,p,t){var u=t(8)["default"];w=t(9)["default"];p.__esModule=!0;p.parse=function(e,c){if("Program"=== e.type)return e;r["default"].yy=g;g.locInfo=function(b){return new g.SourceLocation(c&&c.srcName,b)};return(new h["default"]).accept(r["default"].parse(e))};var n=t(15),r=u(n);n=t(2);n=u(n);var d=t(16),h=u(d);u=t(17);w=w(u);t=t(13);p.parser=r["default"];var g={};t.extend(g,w,n["default"])},function(w,p,t){function u(){}function n(c,b){if(c===b)return!0;if(h.isArray(c)&&h.isArray(b)&&c.length===b.length){for(var a=0;athis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot);return this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;this.inlineStack=[];for(var f=0,l=a.length;f"'`]/g,d=/[&<>"'`]/,h=Object.prototype.toString;p.toString=h;w=function(e){return"function"===typeof e};w(/x/)&&(p.isFunction=w=function(e){return"function"===typeof e&&"[object Function]"===h.call(e)});p.isFunction= w;var g=Array.isArray||function(e){return e&&"object"===typeof e?"[object Array]"===h.call(e):!1};p.isArray=g},function(w,p,t){function u(g,e,c,b,a,f,l){function m(k,q){q=void 0===q?{}:q;return c.call(g,k,g.helpers,g.partials,q.data||b,f&&[q.blockParams].concat(f),l&&[k].concat(l))}m.program=e;m.depth=l?l.length:0;m.blockParams=a||0;return m}var n=t(9)["default"];w=t(8)["default"];p.__esModule=!0;p.checkRevision=function(g){var e=g&&g[0]||1,c=h.COMPILER_REVISION;if(e!==c){if(ed.length&&(d+=this._input.substr(0,20-d.length));return(d.substr(0,20)+(20e[0].length)){var e=d;var c=g;if(!this.options.flex)break}if(e){if(d=e[0].match(/(?:\r\n?|\n).*/g))this.yylineno+=d.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length};this.yytext+=e[0];this.match+=e[0];this.matches=e;this.yyleng=this.yytext.length;this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+= this.yyleng]);this._more=!1;this._input=this._input.slice(e[0].length);this.matched+=e[0];e=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]);this.done&&this._input&&(this.done=!1);if(e)return e}else return""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var d=this.next();return"undefined"!==typeof d?d:this.lex()}, begin:function(d){this.conditionStack.push(d)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(d){this.begin(d)},options:{},performAction:function(d,h,g,e){function c(b,a){return h.yytext=h.yytext.substr(b,h.yyleng-a)}switch(g){case 0:"\\\\"===h.yytext.slice(-2)?(c(0,1),this.begin("mu")):"\\"=== h.yytext.slice(-1)?(c(0,1),this.begin("emu")):this.begin("mu");if(h.yytext)return 14;break;case 1:return 14;case 2:return this.popState(),14;case 3:return h.yytext=h.yytext.substr(5,h.yyleng-9),this.popState(),16;case 4:return 14;case 5:return this.popState(),13;case 6:return 59;case 7:return 62;case 8:return 17;case 9:return this.popState(),this.begin("raw"),21;case 10:return 53;case 11:return 27;case 12:return 45;case 13:return this.popState(),42;case 14:return this.popState(),42;case 15:return 32; case 16:return 37;case 17:return 49;case 18:return 46;case 19:this.unput(h.yytext);this.popState();this.begin("com");break;case 20:return this.popState(),13;case 21:return 46;case 22:return 67;case 23:return 66;case 24:return 66;case 25:return 81;case 27:return this.popState(),52;case 28:return this.popState(),31;case 29:return h.yytext=c(1,2).replace(/\\"/g,'"'),74;case 30:return h.yytext=c(1,2).replace(/\\'/g,"'"),74;case 31:return 79;case 32:return 76;case 33:return 76;case 34:return 77;case 35:return 78; case 36:return 75;case 37:return 69;case 38:return 71;case 39:return 66;case 40:return 66;case 41:return"INVALID";case 42:return 5}},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)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],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,41,42],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[5],inclusive:!1},raw:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,1,42],inclusive:!0}}}}();n.lexer=r;u.prototype=n;n.Parser=u;return new u}();p["default"]=t;w.exports=p["default"]},function(w,p,t){function u(){}function n(e,c,b){void 0===c&&(c=e.length);var a=e[c-1];e=e[c-2];if(!a)return b; if("ContentStatement"===a.type)return(e||!b?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(a.original)}function r(e,c,b){void 0===c&&(c=-1);var a=e[c+1];e=e[c+2];if(!a)return b;if("ContentStatement"===a.type)return(e||!b?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(a.original)}function d(e,c,b){!(e=e[null==c?0:c+1])||"ContentStatement"!==e.type||!b&&e.rightStripped||(c=e.value,e.value=e.value.replace(b?/^\s+/:/^[ \t]*\r?\n?/,""),e.rightStripped=e.value!==c)}function h(e,c,b){if((e=e[null==c?e.length-1:c-1])&&"ContentStatement"=== e.type&&(b||!e.leftStripped))return c=e.value,e.value=e.value.replace(b?/\s+$/:/[ \t]+$/,""),e.leftStripped=e.value!==c,e.leftStripped}var g=t(8)["default"];p.__esModule=!0;t=t(6);g=g(t);u.prototype=new g["default"];u.prototype.Program=function(e){var c=!this.isRootSeen;this.isRootSeen=!0;for(var b=e.body,a=0,f=b.length;a