snowman-io 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 993cfb726c05ae3df7b9fe3f2d5d87c280e0656c
4
- data.tar.gz: 0e85d2abb1479874175dfe943ec7a2819e1c56e4
3
+ metadata.gz: 3dc832d0f7aa94ac8f4aac1f031beabc7aabfc05
4
+ data.tar.gz: 32f91ee06604fcc89e1ba99c5f9a5dfe7addceeb
5
5
  SHA512:
6
- metadata.gz: 894676ae87f7dbfc119499639b332c94eb8044ab53afe667ccc39e81d812627323ddc6ce36cc38ca6a08b0ab1d65be6d52b145e1169ef6552e02167c3a119ed5
7
- data.tar.gz: 97e3977a240677f93368a50c773f5be4d114b908c1832c2c10c508d6c10c27f69ec96c420e7a7e67eb1620c39ac61192ed44e2289e0ab6b5eb92f497cd22deb9
6
+ metadata.gz: 74c167607892743fe7fc3fd79c551bc32cd1d00dbcd499e311fc18f17bd71b5654ad80670754c25df324ebf8f217f944f85a7ed8f698ab4f67f6bf019f337e83
7
+ data.tar.gz: d9e960684feeb8ab2b218249aa1a5258012d13b2daadf25b23a83ae7b04dbb1d8257b1a426f41d7a8628584e3e57af406a9f83f5fe0bfeb9da6035df455e2343
@@ -1,5 +1,10 @@
1
1
  # SnowmanIO
2
2
 
3
+ Version 0.3.0 - 2015.09.09
4
+ - [chart.js defect] Charts were broken on big values with small differences (values: ~ 1e5, diff: ~ 1-e6)
5
+ - Prevent all browsers from caching index.html page
6
+ - Reload app whether new version of snowman backend deliver
7
+
3
8
  Version 0.2.0 - 2015.09.08
4
9
  - Remove self ping loop (Heroku doesn't have free plans without sleeping no more)
5
10
  - Update metric main pages
@@ -27,7 +27,7 @@ require "snowman-io/loop/checks"
27
27
  require "snowman-io/loop/spiders"
28
28
  require "snowman-io/snow_mailer"
29
29
  require "snowman-io/migration"
30
-
30
+ require "snowman-io/spider/internal_mongo"
31
31
  require "snowman-io/models/concerns/tokenable"
32
32
  require "snowman-io/models/user"
33
33
  require "snowman-io/models/app"
@@ -17,7 +17,8 @@ module SnowmanIO
17
17
  apps_deleted: [],
18
18
  metrics_deleted: [],
19
19
  checks_deleted: [],
20
- last: now.to_i
20
+ last: now.to_i,
21
+ version: (ENV["DEV_MODE"].to_i == 1 ? "__VERSION__" : SnowmanIO::VERSION)
21
22
  }
22
23
  else
23
24
  scope = Deleted.where(:created_at.gte => at)
@@ -30,7 +31,8 @@ module SnowmanIO
30
31
  apps_deleted: scope.where(model_kind: App.to_s).map(&:model_id),
31
32
  metrics_deleted: scope.where(model_kind: Metric.to_s).map(&:model_id),
32
33
  checks_deleted: scope.where(model_kind: Check.to_s).map(&:model_id),
33
- last: now.to_i
34
+ last: now.to_i,
35
+ version: (ENV["DEV_MODE"].to_i == 1 ? "__VERSION__" : SnowmanIO::VERSION)
34
36
  }
35
37
  end
36
38
  end
@@ -17,11 +17,7 @@ module SnowmanIO
17
17
  private
18
18
 
19
19
  def perform
20
- # store mongo metrics
21
- stats = Mongoid::Sessions.default.command(dbstats: 1)
22
- App.value("Mongo dataSize", stats["dataSize"])
23
- App.value("Mongo storageSize", stats["storageSize"])
24
- App.value("Mongo nsSizeMB", stats["nsSizeMB"])
20
+ Spider::InternalMongo.new.grab
25
21
  end
26
22
  end
27
23
  end
@@ -0,0 +1,13 @@
1
+ module SnowmanIO
2
+ module Spider
3
+ # store internal mongo metrics
4
+ class InternalMongo
5
+ def grab
6
+ stats = Mongoid::Sessions.default.command(dbstats: 1)
7
+ App.value("Mongo dataSize", stats["dataSize"])
8
+ App.value("Mongo storageSize", stats["storageSize"])
9
+ App.value("Mongo nsSizeMB", stats["nsSizeMB"])
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,8 @@
1
+ define("ui/adapters/application",["exports","ember-data","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].ActiveModelAdapter.extend({host:a["default"].baseHost,namespace:a["default"].apiPrefix})}),define("ui/app",["exports","ember","ember/resolver","ember/load-initializers","ui/config/environment"],function(e,t,a,r,n){"use strict";var d;t["default"].MODEL_FACTORY_INJECTIONS=!0,d=t["default"].Application.extend({modulePrefix:n["default"].modulePrefix,podModulePrefix:n["default"].podModulePrefix,Resolver:a["default"]}),r["default"](d,n["default"].modulePrefix),e["default"]=d}),define("ui/components/app-status",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({app:null})}),define("ui/components/app-title",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"h4",app:null,didInsertElement:function(){this.get("app.system")&&this.$().find("span").tooltip()}})}),define("ui/components/check-add",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("collapsed",!0),this.set("newCheck",this.fridge.create("check",{metric_id:this.get("metric.id")}))}.on("init"),actions:{toggle:function(){this.set("collapsed",!this.get("collapsed")),this.get("collapsed")&&this.reset()},resetCreation:function(){this.reset()}}})}),define("ui/components/check-header",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",enableActions:!0})}),define("ui/components/check-tr",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",classNameBindings:["trClassName"],resolving:!1,enableActions:!0,trClassName:function(){return this.get("check.isMy")&&this.get("check.triggered")?"danger":this.get("check.triggered")?"warning":null}.property("check.triggered","check.isMy"),mode:"show",isShow:t["default"].computed.equal("mode","show"),isEditing:t["default"].computed.equal("mode","editing"),isSaving:t["default"].computed.equal("mode","saving"),isDestroing:t["default"].computed.equal("mode","destroing"),allowTempateChange:!1,isTemplate:function(){return"show"!==this.get("mode")&&"editing"!==this.get("mode")&&"saving"!==this.get("mode")&&"destroing"!==this.get("mode")}.property("mode"),templateFormComponentName:function(){return this.get("isTemplate")?"checks/form-"+this.get("mode"):"empty"}.property("mode","isTemplate"),formTemplate:function(){return this.get("isTemplate")?this.get("mode").underscore():null}.property("mode","isTemplate"),supportedCheckTemplates:function(){return this.get("check.metric.supportedCheckTemplates").map(function(e){return{name:e,componentName:"checks/desc-"+e.dasherize()}})}.property("check.metric.supportedCheckTemplates"),actions:{list:function(){this.set("mode","editing")},select:function(e){this.set("mode",e.dasherize()),console.log("---",this.get("mode"),this.get("isTemplate"))},edit:function(){this.set("mode",this.get("check.template").dasherize())},cancel:function(){this.set("mode","show"),this.sendAction("reset")},save:function(e){var t=this;this.set("mode","saving"),this.fridge.save("check",e).then(function(){t.set("mode","show"),t.sendAction("reset")})},destroy:function(){confirm("Are you sure?")&&(this.set("mode","destroing"),this.fridge.destroyModel("check",this.get("check")))},resolve:function(){var e=this;this.set("resolving",!0),this.fridge.resolveCheck(this.get("check")).then(function(){e.set("resolving",!1)})}}})}),define("ui/components/checks/desc-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/desc-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/form-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("form",this.fridge.clone("check",this.get("check"))),this.set("form.template",this.get("formTemplate"))}.on("init"),actions:{clickMore:function(){this.set("form.cmp","more")},clickLess:function(){this.set("form.cmp","less")},save:function(){this.sendAction("saveAction",this.get("form"))},cancel:function(){this.sendAction("cancelAction")}}})}),define("ui/components/checks/form-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("form",this.fridge.clone("check",this.get("check"))),this.set("form.template",this.get("formTemplate"))}.on("init"),actions:{clickMore:function(){this.set("form.cmp","more")},clickLess:function(){this.set("form.cmp","less")},save:function(){this.sendAction("saveAction",this.get("form"))},cancel:function(){this.sendAction("cancelAction")}}})}),define("ui/components/checks/human-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/human-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/ember-chart",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"canvas",attributeBindings:["width","height"],onlyValues:!1,chartData:{},didInsertElement:function(){var e=this,a=this.get("element").getContext("2d"),r=t["default"].String.classify(this.get("type")),n={responsive:!0,showTooltips:!1,pointDot:!1,bezierCurve:!1,barValueSpacing:1};n.animation=!1,this.get("onlyValues")&&(n.showScale=!1);var d={labels:[],datasets:[]};this.get("chartData.labels").forEach(function(e){d.labels.push(e)}),this.get("chartData.datasets").forEach(function(t){var a=t.color||"blue",n=e._chartColors(r,a);n.data=t.data.map(function(e){return e}),d.datasets.push(n)});var i=new Chart(a)[r](d,n);this.set("chart",i)},willDestroyElement:function(){this.get("chart").destroy()},updateChart:function(){for(var e=this,t=this.get("chart");t.scale.xLabels.length&&t.scale.xLabels[0]!==this.get("chartData.labels")[0];)t.removeData();this.get("chartData.labels").forEach(function(a,r){if(r<t.scale.xLabels.length)e.get("chartData.datasets").forEach(function(a,n){"Line"===e.get("type")?t.datasets[n].points[r].value=a.data[r]:t.datasets[n].bars[r].value=a.data[r]});else{var n=[];e.get("chartData.datasets").forEach(function(e){n.push(e.data[r])}),t.addData(n,a)}}),t.update()}.observes("chartData","chartData.[]"),_chartColors:function(e,t){if("Bar"===e&&"blue"===t)return{fillColor:"rgba(151,187,205,1)",strokeColor:"rgba(151,187,205,1)"};if("Line"===e&&"blue"===t)return{fillColor:"rgba(151,187,205,0.2)",strokeColor:"rgba(151,187,205,1)"};throw"unknown color"}})}),define("ui/components/ember-gravatar",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"img",attributeBindings:["src","style"],size:64,email:"",src:function(){var e=this.get("email"),t=this.get("size");return"//www.gravatar.com/avatar/"+md5(e)+"?s="+t}.property("email","size"),style:function(){var e=this.get("size");return("width:"+e+"px;height:"+e+"px;").htmlSafe()}.property("size")})}),define("ui/components/empty",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({app:null})}),define("ui/components/metrics/history-amount",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/history-counter",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/history-time",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-amount",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-counter",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-time",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/profile/email-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,users:t["default"].computed.alias("fridge.users"),reset:function(){this.set("email",this.get("user.email"))}.on("init"),isEmailExists:function(){var e=this;return this.get("users").filter(function(t){return t.get("id")!==e.get("user.id")}).mapBy("email").contains(this.get("email"))}.property("email","users.@each.email","user.id"),isFormInvalid:function(){return this.get("isEmailExists")||t["default"].isEmpty(this.get("email"))}.property("email","isEmailExists"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdateEmail(this.get("email")).then(function(t){e.set("saving",!1),e.set("email",t.email)})}},_baseUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")}})}),define("ui/components/profile/name-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,reset:function(){this.set("name",this.get("user.name"))}.on("init"),isFormInvalid:function(){return t["default"].isEmpty(this.get("name"))}.property("name"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdateName(this.get("name")).then(function(t){e.set("saving",!1),e.set("name",t.name)})}}})}),define("ui/components/profile/password-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,password:"",password2:"",isFormInvalid:function(){return t["default"].isEmpty(this.get("password"))||this.get("password")!==this.get("password2")}.property("password","password2"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdatePassword(this.get("password")).then(function(){e.set("saving",!1)})}}})}),define("ui/components/snowman-graph",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].Component.extend({metric:null,duration:"5min",type:"Line",width:600,height:250,onlyValues:!1,datapoints:[],loading:t["default"].computed.empty("datapoints"),load:function(){var e=this,r="/metrics/"+this.get("metric.id")+"/render?duration="+this.get("duration");t["default"].$.getJSON(a["default"].api+r).then(function(t){e.set("datapoints",t.datapoints)}),this.set("timer",t["default"].run.later(this,function(){this.load()},5e3))}.on("didInsertElement"),unload:function(){t["default"].run.cancel(this.get("timer"))}.on("willDestroyElement"),chartData:function(){var e=this,t=[];return this.get("targets").split(",").forEach(function(a){var r=a.match(/integral\((.*?)\)/);r?t.push({data:e._integral(e.get("datapoints").mapBy(r[1]))}):t.push({data:e.get("datapoints").mapBy(a)})}),{labels:this.get("datapoints").map(function(t){return"5min"===e.get("duration")?moment(t.at).format("HH:mm:ss"):"history"===e.get("duration")?moment(t.at).format("YYYY-MM-DD"):moment(t.at).format("HH:mm")}),datasets:t}}.property("datapoints","targets","duration"),_integral:function(e){var t=0;return e.map(function(e){return t+=e})}})}),define("ui/components/snowman-table",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].Component.extend({metric:null,targets:"at,min,avg,up,max,sum,count",datapoints:[],loading:!0,preparedDatapoints:function(){var e=this;return this.get("datapoints").toArray().reverse().map(function(t){var a=[];return e.get("targets").split(",").forEach(function(e){"at"===e?a.push(moment(t.at).format("YYYY-MM-DD")):a.push(t[e])}),a})}.property("datapoints.@each","targets"),columns:function(){return this.get("targets").split(",").map(function(e){return e.capitalize()})}.property("targets"),load:function(){var e=this,r="/metrics/"+this.get("metric.id")+"/render?duration=history";t["default"].$.getJSON(a["default"].api+r).then(function(t){e.set("datapoints",t.datapoints),e.set("loading",!1)})}.on("didInsertElement")})}),define("ui/components/users/invite-user",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({show:!1,sending:!1,email:"",users:t["default"].computed.alias("fridge.users"),isFormInvalid:function(){var e=this.get("email");return t["default"].isEmpty(e)||this.get("users").mapBy("email").contains(e)}.property("users.@each.email","email"),actions:{toggle:function(){this.set("show",!this.get("show"))},invite:function(){var e=this;this.set("show",!1),this.set("sending",!0),this.fridge.sendInvite(this.get("email")).then(function(){e.set("sending",!1),e.set("email","")})}}})}),define("ui/components/users/show-user",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({classNames:["media"],updating:!1,actions:{follow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("user"),"follow").then(function(){e.set("updating",!1)})},unfollow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("user"),"unfollow").then(function(){e.set("updating",!1)})}}})}),define("ui/components/users/wait-invite-tr",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",resending:!1,canceling:!1,isShowActions:function(){return!this.get("resending")&&!this.get("canceling")}.property("resending","canceling"),actions:{resend:function(){var e=this;this.set("resending",!0),this.fridge.resendInvite(this.get("user")).then(function(){e.set("resending",!1)})},cancel:function(){confirm("Are you sure?")&&(this.set("canceling",!0),this.fridge.cancelInvite(this.get("user")))}}})}),define("ui/controllers/apps/form",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({init:function(){this.set("form",this.fridge.clone("app",this.get("model")))}.on("init"),isFormValid:function(){return t["default"].isPresent(this.get("form.name"))}.property("form.name"),isFormInvalid:t["default"].computed.not("isFormValid"),actions:{save:function(){return this.set("saving",!0),!0}}})}),define("ui/controllers/apps/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps"],apps:t["default"].computed.alias("controllers.apps.model"),userApps:t["default"].computed.filterBy("apps","system",!1)})}),define("ui/controllers/apps/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps"],apps:t["default"].computed.alias("controllers.apps.model"),isMetricsTabVisible:function(){return this.get("model.metrics.length")>0}.property("model.metrics.length")})}),define("ui/controllers/apps/show/edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({onInit:function(){this.set("destroing",!1)},actions:{destroy:function(){return this.set("destroing",!0),!0}}})}),define("ui/controllers/apps/show/info",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/apps/show/install",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/checks/failed",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({failedChecks:t["default"].computed.filterBy("fridge.checksForMe","triggered",!0)})}),define("ui/controllers/checks/index",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model"),checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("app.checks","checksForMe")})}.observes("app.checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init")})}),define("ui/controllers/forget_password",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("email",""),this.set("status","edit")},isSending:t["default"].computed.equal("status","sending"),isSended:t["default"].computed.equal("status","sended"),isFormInvalid:function(){return this.get("isSending")||t["default"].isEmpty(this.get("email"))}.property("email","isSending"),actions:{restore:function(){var e=this;this.set("status","sending"),this.fridge.userRestorePassword(this.get("email")).then(function(){e.set("status","sended")})}}})}),define("ui/controllers/invite",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({token:t["default"].computed.alias("model.token"),password:"",name:"",isFormInvalid:function(){return t["default"].isEmpty(this.get("password"))||t["default"].isEmpty(this.get("name"))}.property("password","name"),actions:{register:function(){var e=this;this.fridge.acceptInvite(this.get("token"),this.get("name"),this.get("password")).then(function(t){console.log("acceptInvite",t);var a={identification:t.email,password:t.password};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/login",["exports","ember","simple-auth/mixins/login-controller-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{authenticator:"simple-auth-authenticator:devise",isFormInvalid:function(){return t["default"].isEmpty(this.get("identification"))||t["default"].isEmpty(this.get("password"))}.property("identification","password"),actions:{authenticate:function(){var e=this;this._super().then(null,function(t){e.set("errorMessage",t.message)})}}})}),define("ui/controllers/metrics/history",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model")})}),define("ui/controllers/metrics/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({actions:{destroy:function(e){var t=this;confirm("Are you sure?")&&this.fridge.destroyModel("metric",e).then(function(){0===t.get("model.metrics.length")&&t.transitionToRoute("apps.show.info",t.get("model"))})}}})}),define("ui/controllers/metrics/show",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model"),checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("model.checks","checksForMe")})}.observes("model.checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init")})}),define("ui/controllers/restore_password",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({token:t["default"].computed.alias("model.token"),reset:function(){this.set("password",""),this.set("saving",!1)},isFormInvalid:function(){return this.get("saving")||t["default"].isEmpty(this.get("password"))}.property("password","saving"),actions:{update:function(){var e=this;this.set("saving",!0),this.fridge.resetPassword(this.get("token"),this.get("password")).then(function(t){var a={identification:t.email,password:t.password};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/snow",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({currentUser:t["default"].computed.alias("session.currentUser")})}),define("ui/controllers/snow/profile",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("destroing",!1)},actions:{destroy:function(){var e=this;confirm("Are you sure?")&&(this.set("destroing",!0),this.fridge.destroyUser(this.get("session.currentUser")).then(function(){e.get("session").invalidate()}))}}})}),define("ui/controllers/snow/settings",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/snow/settings/force_ssl",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],forceSSL:t["default"].computed.alias("controllers.snow.model.info.force_ssl"),reset:function(){this.set("show",!1),this.set("saving",!1)},statusText:function(){return this.get("forceSSL")?"yes":"no"}.property("forceSSL"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(e){var a=this;this.set("saving",!0),this.set("show",!1),t["default"].$.post(this._baseUrl()+"/force_ssl",{force_ssl:"enable"===e},function(e){a.set("saving",!1),a.set("forceSSL",e.force_ssl),e.force_ssl&&"https:"!==location.protocol&&(window.location.href=window.location.href)})}},_baseUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")}})}),define("ui/controllers/unpacking",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({user:t["default"].computed.alias("model.user"),isFormInvalid:function(){return t["default"].isEmpty(this.get("user.name"))||t["default"].isEmpty(this.get("user.email"))||t["default"].isEmpty(this.get("user.password"))}.property("user.name","user.email","user.password"),actions:{setup:function(){var e=this,t=this.get("user");this.fridge.save("user",t).then(function(){var a={identification:t.get("email"),password:t.get("password")};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/users/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({activeUsers:t["default"].computed.filterBy("model","isActive"),waitInviteUsers:t["default"].computed.filterBy("model","isWaitInvite"),usersInGroupsOfTwo:function(){return this.get("activeUsers").reduce(function(e,a,r){return r%2?e.get("lastObject").set("second",a):e.pushObject(t["default"].Object.create({first:a})),e},t["default"].A())}.property("activeUsers.@each")})}),define("ui/controllers/users/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("updating",!1),this.set("destroing",!1)},actions:{follow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("model"),"follow").then(function(){e.set("updating",!1)})},unfollow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("model"),"unfollow").then(function(){e.set("updating",!1)})},destroy:function(){var e=this;confirm("Are you sure?")&&(this.set("destroing",!0),this.fridge.destroyUser(this.get("model")).then(function(){e.transitionToRoute("users")}))}}})}),define("ui/initializers/app-version",["exports","ui/config/environment","ember"],function(e,t,a){"use strict";var r=a["default"].String.classify,n=!1;e["default"]={name:"App Version",initialize:function(e,d){if(!n){var i=r(d.toString());a["default"].libraries.register(i,t["default"].APP.version),n=!0}}}}),define("ui/initializers/custom-session",["exports","simple-auth/session"],function(e,t){"use strict";function a(e,a){t["default"].reopen({setCurrentUser:function(){var e=this,t=this.get("user_id");return this.container.lookup("service:fridge").find("user",t).then(function(t){e.set("currentUser",t)})}.observes("user_id")}),a.inject("service:fridge","session","simple-auth-session:main"),a.inject("cold-model","session","simple-auth-session:main")}e.initialize=a,e["default"]={name:"custom-session",before:"simple-auth",initialize:a}}),define("ui/initializers/ember-moment",["exports","ember-moment/helpers/moment","ember-moment/helpers/ago","ember-moment/helpers/duration","ember"],function(e,t,a,r,n){"use strict";var d=function(){var e;e=n["default"].HTMLBars?function(e,t){n["default"].HTMLBars._registerHelper(e,n["default"].HTMLBars.makeBoundHelper(t))}:n["default"].Handlebars.helper,e("moment",t["default"]),e("ago",a["default"]),e("duration",r["default"])};e["default"]={name:"ember-moment",initialize:d},e.initialize=d}),define("ui/initializers/export-application-global",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";function r(e,r){var n=t["default"].String.classify(a["default"].modulePrefix);a["default"].exportApplicationGlobal&&!window[n]&&(window[n]=r)}e.initialize=r,e["default"]={name:"export-application-global",initialize:r}}),define("ui/initializers/fridge",["exports"],function(e){"use strict";function t(e,t){t.inject("route","fridge","service:fridge"),t.inject("controller","fridge","service:fridge"),t.inject("component","fridge","service:fridge"),t.inject("cold-model","fridge","service:fridge")}e.initialize=t,e["default"]={name:"fridge",initialize:t}}),define("ui/initializers/models",["exports","ui/models/app","ui/models/metric","ui/models/check","ui/models/user"],function(e,t,a,r,n){"use strict";function d(e,d){d.register("cold-model:app",t["default"],{singleton:!1}),d.register("cold-model:metric",a["default"],{singleton:!1}),d.register("cold-model:check",r["default"],{singleton:!1}),d.register("cold-model:user",n["default"],{singleton:!1})}e.initialize=d,e["default"]={name:"snow",initialize:d}}),define("ui/initializers/simple-auth-devise",["exports","simple-auth-devise/configuration","simple-auth-devise/authenticators/devise","simple-auth-devise/authorizers/devise","ui/config/environment"],function(e,t,a,r,n){"use strict";e["default"]={name:"simple-auth-devise",before:"simple-auth",initialize:function(e,d){t["default"].load(e,n["default"]["simple-auth-devise"]||{}),e.register("simple-auth-authorizer:devise",r["default"]),e.register("simple-auth-authenticator:devise",a["default"])}}}),define("ui/initializers/simple-auth",["exports","simple-auth/configuration","simple-auth/setup","ui/config/environment"],function(e,t,a,r){"use strict";e["default"]={name:"simple-auth",initialize:function(e,n){t["default"].load(e,r["default"]["simple-auth"]||{}),a["default"](e,n)}}}),define("ui/mixins/checks-for-me",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({isCheckForMe:function(e){return this.get("session.currentUser.id")===e.get("user_id")||t["default"].makeArray(this.get("session.currentUser.following_ids")).contains(e.get("user_id"))},updateChecksForMe:function(e,t){for(var a=this,r=this.get(e).filter(function(e){return a.isCheckForMe(e)}),n=this.get(t),d=0;d<n.length;)r.contains(n[d])?d++:n.removeAt(d);r.forEach(function(e,t){(t===n.length||n[t]!==e)&&n.insertAt(t,e)})}})}),define("ui/mixins/cold-model",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({toAttributes:function(){var e={id:this.get("id")};return this.constructor.ATTRS.forEach(function(t){e[t]=this.get(t)},this),e},updateAttributes:function(e){return"id"in e&&this.set("id",e.id),this.constructor.ATTRS.forEach(function(t){t in e&&this.set(t,e[t])},this),this}})}),define("ui/mixins/not-authenticated-route-mixin",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({beforeModel:function(e){this._super(e),this.get("session.isAuthenticated")&&this.transitionTo("apps")}})}),define("ui/models/app",["exports","ember","ui/mixins/cold-model","ui/mixins/checks-for-me"],function(e,t,a,r){"use strict";var n=t["default"].Object.extend(a["default"],r["default"],{metrics:function(){return this.get("fridge.metrics").filterBy("app_id",this.get("id"))}.property("fridge.metrics.@each.app_id","id"),checks:function(){var e=this.get("metrics").mapBy("id");return this.get("fridge.checks").filter(function(t){return e.contains(t.get("metric_id"))})}.property("fridge.checks.@each.metric_id","metrics.@each.id","metric_id"),metricsAmountHuman:function(){var e=this.get("metrics.length");return e+" Metric"+(1!==e?"s":"")}.property("metrics.length"),checksForMe:function(){var e=this;return this.get("checks").filter(function(t){return e.isCheckForMe(t)})}.property("checks.@each.user_id","session.currentUser.id","session.currentUser.following_ids.@each"),checksForMeAmountHuman:function(){var e=this.get("checksForMe.length");return e+" Check"+(1!==e?"s":"")}.property("checksForMe.length"),triggeredChecks:t["default"].computed.filterBy("checks","triggered",!0),triggeredChecksForMe:t["default"].computed.filterBy("checksForMe","triggered",!0)});n.reopenClass({ATTRS:["name","token","datapoints","system"]}),e["default"]=n}),define("ui/models/check",["exports","ember","ui/mixins/cold-model"],function(e,t,a){"use strict";var r=t["default"].Object.extend(a["default"],{cmp:"more",value:0,metric:function(){return this.get("fridge.metrics").findBy("id",this.get("metric_id"))}.property("fridge.metrics.@each.id","metric_id"),user:function(){return this.get("fridge.users").findBy("id",this.get("user_id"))}.property("fridge.users.@each.id","user_id"),isNeverRunned:t["default"].computed.equal("last_status","NEVER RUNNED"),isOk:t["default"].computed.equal("last_status","OK"),isFailed:t["default"].computed.equal("last_status","FAILED"),isMy:function(){return this.get("session.currentUser.id")===this.get("user_id")}.property("session.currentUser.id","user_id"),humanComponentName:function(){return this.get("template")?"checks/human-"+this.get("template").dasherize():"empty"}.property("template")});r.reopenClass({ATTRS:["metric_id","cmp","value","triggered","last_run_at","last_status","template","user_id"]}),e["default"]=r}),define("ui/models/metric",["exports","ember","ui/mixins/cold-model","ui/mixins/checks-for-me"],function(e,t,a,r){"use strict";var n=t["default"].Object.extend(a["default"],r["default"],{app:function(){return this.get("fridge.apps").findBy("id",this.get("app_id"))}.property("fridge.apps.@each.id","app_id"),checks:function(){return this.get("fridge.checks").filterBy("metric_id",this.get("id"))}.property("fridge.checks.@each.metric_id","id"),checksForMe:function(){var e=this;return this.get("checks").filter(function(t){return e.isCheckForMe(t)})}.property("checks.@each.user_id","session.currentUser.id","session.currentUser.following_ids.@each"),triggeredChecks:t["default"].computed.filterBy("checks","triggered",!0),triggeredChecksForMe:t["default"].computed.filterBy("checksForMe","triggered",!0),showComponentName:function(){return"metrics/show-"+this.get("kind")}.property("kind"),historyComponentName:function(){return"metrics/history-"+this.get("kind")}.property("kind"),supportedCheckTemplates:function(){return"amount"===this.get("kind")?["last_value_limit","prev_day_datapoints_limit"]:["prev_day_datapoints_limit"]}.property("kind")});n.reopenClass({ATTRS:["app_id","name","kind","last_value","last_value_updated_at"]}),e["default"]=n}),define("ui/models/user",["exports","ember","ui/mixins/cold-model"],function(e,t,a){"use strict";var r=t["default"].Object.extend(a["default"],{isActive:t["default"].computed.equal("status","active"),isWaitInvite:t["default"].computed.equal("status","wait_invite"),checks:function(){return this.get("fridge.checks").filterBy("user_id",this.get("id"))}.property("fridge.checks.@each.user_id","id"),isMe:function(){return this.get("id")===this.get("session.currentUser.id")}.property("session.currentUser.id","id"),isFollowedByMe:function(){return this.get("follower_ids").contains(this.get("session.currentUser.id"));
2
+ }.property("follower_ids.@each","session.currentUser.id"),isFollowsMe:function(){return this.get("following_ids").contains(this.get("session.currentUser.id"))}.property("following_ids.@each","session.currentUser.id"),checksAmountHuman:function(){var e=this.get("checks.length");return e+" Check"+(1!==e?"s":"")}.property("checks.length")});r.reopenClass({ATTRS:["name","email","password","following_ids","follower_ids","status","invite_send_count"]}),e["default"]=r}),define("ui/router",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";var r=t["default"].Router.extend({location:a["default"].locationType});r.map(function(){this.route("unpacking"),this.route("login"),this.route("invite",{path:"/invite/:token"}),this.route("forget_password"),this.route("restore_password",{path:"/restore_password/:token"}),this.resource("snow",{path:"/"},function(){this.route("settings"),this.route("profile"),this.resource("users",function(){this.route("show",{path:":user_id"})}),this.resource("apps",{path:"/"},function(){this.route("new",{path:"apps/new"}),this.route("show",{path:"apps/:app_id"},function(){this.route("info"),this.route("install"),this.route("edit"),this.resource("metrics",function(){this.route("show",{path:":metric_id"}),this.route("history",{path:":metric_id/history"})}),this.resource("checks",function(){})})})})}),e["default"]=r}),define("ui/routes/application",["exports","simple-auth/mixins/application-route-mixin","ember"],function(e,t,a){"use strict";e["default"]=a["default"].Route.extend(t["default"])}),define("ui/routes/apps",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.fridge.get("apps")}})}),define("ui/routes/apps/new",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.fridge.create("app")},actions:{save:function(e){var t=this;this.fridge.save("app",e).then(function(e){t.transitionTo("apps.show.info",e)})}}})}),define("ui/routes/apps/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("app",e.app_id)}})}),define("ui/routes/apps/show/edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.modelFor("apps/show")},setupController:function(e,t){this._super(e,t),e.onInit()},actions:{save:function(e){var t=this;this.fridge.save("app",e).then(function(e){t.transitionTo("apps.show.info",e)})},destroy:function(e){var t=this;confirm("Are you sure?")&&this.fridge.destroyModel("app",e).then(function(){t.transitionTo("apps")})}}})}),define("ui/routes/forget_password",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].RSVP.hash({info:t["default"].$.get(this._infoUrl())})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.info.unpacked||this.transitionTo("login")},setupController:function(e,t){this._super(e,t),e.reset()},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info0"}})}),define("ui/routes/invite",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(e){return t["default"].RSVP.hash({token:e.token,correct:this.fridge.checkInvite(e.token)})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.correct||this.transitionTo("login")},setupController:function(e,t){this._super(e,t),e.set("password",""),e.set("name","")}})}),define("ui/routes/login",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].$.get(this._infoUrl())},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.unpacked||this.transitionTo("unpacking")},setupController:function(e){e.set("errorMessage",null)},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info0"}})}),define("ui/routes/metrics/history",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("metric",e.metric_id)}})}),define("ui/routes/metrics/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("metric",e.metric_id)}})}),define("ui/routes/restore_password",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(e){return t["default"].RSVP.hash({token:e.token,correct:this.fridge.checkRestorePassword(e.token)})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.correct||this.transitionTo("login")},setupController:function(e,t){this._super(e,t),e.reset()}})}),define("ui/routes/snow",["exports","ember","simple-auth/mixins/authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].RSVP.hash({fridge:this.fridge.sync(),info:t["default"].$.get(this._infoUrl())})},afterModel:function(){t["default"].$("#progress-holder").remove()},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info"},activate:function(){this.set("timer",this._schedule())},deactivate:function(){t["default"].run.cancel(this.get("timer"))},_schedule:function(){return t["default"].run.later(this,function(){this.fridge.sync(),this.set("timer",this._schedule())},5e3)}})}),define("ui/routes/snow/profile",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({setupController:function(e,t){this._super(e,t),e.reset()}})}),define("ui/routes/snow/settings",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({setupController:function(e,t){this._super(e,t),this.controllerFor("snow.settings.force-ssl").reset()}})}),define("ui/routes/unpacking",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].RSVP.hash({user:this.fridge.create("user"),info:t["default"].$.get(this._infoUrl())})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.info.unpacked&&this.transitionTo("login")},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info0"}})}),define("ui/routes/users/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.fridge.get("users")}})}),define("ui/routes/users/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("user",e.user_id)},setupController:function(e,t){this._super(e,t),e.reset()}})}),define("ui/services/fridge",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Service.extend(a["default"],{onInit:function(){var e=this;this.set("last",0),this.set("promise",new t["default"].RSVP.Promise(function(t){e.set("promiseResolve",t)}))}.on("init"),sync:function(){var e=this,a=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){e._ajax("GET",a.buildURL("")+"/fridge?last="+e.get("last")).then(function(a){a.version!==window.__SnowmanIO_Version&&(window.location.href=window.location.href),console.log("sync "+new Date),0===e.get("last")&&e.get("promiseResolve")(),e.set("last",a.last),["user","app","metric","check"].forEach(function(t){var r=t+"s";a[r].forEach(function(a){var r=e.fetch(t,a.id);r?r.updateAttributes(a):e._push(t,e._create(t,a))})}),["check","metric","app","user"].forEach(function(t){var r=t+"s";a[r+"_deleted"].forEach(function(a){e._remove(t,e.fetch(t,a))})}),t()})})},find:function(e,a){var r=this;return new t["default"].RSVP.Promise(function(t){r.get("promise").then(function(){t(r.fetch(e,a))})})},fetch:function(e,t){return this._storage(e).findBy("id",t)},create:function(e,t){return this._create(e,t||{})},clone:function(e,t){return this._create(e,t.toAttributes())},save:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){var d={};d[e]=a.toAttributes(),a.get("id")?r._ajax("PUT",n.buildURL(e,a.get("id")),d).then(function(a){t(r.fetch(e,a[e].id).updateAttributes(a[e]))}):r._ajax("POST",n.buildURL(e),d).then(function(a){console.log("[debug] fridge#save - data: ",a),t(r._push(e,r._create(e,a[e])))})})},destroyModel:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){r._ajax("DELETE",n.buildURL(e,a.get("id"))).then(function(){r._remove(e,r.fetch(e,a.get("id"))),t()})})},resolveCheck:function(e){var a=this,r="check",n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("PUT",n.buildURL(r,e.get("id"))+"/resolve").then(function(e){t(a.fetch(r,e[r].id).updateAttributes(e[r]))})})},updateFriendshipWith:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){r._ajax("POST",n.buildURL("user",e.get("id"))+"/"+a).then(function(e){e.users.forEach(function(e){r.fetch("user",e.id).updateAttributes(e)}),t()})})},destroyUser:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user",e.get("id"))+"/destroy").then(function(){a._storage("user").removeObject(e),t()})})},sendInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t,n){a._ajax("POST",r.buildURL("user")+"/invite",{email:e}).then(function(e){e.user?(a._push("user",a._create("user",e.user)),t()):n()})})},cancelInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user",e.get("id"))+"/cancel_invite").then(function(){a._remove("user",e),t()})})},resendInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user",e.get("id"))+"/resend_invite").then(function(a){e.updateAttributes(a.user),t()})})},checkInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/check_invite",{token:e}).then(function(e){t(e.correct)})})},acceptInvite:function(e,a,r){var n=this,d=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){n._ajax("POST",d.buildURL("user")+"/accept_invite",{token:e,name:a,password:r}).then(function(e){t({email:e.user.email,password:r})})})},userUpdateName:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(n){a._ajax("POST",r.buildURL("user")+"/profile/update_name",{name:e}).then(function(e){var r=a.fetch("user",e.user.id);t["default"].run(function(){r.updateAttributes(e.user),n(r)})})})},userUpdateEmail:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(n){a._ajax("POST",r.buildURL("user")+"/profile/update_email",{email:e}).then(function(e){var r=a.fetch("user",e.user.id);t["default"].run(function(){r.updateAttributes(e.user),n(r)})})})},userUpdatePassword:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/profile/update_password",{password:e}).then(function(){t()})})},userRestorePassword:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/restore_password",{email:e}).then(function(){t()})})},checkRestorePassword:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/check_pass_token",{token:e}).then(function(e){t(e.correct)})})},resetPassword:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){r._ajax("POST",n.buildURL("user")+"/reset_password",{token:e,password:a}).then(function(e){t({email:e.user.email,password:a})})})},checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("checks","checksForMe")})}.observes("checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init"),users:t["default"].A(),checks:t["default"].A(),metrics:t["default"].A(),apps:t["default"].A(),_ajax:function(e,a,r){var n={type:e,url:a,contentType:"application/json",dataType:"json"};return r&&(n.data=JSON.stringify(r)),t["default"].$.ajax(n)},_storage:function(e){return this.get(e+"s")},_create:function(e,t){return this.container.lookup("cold-model:"+e).updateAttributes(t)},_push:function(e,t){return this._storage(e).pushObject(t)},_remove:function(e,t){this._storage(e).removeObject(t)}})}),define("ui/templates/application",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,0),d(t,c,e,"outlet"),i}}}())}),define("ui/templates/apps/form",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving ...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Save\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("form");e.setAttribute(a,"class","form-horizontal");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","form-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("label");e.setAttribute(n,"for","inputName"),e.setAttribute(n,"class","col-sm-2 control-label");var d=e.createTextNode("Name");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","col-sm-8");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","form-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","col-sm-offset-2 col-sm-8");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("button");e.setAttribute(d,"type","submit"),e.setAttribute(d,"class","btn btn-primary");var i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.inline,o=i.element,l=i.block;d.detectNamespace(n);var h;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var p=d.childAt(h,[0]),u=d.childAt(p,[3,1,1]),m=d.createMorphAt(d.childAt(p,[1,3]),1,1),v=d.createMorphAt(u,1,1);return s(r,m,a,"input",[],{"class":"form-control",id:"inputName",value:c(r,a,"form.name"),placeholder:"Application Name"}),o(r,u,a,"bind-attr",[],{disabled:c(r,a,"isFormInvalid")}),o(r,u,a,"action",["save",c(r,a,"form")],{}),o(r,u,a,"bind-attr",[],{disabled:c(r,a,"saving")}),l(r,v,a,"if",[c(r,a,"saving")],{},e,t),h}}}())}),define("ui/templates/apps/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Register App");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-md-3 app-slot");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[1]),o=r.createMorphAt(s,1,1),l=r.createMorphAt(s,3,3);return i(t,o,e,"app-title",[],{app:d(t,e,"app")}),i(t,l,e,"app-status",[],{app:d(t,e,"app")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"each",[i(a,t,"model")],{keyword:"app"},e,null),s}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("register one");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("h1");e.setAttribute(a,"class","text-center");var r=e.createTextNode("\n You don't track any app yet, ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(".\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(n.childAt(c,[3]),1,1);return i(a,s,t,"link-to",["apps.new"],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid text-right");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid dashboard");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.block,o=c.inline,l=c.get;i.detectNamespace(d);var h;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var p=i.createMorphAt(i.childAt(h,[0]),1,1),u=i.createMorphAt(h,2,2,d),m=i.createMorphAt(i.childAt(h,[4]),1,1);return s(n,p,r,"link-to",["apps.new"],{"class":"btn btn-default"},e,null),o(n,u,r,"render",["checks/failed"],{}),s(n,m,r,"if",[l(n,r,"userApps.length")],{},t,a),h}}}())}),define("ui/templates/apps/new",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","page-header");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("h1"),n=e.createTextNode("Register Application");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,2,2,a);return i(t,s,e,"render",["apps/form",d(t,e,"model")],{}),c}}}())}),define("ui/templates/apps/show",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1]),0,0);return i(t,s,e,"link-to",[d(t,e,"app.name"),"apps.show.info",d(t,e,"app")],{}),c}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Info");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["apps.show.info",i(a,t,"model")],{},e,null),s}}}(),a=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Metrics");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["metrics",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["metrics",i(a,t,"model")],{tagName:"li",href:!1},e,null),s}}}(),r=function(){var e=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span");e.setAttribute(a,"class","label label-danger");var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"model.triggeredChecksForMe.length"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Checks\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return n.insertBoundary(s,null),c(a,o,t,"if",[i(a,t,"model.triggeredChecksForMe")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["checks",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["checks",i(a,t,"model")],{tagName:"li",href:!1},e,null),s}}}(),n=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Install");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");
3
+ e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["apps.show.install",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["apps.show.install",i(a,t,"model")],{tagName:"li",href:!1},e,null),s}}}(),d=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Settings");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["apps.show.edit",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"role","tabpanel");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ul");e.setAttribute(r,"class","nav nav-tabs"),e.setAttribute(r,"role","tablist");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li");e.setAttribute(n,"class","dropdown");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("a");e.setAttribute(d,"class","dropdown-toggle"),e.setAttribute(d,"data-toggle","dropdown"),e.setAttribute(d,"href","#");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","caret"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("ul");e.setAttribute(d,"class","dropdown-menu");var i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(i,c,s){var o=c.dom,l=c.hooks,h=l.content,p=l.get,u=l.block;o.detectNamespace(s);var m;c.useFragmentCache&&o.canClone?(null===this.cachedFragment&&(m=this.build(o),this.hasRendered?this.cachedFragment=m:this.hasRendered=!0),this.cachedFragment&&(m=o.cloneNode(this.cachedFragment,!0))):m=this.build(o);var v=o.childAt(m,[0]),C=o.childAt(v,[1]),f=o.childAt(C,[1]),g=o.createMorphAt(o.childAt(f,[1]),1,1),b=o.createMorphAt(o.childAt(f,[3]),1,1),N=o.createMorphAt(C,3,3),F=o.createMorphAt(C,5,5),T=o.createMorphAt(C,7,7),x=o.createMorphAt(C,9,9),A=o.createMorphAt(C,11,11),k=o.createMorphAt(v,5,5);return h(c,g,i,"model.name"),u(c,b,i,"each",[p(c,i,"apps")],{keyword:"app"},e,null),u(c,N,i,"link-to",["apps.show.info",p(c,i,"model")],{tagName:"li",href:!1},t,null),u(c,F,i,"if",[p(c,i,"isMetricsTabVisible")],{},a,null),u(c,T,i,"if",[p(c,i,"model.checksForMe")],{},r,null),u(c,x,i,"if",[p(c,i,"model.metrics.length")],{},n,null),u(c,A,i,"link-to",["apps.show.edit",p(c,i,"model")],{tagName:"li",href:!1},d,null),h(c,k,i,"outlet"),m}}}())}),define("ui/templates/apps/show/_install",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("h4"),r=e.createTextNode("1. Add snowagent to application Gemfile");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("code"),r=e.createTextNode("\ngem 'snowagent'\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("h4"),r=e.createTextNode("2. Configure application");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("b"),r=e.createTextNode("Heroku:");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("pre"),r=e.createTextNode("\nheroku config:set \\\n SNOWMANIO_SERVER=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" \\\n SNOWMANIO_SECRET_TOKEN=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("b"),r=e.createTextNode("Standalone:");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("pre"),r=e.createTextNode("\n# Add environment variables to production application\nSNOWMANIO_SERVER=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\nSNOWMANIO_SECRET_TOKEN=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("h2"),r=e.createTextNode("Send Test Request");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("pre"),r=e.createTextNode("\ncurl ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode('/agent/metrics \\\n -H "Content-Type: application/json" \\\n -d \'{"token":"');e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode('","metrics":[{"name":"Test","value":22,"kind":"amount"}]}\'\n');e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[8]),s=r.childAt(i,[12]),o=r.childAt(i,[16]),l=r.createMorphAt(c,1,1),h=r.createMorphAt(c,3,3),p=r.createMorphAt(s,1,1),u=r.createMorphAt(s,3,3),m=r.createMorphAt(o,1,1),v=r.createMorphAt(o,3,3);return d(t,l,e,"baseUrl"),d(t,h,e,"model.token"),d(t,p,e,"baseUrl"),d(t,u,e,"model.token"),d(t,m,e,"baseUrl"),d(t,v,e,"model.token"),i}}}())}),define("ui/templates/apps/show/edit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","panel panel-danger panel-custom");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","panel-heading");var n=e.createElement("h3");e.setAttribute(n,"class","panel-title");var d=e.createTextNode("SnowmanIO Danger Section");e.appendChild(n,d),e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","panel-body");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createTextNode("Destroy App");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode(" - this action is inrevertable.\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline,c=n.element;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[2,3,1]),l=r.createMorphAt(s,0,0,a);return r.insertBoundary(s,0),i(t,l,e,"render",["apps/form",d(t,e,"model")],{}),c(t,o,e,"action",["destroy",d(t,e,"model")],{}),c(t,o,e,"bind-attr",[],{"class":":btn :btn-default destroing:disabled"}),s}}}())}),define("ui/templates/apps/show/info",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-4 app-slot");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1,1]),1,1);return i(t,s,e,"app-status",[],{app:d(t,e,"model")}),c}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,1,1,a);return d(t,c,e,"partial",["apps/show/install"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"model.metrics")],{},e,t),o}}}())}),define("ui/templates/apps/show/install",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,0),d(t,c,e,"partial",["apps/show/install"],{}),i}}}())}),define("ui/templates/checks/failed",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","checks-failed");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","table-response");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("table");e.setAttribute(n,"class","table table-striped");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("thead"),i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("tbody"),i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.content,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[3,1,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"checks-header"),s(a,p,t,"each",[c(a,t,"failedChecks")],{keyword:"check"},e,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"if",[i(a,t,"failedChecks")],{},e,null),s}}}())}),define("ui/templates/checks/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.content,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[0,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"checks-header"),s(a,p,t,"each",[c(a,t,"checksForMe")],{keyword:"check"},e,null),o}}}())}),define("ui/templates/components/app-status",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,null),r.insertBoundary(i,0),d(t,c,e,"app.datapoints.today.count"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("-");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,null),r.insertBoundary(i,0),d(t,c,e,"app.datapoints.yesterday.count"),i}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("-");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),n=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span");e.setAttribute(a,"class","label label-danger");var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" triggered");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"app.triggeredChecksForMe.length"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("table");e.setAttribute(a,"class","table table-striped");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("tbody"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tr"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("th");e.setAttribute(d,"colspan","2");var i=e.createTextNode("Datapoints");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tr"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("td"),i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("b"),c=e.createTextNode("Today");e.appendChild(i,c),e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("td");e.setAttribute(d,"class","yesterday");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("b"),c=e.createTextNode("Yesterday");e.appendChild(i,c),e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tr"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("td");e.setAttribute(d,"colspan","2");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" / ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.get,h=o.block,p=o.content;s.detectNamespace(c);var u;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(u=this.build(s),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=s.cloneNode(this.cachedFragment,!0))):u=this.build(s);var m=s.childAt(u,[0,1]),v=s.childAt(m,[3]),C=s.childAt(m,[5,1]),f=s.createMorphAt(s.childAt(v,[1]),4,4),g=s.createMorphAt(s.childAt(v,[3]),4,4),b=s.createMorphAt(C,1,1),N=s.createMorphAt(C,3,3),F=s.createMorphAt(C,5,5);return h(i,f,d,"if",[l(i,d,"app.datapoints.today")],{},e,t),h(i,g,d,"if",[l(i,d,"app.datapoints.yesterday")],{},a,r),p(i,b,d,"app.metricsAmountHuman"),p(i,N,d,"app.checksForMeAmountHuman"),h(i,F,d,"if",[l(i,d,"app.triggeredChecksForMe")],{},n,null),u}}}())}),define("ui/templates/components/app-title",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,null),r.insertBoundary(i,0),d(t,c,e,"app.name"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span");e.setAttribute(a,"class","glyphicon glyphicon-question-sign"),e.setAttribute(a,"data-toggle","tooltip"),e.setAttribute(a,"data-placement","top"),e.setAttribute(a,"title","Application for internal SnowmanIO metrics"),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n),h=d.createMorphAt(o,2,2,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"link-to",["apps.show.info",c(r,a,"app.id")],{},e,null),s(r,h,a,"if",[c(r,a,"app.system")],{},t,null),o}}}())}),define("ui/templates/components/check-add",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("Add Check");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["toggle"],{}),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1,1,1]),1,1);return i(t,s,e,"check-tr",[],{check:d(t,e,"newCheck"),mode:"editing",reset:"resetCreation",allowTempateChange:!0}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);
4
+ var l=d.createMorphAt(d.childAt(o,[0]),1,1);return s(r,l,a,"if",[c(r,a,"collapsed")],{},e,t),o}}}())}),define("ui/templates/components/check-header",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("th"),r=e.createTextNode("Actions");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("th"),r=e.createTextNode("Check");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("th"),r=e.createTextNode("Last Check");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,4,4,r);return n.insertBoundary(s,null),c(a,o,t,"if",[i(a,t,"enableActions")],{},e,null),s}}}())}),define("ui/templates/components/check-tr",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Never runned\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n at ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.content,c=n.get,s=n.inline;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[1]),h=r.createMorphAt(l,0,0),p=r.createMorphAt(o,3,3,a);return d(t,l,e,"bind-attr",[],{"class":":check-status check.isOk:green:red"}),i(t,h,e,"check.last_status"),s(t,p,e,"moment",[c(t,e,"check.last_run_at"),"MMMM Do YYYY, HH:mm:ss"],{}),o}}}(),a=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("resolve");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["resolve"],{}),d(t,c,e,"bind-attr",[],{"class":":btn :btn-xs :btn-success resolving:disabled"}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-trash"),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.element,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1]),h=n.childAt(o,[3]),p=n.createMorphAt(o,5,5,r);return n.insertBoundary(o,null),i(a,l,t,"action",["edit"],{}),i(a,h,t,"action",["destroy"],{}),s(a,p,t,"if",[c(a,t,"check.triggered")],{},e,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[1]),1,1);return c(a,o,t,"if",[i(a,t,"check.isMy")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.inline,l=c.block;i.detectNamespace(d);var h;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var p=i.createMorphAt(i.childAt(h,[1]),1,1),u=i.createMorphAt(i.childAt(h,[3]),1,1),m=i.createMorphAt(h,5,5,d);return i.insertBoundary(h,null),o(n,p,r,"component",[s(n,r,"check.humanComponentName")],{check:s(n,r,"check")}),l(n,u,r,"if",[s(n,r,"check.isNeverRunned")],{},e,t),l(n,m,r,"if",[s(n,r,"enableActions")],{},a,null),h}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n saving...\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1,1]),0,0);return i(t,s,e,"component",[d(t,e,"check.humanComponentName")],{check:d(t,e,"check")}),c}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.element,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,0]),l=r.createMorphAt(o,0,0);return i(t,o,e,"action",["select",d(t,e,"checkTemplate.name")],{}),c(t,l,e,"component",[d(t,e,"checkTemplate.componentName")],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ul"),n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("cancel");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block,s=d.element;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1]),h=n.childAt(l,[3]),p=n.createMorphAt(n.childAt(l,[1]),1,1);return c(a,p,t,"each",[i(a,t,"supportedCheckTemplates")],{keyword:"checkTemplate"},e,null),s(a,h,t,"action",["cancel"],{}),o}}}(),n=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-arrow-left"),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["list"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block,s=d.inline;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1]),h=n.createMorphAt(l,1,1),p=n.createMorphAt(l,3,3);return c(a,h,t,"if",[i(a,t,"allowTempateChange")],{},e,null),s(a,p,t,"component",[i(a,t,"templateFormComponentName")],{formTemplate:i(a,t,"formTemplate"),check:i(a,t,"check"),saveAction:"save",cancelAction:"cancel"}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.get,h=o.block;s.detectNamespace(c);var p;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(p=this.build(s),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=s.cloneNode(this.cachedFragment,!0))):p=this.build(s);var u=s.createMorphAt(p,0,0,c),m=s.createMorphAt(p,2,2,c),v=s.createMorphAt(p,4,4,c),C=s.createMorphAt(p,6,6,c),f=s.createMorphAt(p,8,8,c);return s.insertBoundary(p,null),s.insertBoundary(p,0),h(i,u,d,"if",[l(i,d,"isShow")],{},e,null),h(i,m,d,"if",[l(i,d,"isSaving")],{},t,null),h(i,v,d,"if",[l(i,d,"isDestroing")],{},a,null),h(i,C,d,"if",[l(i,d,"isEditing")],{},r,null),h(i,f,d,"if",[l(i,d,"isTemplate")],{},n,null),p}}}())}),define("ui/templates/components/checks/desc-last-value-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify whether last value will be less or more limit\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}())}),define("ui/templates/components/checks/desc-prev-day-datapoints-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify about previous day datapoints amount limit\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}())}),define("ui/templates/components/checks/form-last-value-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("form");e.setAttribute(a,"class","form-inline");var r=e.createTextNode("\n Snowman, notify when ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" will be \n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","btn-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"class","btn btn-default btn-sm dropdown-toggle"),e.setAttribute(n,"type","button"),e.setAttribute(n,"data-toggle","dropdown");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("span");e.setAttribute(d,"class","caret"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ul");e.setAttribute(n,"class","dropdown-menu"),e.setAttribute(n,"role","menu");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("more");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("less");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-success");var n=e.createTextNode("save");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-link");var n=e.createTextNode("cancel");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.content,c=n.get,s=n.inline;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[0]),h=r.childAt(l,[3]),p=r.childAt(h,[3]),u=r.childAt(p,[1,0]),m=r.childAt(p,[3,0]),v=r.childAt(l,[7]),C=r.childAt(l,[9]),f=r.createMorphAt(r.childAt(l,[1]),0,0),g=r.createMorphAt(r.childAt(h,[1]),1,1),b=r.createMorphAt(l,5,5);return d(t,l,e,"action",["save"],{on:"submit"}),i(t,f,e,"form.metric.name"),i(t,g,e,"form.cmp"),d(t,u,e,"action",["clickMore"],{}),d(t,m,e,"action",["clickLess"],{}),s(t,b,e,"input",[],{value:c(t,e,"form.value"),"class":"form-control input-sm"}),d(t,v,e,"action",["save"],{}),d(t,C,e,"action",["cancel"],{}),o}}}())}),define("ui/templates/components/checks/form-prev-day-datapoints-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("form");e.setAttribute(a,"class","form-inline");var r=e.createTextNode("\n Snowman, notify if ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" previous day datapoints amount was\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","btn-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"class","btn btn-default btn-sm dropdown-toggle"),e.setAttribute(n,"type","button"),e.setAttribute(n,"data-toggle","dropdown");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("span");e.setAttribute(d,"class","caret"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ul");e.setAttribute(n,"class","dropdown-menu"),e.setAttribute(n,"role","menu");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("more");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("less");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-success");var n=e.createTextNode("save");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-link");var n=e.createTextNode("cancel");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.content,c=n.get,s=n.inline;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[0]),h=r.childAt(l,[3]),p=r.childAt(h,[3]),u=r.childAt(p,[1,0]),m=r.childAt(p,[3,0]),v=r.childAt(l,[7]),C=r.childAt(l,[9]),f=r.createMorphAt(r.childAt(l,[1]),0,0),g=r.createMorphAt(r.childAt(h,[1]),1,1),b=r.createMorphAt(l,5,5);return d(t,l,e,"action",["save"],{on:"submit"}),i(t,f,e,"form.metric.name"),i(t,g,e,"form.cmp"),d(t,u,e,"action",["clickMore"],{}),d(t,m,e,"action",["clickLess"],{}),s(t,b,e,"input",[],{value:c(t,e,"form.value"),"class":"form-control input-sm"}),d(t,v,e,"action",["save"],{}),d(t,C,e,"action",["cancel"],{}),o}}}())}),define("ui/templates/components/checks/human-last-value-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify when ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode(" from ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\nwill be ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0),s=r.createMorphAt(r.childAt(i,[3]),0,0),o=r.createMorphAt(i,5,5,a),l=r.createMorphAt(i,7,7,a);return d(t,c,e,"check.metric.name"),d(t,s,e,"check.metric.app.name"),d(t,o,e,"check.cmp"),d(t,l,e,"check.value"),i}}}())}),define("ui/templates/components/checks/human-prev-day-datapoints-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify when ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode(" from ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\ndaily datapoints amount was ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0),s=r.createMorphAt(r.childAt(i,[3]),0,0),o=r.createMorphAt(i,5,5,a),l=r.createMorphAt(i,7,7,a);return d(t,c,e,"check.metric.name"),d(t,s,e,"check.metric.app.name"),d(t,o,e,"check.cmp"),d(t,l,e,"check.value"),i}}}())}),define("ui/templates/components/ember-chart",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,0),d(t,c,e,"outlet"),i}}}())}),define("ui/templates/components/metrics/history-amount",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.childAt(s,[1]),l=r.createMorphAt(o,1,1),h=r.createMorphAt(o,3,3),p=r.createMorphAt(r.childAt(s,[3]),1,1);return i(t,l,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"up",duration:"history",type:"Line",width:600,height:350}),i(t,h,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"history",type:"Bar",width:600,height:350}),i(t,p,e,"snowman-table",[],{metric:d(t,e,"metric"),targets:"at,up,count"}),c}}}())}),define("ui/templates/components/metrics/history-counter",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.createMorphAt(r.childAt(s,[1]),1,1),l=r.createMorphAt(r.childAt(s,[3]),1,1);return i(t,o,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"history",type:"Line",width:600,height:350}),i(t,l,e,"snowman-table",[],{metric:d(t,e,"metric"),targets:"at,count"}),c}}}())}),define("ui/templates/components/metrics/history-time",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);
5
+ var s=r.childAt(c,[0]),o=r.childAt(s,[1]),l=r.createMorphAt(o,1,1),h=r.createMorphAt(o,3,3),p=r.createMorphAt(r.childAt(s,[3]),1,1);return i(t,l,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"avg,up",duration:"history",type:"Line",width:600,height:350}),i(t,h,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"history",type:"Bar",width:600,height:350}),i(t,p,e,"snowman-table",[],{metric:d(t,e,"metric"),targets:"at,avg,up,count"}),c}}}())}),define("ui/templates/components/metrics/show-amount",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-9");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-3");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.childAt(s,[3]),l=r.createMorphAt(r.childAt(s,[1]),1,1),h=r.createMorphAt(o,1,1),p=r.createMorphAt(o,3,3);return i(t,l,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"up",duration:"day",type:"Line",width:1200,height:520}),i(t,h,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"5min",type:"Bar",width:1200,height:200,onlyValues:!0}),i(t,p,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"up",duration:"hour",type:"Line",width:1200,height:800}),c}}}())}),define("ui/templates/components/metrics/show-counter",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-9");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-3");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.childAt(s,[3]),l=r.createMorphAt(r.childAt(s,[1]),1,1),h=r.createMorphAt(o,1,1),p=r.createMorphAt(o,3,3);return i(t,l,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"integral(count)",duration:"day",type:"Line",width:1200,height:520}),i(t,h,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"5min",type:"Bar",width:1200,height:200,onlyValues:!0}),i(t,p,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"integral(count)",duration:"hour",type:"Line",width:1200,height:800}),c}}}())}),define("ui/templates/components/metrics/show-time",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-9");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-3");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.childAt(s,[3]),l=r.createMorphAt(r.childAt(s,[1]),1,1),h=r.createMorphAt(o,1,1),p=r.createMorphAt(o,3,3);return i(t,l,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"avg,up",duration:"day",type:"Line",width:1200,height:520}),i(t,h,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"5min",type:"Bar",width:1200,height:200,onlyValues:!0}),i(t,p,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"avg,up",duration:"hour",type:"Line",width:1200,height:800}),c}}}())}),define("ui/templates/components/profile/email-edit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content,i=n.element;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[3]),o=r.createMorphAt(c,1,1,a);return d(t,o,e,"user.email"),i(t,s,e,"action",["toggle"],{}),c}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","well");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","email");var i=e.createTextNode("Email");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"type","submit"),e.setAttribute(n,"class","btn btn-default");var d=e.createTextNode("Update");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#"),e.setAttribute(n,"class","btn btn-link");var d=e.createTextNode("cancel");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[3]),h=r.childAt(o,[5]),p=r.createMorphAt(r.childAt(o,[1]),3,3);return d(t,o,e,"action",["update"],{on:"submit"}),c(t,p,e,"input",[],{"class":"form-control",id:"email",value:i(t,e,"email"),type:"email"}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),d(t,h,e,"action",["toggle"],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[0]),3,3),p=i.createMorphAt(l,2,2,d);return i.insertBoundary(l,null),o(n,h,r,"if",[s(n,r,"saving")],{},e,t),o(n,p,r,"if",[s(n,r,"show")],{},a,null),l}}}())}),define("ui/templates/components/profile/name-edit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content,i=n.element;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[3]),o=r.createMorphAt(c,1,1,a);return d(t,o,e,"user.name"),i(t,s,e,"action",["toggle"],{}),c}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","well");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","name");var i=e.createTextNode("Name");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"type","submit"),e.setAttribute(n,"class","btn btn-default");var d=e.createTextNode("Update");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#"),e.setAttribute(n,"class","btn btn-link");var d=e.createTextNode("cancel");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[3]),h=r.childAt(o,[5]),p=r.createMorphAt(r.childAt(o,[1]),3,3);return d(t,o,e,"action",["update"],{on:"submit"}),c(t,p,e,"input",[],{"class":"form-control",id:"name",value:i(t,e,"name")}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),d(t,h,e,"action",["toggle"],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[0]),3,3),p=i.createMorphAt(l,2,2,d);return i.insertBoundary(l,null),o(n,h,r,"if",[s(n,r,"saving")],{},e,t),o(n,p,r,"if",[s(n,r,"show")],{},a,null),l}}}())}),define("ui/templates/components/profile/password-edit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ***\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["toggle"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"unless",[i(a,t,"show")],{},e,null),s}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","well");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","password");var i=e.createTextNode("Password");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","password2");var i=e.createTextNode("Repeat Password");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"type","submit"),e.setAttribute(n,"class","btn btn-default");var d=e.createTextNode("Update");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#"),e.setAttribute(n,"class","btn btn-link");var d=e.createTextNode("cancel");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[5]),h=r.childAt(o,[7]),p=r.createMorphAt(r.childAt(o,[1]),3,3),u=r.createMorphAt(r.childAt(o,[3]),3,3);return d(t,o,e,"action",["update"],{on:"submit"}),c(t,p,e,"input",[],{"class":"form-control",id:"password",type:"password",value:i(t,e,"password")}),c(t,u,e,"input",[],{"class":"form-control",id:"password2",type:"password",value:i(t,e,"password2")}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),d(t,h,e,"action",["toggle"],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Password:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[0]),3,3),p=i.createMorphAt(l,2,2,d);return i.insertBoundary(l,null),o(n,h,r,"if",[s(n,r,"saving")],{},e,t),o(n,p,r,"if",[s(n,r,"show")],{},a,null),l}}}())}),define("ui/templates/components/snowman-graph",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Loading...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"ember-chart",[],{type:d(t,e,"type"),chartData:d(t,e,"chartData"),width:d(t,e,"width"),height:d(t,e,"height"),onlyValues:d(t,e,"onlyValues")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"loading")],{},e,t),o}}}())}),define("ui/templates/components/snowman-table",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Loading...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("th"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"column"),i}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"value"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("tr"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[1]),1,1);return c(a,o,t,"each",[i(a,t,"point")],{keyword:"value"},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-bordered table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("tr"),i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.childAt(o,[1,3]),h=d.createMorphAt(d.childAt(l,[1,1]),1,1),p=d.createMorphAt(d.childAt(l,[3]),1,1);return s(r,h,a,"each",[c(r,a,"columns")],{keyword:"column"},e,null),s(r,p,a,"each",[c(r,a,"preparedDatapoints")],{keyword:"point"},t,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"loading")],{},e,t),o}}}())}),define("ui/templates/components/users/invite-user",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createTextNode("Send invitation to ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ...");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),1,1);return d(t,c,e,"email"),i}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form");e.setAttribute(r,"class","form-inline");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","email");var i=e.createTextNode("Email");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");
6
+ e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"type","submit"),e.setAttribute(n,"class","btn btn-default");var d=e.createTextNode("Send invitation");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[3]),h=r.createMorphAt(r.childAt(o,[1]),3,3);return d(t,o,e,"action",["invite"],{on:"submit"}),c(t,h,e,"input",[],{type:"email",style:"width:500px","class":"form-control",placeholder:"john@yahoo.com",value:i(t,e,"email")}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Invite new user");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.element,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1,0]),h=n.createMorphAt(o,3,3,r);return n.insertBoundary(o,null),i(a,l,t,"action",["toggle"],{}),s(a,h,t,"if",[c(a,t,"show")],{},e,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,2,2,n);return s(r,l,a,"if",[c(r,a,"sending")],{},e,t),o}}}())}),define("ui/templates/components/users/show-user",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("small"),r=e.createTextNode("FOLLOWS YOU");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("small"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createElement("b"),n=e.createTextNode("Snowman respects this user especially");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Unfollow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-info :btn-sm updating:disabled"}),d(t,c,e,"action",["unfollow"],{}),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Follow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-default :btn-sm updating:disabled"}),d(t,c,e,"action",["follow"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"user.isFollowedByMe")],{},e,t),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","media-left");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","media-body");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("h4");e.setAttribute(r,"class","media-heading");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode("Checks: ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(n,d,i){var c=d.dom,s=d.hooks,o=s.get,l=s.inline,h=s.content,p=s.block;c.detectNamespace(i);var u;d.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(u=this.build(c),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=c.cloneNode(this.cachedFragment,!0))):u=this.build(c);var m=c.childAt(u,[2]),v=c.createMorphAt(c.childAt(u,[0]),1,1),C=c.createMorphAt(c.childAt(m,[1]),1,1),f=c.createMorphAt(c.childAt(m,[3]),1,1),g=c.createMorphAt(c.childAt(m,[5]),1,1),b=c.createMorphAt(m,7,7);return l(d,v,n,"ember-gravatar",[],{email:o(d,n,"user.email"),size:94}),l(d,C,n,"link-to",[o(d,n,"user.name"),"users.show",o(d,n,"user")],{}),h(d,f,n,"user.checks.length"),p(d,g,n,"if",[o(d,n,"user.isFollowsMe")],{},e,t),p(d,b,n,"if",[o(d,n,"user.isMe")],{},a,r),u}}}())}),define("ui/templates/components/users/wait-invite-tr",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("s"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"user.email"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,1,1,a);return d(t,c,e,"user.email"),i}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" resending ...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("Resend");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("Cancel");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]),s=r.childAt(i,[3]);return d(t,c,e,"action",["resend"],{}),d(t,s,e,"action",["cancel"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(n,d,i){var c=d.dom,s=d.hooks,o=s.get,l=s.block,h=s.content;c.detectNamespace(i);var p;d.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(p=this.build(c),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=c.cloneNode(this.cachedFragment,!0))):p=this.build(c);var u=c.childAt(p,[4]),m=c.createMorphAt(c.childAt(p,[0]),1,1),v=c.createMorphAt(c.childAt(p,[2]),1,1),C=c.createMorphAt(u,1,1),f=c.createMorphAt(u,3,3);return l(d,m,n,"if",[o(d,n,"canceling")],{},e,t),h(d,v,n,"user.invite_send_count"),l(d,C,n,"if",[o(d,n,"resending")],{},a,null),l(d,f,n,"if",[o(d,n,"isShowActions")],{},r,null),p}}}())}),define("ui/templates/forget_password",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","alert alert-info");var r=e.createTextNode("\n Email with password restoring instructions sended to ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(".\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,1]),0,0);return d(t,c,e,"email"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-sm-6");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form");e.setAttribute(r,"role","form");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","email");var i=e.createTextNode("Email");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("input");e.setAttribute(n,"type","submit"),e.setAttribute(n,"value","Reset"),e.setAttribute(n,"class","btn btn-default"),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[3]),h=r.createMorphAt(r.childAt(o,[1]),3,3);return d(t,o,e,"action",["restore"],{on:"submit"}),c(t,h,e,"input",[],{type:"email",id:"email","class":"form-control",value:i(t,e,"email")}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(": Password Restore");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.inline,s=i.get,o=i.block;d.detectNamespace(n);var l;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(l=this.build(d),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=d.cloneNode(this.cachedFragment,!0))):l=this.build(d);var h=d.childAt(l,[0]),p=d.createMorphAt(d.childAt(h,[1,1]),0,0),u=d.createMorphAt(h,3,3);return c(r,p,a,"link-to",["SnowmanIO","login"],{}),o(r,u,a,"if",[s(r,a,"isSended")],{},e,t),l}}}())}),define("ui/templates/invite",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(": Invite");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","name");var c=e.createTextNode("Name");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Go"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline,i=n.element,c=n.get;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0]),l=r.childAt(o,[3,1]),h=r.childAt(l,[5]),p=r.createMorphAt(r.childAt(o,[1,1]),0,0),u=r.createMorphAt(r.childAt(l,[1]),3,3),m=r.createMorphAt(r.childAt(l,[3]),3,3);return d(t,p,e,"link-to",["SnowmanIO","login"],{}),i(t,l,e,"action",["register"],{on:"submit"}),d(t,u,e,"input",[],{id:"name","class":"form-control",value:c(t,e,"name")}),d(t,m,e,"input",[],{id:"password","class":"form-control",type:"password",value:c(t,e,"password")}),i(t,h,e,"bind-attr",[],{disabled:c(t,e,"isFormInvalid")}),s}}}())}),define("ui/templates/login",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","alert alert-danger");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),1,1);return d(t,c,e,"errorMessage"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createTextNode("SnowmanIO");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","identification");var c=e.createTextNode("Email");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Login"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block,s=d.element,o=d.inline;n.detectNamespace(r);var l;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(l=this.build(n),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=n.cloneNode(this.cachedFragment,!0))):l=this.build(n);var h=n.childAt(l,[0]),p=n.childAt(h,[5,1]),u=n.childAt(p,[5]),m=n.createMorphAt(h,3,3),v=n.createMorphAt(n.childAt(p,[1]),3,3),C=n.createMorphAt(n.childAt(p,[3]),3,3),f=n.createMorphAt(p,7,7);return c(a,m,t,"if",[i(a,t,"errorMessage")],{},e,null),s(a,p,t,"action",["authenticate"],{on:"submit"}),o(a,v,t,"input",[],{type:"email",id:"identification","class":"form-control",value:i(a,t,"identification")}),o(a,C,t,"input",[],{id:"password","class":"form-control",type:"password",value:i(a,t,"password")}),s(a,u,t,"bind-attr",[],{disabled:i(a,t,"isFormInvalid")}),o(a,f,t,"link-to",["Forget password?","forget_password"],{"class":"btn btn-link"}),l}}}())}),define("ui/templates/metrics/history",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ol");e.setAttribute(r,"class","breadcrumb");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li"),d=e.createComment("");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li");e.setAttribute(n,"class","active");var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("small"),i=e.createTextNode("(");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(")");e.appendChild(d,i),e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("ul");e.setAttribute(a,"class","nav nav-pills");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("li"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("li");e.setAttribute(r,"class","active");var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline,c=n.content;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0,1]),l=r.childAt(o,[3]),h=r.childAt(s,[2]),p=r.createMorphAt(r.childAt(o,[1]),0,0),u=r.createMorphAt(l,0,0),m=r.createMorphAt(r.childAt(l,[2]),1,1),v=r.createMorphAt(r.childAt(h,[1]),0,0),C=r.createMorphAt(r.childAt(h,[3]),0,0),f=r.createMorphAt(s,4,4,a);return i(t,p,e,"link-to",["Metrics","metrics",d(t,e,"app")],{}),c(t,u,e,"model.name"),c(t,m,e,"model.kind"),i(t,v,e,"link-to",["Now","metrics.show",d(t,e,"model")],{}),i(t,C,e,"link-to",["History","metrics.history",d(t,e,"model")],{}),i(t,f,e,"component",[d(t,e,"model.historyComponentName")],{metric:d(t,e,"model")}),s}}}())}),define("ui/templates/metrics/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("tr"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createElement("span");e.setAttribute(d,"class","glyphicon glyphicon-trash"),e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline,s=n.content;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[1]),h=r.childAt(l,[7,1]),p=r.createMorphAt(r.childAt(l,[1]),0,0),u=r.createMorphAt(r.childAt(l,[3]),0,0),m=r.createMorphAt(r.childAt(l,[5]),0,0);return d(t,l,e,"bind-attr",[],{"class":"metric.triggeredChecksForMe:danger"}),c(t,p,e,"link-to",[i(t,e,"metric.name"),"metrics.show",i(t,e,"model"),i(t,e,"metric")],{}),s(t,u,e,"metric.kind"),s(t,m,e,"metric.checksForMe.length"),d(t,h,e,"action",["destroy",i(t,e,"metric")],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","table-responsive");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("tr"),i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Name");e.appendChild(i,c),e.appendChild(d,i);
7
+ var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Kind");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Checks");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Actions");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[0,1,3]),1,1);return c(a,o,t,"each",[i(a,t,"model.metrics")],{keyword:"metric"},e,null),s}}}())}),define("ui/templates/metrics/show",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.content,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"checks-header"),s(a,p,t,"each",[c(a,t,"checksForMe")],{keyword:"check"},e,null),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-add",[],{metric:d(t,e,"model")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ol");e.setAttribute(r,"class","breadcrumb");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li"),d=e.createComment("");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li");e.setAttribute(n,"class","active");var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("small"),i=e.createTextNode("(");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(")");e.appendChild(d,i),e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("ul");e.setAttribute(a,"class","nav nav-pills");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("li");e.setAttribute(r,"class","active");var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("li"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.inline,o=i.content,l=i.block;d.detectNamespace(n);var h;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var p=d.childAt(h,[0,1]),u=d.childAt(p,[3]),m=d.childAt(h,[2]),v=d.createMorphAt(d.childAt(p,[1]),0,0),C=d.createMorphAt(u,0,0),f=d.createMorphAt(d.childAt(u,[2]),1,1),g=d.createMorphAt(d.childAt(m,[1]),0,0),b=d.createMorphAt(d.childAt(m,[3]),0,0),N=d.createMorphAt(h,4,4,n),F=d.createMorphAt(h,6,6,n),T=d.createMorphAt(h,8,8,n);return d.insertBoundary(h,null),s(r,v,a,"link-to",["Metrics","metrics",c(r,a,"app")],{}),o(r,C,a,"model.name"),o(r,f,a,"model.kind"),s(r,g,a,"link-to",["Now","metrics.show",c(r,a,"model")],{}),s(r,b,a,"link-to",["History","metrics.history",c(r,a,"model")],{}),s(r,N,a,"component",[c(r,a,"model.showComponentName")],{metric:c(r,a,"model")}),l(r,F,a,"if",[c(r,a,"checksForMe")],{},e,null),l(r,T,a,"if",[c(r,a,"model.supportedCheckTemplates")],{},t,null),h}}}())}),define("ui/templates/restore_password",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(": New Password");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Update"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline,i=n.element,c=n.get;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0]),l=r.childAt(o,[3,1]),h=r.childAt(l,[3]),p=r.createMorphAt(r.childAt(o,[1,1]),0,0),u=r.createMorphAt(r.childAt(l,[1]),3,3);return d(t,p,e,"link-to",["SnowmanIO","login"],{}),i(t,l,e,"action",["update"],{on:"submit"}),d(t,u,e,"input",[],{id:"password","class":"form-control",type:"password",value:c(t,e,"password")}),i(t,h,e,"bind-attr",[],{disabled:c(t,e,"isFormInvalid")}),s}}}())}),define("ui/templates/snow",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Apps");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["apps"],{},e,null),c}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Users");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["users"],{},e,null),c}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Settings");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["snow.settings"],{},e,null),c}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Profile");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["snow.profile"],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("ul");e.setAttribute(a,"class","nav navbar-nav");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p");e.setAttribute(a,"class","navbar-text navbar-right");var r=e.createTextNode("\n Logged as ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" |\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Logout");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(n,d,i){var c=d.dom,s=d.hooks,o=s.block,l=s.content,h=s.element;c.detectNamespace(i);var p;d.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(p=this.build(c),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=c.cloneNode(this.cachedFragment,!0))):p=this.build(c);var u=c.childAt(p,[1]),m=c.childAt(p,[3]),v=c.childAt(m,[3]),C=c.createMorphAt(u,1,1),f=c.createMorphAt(u,2,2),g=c.createMorphAt(u,3,3),b=c.createMorphAt(u,4,4),N=c.createMorphAt(m,1,1);return o(d,C,n,"link-to",["apps"],{tagName:"li",href:!1},e,null),o(d,f,n,"link-to",["users"],{tagName:"li",href:!1},t,null),o(d,g,n,"link-to",["snow.settings"],{tagName:"li",href:!1},a,null),o(d,b,n,"link-to",["snow.profile"],{tagName:"li",href:!1},r,null),l(d,N,n,"currentUser.name"),h(d,v,n,"action",["invalidateSession"],{}),p}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,1,1,a);return d(t,c,e,"outlet"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("nav");e.setAttribute(a,"class","navbar navbar-inverse");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","container-fluid");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","navbar-header");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("button");e.setAttribute(d,"type","button"),e.setAttribute(d,"class","navbar-toggle collapsed"),e.setAttribute(d,"data-toggle","collapse"),e.setAttribute(d,"data-target","#bs-example-navbar-collapse-1");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","sr-only");var c=e.createTextNode("Toggle navigation");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","icon-bar"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","icon-bar"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","icon-bar"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("span");e.setAttribute(d,"class","navbar-brand");var i=e.createTextNode("SnowmanIO");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","collapse navbar-collapse"),e.setAttribute(n,"id","bs-example-navbar-collapse-1");var d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","container-main container-fluid");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(d.childAt(o,[0,1,3]),1,1),h=d.createMorphAt(d.childAt(o,[2]),1,1);return s(r,l,a,"if",[c(r,a,"currentUser")],{},e,null),s(r,h,a,"if",[c(r,a,"currentUser")],{},t,null),o}}}())}),define("ui/templates/snow/profile",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1]),0,0),o=r.createMorphAt(r.childAt(c,[3]),0,0),l=r.createMorphAt(r.childAt(c,[5]),0,0);return i(t,s,e,"profile/name-edit",[],{user:d(t,e,"session.currentUser")}),i(t,o,e,"profile/email-edit",[],{user:d(t,e,"session.currentUser")}),i(t,l,e,"profile/password-edit",[],{user:d(t,e,"session.currentUser")}),c}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,2]),0,0),s=r.createMorphAt(r.childAt(i,[3,2]),0,0);return d(t,c,e,"session.currentUser.name"),d(t,s,e,"session.currentUser.email"),i}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","pull-right");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("a");e.setAttribute(d,"href","#");var i=e.createTextNode("Cancel account");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,1,1,1]);return d(t,c,e,"action",["destroy"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-offset-2 col-sm-2");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.inline,l=c.block;i.detectNamespace(d);var h;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var p=i.childAt(h,[0]),u=i.createMorphAt(i.childAt(p,[1]),1,1),m=i.createMorphAt(i.childAt(p,[3]),1,1),v=i.createMorphAt(h,2,2,d);return i.insertBoundary(h,null),o(n,u,r,"ember-gravatar",[],{email:s(n,r,"session.currentUser.email"),size:200}),l(n,m,r,"unless",[s(n,r,"destroing")],{},e,t),l(n,v,r,"unless",[s(n,r,"destroing")],{},a,null),h}}}())}),define("ui/templates/snow/settings",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("h2"),r=e.createTextNode("SnowmanIO ");e.appendChild(a,r);var r=e.createElement("small"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Base url:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[0,1]),0,0),o=r.createMorphAt(r.childAt(c,[2]),3,3),l=r.createMorphAt(c,4,4,a);return d(t,s,e,"model.info.version"),d(t,o,e,"baseUrl"),i(t,l,e,"render",["snow/settings/force_ssl"],{}),c}}}())}),define("ui/templates/snow/settings/force_ssl",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content,i=n.element;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[3]),o=r.createMorphAt(c,1,1,a);return d(t,o,e,"statusText"),i(t,s,e,"action",["toggle"],{}),i(t,s,e,"bind-attr",[],{"class":"saving:hidden"}),c}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","well");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","btn-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createTextNode("Disable");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createTextNode("Enable");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,1]),s=r.childAt(c,[1]),o=r.childAt(c,[3]);return d(t,s,e,"action",["update","disable"],{}),d(t,s,e,"bind-attr",[],{"class":":btn :btn-default forceSSL::active"}),d(t,o,e,"action",["update","enable"],{}),d(t,o,e,"bind-attr",[],{"class":":btn :btn-default forceSSL:active"}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Force HTTPS:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;
8
+ i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[0]),3,3),p=i.createMorphAt(l,2,2,d);return i.insertBoundary(l,null),o(n,h,r,"if",[s(n,r,"saving")],{},e,t),o(n,p,r,"if",[s(n,r,"show")],{},a,null),l}}}())}),define("ui/templates/unpacking",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createTextNode("SnowmanIO: Unpacking");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","alert alert-info");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("p"),d=e.createTextNode("Let register the first user");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","email");var c=e.createTextNode("Name");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","email");var c=e.createTextNode("Email");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Create"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0,5,1]),l=r.childAt(o,[1]),h=r.childAt(o,[3]),p=r.createMorphAt(l,3,3),u=r.createMorphAt(l,9,9),m=r.createMorphAt(l,15,15);return d(t,o,e,"action",["setup"],{on:"submit"}),c(t,p,e,"input",[],{id:"name","class":"form-control",value:i(t,e,"user.name")}),c(t,u,e,"input",[],{id:"email","class":"form-control",value:i(t,e,"user.email")}),c(t,m,e,"input",[],{id:"password","class":"form-control",type:"password",value:i(t,e,"user.password")}),d(t,h,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),s}}}())}),define("ui/templates/users/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-md-5");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1]),1,1);return i(t,s,e,"users/show-user",[],{user:d(t,e,"group.second")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-md-offset-1 col-md-5");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.inline,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.createMorphAt(n.childAt(o,[1]),1,1),h=n.createMorphAt(o,3,3,r);return n.insertBoundary(o,null),c(a,l,t,"users/show-user",[],{user:i(a,t,"group.first")}),s(a,h,t,"if",[i(a,t,"group.second")],{},e,null),o}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"users/wait-invite-tr",[],{user:d(t,e,"user")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","table-response");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("table");e.setAttribute(d,"class","table table-striped");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("thead"),c=e.createTextNode("\n ");e.appendChild(i,c);var c=e.createElement("tr"),s=e.createTextNode("\n ");e.appendChild(c,s);var s=e.createElement("th"),o=e.createTextNode("Email");e.appendChild(s,o),e.appendChild(c,s);var s=e.createTextNode("\n ");e.appendChild(c,s);var s=e.createElement("th"),o=e.createTextNode("Invite Send Count");e.appendChild(s,o),e.appendChild(c,s);var s=e.createTextNode("\n ");e.appendChild(c,s);var s=e.createElement("th"),o=e.createTextNode("Actions");e.appendChild(s,o),e.appendChild(c,s);var s=e.createTextNode("\n ");e.appendChild(c,s),e.appendChild(i,c);var c=e.createTextNode("\n ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("tbody"),c=e.createTextNode("\n");e.appendChild(i,c);var c=e.createComment("");e.appendChild(i,c);var c=e.createTextNode(" ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[1,1,1,1,3]),1,1);return c(a,o,t,"each",[i(a,t,"waitInviteUsers")],{keyword:"user"},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ol");e.setAttribute(n,"class","breadcrumb");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li");e.setAttribute(d,"class","active");var i=e.createTextNode("Users");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block,o=i.content;d.detectNamespace(n);var l;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(l=this.build(d),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=d.cloneNode(this.cachedFragment,!0))):l=this.build(d);var h=d.createMorphAt(d.childAt(l,[2]),1,1),p=d.createMorphAt(l,4,4,n),u=d.createMorphAt(d.childAt(l,[6,1]),1,1);return s(r,h,a,"each",[c(r,a,"usersInGroupsOfTwo")],{keyword:"group"},e,null),s(r,p,a,"if",[c(r,a,"waitInviteUsers")],{},t,null),o(r,u,a,"users/invite-user"),l}}}())}),define("ui/templates/users/show",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li");e.setAttribute(a,"class","active");var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"model.name"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li");e.setAttribute(a,"class","active");var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,0]),0,0);return d(t,c,e,"model.name"),i}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Snowman respects this user especially");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("small"),n=e.createTextNode("FOLLOWS YOU");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Unfollow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-info :btn-sm updating:disabled"}),d(t,c,e,"action",["unfollow"],{}),i}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Follow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-default :btn-sm updating:disabled"}),d(t,c,e,"action",["follow"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(l,0,0,d),p=i.createMorphAt(l,1,1,d);return i.insertBoundary(l,null),i.insertBoundary(l,0),o(n,h,r,"if",[s(n,r,"model.isFollowsMe")],{},e,null),o(n,p,r,"if",[s(n,r,"model.isFollowedByMe")],{},t,a),l}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Checks:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.content,s=i.get,o=i.block;d.detectNamespace(n);var l;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(l=this.build(d),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=d.cloneNode(this.cachedFragment,!0))):l=this.build(d);var h=d.createMorphAt(d.childAt(l,[1]),2,2),p=d.createMorphAt(d.childAt(l,[3]),2,2),u=d.createMorphAt(d.childAt(l,[5]),2,2),m=d.createMorphAt(l,7,7,n);return d.insertBoundary(l,null),c(r,h,a,"model.name"),c(r,p,a,"model.email"),c(r,u,a,"model.checks.length"),o(r,m,a,"if",[s(r,a,"model.isMe")],{},e,t),l}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,2]),0,0),s=r.createMorphAt(r.childAt(i,[3,2]),0,0);return d(t,c,e,"model.name"),d(t,s,e,"model.email"),i}}}(),n=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check"),enableActions:!1}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","table-response");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("table");e.setAttribute(d,"class","table table-striped");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("thead"),c=e.createTextNode("\n ");e.appendChild(i,c);var c=e.createComment("");e.appendChild(i,c);var c=e.createTextNode("\n ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("tbody"),c=e.createTextNode("\n");e.appendChild(i,c);var c=e.createComment("");e.appendChild(i,c);var c=e.createTextNode(" ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.inline,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1,1,1,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"check-header",[],{enableActions:!1}),s(a,p,t,"each",[c(a,t,"model.checks")],{keyword:"check"},e,null),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","pull-right");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("a");e.setAttribute(d,"href","#");var i=e.createTextNode("Destroy this user forever");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,1,1,1]);return d(t,c,e,"action",["destroy"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n),h=d.createMorphAt(o,2,2,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"model.checks")],{},e,null),s(r,h,a,"unless",[c(r,a,"model.isMe")],{},t,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ol");e.setAttribute(n,"class","breadcrumb");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createComment("");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-offset-1 col-sm-2");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-8");var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.inline,h=o.get,p=o.block;s.detectNamespace(c);var u;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(u=this.build(s),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=s.cloneNode(this.cachedFragment,!0))):u=this.build(s);var m=s.childAt(u,[0,1,1]),v=s.childAt(u,[2]),C=s.createMorphAt(s.childAt(m,[1]),0,0),f=s.createMorphAt(m,3,3),g=s.createMorphAt(s.childAt(v,[1]),1,1),b=s.createMorphAt(s.childAt(v,[3]),1,1),N=s.createMorphAt(u,4,4,c);return s.insertBoundary(u,null),l(i,C,d,"link-to",["Users","users"],{}),p(i,f,d,"unless",[h(i,d,"destroing")],{},e,t),l(i,g,d,"ember-gravatar",[],{email:h(i,d,"model.email"),size:200}),p(i,b,d,"unless",[h(i,d,"destroing")],{},a,r),p(i,N,d,"unless",[h(i,d,"destroing")],{},n,null),u}}}())}),define("ui/config/environment",["ember"],function(e){var t="ui";try{var a=t+"/config/environment",r=e["default"].$('meta[name="'+a+'"]').attr("content"),n=JSON.parse(unescape(r));return{"default":n}}catch(d){throw new Error('Could not read config from meta tag with name "'+a+'".')}}),runningTests?require("ui/tests/test-helper"):require("ui/app")["default"].create({name:"ui",version:"0.0.0.d6526c09"});
@@ -19,6 +19,6 @@ var r=this.fixturesForType(e),n=t.id;return this.findFixtureById(r,n)},findFixtu
19
19
  e.then(function(e){return e})},updateRecordsFromAdapter:function(e){var t=this;t.computeChanges(e)},notifyRecordRelationshipAdded:Ember.K,notifyRecordRelationshipRemoved:Ember.K};var Xt=Qt,Zt=Ember.get,Jt=Ember.set,er=Ember.ArrayPolyfills.filter,tr=Ember.Object.extend(Ember.MutableArray,Ember.Evented,{init:function(){this.currentState=Ember.A([])},record:null,canonicalState:null,currentState:null,length:0,objectAt:function(e){return this.currentState[e]?this.currentState[e]:this.canonicalState[e]},flushCanonical:function(){var e=er.call(this.canonicalState,function(e){return!e.get("isDeleted")}),t=this.currentState.filter(function(e){return e.get("isNew")});e=e.concat(t);var r=this.length;this.arrayContentWillChange(0,this.length,e.length),this.set("length",e.length),this.currentState=e,this.arrayContentDidChange(0,r,this.length),this.relationship.notifyHasManyChanged(),this.record.updateRecordArrays()},isPolymorphic:!1,isLoaded:!1,relationship:null,internalReplace:function(e,t,r){r||(r=[]),this.arrayContentWillChange(e,t,r.length),this.currentState.splice.apply(this.currentState,[e,t].concat(r)),this.set("length",this.currentState.length),this.arrayContentDidChange(e,t,r.length),r&&this.relationship.notifyHasManyChanged(),this.record.updateRecordArrays()},internalRemoveRecords:function(e){for(var t,r=0;r<e.length;r++)t=this.currentState.indexOf(e[r]),this.internalReplace(t,1)},internalAddRecords:function(e,t){void 0===t&&(t=this.currentState.length),this.internalReplace(t,0,e)},replace:function(e,t,r){var n;t>0&&(n=this.currentState.slice(e,e+t),this.get("relationship").removeRecords(n)),r&&this.get("relationship").addRecords(r,e)},promise:null,loadingRecordsCount:function(e){this.loadingRecordsCount=e},loadedRecord:function(){this.loadingRecordsCount--,0===this.loadingRecordsCount&&(Jt(this,"isLoaded",!0),this.trigger("didLoad"))},reload:function(){return this.relationship.reload()},save:function(){var e=this,t="DS: ManyArray#save "+Zt(this,"type"),r=Ember.RSVP.all(this.invoke("save"),t).then(function(t){return e},null,"DS: ManyArray#save return ManyArray");return pt.create({promise:r})},createRecord:function(e){var t,r=Zt(this,"store"),n=Zt(this,"type");return t=r.createRecord(n,e),this.pushObject(t),t},addRecord:function(e){this.addObject(e)},removeRecord:function(e){this.removeObject(e)}}),rr=function(e,t,r,n){this._super$constructor(e,t,r,n),this.belongsToType=n.type,this.canonicalState=[],this.manyArray=tr.create({canonicalState:this.canonicalState,store:this.store,relationship:this,type:this.belongsToType,record:t}),this.isPolymorphic=n.options.polymorphic,this.manyArray.isPolymorphic=this.isPolymorphic};rr.prototype=Ember.create(Xt.prototype),rr.prototype.constructor=rr,rr.prototype._super$constructor=Xt,rr.prototype.destroy=function(){this.manyArray.destroy()},rr.prototype._super$addCanonicalRecord=Xt.prototype.addCanonicalRecord,rr.prototype.addCanonicalRecord=function(e,t){this.canonicalMembers.has(e)||(void 0!==t?this.canonicalState.splice(t,0,e):this.canonicalState.push(e),this._super$addCanonicalRecord(e,t))},rr.prototype._super$addRecord=Xt.prototype.addRecord,rr.prototype.addRecord=function(e,t){this.members.has(e)||(this._super$addRecord(e,t),this.manyArray.internalAddRecords([e],t))},rr.prototype._super$removeCanonicalRecordFromOwn=Xt.prototype.removeCanonicalRecordFromOwn,rr.prototype.removeCanonicalRecordFromOwn=function(e,t){var r=t;this.canonicalMembers.has(e)&&(void 0===r&&(r=this.canonicalState.indexOf(e)),r>-1&&this.canonicalState.splice(r,1),this._super$removeCanonicalRecordFromOwn(e,t))},rr.prototype._super$flushCanonical=Xt.prototype.flushCanonical,rr.prototype.flushCanonical=function(){this.manyArray.flushCanonical(),this._super$flushCanonical()},rr.prototype._super$removeRecordFromOwn=Xt.prototype.removeRecordFromOwn,rr.prototype.removeRecordFromOwn=function(e,t){this.members.has(e)&&(this._super$removeRecordFromOwn(e,t),void 0!==t?this.manyArray.currentState.removeAt(t):this.manyArray.internalRemoveRecords([e]))},rr.prototype.notifyRecordRelationshipAdded=function(e,t){this.relationshipMeta.type;this.record.notifyHasManyAdded(this.key,e,t)},rr.prototype.reload=function(){var e=this;return this.link?this.fetchLink():this.store.scheduleFetchMany(this.manyArray.toArray()).then(function(){return e.manyArray.set("isLoaded",!0),e.manyArray})},rr.prototype.computeChanges=function(e){var t,r,n,i=this.canonicalMembers,o=[];for(e=L(e),i.forEach(function(t){e.has(t)||o.push(t)}),this.removeCanonicalRecords(o),e=e.toArray(),t=e.length,n=0;t>n;n++)r=e[n],this.removeCanonicalRecord(r),this.addCanonicalRecord(r,n)},rr.prototype.fetchLink=function(){var e=this;return this.store.findHasMany(this.record,this.link,this.relationshipMeta).then(function(t){return e.store._backburner.join(function(){e.updateRecordsFromAdapter(t)}),e.manyArray})},rr.prototype.findRecords=function(){var e=this.manyArray;return this.store.findMany(e.toArray()).then(function(){return e.set("isLoaded",!0),e})},rr.prototype.notifyHasManyChanged=function(){this.record.notifyHasManyAdded(this.key)},rr.prototype.getRecords=function(){if(this.isAsync){var e,t=this;return e=this.link?this.findLink().then(function(){return t.findRecords()}):this.findRecords(),yt.create({content:this.manyArray,promise:e})}return this.manyArray.get("isDestroyed")||this.manyArray.set("isLoaded",!0),this.manyArray};var nr=rr,ir=function(e,t,r,n){this._super$constructor(e,t,r,n),this.record=t,this.key=n.key,this.inverseRecord=null,this.canonicalState=null};ir.prototype=Ember.create(Xt.prototype),ir.prototype.constructor=ir,ir.prototype._super$constructor=Xt,ir.prototype.setRecord=function(e){e?this.addRecord(e):this.inverseRecord&&this.removeRecord(this.inverseRecord)},ir.prototype.setCanonicalRecord=function(e){e?this.addCanonicalRecord(e):this.inverseRecord&&this.removeCanonicalRecord(this.inverseRecord)},ir.prototype._super$addCanonicalRecord=Xt.prototype.addCanonicalRecord,ir.prototype.addCanonicalRecord=function(e){this.canonicalMembers.has(e)||(this.canonicalState&&this.removeCanonicalRecord(this.canonicalState),this.canonicalState=e,this._super$addCanonicalRecord(e))},ir.prototype._super$flushCanonical=Xt.prototype.flushCanonical,ir.prototype.flushCanonical=function(){this.inverseRecord&&this.inverseRecord.get("isNew")&&!this.canonicalState||(this.inverseRecord=this.canonicalState,this.record.notifyBelongsToChanged(this.key),this._super$flushCanonical())},ir.prototype._super$addRecord=Xt.prototype.addRecord,ir.prototype.addRecord=function(e){if(!this.members.has(e)){this.relationshipMeta.type;this.inverseRecord&&this.removeRecord(this.inverseRecord),this.inverseRecord=e,this._super$addRecord(e),this.record.notifyBelongsToChanged(this.key)}},ir.prototype.setRecordPromise=function(e){var t=e.get&&e.get("content");this.setRecord(t)},ir.prototype._super$removeRecordFromOwn=Xt.prototype.removeRecordFromOwn,ir.prototype.removeRecordFromOwn=function(e){this.members.has(e)&&(this.inverseRecord=null,this._super$removeRecordFromOwn(e),this.record.notifyBelongsToChanged(this.key))},ir.prototype._super$removeCanonicalRecordFromOwn=Xt.prototype.removeCanonicalRecordFromOwn,ir.prototype.removeCanonicalRecordFromOwn=function(e){this.canonicalMembers.has(e)&&(this.canonicalState=null,this._super$removeCanonicalRecordFromOwn(e))},ir.prototype.findRecord=function(){return this.inverseRecord?this.store._findByRecord(this.inverseRecord):Ember.RSVP.Promise.resolve(null)},ir.prototype.fetchLink=function(){var e=this;return this.store.findBelongsTo(this.record,this.link,this.relationshipMeta).then(function(t){return t&&e.addRecord(t),t})},ir.prototype.getRecord=function(){if(this.isAsync){var e;if(this.link){var t=this;e=this.findLink().then(function(){return t.findRecord()})}else e=this.findRecord();return mt.create({promise:e,content:this.inverseRecord})}return this.inverseRecord};var or=ir,sr=function(e,t,r){var n,i=e.constructor.inverseFor(t.key);return i&&(n=i.name),"hasMany"===t.kind?new nr(r,e,n,t):new or(r,e,n,t)},ar=sr,lr=Ember.get;I.prototype={constructor:I,id:null,record:null,type:null,typeKey:null,attr:function(e){if(e in this._attributes)return this._attributes[e];throw new Ember.Error("Model '"+Ember.inspect(this.record)+"' has no attribute named '"+e+"' defined.")},attributes:function(){return Ember.copy(this._attributes)},belongsTo:function(e,t){var r,n,i,o=t&&t.id;if(o&&e in this._belongsToIds)return this._belongsToIds[e];if(!o&&e in this._belongsToRelationships)return this._belongsToRelationships[e];if(n=this.record._relationships[e],!n||"belongsTo"!==n.relationshipMeta.kind)throw new Ember.Error("Model '"+Ember.inspect(this.record)+"' has no belongsTo relationship named '"+e+"' defined.");return i=lr(n,"inverseRecord"),o?(i&&(r=lr(i,"id")),this._belongsToIds[e]=r):(i&&(r=i._createSnapshot()),this._belongsToRelationships[e]=r),r},hasMany:function(e,t){var r,n,i=t&&t.ids,o=[];if(i&&e in this._hasManyIds)return this._hasManyIds[e];if(!i&&e in this._hasManyRelationships)return this._hasManyRelationships[e];if(r=this.record._relationships[e],!r||"hasMany"!==r.relationshipMeta.kind)throw new Ember.Error("Model '"+Ember.inspect(this.record)+"' has no hasMany relationship named '"+e+"' defined.");return n=lr(r,"members"),i?(n.forEach(function(e){o.push(lr(e,"id"))}),this._hasManyIds[e]=o):(n.forEach(function(e){o.push(e._createSnapshot())}),this._hasManyRelationships[e]=o),o},eachAttribute:function(e,t){this.record.eachAttribute(e,t)},eachRelationship:function(e,t){this.record.eachRelationship(e,t)},get:function(e){if("id"===e)return this.id;if(e in this._attributes)return this.attr(e);var t=this.record._relationships[e];return t&&"belongsTo"===t.relationshipMeta.kind?this.belongsTo(e):t&&"hasMany"===t.relationshipMeta.kind?this.hasMany(e):lr(this.record,e)},unknownProperty:function(e){return this.get(e)},_createSnapshot:function(){return this}};var ur=I,cr=Ember.get,hr=Ember.set,dr=Ember.RSVP.Promise,fr=Ember.ArrayPolyfills.forEach,pr=Ember.ArrayPolyfills.map,mr=(Ember.EnumerableUtils.intersection,Ember.computed("currentState",function(e,t){return cr(cr(this,"currentState"),e)}).readOnly()),gr=Ember.create(null),vr=Ember.create(null),yr=Ember.Object.extend(Ember.Evented,{_recordArrays:void 0,_relationships:void 0,store:null,isEmpty:mr,isLoading:mr,isLoaded:mr,isDirty:mr,isSaving:mr,isDeleted:mr,isNew:mr,isValid:mr,dirtyType:mr,isError:!1,isReloading:!1,clientId:null,id:null,currentState:Wt.empty,errors:Ember.computed(function(){var e=Kt.create();return e.registerHandlers(this,function(){this.send("becameInvalid")},function(){this.send("becameValid")}),e}).readOnly(),serialize:function(e){return this.store.serialize(this,e)},toJSON:function(e){var t=Ge.create({container:this.container}),r=this._createSnapshot();return t.serialize(r,e)},ready:function(){this.store.recordArrayManager.recordWasLoaded(this)},didLoad:Ember.K,didUpdate:Ember.K,didCreate:Ember.K,didDelete:Ember.K,becameInvalid:Ember.K,becameError:Ember.K,data:Ember.computed(function(){return this._data=this._data||{},this._data}).readOnly(),_data:null,init:function(){this._super.apply(this,arguments),this._setup()},_setup:function(){this._changesToSync={},this._deferredTriggers=[],this._data={},this._attributes=Ember.create(null),this._inFlightAttributes=Ember.create(null),this._relationships={},this._implicitRelationships=Ember.create(null);var e=this;this.constructor.eachRelationship(function(t,r){e._relationships[t]=ar(e,r,e.store)})},send:function(e,t){var r=cr(this,"currentState");return r[e]||this._unhandledEvent(r,e,t),r[e](this,t)},transitionTo:function(e){var t=z(e),r=cr(this,"currentState"),n=r;do n.exit&&n.exit(this),n=n.parentState;while(!n.hasOwnProperty(t));var i,o,s=j(e),a=[],l=[];for(i=0,o=s.length;o>i;i++)n=n[s[i]],n.enter&&l.push(n),n.setup&&a.push(n);for(i=0,o=l.length;o>i;i++)l[i].enter(this);for(hr(this,"currentState",n),i=0,o=a.length;o>i;i++)a[i].setup(this);this.updateRecordArraysLater()},_unhandledEvent:function(e,t,r){var n="Attempted to handle event `"+t+"` ";throw n+="on "+String(this)+" while in state ",n+=e.stateName+". ",void 0!==r&&(n+="Called with "+Ember.inspect(r)+"."),new Ember.Error(n)},withTransaction:function(e){var t=cr(this,"transaction");t&&e(t)},loadingData:function(e){this.send("loadingData",e)},loadedData:function(){this.send("loadedData")},notFound:function(){this.send("notFound")},pushedData:function(){this.send("pushedData")},deleteRecord:function(){this.send("deleteRecord")},destroyRecord:function(){return this.deleteRecord(),this.save()},unloadRecord:function(){this.isDestroyed||this.send("unloadRecord")},clearRelationships:function(){this.eachRelationship(function(e,t){var r=this._relationships[e];r&&(r.clear(),r.destroy())},this);var e=this;fr.call(Ember.keys(this._implicitRelationships),function(t){e._implicitRelationships[t].clear(),e._implicitRelationships[t].destroy()})},disconnectRelationships:function(){this.eachRelationship(function(e,t){this._relationships[e].disconnect()},this);var e=this;fr.call(Ember.keys(this._implicitRelationships),function(t){e._implicitRelationships[t].disconnect()})},reconnectRelationships:function(){this.eachRelationship(function(e,t){this._relationships[e].reconnect()},this);var e=this;fr.call(Ember.keys(this._implicitRelationships),function(t){e._implicitRelationships[t].reconnect()})},updateRecordArrays:function(){this._updatingRecordArraysLater=!1,this.store.dataWasUpdated(this.constructor,this)},_preloadData:function(e){var t=this;fr.call(Ember.keys(e),function(r){var n=cr(e,r),i=t.constructor.metaForProperty(r);i.isRelationship?t._preloadRelationship(r,n):cr(t,"_data")[r]=n})},_preloadRelationship:function(e,t){var r=this.constructor.metaForProperty(e),n=r.type;"hasMany"===r.kind?this._preloadHasMany(e,t,n):this._preloadBelongsTo(e,t,n)},_preloadHasMany:function(e,t,r){var n=this,i=pr.call(t,function(e){return n._convertStringOrNumberIntoRecord(e,r)});this._relationships[e].updateRecordsFromAdapter(i)},_preloadBelongsTo:function(e,t,r){var n=this._convertStringOrNumberIntoRecord(t,r);this._relationships[e].setRecord(n)},_convertStringOrNumberIntoRecord:function(e,t){return"string"===Ember.typeOf(e)||"number"===Ember.typeOf(e)?this.store.recordForId(t,e):e},_notifyProperties:function(e){Ember.beginPropertyChanges();for(var t,r=0,n=e.length;n>r;r++)t=e[r],this.notifyPropertyChange(t);Ember.endPropertyChanges()},changedAttributes:function(){var e,t=cr(this,"_data"),r=cr(this,"_attributes"),n={};for(e in r)n[e]=[t[e],r[e]];return n},adapterWillCommit:function(){this.send("willCommit")},adapterDidCommit:function(e){var t;hr(this,"isError",!1),e?t=V(this._data,e):Yt(this._data,this._inFlightAttributes),this._inFlightAttributes=Ember.create(null),this.send("didCommit"),this.updateRecordArraysLater(),e&&this._notifyProperties(t)},adapterDidDirty:function(){this.send("becomeDirty"),this.updateRecordArraysLater()},updateRecordArraysLater:function(){this._updatingRecordArraysLater||(this._updatingRecordArraysLater=!0,Ember.run.schedule("actions",this,this.updateRecordArrays))},setupData:function(e){var t=V(this._data,e);this.pushedData(),this._notifyProperties(t)},materializeId:function(e){hr(this,"id",e)},materializeAttributes:function(e){Yt(this._data,e)},materializeAttribute:function(e,t){this._data[e]=t},rollback:function(){var e=Ember.keys(this._attributes);this._attributes=Ember.create(null),cr(this,"isError")&&(this._inFlightAttributes=Ember.create(null),hr(this,"isError",!1)),cr(this,"isDeleted")&&this.reconnectRelationships(),cr(this,"isNew")&&this.clearRelationships(),cr(this,"isValid")||(this._inFlightAttributes=Ember.create(null)),this.send("rolledBack"),this._notifyProperties(e)},_createSnapshot:function(){return new ur(this)},toStringExtension:function(){return cr(this,"id")},save:function(){var e="DS: Model#save "+this,t=Ember.RSVP.defer(e);return this.store.scheduleSave(this,t),this._inFlightAttributes=this._attributes,this._attributes=Ember.create(null),mt.create({promise:t.promise})},reload:function(){hr(this,"isReloading",!0);var e=this,t="DS: Model#reload of "+this,r=new dr(function(t){e.send("reloadRecord",t)},t).then(function(){return e.set("isReloading",!1),e.set("isError",!1),e},function(t){throw e.set("isError",!0),t},"DS: Model#reload complete, update flags")["finally"](function(){e.updateRecordArrays()});return mt.create({promise:r})},adapterDidInvalidate:function(e){var t=cr(this,"errors");for(var r in e)e.hasOwnProperty(r)&&t.add(r,e[r]);this._saveWasRejected()},adapterDidError:function(){this.send("becameError"),hr(this,"isError",!0),this._saveWasRejected()},_saveWasRejected:function(){for(var e=Ember.keys(this._inFlightAttributes),t=0;t<e.length;t++)void 0===this._attributes[e[t]]&&(this._attributes[e[t]]=this._inFlightAttributes[e[t]]);this._inFlightAttributes=Ember.create(null)},trigger:function(){for(var e=arguments.length,t=new Array(e-1),r=arguments[0],n=1;e>n;n++)t[n-1]=arguments[n];Ember.tryInvoke(this,r,t),this._super.apply(this,arguments)},triggerLater:function(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];1===this._deferredTriggers.push(t)&&Ember.run.schedule("actions",this,"_triggerDeferredTriggers")},_triggerDeferredTriggers:function(){for(var e=0,t=this._deferredTriggers.length;t>e;e++)this.trigger.apply(this,this._deferredTriggers[e]);this._deferredTriggers.length=0},willDestroy:function(){this._super.apply(this,arguments),this.clearRelationships()},willMergeMixin:function(e){this.constructor},attr:function(){},belongsTo:function(){},hasMany:function(){}});yr.reopenClass({_create:yr.create,create:function(){throw new Ember.Error("You should not call `create` on a model. Instead, call `store.createRecord` with the attributes you would like to set.")}});var br=yr,_r=Ember.get;br.reopenClass({attributes:Ember.computed(function(){var e=Ce.create();return this.eachComputedProperty(function(t,r){r.isAttribute&&(r.name=t,e.set(t,r))}),e}).readOnly(),transformedAttributes:Ember.computed(function(){var e=Ce.create();return this.eachAttribute(function(t,r){r.type&&e.set(t,r.type)}),e}).readOnly(),eachAttribute:function(e,t){_r(this,"attributes").forEach(function(r,n){e.call(t,n,r)},t)},eachTransformedAttribute:function(e,t){_r(this,"transformedAttributes").forEach(function(r,n){e.call(t,n,r)})}}),br.reopen({eachAttribute:function(e,t){this.constructor.eachAttribute(e,t)}});var wr=$,xr=br,Cr=Ember.__loader.require("backburner")["default"]||Ember.__loader.require("backburner").Backburner;if(!Cr.prototype.join){var Er=function(e){return"string"==typeof e};Cr.prototype.join=function(){var e,t;if(this.currentInstance){var r=arguments.length;if(1===r?(e=arguments[0],t=null):(t=arguments[0],e=arguments[1]),Er(e)&&(e=t[e]),1===r)return e();if(2===r)return e.call(t);for(var n=new Array(r-2),i=0,o=r-2;o>i;i++)n[i]=arguments[i+2];return e.apply(t,n)}return this.run.apply(this,arguments)}}var Sr,Tr=Ember.get,Ar=Ember.set,kr=Ember.run.once,Pr=Ember.isNone,Or=Ember.EnumerableUtils.forEach,Rr=Ember.EnumerableUtils.indexOf,Nr=Ember.EnumerableUtils.map,Mr=Ember.RSVP.Promise,Dr=Ember.copy,Fr=Ember.String.camelize,Lr=Ember.Service;Lr||(Lr=Ember.Object),Sr=Lr.extend({init:function(){this._backburner=new Cr(["normalizeRelationships","syncRelationships","finished"]),this.typeMaps={},this.recordArrayManager=Lt.create({store:this}),this._pendingSave=[],this._containerCache=Ember.create(null),this._pendingFetch=Ce.create()},adapter:"-rest",serialize:function(e,t){var r=e._createSnapshot();return this.serializerFor(r.typeKey).serialize(r,t)},defaultAdapter:Ember.computed("adapter",function(){var e=Tr(this,"adapter");return"string"==typeof e&&(e=this.container.lookup("adapter:"+e)||this.container.lookup("adapter:application")||this.container.lookup("adapter:-rest")),DS.Adapter.detect(e)&&(e=e.create({container:this.container,store:this})),e}),createRecord:function(e,t){var r=this.modelFor(e),n=Dr(t)||{};Pr(n.id)&&(n.id=this._generateId(r,n)),n.id=q(n.id);var i=this.buildRecord(r,n.id);return i.loadedData(),i.setProperties(n),i},_generateId:function(e,t){var r=this.adapterFor(e);return r&&r.generateIdForRecord?r.generateIdForRecord(this,e,t):null},deleteRecord:function(e){e.deleteRecord()},unloadRecord:function(e){e.unloadRecord()},find:function(e,t,r){return 1===arguments.length?this.findAll(e):"object"===Ember.typeOf(t)?this.findQuery(e,t):this.findById(e,q(t),r)},fetchById:function(e,t,r){return this.hasRecordForId(e,t)?this.getById(e,t).reload():this.find(e,t,r)},fetchAll:function(e){return e=this.modelFor(e),this._fetchAll(e,this.all(e))},fetch:function(e,t,r){return this.fetchById(e,t,r)},findById:function(e,t,r){var n=this.modelFor(e),i=this.recordForId(n,t);return this._findByRecord(i,r)},_findByRecord:function(e,t){var r;return t&&e._preloadData(t),Tr(e,"isEmpty")?r=this.scheduleFetch(e):Tr(e,"isLoading")&&(r=e._loadingPromise),gt(r||e,"DS: Store#findByRecord "+e.typeKey+" with id: "+Tr(e,"id"))},findByIds:function(e,t){var r=this;return vt(Ember.RSVP.all(Nr(t,function(t){return r.findById(e,t)})).then(Ember.A,null,"DS: Store#findByIds of "+e+" complete"))},fetchRecord:function(e){var t=e.constructor,r=Tr(e,"id"),n=this.adapterFor(t),i=_(n,this,t,r,e);return i},scheduleFetchMany:function(e){return Mr.all(Nr(e,this.scheduleFetch,this))},scheduleFetch:function(e){var t=e.constructor;if(Pr(e))return null;if(e._loadingPromise)return e._loadingPromise;var r=Ember.RSVP.defer("Fetching "+t+"with id: "+e.get("id")),n={record:e,resolver:r},i=r.promise;return e.loadingData(i),this._pendingFetch.get(t)?this._pendingFetch.get(t).push(n):this._pendingFetch.set(t,[n]),Ember.run.scheduleOnce("afterRender",this,this.flushAllPendingFetches),i},flushAllPendingFetches:function(){this.isDestroyed||this.isDestroying||(this._pendingFetch.forEach(this._flushPendingFetchForType,this),this._pendingFetch=Ce.create())},_flushPendingFetchForType:function(e,t){function r(e){e.resolver.resolve(a.fetchRecord(e.record))}function n(t){return Or(t,function(t){var r=Ember.A(e).findBy("record",t);if(r){var n=r.resolver;n.resolve(t)}}),t}function i(e){return function(t){t=Ember.A(t);var r=e.reject(function(e){return t.contains(e)});r.length,s(r)}}function o(e){return function(t){s(e,t)}}function s(t,r){Or(t,function(t){var n=Ember.A(e).findBy("record",t);if(n){var i=n.resolver;i.reject(r)}})}var a=this,l=a.adapterFor(t),u=!!l.findMany&&l.coalesceFindRequests,c=Ember.A(e).mapBy("record");if(1===e.length)r(e[0]);else if(u){var h=Ember.A(c).invoke("_createSnapshot"),d=l.groupRecordsForFindMany(this,h);Or(d,function(s){var u=Ember.A(s).mapBy("record"),c=Ember.A(u),h=c.mapBy("id");if(h.length>1)w(l,a,t,h,c).then(n).then(i(c)).then(null,o(c));else if(1===h.length){var d=Ember.A(e).findBy("record",u[0]);r(d)}})}else Or(e,r)},getById:function(e,t){return this.hasRecordForId(e,t)?this.recordForId(e,t):null},reloadRecord:function(e){var t=e.constructor;this.adapterFor(t),Tr(e,"id");return this.scheduleFetch(e)},hasRecordForId:function(e,t){var r=this.modelFor(e),n=q(t),i=this.typeMapFor(r).idToRecord[n];return!!i&&Tr(i,"isLoaded")},recordForId:function(e,t){var r=this.modelFor(e),n=q(t),i=this.typeMapFor(r).idToRecord,o=i[n];return o&&i[n]||(o=this.buildRecord(r,n)),o},findMany:function(e){var t=this;return Mr.all(Nr(e,function(e){return t._findByRecord(e)}))},findHasMany:function(e,t,r){var n=this.adapterFor(e.constructor);return x(n,this,e,t,r)},findBelongsTo:function(e,t,r){var n=this.adapterFor(e.constructor);return C(n,this,e,t,r)},findQuery:function(e,t){var r=this.modelFor(e),n=this.recordArrayManager.createAdapterPopulatedRecordArray(r,t),i=this.adapterFor(r);return vt(S(i,this,r,t,n))},findAll:function(e){return this.fetchAll(e)},_fetchAll:function(e,t){var r=this.adapterFor(e),n=this.typeMapFor(e).metadata.since;return Ar(t,"isUpdating",!0),vt(E(r,this,e,n))},didUpdateAll:function(e){var t=this.typeMapFor(e).findAllCache;Ar(t,"isUpdating",!1)},all:function(e){var t=this.modelFor(e),r=this.typeMapFor(t),n=r.findAllCache;if(n)return this.recordArrayManager.updateFilter(n,t),n;var i=this.recordArrayManager.createRecordArray(t);return r.findAllCache=i,i},unloadAll:function(e){for(var t,r=this.modelFor(e),n=this.typeMapFor(r),i=n.records.slice(),o=0;o<i.length;o++)t=i[o],t.unloadRecord(),t.destroy();n.findAllCache=null},filter:function(e,t,r){var n,i,o=arguments.length,s=3===o;return s?n=this.findQuery(e,t):2===arguments.length&&(r=t),e=this.modelFor(e),i=s?this.recordArrayManager.createFilteredRecordArray(e,r,t):this.recordArrayManager.createFilteredRecordArray(e,r),n=n||Mr.cast(i),vt(n.then(function(){return i},null,"DS: Store#filter of "+e))},recordIsLoaded:function(e,t){return this.hasRecordForId(e,t)?!Tr(this.recordForId(e,t),"isEmpty"):!1},metadataFor:function(e){var t=this.modelFor(e);return this.typeMapFor(t).metadata},setMetadataFor:function(e,t){var r=this.modelFor(e);Ember.merge(this.typeMapFor(r).metadata,t)},dataWasUpdated:function(e,t){this.recordArrayManager.recordDidChange(t)},scheduleSave:function(e,t){e.adapterWillCommit(),this._pendingSave.push([e,t]),kr(this,"flushPendingSave")},flushPendingSave:function(){var e=this._pendingSave.slice();this._pendingSave=[],Or(e,function(e){var t,r=e[0],n=e[1],i=this.adapterFor(r.constructor);return"root.deleted.saved"===Tr(r,"currentState.stateName")?n.resolve(r):(t=Tr(r,"isNew")?"createRecord":Tr(r,"isDeleted")?"deleteRecord":"updateRecord",void n.resolve(X(i,this,t,r)))},this)},didSaveRecord:function(e,t){t&&(this._backburner.schedule("normalizeRelationships",this,"_setupRelationships",e,e.constructor,t),this.updateId(e,t)),e.adapterDidCommit(t)},recordWasInvalid:function(e,t){e.adapterDidInvalidate(t)},recordWasError:function(e){e.adapterDidError()},updateId:function(e,t){var r=(Tr(e,"id"),q(t.id));this.typeMapFor(e.constructor).idToRecord[r]=e,Ar(e,"id",r)},typeMapFor:function(e){var t,r=Tr(this,"typeMaps"),n=Ember.guidFor(e);return(t=r[n])?t:(t={idToRecord:Ember.create(null),records:[],metadata:Ember.create(null),type:e},r[n]=t,t)},_load:function(e,t){var r=q(t.id),n=this.recordForId(e,r);return n.setupData(t),this.recordArrayManager.recordDidChange(n),n},_modelForMixin:function(e){var t=this.container._registry?this.container._registry:this.container,r=t.resolve("mixin:"+e);r&&t.register("model:"+e,DS.Model.extend(r));var n=this.modelFactoryFor(e);return n&&(n.__isMixin=!0,n.__mixin=r),n},modelFor:function(e){var t;if("string"==typeof e){if(t=this.modelFactoryFor(e),t||(t=this._modelForMixin(e)),!t)throw new Ember.Error("No model was found for '"+e+"'");t.typeKey=t.typeKey||this._normalizeTypeKey(e)}else t=e,t.typeKey&&(t.typeKey=this._normalizeTypeKey(t.typeKey));return t.store=this,t},modelFactoryFor:function(e){return this.container.lookupFactory("model:"+e)},push:function(e,t){var r=this.modelFor(e);Ember.EnumerableUtils.filter;Ember.ENV.DS_WARN_ON_UNKNOWN_KEYS,this._load(r,t);var n=this.recordForId(r,t.id),i=this;return this._backburner.join(function(){i._backburner.schedule("normalizeRelationships",i,"_setupRelationships",n,r,t)}),n},_setupRelationships:function(e,t,r){r=U(this,t,r),Z(this,e,r)},pushPayload:function(e,t){var r,n;t?(n=t,r=this.serializerFor(e)):(n=e,r=Q(this.container));var i=this;this._adapterRun(function(){r.pushPayload(i,n)})},normalize:function(e,t){var r=this.serializerFor(e),n=this.modelFor(e);return r.normalize(n,t)},update:function(e,t){return this.push(e,t)},pushMany:function(e,t){for(var r=t.length,n=new Array(r),i=0;r>i;i++)n[i]=this.push(e,t[i]);return n},metaForType:function(e,t){this.setMetadataFor(e,t)},buildRecord:function(e,t,r){var n=this.typeMapFor(e),i=n.idToRecord,o=e._create({id:t,store:this,container:this.container});return r&&o.setupData(r),t&&(i[t]=o),n.records.push(o),o},recordWasLoaded:function(e){this.recordArrayManager.recordWasLoaded(e)},dematerializeRecord:function(e){this._dematerializeRecord(e)},_dematerializeRecord:function(e){var t=e.constructor,r=this.typeMapFor(t),n=Tr(e,"id");e.updateRecordArrays(),n&&delete r.idToRecord[n];var i=Rr(r.records,e);r.records.splice(i,1)},adapterFor:function(e){"application"!==e&&(e=this.modelFor(e));var t=this.lookupAdapter(e.typeKey)||this.lookupAdapter("application");return t||Tr(this,"defaultAdapter")},_adapterRun:function(e){return this._backburner.run(e)},serializerFor:function(e){"application"!==e&&(e=this.modelFor(e));var t=this.lookupSerializer(e.typeKey)||this.lookupSerializer("application");if(!t){var r=this.adapterFor(e);t=this.lookupSerializer(Tr(r,"defaultSerializer"))}return t||(t=this.lookupSerializer("-default")),t},retrieveManagedInstance:function(e,t){var r=e+":"+t;if(!this._containerCache[r]){var n=this.container.lookup(r);n&&(Ar(n,"store",this),this._containerCache[r]=n)}return this._containerCache[r]},lookupAdapter:function(e){return this.retrieveManagedInstance("adapter",e)},lookupSerializer:function(e){return this.retrieveManagedInstance("serializer",e)},willDestroy:function(){function e(e){return t[e].type}var t=this.typeMaps,r=Ember.keys(t),n=Nr(r,e);this.recordArrayManager.destroy(),Or(n,this.unloadAll,this);for(var i in this._containerCache)this._containerCache[i].destroy(),delete this._containerCache[i];delete this._containerCache},_normalizeTypeKey:function(e){return Fr(a(e))}});var Ir=Sr,jr=J,zr=Ember.Object.extend({serialize:null,deserialize:null}),Vr=Ember.isEmpty,Br=zr.extend({deserialize:function(e){var t;return Vr(e)?null:(t=Number(e),ee(t)?t:null)},serialize:function(e){var t;return Vr(e)?null:(t=Number(e),ee(t)?t:null)}}),Hr=Date.prototype.toISOString||function(){function e(e){return 10>e?"0"+e:e}return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+(this.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};Ember.SHIM_ES5&&(Date.prototype.toISOString||(Date.prototype.toISOString=Hr));var Wr=zr.extend({deserialize:function(e){var t=typeof e;return"string"===t?new Date(Ember.Date.parse(e)):"number"===t?new Date(e):null===e||void 0===e?e:null},serialize:function(e){return e instanceof Date?Hr.call(e):null}}),$r=Ember.isNone,qr=zr.extend({deserialize:function(e){return $r(e)?null:String(e)},serialize:function(e){return $r(e)?null:String(e)}}),Ur=zr.extend({deserialize:function(e){var t=typeof e;return"boolean"===t?e:"string"===t?null!==e.match(/^true$|^t$|^1$/i):"number"===t?1===e:!1},serialize:function(e){return Boolean(e)}}),Kr=te,Yr=re,Gr=Ember.get,Qr=Ember.String.capitalize,Xr=Ember.String.underscore,Zr=Ember.DataAdapter.extend({getFilters:function(){return[{name:"isNew",desc:"New"},{name:"isModified",desc:"Modified"},{name:"isClean",desc:"Clean"}]},detect:function(e){return e!==xr&&xr.detect(e)},columnsForType:function(e){var t=[{name:"id",desc:"Id"}],r=0,n=this;return Gr(e,"attributes").forEach(function(e,i){if(r++>n.attributeLimit)return!1;var o=Qr(Xr(i).replace("_"," "));t.push({name:i,desc:o})}),t},getRecords:function(e){return this.get("store").all(e)},getRecordColumnValues:function(e){var t=this,r=0,n={id:Gr(e,"id")};return e.eachAttribute(function(i){if(r++>t.attributeLimit)return!1;var o=Gr(e,i);n[i]=o}),n},getRecordKeywords:function(e){var t=[],r=Ember.A(["id"]);return e.eachAttribute(function(e){r.push(e)}),r.forEach(function(r){t.push(Gr(e,r))}),t},getRecordFilterValues:function(e){return{isNew:e.get("isNew"),isModified:e.get("isDirty")&&!e.get("isNew"),isClean:!e.get("isDirty")}},getRecordColor:function(e){var t="black";return e.get("isNew")?t="green":e.get("isDirty")&&(t="blue"),t},observeRecord:function(e,t){var r=Ember.A(),n=this,i=Ember.A(["id","isNew","isDirty"]);e.eachAttribute(function(e){i.push(e)}),i.forEach(function(i){var o=function(){t(n.wrapRecord(e))};Ember.addObserver(e,i,o),r.push(function(){Ember.removeObserver(e,i,o)})});var o=function(){r.forEach(function(e){e()})};return o}}),Jr=ne,en=ie,tn=Ember.K;Ember.onLoad("Ember.Application",function(e){e.initializer({name:"ember-data",initialize:en}),e.initializer({name:"store",after:"ember-data",initialize:tn}),
20
20
  e.initializer({name:"activeModelAdapter",before:"store",initialize:tn}),e.initializer({name:"transforms",before:"store",initialize:tn}),e.initializer({name:"data-adapter",before:"store",initialize:tn}),e.initializer({name:"injectStore",before:"store",initialize:tn})}),Ember.Date=Ember.Date||{};var rn=Date.parse,nn=[1,4,5,6,7,10,11];Ember.Date.parse=function(e){var t,r,n=0;if(r=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/.exec(e)){for(var i,o=0;i=nn[o];++o)r[i]=+r[i]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,"Z"!==r[8]&&void 0!==r[9]&&(n=60*r[10]+r[11],"+"===r[9]&&(n=0-n)),t=Date.UTC(r[1],r[2],r[3],r[4],r[5]+n,r[6],r[7])}else t=rn?rn(e):NaN;return t},(Ember.EXTEND_PROTOTYPES===!0||Ember.EXTEND_PROTOTYPES.Date)&&(Date.parse=Ember.Date.parse),xr.reopen({_debugInfo:function(){var e=["id"],t={belongsTo:[],hasMany:[]},r=[];this.eachAttribute(function(t,r){e.push(t)},this),this.eachRelationship(function(e,n){t[n.kind].push(e),r.push(e)});var n=[{name:"Attributes",properties:e,expand:!0},{name:"Belongs To",properties:t.belongsTo,expand:!0},{name:"Has Many",properties:t.hasMany,expand:!0},{name:"Flags",properties:["isLoaded","isDirty","isSaving","isDeleted","isError","isNew","isValid"]}];return{propertyInfo:{includeOtherProperties:!0,groups:n,expensiveProperties:r}}}});var on=Zr,sn=Ember.get,an=Ember.EnumerableUtils.forEach,ln=Ember.String.camelize,un=Ember.Mixin.create({normalize:function(e,t,r){var n=this._super(e,t,r);return oe(this,this.store,e,n)},keyForRelationship:function(e,t){return this.hasDeserializeRecordsOption(e)?this.keyForAttribute(e):this._super(e,t)||e},serializeBelongsTo:function(e,t,r){var n=r.key;if(this.noSerializeOptionSpecified(n))return void this._super(e,t,r);var i,o=this.hasSerializeIdsOption(n),s=this.hasSerializeRecordsOption(n),a=e.belongsTo(n);o?(i=this.keyForRelationship(n,r.kind),a?t[i]=a.id:t[i]=null):s&&(i=this.keyForAttribute(n),a?(t[i]=a.record.serialize({includeId:!0}),this.removeEmbeddedForeignKey(e,a,r,t[i])):t[i]=null)},serializeHasMany:function(e,t,r){var n=r.key;if(this.noSerializeOptionSpecified(n))return void this._super(e,t,r);var i,o=this.hasSerializeIdsOption(n),s=this.hasSerializeRecordsOption(n);o?(i=this.keyForRelationship(n,r.kind),t[i]=e.hasMany(n,{ids:!0})):s&&(i=this.keyForAttribute(n),t[i]=e.hasMany(n).map(function(t){var n=t.record.serialize({includeId:!0});return this.removeEmbeddedForeignKey(e,t,r,n),n},this))},removeEmbeddedForeignKey:function(e,t,r,n){if("hasMany"!==r.kind&&"belongsTo"===r.kind){var i=e.type.inverseFor(r.key);if(i){var o=i.name,s=this.store.serializerFor(t.type),a=s.keyForRelationship(o,i.kind);a&&delete n[a]}}},hasEmbeddedAlwaysOption:function(e){var t=this.attrsOption(e);return t&&"always"===t.embedded},hasSerializeRecordsOption:function(e){var t=this.hasEmbeddedAlwaysOption(e),r=this.attrsOption(e);return t||r&&"records"===r.serialize},hasSerializeIdsOption:function(e){var t=this.attrsOption(e);return t&&("ids"===t.serialize||"id"===t.serialize)},noSerializeOptionSpecified:function(e){var t=this.attrsOption(e);return!(t&&(t.serialize||t.embedded))},hasDeserializeRecordsOption:function(e){var t=this.hasEmbeddedAlwaysOption(e),r=this.attrsOption(e);return t||r&&"records"===r.deserialize},attrsOption:function(e){var t=this.get("attrs");return t&&(t[ln(e)]||t[e])}}),cn=un;xr.reopen({notifyBelongsToChanged:function(e){this.notifyPropertyChange(e)}});var hn=ce;xr.reopen({notifyHasManyAdded:function(e){this.notifyPropertyChange(e)}});var dn=he,fn=Ember.get,pn=Ember.ArrayPolyfills.filter,mn=Ember.computed(function(){Ember.testing===!0&&mn._cacheable===!0&&(mn._cacheable=!1);var e=new Ee({defaultValue:function(){return[]}});return this.eachComputedProperty(function(t,r){if(r.isRelationship){r.key=t;var n=e.get(de(this.store,r));n.push({name:t,kind:r.kind})}}),e}).readOnly(),gn=Ember.computed(function(){Ember.testing===!0&&gn._cacheable===!0&&(gn._cacheable=!1);var e,t=Ember.A();return this.eachComputedProperty(function(r,n){n.isRelationship&&(n.key=r,e=de(this.store,n),t.contains(e)||t.push(e))}),t}).readOnly(),vn=Ember.computed(function(){Ember.testing===!0&&vn._cacheable===!0&&(vn._cacheable=!1);var e=Ce.create();return this.eachComputedProperty(function(t,r){if(r.isRelationship){r.key=t;var n=fe(this.store,r);n.type=de(this.store,r),e.set(t,n)}}),e}).readOnly();xr.reopen({didDefineProperty:function(e,t,r){if(r instanceof Ember.ComputedProperty){var n=r.meta();n.parentType=e.constructor}}}),xr.reopenClass({typeForRelationship:function(e){var t=fn(this,"relationshipsByName").get(e);return t&&t.type},inverseMap:Ember.computed(function(){return Ember.create(null)}),inverseFor:function(e){var t=fn(this,"inverseMap");if(t[e])return t[e];var r=this._findInverseFor(e);return t[e]=r,r},_findInverseFor:function(e){function t(r,n,i){var o=i||[],s=fn(n,"relationships");if(s){var a=s.get(r);return a=pn.call(a,function(t){var r=n.metaForProperty(t.name).options;return r.inverse?e===r.inverse:!0}),a&&o.push.apply(o,a),r.superclass&&t(r.superclass,n,o),o}}var r=this.typeForRelationship(e);if(!r)return null;var n=this.metaForProperty(e),i=n.options;if(null===i.inverse)return null;var o,s,a;if(i.inverse)o=i.inverse,a=Ember.get(r,"relationshipsByName").get(o),s=a.kind;else{var l=t(this,r);if(0===l.length)return null;var u=pn.call(l,function(t){var n=r.metaForProperty(t.name).options;return e===n.inverse});1===u.length&&(l=u),o=l[0].name,s=l[0].kind}return{type:r,name:o,kind:s}},relationships:mn,relationshipNames:Ember.computed(function(){var e={hasMany:[],belongsTo:[]};return this.eachComputedProperty(function(t,r){r.isRelationship&&e[r.kind].push(t)}),e}),relatedTypes:gn,relationshipsByName:vn,fields:Ember.computed(function(){var e=Ce.create();return this.eachComputedProperty(function(t,r){r.isRelationship?e.set(t,r.kind):r.isAttribute&&e.set(t,"attribute")}),e}).readOnly(),eachRelationship:function(e,t){fn(this,"relationshipsByName").forEach(function(r,n){e.call(t,n,r)})},eachRelatedType:function(e,t){fn(this,"relatedTypes").forEach(function(r){e.call(t,r)})},determineRelationshipType:function(e){var t,r,n=e.key,i=e.kind,o=this.inverseFor(n);return o?(t=o.name,r=o.kind,"belongsTo"===r?"belongsTo"===i?"oneToOne":"manyToOne":"belongsTo"===i?"oneToMany":"manyToMany"):"belongsTo"===i?"oneToNone":"manyToNone"}}),xr.reopen({eachRelationship:function(e,t){this.constructor.eachRelationship(e,t)},relationshipFor:function(e){return fn(this.constructor,"relationshipsByName").get(e)},inverseFor:function(e){return this.constructor.inverseFor(e)}}),Ember.RSVP.Promise.cast=Ember.RSVP.Promise.cast||Ember.RSVP.resolve,ht.Store=Sr,ht.PromiseArray=pt,ht.PromiseObject=mt,ht.PromiseManyArray=yt,ht.Model=xr,ht.RootState=Wt,ht.attr=wr,ht.Errors=Kt,ht.Snapshot=ur,ht.Adapter=ge,ht.InvalidError=e,ht.Serializer=$e,ht.DebugAdapter=on,ht.RecordArray=Et,ht.FilteredRecordArray=Tt,ht.AdapterPopulatedRecordArray=kt,ht.ManyArray=tr,ht.RecordArrayManager=Lt,ht.RESTAdapter=Pe,ht.BuildURLMixin=Te,ht.FixtureAdapter=xe,ht.RESTSerializer=et,ht.JSONSerializer=Ge,ht.Transform=zr,ht.DateTransform=Wr,ht.StringTransform=qr,ht.NumberTransform=Br,ht.BooleanTransform=Ur,ht.ActiveModelAdapter=He,ht.ActiveModelSerializer=at,ht.EmbeddedRecordsMixin=cn,ht.belongsTo=hn,ht.hasMany=dn,ht.Relationship=Xt,ht.ContainerProxy=lt,ht._setupContainer=en,Ember.lookup.DS=ht}.call(this),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return Pr.apply(null,arguments)}function t(e){Pr=e}function r(e){return"[object Array]"===Object.prototype.toString.call(e)}function n(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e,t){var r,n=[];for(r=0;r<e.length;++r)n.push(t(e[r],r));return n}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e,t){for(var r in t)o(t,r)&&(e[r]=t[r]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function a(e,t,r,n){return Se(e,t,r,n,!0).utc()}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function u(e){return null==e._pf&&(e._pf=l()),e._pf}function c(e){if(null==e._isValid){var t=u(e);e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function h(e){var t=a(NaN);return null!=e?s(u(t),e):u(t).userInvalidated=!0,t}function d(e,t){var r,n,i;if("undefined"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(e._i=t._i),"undefined"!=typeof t._f&&(e._f=t._f),"undefined"!=typeof t._l&&(e._l=t._l),"undefined"!=typeof t._strict&&(e._strict=t._strict),"undefined"!=typeof t._tzm&&(e._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(e._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(e._offset=t._offset),"undefined"!=typeof t._pf&&(e._pf=u(t)),"undefined"!=typeof t._locale&&(e._locale=t._locale),Rr.length>0)for(r in Rr)n=Rr[r],i=t[n],"undefined"!=typeof i&&(e[n]=i);return e}function f(t){d(this,t),this._d=new Date(+t._d),Nr===!1&&(Nr=!0,e.updateOffset(this),Nr=!1)}function p(e){return e instanceof f||null!=e&&null!=e._isAMomentObject}function m(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=t>=0?Math.floor(t):Math.ceil(t)),r}function g(e,t,r){var n,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(n=0;i>n;n++)(r&&e[n]!==t[n]||!r&&m(e[n])!==m(t[n]))&&s++;return s+o}function v(){}function y(e){return e?e.toLowerCase().replace("_","-"):e}function b(e){for(var t,r,n,i,o=0;o<e.length;){for(i=y(e[o]).split("-"),t=i.length,r=y(e[o+1]),r=r?r.split("-"):null;t>0;){if(n=_(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&g(i,r,!0)>=t-1)break;t--}o++}return null}function _(e){var t=null;if(!Mr[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Or._abbr,require("./locale/"+e),w(t)}catch(r){}return Mr[e]}function w(e,t){var r;return e&&(r="undefined"==typeof t?C(e):x(e,t),r&&(Or=r)),Or._abbr}function x(e,t){return null!==t?(t.abbr=e,Mr[e]||(Mr[e]=new v),Mr[e].set(t),w(e),Mr[e]):(delete Mr[e],null)}function C(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Or;if(!r(e)){if(t=_(e))return t;e=[e]}return b(e)}function E(e,t){var r=e.toLowerCase();Dr[r]=Dr[r+"s"]=Dr[t]=e}function S(e){return"string"==typeof e?Dr[e]||Dr[e.toLowerCase()]:void 0}function T(e){var t,r,n={};for(r in e)o(e,r)&&(t=S(r),t&&(n[t]=e[r]));return n}function A(t,r){return function(n){return null!=n?(P(this,t,n),e.updateOffset(this,r),this):k(this,t)}}function k(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function P(e,t,r){return e._d["set"+(e._isUTC?"UTC":"")+t](r)}function O(e,t){var r;if("object"==typeof e)for(r in e)this.set(r,e[r]);else if(e=S(e),"function"==typeof this[e])return this[e](t);return this}function R(e,t,r){for(var n=""+Math.abs(e),i=e>=0;n.length<t;)n="0"+n;return(i?r?"+":"":"-")+n}function N(e,t,r,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(jr[e]=i),t&&(jr[t[0]]=function(){return R(i.apply(this,arguments),t[1],t[2])}),r&&(jr[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function M(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function D(e){var t,r,n=e.match(Fr);for(t=0,r=n.length;r>t;t++)jr[n[t]]?n[t]=jr[n[t]]:n[t]=M(n[t]);return function(i){var o="";for(t=0;r>t;t++)o+=n[t]instanceof Function?n[t].call(i,e):n[t];return o}}function F(e,t){return e.isValid()?(t=L(t,e.localeData()),Ir[t]||(Ir[t]=D(t)),Ir[t](e)):e.localeData().invalidDate()}function L(e,t){function r(e){return t.longDateFormat(e)||e}var n=5;for(Lr.lastIndex=0;n>=0&&Lr.test(e);)e=e.replace(Lr,r),Lr.lastIndex=0,n-=1;return e}function I(e,t,r){Jr[e]="function"==typeof t?t:function(e){return e&&r?r:t}}function j(e,t){return o(Jr,e)?Jr[e](t._strict,t._locale):new RegExp(z(e))}function z(e){return e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,i){return t||r||n||i}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function V(e,t){var r,n=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(n=function(e,r){r[t]=m(e)}),r=0;r<e.length;r++)en[e[r]]=n}function B(e,t){V(e,function(e,r,n,i){n._w=n._w||{},t(e,n._w,n,i)})}function H(e,t,r){null!=t&&o(en,e)&&en[e](t,r._a,r,e)}function W(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function $(e){return this._months[e.month()]}function q(e){return this._monthsShort[e.month()]}function U(e,t,r){var n,i,o;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;12>n;n++){if(i=a([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function K(e,t){var r;return"string"==typeof t&&(t=e.localeData().monthsParse(t),"number"!=typeof t)?e:(r=Math.min(e.date(),W(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e)}function Y(t){return null!=t?(K(this,t),e.updateOffset(this,!0),this):k(this,"Month")}function G(){return W(this.year(),this.month())}function Q(e){var t,r=e._a;return r&&-2===u(e).overflow&&(t=r[rn]<0||r[rn]>11?rn:r[nn]<1||r[nn]>W(r[tn],r[rn])?nn:r[on]<0||r[on]>24||24===r[on]&&(0!==r[sn]||0!==r[an]||0!==r[ln])?on:r[sn]<0||r[sn]>59?sn:r[an]<0||r[an]>59?an:r[ln]<0||r[ln]>999?ln:-1,u(e)._overflowDayOfYear&&(tn>t||t>nn)&&(t=nn),u(e).overflow=t),e}function X(t){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function Z(e,t){var r=!0,n=e+"\n"+(new Error).stack;return s(function(){return r&&(X(n),r=!1),t.apply(this,arguments)},t)}function J(e,t){hn[e]||(X(t),hn[e]=!0)}function ee(e){var t,r,n=e._i,i=dn.exec(n);if(i){for(u(e).iso=!0,t=0,r=fn.length;r>t;t++)if(fn[t][1].exec(n)){e._f=fn[t][0]+(i[6]||" ");break}for(t=0,r=pn.length;r>t;t++)if(pn[t][1].exec(n)){e._f+=pn[t][0];break}n.match(Qr)&&(e._f+="Z"),be(e)}else e._isValid=!1}function te(t){var r=mn.exec(t._i);return null!==r?void(t._d=new Date(+r[1])):(ee(t),void(t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))))}function re(e,t,r,n,i,o,s){var a=new Date(e,t,r,n,i,o,s);return 1970>e&&a.setFullYear(e),a}function ne(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function ie(e){return oe(e)?366:365}function oe(e){return e%4===0&&e%100!==0||e%400===0}function se(){return oe(this.year())}function ae(e,t,r){var n,i=r-t,o=r-e.day();return o>i&&(o-=7),i-7>o&&(o+=7),n=Te(e).add(o,"d"),{week:Math.ceil(n.dayOfYear()/7),year:n.year()}}function le(e){return ae(e,this._week.dow,this._week.doy).week}function ue(){return this._week.dow}function ce(){return this._week.doy}function he(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function de(e){var t=ae(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function fe(e,t,r,n,i){var o,s,a=ne(e,0,1).getUTCDay();return a=0===a?7:a,r=null!=r?r:i,o=i-a+(a>n?7:0)-(i>a?7:0),s=7*(t-1)+(r-i)+o+1,{year:s>0?e:e-1,dayOfYear:s>0?s:ie(e-1)+s}}function pe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function me(e,t,r){return null!=e?e:null!=t?t:r}function ge(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ve(e){var t,r,n,i,o=[];if(!e._d){for(n=ge(e),e._w&&null==e._a[nn]&&null==e._a[rn]&&ye(e),e._dayOfYear&&(i=me(e._a[tn],n[tn]),e._dayOfYear>ie(i)&&(u(e)._overflowDayOfYear=!0),r=ne(i,0,e._dayOfYear),e._a[rn]=r.getUTCMonth(),e._a[nn]=r.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=o[t]=n[t];for(;7>t;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[on]&&0===e._a[sn]&&0===e._a[an]&&0===e._a[ln]&&(e._nextDay=!0,e._a[on]=0),e._d=(e._useUTC?ne:re).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[on]=24)}}function ye(e){var t,r,n,i,o,s,a;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,s=4,r=me(t.GG,e._a[tn],ae(Te(),1,4).year),n=me(t.W,1),i=me(t.E,1)):(o=e._locale._week.dow,s=e._locale._week.doy,r=me(t.gg,e._a[tn],ae(Te(),o,s).year),n=me(t.w,1),null!=t.d?(i=t.d,o>i&&++n):i=null!=t.e?t.e+o:o),a=fe(r,n,i,s,o),e._a[tn]=a.year,e._dayOfYear=a.dayOfYear}function be(t){if(t._f===e.ISO_8601)return void ee(t);t._a=[],u(t).empty=!0;var r,n,i,o,s,a=""+t._i,l=a.length,c=0;for(i=L(t._f,t._locale).match(Fr)||[],r=0;r<i.length;r++)o=i[r],n=(a.match(j(o,t))||[])[0],n&&(s=a.substr(0,a.indexOf(n)),s.length>0&&u(t).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),c+=n.length),jr[o]?(n?u(t).empty=!1:u(t).unusedTokens.push(o),H(o,n,t)):t._strict&&!n&&u(t).unusedTokens.push(o);u(t).charsLeftOver=l-c,a.length>0&&u(t).unusedInput.push(a),u(t).bigHour===!0&&t._a[on]<=12&&t._a[on]>0&&(u(t).bigHour=void 0),t._a[on]=_e(t._locale,t._a[on],t._meridiem),ve(t),Q(t)}function _e(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?(n=e.isPM(r),n&&12>t&&(t+=12),n||12!==t||(t=0),t):t}function we(e){var t,r,n,i,o;if(0===e._f.length)return u(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=d({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],be(t),c(t)&&(o+=u(t).charsLeftOver,o+=10*u(t).unusedTokens.length,u(t).score=o,(null==n||n>o)&&(n=o,r=t));s(e,r||t)}function xe(e){if(!e._d){var t=T(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],ve(e)}}function Ce(e){var t,i=e._i,o=e._f;return e._locale=e._locale||C(e._l),null===i||void 0===o&&""===i?h({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),p(i)?new f(Q(i)):(r(o)?we(e):o?be(e):n(i)?e._d=i:Ee(e),t=new f(Q(e)),t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t))}function Ee(t){var o=t._i;void 0===o?t._d=new Date:n(o)?t._d=new Date(+o):"string"==typeof o?te(t):r(o)?(t._a=i(o.slice(0),function(e){return parseInt(e,10)}),ve(t)):"object"==typeof o?xe(t):"number"==typeof o?t._d=new Date(o):e.createFromInputFallback(t)}function Se(e,t,r,n,i){var o={};return"boolean"==typeof r&&(n=r,r=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=r,o._i=e,o._f=t,o._strict=n,Ce(o)}function Te(e,t,r,n){return Se(e,t,r,n,!1)}function Ae(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Te();for(n=t[0],i=1;i<t.length;++i)t[i][e](n)&&(n=t[i]);return n}function ke(){var e=[].slice.call(arguments,0);return Ae("isBefore",e)}function Pe(){var e=[].slice.call(arguments,0);return Ae("isAfter",e)}function Oe(e){var t=T(e),r=t.year||0,n=t.quarter||0,i=t.month||0,o=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*u+6e4*l+36e5*a,this._days=+s+7*o,this._months=+i+3*n+12*r,this._data={},this._locale=C(),this._bubble()}function Re(e){return e instanceof Oe}function Ne(e,t){N(e,0,0,function(){var e=this.utcOffset(),r="+";return 0>e&&(e=-e,r="-"),r+R(~~(e/60),2)+t+R(~~e%60,2)})}function Me(e){var t=(e||"").match(Qr)||[],r=t[t.length-1]||[],n=(r+"").match(_n)||["-",0,0],i=+(60*n[1])+m(n[2]);return"+"===n[0]?i:-i}function De(t,r){var i,o;return r._isUTC?(i=r.clone(),o=(p(t)||n(t)?+t:+Te(t))-+i,i._d.setTime(+i._d+o),e.updateOffset(i,!1),i):Te(t).local()}function Fe(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Le(t,r){var n,i=this._offset||0;return null!=t?("string"==typeof t&&(t=Me(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&r&&(n=Fe(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==t&&(!r||this._changeInProgress?Ze(this,Ke(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Fe(this)}function Ie(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function je(e){return this.utcOffset(0,e)}function ze(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Fe(this),"m")),this}function Ve(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Me(this._i)),this}function Be(e){return e=e?Te(e).utcOffset():0,(this.utcOffset()-e)%60===0}function He(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function We(){if(this._a){var e=this._isUTC?a(this._a):Te(this._a);return this.isValid()&&g(this._a,e.toArray())>0}return!1}function $e(){return!this._isUTC}function qe(){return this._isUTC}function Ue(){return this._isUTC&&0===this._offset}function Ke(e,t){var r,n,i,s=e,a=null;return Re(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(s={},t?s[t]=e:s.milliseconds=e):(a=wn.exec(e))?(r="-"===a[1]?-1:1,s={y:0,d:m(a[nn])*r,h:m(a[on])*r,m:m(a[sn])*r,s:m(a[an])*r,ms:m(a[ln])*r}):(a=xn.exec(e))?(r="-"===a[1]?-1:1,s={y:Ye(a[2],r),M:Ye(a[3],r),d:Ye(a[4],r),h:Ye(a[5],r),m:Ye(a[6],r),s:Ye(a[7],r),w:Ye(a[8],r)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=Qe(Te(s.from),Te(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Oe(s),Re(e)&&o(e,"_locale")&&(n._locale=e._locale),n}function Ye(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Ge(e,t){var r={milliseconds:0,months:0};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Qe(e,t){var r;return t=De(t,e),e.isBefore(t)?r=Ge(e,t):(r=Ge(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r}function Xe(e,t){return function(r,n){var i,o;return null===n||isNaN(+n)||(J(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),o=r,r=n,n=o),r="string"==typeof r?+r:r,i=Ke(r,n),Ze(this,i,e),this}}function Ze(t,r,n,i){var o=r._milliseconds,s=r._days,a=r._months;i=null==i?!0:i,o&&t._d.setTime(+t._d+o*n),s&&P(t,"Date",k(t,"Date")+s*n),a&&K(t,k(t,"Month")+a*n),i&&e.updateOffset(t,s||a)}function Je(e){var t=e||Te(),r=De(t,this).startOf("day"),n=this.diff(r,"days",!0),i=-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse";return this.format(this.localeData().calendar(i,this,Te(t)))}function et(){return new f(this)}function tt(e,t){var r;return t=S("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=p(e)?e:Te(e),+this>+e):(r=p(e)?+e:+Te(e),r<+this.clone().startOf(t))}function rt(e,t){var r;return t=S("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=p(e)?e:Te(e),+e>+this):(r=p(e)?+e:+Te(e),+this.clone().endOf(t)<r)}function nt(e,t,r){return this.isAfter(e,r)&&this.isBefore(t,r)}function it(e,t){var r;return t=S(t||"millisecond"),"millisecond"===t?(e=p(e)?e:Te(e),+this===+e):(r=+Te(e),+this.clone().startOf(t)<=r&&r<=+this.clone().endOf(t))}function ot(e){return 0>e?Math.ceil(e):Math.floor(e)}function st(e,t,r){var n,i,o=De(e,this),s=6e4*(o.utcOffset()-this.utcOffset());return t=S(t),"year"===t||"month"===t||"quarter"===t?(i=at(this,o),"quarter"===t?i/=3:"year"===t&&(i/=12)):(n=this-o,i="second"===t?n/1e3:"minute"===t?n/6e4:"hour"===t?n/36e5:"day"===t?(n-s)/864e5:"week"===t?(n-s)/6048e5:n),r?i:ot(i)}function at(e,t){var r,n,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return 0>t-o?(r=e.clone().add(i-1,"months"),n=(t-o)/(o-r)):(r=e.clone().add(i+1,"months"),n=(t-o)/(r-o)),-(i+n)}function lt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ut(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():F(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):F(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ct(t){var r=F(this,t||e.defaultFormat);return this.localeData().postformat(r)}function ht(e,t){return this.isValid()?Ke({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dt(e){return this.from(Te(),e)}function ft(e,t){return this.isValid()?Ke({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pt(e){return this.to(Te(),e)}function mt(e){var t;return void 0===e?this._locale._abbr:(t=C(e),null!=t&&(this._locale=t),this)}function gt(){return this._locale}function vt(e){switch(e=S(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function yt(e){return e=S(e),void 0===e||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")}function bt(){return+this._d-6e4*(this._offset||0)}function _t(){return Math.floor(+this/1e3)}function wt(){return this._offset?new Date(+this):this._d}function xt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ct(){return c(this)}function Et(){return s({},u(this))}function St(){return u(this).overflow}function Tt(e,t){N(0,[e,e.length],0,t)}function At(e,t,r){return ae(Te([e,11,31+t-r]),t,r).week}function kt(e){var t=ae(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")}function Pt(e){var t=ae(this,1,4).year;return null==e?t:this.add(e-t,"y")}function Ot(){return At(this.year(),1,4)}function Rt(){var e=this.localeData()._week;return At(this.year(),e.dow,e.doy)}function Nt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Mt(e,t){if("string"==typeof e)if(isNaN(e)){if(e=t.weekdaysParse(e),"number"!=typeof e)return null}else e=parseInt(e,10);return e}function Dt(e){return this._weekdays[e.day()]}function Ft(e){return this._weekdaysShort[e.day()]}function Lt(e){return this._weekdaysMin[e.day()]}function It(e){var t,r,n;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(r=Te([2e3,1]).day(t),n="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[t]=new RegExp(n.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t}function jt(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Mt(e,this.localeData()),this.add(e-t,"d")):t}function zt(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)}function Bt(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ht(e,t){return t._meridiemParse}function Wt(e){return"p"===(e+"").toLowerCase().charAt(0)}function $t(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}function qt(e){N(0,[e,3],0,"millisecond")}function Ut(){return this._isUTC?"UTC":""}function Kt(){return this._isUTC?"Coordinated Universal Time":""}function Yt(e){return Te(1e3*e)}function Gt(){return Te.apply(null,arguments).parseZone()}function Qt(e,t,r){var n=this._calendar[e];return"function"==typeof n?n.call(t,r):n}function Xt(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t}function Zt(){return this._invalidDate}function Jt(e){return this._ordinal.replace("%d",e)}function er(e){return e}function tr(e,t,r,n){var i=this._relativeTime[r];return"function"==typeof i?i(e,t,r,n):i.replace(/%d/i,e)}function rr(e,t){var r=this._relativeTime[e>0?"future":"past"];return"function"==typeof r?r(t):r.replace(/%s/i,t)}function nr(e){var t,r;for(r in e)t=e[r],"function"==typeof t?this[r]=t:this["_"+r]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function ir(e,t,r,n){var i=C(),o=a().set(n,t);return i[r](o,e)}function or(e,t,r,n,i){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return ir(e,t,r,i);var o,s=[];for(o=0;n>o;o++)s[o]=ir(e,o,r,i);return s}function sr(e,t){return or(e,t,"months",12,"month")}function ar(e,t){return or(e,t,"monthsShort",12,"month")}function lr(e,t){return or(e,t,"weekdays",7,"day")}function ur(e,t){return or(e,t,"weekdaysShort",7,"day")}function cr(e,t){return or(e,t,"weekdaysMin",7,"day")}function hr(){var e=this._data;return this._milliseconds=$n(this._milliseconds),this._days=$n(this._days),this._months=$n(this._months),e.milliseconds=$n(e.milliseconds),e.seconds=$n(e.seconds),e.minutes=$n(e.minutes),e.hours=$n(e.hours),e.months=$n(e.months),e.years=$n(e.years),this}function dr(e,t,r,n){var i=Ke(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function fr(e,t){return dr(this,e,t,1)}function pr(e,t){return dr(this,e,t,-1)}function mr(){var e,t,r,n=this._milliseconds,i=this._days,o=this._months,s=this._data,a=0;return s.milliseconds=n%1e3,e=ot(n/1e3),s.seconds=e%60,t=ot(e/60),s.minutes=t%60,r=ot(t/60),s.hours=r%24,i+=ot(r/24),a=ot(gr(i)),i-=ot(vr(a)),o+=ot(i/30),i%=30,a+=ot(o/12),o%=12,s.days=i,s.months=o,s.years=a,this}function gr(e){return 400*e/146097}function vr(e){return 146097*e/400}function yr(e){var t,r,n=this._milliseconds;if(e=S(e),"month"===e||"year"===e)return t=this._days+n/864e5,r=this._months+12*gr(t),"month"===e?r:r/12;switch(t=this._days+Math.round(vr(this._months/12)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function br(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12)}function _r(e){return function(){return this.as(e)}}function wr(e){return e=S(e),this[e+"s"]()}function xr(e){return function(){return this._data[e]}}function Cr(){return ot(this.days()/7)}function Er(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}function Sr(e,t,r){var n=Ke(e).abs(),i=si(n.as("s")),o=si(n.as("m")),s=si(n.as("h")),a=si(n.as("d")),l=si(n.as("M")),u=si(n.as("y")),c=i<ai.s&&["s",i]||1===o&&["m"]||o<ai.m&&["mm",o]||1===s&&["h"]||s<ai.h&&["hh",s]||1===a&&["d"]||a<ai.d&&["dd",a]||1===l&&["M"]||l<ai.M&&["MM",l]||1===u&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=r,Er.apply(null,c)}function Tr(e,t){return void 0===ai[e]?!1:void 0===t?ai[e]:(ai[e]=t,!0)}function Ar(e){var t=this.localeData(),r=Sr(this,!e,t);return e&&(r=t.pastFuture(+this,r)),t.postformat(r)}function kr(){var e=li(this.years()),t=li(this.months()),r=li(this.days()),n=li(this.hours()),i=li(this.minutes()),o=li(this.seconds()+this.milliseconds()/1e3),s=this.asSeconds();return s?(0>s?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(r?r+"D":"")+(n||i||o?"T":"")+(n?n+"H":"")+(i?i+"M":"")+(o?o+"S":""):"P0D"}var Pr,Or,Rr=e.momentProperties=[],Nr=!1,Mr={},Dr={},Fr=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Lr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ir={},jr={},zr=/\d/,Vr=/\d\d/,Br=/\d{3}/,Hr=/\d{4}/,Wr=/[+-]?\d{6}/,$r=/\d\d?/,qr=/\d{1,3}/,Ur=/\d{1,4}/,Kr=/[+-]?\d{1,6}/,Yr=/\d+/,Gr=/[+-]?\d+/,Qr=/Z|[+-]\d\d:?\d\d/gi,Xr=/[+-]?\d+(\.\d{1,3})?/,Zr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Jr={},en={},tn=0,rn=1,nn=2,on=3,sn=4,an=5,ln=6;N("M",["MM",2],"Mo",function(){
21
21
  return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),E("month","M"),I("M",$r),I("MM",$r,Vr),I("MMM",Zr),I("MMMM",Zr),V(["M","MM"],function(e,t){t[rn]=m(e)-1}),V(["MMM","MMMM"],function(e,t,r,n){var i=r._locale.monthsParse(e,n,r._strict);null!=i?t[rn]=i:u(r).invalidMonth=e});var un="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),cn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),hn={};e.suppressDeprecationWarnings=!1;var dn=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],pn=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],mn=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=Z("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),E("year","y"),I("Y",Gr),I("YY",$r,Vr),I("YYYY",Ur,Hr),I("YYYYY",Kr,Wr),I("YYYYYY",Kr,Wr),V(["YYYY","YYYYY","YYYYYY"],tn),V("YY",function(t,r){r[tn]=e.parseTwoDigitYear(t)}),e.parseTwoDigitYear=function(e){return m(e)+(m(e)>68?1900:2e3)};var gn=A("FullYear",!1);N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),I("w",$r),I("ww",$r,Vr),I("W",$r),I("WW",$r,Vr),B(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=m(e)});var vn={dow:0,doy:6};N("DDD",["DDDD",3],"DDDo","dayOfYear"),E("dayOfYear","DDD"),I("DDD",qr),I("DDDD",Br),V(["DDD","DDDD"],function(e,t,r){r._dayOfYear=m(e)}),e.ISO_8601=function(){};var yn=Z("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=Te.apply(null,arguments);return this>e?this:e}),bn=Z("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=Te.apply(null,arguments);return e>this?this:e});Ne("Z",":"),Ne("ZZ",""),I("Z",Qr),I("ZZ",Qr),V(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Me(e)});var _n=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var wn=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,xn=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Ke.fn=Oe.prototype;var Cn=Xe(1,"add"),En=Xe(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Sn=Z("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Tt("gggg","weekYear"),Tt("ggggg","weekYear"),Tt("GGGG","isoWeekYear"),Tt("GGGGG","isoWeekYear"),E("weekYear","gg"),E("isoWeekYear","GG"),I("G",Gr),I("g",Gr),I("GG",$r,Vr),I("gg",$r,Vr),I("GGGG",Ur,Hr),I("gggg",Ur,Hr),I("GGGGG",Kr,Wr),I("ggggg",Kr,Wr),B(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=m(e)}),B(["gg","GG"],function(t,r,n,i){r[i]=e.parseTwoDigitYear(t)}),N("Q",0,0,"quarter"),E("quarter","Q"),I("Q",zr),V("Q",function(e,t){t[rn]=3*(m(e)-1)}),N("D",["DD",2],"Do","date"),E("date","D"),I("D",$r),I("DD",$r,Vr),I("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),V(["D","DD"],nn),V("Do",function(e,t){t[nn]=m(e.match($r)[0],10)});var Tn=A("Date",!0);N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),I("d",$r),I("e",$r),I("E",$r),I("dd",Zr),I("ddd",Zr),I("dddd",Zr),B(["dd","ddd","dddd"],function(e,t,r){var n=r._locale.weekdaysParse(e);null!=n?t.d=n:u(r).invalidWeekday=e}),B(["d","e","E"],function(e,t,r,n){t[n]=m(e)});var An="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),kn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pn="Su_Mo_Tu_We_Th_Fr_Sa".split("_");N("H",["HH",2],0,"hour"),N("h",["hh",2],0,function(){return this.hours()%12||12}),Bt("a",!0),Bt("A",!1),E("hour","h"),I("a",Ht),I("A",Ht),I("H",$r),I("h",$r),I("HH",$r,Vr),I("hh",$r,Vr),V(["H","HH"],on),V(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),V(["h","hh"],function(e,t,r){t[on]=m(e),u(r).bigHour=!0});var On=/[ap]\.?m?\.?/i,Rn=A("Hours",!0);N("m",["mm",2],0,"minute"),E("minute","m"),I("m",$r),I("mm",$r,Vr),V(["m","mm"],sn);var Nn=A("Minutes",!1);N("s",["ss",2],0,"second"),E("second","s"),I("s",$r),I("ss",$r,Vr),V(["s","ss"],an);var Mn=A("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),qt("SSS"),qt("SSSS"),E("millisecond","ms"),I("S",qr,zr),I("SS",qr,Vr),I("SSS",qr,Br),I("SSSS",Yr),V(["S","SS","SSS","SSSS"],function(e,t){t[ln]=m(1e3*("0."+e))});var Dn=A("Milliseconds",!1);N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var Fn=f.prototype;Fn.add=Cn,Fn.calendar=Je,Fn.clone=et,Fn.diff=st,Fn.endOf=yt,Fn.format=ct,Fn.from=ht,Fn.fromNow=dt,Fn.to=ft,Fn.toNow=pt,Fn.get=O,Fn.invalidAt=St,Fn.isAfter=tt,Fn.isBefore=rt,Fn.isBetween=nt,Fn.isSame=it,Fn.isValid=Ct,Fn.lang=Sn,Fn.locale=mt,Fn.localeData=gt,Fn.max=bn,Fn.min=yn,Fn.parsingFlags=Et,Fn.set=O,Fn.startOf=vt,Fn.subtract=En,Fn.toArray=xt,Fn.toDate=wt,Fn.toISOString=ut,Fn.toJSON=ut,Fn.toString=lt,Fn.unix=_t,Fn.valueOf=bt,Fn.year=gn,Fn.isLeapYear=se,Fn.weekYear=kt,Fn.isoWeekYear=Pt,Fn.quarter=Fn.quarters=Nt,Fn.month=Y,Fn.daysInMonth=G,Fn.week=Fn.weeks=he,Fn.isoWeek=Fn.isoWeeks=de,Fn.weeksInYear=Rt,Fn.isoWeeksInYear=Ot,Fn.date=Tn,Fn.day=Fn.days=jt,Fn.weekday=zt,Fn.isoWeekday=Vt,Fn.dayOfYear=pe,Fn.hour=Fn.hours=Rn,Fn.minute=Fn.minutes=Nn,Fn.second=Fn.seconds=Mn,Fn.millisecond=Fn.milliseconds=Dn,Fn.utcOffset=Le,Fn.utc=je,Fn.local=ze,Fn.parseZone=Ve,Fn.hasAlignedHourOffset=Be,Fn.isDST=He,Fn.isDSTShifted=We,Fn.isLocal=$e,Fn.isUtcOffset=qe,Fn.isUtc=Ue,Fn.isUTC=Ue,Fn.zoneAbbr=Ut,Fn.zoneName=Kt,Fn.dates=Z("dates accessor is deprecated. Use date instead.",Tn),Fn.months=Z("months accessor is deprecated. Use month instead",Y),Fn.years=Z("years accessor is deprecated. Use year instead",gn),Fn.zone=Z("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Ie);var Ln=Fn,In={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},jn={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},zn="Invalid date",Vn="%d",Bn=/\d{1,2}/,Hn={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Wn=v.prototype;Wn._calendar=In,Wn.calendar=Qt,Wn._longDateFormat=jn,Wn.longDateFormat=Xt,Wn._invalidDate=zn,Wn.invalidDate=Zt,Wn._ordinal=Vn,Wn.ordinal=Jt,Wn._ordinalParse=Bn,Wn.preparse=er,Wn.postformat=er,Wn._relativeTime=Hn,Wn.relativeTime=tr,Wn.pastFuture=rr,Wn.set=nr,Wn.months=$,Wn._months=un,Wn.monthsShort=q,Wn._monthsShort=cn,Wn.monthsParse=U,Wn.week=le,Wn._week=vn,Wn.firstDayOfYear=ce,Wn.firstDayOfWeek=ue,Wn.weekdays=Dt,Wn._weekdays=An,Wn.weekdaysMin=Lt,Wn._weekdaysMin=Pn,Wn.weekdaysShort=Ft,Wn._weekdaysShort=kn,Wn.weekdaysParse=It,Wn.isPM=Wt,Wn._meridiemParse=On,Wn.meridiem=$t,w("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=1===m(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r}}),e.lang=Z("moment.lang is deprecated. Use moment.locale instead.",w),e.langData=Z("moment.langData is deprecated. Use moment.localeData instead.",C);var $n=Math.abs,qn=_r("ms"),Un=_r("s"),Kn=_r("m"),Yn=_r("h"),Gn=_r("d"),Qn=_r("w"),Xn=_r("M"),Zn=_r("y"),Jn=xr("milliseconds"),ei=xr("seconds"),ti=xr("minutes"),ri=xr("hours"),ni=xr("days"),ii=xr("months"),oi=xr("years"),si=Math.round,ai={s:45,m:45,h:22,d:26,M:11},li=Math.abs,ui=Oe.prototype;ui.abs=hr,ui.add=fr,ui.subtract=pr,ui.as=yr,ui.asMilliseconds=qn,ui.asSeconds=Un,ui.asMinutes=Kn,ui.asHours=Yn,ui.asDays=Gn,ui.asWeeks=Qn,ui.asMonths=Xn,ui.asYears=Zn,ui.valueOf=br,ui._bubble=mr,ui.get=wr,ui.milliseconds=Jn,ui.seconds=ei,ui.minutes=ti,ui.hours=ri,ui.days=ni,ui.weeks=Cr,ui.months=ii,ui.years=oi,ui.humanize=Ar,ui.toISOString=kr,ui.toString=kr,ui.toJSON=kr,ui.locale=mt,ui.localeData=gt,ui.toIsoString=Z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kr),ui.lang=Sn,N("X",0,0,"unix"),N("x",0,0,"valueOf"),I("x",Gr),I("X",Xr),V("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e,10))}),V("x",function(e,t,r){r._d=new Date(m(e))}),e.version="2.10.3",t(Te),e.fn=Ln,e.min=ke,e.max=Pe,e.utc=a,e.unix=Yt,e.months=sr,e.isDate=n,e.locale=w,e.invalid=h,e.duration=Ke,e.isMoment=p,e.weekdays=lr,e.parseZone=Gt,e.localeData=C,e.isDuration=Re,e.monthsShort=ar,e.weekdaysMin=cr,e.defineLocale=x,e.weekdaysShort=ur,e.normalizeUnits=S,e.relativeTimeThreshold=Tr;var ci=e;return ci}),function(){function e(e,t){define(e,[],function(){"use strict";return t})}e("moment",{"default":moment})}(),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var r in t)if(void 0!==e.style[r])return{end:t[r]};return!1}e.fn.emulateTransitionEnd=function(t){var r=!1,n=this;e(this).one("bsTransitionEnd",function(){r=!0});var i=function(){r||e(n).trigger(e.support.transition.end)};return setTimeout(i,t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)})}var r='[data-dismiss="alert"]',n=function(t){e(t).on("click",r,this.close)};n.VERSION="3.3.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){function r(){s.detach().trigger("closed.bs.alert").remove()}var i=e(this),o=i.attr("data-target");o||(o=i.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var s=e(o);t&&t.preventDefault(),s.length||(s=i.closest(".alert")),s.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),e.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r())};var i=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",r,n.prototype.close)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.button"),o="object"==typeof t&&t;i||n.data("bs.button",i=new r(this,o)),"toggle"==t?i.toggle():t&&i.setState(t)})}var r=function(t,n){this.$element=e(t),this.options=e.extend({},r.DEFAULTS,n),this.isLoading=!1};r.VERSION="3.3.1",r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(t){var r="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[i]()),setTimeout(e.proxy(function(){n[i](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,n.removeClass(r).removeAttr(r))},this),0)},r.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var r=this.$element.find("input");"radio"==r.prop("type")&&(r.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&r.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));e&&this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=t,e.fn.button.Constructor=r,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(r){var n=e(r.target);n.hasClass("btn")||(n=n.closest(".btn")),t.call(n,"toggle"),r.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.carousel"),o=e.extend({},r.DEFAULTS,n.data(),"object"==typeof t&&t),s="string"==typeof t?t:o.slide;i||n.data("bs.carousel",i=new r(this,o)),"number"==typeof t?i.to(t):s?i[s]():o.interval&&i.pause().cycle()})}var r=function(t,r){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=r,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};r.VERSION="3.3.1",r.TRANSITION_DURATION=600,r.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},r.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},r.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},r.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},r.prototype.getItemForDirection=function(e,t){var r="prev"==e?-1:1,n=this.getItemIndex(t),i=(n+r)%this.$items.length;return this.$items.eq(i)},r.prototype.to=function(e){var t=this,r=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):r==e?this.pause().cycle():this.slide(e>r?"next":"prev",this.$items.eq(e))},r.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},r.prototype.next=function(){return this.sliding?void 0:this.slide("next")},r.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},r.prototype.slide=function(t,n){var i=this.$element.find(".item.active"),o=n||this.getItemForDirection(t,i),s=this.interval,a="next"==t?"left":"right",l="next"==t?"first":"last",u=this;if(!o.length){if(!this.options.wrap)return;o=this.$element.find(".item")[l]()}if(o.hasClass("active"))return this.sliding=!1;var c=o[0],h=e.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(h),!h.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var f=e.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",function(){o.removeClass([t,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout(function(){u.$element.trigger(f)},0)}).emulateTransitionEnd(r.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(f)),s&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=r,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var i=function(r){var n,i=e(this),o=e(i.attr("data-target")||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var s=e.extend({},o.data(),i.data()),a=i.attr("data-slide-to");a&&(s.interval=!1),t.call(o,s),a&&o.data("bs.carousel").to(a),r.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var r=e(this);t.call(r,r.data())})})}(jQuery),+function(e){"use strict";function t(t){var r,n=t.attr("data-target")||(r=t.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"");return e(n)}function r(t){return this.each(function(){var r=e(this),i=r.data("bs.collapse"),o=e.extend({},n.DEFAULTS,r.data(),"object"==typeof t&&t);!i&&o.toggle&&"show"==t&&(o.toggle=!1),i||r.data("bs.collapse",i=new n(this,o)),"string"==typeof t&&i[t]()})}var n=function(t,r){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,r),this.$trigger=e(this.options.trigger).filter('[href="#'+t.id+'"], [data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.1",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},n.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,i=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(i&&i.length&&(t=i.data("bs.collapse"),t&&t.transitioning))){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),t||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var l=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[s](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(n.TRANSITION_DURATION):i.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(r,n){var i=e(n);this.addAriaAndCollapsedClass(t(i),i)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(e,t){var r=e.hasClass("in");e.attr("aria-expanded",r),t.toggleClass("collapsed",!r).attr("aria-expanded",r)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=n,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var i=e(this);i.attr("data-target")||n.preventDefault();var o=t(i),s=o.data("bs.collapse"),a=s?"toggle":e.extend({},i.data(),{trigger:this});r.call(o,a)})}(jQuery),+function(e){"use strict";function t(t){t&&3===t.which||(e(i).remove(),e(o).each(function(){var n=e(this),i=r(n),o={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=e.Event("hide.bs.dropdown",o)),t.isDefaultPrevented()||(n.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",o)))}))}function r(t){var r=t.attr("data-target");r||(r=t.attr("href"),r=r&&/#[A-Za-z]/.test(r)&&r.replace(/.*(?=#[^\s]*$)/,""));var n=r&&e(r);return n&&n.length?n:t.parent()}function n(t){return this.each(function(){var r=e(this),n=r.data("bs.dropdown");n||r.data("bs.dropdown",n=new s(this)),"string"==typeof t&&n[t].call(r)})}var i=".dropdown-backdrop",o='[data-toggle="dropdown"]',s=function(t){e(t).on("click.bs.dropdown",this.toggle)};s.VERSION="3.3.1",s.prototype.toggle=function(n){var i=e(this);if(!i.is(".disabled, :disabled")){var o=r(i),s=o.hasClass("open");if(t(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&e('<div class="dropdown-backdrop"/>').insertAfter(e(this)).on("click",t);var a={relatedTarget:this};if(o.trigger(n=e.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},s.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var n=e(this);if(t.preventDefault(),t.stopPropagation(),!n.is(".disabled, :disabled")){var i=r(n),s=i.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&i.find(o).trigger("focus"),n.trigger("click");var a=" li:not(.divider):visible a",l=i.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var u=l.index(t.target);38==t.which&&u>0&&u--,40==t.which&&u<l.length-1&&u++,~u||(u=0),l.eq(u).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=n,e.fn.dropdown.Constructor=s,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",t).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",o,s.prototype.toggle).on("keydown.bs.dropdown.data-api",o,s.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',s.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',s.prototype.keydown)}(jQuery),+function(e){"use strict";function t(t,n){return this.each(function(){var i=e(this),o=i.data("bs.modal"),s=e.extend({},r.DEFAULTS,i.data(),"object"==typeof t&&t);o||i.data("bs.modal",o=new r(this,s)),"string"==typeof t?o[t](n):s.show&&o.show(n)})}var r=function(t,r){this.options=r,this.$body=e(document.body),this.$element=e(t),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};r.VERSION="3.3.1",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},r.prototype.show=function(t){var n=this,i=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.backdrop(function(){var i=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.options.backdrop&&n.adjustBackdrop(),n.adjustDialog(),i&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:t});i?n.$element.find(".modal-dialog").one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(r.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)}))},r.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var n=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&i;if(this.$backdrop=e('<div class="modal-backdrop '+i+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",e.proxy(function(e){e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){n.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):s()}else t&&t()},r.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop(),this.adjustDialog()},r.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)},r.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},r.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},r.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var n=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=r,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(r){var n=e(this),i=n.attr("href"),o=e(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=o.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},o.data(),n.data());n.is("a")&&r.preventDefault(),o.one("show.bs.modal",function(e){e.isDefaultPrevented()||o.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),t.call(o,s,this)})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.tooltip"),o="object"==typeof t&&t,s=o&&o.selector;(i||"destroy"!=t)&&(s?(i||n.data("bs.tooltip",i={}),i[s]||(i[s]=new r(this,o))):i||n.data("bs.tooltip",i=new r(this,o)),"string"==typeof t&&i[t]())})}var r=function(e,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",e,t)};r.VERSION="3.3.1",r.TRANSITION_DURATION=150,r.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},r.prototype.init=function(t,r,n){this.enabled=!0,this.type=t,this.$element=e(r),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&e(this.options.viewport.selector||this.options.viewport);for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},r.prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},r.prototype.getDelegateOptions=function(){var t={},r=this.getDefaults();return this._options&&e.each(this._options,function(e,n){r[e]!=n&&(t[e]=n)}),t},r.prototype.enter=function(t){var r=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return r&&r.$tip&&r.$tip.is(":visible")?void(r.hoverState="in"):(r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r)),clearTimeout(r.timeout),r.hoverState="in",r.options.delay&&r.options.delay.show?void(r.timeout=setTimeout(function(){"in"==r.hoverState&&r.show()},r.options.delay.show)):r.show())},r.prototype.leave=function(t){var r=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r)),clearTimeout(r.timeout),r.hoverState="out",r.options.delay&&r.options.delay.hide?void(r.timeout=setTimeout(function(){"out"==r.hoverState&&r.hide()},r.options.delay.hide)):r.hide()},r.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var i=this,o=this.tip(),s=this.getUID(this.type);this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(a);
22
- u&&(a=a.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var c=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(u){var f=a,p=this.options.container?e(this.options.container):this.$element.parent(),m=this.getPosition(p);a="bottom"==a&&c.bottom+d>m.bottom?"top":"top"==a&&c.top-d<m.top?"bottom":"right"==a&&c.right+h>m.width?"left":"left"==a&&c.left-h<m.left?"right":a,o.removeClass(f).addClass(a)}var g=this.getCalculatedOffset(a,c,h,d);this.applyPlacement(g,a);var v=function(){var e=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==e&&i.leave(i)};e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",v).emulateTransitionEnd(r.TRANSITION_DURATION):v()}},r.prototype.applyPlacement=function(t,r){var n=this.tip(),i=n[0].offsetWidth,o=n[0].offsetHeight,s=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top=t.top+s,t.left=t.left+a,e.offset.setOffset(n[0],e.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),n.addClass("in");var l=n[0].offsetWidth,u=n[0].offsetHeight;"top"==r&&u!=o&&(t.top=t.top+o-u);var c=this.getViewportAdjustedDelta(r,t,l,u);c.left?t.left+=c.left:t.top+=c.top;var h=/top|bottom/.test(r),d=h?2*c.left-i+l:2*c.top-o+u,f=h?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(d,n[0][f],h)},r.prototype.replaceArrow=function(e,t,r){this.arrow().css(r?"left":"top",50*(1-e/t)+"%").css(r?"top":"left","")},r.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},r.prototype.hide=function(t){function n(){"in"!=i.hoverState&&o.detach(),i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),t&&t()}var i=this,o=this.tip(),s=e.Event("hide.bs."+this.type);return this.$element.trigger(s),s.isDefaultPrevented()?void 0:(o.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(r.TRANSITION_DURATION):n(),this.hoverState=null,this)},r.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},r.prototype.hasContent=function(){return this.getTitle()},r.prototype.getPosition=function(t){t=t||this.$element;var r=t[0],n="BODY"==r.tagName,i=r.getBoundingClientRect();null==i.width&&(i=e.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=n?{top:0,left:0}:t.offset(),s={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},a=n?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},i,s,a,o)},r.prototype.getCalculatedOffset=function(e,t,r,n){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-r/2}:"top"==e?{top:t.top-n,left:t.left+t.width/2-r/2}:"left"==e?{top:t.top+t.height/2-n/2,left:t.left-r}:{top:t.top+t.height/2-n/2,left:t.left+t.width}},r.prototype.getViewportAdjustedDelta=function(e,t,r,n){var i={top:0,left:0};if(!this.$viewport)return i;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var a=t.top-o-s.scroll,l=t.top+o-s.scroll+n;a<s.top?i.top=s.top-a:l>s.top+s.height&&(i.top=s.top+s.height-l)}else{var u=t.left-o,c=t.left+o+r;u<s.left?i.left=s.left-u:c>s.width&&(i.left=s.left+s.width-c)}return i},r.prototype.getTitle=function(){var e,t=this.$element,r=this.options;return e=t.attr("data-original-title")||("function"==typeof r.title?r.title.call(t[0]):r.title)},r.prototype.getUID=function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e));return e},r.prototype.tip=function(){return this.$tip=this.$tip||e(this.options.template)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},r.prototype.enable=function(){this.enabled=!0},r.prototype.disable=function(){this.enabled=!1},r.prototype.toggleEnabled=function(){this.enabled=!this.enabled},r.prototype.toggle=function(t){var r=this;t&&(r=e(t.currentTarget).data("bs."+this.type),r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r))),r.tip().hasClass("in")?r.leave(r):r.enter(r)},r.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type)})};var n=e.fn.tooltip;e.fn.tooltip=t,e.fn.tooltip.Constructor=r,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.popover"),o="object"==typeof t&&t,s=o&&o.selector;(i||"destroy"!=t)&&(s?(i||n.data("bs.popover",i={}),i[s]||(i[s]=new r(this,o))):i||n.data("bs.popover",i=new r(this,o)),"string"==typeof t&&i[t]())})}var r=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.3.1",r.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),r.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),r.prototype.constructor=r,r.prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),r=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof r?"html":"append":"text"](r),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},r.prototype.tip=function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip};var n=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=r,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),+function(e){"use strict";function t(r,n){var i=e.proxy(this.process,this);this.$body=e("body"),this.$scrollElement=e(e(r).is("body")?window:r),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",i),this.refresh(),this.process()}function r(r){return this.each(function(){var n=e(this),i=n.data("bs.scrollspy"),o="object"==typeof r&&r;i||n.data("bs.scrollspy",i=new t(this,o)),"string"==typeof r&&i[r]()})}t.VERSION="3.3.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t="offset",r=0;e.isWindow(this.$scrollElement[0])||(t="position",r=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var n=this;this.$body.find(this.selector).map(function(){var n=e(this),i=n.data("target")||n.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[t]().top+r,i]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,r=this.getScrollHeight(),n=this.options.offset+r-this.$scrollElement.height(),i=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=r&&this.refresh(),t>=n)return s!=(e=o[o.length-1])&&this.activate(e);if(s&&t<i[0])return this.activeTarget=null,this.clear();for(e=i.length;e--;)s!=o[e]&&t>=i[e]&&(!i[e+1]||t<=i[e+1])&&this.activate(o[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=e.fn.scrollspy;e.fn.scrollspy=r,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);r.call(t,t.data())})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.tab");i||n.data("bs.tab",i=new r(this)),"string"==typeof t&&i[t]()})}var r=function(t){this.element=e(t)};r.VERSION="3.3.1",r.TRANSITION_DURATION=150,r.prototype.show=function(){var t=this.element,r=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=t.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var i=r.find(".active:last a"),o=e.Event("hide.bs.tab",{relatedTarget:t[0]}),s=e.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),t.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=e(n);this.activate(t.closest("li"),r),this.activate(a,a.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},r.prototype.activate=function(t,n,i){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var s=n.find("> .active"),a=i&&e.support.transition&&(s.length&&s.hasClass("fade")||!!n.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(r.TRANSITION_DURATION):o(),s.removeClass("in")};var n=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=r,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var i=function(r){r.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.affix"),o="object"==typeof t&&t;i||n.data("bs.affix",i=new r(this,o)),"string"==typeof t&&i[t]()})}var r=function(t,n){this.options=e.extend({},r.DEFAULTS,n),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};r.VERSION="3.3.1",r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0,target:window},r.prototype.getState=function(e,t,r,n){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=r&&"top"==this.affixed)return r>i?"top":!1;if("bottom"==this.affixed)return null!=r?i+this.unpin<=o.top?!1:"bottom":e-n>=i+s?!1:"bottom";var a=null==this.affixed,l=a?i:o.top,u=a?s:t;return null!=r&&r>=l?"top":null!=n&&l+u>=e-n?"bottom":!1},r.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(r.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},r.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},r.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),n=this.options.offset,i=n.top,o=n.bottom,s=e("body").height();"object"!=typeof n&&(o=i=n),"function"==typeof i&&(i=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var a=this.getState(s,t,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),u=e.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(r.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-t-o})}};var n=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=r,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var r=e(this),n=r.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),t.call(r,n)})})}(jQuery),function(){"use strict";var e=this,t=e.Chart,r=function(e){this.canvas=e.canvas,this.ctx=e;this.width=e.canvas.width,this.height=e.canvas.height;return this.aspectRatio=this.width/this.height,n.retinaScale(this),this};r.defaults={global:{animation:!0,animationSteps:60,animationEasing:"easeOutQuart",showScale:!0,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleIntegersOnly:!0,scaleBeginAtZero:!1,scaleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",responsive:!1,maintainAspectRatio:!0,showTooltips:!0,customTooltips:!1,tooltipEvents:["mousemove","touchstart","touchmove","mouseout"],tooltipFillColor:"rgba(0,0,0,0.8)",tooltipFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipFontSize:14,tooltipFontStyle:"normal",tooltipFontColor:"#fff",tooltipTitleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipTitleFontSize:14,tooltipTitleFontStyle:"bold",tooltipTitleFontColor:"#fff",tooltipYPadding:6,tooltipXPadding:6,tooltipCaretSize:8,tooltipCornerRadius:6,tooltipXOffset:10,tooltipTemplate:"<%if (label){%><%=label%>: <%}%><%= value %>",multiTooltipTemplate:"<%= value %>",multiTooltipKeyBackground:"#fff",onAnimationProgress:function(){},onAnimationComplete:function(){}}},r.types={};var n=r.helpers={},i=n.each=function(e,t,r){var n=Array.prototype.slice.call(arguments,3);if(e)if(e.length===+e.length){var i;for(i=0;i<e.length;i++)t.apply(r,[e[i],i].concat(n))}else for(var o in e)t.apply(r,[e[o],o].concat(n))},o=n.clone=function(e){var t={};return i(e,function(r,n){e.hasOwnProperty(n)&&(t[n]=r)}),t},s=n.extend=function(e){return i(Array.prototype.slice.call(arguments,1),function(t){i(t,function(r,n){t.hasOwnProperty(n)&&(e[n]=r)})}),e},a=n.merge=function(e,t){var r=Array.prototype.slice.call(arguments,0);return r.unshift({}),s.apply(null,r)},l=n.indexOf=function(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},u=(n.where=function(e,t){var r=[];return n.each(e,function(e){t(e)&&r.push(e)}),r},n.findNextWhere=function(e,t,r){r||(r=-1);for(var n=r+1;n<e.length;n++){var i=e[n];if(t(i))return i}},n.findPreviousWhere=function(e,t,r){r||(r=e.length);for(var n=r-1;n>=0;n--){var i=e[n];if(t(i))return i}},n.inherits=function(e){var t=this,r=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},n=function(){this.constructor=r};return n.prototype=t.prototype,r.prototype=new n,r.extend=u,e&&s(r.prototype,e),r.__super__=t.prototype,r}),c=n.noop=function(){},h=n.uid=function(){var e=0;return function(){return"chart-"+e++}}(),d=n.warn=function(e){window.console&&"function"==typeof window.console.warn&&console.warn(e)},f=n.amd="function"==typeof define&&define.amd,p=n.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},m=n.max=function(e){return Math.max.apply(Math,e)},g=n.min=function(e){return Math.min.apply(Math,e)},v=(n.cap=function(e,t,r){if(p(t)){if(e>t)return t}else if(p(r)&&r>e)return r;return e},n.getDecimalPlaces=function(e){return e%1!==0&&p(e)?e.toString().split(".")[1].length:0}),y=n.radians=function(e){return e*(Math.PI/180)},b=(n.getAngleFromPoint=function(e,t){var r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n),o=2*Math.PI+Math.atan2(n,r);return 0>r&&0>n&&(o+=2*Math.PI),{angle:o,distance:i}},n.aliasPixel=function(e){return e%2===0?0:.5}),_=(n.splineCurve=function(e,t,r,n){var i=Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)),o=Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2)),s=n*i/(i+o),a=n*o/(i+o);return{inner:{x:t.x-s*(r.x-e.x),y:t.y-s*(r.y-e.y)},outer:{x:t.x+a*(r.x-e.x),y:t.y+a*(r.y-e.y)}}},n.calculateOrderOfMagnitude=function(e){return Math.floor(Math.log(e)/Math.LN10)}),w=(n.calculateScaleRange=function(e,t,r,n,i){var o=2,s=Math.floor(t/(1.5*r)),a=o>=s,l=m(e),u=g(e);l===u&&(l+=.5,u>=.5&&!n?u-=.5:l+=.5);for(var c=Math.abs(l-u),h=_(c),d=Math.ceil(l/(1*Math.pow(10,h)))*Math.pow(10,h),f=n?0:Math.floor(u/(1*Math.pow(10,h)))*Math.pow(10,h),p=d-f,v=Math.pow(10,h),y=Math.round(p/v);(y>s||s>2*y)&&!a;)if(y>s)v*=2,y=Math.round(p/v),y%1!==0&&(a=!0);else if(i&&h>=0){if(v/2%1!==0)break;v/=2,y=Math.round(p/v)}else v/=2,y=Math.round(p/v);return a&&(y=o,v=p/y),{steps:y,stepValue:v,min:f,max:f+y*v}},n.template=function(e,t){function r(e,t){var r=/\W/.test(e)?new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+e.replace(/[\r\t\n]/g," ").split("<%").join(" ").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split(" ").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):n[e]=n[e];return t?r(t):r}if(e instanceof Function)return e(t);var n={};return r(e,t)}),x=(n.generateLabels=function(e,t,r,n){var o=new Array(t);return labelTemplateString&&i(o,function(t,i){o[i]=w(e,{value:r+n*(i+1)})}),o},n.easingEffects={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-1*e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-0.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1*((e=e/1-1)*e*e+1)},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-1*((e=e/1-1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-0.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return 1*(e/=1)*e*e*e*e},easeOutQuint:function(e){return 1*((e=e/1-1)*e*e*e*e+1)},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return-1*Math.cos(e/1*(Math.PI/2))+1},easeOutSine:function(e){return 1*Math.sin(e/1*(Math.PI/2))},easeInOutSine:function(e){return-0.5*(Math.cos(Math.PI*e/1)-1)},easeInExpo:function(e){return 0===e?1:1*Math.pow(2,10*(e/1-1))},easeOutExpo:function(e){return 1===e?1:1*(-Math.pow(2,-10*e/1)+1)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(-Math.pow(2,-10*--e)+2)},easeInCirc:function(e){return e>=1?e:-1*(Math.sqrt(1-(e/=1)*e)-1)},easeOutCirc:function(e){return 1*Math.sqrt(1-(e=e/1-1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-0.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:1==(e/=1)?1:(r||(r=.3),n<Math.abs(1)?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),-(n*Math.pow(2,10*(e-=1))*Math.sin(2*(1*e-t)*Math.PI/r)))},easeOutElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:1==(e/=1)?1:(r||(r=.3),n<Math.abs(1)?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*e)*Math.sin(2*(1*e-t)*Math.PI/r)+1)},easeInOutElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:2==(e/=.5)?1:(r||(r=.3*1.5),n<Math.abs(1)?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),1>e?-.5*n*Math.pow(2,10*(e-=1))*Math.sin(2*(1*e-t)*Math.PI/r):n*Math.pow(2,-10*(e-=1))*Math.sin(2*(1*e-t)*Math.PI/r)*.5+1)},easeInBack:function(e){var t=1.70158;return 1*(e/=1)*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return 1*((e=e/1-1)*e*((t+1)*e+t)+1)},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?.5*e*e*(((t*=1.525)+1)*e-t):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:function(e){return 1-x.easeOutBounce(1-e)},easeOutBounce:function(e){return(e/=1)<1/2.75?7.5625*e*e:2/2.75>e?1*(7.5625*(e-=1.5/2.75)*e+.75):2.5/2.75>e?1*(7.5625*(e-=2.25/2.75)*e+.9375):1*(7.5625*(e-=2.625/2.75)*e+.984375)},easeInOutBounce:function(e){return.5>e?.5*x.easeInBounce(2*e):.5*x.easeOutBounce(2*e-1)+.5}}),C=n.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),E=(n.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(e){return window.clearTimeout(e,1e3/60)}}(),n.animationLoop=function(e,t,r,n,i,o){var s=0,a=x[r]||x.linear,l=function(){s++;var r=s/t,u=a(r);e.call(o,u,r,s),n.call(o,u,r),t>s?o.animationFrame=C(l):i.apply(o)};C(l)},n.getRelativePosition=function(e){var t,r,n=e.originalEvent||e,i=e.currentTarget||e.srcElement,o=i.getBoundingClientRect();return n.touches?(t=n.touches[0].clientX-o.left,r=n.touches[0].clientY-o.top):(t=n.clientX-o.left,r=n.clientY-o.top),{x:t,y:r}},n.addEvent=function(e,t,r){e.addEventListener?e.addEventListener(t,r):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r}),S=n.removeEvent=function(e,t,r){e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=c},T=(n.bindEvents=function(e,t,r){e.events||(e.events={}),i(t,function(t){e.events[t]=function(){r.apply(e,arguments)},E(e.chart.canvas,t,e.events[t])})},n.unbindEvents=function(e,t){i(t,function(t,r){S(e.chart.canvas,r,t)})}),A=n.getMaximumWidth=function(e){var t=e.parentNode;return t.clientWidth},k=n.getMaximumHeight=function(e){var t=e.parentNode;return t.clientHeight},P=(n.getMaximumSize=n.getMaximumWidth,n.retinaScale=function(e){var t=e.ctx,r=e.canvas.width,n=e.canvas.height;window.devicePixelRatio&&(t.canvas.style.width=r+"px",t.canvas.style.height=n+"px",t.canvas.height=n*window.devicePixelRatio,t.canvas.width=r*window.devicePixelRatio,t.scale(window.devicePixelRatio,window.devicePixelRatio))}),O=n.clear=function(e){e.ctx.clearRect(0,0,e.width,e.height)},R=n.fontString=function(e,t,r){return t+" "+e+"px "+r},N=n.longestText=function(e,t,r){e.font=t;var n=0;return i(r,function(t){var r=e.measureText(t).width;n=r>n?r:n}),n},M=n.drawRoundedRectangle=function(e,t,r,n,i,o){e.beginPath(),e.moveTo(t+o,r),e.lineTo(t+n-o,r),e.quadraticCurveTo(t+n,r,t+n,r+o),e.lineTo(t+n,r+i-o),e.quadraticCurveTo(t+n,r+i,t+n-o,r+i),e.lineTo(t+o,r+i),e.quadraticCurveTo(t,r+i,t,r+i-o),e.lineTo(t,r+o),e.quadraticCurveTo(t,r,t+o,r),e.closePath()};r.instances={},r.Type=function(e,t,n){this.options=t,this.chart=n,this.id=h(),r.instances[this.id]=this,t.responsive&&this.resize(),this.initialize.call(this,e)},s(r.Type.prototype,{initialize:function(){return this},clear:function(){return O(this.chart),this},stop:function(){return n.cancelAnimFrame.call(e,this.animationFrame),this},resize:function(e){this.stop();var t=this.chart.canvas,r=A(this.chart.canvas),n=this.options.maintainAspectRatio?r/this.chart.aspectRatio:k(this.chart.canvas);return t.width=this.chart.width=r,t.height=this.chart.height=n,P(this.chart),"function"==typeof e&&e.apply(this,Array.prototype.slice.call(arguments,1)),this},reflow:c,render:function(e){return e&&this.reflow(),this.options.animation&&!e?n.animationLoop(this.draw,this.options.animationSteps,this.options.animationEasing,this.options.onAnimationProgress,this.options.onAnimationComplete,this):(this.draw(),this.options.onAnimationComplete.call(this)),this},generateLegend:function(){return w(this.options.legendTemplate,this)},destroy:function(){this.clear(),T(this,this.events);var e=this.chart.canvas;e.width=this.chart.width,e.height=this.chart.height,e.style.removeProperty?(e.style.removeProperty("width"),e.style.removeProperty("height")):(e.style.removeAttribute("width"),e.style.removeAttribute("height")),delete r.instances[this.id]},showTooltip:function(e,t){"undefined"==typeof this.activeElements&&(this.activeElements=[]);var o=function(e){var t=!1;return e.length!==this.activeElements.length?t=!0:(i(e,function(e,r){e!==this.activeElements[r]&&(t=!0)},this),t)}.call(this,e);if(o||t){if(this.activeElements=e,this.draw(),this.options.customTooltips&&this.options.customTooltips(!1),e.length>0)if(this.datasets&&this.datasets.length>1){for(var s,a,u=this.datasets.length-1;u>=0&&(s=this.datasets[u].points||this.datasets[u].bars||this.datasets[u].segments,a=l(s,e[0]),-1===a);u--);var c=[],h=[],d=function(e){var t,r,i,o,s,l=[],u=[],d=[];return n.each(this.datasets,function(e){t=e.points||e.bars||e.segments,t[a]&&t[a].hasValue()&&l.push(t[a])}),n.each(l,function(e){u.push(e.x),d.push(e.y),c.push(n.template(this.options.multiTooltipTemplate,e)),h.push({fill:e._saved.fillColor||e.fillColor,stroke:e._saved.strokeColor||e.strokeColor})},this),s=g(d),i=m(d),o=g(u),r=m(u),{x:o>this.chart.width/2?o:r,y:(s+i)/2}}.call(this,a);new r.MultiTooltip({x:d.x,y:d.y,xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,xOffset:this.options.tooltipXOffset,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,titleTextColor:this.options.tooltipTitleFontColor,titleFontFamily:this.options.tooltipTitleFontFamily,titleFontStyle:this.options.tooltipTitleFontStyle,titleFontSize:this.options.tooltipTitleFontSize,cornerRadius:this.options.tooltipCornerRadius,labels:c,legendColors:h,legendColorBackground:this.options.multiTooltipKeyBackground,title:e[0].label,chart:this.chart,ctx:this.chart.ctx,custom:this.options.customTooltips}).draw()}else i(e,function(e){var t=e.tooltipPosition();new r.Tooltip({x:Math.round(t.x),y:Math.round(t.y),xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,caretHeight:this.options.tooltipCaretSize,cornerRadius:this.options.tooltipCornerRadius,text:w(this.options.tooltipTemplate,e),chart:this.chart,custom:this.options.customTooltips}).draw()},this);return this}},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)}}),r.Type.extend=function(e){var t=this,n=function(){return t.apply(this,arguments)};if(n.prototype=o(t.prototype),s(n.prototype,e),n.extend=r.Type.extend,e.name||t.prototype.name){var i=e.name||t.prototype.name,l=r.defaults[t.prototype.name]?o(r.defaults[t.prototype.name]):{};r.defaults[i]=s(l,e.defaults),r.types[i]=n,r.prototype[i]=function(e,t){var o=a(r.defaults.global,r.defaults[i],t||{});return new n(e,o,this)}}else d("Name not provided for this chart, so it hasn't been registered");return t},r.Element=function(e){s(this,e),this.initialize.apply(this,arguments),this.save()},s(r.Element.prototype,{initialize:function(){},restore:function(e){return e?i(e,function(e){this[e]=this._saved[e]},this):s(this,this._saved),this},save:function(){return this._saved=o(this),delete this._saved._saved,this},update:function(e){return i(e,function(e,t){this._saved[t]=this[t],this[t]=e},this),this},transition:function(e,t){return i(e,function(e,r){this[r]=(e-this._saved[r])*t+this._saved[r]},this),this},tooltipPosition:function(){return{x:this.x,y:this.y}},hasValue:function(){return p(this.value)}}),r.Element.extend=u,r.Point=r.Element.extend({display:!0,inRange:function(e,t){var r=this.hitDetectionRadius+this.radius;return Math.pow(e-this.x,2)+Math.pow(t-this.y,2)<Math.pow(r,2)},draw:function(){if(this.display){var e=this.ctx;e.beginPath(),e.arc(this.x,this.y,this.radius,0,2*Math.PI),e.closePath(),e.strokeStyle=this.strokeColor,e.lineWidth=this.strokeWidth,e.fillStyle=this.fillColor,e.fill(),e.stroke()}}}),r.Arc=r.Element.extend({inRange:function(e,t){var r=n.getAngleFromPoint(this,{x:e,y:t}),i=r.angle>=this.startAngle&&r.angle<=this.endAngle,o=r.distance>=this.innerRadius&&r.distance<=this.outerRadius;return i&&o},tooltipPosition:function(){var e=this.startAngle+(this.endAngle-this.startAngle)/2,t=(this.outerRadius-this.innerRadius)/2+this.innerRadius;return{x:this.x+Math.cos(e)*t,y:this.y+Math.sin(e)*t}},draw:function(e){var t=this.ctx;t.beginPath(),t.arc(this.x,this.y,this.outerRadius,this.startAngle,this.endAngle),t.arc(this.x,this.y,this.innerRadius,this.endAngle,this.startAngle,!0),t.closePath(),t.strokeStyle=this.strokeColor,t.lineWidth=this.strokeWidth,t.fillStyle=this.fillColor,t.fill(),t.lineJoin="bevel",this.showStroke&&t.stroke()}}),r.Rectangle=r.Element.extend({draw:function(){var e=this.ctx,t=this.width/2,r=this.x-t,n=this.x+t,i=this.base-(this.base-this.y),o=this.strokeWidth/2;this.showStroke&&(r+=o,n-=o,i+=o),e.beginPath(),e.fillStyle=this.fillColor,e.strokeStyle=this.strokeColor,e.lineWidth=this.strokeWidth,e.moveTo(r,this.base),e.lineTo(r,i),e.lineTo(n,i),e.lineTo(n,this.base),e.fill(),this.showStroke&&e.stroke()},height:function(){return this.base-this.y},inRange:function(e,t){return e>=this.x-this.width/2&&e<=this.x+this.width/2&&t>=this.y&&t<=this.base}}),r.Tooltip=r.Element.extend({draw:function(){var e=this.chart.ctx;e.font=R(this.fontSize,this.fontStyle,this.fontFamily),this.xAlign="center",this.yAlign="above";var t=this.caretPadding=2,r=e.measureText(this.text).width+2*this.xPadding,n=this.fontSize+2*this.yPadding,i=n+this.caretHeight+t;this.x+r/2>this.chart.width?this.xAlign="left":this.x-r/2<0&&(this.xAlign="right"),this.y-i<0&&(this.yAlign="below");var o=this.x-r/2,s=this.y-i;if(e.fillStyle=this.fillColor,this.custom)this.custom(this);else{switch(this.yAlign){case"above":e.beginPath(),e.moveTo(this.x,this.y-t),e.lineTo(this.x+this.caretHeight,this.y-(t+this.caretHeight)),e.lineTo(this.x-this.caretHeight,this.y-(t+this.caretHeight)),e.closePath(),e.fill();break;case"below":s=this.y+t+this.caretHeight,e.beginPath(),e.moveTo(this.x,this.y+t),e.lineTo(this.x+this.caretHeight,this.y+t+this.caretHeight),e.lineTo(this.x-this.caretHeight,this.y+t+this.caretHeight),e.closePath(),e.fill()}switch(this.xAlign){case"left":o=this.x-r+(this.cornerRadius+this.caretHeight);break;case"right":o=this.x-(this.cornerRadius+this.caretHeight)}M(e,o,s,r,n,this.cornerRadius),e.fill(),e.fillStyle=this.textColor,e.textAlign="center",e.textBaseline="middle",e.fillText(this.text,o+r/2,s+n/2)}}}),r.MultiTooltip=r.Element.extend({initialize:function(){this.font=R(this.fontSize,this.fontStyle,this.fontFamily),this.titleFont=R(this.titleFontSize,this.titleFontStyle,this.titleFontFamily),this.height=this.labels.length*this.fontSize+(this.labels.length-1)*(this.fontSize/2)+2*this.yPadding+1.5*this.titleFontSize,this.ctx.font=this.titleFont;var e=this.ctx.measureText(this.title).width,t=N(this.ctx,this.font,this.labels)+this.fontSize+3,r=m([t,e]);this.width=r+2*this.xPadding;var n=this.height/2;this.y-n<0?this.y=n:this.y+n>this.chart.height&&(this.y=this.chart.height-n),this.x>this.chart.width/2?this.x-=this.xOffset+this.width:this.x+=this.xOffset},getLineHeight:function(e){var t=this.y-this.height/2+this.yPadding,r=e-1;return 0===e?t+this.titleFontSize/2:t+(1.5*this.fontSize*r+this.fontSize/2)+1.5*this.titleFontSize},draw:function(){if(this.custom)this.custom(this);else{M(this.ctx,this.x,this.y-this.height/2,this.width,this.height,this.cornerRadius);var e=this.ctx;e.fillStyle=this.fillColor,e.fill(),e.closePath(),e.textAlign="left",
23
- e.textBaseline="middle",e.fillStyle=this.titleTextColor,e.font=this.titleFont,e.fillText(this.title,this.x+this.xPadding,this.getLineHeight(0)),e.font=this.font,n.each(this.labels,function(t,r){e.fillStyle=this.textColor,e.fillText(t,this.x+this.xPadding+this.fontSize+3,this.getLineHeight(r+1)),e.fillStyle=this.legendColorBackground,e.fillRect(this.x+this.xPadding,this.getLineHeight(r+1)-this.fontSize/2,this.fontSize,this.fontSize),e.fillStyle=this.legendColors[r].fill,e.fillRect(this.x+this.xPadding,this.getLineHeight(r+1)-this.fontSize/2,this.fontSize,this.fontSize)},this)}}}),r.Scale=r.Element.extend({initialize:function(){this.fit()},buildYLabels:function(){this.yLabels=[];for(var e=v(this.stepValue),t=0;t<=this.steps;t++)this.yLabels.push(w(this.templateString,{value:(this.min+t*this.stepValue).toFixed(e)}));this.yLabelWidth=this.display&&this.showLabels?N(this.ctx,this.font,this.yLabels):0},addXLabel:function(e){this.xLabels.push(e),this.valuesCount++,this.fit()},removeXLabel:function(){this.xLabels.shift(),this.valuesCount--,this.fit()},fit:function(){this.startPoint=this.display?this.fontSize:0,this.endPoint=this.display?this.height-1.5*this.fontSize-5:this.height,this.startPoint+=this.padding,this.endPoint-=this.padding;var e,t=this.endPoint-this.startPoint;for(this.calculateYRange(t),this.buildYLabels(),this.calculateXLabelRotation();t>this.endPoint-this.startPoint;)t=this.endPoint-this.startPoint,e=this.yLabelWidth,this.calculateYRange(t),this.buildYLabels(),e<this.yLabelWidth&&this.calculateXLabelRotation()},calculateXLabelRotation:function(){this.ctx.font=this.font;var e,t,r=this.ctx.measureText(this.xLabels[0]).width,n=this.ctx.measureText(this.xLabels[this.xLabels.length-1]).width;if(this.xScalePaddingRight=n/2+3,this.xScalePaddingLeft=r/2>this.yLabelWidth+10?r/2:this.yLabelWidth+10,this.xLabelRotation=0,this.display){var i,o=N(this.ctx,this.font,this.xLabels);this.xLabelWidth=o;for(var s=Math.floor(this.calculateX(1)-this.calculateX(0))-6;this.xLabelWidth>s&&0===this.xLabelRotation||this.xLabelWidth>s&&this.xLabelRotation<=90&&this.xLabelRotation>0;)i=Math.cos(y(this.xLabelRotation)),e=i*r,t=i*n,e+this.fontSize/2>this.yLabelWidth+8&&(this.xScalePaddingLeft=e+this.fontSize/2),this.xScalePaddingRight=this.fontSize/2,this.xLabelRotation++,this.xLabelWidth=i*o;this.xLabelRotation>0&&(this.endPoint-=Math.sin(y(this.xLabelRotation))*o+3)}else this.xLabelWidth=0,this.xScalePaddingRight=this.padding,this.xScalePaddingLeft=this.padding},calculateYRange:c,drawingArea:function(){return this.startPoint-this.endPoint},calculateY:function(e){var t=this.drawingArea()/(this.min-this.max);return this.endPoint-t*(e-this.min)},calculateX:function(e){var t=(this.xLabelRotation>0,this.width-(this.xScalePaddingLeft+this.xScalePaddingRight)),r=t/(this.valuesCount-(this.offsetGridLines?0:1)),n=r*e+this.xScalePaddingLeft;return this.offsetGridLines&&(n+=r/2),Math.round(n)},update:function(e){n.extend(this,e),this.fit()},draw:function(){var e=this.ctx,t=(this.endPoint-this.startPoint)/this.steps,r=Math.round(this.xScalePaddingLeft);this.display&&(e.fillStyle=this.textColor,e.font=this.font,i(this.yLabels,function(i,o){var s=this.endPoint-t*o,a=Math.round(s),l=this.showHorizontalLines;e.textAlign="right",e.textBaseline="middle",this.showLabels&&e.fillText(i,r-10,s),0!==o||l||(l=!0),l&&e.beginPath(),o>0?(e.lineWidth=this.gridLineWidth,e.strokeStyle=this.gridLineColor):(e.lineWidth=this.lineWidth,e.strokeStyle=this.lineColor),a+=n.aliasPixel(e.lineWidth),l&&(e.moveTo(r,a),e.lineTo(this.width,a),e.stroke(),e.closePath()),e.lineWidth=this.lineWidth,e.strokeStyle=this.lineColor,e.beginPath(),e.moveTo(r-5,a),e.lineTo(r,a),e.stroke(),e.closePath()},this),i(this.xLabels,function(t,r){var n=this.calculateX(r)+b(this.lineWidth),i=this.calculateX(r-(this.offsetGridLines?.5:0))+b(this.lineWidth),o=this.xLabelRotation>0,s=this.showVerticalLines;0!==r||s||(s=!0),s&&e.beginPath(),r>0?(e.lineWidth=this.gridLineWidth,e.strokeStyle=this.gridLineColor):(e.lineWidth=this.lineWidth,e.strokeStyle=this.lineColor),s&&(e.moveTo(i,this.endPoint),e.lineTo(i,this.startPoint-3),e.stroke(),e.closePath()),e.lineWidth=this.lineWidth,e.strokeStyle=this.lineColor,e.beginPath(),e.moveTo(i,this.endPoint),e.lineTo(i,this.endPoint+5),e.stroke(),e.closePath(),e.save(),e.translate(n,o?this.endPoint+12:this.endPoint+8),e.rotate(-1*y(this.xLabelRotation)),e.font=this.font,e.textAlign=o?"right":"center",e.textBaseline=o?"middle":"top",e.fillText(t,0,0),e.restore()},this))}}),r.RadialScale=r.Element.extend({initialize:function(){this.size=g([this.height,this.width]),this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2},calculateCenterOffset:function(e){var t=this.drawingArea/(this.max-this.min);return(e-this.min)*t},update:function(){this.lineArc?this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2:this.setScaleSize(),this.buildYLabels()},buildYLabels:function(){this.yLabels=[];for(var e=v(this.stepValue),t=0;t<=this.steps;t++)this.yLabels.push(w(this.templateString,{value:(this.min+t*this.stepValue).toFixed(e)}))},getCircumference:function(){return 2*Math.PI/this.valuesCount},setScaleSize:function(){var e,t,r,n,i,o,s,a,l,u,c,h,d=g([this.height/2-this.pointLabelFontSize-5,this.width/2]),f=this.width,m=0;for(this.ctx.font=R(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),t=0;t<this.valuesCount;t++)e=this.getPointPosition(t,d),r=this.ctx.measureText(w(this.templateString,{value:this.labels[t]})).width+5,0===t||t===this.valuesCount/2?(n=r/2,e.x+n>f&&(f=e.x+n,i=t),e.x-n<m&&(m=e.x-n,s=t)):t<this.valuesCount/2?e.x+r>f&&(f=e.x+r,i=t):t>this.valuesCount/2&&e.x-r<m&&(m=e.x-r,s=t);l=m,u=Math.ceil(f-this.width),o=this.getIndexAngle(i),a=this.getIndexAngle(s),c=u/Math.sin(o+Math.PI/2),h=l/Math.sin(a+Math.PI/2),c=p(c)?c:0,h=p(h)?h:0,this.drawingArea=d-(h+c)/2,this.setCenterPoint(h,c)},setCenterPoint:function(e,t){var r=this.width-t-this.drawingArea,n=e+this.drawingArea;this.xCenter=(n+r)/2,this.yCenter=this.height/2},getIndexAngle:function(e){var t=2*Math.PI/this.valuesCount;return e*t-Math.PI/2},getPointPosition:function(e,t){var r=this.getIndexAngle(e);return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter}},draw:function(){if(this.display){var e=this.ctx;if(i(this.yLabels,function(t,r){if(r>0){var n,i=r*(this.drawingArea/this.steps),o=this.yCenter-i;if(this.lineWidth>0)if(e.strokeStyle=this.lineColor,e.lineWidth=this.lineWidth,this.lineArc)e.beginPath(),e.arc(this.xCenter,this.yCenter,i,0,2*Math.PI),e.closePath(),e.stroke();else{e.beginPath();for(var s=0;s<this.valuesCount;s++)n=this.getPointPosition(s,this.calculateCenterOffset(this.min+r*this.stepValue)),0===s?e.moveTo(n.x,n.y):e.lineTo(n.x,n.y);e.closePath(),e.stroke()}if(this.showLabels){if(e.font=R(this.fontSize,this.fontStyle,this.fontFamily),this.showLabelBackdrop){var a=e.measureText(t).width;e.fillStyle=this.backdropColor,e.fillRect(this.xCenter-a/2-this.backdropPaddingX,o-this.fontSize/2-this.backdropPaddingY,a+2*this.backdropPaddingX,this.fontSize+2*this.backdropPaddingY)}e.textAlign="center",e.textBaseline="middle",e.fillStyle=this.fontColor,e.fillText(t,this.xCenter,o)}}},this),!this.lineArc){e.lineWidth=this.angleLineWidth,e.strokeStyle=this.angleLineColor;for(var t=this.valuesCount-1;t>=0;t--){if(this.angleLineWidth>0){var r=this.getPointPosition(t,this.calculateCenterOffset(this.max));e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(r.x,r.y),e.stroke(),e.closePath()}var n=this.getPointPosition(t,this.calculateCenterOffset(this.max)+5);e.font=R(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),e.fillStyle=this.pointLabelFontColor;var o=this.labels.length,s=this.labels.length/2,a=s/2,l=a>t||t>o-a,u=t===a||t===o-a;0===t?e.textAlign="center":t===s?e.textAlign="center":s>t?e.textAlign="left":e.textAlign="right",u?e.textBaseline="middle":l?e.textBaseline="bottom":e.textBaseline="top",e.fillText(this.labels[t],n.x,n.y)}}}}}),n.addEvent(window,"resize",function(){var e;return function(){clearTimeout(e),e=setTimeout(function(){i(r.instances,function(e){e.options.responsive&&e.resize(e.render,!0)})},50)}}()),f?define(function(){return r}):"object"==typeof module&&module.exports&&(module.exports=r),e.Chart=r,r.noConflict=function(){return e.Chart=t,r}}.call(this),function(){"use strict";var e=this,t=e.Chart,r=t.helpers,n={scaleBeginAtZero:!0,scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].fillColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'};t.Type.extend({name:"Bar",defaults:n,initialize:function(e){var n=this.options;this.ScaleClass=t.Scale.extend({offsetGridLines:!0,calculateBarX:function(e,t,r){var i=this.calculateBaseWidth(),o=this.calculateX(r)-i/2,s=this.calculateBarWidth(e);return o+s*t+t*n.barDatasetSpacing+s/2},calculateBaseWidth:function(){return this.calculateX(1)-this.calculateX(0)-2*n.barValueSpacing},calculateBarWidth:function(e){var t=this.calculateBaseWidth()-(e-1)*n.barDatasetSpacing;return t/e}}),this.datasets=[],this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getBarsAtEvent(e):[];this.eachBars(function(e){e.restore(["fillColor","strokeColor"])}),r.each(t,function(e){e.fillColor=e.highlightFill,e.strokeColor=e.highlightStroke}),this.showTooltip(t)}),this.BarClass=t.Rectangle.extend({strokeWidth:this.options.barStrokeWidth,showStroke:this.options.barShowStroke,ctx:this.chart.ctx}),r.each(e.datasets,function(t,n){var i={label:t.label||null,fillColor:t.fillColor,strokeColor:t.strokeColor,bars:[]};this.datasets.push(i),r.each(t.data,function(r,n){i.bars.push(new this.BarClass({value:r,label:e.labels[n],datasetLabel:t.label,strokeColor:t.strokeColor,fillColor:t.fillColor,highlightFill:t.highlightFill||t.fillColor,highlightStroke:t.highlightStroke||t.strokeColor}))},this)},this),this.buildScale(e.labels),this.BarClass.prototype.base=this.scale.endPoint,this.eachBars(function(e,t,n){r.extend(e,{width:this.scale.calculateBarWidth(this.datasets.length),x:this.scale.calculateBarX(this.datasets.length,n,t),y:this.scale.endPoint}),e.save()},this),this.render()},update:function(){this.scale.update(),r.each(this.activeElements,function(e){e.restore(["fillColor","strokeColor"])}),this.eachBars(function(e){e.save()}),this.render()},eachBars:function(e){r.each(this.datasets,function(t,n){r.each(t.bars,e,this,n)},this)},getBarsAtEvent:function(e){for(var t,n=[],i=r.getRelativePosition(e),o=function(e){n.push(e.bars[t])},s=0;s<this.datasets.length;s++)for(t=0;t<this.datasets[s].bars.length;t++)if(this.datasets[s].bars[t].inRange(i.x,i.y))return r.each(this.datasets,o),n;return n},buildScale:function(e){var t=this,n=function(){var e=[];return t.eachBars(function(t){e.push(t.value)}),e},i={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:e.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(e){var t=r.calculateScaleRange(n(),e,this.fontSize,this.beginAtZero,this.integersOnly);r.extend(this,t)},xLabels:e,font:r.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.barShowStroke?this.options.barStrokeWidth:0,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&r.extend(i,{calculateYRange:r.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new this.ScaleClass(i)},addData:function(e,t){r.each(e,function(e,r){this.datasets[r].bars.push(new this.BarClass({value:e,label:t,x:this.scale.calculateBarX(this.datasets.length,r,this.scale.valuesCount+1),y:this.scale.endPoint,width:this.scale.calculateBarWidth(this.datasets.length),base:this.scale.endPoint,strokeColor:this.datasets[r].strokeColor,fillColor:this.datasets[r].fillColor}))},this),this.scale.addXLabel(t),this.update()},removeData:function(){this.scale.removeXLabel(),r.each(this.datasets,function(e){e.bars.shift()},this),this.update()},reflow:function(){r.extend(this.BarClass.prototype,{y:this.scale.endPoint,base:this.scale.endPoint});var e=r.extend({height:this.chart.height,width:this.chart.width});this.scale.update(e)},draw:function(e){var t=e||1;this.clear();this.chart.ctx;this.scale.draw(t),r.each(this.datasets,function(e,n){r.each(e.bars,function(e,r){e.hasValue()&&(e.base=this.scale.endPoint,e.transition({x:this.scale.calculateBarX(this.datasets.length,n,r),y:this.scale.calculateY(e.value),width:this.scale.calculateBarWidth(this.datasets.length)},t).draw())},this)},this)}})}.call(this),function(){"use strict";var e=this,t=e.Chart,r=t.helpers,n={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'};t.Type.extend({name:"Doughnut",defaults:n,initialize:function(e){this.segments=[],this.outerRadius=(r.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,this.SegmentArc=t.Arc.extend({ctx:this.chart.ctx,x:this.chart.width/2,y:this.chart.height/2}),this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getSegmentsAtEvent(e):[];r.each(this.segments,function(e){e.restore(["fillColor"])}),r.each(t,function(e){e.fillColor=e.highlightColor}),this.showTooltip(t)}),this.calculateTotal(e),r.each(e,function(e,t){this.addData(e,t,!0)},this),this.render()},getSegmentsAtEvent:function(e){var t=[],n=r.getRelativePosition(e);return r.each(this.segments,function(e){e.inRange(n.x,n.y)&&t.push(e)},this),t},addData:function(e,t,r){var n=t||this.segments.length;this.segments.splice(n,0,new this.SegmentArc({value:e.value,outerRadius:this.options.animateScale?0:this.outerRadius,innerRadius:this.options.animateScale?0:this.outerRadius/100*this.options.percentageInnerCutout,fillColor:e.color,highlightColor:e.highlight||e.color,showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,startAngle:1.5*Math.PI,circumference:this.options.animateRotate?0:this.calculateCircumference(e.value),label:e.label})),r||(this.reflow(),this.update())},calculateCircumference:function(e){return 2*Math.PI*(e/this.total)},calculateTotal:function(e){this.total=0,r.each(e,function(e){this.total+=e.value},this)},update:function(){this.calculateTotal(this.segments),r.each(this.activeElements,function(e){e.restore(["fillColor"])}),r.each(this.segments,function(e){e.save()}),this.render()},removeData:function(e){var t=r.isNumber(e)?e:this.segments.length-1;this.segments.splice(t,1),this.reflow(),this.update()},reflow:function(){r.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.outerRadius=(r.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,r.each(this.segments,function(e){e.update({outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout})},this)},draw:function(e){var t=e?e:1;this.clear(),r.each(this.segments,function(e,r){e.transition({circumference:this.calculateCircumference(e.value),outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout},t),e.endAngle=e.startAngle+e.circumference,e.draw(),0===r&&(e.startAngle=1.5*Math.PI),r<this.segments.length-1&&(this.segments[r+1].startAngle=e.endAngle)},this)}}),t.types.Doughnut.extend({name:"Pie",defaults:r.merge(n,{percentageInnerCutout:0})})}.call(this),function(){"use strict";var e=this,t=e.Chart,r=t.helpers,n={scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,bezierCurve:!0,bezierCurveTension:.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'};t.Type.extend({name:"Line",defaults:n,initialize:function(e){this.PointClass=t.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx,inRange:function(e){return Math.pow(e-this.x,2)<Math.pow(this.radius+this.hitDetectionRadius,2)}}),this.datasets=[],this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getPointsAtEvent(e):[];this.eachPoints(function(e){e.restore(["fillColor","strokeColor"])}),r.each(t,function(e){e.fillColor=e.highlightFill,e.strokeColor=e.highlightStroke}),this.showTooltip(t)}),r.each(e.datasets,function(t){var n={label:t.label||null,fillColor:t.fillColor,strokeColor:t.strokeColor,pointColor:t.pointColor,pointStrokeColor:t.pointStrokeColor,points:[]};this.datasets.push(n),r.each(t.data,function(r,i){n.points.push(new this.PointClass({value:r,label:e.labels[i],datasetLabel:t.label,strokeColor:t.pointStrokeColor,fillColor:t.pointColor,highlightFill:t.pointHighlightFill||t.pointColor,highlightStroke:t.pointHighlightStroke||t.pointStrokeColor}))},this),this.buildScale(e.labels),this.eachPoints(function(e,t){r.extend(e,{x:this.scale.calculateX(t),y:this.scale.endPoint}),e.save()},this)},this),this.render()},update:function(){this.scale.update(),r.each(this.activeElements,function(e){e.restore(["fillColor","strokeColor"])}),this.eachPoints(function(e){e.save()}),this.render()},eachPoints:function(e){r.each(this.datasets,function(t){r.each(t.points,e,this)},this)},getPointsAtEvent:function(e){var t=[],n=r.getRelativePosition(e);return r.each(this.datasets,function(e){r.each(e.points,function(e){e.inRange(n.x,n.y)&&t.push(e)})},this),t},buildScale:function(e){var n=this,i=function(){var e=[];return n.eachPoints(function(t){e.push(t.value)}),e},o={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:e.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(e){var t=r.calculateScaleRange(i(),e,this.fontSize,this.beginAtZero,this.integersOnly);r.extend(this,t)},xLabels:e,font:r.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.pointDotRadius+this.options.pointDotStrokeWidth,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&r.extend(o,{calculateYRange:r.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new t.Scale(o)},addData:function(e,t){r.each(e,function(e,r){this.datasets[r].points.push(new this.PointClass({value:e,label:t,x:this.scale.calculateX(this.scale.valuesCount+1),y:this.scale.endPoint,strokeColor:this.datasets[r].pointStrokeColor,fillColor:this.datasets[r].pointColor}))},this),this.scale.addXLabel(t),this.update()},removeData:function(){this.scale.removeXLabel(),r.each(this.datasets,function(e){e.points.shift()},this),this.update()},reflow:function(){var e=r.extend({height:this.chart.height,width:this.chart.width});this.scale.update(e)},draw:function(e){var t=e||1;this.clear();var n=this.chart.ctx,i=function(e){return null!==e.value},o=function(e,t,n){return r.findNextWhere(t,i,n)||e},s=function(e,t,n){return r.findPreviousWhere(t,i,n)||e};this.scale.draw(t),r.each(this.datasets,function(e){var a=r.where(e.points,i);r.each(e.points,function(e,r){e.hasValue()&&e.transition({y:this.scale.calculateY(e.value),x:this.scale.calculateX(r)},t)},this),this.options.bezierCurve&&r.each(a,function(e,t){var n=t>0&&t<a.length-1?this.options.bezierCurveTension:0;e.controlPoints=r.splineCurve(s(e,a,t),e,o(e,a,t),n),e.controlPoints.outer.y>this.scale.endPoint?e.controlPoints.outer.y=this.scale.endPoint:e.controlPoints.outer.y<this.scale.startPoint&&(e.controlPoints.outer.y=this.scale.startPoint),e.controlPoints.inner.y>this.scale.endPoint?e.controlPoints.inner.y=this.scale.endPoint:e.controlPoints.inner.y<this.scale.startPoint&&(e.controlPoints.inner.y=this.scale.startPoint)},this),n.lineWidth=this.options.datasetStrokeWidth,n.strokeStyle=e.strokeColor,n.beginPath(),r.each(a,function(e,t){if(0===t)n.moveTo(e.x,e.y);else if(this.options.bezierCurve){var r=s(e,a,t);n.bezierCurveTo(r.controlPoints.outer.x,r.controlPoints.outer.y,e.controlPoints.inner.x,e.controlPoints.inner.y,e.x,e.y)}else n.lineTo(e.x,e.y)},this),n.stroke(),this.options.datasetFill&&a.length>0&&(n.lineTo(a[a.length-1].x,this.scale.endPoint),n.lineTo(a[0].x,this.scale.endPoint),n.fillStyle=e.fillColor,n.closePath(),n.fill()),r.each(a,function(e){e.draw()})},this)}})}.call(this),function(){"use strict";var e=this,t=e.Chart,r=t.helpers,n={scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBeginAtZero:!0,scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,scaleShowLine:!0,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'};t.Type.extend({name:"PolarArea",defaults:n,initialize:function(e){this.segments=[],this.SegmentArc=t.Arc.extend({showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,ctx:this.chart.ctx,innerRadius:0,x:this.chart.width/2,y:this.chart.height/2}),this.scale=new t.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,lineArc:!0,width:this.chart.width,height:this.chart.height,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,valuesCount:e.length}),this.updateScaleRange(e),this.scale.update(),r.each(e,function(e,t){this.addData(e,t,!0)},this),this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getSegmentsAtEvent(e):[];r.each(this.segments,function(e){e.restore(["fillColor"])}),r.each(t,function(e){e.fillColor=e.highlightColor}),this.showTooltip(t)}),this.render()},getSegmentsAtEvent:function(e){var t=[],n=r.getRelativePosition(e);return r.each(this.segments,function(e){e.inRange(n.x,n.y)&&t.push(e)},this),t},addData:function(e,t,r){var n=t||this.segments.length;this.segments.splice(n,0,new this.SegmentArc({fillColor:e.color,highlightColor:e.highlight||e.color,label:e.label,value:e.value,outerRadius:this.options.animateScale?0:this.scale.calculateCenterOffset(e.value),circumference:this.options.animateRotate?0:this.scale.getCircumference(),startAngle:1.5*Math.PI})),r||(this.reflow(),this.update())},removeData:function(e){var t=r.isNumber(e)?e:this.segments.length-1;this.segments.splice(t,1),this.reflow(),this.update()},calculateTotal:function(e){this.total=0,r.each(e,function(e){this.total+=e.value},this),this.scale.valuesCount=this.segments.length},updateScaleRange:function(e){var t=[];r.each(e,function(e){t.push(e.value)});var n=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:r.calculateScaleRange(t,r.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);r.extend(this.scale,n,{size:r.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2})},update:function(){this.calculateTotal(this.segments),r.each(this.segments,function(e){e.save()}),this.render()},reflow:function(){r.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.updateScaleRange(this.segments),this.scale.update(),r.extend(this.scale,{xCenter:this.chart.width/2,yCenter:this.chart.height/2}),r.each(this.segments,function(e){e.update({outerRadius:this.scale.calculateCenterOffset(e.value)})},this)},draw:function(e){var t=e||1;this.clear(),r.each(this.segments,function(e,r){e.transition({circumference:this.scale.getCircumference(),outerRadius:this.scale.calculateCenterOffset(e.value)},t),e.endAngle=e.startAngle+e.circumference,0===r&&(e.startAngle=1.5*Math.PI),r<this.segments.length-1&&(this.segments[r+1].startAngle=e.endAngle),e.draw()},this),this.scale.draw()}})}.call(this),function(){"use strict";var e=this,t=e.Chart,r=t.helpers;t.Type.extend({name:"Radar",defaults:{scaleShowLine:!0,angleShowLineOut:!0,scaleShowLabels:!1,scaleBeginAtZero:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:10,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'},initialize:function(e){this.PointClass=t.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx}),this.datasets=[],this.buildScale(e),this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getPointsAtEvent(e):[];this.eachPoints(function(e){e.restore(["fillColor","strokeColor"])}),r.each(t,function(e){e.fillColor=e.highlightFill,e.strokeColor=e.highlightStroke}),this.showTooltip(t)}),r.each(e.datasets,function(t){var n={label:t.label||null,fillColor:t.fillColor,strokeColor:t.strokeColor,pointColor:t.pointColor,pointStrokeColor:t.pointStrokeColor,points:[]};this.datasets.push(n),r.each(t.data,function(r,i){var o;this.scale.animation||(o=this.scale.getPointPosition(i,this.scale.calculateCenterOffset(r))),n.points.push(new this.PointClass({value:r,label:e.labels[i],datasetLabel:t.label,x:this.options.animation?this.scale.xCenter:o.x,y:this.options.animation?this.scale.yCenter:o.y,strokeColor:t.pointStrokeColor,fillColor:t.pointColor,highlightFill:t.pointHighlightFill||t.pointColor,highlightStroke:t.pointHighlightStroke||t.pointStrokeColor}))},this)},this),this.render()},eachPoints:function(e){r.each(this.datasets,function(t){r.each(t.points,e,this)},this)},getPointsAtEvent:function(e){var t=r.getRelativePosition(e),n=r.getAngleFromPoint({x:this.scale.xCenter,y:this.scale.yCenter},t),i=2*Math.PI/this.scale.valuesCount,o=Math.round((n.angle-1.5*Math.PI)/i),s=[];return(o>=this.scale.valuesCount||0>o)&&(o=0),n.distance<=this.scale.drawingArea&&r.each(this.datasets,function(e){s.push(e.points[o])}),s},buildScale:function(e){this.scale=new t.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,angleLineColor:this.options.angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options.angleLineWidth:0,pointLabelFontColor:this.options.pointLabelFontColor,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this.options.pointLabelFontFamily,pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:e.labels,valuesCount:e.datasets[0].data.length}),this.scale.setScaleSize(),this.updateScaleRange(e.datasets),this.scale.buildYLabels()},updateScaleRange:function(e){var t=function(){var t=[];return r.each(e,function(e){e.data?t=t.concat(e.data):r.each(e.points,function(e){t.push(e.value)})}),t}(),n=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:r.calculateScaleRange(t,r.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);r.extend(this.scale,n)},addData:function(e,t){this.scale.valuesCount++,r.each(e,function(e,r){var n=this.scale.getPointPosition(this.scale.valuesCount,this.scale.calculateCenterOffset(e));this.datasets[r].points.push(new this.PointClass({value:e,label:t,x:n.x,y:n.y,strokeColor:this.datasets[r].pointStrokeColor,fillColor:this.datasets[r].pointColor}))},this),this.scale.labels.push(t),this.reflow(),this.update()},removeData:function(){this.scale.valuesCount--,this.scale.labels.shift(),r.each(this.datasets,function(e){e.points.shift()},this),this.reflow(),this.update()},update:function(){this.eachPoints(function(e){e.save()}),this.reflow(),this.render()},reflow:function(){r.extend(this.scale,{width:this.chart.width,
24
- height:this.chart.height,size:r.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2}),this.updateScaleRange(this.datasets),this.scale.setScaleSize(),this.scale.buildYLabels()},draw:function(e){var t=e||1,n=this.chart.ctx;this.clear(),this.scale.draw(),r.each(this.datasets,function(e){r.each(e.points,function(e,r){e.hasValue()&&e.transition(this.scale.getPointPosition(r,this.scale.calculateCenterOffset(e.value)),t)},this),n.lineWidth=this.options.datasetStrokeWidth,n.strokeStyle=e.strokeColor,n.beginPath(),r.each(e.points,function(e,t){0===t?n.moveTo(e.x,e.y):n.lineTo(e.x,e.y)},this),n.closePath(),n.stroke(),n.fillStyle=e.fillColor,n.fill(),r.each(e.points,function(e){e.hasValue()&&e.draw()})},this)}})}.call(this),function(e){"use strict";function t(e,t){var r=(65535&e)+(65535&t),n=(e>>16)+(t>>16)+(r>>16);return n<<16|65535&r}function r(e,t){return e<<t|e>>>32-t}function n(e,n,i,o,s,a){return t(r(t(t(n,e),t(o,a)),s),i)}function i(e,t,r,i,o,s,a){return n(t&r|~t&i,e,t,o,s,a)}function o(e,t,r,i,o,s,a){return n(t&i|r&~i,e,t,o,s,a)}function s(e,t,r,i,o,s,a){return n(t^r^i,e,t,o,s,a)}function a(e,t,r,i,o,s,a){return n(r^(t|~i),e,t,o,s,a)}function l(e,r){e[r>>5]|=128<<r%32,e[(r+64>>>9<<4)+14]=r;var n,l,u,c,h,d=1732584193,f=-271733879,p=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)l=d,u=f,c=p,h=m,d=i(d,f,p,m,e[n],7,-680876936),m=i(m,d,f,p,e[n+1],12,-389564586),p=i(p,m,d,f,e[n+2],17,606105819),f=i(f,p,m,d,e[n+3],22,-1044525330),d=i(d,f,p,m,e[n+4],7,-176418897),m=i(m,d,f,p,e[n+5],12,1200080426),p=i(p,m,d,f,e[n+6],17,-1473231341),f=i(f,p,m,d,e[n+7],22,-45705983),d=i(d,f,p,m,e[n+8],7,1770035416),m=i(m,d,f,p,e[n+9],12,-1958414417),p=i(p,m,d,f,e[n+10],17,-42063),f=i(f,p,m,d,e[n+11],22,-1990404162),d=i(d,f,p,m,e[n+12],7,1804603682),m=i(m,d,f,p,e[n+13],12,-40341101),p=i(p,m,d,f,e[n+14],17,-1502002290),f=i(f,p,m,d,e[n+15],22,1236535329),d=o(d,f,p,m,e[n+1],5,-165796510),m=o(m,d,f,p,e[n+6],9,-1069501632),p=o(p,m,d,f,e[n+11],14,643717713),f=o(f,p,m,d,e[n],20,-373897302),d=o(d,f,p,m,e[n+5],5,-701558691),m=o(m,d,f,p,e[n+10],9,38016083),p=o(p,m,d,f,e[n+15],14,-660478335),f=o(f,p,m,d,e[n+4],20,-405537848),d=o(d,f,p,m,e[n+9],5,568446438),m=o(m,d,f,p,e[n+14],9,-1019803690),p=o(p,m,d,f,e[n+3],14,-187363961),f=o(f,p,m,d,e[n+8],20,1163531501),d=o(d,f,p,m,e[n+13],5,-1444681467),m=o(m,d,f,p,e[n+2],9,-51403784),p=o(p,m,d,f,e[n+7],14,1735328473),f=o(f,p,m,d,e[n+12],20,-1926607734),d=s(d,f,p,m,e[n+5],4,-378558),m=s(m,d,f,p,e[n+8],11,-2022574463),p=s(p,m,d,f,e[n+11],16,1839030562),f=s(f,p,m,d,e[n+14],23,-35309556),d=s(d,f,p,m,e[n+1],4,-1530992060),m=s(m,d,f,p,e[n+4],11,1272893353),p=s(p,m,d,f,e[n+7],16,-155497632),f=s(f,p,m,d,e[n+10],23,-1094730640),d=s(d,f,p,m,e[n+13],4,681279174),m=s(m,d,f,p,e[n],11,-358537222),p=s(p,m,d,f,e[n+3],16,-722521979),f=s(f,p,m,d,e[n+6],23,76029189),d=s(d,f,p,m,e[n+9],4,-640364487),m=s(m,d,f,p,e[n+12],11,-421815835),p=s(p,m,d,f,e[n+15],16,530742520),f=s(f,p,m,d,e[n+2],23,-995338651),d=a(d,f,p,m,e[n],6,-198630844),m=a(m,d,f,p,e[n+7],10,1126891415),p=a(p,m,d,f,e[n+14],15,-1416354905),f=a(f,p,m,d,e[n+5],21,-57434055),d=a(d,f,p,m,e[n+12],6,1700485571),m=a(m,d,f,p,e[n+3],10,-1894986606),p=a(p,m,d,f,e[n+10],15,-1051523),f=a(f,p,m,d,e[n+1],21,-2054922799),d=a(d,f,p,m,e[n+8],6,1873313359),m=a(m,d,f,p,e[n+15],10,-30611744),p=a(p,m,d,f,e[n+6],15,-1560198380),f=a(f,p,m,d,e[n+13],21,1309151649),d=a(d,f,p,m,e[n+4],6,-145523070),m=a(m,d,f,p,e[n+11],10,-1120210379),p=a(p,m,d,f,e[n+2],15,718787259),f=a(f,p,m,d,e[n+9],21,-343485551),d=t(d,l),f=t(f,u),p=t(p,c),m=t(m,h);return[d,f,p,m]}function u(e){var t,r="";for(t=0;t<32*e.length;t+=8)r+=String.fromCharCode(e[t>>5]>>>t%32&255);return r}function c(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;for(t=0;t<8*e.length;t+=8)r[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return r}function h(e){return u(l(c(e),8*e.length))}function d(e,t){var r,n,i=c(e),o=[],s=[];for(o[15]=s[15]=void 0,i.length>16&&(i=l(i,8*e.length)),r=0;16>r;r+=1)o[r]=909522486^i[r],s[r]=1549556828^i[r];return n=l(o.concat(c(t)),512+8*t.length),u(l(s.concat(n),640))}function f(e){var t,r,n="0123456789abcdef",i="";for(r=0;r<e.length;r+=1)t=e.charCodeAt(r),i+=n.charAt(t>>>4&15)+n.charAt(15&t);return i}function p(e){return unescape(encodeURIComponent(e))}function m(e){return h(p(e))}function g(e){return f(m(e))}function v(e,t){return d(p(e),p(t))}function y(e,t){return f(v(e,t))}function b(e,t,r){return t?r?v(t,e):y(t,e):r?m(e):g(e)}"function"==typeof define&&define.amd?define(function(){return b}):e.md5=b}(this),define("ember-moment",["ember-moment/index","ember","exports"],function(e,t,r){"use strict";t["default"].keys(e).forEach(function(t){r[t]=e[t]})}),define("ember-moment/computed",["exports","ember-moment/computeds/moment","ember-moment/computeds/ago","ember-moment/computeds/duration"],function(e,t,r,n){"use strict";e.moment=t["default"],e.ago=r["default"],e.duration=n["default"]}),define("ember-moment/computeds/ago",["exports","ember","moment","ember-moment/computeds/moment"],function(e,t,r,n){"use strict";function i(e,t){var i=[e],a=s(e,function(){var i,s,l;return i=[o(this,e)],arguments.length>1&&(s=n.descriptorFor.call(this,t),l=s?o(this,t):t,s&&-1===a._dependentKeys.indexOf(t)&&a.property(t),i.push(l)),r["default"].apply(this,i).fromNow()});return a.property.apply(a,i).readOnly()}var o=t["default"].get,s=t["default"].computed;e["default"]=i}),define("ember-moment/computeds/duration",["exports","ember","moment","ember-moment/computeds/moment"],function(e,t,r,n){"use strict";function i(e,t){var i=arguments.length,a=[e],l=s(e,function(){var s,a,u;return s=[o(this,e)],i>1&&(a=n.descriptorFor.call(this,t),u=a?o(this,t):t,a&&-1===l._dependentKeys.indexOf(t)&&l.property(t),s.push(u)),r["default"].duration.apply(this,s).humanize()});return l.property.apply(l,a).readOnly()}var o=t["default"].get,s=t["default"].computed;e["default"]=i}),define("ember-moment/computeds/moment",["exports","ember","moment"],function(e,t,r){"use strict";function n(e){var r=t["default"].meta(this);return r&&r.descs?r.descs[e]:void 0}function i(e,i,u){t["default"].assert("More than one argument passed into moment computed",arguments.length>1);var c,h=l.call(arguments);return h.shift(),c=s(e,function(){var t,s=this,l=[o(this,e)],d=a.map(h,function(e){return t=n.call(s,e),t&&-1===c._dependentKeys.indexOf(e)&&c.property(e),t?o(s,e):e});return i=d[0],d.length>1&&(u=d[1],l.push(u)),r["default"].apply(this,l).format(i)}).readOnly()}e.descriptorFor=n;var o=t["default"].get,s=t["default"].computed,a=t["default"].EnumerableUtils,l=Array.prototype.slice;e["default"]=i}),define("ember-moment/helpers/ago",["exports","ember","moment"],function(e,t,r){"use strict";var n;n=t["default"].HTMLBars?function(e){if(0===e.length)throw new TypeError("Invalid Number of arguments, expected at least 1");return r["default"].apply(this,e).fromNow()}:function(e,t){var n=arguments.length,i=[e];if(1===n)throw new TypeError("Invalid Number of arguments, expected at least 1");return n>3&&i.push(t),r["default"].apply(this,i).fromNow()},e["default"]=n}),define("ember-moment/helpers/duration",["exports","ember","moment"],function(e,t,r){"use strict";var n;n=t["default"].HTMLBars?function(e){var t=e.length;if(0===t||t>2)throw new TypeError("Invalid Number of arguments, expected 1 or 2");return r["default"].duration.apply(this,e).humanize()}:function(e,t){var n=arguments.length;if(1===n||n>3)throw new TypeError("Invalid Number of arguments, expected 1 or 2");var i=[e];return 3===n&&i.push(t),r["default"].duration.apply(this,i).humanize()},e["default"]=n}),define("ember-moment/helpers/moment",["exports","ember","moment"],function(e,t,r){"use strict";var n;n=t["default"].HTMLBars?function(e){var t,n=e.length,i=[];if(0===n||n>3)throw new TypeError("Invalid Number of arguments, expected at least 1 and at most 3");return i.push(e[0]),1===n?t="LLLL":2===n?t=e[1]:n>2&&(i.push(e[2]),t=e[1]),r["default"].apply(this,i).format(t)}:function(e,t,n){var i,o=arguments.length,s=[];if(1===o||o>4)throw new TypeError("Invalid Number of arguments, expected at least 1 and at most 3");return s.push(e),2===o?i="LLLL":3===o?i=t:o>3&&(s.push(n),i=t),r["default"].apply(this,s).format(i)},e["default"]=n});
22
+ u&&(a=a.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var c=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(u){var f=a,p=this.options.container?e(this.options.container):this.$element.parent(),m=this.getPosition(p);a="bottom"==a&&c.bottom+d>m.bottom?"top":"top"==a&&c.top-d<m.top?"bottom":"right"==a&&c.right+h>m.width?"left":"left"==a&&c.left-h<m.left?"right":a,o.removeClass(f).addClass(a)}var g=this.getCalculatedOffset(a,c,h,d);this.applyPlacement(g,a);var v=function(){var e=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==e&&i.leave(i)};e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",v).emulateTransitionEnd(r.TRANSITION_DURATION):v()}},r.prototype.applyPlacement=function(t,r){var n=this.tip(),i=n[0].offsetWidth,o=n[0].offsetHeight,s=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top=t.top+s,t.left=t.left+a,e.offset.setOffset(n[0],e.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),n.addClass("in");var l=n[0].offsetWidth,u=n[0].offsetHeight;"top"==r&&u!=o&&(t.top=t.top+o-u);var c=this.getViewportAdjustedDelta(r,t,l,u);c.left?t.left+=c.left:t.top+=c.top;var h=/top|bottom/.test(r),d=h?2*c.left-i+l:2*c.top-o+u,f=h?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(d,n[0][f],h)},r.prototype.replaceArrow=function(e,t,r){this.arrow().css(r?"left":"top",50*(1-e/t)+"%").css(r?"top":"left","")},r.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},r.prototype.hide=function(t){function n(){"in"!=i.hoverState&&o.detach(),i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),t&&t()}var i=this,o=this.tip(),s=e.Event("hide.bs."+this.type);return this.$element.trigger(s),s.isDefaultPrevented()?void 0:(o.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(r.TRANSITION_DURATION):n(),this.hoverState=null,this)},r.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},r.prototype.hasContent=function(){return this.getTitle()},r.prototype.getPosition=function(t){t=t||this.$element;var r=t[0],n="BODY"==r.tagName,i=r.getBoundingClientRect();null==i.width&&(i=e.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=n?{top:0,left:0}:t.offset(),s={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},a=n?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},i,s,a,o)},r.prototype.getCalculatedOffset=function(e,t,r,n){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-r/2}:"top"==e?{top:t.top-n,left:t.left+t.width/2-r/2}:"left"==e?{top:t.top+t.height/2-n/2,left:t.left-r}:{top:t.top+t.height/2-n/2,left:t.left+t.width}},r.prototype.getViewportAdjustedDelta=function(e,t,r,n){var i={top:0,left:0};if(!this.$viewport)return i;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var a=t.top-o-s.scroll,l=t.top+o-s.scroll+n;a<s.top?i.top=s.top-a:l>s.top+s.height&&(i.top=s.top+s.height-l)}else{var u=t.left-o,c=t.left+o+r;u<s.left?i.left=s.left-u:c>s.width&&(i.left=s.left+s.width-c)}return i},r.prototype.getTitle=function(){var e,t=this.$element,r=this.options;return e=t.attr("data-original-title")||("function"==typeof r.title?r.title.call(t[0]):r.title)},r.prototype.getUID=function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e));return e},r.prototype.tip=function(){return this.$tip=this.$tip||e(this.options.template)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},r.prototype.enable=function(){this.enabled=!0},r.prototype.disable=function(){this.enabled=!1},r.prototype.toggleEnabled=function(){this.enabled=!this.enabled},r.prototype.toggle=function(t){var r=this;t&&(r=e(t.currentTarget).data("bs."+this.type),r||(r=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,r))),r.tip().hasClass("in")?r.leave(r):r.enter(r)},r.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type)})};var n=e.fn.tooltip;e.fn.tooltip=t,e.fn.tooltip.Constructor=r,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.popover"),o="object"==typeof t&&t,s=o&&o.selector;(i||"destroy"!=t)&&(s?(i||n.data("bs.popover",i={}),i[s]||(i[s]=new r(this,o))):i||n.data("bs.popover",i=new r(this,o)),"string"==typeof t&&i[t]())})}var r=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.3.1",r.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),r.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),r.prototype.constructor=r,r.prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),r=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof r?"html":"append":"text"](r),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},r.prototype.tip=function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip};var n=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=r,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),+function(e){"use strict";function t(r,n){var i=e.proxy(this.process,this);this.$body=e("body"),this.$scrollElement=e(e(r).is("body")?window:r),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",i),this.refresh(),this.process()}function r(r){return this.each(function(){var n=e(this),i=n.data("bs.scrollspy"),o="object"==typeof r&&r;i||n.data("bs.scrollspy",i=new t(this,o)),"string"==typeof r&&i[r]()})}t.VERSION="3.3.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t="offset",r=0;e.isWindow(this.$scrollElement[0])||(t="position",r=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var n=this;this.$body.find(this.selector).map(function(){var n=e(this),i=n.data("target")||n.attr("href"),o=/^#./.test(i)&&e(i);return o&&o.length&&o.is(":visible")&&[[o[t]().top+r,i]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,r=this.getScrollHeight(),n=this.options.offset+r-this.$scrollElement.height(),i=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=r&&this.refresh(),t>=n)return s!=(e=o[o.length-1])&&this.activate(e);if(s&&t<i[0])return this.activeTarget=null,this.clear();for(e=i.length;e--;)s!=o[e]&&t>=i[e]&&(!i[e+1]||t<=i[e+1])&&this.activate(o[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=e.fn.scrollspy;e.fn.scrollspy=r,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);r.call(t,t.data())})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.tab");i||n.data("bs.tab",i=new r(this)),"string"==typeof t&&i[t]()})}var r=function(t){this.element=e(t)};r.VERSION="3.3.1",r.TRANSITION_DURATION=150,r.prototype.show=function(){var t=this.element,r=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=t.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var i=r.find(".active:last a"),o=e.Event("hide.bs.tab",{relatedTarget:t[0]}),s=e.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),t.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=e(n);this.activate(t.closest("li"),r),this.activate(a,a.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},r.prototype.activate=function(t,n,i){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var s=n.find("> .active"),a=i&&e.support.transition&&(s.length&&s.hasClass("fade")||!!n.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(r.TRANSITION_DURATION):o(),s.removeClass("in")};var n=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=r,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var i=function(r){r.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.affix"),o="object"==typeof t&&t;i||n.data("bs.affix",i=new r(this,o)),"string"==typeof t&&i[t]()})}var r=function(t,n){this.options=e.extend({},r.DEFAULTS,n),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};r.VERSION="3.3.1",r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0,target:window},r.prototype.getState=function(e,t,r,n){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=r&&"top"==this.affixed)return r>i?"top":!1;if("bottom"==this.affixed)return null!=r?i+this.unpin<=o.top?!1:"bottom":e-n>=i+s?!1:"bottom";var a=null==this.affixed,l=a?i:o.top,u=a?s:t;return null!=r&&r>=l?"top":null!=n&&l+u>=e-n?"bottom":!1},r.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(r.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},r.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},r.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),n=this.options.offset,i=n.top,o=n.bottom,s=e("body").height();"object"!=typeof n&&(o=i=n),"function"==typeof i&&(i=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var a=this.getState(s,t,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),u=e.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(r.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-t-o})}};var n=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=r,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var r=e(this),n=r.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),t.call(r,n)})})}(jQuery),function(){"use strict";var e=this,t=e.Chart,r=function(e){this.canvas=e.canvas,this.ctx=e;var t=function(e,t){return e["offset"+t]?e["offset"+t]:document.defaultView.getComputedStyle(e).getPropertyValue(t)},r=this.width=t(e.canvas,"Width"),i=this.height=t(e.canvas,"Height");e.canvas.width=r,e.canvas.height=i;var r=this.width=e.canvas.width,i=this.height=e.canvas.height;return this.aspectRatio=this.width/this.height,n.retinaScale(this),this};r.defaults={global:{animation:!0,animationSteps:60,animationEasing:"easeOutQuart",showScale:!0,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleIntegersOnly:!0,scaleBeginAtZero:!1,scaleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",responsive:!1,maintainAspectRatio:!0,showTooltips:!0,customTooltips:!1,tooltipEvents:["mousemove","touchstart","touchmove","mouseout"],tooltipFillColor:"rgba(0,0,0,0.8)",tooltipFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipFontSize:14,tooltipFontStyle:"normal",tooltipFontColor:"#fff",tooltipTitleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipTitleFontSize:14,tooltipTitleFontStyle:"bold",tooltipTitleFontColor:"#fff",tooltipYPadding:6,tooltipXPadding:6,tooltipCaretSize:8,tooltipCornerRadius:6,tooltipXOffset:10,tooltipTemplate:"<%if (label){%><%=label%>: <%}%><%= value %>",multiTooltipTemplate:"<%= value %>",multiTooltipKeyBackground:"#fff",onAnimationProgress:function(){},onAnimationComplete:function(){}}},r.types={};var n=r.helpers={},i=n.each=function(e,t,r){var n=Array.prototype.slice.call(arguments,3);if(e)if(e.length===+e.length){var i;for(i=0;i<e.length;i++)t.apply(r,[e[i],i].concat(n))}else for(var o in e)t.apply(r,[e[o],o].concat(n))},o=n.clone=function(e){var t={};return i(e,function(r,n){e.hasOwnProperty(n)&&(t[n]=r)}),t},s=n.extend=function(e){return i(Array.prototype.slice.call(arguments,1),function(t){i(t,function(r,n){t.hasOwnProperty(n)&&(e[n]=r)})}),e},a=n.merge=function(e,t){var r=Array.prototype.slice.call(arguments,0);return r.unshift({}),s.apply(null,r)},l=n.indexOf=function(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},u=(n.where=function(e,t){var r=[];return n.each(e,function(e){t(e)&&r.push(e)}),r},n.findNextWhere=function(e,t,r){r||(r=-1);for(var n=r+1;n<e.length;n++){var i=e[n];if(t(i))return i}},n.findPreviousWhere=function(e,t,r){r||(r=e.length);for(var n=r-1;n>=0;n--){var i=e[n];if(t(i))return i}},n.inherits=function(e){var t=this,r=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},n=function(){this.constructor=r};return n.prototype=t.prototype,r.prototype=new n,r.extend=u,e&&s(r.prototype,e),r.__super__=t.prototype,r}),c=n.noop=function(){},h=n.uid=function(){var e=0;return function(){return"chart-"+e++}}(),d=n.warn=function(e){window.console&&"function"==typeof window.console.warn&&console.warn(e)},f=n.amd="function"==typeof define&&define.amd,p=n.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},m=n.max=function(e){return Math.max.apply(Math,e)},g=n.min=function(e){return Math.min.apply(Math,e)},v=(n.cap=function(e,t,r){if(p(t)){if(e>t)return t}else if(p(r)&&r>e)return r;return e},n.getDecimalPlaces=function(e){return Math.abs(e)<1e-6?6+(1e6*e).toString().split(".")[1].length:e%1!==0&&p(e)?e.toString().split(".")[1].length:0}),y=n.radians=function(e){return e*(Math.PI/180)},b=(n.getAngleFromPoint=function(e,t){var r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n),o=2*Math.PI+Math.atan2(n,r);return 0>r&&0>n&&(o+=2*Math.PI),{angle:o,distance:i}},n.aliasPixel=function(e){return e%2===0?0:.5}),_=(n.splineCurve=function(e,t,r,n){var i=Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)),o=Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2)),s=n*i/(i+o),a=n*o/(i+o);return{inner:{x:t.x-s*(r.x-e.x),y:t.y-s*(r.y-e.y)},outer:{x:t.x+a*(r.x-e.x),y:t.y+a*(r.y-e.y)}}},n.calculateOrderOfMagnitude=function(e){return Math.floor(Math.log(e)/Math.LN10)}),w=(n.calculateScaleRange=function(e,t,r,n,i){var o=2,s=Math.floor(t/(1.5*r)),a=o>=s,l=m(e),u=g(e);l===u&&(l+=.5,u>=.5&&!n?u-=.5:l+=.5);for(var c=Math.abs(l-u),h=_(c),d=Math.ceil(l/(1*Math.pow(10,h)))*Math.pow(10,h),f=n?0:Math.floor(u/(1*Math.pow(10,h)))*Math.pow(10,h),p=d-f,v=Math.pow(10,h),y=Math.round(p/v);(y>s||s>2*y)&&!a;)if(y>s)v*=2,y=Math.round(p/v),y%1!==0&&(a=!0);else if(i&&h>=0){if(v/2%1!==0)break;v/=2,y=Math.round(p/v)}else v/=2,y=Math.round(p/v);return a&&(y=o,v=p/y),{steps:y,stepValue:v,min:f,max:f+y*v}},n.template=function(e,t){function r(e,t){var r=/\W/.test(e)?new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+e.replace(/[\r\t\n]/g," ").split("<%").join(" ").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split(" ").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):n[e]=n[e];return t?r(t):r}if(e instanceof Function)return e(t);var n={};return r(e,t)}),x=(n.generateLabels=function(e,t,r,n){var o=new Array(t);return labelTemplateString&&i(o,function(t,i){o[i]=w(e,{value:r+n*(i+1)})}),o},n.easingEffects={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-1*e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-0.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1*((e=e/1-1)*e*e+1)},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-1*((e=e/1-1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-0.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return 1*(e/=1)*e*e*e*e},easeOutQuint:function(e){return 1*((e=e/1-1)*e*e*e*e+1)},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return-1*Math.cos(e/1*(Math.PI/2))+1},easeOutSine:function(e){return 1*Math.sin(e/1*(Math.PI/2))},easeInOutSine:function(e){return-0.5*(Math.cos(Math.PI*e/1)-1)},easeInExpo:function(e){return 0===e?1:1*Math.pow(2,10*(e/1-1))},easeOutExpo:function(e){return 1===e?1:1*(-Math.pow(2,-10*e/1)+1)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(-Math.pow(2,-10*--e)+2)},easeInCirc:function(e){return e>=1?e:-1*(Math.sqrt(1-(e/=1)*e)-1)},easeOutCirc:function(e){return 1*Math.sqrt(1-(e=e/1-1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-0.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:1==(e/=1)?1:(r||(r=.3),n<Math.abs(1)?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),-(n*Math.pow(2,10*(e-=1))*Math.sin(2*(1*e-t)*Math.PI/r)))},easeOutElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:1==(e/=1)?1:(r||(r=.3),n<Math.abs(1)?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*e)*Math.sin(2*(1*e-t)*Math.PI/r)+1)},easeInOutElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:2==(e/=.5)?1:(r||(r=.3*1.5),n<Math.abs(1)?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),1>e?-.5*n*Math.pow(2,10*(e-=1))*Math.sin(2*(1*e-t)*Math.PI/r):n*Math.pow(2,-10*(e-=1))*Math.sin(2*(1*e-t)*Math.PI/r)*.5+1)},easeInBack:function(e){var t=1.70158;return 1*(e/=1)*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return 1*((e=e/1-1)*e*((t+1)*e+t)+1)},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?.5*e*e*(((t*=1.525)+1)*e-t):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:function(e){return 1-x.easeOutBounce(1-e)},easeOutBounce:function(e){return(e/=1)<1/2.75?7.5625*e*e:2/2.75>e?1*(7.5625*(e-=1.5/2.75)*e+.75):2.5/2.75>e?1*(7.5625*(e-=2.25/2.75)*e+.9375):1*(7.5625*(e-=2.625/2.75)*e+.984375)},easeInOutBounce:function(e){return.5>e?.5*x.easeInBounce(2*e):.5*x.easeOutBounce(2*e-1)+.5}}),C=n.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),E=n.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(e){return window.clearTimeout(e,1e3/60)}}(),S=(n.animationLoop=function(e,t,r,n,i,o){var s=0,a=x[r]||x.linear,l=function(){s++;var r=s/t,u=a(r);e.call(o,u,r,s),n.call(o,u,r),t>s?o.animationFrame=C(l):i.apply(o)};C(l)},n.getRelativePosition=function(e){var t,r,n=e.originalEvent||e,i=e.currentTarget||e.srcElement,o=i.getBoundingClientRect();return n.touches?(t=n.touches[0].clientX-o.left,r=n.touches[0].clientY-o.top):(t=n.clientX-o.left,r=n.clientY-o.top),{x:t,y:r}},n.addEvent=function(e,t,r){e.addEventListener?e.addEventListener(t,r):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r}),T=n.removeEvent=function(e,t,r){e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=c},A=(n.bindEvents=function(e,t,r){e.events||(e.events={}),i(t,function(t){e.events[t]=function(){r.apply(e,arguments)},S(e.chart.canvas,t,e.events[t])})},n.unbindEvents=function(e,t){i(t,function(t,r){T(e.chart.canvas,r,t)})}),k=n.getMaximumWidth=function(e){var t=e.parentNode;return t.clientWidth},P=n.getMaximumHeight=function(e){var t=e.parentNode;return t.clientHeight},O=(n.getMaximumSize=n.getMaximumWidth,n.retinaScale=function(e){var t=e.ctx,r=e.canvas.width,n=e.canvas.height;window.devicePixelRatio&&(t.canvas.style.width=r+"px",t.canvas.style.height=n+"px",t.canvas.height=n*window.devicePixelRatio,t.canvas.width=r*window.devicePixelRatio,t.scale(window.devicePixelRatio,window.devicePixelRatio))}),R=n.clear=function(e){e.ctx.clearRect(0,0,e.width,e.height)},N=n.fontString=function(e,t,r){return t+" "+e+"px "+r},M=n.longestText=function(e,t,r){e.font=t;var n=0;return i(r,function(t){var r=e.measureText(t).width;n=r>n?r:n}),n},D=n.drawRoundedRectangle=function(e,t,r,n,i,o){e.beginPath(),e.moveTo(t+o,r),e.lineTo(t+n-o,r),e.quadraticCurveTo(t+n,r,t+n,r+o),e.lineTo(t+n,r+i-o),e.quadraticCurveTo(t+n,r+i,t+n-o,r+i),e.lineTo(t+o,r+i),e.quadraticCurveTo(t,r+i,t,r+i-o),e.lineTo(t,r+o),e.quadraticCurveTo(t,r,t+o,r),e.closePath()};r.instances={},r.Type=function(e,t,n){this.options=t,this.chart=n,this.id=h(),r.instances[this.id]=this,t.responsive&&this.resize(),this.initialize.call(this,e)},s(r.Type.prototype,{initialize:function(){return this},clear:function(){return R(this.chart),this},stop:function(){return E(this.animationFrame),this},resize:function(e){this.stop();var t=this.chart.canvas,r=k(this.chart.canvas),n=this.options.maintainAspectRatio?r/this.chart.aspectRatio:P(this.chart.canvas);return t.width=this.chart.width=r,t.height=this.chart.height=n,O(this.chart),"function"==typeof e&&e.apply(this,Array.prototype.slice.call(arguments,1)),this},reflow:c,render:function(e){return e&&this.reflow(),this.options.animation&&!e?n.animationLoop(this.draw,this.options.animationSteps,this.options.animationEasing,this.options.onAnimationProgress,this.options.onAnimationComplete,this):(this.draw(),this.options.onAnimationComplete.call(this)),this},generateLegend:function(){return w(this.options.legendTemplate,this)},destroy:function(){this.clear(),A(this,this.events);var e=this.chart.canvas;e.width=this.chart.width,e.height=this.chart.height,e.style.removeProperty?(e.style.removeProperty("width"),e.style.removeProperty("height")):(e.style.removeAttribute("width"),e.style.removeAttribute("height")),delete r.instances[this.id]},showTooltip:function(e,t){"undefined"==typeof this.activeElements&&(this.activeElements=[]);var o=function(e){var t=!1;return e.length!==this.activeElements.length?t=!0:(i(e,function(e,r){e!==this.activeElements[r]&&(t=!0)},this),t)}.call(this,e);if(o||t){if(this.activeElements=e,this.draw(),this.options.customTooltips&&this.options.customTooltips(!1),e.length>0)if(this.datasets&&this.datasets.length>1){for(var s,a,u=this.datasets.length-1;u>=0&&(s=this.datasets[u].points||this.datasets[u].bars||this.datasets[u].segments,a=l(s,e[0]),-1===a);u--);var c=[],h=[],d=function(e){var t,r,i,o,s,l=[],u=[],d=[];return n.each(this.datasets,function(e){t=e.points||e.bars||e.segments,t[a]&&t[a].hasValue()&&l.push(t[a])}),n.each(l,function(e){u.push(e.x),d.push(e.y),c.push(n.template(this.options.multiTooltipTemplate,e)),h.push({fill:e._saved.fillColor||e.fillColor,stroke:e._saved.strokeColor||e.strokeColor})},this),s=g(d),i=m(d),o=g(u),r=m(u),{x:o>this.chart.width/2?o:r,y:(s+i)/2}}.call(this,a);new r.MultiTooltip({x:d.x,y:d.y,xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,xOffset:this.options.tooltipXOffset,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,titleTextColor:this.options.tooltipTitleFontColor,titleFontFamily:this.options.tooltipTitleFontFamily,titleFontStyle:this.options.tooltipTitleFontStyle,titleFontSize:this.options.tooltipTitleFontSize,cornerRadius:this.options.tooltipCornerRadius,labels:c,legendColors:h,legendColorBackground:this.options.multiTooltipKeyBackground,title:e[0].label,chart:this.chart,ctx:this.chart.ctx,custom:this.options.customTooltips}).draw()}else i(e,function(e){var t=e.tooltipPosition();new r.Tooltip({x:Math.round(t.x),y:Math.round(t.y),xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,caretHeight:this.options.tooltipCaretSize,cornerRadius:this.options.tooltipCornerRadius,text:w(this.options.tooltipTemplate,e),chart:this.chart,custom:this.options.customTooltips}).draw()},this);return this}},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)}}),r.Type.extend=function(e){var t=this,n=function(){return t.apply(this,arguments)};if(n.prototype=o(t.prototype),s(n.prototype,e),n.extend=r.Type.extend,e.name||t.prototype.name){var i=e.name||t.prototype.name,l=r.defaults[t.prototype.name]?o(r.defaults[t.prototype.name]):{};r.defaults[i]=s(l,e.defaults),r.types[i]=n,r.prototype[i]=function(e,t){var o=a(r.defaults.global,r.defaults[i],t||{});return new n(e,o,this)}}else d("Name not provided for this chart, so it hasn't been registered");return t},r.Element=function(e){s(this,e),this.initialize.apply(this,arguments),this.save()},s(r.Element.prototype,{initialize:function(){},restore:function(e){return e?i(e,function(e){this[e]=this._saved[e]},this):s(this,this._saved),this},save:function(){return this._saved=o(this),delete this._saved._saved,this},update:function(e){return i(e,function(e,t){this._saved[t]=this[t],this[t]=e},this),this},transition:function(e,t){return i(e,function(e,r){this[r]=(e-this._saved[r])*t+this._saved[r]},this),this},tooltipPosition:function(){return{x:this.x,y:this.y}},hasValue:function(){return p(this.value)}}),r.Element.extend=u,r.Point=r.Element.extend({display:!0,inRange:function(e,t){var r=this.hitDetectionRadius+this.radius;return Math.pow(e-this.x,2)+Math.pow(t-this.y,2)<Math.pow(r,2)},draw:function(){if(this.display){var e=this.ctx;e.beginPath(),e.arc(this.x,this.y,this.radius,0,2*Math.PI),e.closePath(),e.strokeStyle=this.strokeColor,e.lineWidth=this.strokeWidth,e.fillStyle=this.fillColor,e.fill(),e.stroke()}}}),r.Arc=r.Element.extend({inRange:function(e,t){var r=n.getAngleFromPoint(this,{x:e,y:t}),i=r.angle>=this.startAngle&&r.angle<=this.endAngle,o=r.distance>=this.innerRadius&&r.distance<=this.outerRadius;return i&&o},tooltipPosition:function(){var e=this.startAngle+(this.endAngle-this.startAngle)/2,t=(this.outerRadius-this.innerRadius)/2+this.innerRadius;return{x:this.x+Math.cos(e)*t,y:this.y+Math.sin(e)*t}},draw:function(e){var t=this.ctx;t.beginPath(),t.arc(this.x,this.y,this.outerRadius,this.startAngle,this.endAngle),t.arc(this.x,this.y,this.innerRadius,this.endAngle,this.startAngle,!0),t.closePath(),t.strokeStyle=this.strokeColor,t.lineWidth=this.strokeWidth,t.fillStyle=this.fillColor,t.fill(),t.lineJoin="bevel",this.showStroke&&t.stroke()}}),r.Rectangle=r.Element.extend({draw:function(){var e=this.ctx,t=this.width/2,r=this.x-t,n=this.x+t,i=this.base-(this.base-this.y),o=this.strokeWidth/2;this.showStroke&&(r+=o,n-=o,i+=o),e.beginPath(),e.fillStyle=this.fillColor,e.strokeStyle=this.strokeColor,e.lineWidth=this.strokeWidth,e.moveTo(r,this.base),e.lineTo(r,i),e.lineTo(n,i),e.lineTo(n,this.base),e.fill(),this.showStroke&&e.stroke()},height:function(){return this.base-this.y},inRange:function(e,t){return e>=this.x-this.width/2&&e<=this.x+this.width/2&&t>=this.y&&t<=this.base}}),r.Tooltip=r.Element.extend({draw:function(){var e=this.chart.ctx;e.font=N(this.fontSize,this.fontStyle,this.fontFamily),this.xAlign="center",this.yAlign="above";var t=this.caretPadding=2,r=e.measureText(this.text).width+2*this.xPadding,n=this.fontSize+2*this.yPadding,i=n+this.caretHeight+t;this.x+r/2>this.chart.width?this.xAlign="left":this.x-r/2<0&&(this.xAlign="right"),this.y-i<0&&(this.yAlign="below");var o=this.x-r/2,s=this.y-i;if(e.fillStyle=this.fillColor,this.custom)this.custom(this);else{switch(this.yAlign){case"above":e.beginPath(),e.moveTo(this.x,this.y-t),e.lineTo(this.x+this.caretHeight,this.y-(t+this.caretHeight)),e.lineTo(this.x-this.caretHeight,this.y-(t+this.caretHeight)),e.closePath(),e.fill();break;case"below":s=this.y+t+this.caretHeight,e.beginPath(),e.moveTo(this.x,this.y+t),e.lineTo(this.x+this.caretHeight,this.y+t+this.caretHeight),e.lineTo(this.x-this.caretHeight,this.y+t+this.caretHeight),e.closePath(),e.fill()}switch(this.xAlign){case"left":o=this.x-r+(this.cornerRadius+this.caretHeight);break;case"right":o=this.x-(this.cornerRadius+this.caretHeight)}D(e,o,s,r,n,this.cornerRadius),e.fill(),e.fillStyle=this.textColor,e.textAlign="center",e.textBaseline="middle",e.fillText(this.text,o+r/2,s+n/2)}}}),r.MultiTooltip=r.Element.extend({initialize:function(){this.font=N(this.fontSize,this.fontStyle,this.fontFamily),this.titleFont=N(this.titleFontSize,this.titleFontStyle,this.titleFontFamily),this.height=this.labels.length*this.fontSize+(this.labels.length-1)*(this.fontSize/2)+2*this.yPadding+1.5*this.titleFontSize,this.ctx.font=this.titleFont;var e=this.ctx.measureText(this.title).width,t=M(this.ctx,this.font,this.labels)+this.fontSize+3,r=m([t,e]);this.width=r+2*this.xPadding;var n=this.height/2;this.y-n<0?this.y=n:this.y+n>this.chart.height&&(this.y=this.chart.height-n),this.x>this.chart.width/2?this.x-=this.xOffset+this.width:this.x+=this.xOffset},getLineHeight:function(e){var t=this.y-this.height/2+this.yPadding,r=e-1;return 0===e?t+this.titleFontSize/2:t+(1.5*this.fontSize*r+this.fontSize/2)+1.5*this.titleFontSize;
23
+ },draw:function(){if(this.custom)this.custom(this);else{D(this.ctx,this.x,this.y-this.height/2,this.width,this.height,this.cornerRadius);var e=this.ctx;e.fillStyle=this.fillColor,e.fill(),e.closePath(),e.textAlign="left",e.textBaseline="middle",e.fillStyle=this.titleTextColor,e.font=this.titleFont,e.fillText(this.title,this.x+this.xPadding,this.getLineHeight(0)),e.font=this.font,n.each(this.labels,function(t,r){e.fillStyle=this.textColor,e.fillText(t,this.x+this.xPadding+this.fontSize+3,this.getLineHeight(r+1)),e.fillStyle=this.legendColorBackground,e.fillRect(this.x+this.xPadding,this.getLineHeight(r+1)-this.fontSize/2,this.fontSize,this.fontSize),e.fillStyle=this.legendColors[r].fill,e.fillRect(this.x+this.xPadding,this.getLineHeight(r+1)-this.fontSize/2,this.fontSize,this.fontSize)},this)}}}),r.Scale=r.Element.extend({initialize:function(){this.fit()},buildYLabels:function(){this.yLabels=[];for(var e=v(this.stepValue),t=0;t<=this.steps;t++)this.yLabels.push(w(this.templateString,{value:(this.min+t*this.stepValue).toFixed(e)}));this.yLabelWidth=this.display&&this.showLabels?M(this.ctx,this.font,this.yLabels):0},addXLabel:function(e){this.xLabels.push(e),this.valuesCount++,this.fit()},removeXLabel:function(){this.xLabels.shift(),this.valuesCount--,this.fit()},fit:function(){this.startPoint=this.display?this.fontSize:0,this.endPoint=this.display?this.height-1.5*this.fontSize-5:this.height,this.startPoint+=this.padding,this.endPoint-=this.padding;var e,t=this.endPoint-this.startPoint;for(this.calculateYRange(t),this.buildYLabels(),this.calculateXLabelRotation();t>this.endPoint-this.startPoint;)t=this.endPoint-this.startPoint,e=this.yLabelWidth,this.calculateYRange(t),this.buildYLabels(),e<this.yLabelWidth&&this.calculateXLabelRotation()},calculateXLabelRotation:function(){this.ctx.font=this.font;var e,t,r=this.ctx.measureText(this.xLabels[0]).width,n=this.ctx.measureText(this.xLabels[this.xLabels.length-1]).width;if(this.xScalePaddingRight=n/2+3,this.xScalePaddingLeft=r/2>this.yLabelWidth+10?r/2:this.yLabelWidth+10,this.xLabelRotation=0,this.display){var i,o=M(this.ctx,this.font,this.xLabels);this.xLabelWidth=o;for(var s=Math.floor(this.calculateX(1)-this.calculateX(0))-6;this.xLabelWidth>s&&0===this.xLabelRotation||this.xLabelWidth>s&&this.xLabelRotation<=90&&this.xLabelRotation>0;)i=Math.cos(y(this.xLabelRotation)),e=i*r,t=i*n,e+this.fontSize/2>this.yLabelWidth+8&&(this.xScalePaddingLeft=e+this.fontSize/2),this.xScalePaddingRight=this.fontSize/2,this.xLabelRotation++,this.xLabelWidth=i*o;this.xLabelRotation>0&&(this.endPoint-=Math.sin(y(this.xLabelRotation))*o+3)}else this.xLabelWidth=0,this.xScalePaddingRight=this.padding,this.xScalePaddingLeft=this.padding},calculateYRange:c,drawingArea:function(){return this.startPoint-this.endPoint},calculateY:function(e){var t=this.drawingArea()/(this.min-this.max);return this.endPoint-t*(e-this.min)},calculateX:function(e){var t=(this.xLabelRotation>0,this.width-(this.xScalePaddingLeft+this.xScalePaddingRight)),r=t/Math.max(this.valuesCount-(this.offsetGridLines?0:1),1),n=r*e+this.xScalePaddingLeft;return this.offsetGridLines&&(n+=r/2),Math.round(n)},update:function(e){n.extend(this,e),this.fit()},draw:function(){var e=this.ctx,t=(this.endPoint-this.startPoint)/this.steps,r=Math.round(this.xScalePaddingLeft);this.display&&(e.fillStyle=this.textColor,e.font=this.font,i(this.yLabels,function(i,o){var s=this.endPoint-t*o,a=Math.round(s),l=this.showHorizontalLines;e.textAlign="right",e.textBaseline="middle",this.showLabels&&e.fillText(i,r-10,s),0!==o||l||(l=!0),l&&e.beginPath(),o>0?(e.lineWidth=this.gridLineWidth,e.strokeStyle=this.gridLineColor):(e.lineWidth=this.lineWidth,e.strokeStyle=this.lineColor),a+=n.aliasPixel(e.lineWidth),l&&(e.moveTo(r,a),e.lineTo(this.width,a),e.stroke(),e.closePath()),e.lineWidth=this.lineWidth,e.strokeStyle=this.lineColor,e.beginPath(),e.moveTo(r-5,a),e.lineTo(r,a),e.stroke(),e.closePath()},this),i(this.xLabels,function(t,r){var n=this.calculateX(r)+b(this.lineWidth),i=this.calculateX(r-(this.offsetGridLines?.5:0))+b(this.lineWidth),o=this.xLabelRotation>0,s=this.showVerticalLines;0!==r||s||(s=!0),s&&e.beginPath(),r>0?(e.lineWidth=this.gridLineWidth,e.strokeStyle=this.gridLineColor):(e.lineWidth=this.lineWidth,e.strokeStyle=this.lineColor),s&&(e.moveTo(i,this.endPoint),e.lineTo(i,this.startPoint-3),e.stroke(),e.closePath()),e.lineWidth=this.lineWidth,e.strokeStyle=this.lineColor,e.beginPath(),e.moveTo(i,this.endPoint),e.lineTo(i,this.endPoint+5),e.stroke(),e.closePath(),e.save(),e.translate(n,o?this.endPoint+12:this.endPoint+8),e.rotate(-1*y(this.xLabelRotation)),e.font=this.font,e.textAlign=o?"right":"center",e.textBaseline=o?"middle":"top",e.fillText(t,0,0),e.restore()},this))}}),r.RadialScale=r.Element.extend({initialize:function(){this.size=g([this.height,this.width]),this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2},calculateCenterOffset:function(e){var t=this.drawingArea/(this.max-this.min);return(e-this.min)*t},update:function(){this.lineArc?this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2:this.setScaleSize(),this.buildYLabels()},buildYLabels:function(){this.yLabels=[];for(var e=v(this.stepValue),t=0;t<=this.steps;t++)this.yLabels.push(w(this.templateString,{value:(this.min+t*this.stepValue).toFixed(e)}))},getCircumference:function(){return 2*Math.PI/this.valuesCount},setScaleSize:function(){var e,t,r,n,i,o,s,a,l,u,c,h,d=g([this.height/2-this.pointLabelFontSize-5,this.width/2]),f=this.width,m=0;for(this.ctx.font=N(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),t=0;t<this.valuesCount;t++)e=this.getPointPosition(t,d),r=this.ctx.measureText(w(this.templateString,{value:this.labels[t]})).width+5,0===t||t===this.valuesCount/2?(n=r/2,e.x+n>f&&(f=e.x+n,i=t),e.x-n<m&&(m=e.x-n,s=t)):t<this.valuesCount/2?e.x+r>f&&(f=e.x+r,i=t):t>this.valuesCount/2&&e.x-r<m&&(m=e.x-r,s=t);l=m,u=Math.ceil(f-this.width),o=this.getIndexAngle(i),a=this.getIndexAngle(s),c=u/Math.sin(o+Math.PI/2),h=l/Math.sin(a+Math.PI/2),c=p(c)?c:0,h=p(h)?h:0,this.drawingArea=d-(h+c)/2,this.setCenterPoint(h,c)},setCenterPoint:function(e,t){var r=this.width-t-this.drawingArea,n=e+this.drawingArea;this.xCenter=(n+r)/2,this.yCenter=this.height/2},getIndexAngle:function(e){var t=2*Math.PI/this.valuesCount;return e*t-Math.PI/2},getPointPosition:function(e,t){var r=this.getIndexAngle(e);return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter}},draw:function(){if(this.display){var e=this.ctx;if(i(this.yLabels,function(t,r){if(r>0){var n,i=r*(this.drawingArea/this.steps),o=this.yCenter-i;if(this.lineWidth>0)if(e.strokeStyle=this.lineColor,e.lineWidth=this.lineWidth,this.lineArc)e.beginPath(),e.arc(this.xCenter,this.yCenter,i,0,2*Math.PI),e.closePath(),e.stroke();else{e.beginPath();for(var s=0;s<this.valuesCount;s++)n=this.getPointPosition(s,this.calculateCenterOffset(this.min+r*this.stepValue)),0===s?e.moveTo(n.x,n.y):e.lineTo(n.x,n.y);e.closePath(),e.stroke()}if(this.showLabels){if(e.font=N(this.fontSize,this.fontStyle,this.fontFamily),this.showLabelBackdrop){var a=e.measureText(t).width;e.fillStyle=this.backdropColor,e.fillRect(this.xCenter-a/2-this.backdropPaddingX,o-this.fontSize/2-this.backdropPaddingY,a+2*this.backdropPaddingX,this.fontSize+2*this.backdropPaddingY)}e.textAlign="center",e.textBaseline="middle",e.fillStyle=this.fontColor,e.fillText(t,this.xCenter,o)}}},this),!this.lineArc){e.lineWidth=this.angleLineWidth,e.strokeStyle=this.angleLineColor;for(var t=this.valuesCount-1;t>=0;t--){if(this.angleLineWidth>0){var r=this.getPointPosition(t,this.calculateCenterOffset(this.max));e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(r.x,r.y),e.stroke(),e.closePath()}var n=this.getPointPosition(t,this.calculateCenterOffset(this.max)+5);e.font=N(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),e.fillStyle=this.pointLabelFontColor;var o=this.labels.length,s=this.labels.length/2,a=s/2,l=a>t||t>o-a,u=t===a||t===o-a;0===t?e.textAlign="center":t===s?e.textAlign="center":s>t?e.textAlign="left":e.textAlign="right",u?e.textBaseline="middle":l?e.textBaseline="bottom":e.textBaseline="top",e.fillText(this.labels[t],n.x,n.y)}}}}}),n.addEvent(window,"resize",function(){var e;return function(){clearTimeout(e),e=setTimeout(function(){i(r.instances,function(e){e.options.responsive&&e.resize(e.render,!0)})},50)}}()),f?define(function(){return r}):"object"==typeof module&&module.exports&&(module.exports=r),e.Chart=r,r.noConflict=function(){return e.Chart=t,r}}.call(this),function(){"use strict";var e=this,t=e.Chart,r=t.helpers,n={scaleBeginAtZero:!0,scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].fillColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'};t.Type.extend({name:"Bar",defaults:n,initialize:function(e){var n=this.options;this.ScaleClass=t.Scale.extend({offsetGridLines:!0,calculateBarX:function(e,t,r){var i=this.calculateBaseWidth(),o=this.calculateX(r)-i/2,s=this.calculateBarWidth(e);return o+s*t+t*n.barDatasetSpacing+s/2},calculateBaseWidth:function(){return this.calculateX(1)-this.calculateX(0)-2*n.barValueSpacing},calculateBarWidth:function(e){var t=this.calculateBaseWidth()-(e-1)*n.barDatasetSpacing;return t/e}}),this.datasets=[],this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getBarsAtEvent(e):[];this.eachBars(function(e){e.restore(["fillColor","strokeColor"])}),r.each(t,function(e){e.fillColor=e.highlightFill,e.strokeColor=e.highlightStroke}),this.showTooltip(t)}),this.BarClass=t.Rectangle.extend({strokeWidth:this.options.barStrokeWidth,showStroke:this.options.barShowStroke,ctx:this.chart.ctx}),r.each(e.datasets,function(t,n){var i={label:t.label||null,fillColor:t.fillColor,strokeColor:t.strokeColor,bars:[]};this.datasets.push(i),r.each(t.data,function(r,n){i.bars.push(new this.BarClass({value:r,label:e.labels[n],datasetLabel:t.label,strokeColor:t.strokeColor,fillColor:t.fillColor,highlightFill:t.highlightFill||t.fillColor,highlightStroke:t.highlightStroke||t.strokeColor}))},this)},this),this.buildScale(e.labels),this.BarClass.prototype.base=this.scale.endPoint,this.eachBars(function(e,t,n){r.extend(e,{width:this.scale.calculateBarWidth(this.datasets.length),x:this.scale.calculateBarX(this.datasets.length,n,t),y:this.scale.endPoint}),e.save()},this),this.render()},update:function(){this.scale.update(),r.each(this.activeElements,function(e){e.restore(["fillColor","strokeColor"])}),this.eachBars(function(e){e.save()}),this.render()},eachBars:function(e){r.each(this.datasets,function(t,n){r.each(t.bars,e,this,n)},this)},getBarsAtEvent:function(e){for(var t,n=[],i=r.getRelativePosition(e),o=function(e){n.push(e.bars[t])},s=0;s<this.datasets.length;s++)for(t=0;t<this.datasets[s].bars.length;t++)if(this.datasets[s].bars[t].inRange(i.x,i.y))return r.each(this.datasets,o),n;return n},buildScale:function(e){var t=this,n=function(){var e=[];return t.eachBars(function(t){e.push(t.value)}),e},i={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:e.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(e){var t=r.calculateScaleRange(n(),e,this.fontSize,this.beginAtZero,this.integersOnly);r.extend(this,t)},xLabels:e,font:r.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.barShowStroke?this.options.barStrokeWidth:0,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&r.extend(i,{calculateYRange:r.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new this.ScaleClass(i)},addData:function(e,t){r.each(e,function(e,r){this.datasets[r].bars.push(new this.BarClass({value:e,label:t,x:this.scale.calculateBarX(this.datasets.length,r,this.scale.valuesCount+1),y:this.scale.endPoint,width:this.scale.calculateBarWidth(this.datasets.length),base:this.scale.endPoint,strokeColor:this.datasets[r].strokeColor,fillColor:this.datasets[r].fillColor}))},this),this.scale.addXLabel(t),this.update()},removeData:function(){this.scale.removeXLabel(),r.each(this.datasets,function(e){e.bars.shift()},this),this.update()},reflow:function(){r.extend(this.BarClass.prototype,{y:this.scale.endPoint,base:this.scale.endPoint});var e=r.extend({height:this.chart.height,width:this.chart.width});this.scale.update(e)},draw:function(e){var t=e||1;this.clear();this.chart.ctx;this.scale.draw(t),r.each(this.datasets,function(e,n){r.each(e.bars,function(e,r){e.hasValue()&&(e.base=this.scale.endPoint,e.transition({x:this.scale.calculateBarX(this.datasets.length,n,r),y:this.scale.calculateY(e.value),width:this.scale.calculateBarWidth(this.datasets.length)},t).draw())},this)},this)}})}.call(this),function(){"use strict";var e=this,t=e.Chart,r=t.helpers,n={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'};t.Type.extend({name:"Doughnut",defaults:n,initialize:function(e){this.segments=[],this.outerRadius=(r.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,this.SegmentArc=t.Arc.extend({ctx:this.chart.ctx,x:this.chart.width/2,y:this.chart.height/2}),this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getSegmentsAtEvent(e):[];r.each(this.segments,function(e){e.restore(["fillColor"])}),r.each(t,function(e){e.fillColor=e.highlightColor}),this.showTooltip(t)}),this.calculateTotal(e),r.each(e,function(e,t){this.addData(e,t,!0)},this),this.render()},getSegmentsAtEvent:function(e){var t=[],n=r.getRelativePosition(e);return r.each(this.segments,function(e){e.inRange(n.x,n.y)&&t.push(e)},this),t},addData:function(e,t,r){var n=t||this.segments.length;this.segments.splice(n,0,new this.SegmentArc({value:e.value,outerRadius:this.options.animateScale?0:this.outerRadius,innerRadius:this.options.animateScale?0:this.outerRadius/100*this.options.percentageInnerCutout,fillColor:e.color,highlightColor:e.highlight||e.color,showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,startAngle:1.5*Math.PI,circumference:this.options.animateRotate?0:this.calculateCircumference(e.value),label:e.label})),r||(this.reflow(),this.update())},calculateCircumference:function(e){return 2*Math.PI*(Math.abs(e)/this.total)},calculateTotal:function(e){this.total=0,r.each(e,function(e){this.total+=Math.abs(e.value)},this)},update:function(){this.calculateTotal(this.segments),r.each(this.activeElements,function(e){e.restore(["fillColor"])}),r.each(this.segments,function(e){e.save()}),this.render()},removeData:function(e){var t=r.isNumber(e)?e:this.segments.length-1;this.segments.splice(t,1),this.reflow(),this.update()},reflow:function(){r.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.outerRadius=(r.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,r.each(this.segments,function(e){e.update({outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout})},this)},draw:function(e){var t=e?e:1;this.clear(),r.each(this.segments,function(e,r){e.transition({circumference:this.calculateCircumference(e.value),outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout},t),e.endAngle=e.startAngle+e.circumference,e.draw(),0===r&&(e.startAngle=1.5*Math.PI),r<this.segments.length-1&&(this.segments[r+1].startAngle=e.endAngle)},this)}}),t.types.Doughnut.extend({name:"Pie",defaults:r.merge(n,{percentageInnerCutout:0})})}.call(this),function(){"use strict";var e=this,t=e.Chart,r=t.helpers,n={scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,bezierCurve:!0,bezierCurveTension:.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'};t.Type.extend({name:"Line",defaults:n,initialize:function(e){this.PointClass=t.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx,inRange:function(e){return Math.pow(e-this.x,2)<Math.pow(this.radius+this.hitDetectionRadius,2)}}),this.datasets=[],this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getPointsAtEvent(e):[];this.eachPoints(function(e){e.restore(["fillColor","strokeColor"])}),r.each(t,function(e){e.fillColor=e.highlightFill,e.strokeColor=e.highlightStroke}),this.showTooltip(t)}),r.each(e.datasets,function(t){var n={label:t.label||null,fillColor:t.fillColor,strokeColor:t.strokeColor,pointColor:t.pointColor,pointStrokeColor:t.pointStrokeColor,points:[]};this.datasets.push(n),r.each(t.data,function(r,i){n.points.push(new this.PointClass({value:r,label:e.labels[i],datasetLabel:t.label,strokeColor:t.pointStrokeColor,fillColor:t.pointColor,highlightFill:t.pointHighlightFill||t.pointColor,highlightStroke:t.pointHighlightStroke||t.pointStrokeColor}))},this),this.buildScale(e.labels),this.eachPoints(function(e,t){r.extend(e,{x:this.scale.calculateX(t),y:this.scale.endPoint}),e.save()},this)},this),this.render()},update:function(){this.scale.update(),r.each(this.activeElements,function(e){e.restore(["fillColor","strokeColor"])}),this.eachPoints(function(e){e.save()}),this.render()},eachPoints:function(e){r.each(this.datasets,function(t){r.each(t.points,e,this)},this)},getPointsAtEvent:function(e){var t=[],n=r.getRelativePosition(e);return r.each(this.datasets,function(e){r.each(e.points,function(e){e.inRange(n.x,n.y)&&t.push(e)})},this),t},buildScale:function(e){var n=this,i=function(){var e=[];return n.eachPoints(function(t){e.push(t.value)}),e},o={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:e.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(e){var t=r.calculateScaleRange(i(),e,this.fontSize,this.beginAtZero,this.integersOnly);r.extend(this,t)},xLabels:e,font:r.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.pointDotRadius+this.options.pointDotStrokeWidth,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&r.extend(o,{calculateYRange:r.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new t.Scale(o)},addData:function(e,t){r.each(e,function(e,r){this.datasets[r].points.push(new this.PointClass({value:e,label:t,x:this.scale.calculateX(this.scale.valuesCount+1),y:this.scale.endPoint,strokeColor:this.datasets[r].pointStrokeColor,fillColor:this.datasets[r].pointColor}))},this),this.scale.addXLabel(t),this.update()},removeData:function(){this.scale.removeXLabel(),r.each(this.datasets,function(e){e.points.shift()},this),this.update()},reflow:function(){var e=r.extend({height:this.chart.height,width:this.chart.width});this.scale.update(e)},draw:function(e){var t=e||1;this.clear();var n=this.chart.ctx,i=function(e){return null!==e.value},o=function(e,t,n){return r.findNextWhere(t,i,n)||e},s=function(e,t,n){return r.findPreviousWhere(t,i,n)||e};this.scale.draw(t),r.each(this.datasets,function(e){var a=r.where(e.points,i);r.each(e.points,function(e,r){e.hasValue()&&e.transition({y:this.scale.calculateY(e.value),x:this.scale.calculateX(r)},t)},this),this.options.bezierCurve&&r.each(a,function(e,t){var n=t>0&&t<a.length-1?this.options.bezierCurveTension:0;e.controlPoints=r.splineCurve(s(e,a,t),e,o(e,a,t),n),e.controlPoints.outer.y>this.scale.endPoint?e.controlPoints.outer.y=this.scale.endPoint:e.controlPoints.outer.y<this.scale.startPoint&&(e.controlPoints.outer.y=this.scale.startPoint),e.controlPoints.inner.y>this.scale.endPoint?e.controlPoints.inner.y=this.scale.endPoint:e.controlPoints.inner.y<this.scale.startPoint&&(e.controlPoints.inner.y=this.scale.startPoint)},this),n.lineWidth=this.options.datasetStrokeWidth,n.strokeStyle=e.strokeColor,n.beginPath(),r.each(a,function(e,t){if(0===t)n.moveTo(e.x,e.y);else if(this.options.bezierCurve){var r=s(e,a,t);n.bezierCurveTo(r.controlPoints.outer.x,r.controlPoints.outer.y,e.controlPoints.inner.x,e.controlPoints.inner.y,e.x,e.y)}else n.lineTo(e.x,e.y)},this),n.stroke(),this.options.datasetFill&&a.length>0&&(n.lineTo(a[a.length-1].x,this.scale.endPoint),n.lineTo(a[0].x,this.scale.endPoint),n.fillStyle=e.fillColor,n.closePath(),n.fill()),r.each(a,function(e){e.draw()})},this)}})}.call(this),function(){"use strict";var e=this,t=e.Chart,r=t.helpers,n={scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBeginAtZero:!0,scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,scaleShowLine:!0,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'};t.Type.extend({name:"PolarArea",defaults:n,initialize:function(e){this.segments=[],this.SegmentArc=t.Arc.extend({showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,ctx:this.chart.ctx,innerRadius:0,x:this.chart.width/2,y:this.chart.height/2}),this.scale=new t.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,lineArc:!0,width:this.chart.width,height:this.chart.height,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,valuesCount:e.length}),this.updateScaleRange(e),this.scale.update(),r.each(e,function(e,t){this.addData(e,t,!0)},this),this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getSegmentsAtEvent(e):[];r.each(this.segments,function(e){e.restore(["fillColor"])}),r.each(t,function(e){e.fillColor=e.highlightColor}),this.showTooltip(t)}),this.render()},getSegmentsAtEvent:function(e){var t=[],n=r.getRelativePosition(e);return r.each(this.segments,function(e){e.inRange(n.x,n.y)&&t.push(e)},this),t},addData:function(e,t,r){var n=t||this.segments.length;this.segments.splice(n,0,new this.SegmentArc({fillColor:e.color,highlightColor:e.highlight||e.color,label:e.label,value:e.value,outerRadius:this.options.animateScale?0:this.scale.calculateCenterOffset(e.value),circumference:this.options.animateRotate?0:this.scale.getCircumference(),startAngle:1.5*Math.PI})),r||(this.reflow(),this.update())},removeData:function(e){var t=r.isNumber(e)?e:this.segments.length-1;this.segments.splice(t,1),this.reflow(),this.update()},calculateTotal:function(e){this.total=0,r.each(e,function(e){this.total+=e.value},this),this.scale.valuesCount=this.segments.length},updateScaleRange:function(e){var t=[];r.each(e,function(e){t.push(e.value)});var n=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:r.calculateScaleRange(t,r.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);r.extend(this.scale,n,{size:r.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2})},update:function(){this.calculateTotal(this.segments),r.each(this.segments,function(e){e.save()}),this.reflow(),this.render()},reflow:function(){r.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.updateScaleRange(this.segments),this.scale.update(),r.extend(this.scale,{xCenter:this.chart.width/2,yCenter:this.chart.height/2}),r.each(this.segments,function(e){e.update({outerRadius:this.scale.calculateCenterOffset(e.value)})},this)},draw:function(e){var t=e||1;this.clear(),r.each(this.segments,function(e,r){e.transition({circumference:this.scale.getCircumference(),outerRadius:this.scale.calculateCenterOffset(e.value)},t),e.endAngle=e.startAngle+e.circumference,0===r&&(e.startAngle=1.5*Math.PI),r<this.segments.length-1&&(this.segments[r+1].startAngle=e.endAngle),e.draw()},this),this.scale.draw()}})}.call(this),function(){"use strict";var e=this,t=e.Chart,r=t.helpers;t.Type.extend({name:"Radar",defaults:{scaleShowLine:!0,angleShowLineOut:!0,scaleShowLabels:!1,scaleBeginAtZero:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:10,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'},initialize:function(e){this.PointClass=t.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx}),this.datasets=[],this.buildScale(e),this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getPointsAtEvent(e):[];this.eachPoints(function(e){e.restore(["fillColor","strokeColor"])}),r.each(t,function(e){e.fillColor=e.highlightFill,e.strokeColor=e.highlightStroke}),this.showTooltip(t)}),r.each(e.datasets,function(t){var n={label:t.label||null,fillColor:t.fillColor,strokeColor:t.strokeColor,pointColor:t.pointColor,pointStrokeColor:t.pointStrokeColor,points:[]};this.datasets.push(n),r.each(t.data,function(r,i){var o;this.scale.animation||(o=this.scale.getPointPosition(i,this.scale.calculateCenterOffset(r))),n.points.push(new this.PointClass({value:r,label:e.labels[i],datasetLabel:t.label,x:this.options.animation?this.scale.xCenter:o.x,y:this.options.animation?this.scale.yCenter:o.y,strokeColor:t.pointStrokeColor,fillColor:t.pointColor,highlightFill:t.pointHighlightFill||t.pointColor,highlightStroke:t.pointHighlightStroke||t.pointStrokeColor}))},this)},this),this.render()},eachPoints:function(e){r.each(this.datasets,function(t){r.each(t.points,e,this)},this)},getPointsAtEvent:function(e){var t=r.getRelativePosition(e),n=r.getAngleFromPoint({x:this.scale.xCenter,y:this.scale.yCenter},t),i=2*Math.PI/this.scale.valuesCount,o=Math.round((n.angle-1.5*Math.PI)/i),s=[];return(o>=this.scale.valuesCount||0>o)&&(o=0),n.distance<=this.scale.drawingArea&&r.each(this.datasets,function(e){s.push(e.points[o])}),s},buildScale:function(e){this.scale=new t.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,angleLineColor:this.options.angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options.angleLineWidth:0,pointLabelFontColor:this.options.pointLabelFontColor,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this.options.pointLabelFontFamily,pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:e.labels,valuesCount:e.datasets[0].data.length}),this.scale.setScaleSize(),this.updateScaleRange(e.datasets),this.scale.buildYLabels()},updateScaleRange:function(e){var t=function(){var t=[];return r.each(e,function(e){e.data?t=t.concat(e.data):r.each(e.points,function(e){t.push(e.value)})}),t}(),n=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:r.calculateScaleRange(t,r.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);r.extend(this.scale,n)},addData:function(e,t){this.scale.valuesCount++,r.each(e,function(e,r){var n=this.scale.getPointPosition(this.scale.valuesCount,this.scale.calculateCenterOffset(e));this.datasets[r].points.push(new this.PointClass({value:e,label:t,x:n.x,y:n.y,strokeColor:this.datasets[r].pointStrokeColor,fillColor:this.datasets[r].pointColor}))},this),this.scale.labels.push(t),this.reflow(),this.update()},removeData:function(){this.scale.valuesCount--,
24
+ this.scale.labels.shift(),r.each(this.datasets,function(e){e.points.shift()},this),this.reflow(),this.update()},update:function(){this.eachPoints(function(e){e.save()}),this.reflow(),this.render()},reflow:function(){r.extend(this.scale,{width:this.chart.width,height:this.chart.height,size:r.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2}),this.updateScaleRange(this.datasets),this.scale.setScaleSize(),this.scale.buildYLabels()},draw:function(e){var t=e||1,n=this.chart.ctx;this.clear(),this.scale.draw(),r.each(this.datasets,function(e){r.each(e.points,function(e,r){e.hasValue()&&e.transition(this.scale.getPointPosition(r,this.scale.calculateCenterOffset(e.value)),t)},this),n.lineWidth=this.options.datasetStrokeWidth,n.strokeStyle=e.strokeColor,n.beginPath(),r.each(e.points,function(e,t){0===t?n.moveTo(e.x,e.y):n.lineTo(e.x,e.y)},this),n.closePath(),n.stroke(),n.fillStyle=e.fillColor,n.fill(),r.each(e.points,function(e){e.hasValue()&&e.draw()})},this)}})}.call(this),function(e){"use strict";function t(e,t){var r=(65535&e)+(65535&t),n=(e>>16)+(t>>16)+(r>>16);return n<<16|65535&r}function r(e,t){return e<<t|e>>>32-t}function n(e,n,i,o,s,a){return t(r(t(t(n,e),t(o,a)),s),i)}function i(e,t,r,i,o,s,a){return n(t&r|~t&i,e,t,o,s,a)}function o(e,t,r,i,o,s,a){return n(t&i|r&~i,e,t,o,s,a)}function s(e,t,r,i,o,s,a){return n(t^r^i,e,t,o,s,a)}function a(e,t,r,i,o,s,a){return n(r^(t|~i),e,t,o,s,a)}function l(e,r){e[r>>5]|=128<<r%32,e[(r+64>>>9<<4)+14]=r;var n,l,u,c,h,d=1732584193,f=-271733879,p=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)l=d,u=f,c=p,h=m,d=i(d,f,p,m,e[n],7,-680876936),m=i(m,d,f,p,e[n+1],12,-389564586),p=i(p,m,d,f,e[n+2],17,606105819),f=i(f,p,m,d,e[n+3],22,-1044525330),d=i(d,f,p,m,e[n+4],7,-176418897),m=i(m,d,f,p,e[n+5],12,1200080426),p=i(p,m,d,f,e[n+6],17,-1473231341),f=i(f,p,m,d,e[n+7],22,-45705983),d=i(d,f,p,m,e[n+8],7,1770035416),m=i(m,d,f,p,e[n+9],12,-1958414417),p=i(p,m,d,f,e[n+10],17,-42063),f=i(f,p,m,d,e[n+11],22,-1990404162),d=i(d,f,p,m,e[n+12],7,1804603682),m=i(m,d,f,p,e[n+13],12,-40341101),p=i(p,m,d,f,e[n+14],17,-1502002290),f=i(f,p,m,d,e[n+15],22,1236535329),d=o(d,f,p,m,e[n+1],5,-165796510),m=o(m,d,f,p,e[n+6],9,-1069501632),p=o(p,m,d,f,e[n+11],14,643717713),f=o(f,p,m,d,e[n],20,-373897302),d=o(d,f,p,m,e[n+5],5,-701558691),m=o(m,d,f,p,e[n+10],9,38016083),p=o(p,m,d,f,e[n+15],14,-660478335),f=o(f,p,m,d,e[n+4],20,-405537848),d=o(d,f,p,m,e[n+9],5,568446438),m=o(m,d,f,p,e[n+14],9,-1019803690),p=o(p,m,d,f,e[n+3],14,-187363961),f=o(f,p,m,d,e[n+8],20,1163531501),d=o(d,f,p,m,e[n+13],5,-1444681467),m=o(m,d,f,p,e[n+2],9,-51403784),p=o(p,m,d,f,e[n+7],14,1735328473),f=o(f,p,m,d,e[n+12],20,-1926607734),d=s(d,f,p,m,e[n+5],4,-378558),m=s(m,d,f,p,e[n+8],11,-2022574463),p=s(p,m,d,f,e[n+11],16,1839030562),f=s(f,p,m,d,e[n+14],23,-35309556),d=s(d,f,p,m,e[n+1],4,-1530992060),m=s(m,d,f,p,e[n+4],11,1272893353),p=s(p,m,d,f,e[n+7],16,-155497632),f=s(f,p,m,d,e[n+10],23,-1094730640),d=s(d,f,p,m,e[n+13],4,681279174),m=s(m,d,f,p,e[n],11,-358537222),p=s(p,m,d,f,e[n+3],16,-722521979),f=s(f,p,m,d,e[n+6],23,76029189),d=s(d,f,p,m,e[n+9],4,-640364487),m=s(m,d,f,p,e[n+12],11,-421815835),p=s(p,m,d,f,e[n+15],16,530742520),f=s(f,p,m,d,e[n+2],23,-995338651),d=a(d,f,p,m,e[n],6,-198630844),m=a(m,d,f,p,e[n+7],10,1126891415),p=a(p,m,d,f,e[n+14],15,-1416354905),f=a(f,p,m,d,e[n+5],21,-57434055),d=a(d,f,p,m,e[n+12],6,1700485571),m=a(m,d,f,p,e[n+3],10,-1894986606),p=a(p,m,d,f,e[n+10],15,-1051523),f=a(f,p,m,d,e[n+1],21,-2054922799),d=a(d,f,p,m,e[n+8],6,1873313359),m=a(m,d,f,p,e[n+15],10,-30611744),p=a(p,m,d,f,e[n+6],15,-1560198380),f=a(f,p,m,d,e[n+13],21,1309151649),d=a(d,f,p,m,e[n+4],6,-145523070),m=a(m,d,f,p,e[n+11],10,-1120210379),p=a(p,m,d,f,e[n+2],15,718787259),f=a(f,p,m,d,e[n+9],21,-343485551),d=t(d,l),f=t(f,u),p=t(p,c),m=t(m,h);return[d,f,p,m]}function u(e){var t,r="";for(t=0;t<32*e.length;t+=8)r+=String.fromCharCode(e[t>>5]>>>t%32&255);return r}function c(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;for(t=0;t<8*e.length;t+=8)r[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return r}function h(e){return u(l(c(e),8*e.length))}function d(e,t){var r,n,i=c(e),o=[],s=[];for(o[15]=s[15]=void 0,i.length>16&&(i=l(i,8*e.length)),r=0;16>r;r+=1)o[r]=909522486^i[r],s[r]=1549556828^i[r];return n=l(o.concat(c(t)),512+8*t.length),u(l(s.concat(n),640))}function f(e){var t,r,n="0123456789abcdef",i="";for(r=0;r<e.length;r+=1)t=e.charCodeAt(r),i+=n.charAt(t>>>4&15)+n.charAt(15&t);return i}function p(e){return unescape(encodeURIComponent(e))}function m(e){return h(p(e))}function g(e){return f(m(e))}function v(e,t){return d(p(e),p(t))}function y(e,t){return f(v(e,t))}function b(e,t,r){return t?r?v(t,e):y(t,e):r?m(e):g(e)}"function"==typeof define&&define.amd?define(function(){return b}):e.md5=b}(this),define("ember-moment",["ember-moment/index","ember","exports"],function(e,t,r){"use strict";t["default"].keys(e).forEach(function(t){r[t]=e[t]})}),define("ember-moment/computed",["exports","ember-moment/computeds/moment","ember-moment/computeds/ago","ember-moment/computeds/duration"],function(e,t,r,n){"use strict";e.moment=t["default"],e.ago=r["default"],e.duration=n["default"]}),define("ember-moment/computeds/ago",["exports","ember","moment","ember-moment/computeds/moment"],function(e,t,r,n){"use strict";function i(e,t){var i=[e],a=s(e,function(){var i,s,l;return i=[o(this,e)],arguments.length>1&&(s=n.descriptorFor.call(this,t),l=s?o(this,t):t,s&&-1===a._dependentKeys.indexOf(t)&&a.property(t),i.push(l)),r["default"].apply(this,i).fromNow()});return a.property.apply(a,i).readOnly()}var o=t["default"].get,s=t["default"].computed;e["default"]=i}),define("ember-moment/computeds/duration",["exports","ember","moment","ember-moment/computeds/moment"],function(e,t,r,n){"use strict";function i(e,t){var i=arguments.length,a=[e],l=s(e,function(){var s,a,u;return s=[o(this,e)],i>1&&(a=n.descriptorFor.call(this,t),u=a?o(this,t):t,a&&-1===l._dependentKeys.indexOf(t)&&l.property(t),s.push(u)),r["default"].duration.apply(this,s).humanize()});return l.property.apply(l,a).readOnly()}var o=t["default"].get,s=t["default"].computed;e["default"]=i}),define("ember-moment/computeds/moment",["exports","ember","moment"],function(e,t,r){"use strict";function n(e){var r=t["default"].meta(this);return r&&r.descs?r.descs[e]:void 0}function i(e,i,u){t["default"].assert("More than one argument passed into moment computed",arguments.length>1);var c,h=l.call(arguments);return h.shift(),c=s(e,function(){var t,s=this,l=[o(this,e)],d=a.map(h,function(e){return t=n.call(s,e),t&&-1===c._dependentKeys.indexOf(e)&&c.property(e),t?o(s,e):e});return i=d[0],d.length>1&&(u=d[1],l.push(u)),r["default"].apply(this,l).format(i)}).readOnly()}e.descriptorFor=n;var o=t["default"].get,s=t["default"].computed,a=t["default"].EnumerableUtils,l=Array.prototype.slice;e["default"]=i}),define("ember-moment/helpers/ago",["exports","ember","moment"],function(e,t,r){"use strict";var n;n=t["default"].HTMLBars?function(e){if(0===e.length)throw new TypeError("Invalid Number of arguments, expected at least 1");return r["default"].apply(this,e).fromNow()}:function(e,t){var n=arguments.length,i=[e];if(1===n)throw new TypeError("Invalid Number of arguments, expected at least 1");return n>3&&i.push(t),r["default"].apply(this,i).fromNow()},e["default"]=n}),define("ember-moment/helpers/duration",["exports","ember","moment"],function(e,t,r){"use strict";var n;n=t["default"].HTMLBars?function(e){var t=e.length;if(0===t||t>2)throw new TypeError("Invalid Number of arguments, expected 1 or 2");return r["default"].duration.apply(this,e).humanize()}:function(e,t){var n=arguments.length;if(1===n||n>3)throw new TypeError("Invalid Number of arguments, expected 1 or 2");var i=[e];return 3===n&&i.push(t),r["default"].duration.apply(this,i).humanize()},e["default"]=n}),define("ember-moment/helpers/moment",["exports","ember","moment"],function(e,t,r){"use strict";var n;n=t["default"].HTMLBars?function(e){var t,n=e.length,i=[];if(0===n||n>3)throw new TypeError("Invalid Number of arguments, expected at least 1 and at most 3");return i.push(e[0]),1===n?t="LLLL":2===n?t=e[1]:n>2&&(i.push(e[2]),t=e[1]),r["default"].apply(this,i).format(t)}:function(e,t,n){var i,o=arguments.length,s=[];if(1===o||o>4)throw new TypeError("Invalid Number of arguments, expected at least 1 and at most 3");return s.push(e),2===o?i="LLLL":3===o?i=t:o>3&&(s.push(n),i=t),r["default"].apply(this,s).format(i)},e["default"]=n});
@@ -7,8 +7,9 @@
7
7
  <title>SnowmanIO: be a little snowy</title>
8
8
 
9
9
  <base href="/" />
10
- <meta name="ui/config/environment" content="%7B%22modulePrefix%22%3A%22ui%22%2C%22environment%22%3A%22production%22%2C%22baseURL%22%3A%22/%22%2C%22apiPrefix%22%3A%22api%22%2C%22locationType%22%3A%22auto%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22ui%22%2C%22version%22%3A%220.0.0.2a4b008f%22%7D%2C%22simple-auth-devise%22%3A%7B%22serverTokenEndpoint%22%3A%22/api/users/login%22%2C%22identificationAttributeName%22%3A%22email%22%7D%2C%22simple-auth%22%3A%7B%22authorizer%22%3A%22simple-auth-authorizer%3Adevise%22%2C%22routeAfterAuthentication%22%3A%22apps%22%7D%2C%22api%22%3A%22/api%22%2C%22contentSecurityPolicyHeader%22%3A%22Content-Security-Policy-Report-Only%22%2C%22contentSecurityPolicy%22%3A%7B%22default-src%22%3A%22%27none%27%22%2C%22script-src%22%3A%22%27self%27%22%2C%22font-src%22%3A%22%27self%27%22%2C%22connect-src%22%3A%22%27self%27%22%2C%22img-src%22%3A%22%27self%27%22%2C%22style-src%22%3A%22%27self%27%22%2C%22media-src%22%3A%22%27self%27%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />
10
+ <meta name="ui/config/environment" content="%7B%22modulePrefix%22%3A%22ui%22%2C%22environment%22%3A%22production%22%2C%22baseURL%22%3A%22/%22%2C%22apiPrefix%22%3A%22api%22%2C%22locationType%22%3A%22auto%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22ui%22%2C%22version%22%3A%220.0.0.d6526c09%22%7D%2C%22simple-auth-devise%22%3A%7B%22serverTokenEndpoint%22%3A%22/api/users/login%22%2C%22identificationAttributeName%22%3A%22email%22%7D%2C%22simple-auth%22%3A%7B%22authorizer%22%3A%22simple-auth-authorizer%3Adevise%22%2C%22routeAfterAuthentication%22%3A%22apps%22%7D%2C%22api%22%3A%22/api%22%2C%22contentSecurityPolicyHeader%22%3A%22Content-Security-Policy-Report-Only%22%2C%22contentSecurityPolicy%22%3A%7B%22default-src%22%3A%22%27none%27%22%2C%22script-src%22%3A%22%27self%27%22%2C%22font-src%22%3A%22%27self%27%22%2C%22connect-src%22%3A%22%27self%27%22%2C%22img-src%22%3A%22%27self%27%22%2C%22style-src%22%3A%22%27self%27%22%2C%22media-src%22%3A%22%27self%27%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />
11
11
 
12
+ <script>window.__SnowmanIO_Version = '__VERSION__';</script>
12
13
 
13
14
 
14
15
  <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
@@ -159,9 +160,9 @@ html,body{ margin:0; padding:0; height:100%; width:100%; }
159
160
  var ui = loadCSS( "assets/ui-d190960e7df2e7119d592ffd60a19ee9.css" );
160
161
  onloadCSS(ui, function() {
161
162
  progress.style.width = "250px";
162
- loadScript("assets/vendor-6bc0d5ff67eccfbd9b0903afd6cc1d52.js", function() {
163
+ loadScript("assets/vendor-da99841a9c402e49b88240f3ca0cbcc8.js", function() {
163
164
  progress.style.width = "350px";
164
- loadScript("assets/ui-eaac3f6e07b933b851c15ff3329643cb.js", function() {
165
+ loadScript("assets/ui-6b74c9c4afbe894c4353ec151d216682.js", function() {
165
166
  progress.style.width = "450px";
166
167
  });
167
168
  });
@@ -1,3 +1,3 @@
1
1
  module SnowmanIO
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -22,7 +22,18 @@ module SnowmanIO
22
22
 
23
23
  # Ember application
24
24
  get '/*' do
25
- send_file File.expand_path("../ui/index.html", __FILE__)
25
+ # Dont cache index page
26
+ # http://stackoverflow.com/questions/49547/making-sure-a-web-page-is-not-cached-across-all-browsers
27
+ headers["Cache-Control"] = "no-cache, no-store, must-revalidate" # HTTP 1.1.
28
+ headers["Pragma"] = "no-cache" # HTTP 1.0.
29
+ headers["Expires"] = "0" # Proxies.
30
+
31
+ # replace version only on production.
32
+ if ENV["DEV_MODE"].to_i == 1
33
+ File.read(File.expand_path("../ui/index.html", __FILE__))
34
+ else
35
+ File.read(File.expand_path("../ui/index.html", __FILE__)).sub("__VERSION__", SnowmanIO::VERSION)
36
+ end
26
37
  end
27
38
  end
28
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snowman-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Vakhov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-07 00:00:00.000000000 Z
12
+ date: 2015-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -339,11 +339,12 @@ files:
339
339
  - lib/snowman-io/models/user.rb
340
340
  - lib/snowman-io/options.rb
341
341
  - lib/snowman-io/snow_mailer.rb
342
+ - lib/snowman-io/spider/internal_mongo.rb
342
343
  - lib/snowman-io/ui/AUTO_GENERATED_FOLDER
344
+ - lib/snowman-io/ui/assets/ui-6b74c9c4afbe894c4353ec151d216682.js
343
345
  - lib/snowman-io/ui/assets/ui-d190960e7df2e7119d592ffd60a19ee9.css
344
- - lib/snowman-io/ui/assets/ui-eaac3f6e07b933b851c15ff3329643cb.js
345
- - lib/snowman-io/ui/assets/vendor-6bc0d5ff67eccfbd9b0903afd6cc1d52.js
346
346
  - lib/snowman-io/ui/assets/vendor-7edfd1432c1bbd806306d5583c75b1fc.css
347
+ - lib/snowman-io/ui/assets/vendor-da99841a9c402e49b88240f3ca0cbcc8.js
347
348
  - lib/snowman-io/ui/bootstrap-3.3.1/css/bootstrap-theme.css
348
349
  - lib/snowman-io/ui/bootstrap-3.3.1/css/bootstrap-theme.css.map
349
350
  - lib/snowman-io/ui/bootstrap-3.3.1/css/bootstrap-theme.min.css
@@ -1,8 +0,0 @@
1
- define("ui/adapters/application",["exports","ember-data","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].ActiveModelAdapter.extend({host:a["default"].baseHost,namespace:a["default"].apiPrefix})}),define("ui/app",["exports","ember","ember/resolver","ember/load-initializers","ui/config/environment"],function(e,t,a,r,n){"use strict";var d;t["default"].MODEL_FACTORY_INJECTIONS=!0,d=t["default"].Application.extend({modulePrefix:n["default"].modulePrefix,podModulePrefix:n["default"].podModulePrefix,Resolver:a["default"]}),r["default"](d,n["default"].modulePrefix),e["default"]=d}),define("ui/components/app-status",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({app:null})}),define("ui/components/app-title",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"h4",app:null,didInsertElement:function(){this.get("app.system")&&this.$().find("span").tooltip()}})}),define("ui/components/check-add",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("collapsed",!0),this.set("newCheck",this.fridge.create("check",{metric_id:this.get("metric.id")}))}.on("init"),actions:{toggle:function(){this.set("collapsed",!this.get("collapsed")),this.get("collapsed")&&this.reset()},resetCreation:function(){this.reset()}}})}),define("ui/components/check-header",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",enableActions:!0})}),define("ui/components/check-tr",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",classNameBindings:["trClassName"],resolving:!1,enableActions:!0,trClassName:function(){return this.get("check.isMy")&&this.get("check.triggered")?"danger":this.get("check.triggered")?"warning":null}.property("check.triggered","check.isMy"),mode:"show",isShow:t["default"].computed.equal("mode","show"),isEditing:t["default"].computed.equal("mode","editing"),isSaving:t["default"].computed.equal("mode","saving"),isDestroing:t["default"].computed.equal("mode","destroing"),allowTempateChange:!1,isTemplate:function(){return"show"!==this.get("mode")&&"editing"!==this.get("mode")&&"saving"!==this.get("mode")&&"destroing"!==this.get("mode")}.property("mode"),templateFormComponentName:function(){return this.get("isTemplate")?"checks/form-"+this.get("mode"):"empty"}.property("mode","isTemplate"),formTemplate:function(){return this.get("isTemplate")?this.get("mode").underscore():null}.property("mode","isTemplate"),supportedCheckTemplates:function(){return this.get("check.metric.supportedCheckTemplates").map(function(e){return{name:e,componentName:"checks/desc-"+e.dasherize()}})}.property("check.metric.supportedCheckTemplates"),actions:{list:function(){this.set("mode","editing")},select:function(e){this.set("mode",e.dasherize()),console.log("---",this.get("mode"),this.get("isTemplate"))},edit:function(){this.set("mode",this.get("check.template").dasherize())},cancel:function(){this.set("mode","show"),this.sendAction("reset")},save:function(e){var t=this;this.set("mode","saving"),this.fridge.save("check",e).then(function(){t.set("mode","show"),t.sendAction("reset")})},destroy:function(){confirm("Are you sure?")&&(this.set("mode","destroing"),this.fridge.destroyModel("check",this.get("check")))},resolve:function(){var e=this;this.set("resolving",!0),this.fridge.resolveCheck(this.get("check")).then(function(){e.set("resolving",!1)})}}})}),define("ui/components/checks/desc-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/desc-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/form-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("form",this.fridge.clone("check",this.get("check"))),this.set("form.template",this.get("formTemplate"))}.on("init"),actions:{clickMore:function(){this.set("form.cmp","more")},clickLess:function(){this.set("form.cmp","less")},save:function(){this.sendAction("saveAction",this.get("form"))},cancel:function(){this.sendAction("cancelAction")}}})}),define("ui/components/checks/form-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({reset:function(){this.set("form",this.fridge.clone("check",this.get("check"))),this.set("form.template",this.get("formTemplate"))}.on("init"),actions:{clickMore:function(){this.set("form.cmp","more")},clickLess:function(){this.set("form.cmp","less")},save:function(){this.sendAction("saveAction",this.get("form"))},cancel:function(){this.sendAction("cancelAction")}}})}),define("ui/components/checks/human-last-value-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/checks/human-prev-day-datapoints-limit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/ember-chart",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"canvas",attributeBindings:["width","height"],onlyValues:!1,chartData:{},didInsertElement:function(){var e=this,a=this.get("element").getContext("2d"),r=t["default"].String.classify(this.get("type")),n={responsive:!0,showTooltips:!1,pointDot:!1,bezierCurve:!1,barValueSpacing:1};n.animation=!1,this.get("onlyValues")&&(n.showScale=!1);var d={labels:[],datasets:[]};this.get("chartData.labels").forEach(function(e){d.labels.push(e)}),this.get("chartData.datasets").forEach(function(t){var a=t.color||"blue",n=e._chartColors(r,a);n.data=t.data.map(function(e){return e}),d.datasets.push(n)});var i=new Chart(a)[r](d,n);this.set("chart",i)},willDestroyElement:function(){this.get("chart").destroy()},updateChart:function(){for(var e=this,t=this.get("chart");t.scale.xLabels.length&&t.scale.xLabels[0]!==this.get("chartData.labels")[0];)t.removeData();this.get("chartData.labels").forEach(function(a,r){if(r<t.scale.xLabels.length)e.get("chartData.datasets").forEach(function(a,n){"Line"===e.get("type")?t.datasets[n].points[r].value=a.data[r]:t.datasets[n].bars[r].value=a.data[r]});else{var n=[];e.get("chartData.datasets").forEach(function(e){n.push(e.data[r])}),t.addData(n,a)}}),t.update()}.observes("chartData","chartData.[]"),_chartColors:function(e,t){if("Bar"===e&&"blue"===t)return{fillColor:"rgba(151,187,205,1)",strokeColor:"rgba(151,187,205,1)"};if("Line"===e&&"blue"===t)return{fillColor:"rgba(151,187,205,0.2)",strokeColor:"rgba(151,187,205,1)"};throw"unknown color"}})}),define("ui/components/ember-gravatar",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"img",attributeBindings:["src","style"],size:64,email:"",src:function(){var e=this.get("email"),t=this.get("size");return"//www.gravatar.com/avatar/"+md5(e)+"?s="+t}.property("email","size"),style:function(){var e=this.get("size");return("width:"+e+"px;height:"+e+"px;").htmlSafe()}.property("size")})}),define("ui/components/empty",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({app:null})}),define("ui/components/metrics/history-amount",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/history-counter",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/history-time",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-amount",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-counter",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/metrics/show-time",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({})}),define("ui/components/profile/email-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,users:t["default"].computed.alias("fridge.users"),reset:function(){this.set("email",this.get("user.email"))}.on("init"),isEmailExists:function(){var e=this;return this.get("users").filter(function(t){return t.get("id")!==e.get("user.id")}).mapBy("email").contains(this.get("email"))}.property("email","users.@each.email","user.id"),isFormInvalid:function(){return this.get("isEmailExists")||t["default"].isEmpty(this.get("email"))}.property("email","isEmailExists"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdateEmail(this.get("email")).then(function(t){e.set("saving",!1),e.set("email",t.email)})}},_baseUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")}})}),define("ui/components/profile/name-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,reset:function(){this.set("name",this.get("user.name"))}.on("init"),isFormInvalid:function(){return t["default"].isEmpty(this.get("name"))}.property("name"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdateName(this.get("name")).then(function(t){e.set("saving",!1),e.set("name",t.name)})}}})}),define("ui/components/profile/password-edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({saving:!1,show:!1,password:"",password2:"",isFormInvalid:function(){return t["default"].isEmpty(this.get("password"))||this.get("password")!==this.get("password2")}.property("password","password2"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(){var e=this;this.set("saving",!0),this.set("show",!1),this.fridge.userUpdatePassword(this.get("password")).then(function(){e.set("saving",!1)})}}})}),define("ui/components/snowman-graph",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].Component.extend({metric:null,duration:"5min",type:"Line",width:600,height:250,onlyValues:!1,datapoints:[],loading:t["default"].computed.empty("datapoints"),load:function(){var e=this,r="/metrics/"+this.get("metric.id")+"/render?duration="+this.get("duration");t["default"].$.getJSON(a["default"].api+r).then(function(t){e.set("datapoints",t.datapoints)}),this.set("timer",t["default"].run.later(this,function(){this.load()},5e3))}.on("didInsertElement"),unload:function(){t["default"].run.cancel(this.get("timer"))}.on("willDestroyElement"),chartData:function(){var e=this,t=[];return this.get("targets").split(",").forEach(function(a){var r=a.match(/integral\((.*?)\)/);r?t.push({data:e._integral(e.get("datapoints").mapBy(r[1]))}):t.push({data:e.get("datapoints").mapBy(a)})}),{labels:this.get("datapoints").map(function(t){return"5min"===e.get("duration")?moment(t.at).format("HH:mm:ss"):"history"===e.get("duration")?moment(t.at).format("YYYY-MM-DD"):moment(t.at).format("HH:mm")}),datasets:t}}.property("datapoints","targets","duration"),_integral:function(e){var t=0;return e.map(function(e){return t+=e})}})}),define("ui/components/snowman-table",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";e["default"]=t["default"].Component.extend({metric:null,targets:"at,min,avg,up,max,sum,count",datapoints:[],loading:!0,preparedDatapoints:function(){var e=this;return this.get("datapoints").toArray().reverse().map(function(t){var a=[];return e.get("targets").split(",").forEach(function(e){"at"===e?a.push(moment(t.at).format("YYYY-MM-DD")):a.push(t[e])}),a})}.property("datapoints.@each","targets"),columns:function(){return this.get("targets").split(",").map(function(e){return e.capitalize()})}.property("targets"),load:function(){var e=this,r="/metrics/"+this.get("metric.id")+"/render?duration=history";t["default"].$.getJSON(a["default"].api+r).then(function(t){e.set("datapoints",t.datapoints),e.set("loading",!1)})}.on("didInsertElement")})}),define("ui/components/users/invite-user",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({show:!1,sending:!1,email:"",users:t["default"].computed.alias("fridge.users"),isFormInvalid:function(){var e=this.get("email");return t["default"].isEmpty(e)||this.get("users").mapBy("email").contains(e)}.property("users.@each.email","email"),actions:{toggle:function(){this.set("show",!this.get("show"))},invite:function(){var e=this;this.set("show",!1),this.set("sending",!0),this.fridge.sendInvite(this.get("email")).then(function(){e.set("sending",!1),e.set("email","")})}}})}),define("ui/components/users/show-user",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({classNames:["media"],updating:!1,actions:{follow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("user"),"follow").then(function(){e.set("updating",!1)})},unfollow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("user"),"unfollow").then(function(){e.set("updating",!1)})}}})}),define("ui/components/users/wait-invite-tr",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Component.extend({tagName:"tr",resending:!1,canceling:!1,isShowActions:function(){return!this.get("resending")&&!this.get("canceling")}.property("resending","canceling"),actions:{resend:function(){var e=this;this.set("resending",!0),this.fridge.resendInvite(this.get("user")).then(function(){e.set("resending",!1)})},cancel:function(){confirm("Are you sure?")&&(this.set("canceling",!0),this.fridge.cancelInvite(this.get("user")))}}})}),define("ui/controllers/apps/form",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({init:function(){this.set("form",this.fridge.clone("app",this.get("model")))}.on("init"),isFormValid:function(){return t["default"].isPresent(this.get("form.name"))}.property("form.name"),isFormInvalid:t["default"].computed.not("isFormValid"),actions:{save:function(){return this.set("saving",!0),!0}}})}),define("ui/controllers/apps/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps"],apps:t["default"].computed.alias("controllers.apps.model"),userApps:t["default"].computed.filterBy("apps","system",!1)})}),define("ui/controllers/apps/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps"],apps:t["default"].computed.alias("controllers.apps.model"),isMetricsTabVisible:function(){return this.get("model.metrics.length")>0}.property("model.metrics.length")})}),define("ui/controllers/apps/show/edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({onInit:function(){this.set("destroing",!1)},actions:{destroy:function(){return this.set("destroing",!0),!0}}})}),define("ui/controllers/apps/show/info",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/apps/show/install",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/checks/failed",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({failedChecks:t["default"].computed.filterBy("fridge.checksForMe","triggered",!0)})}),define("ui/controllers/checks/index",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model"),checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("app.checks","checksForMe")})}.observes("app.checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init")})}),define("ui/controllers/forget_password",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("email",""),this.set("status","edit")},isSending:t["default"].computed.equal("status","sending"),isSended:t["default"].computed.equal("status","sended"),isFormInvalid:function(){return this.get("isSending")||t["default"].isEmpty(this.get("email"))}.property("email","isSending"),actions:{restore:function(){var e=this;this.set("status","sending"),this.fridge.userRestorePassword(this.get("email")).then(function(){e.set("status","sended")})}}})}),define("ui/controllers/invite",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({token:t["default"].computed.alias("model.token"),password:"",name:"",isFormInvalid:function(){return t["default"].isEmpty(this.get("password"))||t["default"].isEmpty(this.get("name"))}.property("password","name"),actions:{register:function(){var e=this;this.fridge.acceptInvite(this.get("token"),this.get("name"),this.get("password")).then(function(t){console.log("acceptInvite",t);var a={identification:t.email,password:t.password};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/login",["exports","ember","simple-auth/mixins/login-controller-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{authenticator:"simple-auth-authenticator:devise",isFormInvalid:function(){return t["default"].isEmpty(this.get("identification"))||t["default"].isEmpty(this.get("password"))}.property("identification","password"),actions:{authenticate:function(){var e=this;this._super().then(null,function(t){e.set("errorMessage",t.message)})}}})}),define("ui/controllers/metrics/history",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model")})}),define("ui/controllers/metrics/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({actions:{destroy:function(e){var t=this;confirm("Are you sure?")&&this.fridge.destroyModel("metric",e).then(function(){0===t.get("model.metrics.length")&&t.transitionToRoute("apps.show.info",t.get("model"))})}}})}),define("ui/controllers/metrics/show",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Controller.extend(a["default"],{needs:["apps/show"],app:t["default"].computed.alias("controllers.apps/show.model"),checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("model.checks","checksForMe")})}.observes("model.checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init")})}),define("ui/controllers/restore_password",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({token:t["default"].computed.alias("model.token"),reset:function(){this.set("password",""),this.set("saving",!1)},isFormInvalid:function(){return this.get("saving")||t["default"].isEmpty(this.get("password"))}.property("password","saving"),actions:{update:function(){var e=this;this.set("saving",!0),this.fridge.resetPassword(this.get("token"),this.get("password")).then(function(t){var a={identification:t.email,password:t.password};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/snow",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({currentUser:t["default"].computed.alias("session.currentUser")})}),define("ui/controllers/snow/profile",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("destroing",!1)},actions:{destroy:function(){var e=this;confirm("Are you sure?")&&(this.set("destroing",!0),this.fridge.destroyUser(this.get("session.currentUser")).then(function(){e.get("session").invalidate()}))}}})}),define("ui/controllers/snow/settings",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],baseUrl:t["default"].computed.alias("controllers.snow.model.info.base_url")})}),define("ui/controllers/snow/settings/force_ssl",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({needs:["snow"],forceSSL:t["default"].computed.alias("controllers.snow.model.info.force_ssl"),reset:function(){this.set("show",!1),this.set("saving",!1)},statusText:function(){return this.get("forceSSL")?"yes":"no"}.property("forceSSL"),actions:{toggle:function(){this.set("show",!this.get("show"))},update:function(e){var a=this;this.set("saving",!0),this.set("show",!1),t["default"].$.post(this._baseUrl()+"/force_ssl",{force_ssl:"enable"===e},function(e){a.set("saving",!1),a.set("forceSSL",e.force_ssl),e.force_ssl&&"https:"!==location.protocol&&(window.location.href=window.location.href)})}},_baseUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")}})}),define("ui/controllers/unpacking",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({user:t["default"].computed.alias("model.user"),isFormInvalid:function(){return t["default"].isEmpty(this.get("user.name"))||t["default"].isEmpty(this.get("user.email"))||t["default"].isEmpty(this.get("user.password"))}.property("user.name","user.email","user.password"),actions:{setup:function(){var e=this,t=this.get("user");this.fridge.save("user",t).then(function(){var a={identification:t.get("email"),password:t.get("password")};e.get("session").authenticate("simple-auth-authenticator:devise",a)})}}})}),define("ui/controllers/users/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({activeUsers:t["default"].computed.filterBy("model","isActive"),waitInviteUsers:t["default"].computed.filterBy("model","isWaitInvite"),usersInGroupsOfTwo:function(){return this.get("activeUsers").reduce(function(e,a,r){return r%2?e.get("lastObject").set("second",a):e.pushObject(t["default"].Object.create({first:a})),e},t["default"].A())}.property("activeUsers.@each")})}),define("ui/controllers/users/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Controller.extend({reset:function(){this.set("updating",!1),this.set("destroing",!1)},actions:{follow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("model"),"follow").then(function(){e.set("updating",!1)})},unfollow:function(){var e=this;this.set("updating",!0),this.fridge.updateFriendshipWith(this.get("model"),"unfollow").then(function(){e.set("updating",!1)})},destroy:function(){var e=this;confirm("Are you sure?")&&(this.set("destroing",!0),this.fridge.destroyUser(this.get("model")).then(function(){e.transitionToRoute("users")}))}}})}),define("ui/initializers/app-version",["exports","ui/config/environment","ember"],function(e,t,a){"use strict";var r=a["default"].String.classify,n=!1;e["default"]={name:"App Version",initialize:function(e,d){if(!n){var i=r(d.toString());a["default"].libraries.register(i,t["default"].APP.version),n=!0}}}}),define("ui/initializers/custom-session",["exports","simple-auth/session"],function(e,t){"use strict";function a(e,a){t["default"].reopen({setCurrentUser:function(){var e=this,t=this.get("user_id");return this.container.lookup("service:fridge").find("user",t).then(function(t){e.set("currentUser",t)})}.observes("user_id")}),a.inject("service:fridge","session","simple-auth-session:main"),a.inject("cold-model","session","simple-auth-session:main")}e.initialize=a,e["default"]={name:"custom-session",before:"simple-auth",initialize:a}}),define("ui/initializers/ember-moment",["exports","ember-moment/helpers/moment","ember-moment/helpers/ago","ember-moment/helpers/duration","ember"],function(e,t,a,r,n){"use strict";var d=function(){var e;e=n["default"].HTMLBars?function(e,t){n["default"].HTMLBars._registerHelper(e,n["default"].HTMLBars.makeBoundHelper(t))}:n["default"].Handlebars.helper,e("moment",t["default"]),e("ago",a["default"]),e("duration",r["default"])};e["default"]={name:"ember-moment",initialize:d},e.initialize=d}),define("ui/initializers/export-application-global",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";function r(e,r){var n=t["default"].String.classify(a["default"].modulePrefix);a["default"].exportApplicationGlobal&&!window[n]&&(window[n]=r)}e.initialize=r,e["default"]={name:"export-application-global",initialize:r}}),define("ui/initializers/fridge",["exports"],function(e){"use strict";function t(e,t){t.inject("route","fridge","service:fridge"),t.inject("controller","fridge","service:fridge"),t.inject("component","fridge","service:fridge"),t.inject("cold-model","fridge","service:fridge")}e.initialize=t,e["default"]={name:"fridge",initialize:t}}),define("ui/initializers/models",["exports","ui/models/app","ui/models/metric","ui/models/check","ui/models/user"],function(e,t,a,r,n){"use strict";function d(e,d){d.register("cold-model:app",t["default"],{singleton:!1}),d.register("cold-model:metric",a["default"],{singleton:!1}),d.register("cold-model:check",r["default"],{singleton:!1}),d.register("cold-model:user",n["default"],{singleton:!1})}e.initialize=d,e["default"]={name:"snow",initialize:d}}),define("ui/initializers/simple-auth-devise",["exports","simple-auth-devise/configuration","simple-auth-devise/authenticators/devise","simple-auth-devise/authorizers/devise","ui/config/environment"],function(e,t,a,r,n){"use strict";e["default"]={name:"simple-auth-devise",before:"simple-auth",initialize:function(e,d){t["default"].load(e,n["default"]["simple-auth-devise"]||{}),e.register("simple-auth-authorizer:devise",r["default"]),e.register("simple-auth-authenticator:devise",a["default"])}}}),define("ui/initializers/simple-auth",["exports","simple-auth/configuration","simple-auth/setup","ui/config/environment"],function(e,t,a,r){"use strict";e["default"]={name:"simple-auth",initialize:function(e,n){t["default"].load(e,r["default"]["simple-auth"]||{}),a["default"](e,n)}}}),define("ui/mixins/checks-for-me",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({isCheckForMe:function(e){return this.get("session.currentUser.id")===e.get("user_id")||t["default"].makeArray(this.get("session.currentUser.following_ids")).contains(e.get("user_id"))},updateChecksForMe:function(e,t){for(var a=this,r=this.get(e).filter(function(e){return a.isCheckForMe(e)}),n=this.get(t),d=0;d<n.length;)r.contains(n[d])?d++:n.removeAt(d);r.forEach(function(e,t){(t===n.length||n[t]!==e)&&n.insertAt(t,e)})}})}),define("ui/mixins/cold-model",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({toAttributes:function(){var e={id:this.get("id")};return this.constructor.ATTRS.forEach(function(t){e[t]=this.get(t)},this),e},updateAttributes:function(e){return"id"in e&&this.set("id",e.id),this.constructor.ATTRS.forEach(function(t){t in e&&this.set(t,e[t])},this),this}})}),define("ui/mixins/not-authenticated-route-mixin",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Mixin.create({beforeModel:function(e){this._super(e),this.get("session.isAuthenticated")&&this.transitionTo("apps")}})}),define("ui/models/app",["exports","ember","ui/mixins/cold-model","ui/mixins/checks-for-me"],function(e,t,a,r){"use strict";var n=t["default"].Object.extend(a["default"],r["default"],{metrics:function(){return this.get("fridge.metrics").filterBy("app_id",this.get("id"))}.property("fridge.metrics.@each.app_id","id"),checks:function(){var e=this.get("metrics").mapBy("id");return this.get("fridge.checks").filter(function(t){return e.contains(t.get("metric_id"))})}.property("fridge.checks.@each.metric_id","metrics.@each.id","metric_id"),metricsAmountHuman:function(){var e=this.get("metrics.length");return e+" Metric"+(1!==e?"s":"")}.property("metrics.length"),checksForMe:function(){var e=this;return this.get("checks").filter(function(t){return e.isCheckForMe(t)})}.property("checks.@each.user_id","session.currentUser.id","session.currentUser.following_ids.@each"),checksForMeAmountHuman:function(){var e=this.get("checksForMe.length");return e+" Check"+(1!==e?"s":"")}.property("checksForMe.length"),triggeredChecks:t["default"].computed.filterBy("checks","triggered",!0),triggeredChecksForMe:t["default"].computed.filterBy("checksForMe","triggered",!0)});n.reopenClass({ATTRS:["name","token","datapoints","system"]}),e["default"]=n}),define("ui/models/check",["exports","ember","ui/mixins/cold-model"],function(e,t,a){"use strict";var r=t["default"].Object.extend(a["default"],{cmp:"more",value:0,metric:function(){return this.get("fridge.metrics").findBy("id",this.get("metric_id"))}.property("fridge.metrics.@each.id","metric_id"),user:function(){return this.get("fridge.users").findBy("id",this.get("user_id"))}.property("fridge.users.@each.id","user_id"),isNeverRunned:t["default"].computed.equal("last_status","NEVER RUNNED"),isOk:t["default"].computed.equal("last_status","OK"),isFailed:t["default"].computed.equal("last_status","FAILED"),isMy:function(){return this.get("session.currentUser.id")===this.get("user_id")}.property("session.currentUser.id","user_id"),humanComponentName:function(){return this.get("template")?"checks/human-"+this.get("template").dasherize():"empty"}.property("template")});r.reopenClass({ATTRS:["metric_id","cmp","value","triggered","last_run_at","last_status","template","user_id"]}),e["default"]=r}),define("ui/models/metric",["exports","ember","ui/mixins/cold-model","ui/mixins/checks-for-me"],function(e,t,a,r){"use strict";var n=t["default"].Object.extend(a["default"],r["default"],{app:function(){return this.get("fridge.apps").findBy("id",this.get("app_id"))}.property("fridge.apps.@each.id","app_id"),checks:function(){return this.get("fridge.checks").filterBy("metric_id",this.get("id"))}.property("fridge.checks.@each.metric_id","id"),checksForMe:function(){var e=this;return this.get("checks").filter(function(t){return e.isCheckForMe(t)})}.property("checks.@each.user_id","session.currentUser.id","session.currentUser.following_ids.@each"),triggeredChecks:t["default"].computed.filterBy("checks","triggered",!0),triggeredChecksForMe:t["default"].computed.filterBy("checksForMe","triggered",!0),showComponentName:function(){return"metrics/show-"+this.get("kind")}.property("kind"),historyComponentName:function(){return"metrics/history-"+this.get("kind")}.property("kind"),supportedCheckTemplates:function(){return"amount"===this.get("kind")?["last_value_limit","prev_day_datapoints_limit"]:["prev_day_datapoints_limit"]}.property("kind")});n.reopenClass({ATTRS:["app_id","name","kind","last_value","last_value_updated_at"]}),e["default"]=n}),define("ui/models/user",["exports","ember","ui/mixins/cold-model"],function(e,t,a){"use strict";var r=t["default"].Object.extend(a["default"],{isActive:t["default"].computed.equal("status","active"),isWaitInvite:t["default"].computed.equal("status","wait_invite"),checks:function(){return this.get("fridge.checks").filterBy("user_id",this.get("id"))}.property("fridge.checks.@each.user_id","id"),isMe:function(){return this.get("id")===this.get("session.currentUser.id")}.property("session.currentUser.id","id"),isFollowedByMe:function(){return this.get("follower_ids").contains(this.get("session.currentUser.id"));
2
- }.property("follower_ids.@each","session.currentUser.id"),isFollowsMe:function(){return this.get("following_ids").contains(this.get("session.currentUser.id"))}.property("following_ids.@each","session.currentUser.id"),checksAmountHuman:function(){var e=this.get("checks.length");return e+" Check"+(1!==e?"s":"")}.property("checks.length")});r.reopenClass({ATTRS:["name","email","password","following_ids","follower_ids","status","invite_send_count"]}),e["default"]=r}),define("ui/router",["exports","ember","ui/config/environment"],function(e,t,a){"use strict";var r=t["default"].Router.extend({location:a["default"].locationType});r.map(function(){this.route("unpacking"),this.route("login"),this.route("invite",{path:"/invite/:token"}),this.route("forget_password"),this.route("restore_password",{path:"/restore_password/:token"}),this.resource("snow",{path:"/"},function(){this.route("settings"),this.route("profile"),this.resource("users",function(){this.route("show",{path:":user_id"})}),this.resource("apps",{path:"/"},function(){this.route("new",{path:"apps/new"}),this.route("show",{path:"apps/:app_id"},function(){this.route("info"),this.route("install"),this.route("edit"),this.resource("metrics",function(){this.route("show",{path:":metric_id"}),this.route("history",{path:":metric_id/history"})}),this.resource("checks",function(){})})})})}),e["default"]=r}),define("ui/routes/application",["exports","simple-auth/mixins/application-route-mixin","ember"],function(e,t,a){"use strict";e["default"]=a["default"].Route.extend(t["default"])}),define("ui/routes/apps",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.fridge.get("apps")}})}),define("ui/routes/apps/new",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.fridge.create("app")},actions:{save:function(e){var t=this;this.fridge.save("app",e).then(function(e){t.transitionTo("apps.show.info",e)})}}})}),define("ui/routes/apps/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("app",e.app_id)}})}),define("ui/routes/apps/show/edit",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.modelFor("apps/show")},setupController:function(e,t){this._super(e,t),e.onInit()},actions:{save:function(e){var t=this;this.fridge.save("app",e).then(function(e){t.transitionTo("apps.show.info",e)})},destroy:function(e){var t=this;confirm("Are you sure?")&&this.fridge.destroyModel("app",e).then(function(){t.transitionTo("apps")})}}})}),define("ui/routes/forget_password",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].RSVP.hash({info:t["default"].$.get(this._infoUrl())})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.info.unpacked||this.transitionTo("login")},setupController:function(e,t){this._super(e,t),e.reset()},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info0"}})}),define("ui/routes/invite",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(e){return t["default"].RSVP.hash({token:e.token,correct:this.fridge.checkInvite(e.token)})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.correct||this.transitionTo("login")},setupController:function(e,t){this._super(e,t),e.set("password",""),e.set("name","")}})}),define("ui/routes/login",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].$.get(this._infoUrl())},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.unpacked||this.transitionTo("unpacking")},setupController:function(e){e.set("errorMessage",null)},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info0"}})}),define("ui/routes/metrics/history",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("metric",e.metric_id)}})}),define("ui/routes/metrics/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("metric",e.metric_id)}})}),define("ui/routes/restore_password",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(e){return t["default"].RSVP.hash({token:e.token,correct:this.fridge.checkRestorePassword(e.token)})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.correct||this.transitionTo("login")},setupController:function(e,t){this._super(e,t),e.reset()}})}),define("ui/routes/snow",["exports","ember","simple-auth/mixins/authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].RSVP.hash({fridge:this.fridge.sync(),info:t["default"].$.get(this._infoUrl())})},afterModel:function(){t["default"].$("#progress-holder").remove()},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info"},activate:function(){this.set("timer",this._schedule())},deactivate:function(){t["default"].run.cancel(this.get("timer"))},_schedule:function(){return t["default"].run.later(this,function(){this.fridge.sync(),this.set("timer",this._schedule())},5e3)}})}),define("ui/routes/snow/profile",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({setupController:function(e,t){this._super(e,t),e.reset()}})}),define("ui/routes/snow/settings",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({setupController:function(e,t){this._super(e,t),this.controllerFor("snow.settings.force-ssl").reset()}})}),define("ui/routes/unpacking",["exports","ember","ui/mixins/not-authenticated-route-mixin"],function(e,t,a){"use strict";e["default"]=t["default"].Route.extend(a["default"],{model:function(){return t["default"].RSVP.hash({user:this.fridge.create("user"),info:t["default"].$.get(this._infoUrl())})},afterModel:function(e){t["default"].$("#progress-holder").remove(),e.info.unpacked&&this.transitionTo("login")},_infoUrl:function(){var e=this.container.lookup("adapter:application");return e.buildURL("")+"/info0"}})}),define("ui/routes/users/index",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(){return this.fridge.get("users")}})}),define("ui/routes/users/show",["exports","ember"],function(e,t){"use strict";e["default"]=t["default"].Route.extend({model:function(e){return this.fridge.fetch("user",e.user_id)},setupController:function(e,t){this._super(e,t),e.reset()}})}),define("ui/services/fridge",["exports","ember","ui/mixins/checks-for-me"],function(e,t,a){"use strict";e["default"]=t["default"].Service.extend(a["default"],{onInit:function(){var e=this;this.set("last",0),this.set("promise",new t["default"].RSVP.Promise(function(t){e.set("promiseResolve",t)}))}.on("init"),sync:function(){var e=this,a=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){e._ajax("GET",a.buildURL("")+"/fridge?last="+e.get("last")).then(function(a){console.log("sync "+new Date),0===e.get("last")&&e.get("promiseResolve")(),e.set("last",a.last),["user","app","metric","check"].forEach(function(t){var r=t+"s";a[r].forEach(function(a){var r=e.fetch(t,a.id);r?r.updateAttributes(a):e._push(t,e._create(t,a))})}),["check","metric","app","user"].forEach(function(t){var r=t+"s";a[r+"_deleted"].forEach(function(a){e._remove(t,e.fetch(t,a))})}),t()})})},find:function(e,a){var r=this;return new t["default"].RSVP.Promise(function(t){r.get("promise").then(function(){t(r.fetch(e,a))})})},fetch:function(e,t){return this._storage(e).findBy("id",t)},create:function(e,t){return this._create(e,t||{})},clone:function(e,t){return this._create(e,t.toAttributes())},save:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){var d={};d[e]=a.toAttributes(),a.get("id")?r._ajax("PUT",n.buildURL(e,a.get("id")),d).then(function(a){t(r.fetch(e,a[e].id).updateAttributes(a[e]))}):r._ajax("POST",n.buildURL(e),d).then(function(a){console.log("[debug] fridge#save - data: ",a),t(r._push(e,r._create(e,a[e])))})})},destroyModel:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){r._ajax("DELETE",n.buildURL(e,a.get("id"))).then(function(){r._remove(e,r.fetch(e,a.get("id"))),t()})})},resolveCheck:function(e){var a=this,r="check",n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("PUT",n.buildURL(r,e.get("id"))+"/resolve").then(function(e){t(a.fetch(r,e[r].id).updateAttributes(e[r]))})})},updateFriendshipWith:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){r._ajax("POST",n.buildURL("user",e.get("id"))+"/"+a).then(function(e){e.users.forEach(function(e){r.fetch("user",e.id).updateAttributes(e)}),t()})})},destroyUser:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user",e.get("id"))+"/destroy").then(function(){a._storage("user").removeObject(e),t()})})},sendInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t,n){a._ajax("POST",r.buildURL("user")+"/invite",{email:e}).then(function(e){e.user?(a._push("user",a._create("user",e.user)),t()):n()})})},cancelInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user",e.get("id"))+"/cancel_invite").then(function(){a._remove("user",e),t()})})},resendInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user",e.get("id"))+"/resend_invite").then(function(a){e.updateAttributes(a.user),t()})})},checkInvite:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/check_invite",{token:e}).then(function(e){t(e.correct)})})},acceptInvite:function(e,a,r){var n=this,d=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){n._ajax("POST",d.buildURL("user")+"/accept_invite",{token:e,name:a,password:r}).then(function(e){t({email:e.user.email,password:r})})})},userUpdateName:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(n){a._ajax("POST",r.buildURL("user")+"/profile/update_name",{name:e}).then(function(e){var r=a.fetch("user",e.user.id);t["default"].run(function(){r.updateAttributes(e.user),n(r)})})})},userUpdateEmail:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(n){a._ajax("POST",r.buildURL("user")+"/profile/update_email",{email:e}).then(function(e){var r=a.fetch("user",e.user.id);t["default"].run(function(){r.updateAttributes(e.user),n(r)})})})},userUpdatePassword:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/profile/update_password",{password:e}).then(function(){t()})})},userRestorePassword:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/restore_password",{email:e}).then(function(){t()})})},checkRestorePassword:function(e){var a=this,r=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){a._ajax("POST",r.buildURL("user")+"/check_pass_token",{token:e}).then(function(e){t(e.correct)})})},resetPassword:function(e,a){var r=this,n=this.container.lookup("adapter:application");return new t["default"].RSVP.Promise(function(t){r._ajax("POST",n.buildURL("user")+"/reset_password",{token:e,password:a}).then(function(e){t({email:e.user.email,password:a})})})},checksForMe:t["default"].A(),checksForMeObserver:function(){var e=this;t["default"].run.once(this,function(){e.updateChecksForMe("checks","checksForMe")})}.observes("checks.@each.user_id","session.currentUser.following_ids.@each","session.currentUser.id").on("init"),users:t["default"].A(),checks:t["default"].A(),metrics:t["default"].A(),apps:t["default"].A(),_ajax:function(e,a,r){var n={type:e,url:a,contentType:"application/json",dataType:"json"};return r&&(n.data=JSON.stringify(r)),t["default"].$.ajax(n)},_storage:function(e){return this.get(e+"s")},_create:function(e,t){return this.container.lookup("cold-model:"+e).updateAttributes(t)},_push:function(e,t){return this._storage(e).pushObject(t)},_remove:function(e,t){this._storage(e).removeObject(t)}})}),define("ui/templates/application",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,0),d(t,c,e,"outlet"),i}}}())}),define("ui/templates/apps/form",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving ...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Save\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("form");e.setAttribute(a,"class","form-horizontal");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","form-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("label");e.setAttribute(n,"for","inputName"),e.setAttribute(n,"class","col-sm-2 control-label");var d=e.createTextNode("Name");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","col-sm-8");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","form-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","col-sm-offset-2 col-sm-8");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("button");e.setAttribute(d,"type","submit"),e.setAttribute(d,"class","btn btn-primary");var i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.inline,o=i.element,l=i.block;d.detectNamespace(n);var h;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var p=d.childAt(h,[0]),u=d.childAt(p,[3,1,1]),m=d.createMorphAt(d.childAt(p,[1,3]),1,1),v=d.createMorphAt(u,1,1);return s(r,m,a,"input",[],{"class":"form-control",id:"inputName",value:c(r,a,"form.name"),placeholder:"Application Name"}),o(r,u,a,"bind-attr",[],{disabled:c(r,a,"isFormInvalid")}),o(r,u,a,"action",["save",c(r,a,"form")],{}),o(r,u,a,"bind-attr",[],{disabled:c(r,a,"saving")}),l(r,v,a,"if",[c(r,a,"saving")],{},e,t),h}}}())}),define("ui/templates/apps/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Register App");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-md-3 app-slot");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[1]),o=r.createMorphAt(s,1,1),l=r.createMorphAt(s,3,3);return i(t,o,e,"app-title",[],{app:d(t,e,"app")}),i(t,l,e,"app-status",[],{app:d(t,e,"app")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"each",[i(a,t,"model")],{keyword:"app"},e,null),s}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("register one");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("h1");e.setAttribute(a,"class","text-center");var r=e.createTextNode("\n You don't track any app yet, ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(".\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(n.childAt(c,[3]),1,1);return i(a,s,t,"link-to",["apps.new"],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid text-right");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid dashboard");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.block,o=c.inline,l=c.get;i.detectNamespace(d);var h;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var p=i.createMorphAt(i.childAt(h,[0]),1,1),u=i.createMorphAt(h,2,2,d),m=i.createMorphAt(i.childAt(h,[4]),1,1);return s(n,p,r,"link-to",["apps.new"],{"class":"btn btn-default"},e,null),o(n,u,r,"render",["checks/failed"],{}),s(n,m,r,"if",[l(n,r,"userApps.length")],{},t,a),h}}}())}),define("ui/templates/apps/new",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","page-header");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("h1"),n=e.createTextNode("Register Application");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,2,2,a);return i(t,s,e,"render",["apps/form",d(t,e,"model")],{}),c}}}())}),define("ui/templates/apps/show",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1]),0,0);return i(t,s,e,"link-to",[d(t,e,"app.name"),"apps.show.info",d(t,e,"app")],{}),c}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Info");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["apps.show.info",i(a,t,"model")],{},e,null),s}}}(),a=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Metrics");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["metrics",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["metrics",i(a,t,"model")],{tagName:"li",href:!1},e,null),s}}}(),r=function(){var e=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span");e.setAttribute(a,"class","label label-danger");var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"model.triggeredChecksForMe.length"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Checks\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return n.insertBoundary(s,null),c(a,o,t,"if",[i(a,t,"model.triggeredChecksForMe")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["checks",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["checks",i(a,t,"model")],{tagName:"li",href:!1},e,null),s}}}(),n=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Install");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);
3
- var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["apps.show.install",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"link-to",["apps.show.install",i(a,t,"model")],{tagName:"li",href:!1},e,null),s}}}(),d=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Settings");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,1,1,r);return c(a,o,t,"link-to",["apps.show.edit",i(a,t,"model")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"role","tabpanel");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ul");e.setAttribute(r,"class","nav nav-tabs"),e.setAttribute(r,"role","tablist");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li");e.setAttribute(n,"class","dropdown");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("a");e.setAttribute(d,"class","dropdown-toggle"),e.setAttribute(d,"data-toggle","dropdown"),e.setAttribute(d,"href","#");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","caret"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("ul");e.setAttribute(d,"class","dropdown-menu");var i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(i,c,s){var o=c.dom,l=c.hooks,h=l.content,p=l.get,u=l.block;o.detectNamespace(s);var m;c.useFragmentCache&&o.canClone?(null===this.cachedFragment&&(m=this.build(o),this.hasRendered?this.cachedFragment=m:this.hasRendered=!0),this.cachedFragment&&(m=o.cloneNode(this.cachedFragment,!0))):m=this.build(o);var v=o.childAt(m,[0]),C=o.childAt(v,[1]),f=o.childAt(C,[1]),g=o.createMorphAt(o.childAt(f,[1]),1,1),b=o.createMorphAt(o.childAt(f,[3]),1,1),N=o.createMorphAt(C,3,3),F=o.createMorphAt(C,5,5),T=o.createMorphAt(C,7,7),x=o.createMorphAt(C,9,9),A=o.createMorphAt(C,11,11),k=o.createMorphAt(v,5,5);return h(c,g,i,"model.name"),u(c,b,i,"each",[p(c,i,"apps")],{keyword:"app"},e,null),u(c,N,i,"link-to",["apps.show.info",p(c,i,"model")],{tagName:"li",href:!1},t,null),u(c,F,i,"if",[p(c,i,"isMetricsTabVisible")],{},a,null),u(c,T,i,"if",[p(c,i,"model.checksForMe")],{},r,null),u(c,x,i,"if",[p(c,i,"model.metrics.length")],{},n,null),u(c,A,i,"link-to",["apps.show.edit",p(c,i,"model")],{tagName:"li",href:!1},d,null),h(c,k,i,"outlet"),m}}}())}),define("ui/templates/apps/show/_install",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("h4"),r=e.createTextNode("1. Add snowagent to application Gemfile");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("code"),r=e.createTextNode("\ngem 'snowagent'\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("h4"),r=e.createTextNode("2. Configure application");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("b"),r=e.createTextNode("Heroku:");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("pre"),r=e.createTextNode("\nheroku config:set \\\n SNOWMANIO_SERVER=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" \\\n SNOWMANIO_SECRET_TOKEN=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("b"),r=e.createTextNode("Standalone:");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("pre"),r=e.createTextNode("\n# Add environment variables to production application\nSNOWMANIO_SERVER=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\nSNOWMANIO_SECRET_TOKEN=");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("h2"),r=e.createTextNode("Send Test Request");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("pre"),r=e.createTextNode("\ncurl ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode('/agent/metrics \\\n -H "Content-Type: application/json" \\\n -d \'{"token":"');e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode('","metrics":[{"name":"Test","value":22,"kind":"amount"}]}\'\n');e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[8]),s=r.childAt(i,[12]),o=r.childAt(i,[16]),l=r.createMorphAt(c,1,1),h=r.createMorphAt(c,3,3),p=r.createMorphAt(s,1,1),u=r.createMorphAt(s,3,3),m=r.createMorphAt(o,1,1),v=r.createMorphAt(o,3,3);return d(t,l,e,"baseUrl"),d(t,h,e,"model.token"),d(t,p,e,"baseUrl"),d(t,u,e,"model.token"),d(t,m,e,"baseUrl"),d(t,v,e,"model.token"),i}}}())}),define("ui/templates/apps/show/edit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","panel panel-danger panel-custom");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","panel-heading");var n=e.createElement("h3");e.setAttribute(n,"class","panel-title");var d=e.createTextNode("SnowmanIO Danger Section");e.appendChild(n,d),e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","panel-body");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createTextNode("Destroy App");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode(" - this action is inrevertable.\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline,c=n.element;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[2,3,1]),l=r.createMorphAt(s,0,0,a);return r.insertBoundary(s,0),i(t,l,e,"render",["apps/form",d(t,e,"model")],{}),c(t,o,e,"action",["destroy",d(t,e,"model")],{}),c(t,o,e,"bind-attr",[],{"class":":btn :btn-default destroing:disabled"}),s}}}())}),define("ui/templates/apps/show/info",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-4 app-slot");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1,1]),1,1);return i(t,s,e,"app-status",[],{app:d(t,e,"model")}),c}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,1,1,a);return d(t,c,e,"partial",["apps/show/install"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"model.metrics")],{},e,t),o}}}())}),define("ui/templates/apps/show/install",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,0),d(t,c,e,"partial",["apps/show/install"],{}),i}}}())}),define("ui/templates/checks/failed",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","checks-failed");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","table-response");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("table");e.setAttribute(n,"class","table table-striped");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("thead"),i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("tbody"),i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.content,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[3,1,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"checks-header"),s(a,p,t,"each",[c(a,t,"failedChecks")],{keyword:"check"},e,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"if",[i(a,t,"failedChecks")],{},e,null),s}}}())}),define("ui/templates/checks/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.content,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[0,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"checks-header"),s(a,p,t,"each",[c(a,t,"checksForMe")],{keyword:"check"},e,null),o}}}())}),define("ui/templates/components/app-status",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,null),r.insertBoundary(i,0),d(t,c,e,"app.datapoints.today.count"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("-");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,null),r.insertBoundary(i,0),d(t,c,e,"app.datapoints.yesterday.count"),i}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("-");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),n=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span");e.setAttribute(a,"class","label label-danger");var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" triggered");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"app.triggeredChecksForMe.length"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("table");e.setAttribute(a,"class","table table-striped");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("tbody"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tr"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("th");e.setAttribute(d,"colspan","2");var i=e.createTextNode("Datapoints");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tr"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("td"),i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("b"),c=e.createTextNode("Today");e.appendChild(i,c),e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("td");e.setAttribute(d,"class","yesterday");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("b"),c=e.createTextNode("Yesterday");e.appendChild(i,c),e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tr"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("td");e.setAttribute(d,"colspan","2");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" / ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.get,h=o.block,p=o.content;s.detectNamespace(c);var u;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(u=this.build(s),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=s.cloneNode(this.cachedFragment,!0))):u=this.build(s);var m=s.childAt(u,[0,1]),v=s.childAt(m,[3]),C=s.childAt(m,[5,1]),f=s.createMorphAt(s.childAt(v,[1]),4,4),g=s.createMorphAt(s.childAt(v,[3]),4,4),b=s.createMorphAt(C,1,1),N=s.createMorphAt(C,3,3),F=s.createMorphAt(C,5,5);return h(i,f,d,"if",[l(i,d,"app.datapoints.today")],{},e,t),h(i,g,d,"if",[l(i,d,"app.datapoints.yesterday")],{},a,r),p(i,b,d,"app.metricsAmountHuman"),p(i,N,d,"app.checksForMeAmountHuman"),h(i,F,d,"if",[l(i,d,"app.triggeredChecksForMe")],{},n,null),u}}}())}),define("ui/templates/components/app-title",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,null),r.insertBoundary(i,0),d(t,c,e,"app.name"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span");e.setAttribute(a,"class","glyphicon glyphicon-question-sign"),e.setAttribute(a,"data-toggle","tooltip"),e.setAttribute(a,"data-placement","top"),e.setAttribute(a,"title","Application for internal SnowmanIO metrics"),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n),h=d.createMorphAt(o,2,2,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"link-to",["apps.show.info",c(r,a,"app.id")],{},e,null),s(r,h,a,"if",[c(r,a,"app.system")],{},t,null),o}}}())}),define("ui/templates/components/check-add",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("Add Check");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["toggle"],{}),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1,1,1]),1,1);return i(t,s,e,"check-tr",[],{check:d(t,e,"newCheck"),mode:"editing",reset:"resetCreation",allowTempateChange:!0}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(d.childAt(o,[0]),1,1);
4
- return s(r,l,a,"if",[c(r,a,"collapsed")],{},e,t),o}}}())}),define("ui/templates/components/check-header",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("th"),r=e.createTextNode("Actions");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("th"),r=e.createTextNode("Check");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("th"),r=e.createTextNode("Last Check");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,4,4,r);return n.insertBoundary(s,null),c(a,o,t,"if",[i(a,t,"enableActions")],{},e,null),s}}}())}),define("ui/templates/components/check-tr",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Never runned\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("span"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n at ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.content,c=n.get,s=n.inline;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[1]),h=r.createMorphAt(l,0,0),p=r.createMorphAt(o,3,3,a);return d(t,l,e,"bind-attr",[],{"class":":check-status check.isOk:green:red"}),i(t,h,e,"check.last_status"),s(t,p,e,"moment",[c(t,e,"check.last_run_at"),"MMMM Do YYYY, HH:mm:ss"],{}),o}}}(),a=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("resolve");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["resolve"],{}),d(t,c,e,"bind-attr",[],{"class":":btn :btn-xs :btn-success resolving:disabled"}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-trash"),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.element,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1]),h=n.childAt(o,[3]),p=n.createMorphAt(o,5,5,r);return n.insertBoundary(o,null),i(a,l,t,"action",["edit"],{}),i(a,h,t,"action",["destroy"],{}),s(a,p,t,"if",[c(a,t,"check.triggered")],{},e,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[1]),1,1);return c(a,o,t,"if",[i(a,t,"check.isMy")],{},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.inline,l=c.block;i.detectNamespace(d);var h;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var p=i.createMorphAt(i.childAt(h,[1]),1,1),u=i.createMorphAt(i.childAt(h,[3]),1,1),m=i.createMorphAt(h,5,5,d);return i.insertBoundary(h,null),o(n,p,r,"component",[s(n,r,"check.humanComponentName")],{check:s(n,r,"check")}),l(n,u,r,"if",[s(n,r,"check.isNeverRunned")],{},e,t),l(n,m,r,"if",[s(n,r,"enableActions")],{},a,null),h}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n saving...\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1,1]),0,0);return i(t,s,e,"component",[d(t,e,"check.humanComponentName")],{check:d(t,e,"check")}),c}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.element,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,0]),l=r.createMorphAt(o,0,0);return i(t,o,e,"action",["select",d(t,e,"checkTemplate.name")],{}),c(t,l,e,"component",[d(t,e,"checkTemplate.componentName")],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ul"),n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("cancel");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block,s=d.element;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1]),h=n.childAt(l,[3]),p=n.createMorphAt(n.childAt(l,[1]),1,1);return c(a,p,t,"each",[i(a,t,"supportedCheckTemplates")],{keyword:"checkTemplate"},e,null),s(a,h,t,"action",["cancel"],{}),o}}}(),n=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-arrow-left"),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["list"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td");e.setAttribute(a,"colspan","3");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block,s=d.inline;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1]),h=n.createMorphAt(l,1,1),p=n.createMorphAt(l,3,3);return c(a,h,t,"if",[i(a,t,"allowTempateChange")],{},e,null),s(a,p,t,"component",[i(a,t,"templateFormComponentName")],{formTemplate:i(a,t,"formTemplate"),check:i(a,t,"check"),saveAction:"save",cancelAction:"cancel"}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.get,h=o.block;s.detectNamespace(c);var p;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(p=this.build(s),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=s.cloneNode(this.cachedFragment,!0))):p=this.build(s);var u=s.createMorphAt(p,0,0,c),m=s.createMorphAt(p,2,2,c),v=s.createMorphAt(p,4,4,c),C=s.createMorphAt(p,6,6,c),f=s.createMorphAt(p,8,8,c);return s.insertBoundary(p,null),s.insertBoundary(p,0),h(i,u,d,"if",[l(i,d,"isShow")],{},e,null),h(i,m,d,"if",[l(i,d,"isSaving")],{},t,null),h(i,v,d,"if",[l(i,d,"isDestroing")],{},a,null),h(i,C,d,"if",[l(i,d,"isEditing")],{},r,null),h(i,f,d,"if",[l(i,d,"isTemplate")],{},n,null),p}}}())}),define("ui/templates/components/checks/desc-last-value-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify whether last value will be less or more limit\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}())}),define("ui/templates/components/checks/desc-prev-day-datapoints-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify about previous day datapoints amount limit\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}())}),define("ui/templates/components/checks/form-last-value-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("form");e.setAttribute(a,"class","form-inline");var r=e.createTextNode("\n Snowman, notify when ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" will be \n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","btn-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"class","btn btn-default btn-sm dropdown-toggle"),e.setAttribute(n,"type","button"),e.setAttribute(n,"data-toggle","dropdown");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("span");e.setAttribute(d,"class","caret"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ul");e.setAttribute(n,"class","dropdown-menu"),e.setAttribute(n,"role","menu");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("more");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("less");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-success");var n=e.createTextNode("save");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-link");var n=e.createTextNode("cancel");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.content,c=n.get,s=n.inline;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[0]),h=r.childAt(l,[3]),p=r.childAt(h,[3]),u=r.childAt(p,[1,0]),m=r.childAt(p,[3,0]),v=r.childAt(l,[7]),C=r.childAt(l,[9]),f=r.createMorphAt(r.childAt(l,[1]),0,0),g=r.createMorphAt(r.childAt(h,[1]),1,1),b=r.createMorphAt(l,5,5);return d(t,l,e,"action",["save"],{on:"submit"}),i(t,f,e,"form.metric.name"),i(t,g,e,"form.cmp"),d(t,u,e,"action",["clickMore"],{}),d(t,m,e,"action",["clickLess"],{}),s(t,b,e,"input",[],{value:c(t,e,"form.value"),"class":"form-control input-sm"}),d(t,v,e,"action",["save"],{}),d(t,C,e,"action",["cancel"],{}),o}}}())}),define("ui/templates/components/checks/form-prev-day-datapoints-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("form");e.setAttribute(a,"class","form-inline");var r=e.createTextNode("\n Snowman, notify if ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" previous day datapoints amount was\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","btn-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"class","btn btn-default btn-sm dropdown-toggle"),e.setAttribute(n,"type","button"),e.setAttribute(n,"data-toggle","dropdown");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("span");e.setAttribute(d,"class","caret"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ul");e.setAttribute(n,"class","dropdown-menu"),e.setAttribute(n,"role","menu");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("more");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createElement("a");e.setAttribute(i,"href","#");var c=e.createTextNode("less");e.appendChild(i,c),e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-success");var n=e.createTextNode("save");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#"),e.setAttribute(r,"class","btn btn-sm btn-link");var n=e.createTextNode("cancel");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.content,c=n.get,s=n.inline;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[0]),h=r.childAt(l,[3]),p=r.childAt(h,[3]),u=r.childAt(p,[1,0]),m=r.childAt(p,[3,0]),v=r.childAt(l,[7]),C=r.childAt(l,[9]),f=r.createMorphAt(r.childAt(l,[1]),0,0),g=r.createMorphAt(r.childAt(h,[1]),1,1),b=r.createMorphAt(l,5,5);return d(t,l,e,"action",["save"],{on:"submit"}),i(t,f,e,"form.metric.name"),i(t,g,e,"form.cmp"),d(t,u,e,"action",["clickMore"],{}),d(t,m,e,"action",["clickLess"],{}),s(t,b,e,"input",[],{value:c(t,e,"form.value"),"class":"form-control input-sm"}),d(t,v,e,"action",["save"],{}),d(t,C,e,"action",["cancel"],{}),o}}}())}),define("ui/templates/components/checks/human-last-value-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify when ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode(" from ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\nwill be ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0),s=r.createMorphAt(r.childAt(i,[3]),0,0),o=r.createMorphAt(i,5,5,a),l=r.createMorphAt(i,7,7,a);return d(t,c,e,"check.metric.name"),d(t,s,e,"check.metric.app.name"),d(t,o,e,"check.cmp"),d(t,l,e,"check.value"),i}}}())}),define("ui/templates/components/checks/human-prev-day-datapoints-limit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Snowman, notify when ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode(" from ");e.appendChild(t,a);var a=e.createElement("b"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\ndaily datapoints amount was ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0),s=r.createMorphAt(r.childAt(i,[3]),0,0),o=r.createMorphAt(i,5,5,a),l=r.createMorphAt(i,7,7,a);return d(t,c,e,"check.metric.name"),d(t,s,e,"check.metric.app.name"),d(t,o,e,"check.cmp"),d(t,l,e,"check.value"),i}}}())}),define("ui/templates/components/ember-chart",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,0,0,a);return r.insertBoundary(i,0),d(t,c,e,"outlet"),i}}}())}),define("ui/templates/components/metrics/history-amount",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.childAt(s,[1]),l=r.createMorphAt(o,1,1),h=r.createMorphAt(o,3,3),p=r.createMorphAt(r.childAt(s,[3]),1,1);return i(t,l,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"up",duration:"history",type:"Line",width:600,height:350}),i(t,h,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"history",type:"Bar",width:600,height:350}),i(t,p,e,"snowman-table",[],{metric:d(t,e,"metric"),targets:"at,up,count"}),c}}}())}),define("ui/templates/components/metrics/history-counter",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.createMorphAt(r.childAt(s,[1]),1,1),l=r.createMorphAt(r.childAt(s,[3]),1,1);return i(t,o,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"history",type:"Line",width:600,height:350}),i(t,l,e,"snowman-table",[],{metric:d(t,e,"metric"),targets:"at,count"}),c}}}())}),define("ui/templates/components/metrics/history-time",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.childAt(s,[1]),l=r.createMorphAt(o,1,1),h=r.createMorphAt(o,3,3),p=r.createMorphAt(r.childAt(s,[3]),1,1);
5
- return i(t,l,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"avg,up",duration:"history",type:"Line",width:600,height:350}),i(t,h,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"history",type:"Bar",width:600,height:350}),i(t,p,e,"snowman-table",[],{metric:d(t,e,"metric"),targets:"at,avg,up,count"}),c}}}())}),define("ui/templates/components/metrics/show-amount",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-9");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-3");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.childAt(s,[3]),l=r.createMorphAt(r.childAt(s,[1]),1,1),h=r.createMorphAt(o,1,1),p=r.createMorphAt(o,3,3);return i(t,l,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"up",duration:"day",type:"Line",width:1200,height:520}),i(t,h,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"5min",type:"Bar",width:1200,height:200,onlyValues:!0}),i(t,p,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"up",duration:"hour",type:"Line",width:1200,height:800}),c}}}())}),define("ui/templates/components/metrics/show-counter",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-9");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-3");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.childAt(s,[3]),l=r.createMorphAt(r.childAt(s,[1]),1,1),h=r.createMorphAt(o,1,1),p=r.createMorphAt(o,3,3);return i(t,l,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"integral(count)",duration:"day",type:"Line",width:1200,height:520}),i(t,h,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"5min",type:"Bar",width:1200,height:200,onlyValues:!0}),i(t,p,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"integral(count)",duration:"hour",type:"Line",width:1200,height:800}),c}}}())}),define("ui/templates/components/metrics/show-time",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-9");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-3");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[0]),o=r.childAt(s,[3]),l=r.createMorphAt(r.childAt(s,[1]),1,1),h=r.createMorphAt(o,1,1),p=r.createMorphAt(o,3,3);return i(t,l,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"avg,up",duration:"day",type:"Line",width:1200,height:520}),i(t,h,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"count",duration:"5min",type:"Bar",width:1200,height:200,onlyValues:!0}),i(t,p,e,"snowman-graph",[],{metric:d(t,e,"metric"),targets:"avg,up",duration:"hour",type:"Line",width:1200,height:800}),c}}}())}),define("ui/templates/components/profile/email-edit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content,i=n.element;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[3]),o=r.createMorphAt(c,1,1,a);return d(t,o,e,"user.email"),i(t,s,e,"action",["toggle"],{}),c}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","well");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","email");var i=e.createTextNode("Email");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"type","submit"),e.setAttribute(n,"class","btn btn-default");var d=e.createTextNode("Update");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#"),e.setAttribute(n,"class","btn btn-link");var d=e.createTextNode("cancel");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[3]),h=r.childAt(o,[5]),p=r.createMorphAt(r.childAt(o,[1]),3,3);return d(t,o,e,"action",["update"],{on:"submit"}),c(t,p,e,"input",[],{"class":"form-control",id:"email",value:i(t,e,"email"),type:"email"}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),d(t,h,e,"action",["toggle"],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[0]),3,3),p=i.createMorphAt(l,2,2,d);return i.insertBoundary(l,null),o(n,h,r,"if",[s(n,r,"saving")],{},e,t),o(n,p,r,"if",[s(n,r,"show")],{},a,null),l}}}())}),define("ui/templates/components/profile/name-edit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content,i=n.element;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[3]),o=r.createMorphAt(c,1,1,a);return d(t,o,e,"user.name"),i(t,s,e,"action",["toggle"],{}),c}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","well");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","name");var i=e.createTextNode("Name");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"type","submit"),e.setAttribute(n,"class","btn btn-default");var d=e.createTextNode("Update");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#"),e.setAttribute(n,"class","btn btn-link");var d=e.createTextNode("cancel");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[3]),h=r.childAt(o,[5]),p=r.createMorphAt(r.childAt(o,[1]),3,3);return d(t,o,e,"action",["update"],{on:"submit"}),c(t,p,e,"input",[],{"class":"form-control",id:"name",value:i(t,e,"name")}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),d(t,h,e,"action",["toggle"],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[0]),3,3),p=i.createMorphAt(l,2,2,d);return i.insertBoundary(l,null),o(n,h,r,"if",[s(n,r,"saving")],{},e,t),o(n,p,r,"if",[s(n,r,"show")],{},a,null),l}}}())}),define("ui/templates/components/profile/password-edit",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ***\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]);return d(t,c,e,"action",["toggle"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(s,0,0,r);return n.insertBoundary(s,null),n.insertBoundary(s,0),c(a,o,t,"unless",[i(a,t,"show")],{},e,null),s}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","well");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","password");var i=e.createTextNode("Password");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","password2");var i=e.createTextNode("Repeat Password");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"type","submit"),e.setAttribute(n,"class","btn btn-default");var d=e.createTextNode("Update");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#"),e.setAttribute(n,"class","btn btn-link");var d=e.createTextNode("cancel");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[5]),h=r.childAt(o,[7]),p=r.createMorphAt(r.childAt(o,[1]),3,3),u=r.createMorphAt(r.childAt(o,[3]),3,3);return d(t,o,e,"action",["update"],{on:"submit"}),c(t,p,e,"input",[],{"class":"form-control",id:"password",type:"password",value:i(t,e,"password")}),c(t,u,e,"input",[],{"class":"form-control",id:"password2",type:"password",value:i(t,e,"password2")}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),d(t,h,e,"action",["toggle"],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Password:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[0]),3,3),p=i.createMorphAt(l,2,2,d);return i.insertBoundary(l,null),o(n,h,r,"if",[s(n,r,"saving")],{},e,t),o(n,p,r,"if",[s(n,r,"show")],{},a,null),l}}}())}),define("ui/templates/components/snowman-graph",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Loading...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"ember-chart",[],{type:d(t,e,"type"),chartData:d(t,e,"chartData"),width:d(t,e,"width"),height:d(t,e,"height"),onlyValues:d(t,e,"onlyValues")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"loading")],{},e,t),o}}}())}),define("ui/templates/components/snowman-table",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Loading...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("th"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"column"),i}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("td"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"value"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("tr"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[1]),1,1);return c(a,o,t,"each",[i(a,t,"point")],{keyword:"value"},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-bordered table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("tr"),i=e.createTextNode("\n");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(" ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.childAt(o,[1,3]),h=d.createMorphAt(d.childAt(l,[1,1]),1,1),p=d.createMorphAt(d.childAt(l,[3]),1,1);return s(r,h,a,"each",[c(r,a,"columns")],{keyword:"column"},e,null),s(r,p,a,"each",[c(r,a,"preparedDatapoints")],{keyword:"point"},t,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"loading")],{},e,t),o}}}())}),define("ui/templates/components/users/invite-user",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createTextNode("Send invitation to ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ...");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),1,1);return d(t,c,e,"email"),i}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form");e.setAttribute(r,"class","form-inline");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","email");var i=e.createTextNode("Email");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);
6
- var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("button");e.setAttribute(n,"type","submit"),e.setAttribute(n,"class","btn btn-default");var d=e.createTextNode("Send invitation");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[3]),h=r.createMorphAt(r.childAt(o,[1]),3,3);return d(t,o,e,"action",["invite"],{on:"submit"}),c(t,h,e,"input",[],{type:"email",style:"width:500px","class":"form-control",placeholder:"john@yahoo.com",value:i(t,e,"email")}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Invite new user");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.element,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1,0]),h=n.createMorphAt(o,3,3,r);return n.insertBoundary(o,null),i(a,l,t,"action",["toggle"],{}),s(a,h,t,"if",[c(a,t,"show")],{},e,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("div"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,2,2,n);return s(r,l,a,"if",[c(r,a,"sending")],{},e,t),o}}}())}),define("ui/templates/components/users/show-user",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("small"),r=e.createTextNode("FOLLOWS YOU");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("small"),r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createElement("b"),n=e.createTextNode("Snowman respects this user especially");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Unfollow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-info :btn-sm updating:disabled"}),d(t,c,e,"action",["unfollow"],{}),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Follow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-default :btn-sm updating:disabled"}),d(t,c,e,"action",["follow"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"user.isFollowedByMe")],{},e,t),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","media-left");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","media-body");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("h4");e.setAttribute(r,"class","media-heading");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode("Checks: ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("div"),n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(n,d,i){var c=d.dom,s=d.hooks,o=s.get,l=s.inline,h=s.content,p=s.block;c.detectNamespace(i);var u;d.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(u=this.build(c),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=c.cloneNode(this.cachedFragment,!0))):u=this.build(c);var m=c.childAt(u,[2]),v=c.createMorphAt(c.childAt(u,[0]),1,1),C=c.createMorphAt(c.childAt(m,[1]),1,1),f=c.createMorphAt(c.childAt(m,[3]),1,1),g=c.createMorphAt(c.childAt(m,[5]),1,1),b=c.createMorphAt(m,7,7);return l(d,v,n,"ember-gravatar",[],{email:o(d,n,"user.email"),size:94}),l(d,C,n,"link-to",[o(d,n,"user.name"),"users.show",o(d,n,"user")],{}),h(d,f,n,"user.checks.length"),p(d,g,n,"if",[o(d,n,"user.isFollowsMe")],{},e,t),p(d,b,n,"if",[o(d,n,"user.isMe")],{},a,r),u}}}())}),define("ui/templates/components/users/wait-invite-tr",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("s"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"user.email"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,1,1,a);return d(t,c,e,"user.email"),i}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" resending ...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("Resend");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("Cancel");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1]),s=r.childAt(i,[3]);return d(t,c,e,"action",["resend"],{}),d(t,s,e,"action",["cancel"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("td"),r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(n,d,i){var c=d.dom,s=d.hooks,o=s.get,l=s.block,h=s.content;c.detectNamespace(i);var p;d.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(p=this.build(c),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=c.cloneNode(this.cachedFragment,!0))):p=this.build(c);var u=c.childAt(p,[4]),m=c.createMorphAt(c.childAt(p,[0]),1,1),v=c.createMorphAt(c.childAt(p,[2]),1,1),C=c.createMorphAt(u,1,1),f=c.createMorphAt(u,3,3);return l(d,m,n,"if",[o(d,n,"canceling")],{},e,t),h(d,v,n,"user.invite_send_count"),l(d,C,n,"if",[o(d,n,"resending")],{},a,null),l(d,f,n,"if",[o(d,n,"isShowActions")],{},r,null),p}}}())}),define("ui/templates/forget_password",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","alert alert-info");var r=e.createTextNode("\n Email with password restoring instructions sended to ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(".\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,1]),0,0);return d(t,c,e,"email"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-sm-6");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("form");e.setAttribute(r,"role","form");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","form-group");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("label");e.setAttribute(d,"for","email");var i=e.createTextNode("Email");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("input");e.setAttribute(n,"type","submit"),e.setAttribute(n,"value","Reset"),e.setAttribute(n,"class","btn btn-default"),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[1,1]),l=r.childAt(o,[3]),h=r.createMorphAt(r.childAt(o,[1]),3,3);return d(t,o,e,"action",["restore"],{on:"submit"}),c(t,h,e,"input",[],{type:"email",id:"email","class":"form-control",value:i(t,e,"email")}),d(t,l,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(": Password Restore");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.inline,s=i.get,o=i.block;d.detectNamespace(n);var l;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(l=this.build(d),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=d.cloneNode(this.cachedFragment,!0))):l=this.build(d);var h=d.childAt(l,[0]),p=d.createMorphAt(d.childAt(h,[1,1]),0,0),u=d.createMorphAt(h,3,3);return c(r,p,a,"link-to",["SnowmanIO","login"],{}),o(r,u,a,"if",[s(r,a,"isSended")],{},e,t),l}}}())}),define("ui/templates/invite",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(": Invite");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","name");var c=e.createTextNode("Name");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Go"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline,i=n.element,c=n.get;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0]),l=r.childAt(o,[3,1]),h=r.childAt(l,[5]),p=r.createMorphAt(r.childAt(o,[1,1]),0,0),u=r.createMorphAt(r.childAt(l,[1]),3,3),m=r.createMorphAt(r.childAt(l,[3]),3,3);return d(t,p,e,"link-to",["SnowmanIO","login"],{}),i(t,l,e,"action",["register"],{on:"submit"}),d(t,u,e,"input",[],{id:"name","class":"form-control",value:c(t,e,"name")}),d(t,m,e,"input",[],{id:"password","class":"form-control",type:"password",value:c(t,e,"password")}),i(t,h,e,"bind-attr",[],{disabled:c(t,e,"isFormInvalid")}),s}}}())}),define("ui/templates/login",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","alert alert-danger");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),1,1);return d(t,c,e,"errorMessage"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createTextNode("SnowmanIO");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","identification");var c=e.createTextNode("Email");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Login"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block,s=d.element,o=d.inline;n.detectNamespace(r);var l;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(l=this.build(n),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=n.cloneNode(this.cachedFragment,!0))):l=this.build(n);var h=n.childAt(l,[0]),p=n.childAt(h,[5,1]),u=n.childAt(p,[5]),m=n.createMorphAt(h,3,3),v=n.createMorphAt(n.childAt(p,[1]),3,3),C=n.createMorphAt(n.childAt(p,[3]),3,3),f=n.createMorphAt(p,7,7);return c(a,m,t,"if",[i(a,t,"errorMessage")],{},e,null),s(a,p,t,"action",["authenticate"],{on:"submit"}),o(a,v,t,"input",[],{type:"email",id:"identification","class":"form-control",value:i(a,t,"identification")}),o(a,C,t,"input",[],{id:"password","class":"form-control",type:"password",value:i(a,t,"password")}),s(a,u,t,"bind-attr",[],{disabled:i(a,t,"isFormInvalid")}),o(a,f,t,"link-to",["Forget password?","forget_password"],{"class":"btn btn-link"}),l}}}())}),define("ui/templates/metrics/history",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ol");e.setAttribute(r,"class","breadcrumb");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li"),d=e.createComment("");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li");e.setAttribute(n,"class","active");var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("small"),i=e.createTextNode("(");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(")");e.appendChild(d,i),e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("ul");e.setAttribute(a,"class","nav nav-pills");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("li"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("li");e.setAttribute(r,"class","active");var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline,c=n.content;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0,1]),l=r.childAt(o,[3]),h=r.childAt(s,[2]),p=r.createMorphAt(r.childAt(o,[1]),0,0),u=r.createMorphAt(l,0,0),m=r.createMorphAt(r.childAt(l,[2]),1,1),v=r.createMorphAt(r.childAt(h,[1]),0,0),C=r.createMorphAt(r.childAt(h,[3]),0,0),f=r.createMorphAt(s,4,4,a);return i(t,p,e,"link-to",["Metrics","metrics",d(t,e,"app")],{}),c(t,u,e,"model.name"),c(t,m,e,"model.kind"),i(t,v,e,"link-to",["Now","metrics.show",d(t,e,"model")],{}),i(t,C,e,"link-to",["History","metrics.history",d(t,e,"model")],{}),i(t,f,e,"component",[d(t,e,"model.historyComponentName")],{metric:d(t,e,"model")}),s}}}())}),define("ui/templates/metrics/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("tr"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("td"),n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createElement("span");e.setAttribute(d,"class","glyphicon glyphicon-trash"),e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline,s=n.content;r.detectNamespace(a);var o;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(o=this.build(r),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=r.cloneNode(this.cachedFragment,!0))):o=this.build(r);var l=r.childAt(o,[1]),h=r.childAt(l,[7,1]),p=r.createMorphAt(r.childAt(l,[1]),0,0),u=r.createMorphAt(r.childAt(l,[3]),0,0),m=r.createMorphAt(r.childAt(l,[5]),0,0);return d(t,l,e,"bind-attr",[],{"class":"metric.triggeredChecksForMe:danger"}),c(t,p,e,"link-to",[i(t,e,"metric.name"),"metrics.show",i(t,e,"model"),i(t,e,"metric")],{}),s(t,u,e,"metric.kind"),s(t,m,e,"metric.checksForMe.length"),d(t,h,e,"action",["destroy",i(t,e,"metric")],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","table-responsive");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("tr"),i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Name");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Kind");e.appendChild(i,c),
7
- e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Checks");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("th"),c=e.createTextNode("Actions");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[0,1,3]),1,1);return c(a,o,t,"each",[i(a,t,"model.metrics")],{keyword:"metric"},e,null),s}}}())}),define("ui/templates/metrics/show",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","table-response");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("table");e.setAttribute(r,"class","table table-striped");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("thead"),d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("tbody"),d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.content,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"checks-header"),s(a,p,t,"each",[c(a,t,"checksForMe")],{keyword:"check"},e,null),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-add",[],{metric:d(t,e,"model")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("ol");e.setAttribute(r,"class","breadcrumb");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li"),d=e.createComment("");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("li");e.setAttribute(n,"class","active");var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d);var d=e.createElement("small"),i=e.createTextNode("(");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode(")");e.appendChild(d,i),e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("ul");e.setAttribute(a,"class","nav nav-pills");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("li");e.setAttribute(r,"class","active");var n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("li"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.inline,o=i.content,l=i.block;d.detectNamespace(n);var h;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var p=d.childAt(h,[0,1]),u=d.childAt(p,[3]),m=d.childAt(h,[2]),v=d.createMorphAt(d.childAt(p,[1]),0,0),C=d.createMorphAt(u,0,0),f=d.createMorphAt(d.childAt(u,[2]),1,1),g=d.createMorphAt(d.childAt(m,[1]),0,0),b=d.createMorphAt(d.childAt(m,[3]),0,0),N=d.createMorphAt(h,4,4,n),F=d.createMorphAt(h,6,6,n),T=d.createMorphAt(h,8,8,n);return d.insertBoundary(h,null),s(r,v,a,"link-to",["Metrics","metrics",c(r,a,"app")],{}),o(r,C,a,"model.name"),o(r,f,a,"model.kind"),s(r,g,a,"link-to",["Now","metrics.show",c(r,a,"model")],{}),s(r,b,a,"link-to",["History","metrics.history",c(r,a,"model")],{}),s(r,N,a,"component",[c(r,a,"model.showComponentName")],{metric:c(r,a,"model")}),l(r,F,a,"if",[c(r,a,"checksForMe")],{},e,null),l(r,T,a,"if",[c(r,a,"model.supportedCheckTemplates")],{},t,null),h}}}())}),define("ui/templates/restore_password",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(": New Password");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Update"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.inline,i=n.element,c=n.get;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0]),l=r.childAt(o,[3,1]),h=r.childAt(l,[3]),p=r.createMorphAt(r.childAt(o,[1,1]),0,0),u=r.createMorphAt(r.childAt(l,[1]),3,3);return d(t,p,e,"link-to",["SnowmanIO","login"],{}),i(t,l,e,"action",["update"],{on:"submit"}),d(t,u,e,"input",[],{id:"password","class":"form-control",type:"password",value:c(t,e,"password")}),i(t,h,e,"bind-attr",[],{disabled:c(t,e,"isFormInvalid")}),s}}}())}),define("ui/templates/snow",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Apps");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["apps"],{},e,null),c}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Users");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["users"],{},e,null),c}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Settings");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["snow.settings"],{},e,null),c}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode("Profile");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.block;n.detectNamespace(r);var c;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var s=n.createMorphAt(c,1,1,r);return i(a,s,t,"link-to",["snow.profile"],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("ul");e.setAttribute(a,"class","nav navbar-nav");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p");e.setAttribute(a,"class","navbar-text navbar-right");var r=e.createTextNode("\n Logged as ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" |\n ");e.appendChild(a,r);var r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Logout");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(n,d,i){var c=d.dom,s=d.hooks,o=s.block,l=s.content,h=s.element;c.detectNamespace(i);var p;d.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(p=this.build(c),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=c.cloneNode(this.cachedFragment,!0))):p=this.build(c);var u=c.childAt(p,[1]),m=c.childAt(p,[3]),v=c.childAt(m,[3]),C=c.createMorphAt(u,1,1),f=c.createMorphAt(u,2,2),g=c.createMorphAt(u,3,3),b=c.createMorphAt(u,4,4),N=c.createMorphAt(m,1,1);return o(d,C,n,"link-to",["apps"],{tagName:"li",href:!1},e,null),o(d,f,n,"link-to",["users"],{tagName:"li",href:!1},t,null),o(d,g,n,"link-to",["snow.settings"],{tagName:"li",href:!1},a,null),o(d,b,n,"link-to",["snow.profile"],{tagName:"li",href:!1},r,null),l(d,N,n,"currentUser.name"),h(d,v,n,"action",["invalidateSession"],{}),p}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(i,1,1,a);return d(t,c,e,"outlet"),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("nav");e.setAttribute(a,"class","navbar navbar-inverse");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","container-fluid");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","navbar-header");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("button");e.setAttribute(d,"type","button"),e.setAttribute(d,"class","navbar-toggle collapsed"),e.setAttribute(d,"data-toggle","collapse"),e.setAttribute(d,"data-target","#bs-example-navbar-collapse-1");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","sr-only");var c=e.createTextNode("Toggle navigation");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","icon-bar"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","icon-bar"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("span");e.setAttribute(i,"class","icon-bar"),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("span");e.setAttribute(d,"class","navbar-brand");var i=e.createTextNode("SnowmanIO");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","collapse navbar-collapse"),e.setAttribute(n,"id","bs-example-navbar-collapse-1");var d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","container-main container-fluid");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(d.childAt(o,[0,1,3]),1,1),h=d.createMorphAt(d.childAt(o,[2]),1,1);return s(r,l,a,"if",[c(r,a,"currentUser")],{},e,null),s(r,h,a,"if",[c(r,a,"currentUser")],{},t,null),o}}}())}),define("ui/templates/snow/profile",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1]),0,0),o=r.createMorphAt(r.childAt(c,[3]),0,0),l=r.createMorphAt(r.childAt(c,[5]),0,0);return i(t,s,e,"profile/name-edit",[],{user:d(t,e,"session.currentUser")}),i(t,o,e,"profile/email-edit",[],{user:d(t,e,"session.currentUser")}),i(t,l,e,"profile/password-edit",[],{user:d(t,e,"session.currentUser")}),c}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,2]),0,0),s=r.createMorphAt(r.childAt(i,[3,2]),0,0);return d(t,c,e,"session.currentUser.name"),d(t,s,e,"session.currentUser.email"),i}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","pull-right");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("a");e.setAttribute(d,"href","#");var i=e.createTextNode("Cancel account");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,1,1,1]);return d(t,c,e,"action",["destroy"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-offset-2 col-sm-2");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.inline,l=c.block;i.detectNamespace(d);var h;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var p=i.childAt(h,[0]),u=i.createMorphAt(i.childAt(p,[1]),1,1),m=i.createMorphAt(i.childAt(p,[3]),1,1),v=i.createMorphAt(h,2,2,d);return i.insertBoundary(h,null),o(n,u,r,"ember-gravatar",[],{email:s(n,r,"session.currentUser.email"),size:200}),l(n,m,r,"unless",[s(n,r,"destroing")],{},e,t),l(n,v,r,"unless",[s(n,r,"destroing")],{},a,null),h}}}())}),define("ui/templates/snow/settings",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("h2"),r=e.createTextNode("SnowmanIO ");e.appendChild(a,r);var r=e.createElement("small"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Base url:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[0,1]),0,0),o=r.createMorphAt(r.childAt(c,[2]),3,3),l=r.createMorphAt(c,4,4,a);return d(t,s,e,"model.info.version"),d(t,o,e,"baseUrl"),i(t,l,e,"render",["snow/settings/force_ssl"],{}),c}}}())}),define("ui/templates/snow/settings/force_ssl",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" Saving...\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("a");e.setAttribute(a,"href","#");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("span");e.setAttribute(r,"class","glyphicon glyphicon-pencil"),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content,i=n.element;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.childAt(c,[3]),o=r.createMorphAt(c,1,1,a);return d(t,o,e,"statusText"),i(t,s,e,"action",["toggle"],{}),i(t,s,e,"bind-attr",[],{"class":"saving:hidden"}),c}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","well");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","btn-group");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createTextNode("Disable");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("a");e.setAttribute(n,"href","#");var d=e.createTextNode("Enable");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,1]),s=r.childAt(c,[1]),o=r.childAt(c,[3]);return d(t,s,e,"action",["update","disable"],{}),d(t,s,e,"bind-attr",[],{"class":":btn :btn-default forceSSL::active"}),d(t,o,e,"action",["update","enable"],{}),d(t,o,e,"bind-attr",[],{"class":":btn :btn-default forceSSL:active"}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("p"),r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("b"),n=e.createTextNode("Force HTTPS:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),
8
- this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[0]),3,3),p=i.createMorphAt(l,2,2,d);return i.insertBoundary(l,null),o(n,h,r,"if",[s(n,r,"saving")],{},e,t),o(n,p,r,"if",[s(n,r,"show")],{},a,null),l}}}())}),define("ui/templates/unpacking",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","container");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","page-header");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("h1"),d=e.createTextNode("SnowmanIO: Unpacking");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","alert alert-info");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("p"),d=e.createTextNode("Let register the first user");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-6");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("form");e.setAttribute(n,"role","form");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("div");e.setAttribute(d,"class","form-group");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","email");var c=e.createTextNode("Name");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","email");var c=e.createTextNode("Email");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("br");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("label");e.setAttribute(i,"for","password");var c=e.createTextNode("Password");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createComment("");e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("input");e.setAttribute(d,"type","submit"),e.setAttribute(d,"value","Create"),e.setAttribute(d,"class","btn btn-default"),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element,i=n.get,c=n.inline;r.detectNamespace(a);var s;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(s=this.build(r),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=r.cloneNode(this.cachedFragment,!0))):s=this.build(r);var o=r.childAt(s,[0,5,1]),l=r.childAt(o,[1]),h=r.childAt(o,[3]),p=r.createMorphAt(l,3,3),u=r.createMorphAt(l,9,9),m=r.createMorphAt(l,15,15);return d(t,o,e,"action",["setup"],{on:"submit"}),c(t,p,e,"input",[],{id:"name","class":"form-control",value:i(t,e,"user.name")}),c(t,u,e,"input",[],{id:"email","class":"form-control",value:i(t,e,"user.email")}),c(t,m,e,"input",[],{id:"password","class":"form-control",type:"password",value:i(t,e,"user.password")}),d(t,h,e,"bind-attr",[],{disabled:i(t,e,"isFormInvalid")}),s}}}())}),define("ui/templates/users/index",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-md-5");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(r.childAt(c,[1]),1,1);return i(t,s,e,"users/show-user",[],{user:d(t,e,"group.second")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","col-md-offset-1 col-md-5");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.inline,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.createMorphAt(n.childAt(o,[1]),1,1),h=n.createMorphAt(o,3,3,r);return n.insertBoundary(o,null),c(a,l,t,"users/show-user",[],{user:i(a,t,"group.first")}),s(a,h,t,"if",[i(a,t,"group.second")],{},e,null),o}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"users/wait-invite-tr",[],{user:d(t,e,"user")}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","table-response");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("table");e.setAttribute(d,"class","table table-striped");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("thead"),c=e.createTextNode("\n ");e.appendChild(i,c);var c=e.createElement("tr"),s=e.createTextNode("\n ");e.appendChild(c,s);var s=e.createElement("th"),o=e.createTextNode("Email");e.appendChild(s,o),e.appendChild(c,s);var s=e.createTextNode("\n ");e.appendChild(c,s);var s=e.createElement("th"),o=e.createTextNode("Invite Send Count");e.appendChild(s,o),e.appendChild(c,s);var s=e.createTextNode("\n ");e.appendChild(c,s);var s=e.createElement("th"),o=e.createTextNode("Actions");e.appendChild(s,o),e.appendChild(c,s);var s=e.createTextNode("\n ");e.appendChild(c,s),e.appendChild(i,c);var c=e.createTextNode("\n ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("tbody"),c=e.createTextNode("\n");e.appendChild(i,c);var c=e.createComment("");e.appendChild(i,c);var c=e.createTextNode(" ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.get,c=d.block;n.detectNamespace(r);var s;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var o=n.createMorphAt(n.childAt(s,[1,1,1,1,3]),1,1);return c(a,o,t,"each",[i(a,t,"waitInviteUsers")],{keyword:"user"},e,null),s}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ol");e.setAttribute(n,"class","breadcrumb");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li");e.setAttribute(d,"class","active");var i=e.createTextNode("Users");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block,o=i.content;d.detectNamespace(n);var l;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(l=this.build(d),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=d.cloneNode(this.cachedFragment,!0))):l=this.build(d);var h=d.createMorphAt(d.childAt(l,[2]),1,1),p=d.createMorphAt(l,4,4,n),u=d.createMorphAt(d.childAt(l,[6,1]),1,1);return s(r,h,a,"each",[c(r,a,"usersInGroupsOfTwo")],{keyword:"group"},e,null),s(r,p,a,"if",[c(r,a,"waitInviteUsers")],{},t,null),o(r,u,a,"users/invite-user"),l}}}())}),define("ui/templates/users/show",["exports"],function(e){"use strict";e["default"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li");e.setAttribute(a,"class","active");var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1]),0,0);return d(t,c,e,"model.name"),i}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("li");e.setAttribute(a,"class","active");var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,0]),0,0);return d(t,c,e,"model.name"),i}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Snowman respects this user especially");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("small"),n=e.createTextNode("FOLLOWS YOU");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom;r.detectNamespace(a);var n;return t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(n=this.build(r),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=r.cloneNode(this.cachedFragment,!0))):n=this.build(r),n}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Unfollow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-info :btn-sm updating:disabled"}),d(t,c,e,"action",["unfollow"],{}),i}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("a");e.setAttribute(r,"href","#");var n=e.createTextNode("Follow");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,0]);return d(t,c,e,"bind-attr",[],{"class":":btn :btn-default :btn-sm updating:disabled"}),d(t,c,e,"action",["follow"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(r,n,d){var i=n.dom,c=n.hooks,s=c.get,o=c.block;i.detectNamespace(d);var l;n.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(l,0,0,d),p=i.createMorphAt(l,1,1,d);return i.insertBoundary(l,null),i.insertBoundary(l,0),o(n,h,r,"if",[s(n,r,"model.isFollowsMe")],{},e,null),o(n,p,r,"if",[s(n,r,"model.isFollowedByMe")],{},t,a),l}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Checks:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createComment("");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.content,s=i.get,o=i.block;d.detectNamespace(n);var l;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(l=this.build(d),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=d.cloneNode(this.cachedFragment,!0))):l=this.build(d);var h=d.createMorphAt(d.childAt(l,[1]),2,2),p=d.createMorphAt(d.childAt(l,[3]),2,2),u=d.createMorphAt(d.childAt(l,[5]),2,2),m=d.createMorphAt(l,7,7,n);return d.insertBoundary(l,null),c(r,h,a,"model.name"),c(r,p,a,"model.email"),c(r,u,a,"model.checks.length"),o(r,m,a,"if",[s(r,a,"model.isMe")],{},e,t),l}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Name:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n ");e.appendChild(t,a);var a=e.createElement("p"),r=e.createElement("b"),n=e.createTextNode("Email:");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode(" ");e.appendChild(a,r);var r=e.createElement("s"),n=e.createComment("");e.appendChild(r,n),e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.content;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.createMorphAt(r.childAt(i,[1,2]),0,0),s=r.createMorphAt(r.childAt(i,[3,2]),0,0);return d(t,c,e,"model.name"),d(t,s,e,"model.email"),i}}}(),n=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.get,i=n.inline;r.detectNamespace(a);var c;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(c=this.build(r),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=r.cloneNode(this.cachedFragment,!0))):c=this.build(r);var s=r.createMorphAt(c,1,1,a);return i(t,s,e,"check-tr",[],{check:d(t,e,"check"),enableActions:!1}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","table-response");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("table");e.setAttribute(d,"class","table table-striped");var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("thead"),c=e.createTextNode("\n ");e.appendChild(i,c);var c=e.createComment("");e.appendChild(i,c);var c=e.createTextNode("\n ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i);var i=e.createElement("tbody"),c=e.createTextNode("\n");e.appendChild(i,c);var c=e.createComment("");e.appendChild(i,c);var c=e.createTextNode(" ");e.appendChild(i,c),e.appendChild(d,i);var i=e.createTextNode("\n ");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(t,a,r){var n=a.dom,d=a.hooks,i=d.inline,c=d.get,s=d.block;n.detectNamespace(r);var o;a.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(o=this.build(n),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=n.cloneNode(this.cachedFragment,!0))):o=this.build(n);var l=n.childAt(o,[1,1,1,1]),h=n.createMorphAt(n.childAt(l,[1]),1,1),p=n.createMorphAt(n.childAt(l,[3]),1,1);return i(a,h,t,"check-header",[],{enableActions:!1}),s(a,p,t,"each",[c(a,t,"model.checks")],{keyword:"check"},e,null),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createTextNode(" ");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("div");e.setAttribute(n,"class","pull-right");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("a");e.setAttribute(d,"href","#");var i=e.createTextNode("Destroy this user forever");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n");return e.appendChild(t,a),t},render:function(e,t,a){var r=t.dom,n=t.hooks,d=n.element;r.detectNamespace(a);var i;t.useFragmentCache&&r.canClone?(null===this.cachedFragment&&(i=this.build(r),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=r.cloneNode(this.cachedFragment,!0))):i=this.build(r);var c=r.childAt(i,[1,1,1,1]);return d(t,c,e,"action",["destroy"],{}),i}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createComment("");e.appendChild(t,a);var a=e.createTextNode("\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(a,r,n){var d=r.dom,i=r.hooks,c=i.get,s=i.block;d.detectNamespace(n);var o;r.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(o=this.build(d),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=d.cloneNode(this.cachedFragment,!0))):o=this.build(d);var l=d.createMorphAt(o,0,0,n),h=d.createMorphAt(o,2,2,n);return d.insertBoundary(o,null),d.insertBoundary(o,0),s(r,l,a,"if",[c(r,a,"model.checks")],{},e,null),s(r,h,a,"unless",[c(r,a,"model.isMe")],{},t,null),o}}}();return{isHTMLBars:!0,revision:"Ember@1.11.3",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-md-offset-1 col-md-10");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createElement("ol");e.setAttribute(n,"class","breadcrumb");var d=e.createTextNode("\n ");e.appendChild(n,d);var d=e.createElement("li"),i=e.createComment("");e.appendChild(d,i),e.appendChild(n,d);var d=e.createTextNode("\n");e.appendChild(n,d);var d=e.createComment("");e.appendChild(n,d);var d=e.createTextNode(" ");e.appendChild(n,d),e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n");e.appendChild(t,a);var a=e.createElement("div");e.setAttribute(a,"class","row-fluid");var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-offset-1 col-sm-2");var n=e.createTextNode("\n ");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode("\n ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n ");e.appendChild(a,r);var r=e.createElement("div");e.setAttribute(r,"class","col-sm-8");var n=e.createTextNode("\n");e.appendChild(r,n);var n=e.createComment("");e.appendChild(r,n);var n=e.createTextNode(" ");e.appendChild(r,n),e.appendChild(a,r);var r=e.createTextNode("\n");e.appendChild(a,r),e.appendChild(t,a);var a=e.createTextNode("\n\n\n");e.appendChild(t,a);var a=e.createComment("");return e.appendChild(t,a),t},render:function(d,i,c){var s=i.dom,o=i.hooks,l=o.inline,h=o.get,p=o.block;s.detectNamespace(c);var u;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(u=this.build(s),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=s.cloneNode(this.cachedFragment,!0))):u=this.build(s);var m=s.childAt(u,[0,1,1]),v=s.childAt(u,[2]),C=s.createMorphAt(s.childAt(m,[1]),0,0),f=s.createMorphAt(m,3,3),g=s.createMorphAt(s.childAt(v,[1]),1,1),b=s.createMorphAt(s.childAt(v,[3]),1,1),N=s.createMorphAt(u,4,4,c);return s.insertBoundary(u,null),l(i,C,d,"link-to",["Users","users"],{}),p(i,f,d,"unless",[h(i,d,"destroing")],{},e,t),l(i,g,d,"ember-gravatar",[],{email:h(i,d,"model.email"),size:200}),p(i,b,d,"unless",[h(i,d,"destroing")],{},a,r),p(i,N,d,"unless",[h(i,d,"destroing")],{},n,null),u}}}())}),define("ui/config/environment",["ember"],function(e){var t="ui";try{var a=t+"/config/environment",r=e["default"].$('meta[name="'+a+'"]').attr("content"),n=JSON.parse(unescape(r));return{"default":n}}catch(d){throw new Error('Could not read config from meta tag with name "'+a+'".')}}),runningTests?require("ui/tests/test-helper"):require("ui/app")["default"].create({name:"ui",version:"0.0.0.2a4b008f"});