text: /*
  
      Swag v0.5.1 <http://elving.github.com/swag/>
  
      Copyright 2012 Elving Rodriguez <http://elving.me/>
  
      Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
  
  */
  
  !function(){var e,r,n,t,a=[].indexOf||function(e){for(var r=0,n=this.length;n>r;r++)if(r in this&&this[r]===e)return r;return-1};"undefined"!=typeof window&&null!==window?window.Swag=n={}:"undefined"!=typeof module&&null!==module&&(module.exports=n={}),n.helpers={},n.addHelper=function(e,r){return n.helpers[e]=r},n.registerHelpers=function(e){var r,t,a,s;e?n.Handlebars=e:"undefined"!=typeof window&&null!==window?n.Handlebars=null!=window.Ember?Ember.Handlebars:window.Handlebars:"undefined"!=typeof module&&null!==module&&(n.Handlebars=require("handlebars")),n.registerHelper=function(e,r){return"undefined"!=typeof window&&null!==window&&window.Ember?n.Handlebars.helper(e,r):n.Handlebars.registerHelper(e,r)},a=n.helpers,s=[];for(t in a)r=a[t],s.push(n.registerHelper(t,r));return s},n.Config={partialsPath:"",precompiledTemplates:!0},t={},t.isHandlebarsSpecific=function(e){return e&&null!=e.fn||e&&null!=e.hash},t.isUndefined=function(e){return void 0===e||null===e||t.isHandlebarsSpecific(e)},t.safeString=function(e){return new n.Handlebars.SafeString(e)},t.trim=function(e){var r;return r=/\S/.test(" ")?/^[\s\xA0]+|[\s\xA0]+$/g:/^\s+|\s+$/g,e.toString().replace(r,"")},t.isFunc=function(e){return"function"==typeof e},t.isString=function(e){return"string"==typeof e},t.result=function(e){return t.isFunc(e)?e():e},t.err=function(e){throw new Error(e)},n.addHelper("lowercase",function(e){return t.isUndefined(e)?t.err("{{lowercase}} takes one argument (string)."):(e=t.result(e),e.toLowerCase())}),n.addHelper("uppercase",function(e){return t.isUndefined(e)?t.err("{{uppercase}} takes one argument (string)."):(e=t.result(e),e.toUpperCase())}),n.addHelper("capitalizeFirst",function(e){return t.isUndefined(e)?t.err("{{capitalizeFirst}} takes one argument (string)."):(e=t.result(e),e.charAt(0).toUpperCase()+e.slice(1))}),n.addHelper("capitalizeEach",function(e){return t.isUndefined(e)?t.err("{{capitalizeEach}} takes one argument (string)."):(e=t.result(e),e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1)}))}),n.addHelper("titleize",function(e){var r,n,a,s;return t.isUndefined(e)?t.err("{{titleize}} takes one argument (string)."):(e=t.result(e),n=e.replace(/[ \-_]+/g," "),s=n.match(/\w+/g),r=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},function(){var e,n,t;for(t=[],e=0,n=s.length;n>e;e++)a=s[e],t.push(r(a));return t}().join(" "))}),n.addHelper("sentence",function(e){return t.isUndefined(e)?t.err("{{sentence}} takes one argument (string)."):(e=t.result(e),e.replace(/((?:\S[^\.\?\!]*)[\.\?\!]*)/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))}),n.addHelper("reverse",function(e){return t.isUndefined(e)?t.err("{{reverse}} takes one argument (string)."):(e=t.result(e),e.split("").reverse().join(""))}),n.addHelper("truncate",function(e,r,n){return t.isUndefined(e)?t.err("{{truncate}} takes one argument (string)."):(e=t.result(e),t.isUndefined(n)&&(n=""),e.length>r?e.substring(0,r-n.length)+n:e)}),n.addHelper("center",function(e,r){var n,a;if(t.isUndefined(e)&&t.isUndefined(r))return t.err("{{center}} takes two arguments (string, number).");for(e=t.result(e),r=t.result(r),a="",n=0;r>n;)a+="&nbsp;",n++;return""+a+e+a}),n.addHelper("newLineToBr",function(e){return t.isUndefined(e)?t.err("{{newLineToBr}} takes one argument (string)."):(e=t.result(e),e.replace(/\r?\n|\r/g,"<br>"))}),n.addHelper("first",function(e,r){return t.isUndefined(e)?t.err("{{first}} takes at least one argument (array)."):(e=t.result(e),t.isUndefined(r)||(r=parseFloat(t.result(r))),t.isUndefined(r)?e[0]:e.slice(0,r))}),n.addHelper("withFirst",function(e,r,n){var a,s;if(t.isUndefined(e))return t.err("{{withFirst}} takes at least one argument (array).");if(e=t.result(e),t.isUndefined(r)||(r=parseFloat(t.result(r))),t.isUndefined(r))return n=r,n.fn(e[0]);e=e.slice(0,r),s="";for(a in e)s+=n.fn(e[a]);return s}),n.addHelper("last",function(e,r){return t.isUndefined(e)?t.err("{{last}} takes at least one argument (array)."):(e=t.result(e),t.isUndefined(r)||(r=parseFloat(t.result(r))),t.isUndefined(r)?e[e.length-1]:e.slice(-r))}),n.addHelper("withLast",function(e,r,n){var a,s;if(t.isUndefined(e))return t.err("{{withLast}} takes at least one argument (array).");if(e=t.result(e),t.isUndefined(r)||(r=parseFloat(t.result(r))),t.isUndefined(r))return n=r,n.fn(e[e.length-1]);e=e.slice(-r),s="";for(a in e)s+=n.fn(e[a]);return s}),n.addHelper("after",function(e,r){return t.isUndefined(e)&&t.isUndefined(r)?t.err("{{after}} takes two arguments (array, number)."):(e=t.result(e),t.isUndefined(r)||(r=parseFloat(t.result(r))),e.slice(r))}),n.addHelper("withAfter",function(e,r,n){var a,s;if(t.isUndefined(e)&&t.isUndefined(r))return t.err("{{withAfter}} takes two arguments (array, number).");e=t.result(e),t.isUndefined(r)||(r=parseFloat(t.result(r))),e=e.slice(r),s="";for(a in e)s+=n.fn(e[a]);return s}),n.addHelper("before",function(e,r){return t.isUndefined(e)&&t.isUndefined(r)?t.err("{{before}} takes two arguments (array, number)."):(e=t.result(e),t.isUndefined(r)||(r=parseFloat(t.result(r))),e.slice(0,-r))}),n.addHelper("withBefore",function(e,r,n){var a,s;if(t.isUndefined(e)&&t.isUndefined(r))return t.err("{{withBefore}} takes two arguments (array, number).");e=t.result(e),t.isUndefined(r)||(r=parseFloat(t.result(r))),e=e.slice(0,-r),s="";for(a in e)s+=n.fn(e[a]);return s}),n.addHelper("join",function(e,r){return t.isUndefined(e)?t.err("{{join}} takes at least one argument (array)."):(e=t.result(e),t.isUndefined(r)||(r=t.result(r)),e.join(t.isUndefined(r)?" ":r))}),n.addHelper("sort",function(e,r){return t.isUndefined(e)?t.err("{{sort}} takes at least one argument (array)."):(e=t.result(e),t.isUndefined(r)?e.sort():(r=t.result(r),e.sort(function(e,n){return e[r]>n[r]})))}),n.addHelper("withSort",function(e,r,n){var a,s,i,u;if(t.isUndefined(e))return t.err("{{withSort}} takes at least one argument (array).");if(e=t.result(e),s="",t.isUndefined(r))for(n=r,e=e.sort(),i=0,u=e.length;u>i;i++)a=e[i],s+=n.fn(a);else{r=t.result(r),e=e.sort(function(e,n){return e[r]>n[r]});for(a in e)s+=n.fn(e[a])}return s}),n.addHelper("length",function(e){return t.isUndefined(e)?t.err("{{length}} takes one argument (array)."):(e=t.result(e),e.length)}),n.addHelper("lengthEqual",function(e,r,n){return t.isUndefined(e)?t.err("{{lengthEqual}} takes two arguments (array, number)."):(e=t.result(e),t.isUndefined(r)||(r=parseFloat(t.result(r))),e.length===r?n.fn(this):n.inverse(this))}),n.addHelper("empty",function(e,r){return t.isHandlebarsSpecific(e)?t.err("{{empty}} takes one argument (array)."):(e=t.result(e),!e||e.length<=0?r.fn(this):r.inverse(this))}),n.addHelper("any",function(e,r){return t.isHandlebarsSpecific(e)?t.err("{{any}} takes one argument (array)."):(e=t.result(e),e&&e.length>0?r.fn(this):r.inverse(this))}),n.addHelper("inArray",function(e,r,n){return t.isUndefined(e)&&t.isUndefined(r)?t.err("{{inArray}} takes two arguments (array, string|number)."):(e=t.result(e),r=t.result(r),a.call(e,r)>=0?n.fn(this):n.inverse(this))}),n.addHelper("eachIndex",function(e,r){var n,a,s,i,u;if(t.isUndefined(e))return t.err("{{eachIndex}} takes one argument (array).");for(e=t.result(e),a="",n=i=0,u=e.length;u>i;n=++i)s=e[n],a+=r.fn({item:s,index:n});return a}),n.addHelper("eachProperty",function(e,r){var n,a,s;if(t.isUndefined(e))return t.err("{{eachProperty}} takes one argument (object).");e=t.result(e),a="";for(n in e)s=e[n],a+=r.fn({key:n,value:s});return a}),n.addHelper("add",function(e,r){return t.isUndefined(e)&&t.isUndefined(r)?t.err("{{add}} takes two arguments (number, number)."):(e=parseFloat(t.result(e)),r=parseFloat(t.result(r)),e+r)}),n.addHelper("subtract",function(e,r){return t.isUndefined(e)&&t.isUndefined(r)?t.err("{{subtract}} takes two arguments (number, number)."):(e=parseFloat(t.result(e)),r=parseFloat(t.result(r)),e-r)}),n.addHelper("divide",function(e,r){return t.isUndefined(e)&&t.isUndefined(r)?t.err("{{divide}} takes two arguments (number, number)."):(e=parseFloat(t.result(e)),r=parseFloat(t.result(r)),e/r)}),n.addHelper("multiply",function(e,r){return t.isUndefined(e)&&t.isUndefined(r)?t.err("{{multiply}} takes two arguments (number, number)."):(e=parseFloat(t.result(e)),r=parseFloat(t.result(r)),e*r)}),n.addHelper("floor",function(e){return t.isUndefined(e)?t.err("{{floor}} takes one argument (number)."):(e=parseFloat(t.result(e)),Math.floor(e))}),n.addHelper("ceil",function(e){return t.isUndefined(e)?t.err("{{ceil}} takes one argument (number)."):(e=parseFloat(t.result(e)),Math.ceil(e))}),n.addHelper("round",function(e){return t.isUndefined(e)?t.err("{{round}} takes one argument (number)."):(e=parseFloat(t.result(e)),Math.round(e))}),n.addHelper("toFixed",function(e,r){return t.isUndefined(e)?t.err("{{toFixed}} takes at least one argument (number)."):(e=parseFloat(t.result(e)),r=t.isUndefined(r)?0:t.result(r),e.toFixed(r))}),n.addHelper("toPrecision",function(e,r){return t.isUndefined(e)?t.err("{{toPrecision}} takes at least one argument (number)."):(e=parseFloat(t.result(e)),r=t.isUndefined(r)?1:t.result(r),e.toPrecision(r))}),n.addHelper("toExponential",function(e,r){return t.isUndefined(e)?t.err("{{toExponential}} takes at least one argument (number)."):(e=parseFloat(t.result(e)),r=t.isUndefined(r)?0:t.result(r),e.toExponential(r))}),n.addHelper("toInt",function(e){return t.isUndefined(e)?t.err("{{toInt}} takes one argument (number)."):(e=t.result(e),parseInt(e,10))}),n.addHelper("toFloat",function(e){return t.isUndefined(e)?t.err("{{toFloat}} takes one argument (number)."):(e=t.result(e),parseFloat(e))}),n.addHelper("digitGrouping",function(e,r){return t.isUndefined(e)?t.err("{{digitGrouping}} takes at least one argument (number)."):(e=parseFloat(t.result(e)),r=t.isUndefined(r)?",":t.result(r),e.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+r))}),n.addHelper("is",function(e,r,n){return t.isHandlebarsSpecific(e)&&t.isHandlebarsSpecific(e)?t.err("{{is}} takes two arguments (string|number, string|number)."):(e=t.result(e),r=t.result(r),e&&e===r?n.fn(this):n.inverse(this))}),n.addHelper("isnt",function(e,r,n){return t.isHandlebarsSpecific(e)&&t.isHandlebarsSpecific(r)?t.err("{{isnt}} takes two arguments (string|number, string|number)."):(e=t.result(e),r=t.result(r),e&&e===r?n.inverse(this):n.fn(this))}),n.addHelper("gt",function(e,r,n){return t.isHandlebarsSpecific(e)&&t.isHandlebarsSpecific(r)?t.err("{{gt}} takes two arguments (string|number, string|number)."):(e=t.result(e),r=t.result(r),e>r?n.fn(this):n.inverse(this))}),n.addHelper("gte",function(e,r,n){return t.isHandlebarsSpecific(e)&&t.isHandlebarsSpecific(r)?t.err("{{gte}} takes two arguments (string|number, string|number)."):(e=t.result(e),r=t.result(r),e>=r?n.fn(this):n.inverse(this))}),n.addHelper("lt",function(e,r,n){return t.isHandlebarsSpecific(e)&&t.isHandlebarsSpecific(r)?t.err("{{lt}} takes two arguments (string|number, string|number)."):(e=t.result(e),r=t.result(r),r>e?n.fn(this):n.inverse(this))}),n.addHelper("lte",function(e,r,n){return t.isHandlebarsSpecific(e)&&t.isHandlebarsSpecific(r)?t.err("{{lte}} takes two arguments (string|number, string|number)."):(e=t.result(e),r=t.result(r),r>=e?n.fn(this):n.inverse(this))}),n.addHelper("or",function(e,r,n){return t.isHandlebarsSpecific(e)&&t.isHandlebarsSpecific(r)?t.err("{{or}} takes two arguments (string|number, string|number)."):(e=t.result(e),r=t.result(r),e||r?n.fn(this):n.inverse(this))}),n.addHelper("and",function(e,r,n){return t.isHandlebarsSpecific(e)&&t.isHandlebarsSpecific(r)?t.err("{{and}} takes two arguments (string|number, string|number)."):(e=t.result(e),r=t.result(r),e&&r?n.fn(this):n.inverse(this))}),e={},e.padNumber=function(e,r,n){var t,a;if("undefined"==typeof n&&(n="0"),t=r-String(e).length,a="",t>0)for(;t--;)a+=n;return a+e},e.dayOfYear=function(e){var r;return r=new Date(e.getFullYear(),0,1),Math.ceil((e-r)/864e5)},e.weekOfYear=function(e){var r;return r=new Date(e.getFullYear(),0,1),Math.ceil(((e-r)/864e5+r.getDay()+1)/7)},e.isoWeekOfYear=function(e){var r,n,t,a;return a=new Date(e.valueOf()),n=(e.getDay()+6)%7,a.setDate(a.getDate()-n+3),t=new Date(a.getFullYear(),0,4),r=(a-t)/864e5,1+Math.ceil(r/7)},e.tweleveHour=function(e){return e.getHours()>12?e.getHours()-12:e.getHours()},e.timeZoneOffset=function(r){var n,t;return n=-r.getTimezoneOffset()/60,t=e.padNumber(Math.abs(n),4),(n>0?"+":"-")+t},e.format=function(r,n){return n.replace(e.formats,function(n,t){switch(t){case"a":return e.abbreviatedWeekdays[r.getDay()];case"A":return e.fullWeekdays[r.getDay()];case"b":return e.abbreviatedMonths[r.getMonth()];case"B":return e.fullMonths[r.getMonth()];case"c":return r.toLocaleString();case"C":return Math.round(r.getFullYear()/100);case"d":return e.padNumber(r.getDate(),2);case"D":return e.format(r,"%m/%d/%y");case"e":return e.padNumber(r.getDate(),2," ");case"F":return e.format(r,"%Y-%m-%d");case"h":return e.format(r,"%b");case"H":return e.padNumber(r.getHours(),2);case"I":return e.padNumber(e.tweleveHour(r),2);case"j":return e.padNumber(e.dayOfYear(r),3);case"k":return e.padNumber(r.getHours(),2," ");case"l":return e.padNumber(e.tweleveHour(r),2," ");case"L":return e.padNumber(r.getMilliseconds(),3);case"m":return e.padNumber(r.getMonth()+1,2);case"M":return e.padNumber(r.getMinutes(),2);case"n":return"\n";case"p":return r.getHours()>11?"PM":"AM";case"P":return e.format(r,"%p").toLowerCase();case"r":return e.format(r,"%I:%M:%S %p");case"R":return e.format(r,"%H:%M");case"s":return r.getTime()/1e3;case"S":return e.padNumber(r.getSeconds(),2);case"t":return"	";case"T":return e.format(r,"%H:%M:%S");case"u":return 0===r.getDay()?7:r.getDay();case"U":return e.padNumber(e.weekOfYear(r),2);case"v":return e.format(r,"%e-%b-%Y");case"V":return e.padNumber(e.isoWeekOfYear(r),2);case"W":return e.padNumber(e.weekOfYear(r),2);case"w":return e.padNumber(r.getDay(),2);case"x":return r.toLocaleDateString();case"X":return r.toLocaleTimeString();case"y":return String(r.getFullYear()).substring(2);case"Y":return r.getFullYear();case"z":return e.timeZoneOffset(r);default:return match}})},e.formats=/%(a|A|b|B|c|C|d|D|e|F|h|H|I|j|k|l|L|m|M|n|p|P|r|R|s|S|t|T|u|U|v|V|W|w|x|X|y|Y|z)/g,e.abbreviatedWeekdays=["Sun","Mon","Tue","Wed","Thur","Fri","Sat"],e.fullWeekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],e.abbreviatedMonths=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e.fullMonths=["January","February","March","April","May","June","July","August","September","October","November","December"],n.addHelper("formatDate",function(r,n){return t.isUndefined(r)?t.err("{{formatDate}} takes two arguments (string|number|date, string)."):(r=t.result(r),n=t.result(n),r=new Date(r),e.format(r,n))}),n.addHelper("now",function(r){var n;return t.isUndefined(r)||(r=t.result(r)),n=new Date,t.isUndefined(r)?n:e.format(n,r)}),n.addHelper("timeago",function(e){var r,n;return t.isUndefined(e)?t.err("{{timeago}} takes one argument (string|number|date)."):(e=t.result(e),e=new Date(e),n=Math.floor((new Date-e)/1e3),r=Math.floor(n/31536e3),r>1?""+r+" years ago":(r=Math.floor(n/2592e3),r>1?""+r+" months ago":(r=Math.floor(n/86400),r>1?""+r+" days ago":(r=Math.floor(n/3600),r>1?""+r+" hours ago":(r=Math.floor(n/60),r>1?""+r+" minutes ago":0===Math.floor(n)?"Just now":Math.floor(n)+" seconds ago")))))}),n.addHelper("inflect",function(e,r,n,a){var s;return t.isUndefined(e)&&t.isUndefined(r)&&t.isUndefined(n)?t.err("{{inflect}} takes at least three arguments (number, string, string)."):(e=parseFloat(t.result(e)),r=t.result(r),n=t.result(n),s=e>1||0===e?n:r,t.isUndefined(a)||a===!1?s:""+e+" "+s)}),n.addHelper("ordinalize",function(e){var r,n;if(t.isUndefined(e))return t.err("{{ordinalize}} takes one arguments (number).");if(e=parseFloat(t.result(e)),r=Math.abs(Math.round(e)),n=r%100,a.call([11,12,13],n)>=0)return""+e+"th";switch(r%10){case 1:return""+e+"st";case 2:return""+e+"nd";case 3:return""+e+"rd";default:return""+e+"th"}}),r={},r.parseAttributes=function(e){return Object.keys(e).map(function(r){return""+r+'="'+e[r]+'"'}).join(" ")},n.addHelper("ul",function(e,n){return"<ul "+r.parseAttributes(n.hash)+">"+e.map(function(e){return"<li>"+n.fn(t.result(e))+"</li>"}).join("\n")+"</ul>"}),n.addHelper("ol",function(e,n){return"<ol "+r.parseAttributes(n.hash)+">"+e.map(function(e){return"<li>"+n.fn(t.result(e))+"</li>"}).join("\n")+"</ol>"}),n.addHelper("br",function(e){var r,n;if(r="<br>",!t.isUndefined(e))for(n=0,e=t.result(e);n<parseFloat(e)-1;)r+="<br>",n++;return t.safeString(r)}),n.addHelper("log",function(e){return t.isUndefined(e)?t.err("{{log}} takes one arguments (string|number|boolean|array|object)."):(e=t.result(e),console.log(e))}),n.addHelper("debug",function(e){return t.isUndefined(e)||(e=t.result(e)),console.log("Context: ",this),t.isUndefined(e)||console.log("Value: ",e),console.log("-----------------------------------------------")}),n.addHelper("default",function(e,r){return t.isHandlebarsSpecific(e)&&t.isUndefined(r)?t.err("{{default}} takes two arguments (string|number, string|number)."):(e=t.result(e),r=t.result(r),e||r)}),n.addHelper("partial",function(e,r,a){var s;return t.isUndefined(e)?t.err("{{partial}} takes at least one argument (string)."):(e=t.result(e),r=t.result(r),s=n.Config.partialsPath+e,t.isUndefined(a)||(a=t.result(a)),null==n.Handlebars.partials[e]&&(t.isUndefined(a)?"undefined"!=typeof define&&null!==define&&t.isFunc(define)&&define.amd?(n.Config.precompiledTemplates||(s="!text"+s),require([s],function(r){return t.isString(r)&&(r=n.Handlebars.compile(r)),n.Handlebars.registerPartial(e,r)})):"undefined"!=typeof require&&null!==require?(a=require(s),t.isString(a)&&(a=n.Handlebars.compile(a)),n.Handlebars.registerPartial(e,a)):t.err("{{partial}} no amd or commonjs module support found."):(t.isString(a)&&(a=n.Handlebars.compile(a)),n.Handlebars.registerPartial(e,a))),t.safeString(n.Handlebars.partials[e](r)))})}.call(this);