YUI.add("handlebars-base",function(e,t){ /*! Handlebars.js - Copyright (C) 2011 Yehuda Katz https://raw.github.com/wycats/handlebars.js/master/LICENSE */ ;var n=e.namespace("Handlebars");n.SafeString={},function(e){"use strict";function t(e){this.string=e}t.prototype.toString=function(){return""+this.string},e["default"]=t}(n.SafeString),n.SafeString=n.SafeString["default"],n.Utils={},function(e,t){"use strict";function s(e){return n[e]}function o(e){for(var t=1;t":">",'"':""","'":"'","`":"`"},r=/[&<>"'`]/g,i=/[&<>"'`]/;e.extend=o;var u=Object.prototype.toString;e.toString=u;var a=function(e){return typeof e=="function"};a(/x/)&&(a=function(e){return typeof e=="function"&&u.call(e)==="[object Function]"});var a;e.isFunction=a;var f=Array.isArray||function(e){return e&&typeof e=="object"?u.call(e)==="[object Array]":!1};e.isArray=f,e.escapeExpression=l,e.isEmpty=c,e.appendContextPath=h}(n.Utils,n.SafeString),n.Exception={},function(e){"use strict";function n(e,n){var r;n&&n.firstLine&&(r=n.firstLine,e+=" - "+r+":"+n.firstColumn);var i=Error.prototype.constructor.call(this,e);for(var s=0;s0?(r.ids&&(r.ids=[r.name]),e.helpers.each(n,r)):i(this);if(r.data&&r.ids){var u=d(r.data);u.contextPath=t.appendContextPath(r.data.contextPath,r.name),r={data:u}}return s(n,r)}),e.registerHelper("each",function(e,r){if(!r)throw new n("Must pass iterator to #each");var i=r.fn,s=r.inverse,a=0,f="",l,c;r.data&&r.ids&&(c=t.appendContextPath(r.data.contextPath,r.ids[0])+"."),u(e)&&(e=e.call(this)),r.data&&(l=d(r.data));if(e&&typeof e=="object")if(o(e))for(var h=e.length;a= 2.0.0-beta.1"};e.REVISION_CHANGES=s;var o=t.isArray,u=t.isFunction,a=t.toString,f="[object Object]";e.HandlebarsEnvironment=l,l.prototype={constructor:l,logger:h,log:p,registerHelper:function(e,r){if(a.call(e)===f){if(r)throw new n("Arg not supported with multiple helpers");t.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,n){a.call(e)===f?t.extend(this.partials,e):this.partials[e]=n},unregisterPartial:function(e){delete this.partials[e]}};var h={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(e,t){if(h.level<=e){var n=h.methodMap[e];typeof console!="undefined"&&console[n]&&console[n].call(console,t)}}};e.logger=h;var p=h.log;e.log=p;var d=function(e){var n=t.extend({},e);return n._parent=e,n};e.createFrame=d}(n,n.Utils,n.Exception),n.VM={},function(e,t,n,r,i,s){"use strict";function o(e){var t=e&&e[0]||1,r=i;if(t!==r){if(t