varHandlebars={};Handlebars.VERSION="1.0.beta.6";Handlebars.helpers={};Handlebars.partials={};Handlebars.registerHelper=function(b,c,a){if(a){c.not=a}this.helpers[b]=c};Handlebars.registerPartial=function(a,b){this.partials[a]=b};Handlebars.registerHelper("helperMissing",function(a){if(arguments.length===2){returnundefined}else{thrownewError("Could not find property '"+a+"'")}});vartoString=Object.prototype.toString,functionType="[object Function]";Handlebars.registerHelper("blockHelperMissing",function(f,d){vara=d.inverse||function(){},h=d.fn;varc="";varg=toString.call(f);if(g===functionType){f=f.call(this)}if(f===true){returnh(this)}else{if(f===false||f==null){returna(this)}else{if(g==="[object Array]"){if(f.length>0){for(vare=0,b=f.length;e<b;e++){c=c+h(f[e])}}else{c=a(this)}returnc}else{returnh(f)}}}});Handlebars.registerHelper("each",function(f,d){varg=d.fn,a=d.inverse;varc="";if(f&&f.length>0){for(vare=0,b=f.length;e<b;e++){c=c+g(f[e])}}else{c=a(this)}returnc});Handlebars.registerHelper("if",function(b,a){varc=toString.call(b);if(c===functionType){b=b.call(this)}if(!b||Handlebars.Utils.isEmpty(b)){returna.inverse(this)}else{returna.fn(this)}});Handlebars.registerHelper("unless",function(c,b){vard=b.fn,a=b.inverse;b.fn=a;b.inverse=d;returnHandlebars.helpers["if"].call(this,c,b)});Handlebars.registerHelper("with",function(b,a){returna.fn(b)});Handlebars.registerHelper("log",function(a){Handlebars.log(a)});Handlebars.Exception=function(b){vara=Error.prototype.constructor.apply(this,arguments);for(varcina){if(a.hasOwnProperty(c)){this[c]=a[c]}}this.message=a.message};Handlebars.Exception.prototype=newError;Handlebars.SafeString=function(a){this.string=a};Handlebars.SafeString.prototype.toString=function(){returnthis.string.toString()};(function(){varc={"<":"<",">":">",'"':""","'":"'","`":"`"};vard=/&(?!\w+;)|[<>"'`]/g;varb=/[&<>"'`]/;vara=function(e){returnc[e]||"&"};Handlebars.Utils={escapeExpression:function(e){if(einstanceofHandlebars.SafeString){returne.toString()}else{if(e==null||e===false){return""}}if(!b.test(e)){returne}returne.replace(d,a)},isEmpty:function(e){if(typeofe==="undefined"){returntrue}else{if(e===null){returntrue}else{if(e===false){returntrue}else{if(Object.prototype.toString.call(e)==="[object Array]"&&e.length===0){returntrue}else{returnfalse}}}}}}})();Handlebars.VM={template:function(a){varb={escapeExpression:Handlebars.Utils.escapeExpression,invokePartial:Handlebars.VM.invokePartial,programs:[],program:function(d,e,f){varc=this.programs[d];if(f){returnHandlebars.VM.program(e,f)}else{if(c){returnc}else{c=this.programs[d]=Handlebars.VM.program(e);returnc}}},programWithDepth:Handlebars.VM.programWithDepth,noop:Handlebars.VM.noop};returnfunction(d,c){c=c||{};returna.call(b,Handlebars,d,c.helpers,c.partials,c.data)}},programWithDepth:function(b,d,c){vara=Array.prototype.slice.call(arguments,2);returnfunction(f,e){e=e||{};returnb.apply(this,[f,e.data||d].concat(a))}},program:function(a,b){returnfunction(d,c){c=c||{};returna(d,c.data||b)}},noop:function(){return""},invokePartial:function(a,b,d,e,c,f){options={helpers:e,partials:c,data:f};if(a===undefined){thrownewHandlebars.Exception("The partial "+b+" could not be found")}else{if(ainstanceofFunction){returna(d,options)}else{if(!Handlebars.compile){thrownewHandlebars.Exception("The partial "+b+" could not be compiled when running in runtime-only mode")}else{c[b]=Handlebars.compile(a);returnc[b](d,options)}}}}};Handlebars.template=Handlebars.VM.template;