_running:!1,element_selector:"body",debug:!1,raise_errors:!1,run_interval_every:50,location_proxy:null,template_engine:null,toString:function(){return"Sammy.Application:"+this.element_selector},$element:function(){returnc(this.element_selector)},use:function(){vara=c.makeArray(arguments),b=a.shift();try{a.unshift(this),b.apply(this,a)}catch(d){"undefined"==typeofb?this.error("Plugin Error: called use() but plugin is not defined",d):c.isFunction(b)?this.error("Plugin Error",d):this.error("Plugin Error: called use() but '"+
b.toString()+"' is not a function",d)}returnthis},route:function(a,b,d){varj=this,e=[],g;!d&&c.isFunction(b)&&(d=b=a,a="any");a=a.toLowerCase();if(b.constructor==String){for(l.lastIndex=0;null!==(path_match=l.exec(b));)e.push(path_match[1]);b=RegExp("^"+b.replace(l,"([^/]+)")+"$")}"string"==typeofd&&(d=j[d]);g=function(a){varc={verb:a,path:b,callback:d,param_names:e};j.routes[a]=j.routes[a]||[];j.routes[a].push(c)};"any"===a?c.each(this.ROUTE_VERBS,function(a,b){g(b)}):g(a);returnthis},get:h("get"),
swap:function(a){returnthis.$element().html(a)},notFound:function(a,b){vard=this.error(["404 Not Found",a,b].join(""));return"get"===a?d:!0},error:function(a,b){b||(b=Error());b.message=[a,b.message].join("");this.trigger("error",{message:b.message,error:b});if(this.raise_errors)throwb;this.log(b.message,b)},_checkLocation:function(){vara,b;a=this.getLocation();a!=this.last_location&&(b=this.runRoute("get",a));this.last_location=a;returnb},_checkFormSubmission:function(a){varb,d;this.trigger("check-form-submission",