!function(t,e){t.module("Application",[]).factory("Application",["name",function(n){return t.extend({url:function(e,n){var r=[],o=this.config.route;return t.forEach(t.extend({p:e},n),function(t,e){r.push(e+"="+t)}),r.length&&(o+=(o.indexOf("?")!=-1?"&":"?")+r.join("&")),o},baseUrl:function(){return this.config.url},templateUrl:function(t){return this.url("template",{name:t})}},e[n])}]).filter("first",["$filter",function(t){return function(e){return t("toArray")(e)[0]}}]).filter("length",["$filter",function(t){return function(e){return t("toArray")(e).length}}]).filter("toArray",function(){return function(e){return t.isObject(e)?Object.keys(e).filter(function(t){return"$"!==t.charAt(0)}).map(function(t){return e[t]}):t.isArray(e)?e:[]}}).config(["$provide","$httpProvider",function(e,n){e.decorator("$templateCache",["$delegate","Application",function(e,n){return t.forEach(n.templates,function(t,n){e.put(n,t)}),e}]),e.decorator("$templateRequest",["$delegate","Application",function(t,e){return function(n,r){return e.templates[n]||(n=e.templateUrl(n)),t(n,r)}}]),n.interceptors.push(["Application",function(t){return{request:function(e){return"PUT"!=e.method&&"DELETE"!=e.method||(e.headers["X-HTTP-Method-Override"]=e.method,e.method="POST"),"POST"==e.method&&(e.headers["X-XSRF-TOKEN"]=t.config.csrf),e}}}])}]),t.element(e.document).ready(function(){var n=t.element(this).find("[data-app]");t.forEach(n,function(n){var r=t.element(n).data("app");e[r]&&t.bootstrap(n,[r])})})}(angular,window);