ember-source 1.0.0.rc3.4 → 1.0.0.rc3.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ember-source might be problematic. Click here for more details.

@@ -8,10 +8,10 @@
8
8
  // ==========================================================================
9
9
 
10
10
 
11
- // Version: v1.0.0-rc.3-251-gcd5dfe3
12
- // Last commit: cd5dfe3 (2013-05-18 11:06:43 -0700)
11
+ // Version: v1.0.0-rc.3-2-g85bfdbf
12
+ // Last commit: 85bfdbf (2013-07-25 20:16:20 -0400)
13
13
 
14
14
 
15
- (function(){var e,r;(function(){var t={},n={};e=function(e,r,n){t[e]={deps:r,callback:n}},r=function(e){if(n[e])return n[e];n[e]={};for(var i,o=t[e],s=o.deps,a=o.callback,u=[],c=0,h=s.length;h>c;c++)s[c]==="exports"?u.push(i={}):u.push(r(s[c]));var l=a.apply(this,u);return n[e]=i||l}})(),function(){function e(e){return r.console&&r.console[e]?r.console[e].apply?function(){r.console[e].apply(r.console,arguments)}:function(){var t=Array.prototype.join.call(arguments,", ");r.console[e](t)}:void 0}"undefined"==typeof Ember&&(Ember={});var r=Ember.imports=Ember.imports||this,t=Ember.exports=Ember.exports||this;Ember.lookup=Ember.lookup||this,t.Em=t.Ember=Em=Ember,Ember.isNamespace=!0,Ember.toString=function(){return"Ember"},Ember.VERSION="1.0.0-rc.3",Ember.ENV=Ember.ENV||("undefined"==typeof ENV?{}:ENV),Ember.config=Ember.config||{},Ember.EXTEND_PROTOTYPES=Ember.ENV.EXTEND_PROTOTYPES,typeof Ember.EXTEND_PROTOTYPES=="undefined"&&(Ember.EXTEND_PROTOTYPES=!0),Ember.LOG_STACKTRACE_ON_DEPRECATION=Ember.ENV.LOG_STACKTRACE_ON_DEPRECATION!==!1,Ember.SHIM_ES5=Ember.ENV.SHIM_ES5===!1?!1:Ember.EXTEND_PROTOTYPES,Ember.LOG_VERSION=Ember.ENV.LOG_VERSION===!1?!1:!0,Ember.K=function(){return this},"undefined"==typeof Ember.assert&&(Ember.assert=Ember.K),"undefined"==typeof Ember.warn&&(Ember.warn=Ember.K),"undefined"==typeof Ember.debug&&(Ember.debug=Ember.K),"undefined"==typeof Ember.deprecate&&(Ember.deprecate=Ember.K),"undefined"==typeof Ember.deprecateFunc&&(Ember.deprecateFunc=function(e,r){return r}),Ember.uuid=0,Ember.Logger={log:e("log")||Ember.K,warn:e("warn")||Ember.K,error:e("error")||Ember.K,info:e("info")||Ember.K,debug:e("debug")||e("info")||Ember.K},Ember.onerror=null,Ember.handleErrors=function(e,r){if("function"!=typeof Ember.onerror)return e.call(r||this);try{return e.call(r||this)}catch(t){Ember.onerror(t)}},Ember.merge=function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t]);return e},Ember.isNone=function(e){return null===e||void 0===e},Ember.none=Ember.deprecateFunc("Ember.none is deprecated. Please use Ember.isNone instead.",Ember.isNone),Ember.isEmpty=function(e){return Ember.isNone(e)||e.length===0&&"function"!=typeof e||"object"==typeof e&&Ember.get(e,"length")===0},Ember.empty=Ember.deprecateFunc("Ember.empty is deprecated. Please use Ember.isEmpty instead.",Ember.isEmpty)}(),function(){var e=Ember.platform={};if(Ember.create=Object.create,Ember.create&&Ember.create({a:1},{a:{value:2}}).a!==2&&(Ember.create=null),!Ember.create||Ember.ENV.STUB_OBJECT_CREATE){var r=function(){};Ember.create=function(e,t){if(r.prototype=e,e=new r,t){r.prototype=e;for(var n in t)r.prototype[n]=t[n].value;e=new r}return r.prototype=null,e},Ember.create.isSimulated=!0}var t,n,i=Object.defineProperty;if(i)try{i({},"a",{get:function(){}})}catch(o){i=null}i&&(t=function(){var e={};return i(e,"a",{configurable:!0,enumerable:!0,get:function(){},set:function(){}}),i(e,"a",{configurable:!0,enumerable:!0,writable:!0,value:!0}),e.a===!0}(),n=function(){try{return i(document.createElement("div"),"definePropertyOnDOM",{}),!0}catch(e){}return!1}(),t?n||(i=function(e,r,t){var n;return n="object"==typeof Node?e instanceof Node:"object"==typeof e&&typeof e.nodeType=="number"&&typeof e.nodeName=="string",n?e[r]=t.value:Object.defineProperty(e,r,t)}):i=null),e.defineProperty=i,e.hasPropertyAccessors=!0,e.defineProperty||(e.hasPropertyAccessors=!1,e.defineProperty=function(e,r,t){t.get||(e[r]=t.value)},e.defineProperty.isSimulated=!0),Ember.ENV.MANDATORY_SETTER&&!e.hasPropertyAccessors&&(Ember.ENV.MANDATORY_SETTER=!1)}(),function(){var e=function(e){return e&&Function.prototype.toString.call(e).indexOf("[native code]")>-1},r=e(Array.prototype.map)?Array.prototype.map:function(e){if(void 0===this||null===this)throw new TypeError;var r=Object(this),t=r.length>>>0;if("function"!=typeof e)throw new TypeError;for(var n=new Array(t),i=arguments[1],o=0;t>o;o++)o in r&&(n[o]=e.call(i,r[o],o,r));return n},t=e(Array.prototype.forEach)?Array.prototype.forEach:function(e){if(void 0===this||null===this)throw new TypeError;var r=Object(this),t=r.length>>>0;if("function"!=typeof e)throw new TypeError;for(var n=arguments[1],i=0;t>i;i++)i in r&&e.call(n,r[i],i,r)},n=e(Array.prototype.indexOf)?Array.prototype.indexOf:function(e,r){null===r||void 0===r?r=0:0>r&&(r=Math.max(0,this.length+r));for(var t=r,n=this.length;n>t;t++)if(this[t]===e)return t;return-1};Ember.ArrayPolyfills={map:r,forEach:t,indexOf:n},Ember.SHIM_ES5&&(Array.prototype.map||(Array.prototype.map=r),Array.prototype.forEach||(Array.prototype.forEach=t),Array.prototype.indexOf||(Array.prototype.indexOf=n))}(),function(){function e(e){this.descs={},this.watching={},this.cache={},this.source=e}function r(e,r){return!(!e||typeof e[r]!="function")}var t=Ember.platform.defineProperty,n=Ember.create,i="__ember"+ +new Date,o=0,s=[],a={},u=Ember.ENV.MANDATORY_SETTER;Ember.GUID_KEY=i;var c={writable:!1,configurable:!1,enumerable:!1,value:null};Ember.generateGuid=function(e,r){r||(r="ember");var n=r+o++;return e&&(c.value=n,t(e,i,c)),n},Ember.guidFor=function(e){if(void 0===e)return"(undefined)";if(null===e)return"(null)";var r,n=typeof e;switch(n){case"number":return r=s[e],r||(r=s[e]="nu"+e),r;case"string":return r=a[e],r||(r=a[e]="st"+o++),r;case"boolean":return e?"(true)":"(false)";default:return e[i]?e[i]:e===Object?"(Object)":e===Array?"(Array)":(r="ember"+o++,c.value=r,t(e,i,c),r)}};var h={writable:!0,configurable:!1,enumerable:!1,value:null},l=Ember.GUID_KEY+"_meta";Ember.META_KEY=l;var f={descs:{},watching:{}};u&&(f.values={}),Ember.EMPTY_META=f,Object.freeze&&Object.freeze(f);var m=Ember.platform.defineProperty.isSimulated;m&&(e.prototype.__preventPlainObject__=!0,e.prototype.toJSON=function(){}),Ember.meta=function(r,i){var o=r[l];return i===!1?o||f:(o?o.source!==r&&(m||t(r,l,h),o=n(o),o.descs=n(o.descs),o.watching=n(o.watching),o.cache={},o.source=r,u&&(o.values=n(o.values)),r[l]=o):(m||t(r,l,h),o=new e(r),u&&(o.values={}),r[l]=o,o.descs.constructor=null),o)},Ember.getMeta=function(e,r){var t=Ember.meta(e,!1);return t[r]},Ember.setMeta=function(e,r,t){var n=Ember.meta(e,!0);return n[r]=t,t},Ember.metaPath=function(e,r,t){for(var i,o,s=Ember.meta(e,t),a=0,u=r.length;u>a;a++){if(i=r[a],o=s[i]){if(o.__ember_source__!==e){if(!t)return void 0;o=s[i]=n(o),o.__ember_source__=e}}else{if(!t)return void 0;o=s[i]={__ember_source__:e}}s=o}return o},Ember.wrap=function(e,r){function t(){}function n(){var n,i=this._super;return this._super=r||t,n=e.apply(this,arguments),this._super=i,n}return n.wrappedFunction=e,n.__ember_observes__=e.__ember_observes__,n.__ember_observesBefore__=e.__ember_observesBefore__,n},Ember.isArray=function(e){return!e||e.setInterval?!1:Array.isArray&&Array.isArray(e)?!0:Ember.Array&&Ember.Array.detect(e)?!0:e.length!==void 0&&"object"==typeof e?!0:!1},Ember.makeArray=function(e){return null===e||void 0===e?[]:Ember.isArray(e)?e:[e]},Ember.canInvoke=r,Ember.tryInvoke=function(e,t,n){return r(e,t)?e[t].apply(e,n||[]):void 0};var b=function(){var e=0;try{try{}finally{throw e++,new Error("needsFinallyFixTest")}}catch(r){}return 1!==e}();Ember.tryFinally=b?function(e,r,t){var n,i,o;t=t||this;try{n=e.call(t)}finally{try{i=r.call(t)}catch(s){o=s}}if(o)throw o;return void 0===i?n:i}:function(e,r,t){var n,i;t=t||this;try{n=e.call(t)}finally{i=r.call(t)}return void 0===i?n:i},Ember.tryCatchFinally=b?function(e,r,t,n){var i,o,s;n=n||this;try{i=e.call(n)}catch(a){i=r.call(n,a)}finally{try{o=t.call(n)}catch(u){s=u}}if(s)throw s;return void 0===o?i:o}:function(e,r,t,n){var i,o;n=n||this;try{i=e.call(n)}catch(s){i=r.call(n,s)}finally{o=t.call(n)}return void 0===o?i:o};var p={},E="Boolean Number String Function Array Date RegExp Object".split(" ");Ember.ArrayPolyfills.forEach.call(E,function(e){p["[object "+e+"]"]=e.toLowerCase()});var d=Object.prototype.toString;Ember.typeOf=function(e){var r;return r=null===e||void 0===e?String(e):p[d.call(e)]||"object","function"===r?Ember.Object&&Ember.Object.detect(e)&&(r="class"):"object"===r&&(r=e instanceof Error?"error":Ember.Object&&e instanceof Ember.Object?"instance":"object"),r}}(),function(){Ember.Instrumentation={};var e=[],r={},t=function(t){for(var n,i=[],o=0,s=e.length;s>o;o++)n=e[o],n.regex.test(t)&&i.push(n.object);return r[t]=i,i},n=function(){var e="undefined"!=typeof window?window.performance||{}:{},r=e.now||e.mozNow||e.webkitNow||e.msNow||e.oNow;return r?r.bind(e):function(){return+new Date}}();Ember.Instrumentation.instrument=function(e,i,o,s){function a(){for(b=0,p=f.length;p>b;b++)m=f[b],E[b]=m.before(e,n(),i);return o.call(s)}function u(e){i=i||{},i.exception=e}function c(){for(b=0,p=f.length;p>b;b++)m=f[b],m.after(e,n(),i,E[b]);Ember.STRUCTURED_PROFILE&&console.timeEnd(h)}var h,l,f=r[e];if(Ember.STRUCTURED_PROFILE&&(h=e+": "+i.object,console.time(h)),f||(f=t(e)),f.length===0)return l=o.call(s),Ember.STRUCTURED_PROFILE&&console.timeEnd(h),l;var m,b,p,E=[];return Ember.tryCatchFinally(a,u,c)},Ember.Instrumentation.subscribe=function(t,n){for(var i,o=t.split("."),s=[],a=0,u=o.length;u>a;a++)i=o[a],"*"===i?s.push("[^\\.]*"):s.push(i);s=s.join("\\."),s+="(\\..*)?";var c={pattern:t,regex:new RegExp("^"+s+"$"),object:n};return e.push(c),r={},c},Ember.Instrumentation.unsubscribe=function(t){for(var n,i=0,o=e.length;o>i;i++)e[i]===t&&(n=i);e.splice(n,1),r={}},Ember.Instrumentation.reset=function(){e=[],r={}},Ember.instrument=Ember.Instrumentation.instrument,Ember.subscribe=Ember.Instrumentation.subscribe}(),function(){var e,r,t,n;n=Array.prototype.concat,e=Array.prototype.map||Ember.ArrayPolyfills.map,r=Array.prototype.forEach||Ember.ArrayPolyfills.forEach,t=Array.prototype.indexOf||Ember.ArrayPolyfills.indexOf;var i=Ember.EnumerableUtils={map:function(r,t,n){return r.map?r.map.call(r,t,n):e.call(r,t,n)},forEach:function(e,t,n){return e.forEach?e.forEach.call(e,t,n):r.call(e,t,n)},indexOf:function(e,r,n){return e.indexOf?e.indexOf.call(e,r,n):t.call(e,r,n)},indexesOf:function(e,r){return void 0===r?[]:i.map(r,function(r){return i.indexOf(e,r)})},addObject:function(e,r){var t=i.indexOf(e,r);-1===t&&e.push(r)},removeObject:function(e,r){var t=i.indexOf(e,r);-1!==t&&e.splice(t,1)},replace:function(e,r,t,i){if(e.replace)return e.replace(r,t,i);var o=n.apply([r,t],i);return e.splice.apply(e,o)},intersection:function(e,r){var t=[];return i.forEach(e,function(e){i.indexOf(r,e)>=0&&t.push(e)}),t}}}(),function(){var e=Ember.guidFor,r=Ember.ArrayPolyfills.indexOf,t=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r},n=function(e,r){var n=e.keys.copy(),i=t(e.values);return r.keys=n,r.values=i,r},i=Ember.OrderedSet=function(){this.clear()};i.create=function(){return new i},i.prototype={clear:function(){this.presenceSet={},this.list=[]},add:function(r){var t=e(r),n=this.presenceSet,i=this.list;t in n||(n[t]=!0,i.push(r))},remove:function(t){var n=e(t),i=this.presenceSet,o=this.list;delete i[n];var s=r.call(o,t);s>-1&&o.splice(s,1)},isEmpty:function(){return this.list.length===0},has:function(r){var t=e(r),n=this.presenceSet;return t in n},forEach:function(e,r){for(var t=this.toArray(),n=0,i=t.length;i>n;n++)e.call(r,t[n])},toArray:function(){return this.list.slice()},copy:function(){var e=new i;return e.presenceSet=t(this.presenceSet),e.list=this.toArray(),e}};var o=Ember.Map=function(){this.keys=Ember.OrderedSet.create(),this.values={}};o.create=function(){return new o},o.prototype={get:function(r){var t=this.values,n=e(r);return t[n]},set:function(r,t){var n=this.keys,i=this.values,o=e(r);n.add(r),i[o]=t},remove:function(r){var t=this.keys,n=this.values,i=e(r);return n.hasOwnProperty(i)?(t.remove(r),delete n[i],!0):!1},has:function(r){var t=this.values,n=e(r);return t.hasOwnProperty(n)},forEach:function(r,t){var n=this.keys,i=this.values;n.forEach(function(n){var o=e(n);r.call(t,n,i[o])})},copy:function(){return n(this,new o)}};var s=Ember.MapWithDefault=function(e){o.call(this),this.defaultValue=e.defaultValue};s.create=function(e){return e?new s(e):new o},s.prototype=Ember.create(o.prototype),s.prototype.get=function(e){var r=this.has(e);if(r)return o.prototype.get.call(this,e);var t=this.defaultValue(e);return this.set(e,t),t},s.prototype.copy=function(){return n(this,new s({defaultValue:this.defaultValue}))}}(),function(){function e(e){return e.match(a)[0]}function r(r,n){var i,a=s.test(n),u=!a&&o.test(n);if((!r||u)&&(r=Ember.lookup),a&&(n=n.slice(5)),r===Ember.lookup&&(i=e(n),r=t(r,i),n=n.slice(i.length+1)),!n||n.length===0)throw new Error("Invalid Path");return[r,n]}var t,n=Ember.META_KEY,i=Ember.ENV.MANDATORY_SETTER,o=/^([A-Z$]|([0-9][A-Z$])).*[\.\*]/,s=/^this[\.\*]/,a=/^([^\.\*]+)/;t=function(e,r){if(""===r)return e;if(r||"string"!=typeof e||(r=e,e=null),null===e||r.indexOf(".")!==-1)return u(e,r);var t,o=e[n],s=o&&o.descs[r];return s?s.get(e,r):(t=i&&o&&o.watching[r]>0?o.values[r]:e[r],void 0!==t||"object"!=typeof e||r in e||"function"!=typeof e.unknownProperty?t:e.unknownProperty(r))},Ember.config.overrideAccessors&&(Ember.get=t,Ember.config.overrideAccessors(),t=Ember.get);var u=Ember._getPath=function(e,n){var i,o,a,u,c;if(null===e&&n.indexOf(".")===-1)return t(Ember.lookup,n);for(i=s.test(n),(!e||i)&&(a=r(e,n),e=a[0],n=a[1],a.length=0),o=n.split("."),c=o.length,u=0;void 0!==e&&null!==e&&c>u;u++)if(e=t(e,o[u],!0),e&&e.isDestroyed)return void 0;return e};Ember.normalizeTuple=function(e,t){return r(e,t)},Ember.getWithDefault=function(e,r,n){var i=t(e,r);return void 0===i?n:i},Ember.get=t,Ember.getPath=Ember.deprecateFunc("getPath is deprecated since get now supports paths",Ember.get)}(),function(){function e(e,r,t){for(var n=-1,i=0,o=e.length;o>i;i++)if(r===e[i][0]&&t===e[i][1]){n=i;break}return n}function r(e,r){var t,n=m(e,!0);return n.listeners||(n.listeners={}),n.hasOwnProperty("listeners")||(n.listeners=f(n.listeners)),t=n.listeners[r],t&&!n.listeners.hasOwnProperty(r)?t=n.listeners[r]=n.listeners[r].slice():t||(t=n.listeners[r]=[]),t}function t(r,t,n){var i=r[b],o=i&&i.listeners&&i.listeners[t];if(o)for(var s=o.length-1;s>=0;s--){var a=o[s][0],u=o[s][1],c=o[s][2],h=e(n,a,u);-1===h&&n.push([a,u,c])}}function n(r,t,n){var i=r[b],o=i&&i.listeners&&i.listeners[t],s=[];if(o){for(var a=o.length-1;a>=0;a--){var u=o[a][0],c=o[a][1],h=o[a][2],l=e(n,u,c);-1===l&&(n.push([u,c,h]),s.push([u,c,h]))}return s}}function i(t,n,i,o,s){o||"function"!=typeof i||(o=i,i=null);var a=r(t,n),u=e(a,i,o),c=0;s&&(c|=p),-1===u&&(a.push([i,o,c]),"function"==typeof t.didAddListener&&t.didAddListener(n,i,o))}function o(t,n,i,o){function s(i,o){var s=r(t,n),a=e(s,i,o);-1!==a&&(s.splice(a,1),"function"==typeof t.didRemoveListener&&t.didRemoveListener(n,i,o))}if(o||"function"!=typeof i||(o=i,i=null),o)s(i,o);else{var a=t[b],u=a&&a.listeners&&a.listeners[n];if(!u)return;for(var c=u.length-1;c>=0;c--)s(u[c][0],u[c][1])}}function s(t,n,i,o,s){function a(){return s.call(i)}function u(){c&&(c[2]&=~E)}o||"function"!=typeof i||(o=i,i=null);var c,h=r(t,n),l=e(h,i,o);return-1!==l&&(c=h[l].slice(),c[2]|=E,h[l]=c),Ember.tryFinally(a,u)}function a(t,n,i,o,s){function a(){return s.call(i)}function u(){for(f=0,m=b.length;m>f;f++)b[f][2]&=~E}o||"function"!=typeof i||(o=i,i=null);var c,h,l,f,m,b=[];for(f=0,m=n.length;m>f;f++){c=n[f],h=r(t,c);var p=e(h,i,o);-1!==p&&(l=h[p].slice(),l[2]|=E,h[p]=l,b.push(l))}return Ember.tryFinally(a,u)}function u(e){var r=e[b].listeners,t=[];if(r)for(var n in r)r[n]&&t.push(n);return t}function c(e,r,t,n){if(e!==Ember&&"function"==typeof e.sendEvent&&e.sendEvent(r,t),!n){var i=e[b];n=i&&i.listeners&&i.listeners[r]}if(n){for(var s=n.length-1;s>=0;s--){var a=n[s];if(a){var u=a[0],c=a[1],h=a[2];h&E||(h&p&&o(e,r,u,c),u||(u=e),"string"==typeof c&&(c=u[c]),t?c.apply(u,t):c.call(u))}}return!0}}function h(e,r){var t=e[b],n=t&&t.listeners&&t.listeners[r];return!(!n||!n.length)}function l(e,r){var t=[],n=e[b],i=n&&n.listeners&&n.listeners[r];if(!i)return t;for(var o=0,s=i.length;s>o;o++){var a=i[o][0],u=i[o][1];t.push([a,u])}return t}var f=Ember.create,m=Ember.meta,b=Ember.META_KEY,p=1,E=2;Ember.addListener=i,Ember.removeListener=o,Ember._suspendListener=s,Ember._suspendListeners=a,Ember.sendEvent=c,Ember.hasListeners=h,Ember.watchedEvents=u,Ember.listenersFor=l,Ember.listenersDiff=n,Ember.listenersUnion=t}(),function(){var e=Ember.guidFor,r=Ember.sendEvent,t=Ember._ObserverSet=function(){this.clear()};t.prototype.add=function(r,t,n){var i,o=this.observerSet,s=this.observers,a=e(r),u=o[a];return u||(o[a]=u={}),i=u[t],void 0===i&&(i=s.push({sender:r,keyName:t,eventName:n,listeners:[]})-1,u[t]=i),s[i].listeners},t.prototype.flush=function(){var e,t,n,i,o=this.observers;for(this.clear(),e=0,t=o.length;t>e;++e)n=o[e],i=n.sender,i.isDestroying||i.isDestroyed||r(i,n.eventName,[i,n.keyName],n.listeners)},t.prototype.clear=function(){this.observerSet={},this.observers=[]}}(),function(){function e(e,r,i){if(!e.isDestroying){var o=n,s=!o;s&&(o=n={}),t(p,e,r,o,i),s&&(n=null)}}function r(e,r,n){if(!e.isDestroying){var o=i,s=!o;s&&(o=i={}),t(E,e,r,o,n),s&&(i=null)}}function t(e,r,t,n,i){var o=s(r);if(n[o]||(n[o]={}),!n[o][t]){n[o][t]=!0;var a=i.deps;if(a=a&&a[t])for(var u in a){var c=i.descs[u];c&&c._suspended===r||e(r,u)}}}var n,i,o=Ember.meta,s=Ember.guidFor,a=Ember.tryFinally,u=Ember.sendEvent,c=Ember.listenersUnion,h=Ember.listenersDiff,l=Ember._ObserverSet,f=new l,m=new l,b=0,p=Ember.propertyWillChange=function(r,t){var n=o(r,!1),i=n.watching[t]>0||"length"===t,s=n.proto,a=n.descs[t];i&&s!==r&&(a&&a.willChange&&a.willChange(r,t),e(r,t,n),d(r,t,n),_(r,t))},E=Ember.propertyDidChange=function(e,t){var n=o(e,!1),i=n.watching[t]>0||"length"===t,s=n.proto,a=n.descs[t];s!==e&&(a&&a.didChange&&a.didChange(e,t),(i||"length"===t)&&(r(e,t,n),v(e,t,n),O(e,t)))},d=function(e,r,t,n){if(t.hasOwnProperty("chainWatchers")){var i=t.chainWatchers;if(i=i[r])for(var o=0,s=i.length;s>o;o++)i[o].willChange(n)}},v=function(e,r,t,n){if(t.hasOwnProperty("chainWatchers")){var i=t.chainWatchers;if(i=i[r])for(var o=i.length-1;o>=0;o--)i[o].didChange(n)}};Ember.overrideChains=function(e,r,t){v(e,r,t,!0)};var g=Ember.beginPropertyChanges=function(){b++},y=Ember.endPropertyChanges=function(){b--,0>=b&&(f.clear(),m.flush())};Ember.changeProperties=function(e,r){g(),a(e,y,r)};var _=function(e,r){if(!e.isDestroying){var t,n,i=r+":before";b?(t=f.add(e,r,i),n=h(e,i,t),u(e,i,[e,r],n)):u(e,i,[e,r])}},O=function(e,r){if(!e.isDestroying){var t,n=r+":change";b?(t=m.add(e,r,n),c(e,n,t)):u(e,n,[e,r])}}}(),function(){function e(e,r,t,o){var s;if(s=r.slice(r.lastIndexOf(".")+1),r=r.slice(0,r.length-(s.length+1)),"this"!==r&&(e=n(e,r)),!s||s.length===0)throw new Error("You passed an empty path");if(!e){if(o)return;throw new Error("Object in path "+r+" could not be found or was destroyed.")}return i(e,s,t)}var r=Ember.META_KEY,t=Ember.ENV.MANDATORY_SETTER,n=Ember._getPath,i=function(n,i,o,s){if("string"==typeof n&&(o=i,i=n,n=null),!n||i.indexOf(".")!==-1)return e(n,i,o,s);var a,u,c=n[r],h=c&&c.descs[i];return h?h.set(n,i,o):(a="object"==typeof n&&!(i in n),a&&"function"==typeof n.setUnknownProperty?n.setUnknownProperty(i,o):c&&c.watching[i]>0?(u=t?c.values[i]:n[i],o!==u&&(Ember.propertyWillChange(n,i),t?void 0!==u||i in n?c.values[i]=o:Ember.defineProperty(n,i,null,o):n[i]=o,Ember.propertyDidChange(n,i))):n[i]=o),o};Ember.config.overrideAccessors&&(Ember.set=i,Ember.config.overrideAccessors(),i=Ember.set),Ember.set=i,Ember.setPath=Ember.deprecateFunc("setPath is deprecated since set now supports paths",Ember.set),Ember.trySet=function(e,r,t){return i(e,r,t,!0)},Ember.trySetPath=Ember.deprecateFunc("trySetPath has been renamed to trySet",Ember.trySet)}(),function(){var e=Ember.META_KEY,r=Ember.meta,t=Ember.platform.defineProperty,n=Ember.ENV.MANDATORY_SETTER;Ember.Descriptor=function(){};var i=Ember.MANDATORY_SETTER_FUNCTION=function(){},o=Ember.DEFAULT_GETTER_FUNCTION=function(r){return function(){var t=this[e];return t&&t.values[r]}};Ember.defineProperty=function(e,s,a,u,c){var h,l,f,m;return c||(c=r(e)),h=c.descs,l=c.descs[s],f=c.watching[s]>0,l instanceof Ember.Descriptor&&l.teardown(e,s),a instanceof Ember.Descriptor?(m=a,h[s]=a,n&&f?t(e,s,{configurable:!0,enumerable:!0,writable:!0,value:void 0}):e[s]=void 0,a.setup(e,s)):(h[s]=void 0,null==a?(m=u,n&&f?(c.values[s]=u,t(e,s,{configurable:!0,enumerable:!0,set:i,get:o(s)})):e[s]=u):(m=a,t(e,s,a))),f&&Ember.overrideChains(e,s,c),e.didDefineProperty&&e.didDefineProperty(e,s,m),this}}(),function(){var e=Ember.changeProperties,r=Ember.set;Ember.setProperties=function(t,n){return e(function(){for(var e in n)n.hasOwnProperty(e)&&r(t,e,n[e])}),t}}(),function(){var e=Ember.meta,r=Ember.typeOf,t=Ember.ENV.MANDATORY_SETTER,n=Ember.platform.defineProperty;Ember.watchKey=function(i,o){if("length"!==o||r(i)!=="array"){var s,a=e(i),u=a.watching;u[o]?u[o]=(u[o]||0)+1:(u[o]=1,s=a.descs[o],s&&s.willWatch&&s.willWatch(i,o),"function"==typeof i.willWatchProperty&&i.willWatchProperty(o),t&&o in i&&(a.values[o]=i[o],n(i,o,{configurable:!0,enumerable:!0,set:Ember.MANDATORY_SETTER_FUNCTION,get:Ember.DEFAULT_GETTER_FUNCTION(o)})))}},Ember.unwatchKey=function(r,i){var o,s=e(r),a=s.watching;a[i]===1?(a[i]=0,o=s.descs[i],o&&o.didUnwatch&&o.didUnwatch(r,i),"function"==typeof r.didUnwatchProperty&&r.didUnwatchProperty(i),t&&i in r&&(n(r,i,{configurable:!0,enumerable:!0,writable:!0,value:s.values[i]}),delete s.values[i])):a[i]>1&&a[i]--}}(),function(){function e(e){return e.match(f)[0]}function r(e,r,t){if(e&&"object"==typeof e){var i=n(e),o=i.chainWatchers;i.hasOwnProperty("chainWatchers")||(o=i.chainWatchers={}),o[r]||(o[r]=[]),o[r].push(t),u(e,r)}}function t(e){return n(e,!1).proto===e}var n=Ember.meta,i=Ember.get,o=Ember.normalizeTuple,s=Ember.ArrayPolyfills.forEach,a=Ember.warn,u=Ember.watchKey,c=Ember.unwatchKey,h=Ember.propertyWillChange,l=Ember.propertyDidChange,f=/^([^\.\*]+)/,m=[];Ember.flushPendingChains=function(){if(m.length!==0){var e=m;m=[],s.call(e,function(e){e[0].add(e[1])}),a("Watching an undefined global, Ember expects watched globals to be setup by the time the run loop is flushed, check for typos",m.length===0)}};var b=Ember.removeChainWatcher=function(e,r,t){if(e&&"object"==typeof e){var i=n(e,!1);if(i.hasOwnProperty("chainWatchers")){var o=i.chainWatchers;if(o[r]){o=o[r];for(var s=0,a=o.length;a>s;s++)o[s]===t&&o.splice(s,1)}c(e,r)}}},p=Ember._ChainNode=function(e,t,n){this._parent=e,this._key=t,this._watching=void 0===n,this._value=n,this._paths={},this._watching&&(this._object=e.value(),this._object&&r(this._object,this._key,this)),this._parent&&this._parent._key==="@each"&&this.value()},E=p.prototype;E.value=function(){if(this._value===void 0&&this._watching){var e=this._parent.value();this._value=e&&!t(e)?i(e,this._key):void 0}return this._value},E.destroy=function(){if(this._watching){var e=this._object;e&&b(e,this._key,this),this._watching=!1}},E.copy=function(e){var r,t=new p(null,null,e),n=this._paths;for(r in n)n[r]<=0||t.add(r);return t},E.add=function(r){var t,n,i,s,a;if(a=this._paths,a[r]=(a[r]||0)+1,t=this.value(),n=o(t,r),n[0]&&n[0]===t)r=n[1],i=e(r),r=r.slice(i.length+1);else{if(!n[0])return m.push([this,r]),n.length=0,void 0;s=n[0],i=r.slice(0,0-(n[1].length+1)),r=n[1]}n.length=0,this.chain(i,r,s)},E.remove=function(r){var t,n,i,s,a;a=this._paths,a[r]>0&&a[r]--,t=this.value(),n=o(t,r),n[0]===t?(r=n[1],i=e(r),r=r.slice(i.length+1)):(s=n[0],i=r.slice(0,0-(n[1].length+1)),r=n[1]),n.length=0,this.unchain(i,r)},E.count=0,E.chain=function(r,t,n){var i,o=this._chains;o||(o=this._chains={}),i=o[r],i||(i=o[r]=new p(this,r,n)),i.count++,t&&t.length>0&&(r=e(t),t=t.slice(r.length+1),i.chain(r,t))},E.unchain=function(r,t){var n=this._chains,i=n[r];t&&t.length>1&&(r=e(t),t=t.slice(r.length+1),i.unchain(r,t)),i.count--,i.count<=0&&(delete n[i._key],i.destroy())},E.willChange=function(){var e=this._chains;if(e)for(var r in e)e.hasOwnProperty(r)&&e[r].willChange();this._parent&&this._parent.chainWillChange(this,this._key,1)},E.chainWillChange=function(e,r,t){this._key&&(r=this._key+"."+r),this._parent?this._parent.chainWillChange(this,r,t+1):(t>1&&h(this.value(),r),r="this."+r,this._paths[r]>0&&h(this.value(),r))},E.chainDidChange=function(e,r,t){this._key&&(r=this._key+"."+r),this._parent?this._parent.chainDidChange(this,r,t+1):(t>1&&l(this.value(),r),r="this."+r,this._paths[r]>0&&l(this.value(),r))},E.didChange=function(e){if(this._watching){var t=this._parent.value();t!==this._object&&(b(this._object,this._key,this),this._object=t,r(t,this._key,this)),this._value=void 0,this._parent&&this._parent._key==="@each"&&this.value()}var n=this._chains;if(n)for(var i in n)n.hasOwnProperty(i)&&n[i].didChange(e);e||this._parent&&this._parent.chainDidChange(this,this._key,1)},Ember.finishChains=function(e){var r=n(e,!1),t=r.chains;t&&(t.value()!==e&&(r.chains=t=t.copy(e)),t.didChange(!0))}}(),function(){function e(e){var t=r(e),i=t.chains;return i?i.value()!==e&&(i=t.chains=i.copy(e)):i=t.chains=new n(null,null,e),i}var r=Ember.meta,t=Ember.typeOf,n=Ember._ChainNode;Ember.watchPath=function(n,i){if("length"!==i||t(n)!=="array"){var o=r(n),s=o.watching;s[i]?s[i]=(s[i]||0)+1:(s[i]=1,e(n).add(i))}},Ember.unwatchPath=function(t,n){var i=r(t),o=i.watching;o[n]===1?(o[n]=0,e(t).remove(n)):o[n]>1&&o[n]--}}(),function(){function e(e){return"*"===e||!l.test(e)}var r=Ember.meta,t=Ember.GUID_KEY,n=Ember.META_KEY,i=Ember.removeChainWatcher,o=Ember.watchKey,s=Ember.unwatchKey,a=Ember.watchPath,u=Ember.unwatchPath,c=Ember.typeOf,h=Ember.generateGuid,l=/[\.\*]/;Ember.watch=function(r,t){("length"!==t||c(r)!=="array")&&(e(t)?o(r,t):a(r,t))},Ember.isWatching=function(e,r){var t=e[n];return(t&&t.watching[r])>0},Ember.watch.flushPending=Ember.flushPendingChains,Ember.unwatch=function(r,t){("length"!==t||c(r)!=="array")&&(e(t)?s(r,t):u(r,t))},Ember.rewatch=function(e){var n=r(e,!1),i=n.chains;t in e&&!e.hasOwnProperty(t)&&h(e,"ember"),i&&i.value()!==e&&(n.chains=i.copy(e))};var f=[];Ember.destroy=function(e){var r,t,o,s,a=e[n];if(a&&(e[n]=null,r=a.chains))for(f.push(r);f.length>0;){if(r=f.pop(),t=r._chains)for(o in t)t.hasOwnProperty(o)&&f.push(t[o]);r._watching&&(s=r._object,s&&i(s,r._key,r))}}}(),function(){function e(e,r){var t=e[r];return t?e.hasOwnProperty(r)||(t=e[r]=f(t)):t=e[r]={},t}function r(r){return e(r,"deps")}function t(t,n,i,o){var s,a,u,c,h,l=t._dependentKeys;if(l)for(s=r(o),a=0,u=l.length;u>a;a++)c=l[a],h=e(s,c),h[i]=(h[i]||0)+1,b(n,c)}function n(t,n,i,o){var s,a,u,c,h,l=t._dependentKeys;if(l)for(s=r(o),a=0,u=l.length;u>a;a++)c=l[a],h=e(s,c),h[i]=(h[i]||0)-1,p(n,c)}function i(e,r){this.func=e,this._cacheable=r&&r.cacheable!==void 0?r.cacheable:!0,this._dependentKeys=r&&r.dependentKeys,this._readOnly=r&&(r.readOnly!==void 0||!!r.readOnly)}function o(e,r){for(var t={},n=0;n<r.length;n++)t[r[n]]=u(e,r[n]);return t}function s(e,r){Ember.computed[e]=function(e){var t=l.call(arguments);return Ember.computed(e,function(){return r.apply(this,t)})}}function a(e,r){Ember.computed[e]=function(){var e=l.call(arguments),t=Ember.computed(function(){return r.apply(this,[o(this,e)])});return t.property.apply(t,e)}}var u=Ember.get,c=Ember.set,h=Ember.meta,l=[].slice,f=Ember.create,m=Ember.META_KEY,b=Ember.watch,p=Ember.unwatch;Ember.ComputedProperty=i,i.prototype=new Ember.Descriptor;var E=i.prototype;E.cacheable=function(e){return this._cacheable=e!==!1,this},E.volatile=function(){return this.cacheable(!1)},E.readOnly=function(e){return this._readOnly=void 0===e||!!e,this},E.property=function(){for(var e=[],r=0,t=arguments.length;t>r;r++)e.push(arguments[r]);return this._dependentKeys=e,this},E.meta=function(e){return arguments.length===0?this._meta||{}:(this._meta=e,this)},E.willWatch=function(e,r){var n=e[m];r in n.cache||t(this,e,r,n)},E.didUnwatch=function(e,r){var t=e[m];r in t.cache||n(this,e,r,t)},E.didChange=function(e,r){if(this._cacheable&&this._suspended!==e){var t=h(e);r in t.cache&&(delete t.cache[r],t.watching[r]||n(this,e,r,t))}},E.get=function(e,r){var n,i,o;if(this._cacheable){if(o=h(e),i=o.cache,r in i)return i[r];n=i[r]=this.func.call(e,r),o.watching[r]||t(this,e,r,o)}else n=this.func.call(e,r);return n},E.set=function(e,r,n){var i,o,s=this._cacheable,a=this.func,u=h(e,s),c=u.watching[r],l=this._suspended,f=!1,m=u.cache;if(this._readOnly)throw new Error("Cannot Set: "+r+" on: "+e.toString());this._suspended=e;try{if(s&&m.hasOwnProperty(r)&&(i=m[r],f=!0),a.wrappedFunction&&(a=a.wrappedFunction),a.length===3)o=a.call(e,r,n,i);else{if(a.length!==2)return Ember.defineProperty(e,r,null,i),Ember.set(e,r,n),void 0;o=a.call(e,r,n)}if(f&&i===o)return;c&&Ember.propertyWillChange(e,r),f&&delete m[r],s&&(c||f||t(this,e,r,u),m[r]=o),c&&Ember.propertyDidChange(e,r)}finally{this._suspended=l}return o},E.setup=function(e,r){var n=e[m];n&&n.watching[r]&&t(this,e,r,h(e))},E.teardown=function(e,r){var t=h(e);return(t.watching[r]||r in t.cache)&&n(this,e,r,t),this._cacheable&&delete t.cache[r],null},Ember.computed=function(e){var r;if(arguments.length>1&&(r=l.call(arguments,0,-1),e=l.call(arguments,-1)[0]),"function"!=typeof e)throw new Error("Computed Property declared without a property function");var t=new i(e);return r&&t.property.apply(t,r),t},Ember.cacheFor=function(e,r){var t=h(e,!1).cache;return t&&r in t?t[r]:void 0},s("empty",function(e){return Ember.isEmpty(u(this,e))}),s("notEmpty",function(e){return!Ember.isEmpty(u(this,e))}),s("none",function(e){return Ember.isNone(u(this,e))}),s("not",function(e){return!u(this,e)}),s("bool",function(e){return!!u(this,e)}),s("match",function(e,r){var t=u(this,e);return"string"==typeof t?!!t.match(r):!1}),s("equal",function(e,r){return u(this,e)===r}),s("gt",function(e,r){return u(this,e)>r}),s("gte",function(e,r){return u(this,e)>=r}),s("lt",function(e,r){return u(this,e)<r}),s("lte",function(e,r){return u(this,e)<=r}),a("and",function(e){for(var r in e)if(e.hasOwnProperty(r)&&!e[r])return!1;return!0}),a("or",function(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!0;return!1}),a("any",function(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return e[r];return null}),a("map",function(e){var r=[];for(var t in e)e.hasOwnProperty(t)&&(Ember.isNone(e[t])?r.push(null):r.push(e[t]));return r}),Ember.computed.alias=function(e){return Ember.computed(e,function(r,t){return arguments.length>1?(c(this,e,t),t):u(this,e)})},Ember.computed.oneWay=function(e){return Ember.computed(e,function(){return u(this,e)})},Ember.computed.defaultTo=function(e){return Ember.computed(function(r,t,n){return arguments.length===1?null!=n?n:u(this,e):null!=t?t:u(this,e)})}}(),function(){function e(e){return e+t}function r(e){return e+n}var t=":change",n=":before";Ember.addObserver=function(r,t,n,i){return Ember.addListener(r,e(t),n,i),Ember.watch(r,t),this},Ember.observersFor=function(r,t){return Ember.listenersFor(r,e(t))},Ember.removeObserver=function(r,t,n,i){return Ember.unwatch(r,t),Ember.removeListener(r,e(t),n,i),this},Ember.addBeforeObserver=function(e,t,n,i){return Ember.addListener(e,r(t),n,i),Ember.watch(e,t),this},Ember._suspendBeforeObserver=function(e,t,n,i,o){return Ember._suspendListener(e,r(t),n,i,o)},Ember._suspendObserver=function(r,t,n,i,o){return Ember._suspendListener(r,e(t),n,i,o)};var i=Ember.ArrayPolyfills.map;Ember._suspendBeforeObservers=function(e,t,n,o,s){var a=i.call(t,r);return Ember._suspendListeners(e,a,n,o,s)},Ember._suspendObservers=function(r,t,n,o,s){var a=i.call(t,e);return Ember._suspendListeners(r,a,n,o,s)},Ember.beforeObserversFor=function(e,t){return Ember.listenersFor(e,r(t))},Ember.removeBeforeObserver=function(e,t,n,i){return Ember.unwatch(e,t),Ember.removeListener(e,r(t),n,i),this}}(),function(){function e(e,r,t,n){return void 0===r&&(r=e,e=void 0),"string"==typeof r&&(r=e[r]),t&&n>0&&(t=t.length>n?s.call(t,n):null),Ember.handleErrors(function(){return r.apply(e||this,t||[])},this)}function r(){h=null,c.currentRunLoop&&c.end()}function t(e,r){var t=e.expires,n=r.expires;return t>n?1:n>t?-1:0}function n(){l=null,c(function(){var r=+new Date,i=-1,o=[];for(var s in m)if(m.hasOwnProperty(s)){var u=m[s];u&&u.expires&&(r>=u.expires?(delete m[s],o.push(u)):(0>i||u.expires<i)&&(i=u.expires))}a.call(o.sort(t),function(r){e(r.target,r.method,r.args,2)}),i>0&&(l=window.setTimeout(n,i-r),f=i)})}function i(r,t){t[this.tguid]&&delete t[this.tguid][this.mguid],m[r]&&e(this.target,this.method,this.args),delete m[r]}function o(e,r,t,n){var o,s=Ember.guidFor(r),a=Ember.guidFor(t),u=c.autorun().onceTimers,h=u[s]&&u[s][a];return h&&m[h]?m[h].args=n:(o={target:r,method:t,args:n,tguid:s,mguid:a},h=Ember.guidFor(o),m[h]=o,u[s]||(u[s]={}),u[s][a]=h,c.schedule(e,o,i,h,u)),h}var s=[].slice,a=Ember.ArrayPolyfills.forEach,u=function(e){this._prev=e||null,this.onceTimers={}};u.prototype={end:function(){this.flush()},prev:function(){return this._prev},schedule:function(e,r,t){var n,i=this._queues;i||(i=this._queues={}),n=i[e],n||(n=i[e]=[]);var o=arguments.length>3?s.call(arguments,3):null;
16
- return n.push({target:r,method:t,args:o}),this},flush:function(r){function t(r){e(r.target,r.method,r.args)}function n(){a.call(u,t)}var i,o,s,u,c;if(!this._queues)return this;if(Ember.watch.flushPending(),r)for(;this._queues&&(u=this._queues[r]);)this._queues[r]=null,"sync"===r?(c=Ember.LOG_BINDINGS,c&&Ember.Logger.log("Begin: Flush Sync Queue"),Ember.beginPropertyChanges(),Ember.tryFinally(n,Ember.endPropertyChanges),c&&Ember.Logger.log("End: Flush Sync Queue")):a.call(u,t);else{i=Ember.run.queues,s=i.length,o=0;e:for(;s>o;){r=i[o],u=this._queues&&this._queues[r],delete this._queues[r],u&&("sync"===r?(c=Ember.LOG_BINDINGS,c&&Ember.Logger.log("Begin: Flush Sync Queue"),Ember.beginPropertyChanges(),Ember.tryFinally(n,Ember.endPropertyChanges),c&&Ember.Logger.log("End: Flush Sync Queue")):a.call(u,t));for(var h=0;o>=h;h++)if(this._queues&&this._queues[i[h]]){o=h;continue e}o++}}return this}},Ember.RunLoop=u,Ember.run=function(r,t){function n(){return r||t?e(r,t,i,2):void 0}var i=arguments;return c.begin(),Ember.tryFinally(n,c.end)};var c=Ember.run;Ember.run.begin=function(){c.currentRunLoop=new u(c.currentRunLoop)},Ember.run.end=function(){function e(){c.currentRunLoop.end()}function r(){c.currentRunLoop=c.currentRunLoop.prev()}Ember.tryFinally(e,r)},Ember.run.queues=["sync","actions","destroy"],Ember.run.schedule=function(){var e=c.autorun();e.schedule.apply(e,arguments)};var h;Ember.run.hasScheduledTimers=function(){return!(!h&&!l)},Ember.run.cancelTimers=function(){h&&(clearTimeout(h),h=null),l&&(clearTimeout(l),l=null),m={}},Ember.run.autorun=function(){return c.currentRunLoop||(c.begin(),h||(h=setTimeout(r,1))),c.currentRunLoop},Ember.run.sync=function(){c.autorun(),c.currentRunLoop.flush("sync")};var l,f,m={};Ember.run.later=function(e,r){var t,i,o,a,u;return arguments.length===2&&"function"==typeof e?(u=r,r=e,e=void 0,t=[e,r]):(t=s.call(arguments),u=t.pop()),i=+new Date+u,o={target:e,method:r,expires:i,args:t},a=Ember.guidFor(o),m[a]=o,l&&f>i&&(clearTimeout(l),l=null),l||(l=setTimeout(n,u),f=i),a},Ember.run.once=function(e,r){return o("actions",e,r,s.call(arguments,2))},Ember.run.scheduleOnce=function(e,r,t){return o(e,r,t,s.call(arguments,3))},Ember.run.next=function(){var e=s.call(arguments);return e.push(1),c.later.apply(this,e)},Ember.run.cancel=function(e){delete m[e]}}(),function(){function e(e,r){return t(o(r)?Ember.lookup:e,r)}function r(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])}Ember.LOG_BINDINGS=!1||!!Ember.ENV.LOG_BINDINGS;var t=Ember.get,n=(Ember.set,Ember.guidFor),i=/^([A-Z$]|([0-9][A-Z$]))/,o=Ember.isGlobalPath=function(e){return i.test(e)},s=function(e,r){this._direction="fwd",this._from=r,this._to=e,this._directionMap=Ember.Map.create()};s.prototype={copy:function(){var e=new s(this._to,this._from);return this._oneWay&&(e._oneWay=!0),e},from:function(e){return this._from=e,this},to:function(e){return this._to=e,this},oneWay:function(){return this._oneWay=!0,this},toString:function(){var e=this._oneWay?"[oneWay]":"";return"Ember.Binding<"+n(this)+">("+this._from+" -> "+this._to+")"+e},connect:function(r){var t=this._from,n=this._to;return Ember.trySet(r,n,e(r,t)),Ember.addObserver(r,t,this,this.fromDidChange),this._oneWay||Ember.addObserver(r,n,this,this.toDidChange),this._readyToSync=!0,this},disconnect:function(e){var r=!this._oneWay;return Ember.removeObserver(e,this._from,this,this.fromDidChange),r&&Ember.removeObserver(e,this._to,this,this.toDidChange),this._readyToSync=!1,this},fromDidChange:function(e){this._scheduleSync(e,"fwd")},toDidChange:function(e){this._scheduleSync(e,"back")},_scheduleSync:function(e,r){var t=this._directionMap,n=t.get(e);n||(Ember.run.schedule("sync",this,this._sync,e),t.set(e,r)),"back"===n&&"fwd"===r&&t.set(e,"fwd")},_sync:function(r){var n=Ember.LOG_BINDINGS;if(!r.isDestroyed&&this._readyToSync){var i=this._directionMap,o=i.get(r),s=this._from,a=this._to;if(i.remove(r),"fwd"===o){var u=e(r,this._from);n&&Ember.Logger.log(" ",this.toString(),"->",u,r),this._oneWay?Ember.trySet(r,a,u):Ember._suspendObserver(r,a,this,this.toDidChange,function(){Ember.trySet(r,a,u)})}else if("back"===o){var c=t(r,this._to);n&&Ember.Logger.log(" ",this.toString(),"<-",c,r),Ember._suspendObserver(r,s,this,this.fromDidChange,function(){Ember.trySet(Ember.isGlobalPath(s)?Ember.lookup:r,s,c)})}}}},r(s,{from:function(){var e=this,r=new e;return r.from.apply(r,arguments)},to:function(){var e=this,r=new e;return r.to.apply(r,arguments)},oneWay:function(e,r){var t=this,n=new t(null,e);return n.oneWay(r)}}),Ember.Binding=s,Ember.bind=function(e,r,t){return new Ember.Binding(r,t).connect(e)},Ember.oneWay=function(e,r,t){return new Ember.Binding(r,t).oneWay().connect(e)}}(),function(){function e(e){var r=Ember.meta(e,!0),t=r.mixins;return t?r.hasOwnProperty("mixins")||(t=r.mixins=A(t)):t=r.mixins={},t}function r(e,r){return r&&r.length>0&&(e.mixins=O.call(r,function(e){if(e instanceof g)return e;var r=new g;return r.properties=e,r})),e}function t(e){return"function"==typeof e&&e.isMethod!==!1&&e!==Boolean&&e!==Object&&e!==Number&&e!==Array&&e!==Date&&e!==String}function n(e,r){var t;return r instanceof g?(t=S(r),e[t]?D:(e[t]=r,r.properties)):r}function i(e,r,t){var n;return n=r.concatenatedProperties||t.concatenatedProperties,e.concatenatedProperties&&(n=n?n.concat(e.concatenatedProperties):e.concatenatedProperties),n}function o(e,r,t,n,i){var o;return n[r]===void 0&&(o=i[r]),o=o||e.descs[r],o&&o instanceof Ember.ComputedProperty?(t=A(t),t.func=Ember.wrap(t.func,o.func),t):t}function s(e,r,t,n,i){var o;return i[r]===void 0&&(o=n[r]),o=o||e[r],"function"!=typeof o?t:Ember.wrap(t,o)}function a(e,r,t,n){var i=n[r]||e[r];return i?"function"==typeof i.concat?i.concat(t):Ember.makeArray(i).concat(t):Ember.makeArray(t)}function u(e,r,n,i,u,c,h){if(n instanceof Ember.Descriptor){if(n===y&&u[r])return D;n.func&&(n=o(i,r,n,c,u)),u[r]=n,c[r]=void 0}else t(n)?n=s(e,r,n,c,u):(h&&C.call(h,r)>=0||"concatenatedProperties"===r)&&(n=a(e,r,n,c)),u[r]=void 0,c[r]=n}function c(e,r,t,o,s,a){function h(e){delete t[e],delete o[e]}for(var l,f,m,b,p,E=0,d=e.length;d>E;E++)if(l=e[E],f=n(r,l),f!==D)if(f){p=Ember.meta(s),b=i(f,o,s);for(m in f)f.hasOwnProperty(m)&&(a.push(m),u(s,m,f[m],p,t,o,b));f.hasOwnProperty("toString")&&(s.toString=f.toString)}else l.mixins&&(c(l.mixins,r,t,o,s,a),l._without&&w.call(l._without,h))}function h(e,r,t,n){if(x.test(r)){var i=n.bindings;i?n.hasOwnProperty("bindings")||(i=n.bindings=A(n.bindings)):i=n.bindings={},i[r]=t}}function l(e,r){var t,n,i,o=r.bindings;if(o){for(t in o)n=o[t],n&&(i=t.slice(0,-7),n instanceof Ember.Binding?(n=n.copy(),n.to(i)):n=new Ember.Binding(i,n),n.connect(e),e[t]=n);r.bindings={}}}function f(e,r){return l(e,r||Ember.meta(e)),e}function m(e,r,t,n,i){var o,s=r.methodName;return n[s]||i[s]?(o=i[s],r=n[s]):t.descs[s]?(r=t.descs[s],o=void 0):(r=void 0,o=e[s]),{desc:r,value:o}}function b(e,r,t,n,i){if("function"==typeof t){var o=t[n];if(o)for(var s=0,a=o.length;a>s;s++)Ember[i](e,o[s],null,r)}}function p(e,r,t){var n=e[r];b(e,r,n,"__ember_observesBefore__","removeBeforeObserver"),b(e,r,n,"__ember_observes__","removeObserver"),b(e,r,t,"__ember_observesBefore__","addBeforeObserver"),b(e,r,t,"__ember_observes__","addObserver")}function E(r,t,n){var i,o,s,a={},u={},l=Ember.meta(r),b=[];c(t,e(r),a,u,r,b);for(var E=0,d=b.length;d>E;E++)if(i=b[E],"constructor"!==i&&u.hasOwnProperty(i)&&(s=a[i],o=u[i],s!==y)){for(;s&&s instanceof _;){var v=m(r,s,l,a,u);s=v.desc,o=v.value}(void 0!==s||void 0!==o)&&(p(r,i,o),h(r,i,o,l),j(r,i,s,o,l))}return n||f(r,l),r}function d(e,r,t){var n=S(e);if(t[n])return!1;if(t[n]=!0,e===r)return!0;for(var i=e.mixins,o=i?i.length:0;--o>=0;)if(d(i[o],r,t))return!0;return!1}function v(e,r,t){if(!t[S(r)])if(t[S(r)]=!0,r.properties){var n=r.properties;for(var i in n)n.hasOwnProperty(i)&&(e[i]=!0)}else r.mixins&&w.call(r.mixins,function(r){v(e,r,t)})}var g,y,_,O=Ember.ArrayPolyfills.map,C=Ember.ArrayPolyfills.indexOf,w=Ember.ArrayPolyfills.forEach,P=[].slice,A=Ember.create,j=Ember.defineProperty,S=Ember.guidFor,D={},x=Ember.IS_BINDING=/^.+Binding$/;Ember.mixin=function(e){var r=P.call(arguments,1);return E(e,r,!1),e},Ember.Mixin=function(){return r(this,arguments)},g=Ember.Mixin,g.prototype={properties:null,mixins:null,ownerConstructor:null},g._apply=E,g.applyPartial=function(e){var r=P.call(arguments,1);return E(e,r,!0)},g.finishPartial=f,Ember.anyUnprocessedMixins=!1,g.create=function(){Ember.anyUnprocessedMixins=!0;var e=this;return r(new e,arguments)};var N=g.prototype;N.reopen=function(){var e,r;this.properties?(e=g.create(),e.properties=this.properties,delete this.properties,this.mixins=[e]):this.mixins||(this.mixins=[]);var t,n=arguments.length,i=this.mixins;for(t=0;n>t;t++)e=arguments[t],e instanceof g?i.push(e):(r=g.create(),r.properties=e,i.push(r));return this},N.apply=function(e){return E(e,[this],!1)},N.applyPartial=function(e){return E(e,[this],!0)},N.detect=function(e){if(!e)return!1;if(e instanceof g)return d(e,this,{});var r=Ember.meta(e,!1).mixins;return r?!!r[S(this)]:!1},N.without=function(){var e=new g(this);return e._without=P.call(arguments),e},N.keys=function(){var e={},r={},t=[];v(e,this,r);for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},g.mixins=function(e){var r=Ember.meta(e,!1).mixins,t=[];if(!r)return t;for(var n in r){var i=r[n];i.properties||t.push(i)}return t},y=new Ember.Descriptor,y.toString=function(){return"(Required Property)"},Ember.required=function(){return y},_=function(e){this.methodName=e},_.prototype=new Ember.Descriptor,Ember.alias=function(e){return new _(e)},Ember.alias=Ember.deprecateFunc("Ember.alias is deprecated. Please use Ember.aliasMethod or Ember.computed.alias instead.",Ember.alias),Ember.aliasMethod=function(e){return new _(e)},Ember.observer=function(e){var r=P.call(arguments,1);return e.__ember_observes__=r,e},Ember.immediateObserver=function(){for(var e=0,r=arguments.length;r>e;e++)arguments[e];return Ember.observer.apply(this,arguments)},Ember.beforeObserver=function(e){var r=P.call(arguments,1);return e.__ember_observesBefore__=r,e}}(),function(){e("rsvp/all",["rsvp/defer","exports"],function(e,r){"use strict";function t(e){var r=[],t=n(),i=e.length;0===i&&t.resolve([]);for(var o=function(e){return function(r){s(e,r)}},s=function(e,n){r[e]=n,--i===0&&t.resolve(r)},a=function(e){t.reject(e)},u=0;u<e.length;u++)e[u]&&typeof e[u].then=="function"?e[u].then(o(u),a):s(u,e[u]);return t.promise}var n=e.defer;r.all=t}),e("rsvp/async",["exports"],function(e){"use strict";var r,t="undefined"!=typeof window?window:{},n=t.MutationObserver||t.WebKitMutationObserver;if("undefined"!=typeof process&&{}.toString.call(process)==="[object process]")r=function(e,r){process.nextTick(function(){e.call(r)})};else if(n){var i=[],o=new n(function(){var e=i.slice();i=[],e.forEach(function(e){var r=e[0],t=e[1];r.call(t)})}),s=document.createElement("div");o.observe(s,{attributes:!0}),window.addEventListener("unload",function(){o.disconnect(),o=null}),r=function(e,r){i.push([e,r]),s.setAttribute("drainQueue","drainQueue")}}else r=function(e,r){setTimeout(function(){e.call(r)},1)};e.async=r}),e("rsvp/config",["rsvp/async","exports"],function(e,r){"use strict";var t=e.async,n={};n.async=t,r.config=n}),e("rsvp/defer",["rsvp/promise","exports"],function(e,r){"use strict";function t(){var e={},r=new n(function(r,t){e.resolve=r,e.reject=t});return e.promise=r,e}var n=e.Promise;r.defer=t}),e("rsvp/events",["exports"],function(e){"use strict";var r=function(e,r){this.type=e;for(var t in r)r.hasOwnProperty(t)&&(this[t]=r[t])},t=function(e,r){for(var t=0,n=e.length;n>t;t++)if(e[t][0]===r)return t;return-1},n=function(e){var r=e._promiseCallbacks;return r||(r=e._promiseCallbacks={}),r},i={mixin:function(e){return e.on=this.on,e.off=this.off,e.trigger=this.trigger,e},on:function(e,r,i){var o,s,a=n(this);for(e=e.split(/\s+/),i=i||this;s=e.shift();)o=a[s],o||(o=a[s]=[]),t(o,r)===-1&&o.push([r,i])},off:function(e,r){var i,o,s,a=n(this);for(e=e.split(/\s+/);o=e.shift();)r?(i=a[o],s=t(i,r),-1!==s&&i.splice(s,1)):a[o]=[]},trigger:function(e,t){var i,o,s,a,u,c=n(this);if(i=c[e])for(var h=0;h<i.length;h++)o=i[h],s=o[0],a=o[1],"object"!=typeof t&&(t={detail:t}),u=new r(e,t),s.call(a,u)}};e.EventTarget=i}),e("rsvp/hash",["rsvp/defer","exports"],function(e,r){"use strict";function t(e){var r=0;for(var t in e)r++;return r}function n(e){var r={},n=i(),o=t(e);0===o&&n.resolve({});var s=function(e){return function(r){a(e,r)}},a=function(e,t){r[e]=t,--o===0&&n.resolve(r)},u=function(e){n.reject(e)};for(var c in e)e[c]&&typeof e[c].then=="function"?e[c].then(s(c),u):a(c,e[c]);return n.promise}var i=e.defer;r.hash=n}),e("rsvp/node",["rsvp/promise","rsvp/all","exports"],function(e,r,t){"use strict";function n(e,r){return function(t,n){t?r(t):arguments.length>2?e(Array.prototype.slice.call(arguments,1)):e(n)}}function i(e){return function(){var r,t,i=Array.prototype.slice.call(arguments),a=new o(function(e,n){r=e,t=n});return s(i).then(function(i){i.push(n(r,t));try{e.apply(this,i)}catch(o){t(o)}}),a}}var o=e.Promise,s=r.all;t.denodeify=i}),e("rsvp/promise",["rsvp/config","rsvp/events","exports"],function(e,r,t){"use strict";function n(e){return i(e)||"object"==typeof e&&null!==e}function i(e){return"function"==typeof e}function o(e,r){e===r?a(e,r):s(e,r)||a(e,r)}function s(e,r){var t=null;if(n(r)){try{t=r.then}catch(s){return u(e,s),!0}if(i(t)){try{t.call(r,function(t){r!==t?o(e,t):a(e,t)},function(r){u(e,r)})}catch(s){u(e,s)}return!0}}return!1}function a(e,r){c.async(function(){e.trigger("promise:resolved",{detail:r}),e.isFulfilled=!0,e.fulfillmentValue=r})}function u(e,r){c.async(function(){e.trigger("promise:failed",{detail:r}),e.isRejected=!0,e.rejectedReason=r})}var c=e.config,h=r.EventTarget,l=function(e){var r=this,t=!1;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the sole argument to the promise constructor");if(!(r instanceof l))return new l(e);var n=function(e){t||(t=!0,o(r,e))},i=function(e){t||(t=!0,u(r,e))};this.on("promise:resolved",function(e){this.trigger("success",{detail:e.detail})},this),this.on("promise:failed",function(e){this.trigger("error",{detail:e.detail})},this);try{e(n,i)}catch(s){i(s)}},f=function(e,r,t,n){var a,c,h,l,f=i(t);if(f)try{a=t(n.detail),h=!0}catch(m){l=!0,c=m}else a=n.detail,h=!0;s(r,a)||(f&&h?o(r,a):l?u(r,c):"resolve"===e?o(r,a):"reject"===e&&u(r,a))};l.prototype={constructor:l,then:function(e,r){var t=new l(function(){});return this.isFulfilled&&c.async(function(){f("resolve",t,e,{detail:this.fulfillmentValue})},this),this.isRejected&&c.async(function(){f("reject",t,r,{detail:this.rejectedReason})},this),this.on("promise:resolved",function(r){f("resolve",t,e,r)}),this.on("promise:failed",function(e){f("reject",t,r,e)}),t}},h.mixin(l.prototype),t.Promise=l}),e("rsvp/reject",["rsvp/promise","exports"],function(e,r){"use strict";function t(e){return new n(function(r,t){t(e)})}var n=e.Promise;r.reject=t}),e("rsvp/resolve",["rsvp/promise","exports"],function(e,r){"use strict";function t(e){return"function"==typeof e||"object"==typeof e&&null!==e}function n(e){var r=new i(function(r,n){var i;try{t(e)?(i=e.then,"function"==typeof i?i.call(e,r,n):r(e)):r(e)}catch(o){n(o)}});return r}var i=e.Promise;r.resolve=n}),e("rsvp",["rsvp/events","rsvp/promise","rsvp/node","rsvp/all","rsvp/hash","rsvp/defer","rsvp/config","rsvp/resolve","rsvp/reject","exports"],function(e,r,t,n,i,o,s,a,u,c){"use strict";function h(e,r){d[e]=r}var l=e.EventTarget,f=r.Promise,m=t.denodeify,b=n.all,p=i.hash,E=o.defer,d=s.config,v=a.resolve,g=u.reject;c.Promise=f,c.EventTarget=l,c.all=b,c.hash=p,c.defer=E,c.denodeify=m,c.configure=h,c.resolve=v,c.reject=g})}(),function(){e("container",[],function(){function e(e){this.parent=e,this.dict={}}function r(r){this.parent=r,this.children=[],this.resolver=r&&r.resolver||function(){},this.registry=new e(r&&r.registry),this.cache=new e(r&&r.cache),this.typeInjections=new e(r&&r.typeInjections),this.injections={},this._options=new e(r&&r._options),this._typeOptions=new e(r&&r._typeOptions)}function t(e){throw new Error(e+" is not currently supported on child containers")}function n(e,r){var t=o(e,r,"singleton");return t!==!1}function i(e,r){var t={};if(!r)return t;for(var n,i,o=0,s=r.length;s>o;o++)n=r[o],i=e.lookup(n.fullName),t[n.property]=i;return t}function o(e,r,t){var n=e._options.get(r);if(n&&n[t]!==void 0)return n[t];var i=r.split(":")[0];return n=e._typeOptions.get(i),n?n[t]:void 0}function s(e,r){var t=e.normalize(r);return e.resolve(t)}function a(e,r){var t,n=s(e,r),a=r.split(":"),u=a[0];if(o(e,r,"instantiate")===!1)return n;if(n){var c=[];c=c.concat(e.typeInjections.get(u)||[]),c=c.concat(e.injections[r]||[]);var h=i(e,c);return h.container=e,h._debugContainerKey=r,t=n.create(h)}}function u(e,r){e.cache.eachLocal(function(t,n){o(e,t,"instantiate")!==!1&&r(n)})}function c(e){e.cache.eachLocal(function(r,t){o(e,r,"instantiate")!==!1&&t.destroy()}),e.cache.dict={}}return e.prototype={get:function(e){var r=this.dict;return r.hasOwnProperty(e)?r[e]:this.parent?this.parent.get(e):void 0},set:function(e,r){this.dict[e]=r},has:function(e){var r=this.dict;return r.hasOwnProperty(e)?!0:this.parent?this.parent.has(e):!1},eachLocal:function(e,r){var t=this.dict;for(var n in t)t.hasOwnProperty(n)&&e.call(r,n,t[n])}},r.prototype={child:function(){var e=new r(this);return this.children.push(e),e},set:function(e,r,t){e[r]=t},register:function(e,r,t,n){var i;e.indexOf(":")!==-1?(n=t,t=r,i=e):i=e+":"+r;var o=this.normalize(i);this.registry.set(o,t),this._options.set(o,n||{})},resolve:function(e){return this.resolver(e)||this.registry.get(e)},normalize:function(e){return e},lookup:function(e,r){if(e=this.normalize(e),r=r||{},this.cache.has(e)&&r.singleton!==!1)return this.cache.get(e);var t=a(this,e);return t?(n(this,e)&&r.singleton!==!1&&this.cache.set(e,t),t):void 0},has:function(e){return this.cache.has(e)?!0:!!s(this,e)},optionsForType:function(e,r){this.parent&&t("optionsForType"),this._typeOptions.set(e,r)},options:function(e,r){this.optionsForType(e,r)},typeInjection:function(e,r,n){this.parent&&t("typeInjection");var i=this.typeInjections.get(e);i||(i=[],this.typeInjections.set(e,i)),i.push({property:r,fullName:n})},injection:function(e,r,n){if(this.parent&&t("injection"),e.indexOf(":")===-1)return this.typeInjection(e,r,n);var i=this.injections[e]=this.injections[e]||[];i.push({property:r,fullName:n})},destroy:function(){this.isDestroyed=!0;for(var e=0,r=this.children.length;r>e;e++)this.children[e].destroy();this.children=[],u(this,function(e){e.isDestroying=!0}),u(this,function(e){e.destroy()}),delete this.parent,this.isDestroyed=!0},reset:function(){for(var e=0,r=this.children.length;r>e;e++)c(this.children[e]);c(this)}},r})}(),function(){function e(t,n,i,o){var s,a,u;if("object"!=typeof t||null===t)return t;if(n&&(a=r(i,t))>=0)return o[a];if(Ember.typeOf(t)==="array"){if(s=t.slice(),n)for(a=s.length;--a>=0;)s[a]=e(s[a],n,i,o)}else if(Ember.Copyable&&Ember.Copyable.detect(t))s=t.copy(n,i,o);else{s={};for(u in t)t.hasOwnProperty(u)&&u.substring(0,2)!=="__"&&(s[u]=n?e(t[u],n,i,o):t[u])}return n&&(i.push(t),o.push(s)),s}var r=Ember.EnumerableUtils.indexOf;Ember.compare=function n(e,r){if(e===r)return 0;var t=Ember.typeOf(e),i=Ember.typeOf(r),o=Ember.Comparable;if(o){if("instance"===t&&o.detect(e.constructor))return e.constructor.compare(e,r);if("instance"===i&&o.detect(r.constructor))return 1-r.constructor.compare(r,e)}var s=Ember.ORDER_DEFINITION_MAPPING;if(!s){var a=Ember.ORDER_DEFINITION;s=Ember.ORDER_DEFINITION_MAPPING={};var u,c;for(u=0,c=a.length;c>u;++u)s[a[u]]=u;delete Ember.ORDER_DEFINITION}var h=s[t],l=s[i];if(l>h)return-1;if(h>l)return 1;switch(t){case"boolean":case"number":return r>e?-1:e>r?1:0;case"string":var f=e.localeCompare(r);return 0>f?-1:f>0?1:0;case"array":for(var m=e.length,b=r.length,p=Math.min(m,b),E=0,d=0;0===E&&p>d;)E=n(e[d],r[d]),d++;return 0!==E?E:b>m?-1:m>b?1:0;case"instance":return Ember.Comparable&&Ember.Comparable.detect(e)?e.compare(e,r):0;case"date":var v=e.getTime(),g=r.getTime();return g>v?-1:v>g?1:0;default:return 0}},Ember.copy=function(r,t){return"object"!=typeof r||null===r?r:Ember.Copyable&&Ember.Copyable.detect(r)?r.copy(t):e(r,t,t?[]:null,t?[]:null)},Ember.inspect=function(e){if("object"!=typeof e||null===e)return e+"";var r,t=[];for(var n in e)if(e.hasOwnProperty(n)){if(r=e[n],"toString"===r)continue;Ember.typeOf(r)==="function"&&(r="function() { ... }"),t.push(n+": "+r)}return"{"+t.join(", ")+"}"},Ember.isEqual=function(e,r){return e&&"function"==typeof e.isEqual?e.isEqual(r):e===r},Ember.ORDER_DEFINITION=Ember.ENV.ORDER_DEFINITION||["undefined","null","boolean","number","string","array","object","instance","function","class","date"],Ember.keys=Object.keys,Ember.keys||(Ember.keys=function(e){var r=[];for(var t in e)e.hasOwnProperty(t)&&r.push(t);return r});var t=["description","fileName","lineNumber","message","name","number","stack"];Ember.Error=function(){for(var e=Error.apply(this,arguments),r=0;r<t.length;r++)this[t[r]]=e[t[r]]},Ember.Error.prototype=Ember.create(Error.prototype)}(),function(){Ember.RSVP=r("rsvp")}(),function(){var e=/[ _]/g,r={},t=/([a-z])([A-Z])/g,n=/(\-|_|\.|\s)+(.)?/g,i=/([a-z\d])([A-Z]+)/g,o=/\-|\s+/g;Ember.STRINGS={},Ember.String={fmt:function(e,r){var t=0;return e.replace(/%@([0-9]+)?/g,function(e,n){return n=n?parseInt(n,0)-1:t++,e=r[n],(null===e?"(null)":void 0===e?"":e).toString()})},loc:function(e,r){return e=Ember.STRINGS[e]||e,Ember.String.fmt(e,r)},w:function(e){return e.split(/\s+/)},decamelize:function(e){return e.replace(t,"$1_$2").toLowerCase()},dasherize:function(t){var n,i=r,o=i.hasOwnProperty(t);return o?i[t]:(n=Ember.String.decamelize(t).replace(e,"-"),i[t]=n,n)},camelize:function(e){return e.replace(n,function(e,r,t){return t?t.toUpperCase():""}).replace(/^([A-Z])/,function(e){return e.toLowerCase()})},classify:function(e){for(var r=e.split("."),t=[],n=0,i=r.length;i>n;n++){var o=Ember.String.camelize(r[n]);t.push(o.charAt(0).toUpperCase()+o.substr(1))}return t.join(".")},underscore:function(e){return e.replace(i,"$1_$2").replace(o,"_").toLowerCase()},capitalize:function(e){return e.charAt(0).toUpperCase()+e.substr(1)}}}(),function(){var e=Ember.String.fmt,r=Ember.String.w,t=Ember.String.loc,n=Ember.String.camelize,i=Ember.String.decamelize,o=Ember.String.dasherize,s=Ember.String.underscore,a=Ember.String.capitalize,u=Ember.String.classify;(Ember.EXTEND_PROTOTYPES===!0||Ember.EXTEND_PROTOTYPES.String)&&(String.prototype.fmt=function(){return e(this,arguments)},String.prototype.w=function(){return r(this)},String.prototype.loc=function(){return t(this,arguments)},String.prototype.camelize=function(){return n(this)},String.prototype.decamelize=function(){return i(this)},String.prototype.dasherize=function(){return o(this)},String.prototype.underscore=function(){return s(this)},String.prototype.classify=function(){return u(this)},String.prototype.capitalize=function(){return a(this)})}(),function(){var e=Array.prototype.slice;(Ember.EXTEND_PROTOTYPES===!0||Ember.EXTEND_PROTOTYPES.Function)&&(Function.prototype.property=function(){var e=Ember.computed(this);return e.property.apply(e,arguments)},Function.prototype.observes=function(){return this.__ember_observes__=e.call(arguments),this},Function.prototype.observesBefore=function(){return this.__ember_observesBefore__=e.call(arguments),this})}(),function(){function e(){return a.length===0?{}:a.pop()}function r(e){return a.push(e),null}function t(e,r){function t(t){var o=n(t,e);return i?r===o:!!o}var i=arguments.length===2;return t}var n=Ember.get,i=Ember.set,o=Array.prototype.slice,s=Ember.EnumerableUtils.indexOf,a=[];Ember.Enumerable=Ember.Mixin.create({isEnumerable:!0,nextObject:Ember.required(Function),firstObject:Ember.computed(function(){if(n(this,"length")===0)return void 0;var t,i=e();return t=this.nextObject(0,null,i),r(i),t}).property("[]"),lastObject:Ember.computed(function(){var t=n(this,"length");if(0===t)return void 0;var i,o=e(),s=0,a=null;do a=i,i=this.nextObject(s++,a,o);while(void 0!==i);return r(o),a}).property("[]"),contains:function(e){return this.find(function(r){return r===e})!==void 0},forEach:function(t,i){if("function"!=typeof t)throw new TypeError;var o=n(this,"length"),s=null,a=e();void 0===i&&(i=null);for(var u=0;o>u;u++){var c=this.nextObject(u,s,a);t.call(i,c,u,this),s=c}return s=null,a=r(a),this},getEach:function(e){return this.mapProperty(e)},setEach:function(e,r){return this.forEach(function(t){i(t,e,r)})},map:function(e,r){var t=Ember.A([]);return this.forEach(function(n,i,o){t[i]=e.call(r,n,i,o)}),t},mapProperty:function(e){return this.map(function(r){return n(r,e)})},filter:function(e,r){var t=Ember.A([]);return this.forEach(function(n,i,o){e.call(r,n,i,o)&&t.push(n)}),t},reject:function(e,r){return this.filter(function(){return!e.apply(r,arguments)})},filterProperty:function(){return this.filter(t.apply(this,arguments))},rejectProperty:function(e,r){var t=function(t){return n(t,e)===r},i=function(r){return!!n(r,e)},o=arguments.length===2?t:i;return this.reject(o)},find:function(t,i){var o=n(this,"length");void 0===i&&(i=null);for(var s,a,u=null,c=!1,h=e(),l=0;o>l&&!c;l++)s=this.nextObject(l,u,h),(c=t.call(i,s,l,this))&&(a=s),u=s;return s=u=null,h=r(h),a},findProperty:function(){return this.find(t.apply(this,arguments))},every:function(e,r){return!this.find(function(t,n,i){return!e.call(r,t,n,i)})},everyProperty:function(){return this.every(t.apply(this,arguments))},some:function(e,r){return!!this.find(function(t,n,i){return!!e.call(r,t,n,i)})},someProperty:function(){return this.some(t.apply(this,arguments))},reduce:function(e,r,t){if("function"!=typeof e)throw new TypeError;var n=r;return this.forEach(function(r,i){n=e.call(null,n,r,i,this,t)},this),n},invoke:function(e){var r,t=Ember.A([]);return arguments.length>1&&(r=o.call(arguments,1)),this.forEach(function(n,i){var o=n&&n[e];"function"==typeof o&&(t[i]=r?o.apply(n,r):o.call(n))},this),t},toArray:function(){var e=Ember.A([]);return this.forEach(function(r,t){e[t]=r}),e},compact:function(){return this.filter(function(e){return null!=e})},without:function(e){if(!this.contains(e))return this;var r=Ember.A([]);return this.forEach(function(t){t!==e&&(r[r.length]=t)}),r},uniq:function(){var e=Ember.A([]);return this.forEach(function(r){s(e,r)<0&&e.push(r)}),e},"[]":Ember.computed(function(){return this}),addEnumerableObserver:function(e,r){var t=r&&r.willChange||"enumerableWillChange",i=r&&r.didChange||"enumerableDidChange",o=n(this,"hasEnumerableObservers");return o||Ember.propertyWillChange(this,"hasEnumerableObservers"),Ember.addListener(this,"@enumerable:before",e,t),Ember.addListener(this,"@enumerable:change",e,i),o||Ember.propertyDidChange(this,"hasEnumerableObservers"),this},removeEnumerableObserver:function(e,r){var t=r&&r.willChange||"enumerableWillChange",i=r&&r.didChange||"enumerableDidChange",o=n(this,"hasEnumerableObservers");return o&&Ember.propertyWillChange(this,"hasEnumerableObservers"),Ember.removeListener(this,"@enumerable:before",e,t),Ember.removeListener(this,"@enumerable:change",e,i),o&&Ember.propertyDidChange(this,"hasEnumerableObservers"),this},hasEnumerableObservers:Ember.computed(function(){return Ember.hasListeners(this,"@enumerable:change")||Ember.hasListeners(this,"@enumerable:before")}),enumerableContentWillChange:function(e,r){var t,i,o;return t="number"==typeof e?e:e?n(e,"length"):e=-1,i="number"==typeof r?r:r?n(r,"length"):r=-1,o=0>i||0>t||0!==i-t,-1===e&&(e=null),-1===r&&(r=null),Ember.propertyWillChange(this,"[]"),o&&Ember.propertyWillChange(this,"length"),Ember.sendEvent(this,"@enumerable:before",[this,e,r]),this},enumerableContentDidChange:function(e,r){var t,i,o;return t="number"==typeof e?e:e?n(e,"length"):e=-1,i="number"==typeof r?r:r?n(r,"length"):r=-1,o=0>i||0>t||0!==i-t,-1===e&&(e=null),-1===r&&(r=null),Ember.sendEvent(this,"@enumerable:change",[this,e,r]),o&&Ember.propertyDidChange(this,"length"),Ember.propertyDidChange(this,"[]"),this}})}(),function(){var e=Ember.get,r=(Ember.set,Ember.isNone),t=Ember.EnumerableUtils.map,n=Ember.cacheFor;Ember.Array=Ember.Mixin.create(Ember.Enumerable,{length:Ember.required(),objectAt:function(r){return 0>r||r>=e(this,"length")?void 0:e(this,r)},objectsAt:function(e){var r=this;return t(e,function(e){return r.objectAt(e)})},nextObject:function(e){return this.objectAt(e)},"[]":Ember.computed(function(r,t){return void 0!==t&&this.replace(0,e(this,"length"),t),this}),firstObject:Ember.computed(function(){return this.objectAt(0)}),lastObject:Ember.computed(function(){return this.objectAt(e(this,"length")-1)}),contains:function(e){return this.indexOf(e)>=0},slice:function(t,n){var i=Ember.A([]),o=e(this,"length");for(r(t)&&(t=0),(r(n)||n>o)&&(n=o),0>t&&(t=o+t),0>n&&(n=o+n);n>t;)i[i.length]=this.objectAt(t++);return i},indexOf:function(r,t){var n,i=e(this,"length");for(void 0===t&&(t=0),0>t&&(t+=i),n=t;i>n;n++)if(this.objectAt(n,!0)===r)return n;return-1},lastIndexOf:function(r,t){var n,i=e(this,"length");for((void 0===t||t>=i)&&(t=i-1),0>t&&(t+=i),n=t;n>=0;n--)if(this.objectAt(n)===r)return n;return-1},addArrayObserver:function(r,t){var n=t&&t.willChange||"arrayWillChange",i=t&&t.didChange||"arrayDidChange",o=e(this,"hasArrayObservers");return o||Ember.propertyWillChange(this,"hasArrayObservers"),Ember.addListener(this,"@array:before",r,n),Ember.addListener(this,"@array:change",r,i),o||Ember.propertyDidChange(this,"hasArrayObservers"),this},removeArrayObserver:function(r,t){var n=t&&t.willChange||"arrayWillChange",i=t&&t.didChange||"arrayDidChange",o=e(this,"hasArrayObservers");return o&&Ember.propertyWillChange(this,"hasArrayObservers"),Ember.removeListener(this,"@array:before",r,n),Ember.removeListener(this,"@array:change",r,i),o&&Ember.propertyDidChange(this,"hasArrayObservers"),this},hasArrayObservers:Ember.computed(function(){return Ember.hasListeners(this,"@array:change")||Ember.hasListeners(this,"@array:before")}),arrayContentWillChange:function(r,t,n){void 0===r?(r=0,t=n=-1):(void 0===t&&(t=-1),void 0===n&&(n=-1)),Ember.isWatching(this,"@each")&&e(this,"@each"),Ember.sendEvent(this,"@array:before",[this,r,t,n]);var i,o;if(r>=0&&t>=0&&e(this,"hasEnumerableObservers")){i=[],o=r+t;for(var s=r;o>s;s++)i.push(this.objectAt(s))}else i=t;return this.enumerableContentWillChange(i,n),this},arrayContentDidChange:function(r,t,i){void 0===r?(r=0,t=i=-1):(void 0===t&&(t=-1),void 0===i&&(i=-1));var o,s;if(r>=0&&i>=0&&e(this,"hasEnumerableObservers")){o=[],s=r+i;for(var a=r;s>a;a++)o.push(this.objectAt(a))}else o=i;this.enumerableContentDidChange(t,o),Ember.sendEvent(this,"@array:change",[this,r,t,i]);var u=e(this,"length"),c=n(this,"firstObject"),h=n(this,"lastObject");return this.objectAt(0)!==c&&(Ember.propertyWillChange(this,"firstObject"),Ember.propertyDidChange(this,"firstObject")),this.objectAt(u-1)!==h&&(Ember.propertyWillChange(this,"lastObject"),Ember.propertyDidChange(this,"lastObject")),this},"@each":Ember.computed(function(){return this.__each||(this.__each=new Ember.EachProxy(this)),this.__each})})}(),function(){Ember.Comparable=Ember.Mixin.create({isComparable:!0,compare:Ember.required(Function)})}(),function(){var e=Ember.get;Ember.set,Ember.Copyable=Ember.Mixin.create({copy:Ember.required(Function),frozenCopy:function(){if(Ember.Freezable&&Ember.Freezable.detect(this))return e(this,"isFrozen")?this:this.copy().freeze();throw new Error(Ember.String.fmt("%@ does not support freezing",[this]))}})}(),function(){var e=Ember.get,r=Ember.set;Ember.Freezable=Ember.Mixin.create({isFrozen:!1,freeze:function(){return e(this,"isFrozen")?this:(r(this,"isFrozen",!0),this)}}),Ember.FROZEN_ERROR="Frozen object cannot be modified."}(),function(){var e=Ember.EnumerableUtils.forEach;Ember.MutableEnumerable=Ember.Mixin.create(Ember.Enumerable,{addObject:Ember.required(Function),addObjects:function(r){return Ember.beginPropertyChanges(this),e(r,function(e){this.addObject(e)},this),Ember.endPropertyChanges(this),this},removeObject:Ember.required(Function),removeObjects:function(r){return Ember.beginPropertyChanges(this),e(r,function(e){this.removeObject(e)},this),Ember.endPropertyChanges(this),this}})}(),function(){var e="Index out of range",r=[],t=Ember.get;Ember.set,Ember.MutableArray=Ember.Mixin.create(Ember.Array,Ember.MutableEnumerable,{replace:Ember.required(),clear:function(){var e=t(this,"length");return 0===e?this:(this.replace(0,e,r),this)},insertAt:function(r,n){if(r>t(this,"length"))throw new Error(e);return this.replace(r,0,[n]),this},removeAt:function(n,i){if("number"==typeof n){if(0>n||n>=t(this,"length"))throw new Error(e);void 0===i&&(i=1),this.replace(n,i,r)}return this},pushObject:function(e){return this.insertAt(t(this,"length"),e),e},pushObjects:function(e){return this.replace(t(this,"length"),0,e),this
17
- },popObject:function(){var e=t(this,"length");if(0===e)return null;var r=this.objectAt(e-1);return this.removeAt(e-1,1),r},shiftObject:function(){if(t(this,"length")===0)return null;var e=this.objectAt(0);return this.removeAt(0),e},unshiftObject:function(e){return this.insertAt(0,e),e},unshiftObjects:function(e){return this.replace(0,0,e),this},reverseObjects:function(){var e=t(this,"length");if(0===e)return this;var r=this.toArray().reverse();return this.replace(0,e,r),this},setObjects:function(e){if(e.length===0)return this.clear();var r=t(this,"length");return this.replace(0,r,e),this},removeObject:function(e){for(var r=t(this,"length")||0;--r>=0;){var n=this.objectAt(r);n===e&&this.removeAt(r)}return this},addObject:function(e){return this.contains(e)||this.pushObject(e),this}})}(),function(){var e=Ember.get,r=Ember.set;Ember.Observable=Ember.Mixin.create({get:function(r){return e(this,r)},getProperties:function(){var r={},t=arguments;arguments.length===1&&Ember.typeOf(arguments[0])==="array"&&(t=arguments[0]);for(var n=0;n<t.length;n++)r[t[n]]=e(this,t[n]);return r},set:function(e,t){return r(this,e,t),this},setProperties:function(e){return Ember.setProperties(this,e)},beginPropertyChanges:function(){return Ember.beginPropertyChanges(),this},endPropertyChanges:function(){return Ember.endPropertyChanges(),this},propertyWillChange:function(e){return Ember.propertyWillChange(this,e),this},propertyDidChange:function(e){return Ember.propertyDidChange(this,e),this},notifyPropertyChange:function(e){return this.propertyWillChange(e),this.propertyDidChange(e),this},addBeforeObserver:function(e,r,t){Ember.addBeforeObserver(this,e,r,t)},addObserver:function(e,r,t){Ember.addObserver(this,e,r,t)},removeObserver:function(e,r,t){Ember.removeObserver(this,e,r,t)},hasObserverFor:function(e){return Ember.hasListeners(this,e+":change")},getPath:function(e){return this.get(e)},setPath:function(e,r){return this.set(e,r)},getWithDefault:function(e,r){return Ember.getWithDefault(this,e,r)},incrementProperty:function(t,n){return Ember.isNone(n)&&(n=1),r(this,t,(e(this,t)||0)+n),e(this,t)},decrementProperty:function(t,n){return Ember.isNone(n)&&(n=1),r(this,t,(e(this,t)||0)-n),e(this,t)},toggleProperty:function(t){return r(this,t,!e(this,t)),e(this,t)},cacheFor:function(e){return Ember.cacheFor(this,e)},observersForKey:function(e){return Ember.observersFor(this,e)}})}(),function(){var e=Ember.get;Ember.set,Ember.TargetActionSupport=Ember.Mixin.create({target:null,action:null,actionContext:null,targetObject:Ember.computed(function(){var r=e(this,"target");if(Ember.typeOf(r)==="string"){var t=e(this,r);return void 0===t&&(t=e(Ember.lookup,r)),t}return r}).property("target"),actionContextObject:Ember.computed(function(){var r=e(this,"actionContext");if(Ember.typeOf(r)==="string"){var t=e(this,r);return void 0===t&&(t=e(Ember.lookup,r)),t}return r}).property("actionContext"),triggerAction:function(r){r=r||{};var t=r.action||e(this,"action"),n=r.target||e(this,"targetObject"),i=r.actionContext||e(this,"actionContextObject")||this;if(n&&t){var o;return o=n.send?n.send.apply(n,[t,i]):n[t].apply(n,[i]),o!==!1&&(o=!0),o}return!1}})}(),function(){Ember.Evented=Ember.Mixin.create({on:function(e,r,t){return Ember.addListener(this,e,r,t),this},one:function(e,r,t){return t||(t=r,r=null),Ember.addListener(this,e,r,t,!0),this},trigger:function(e){var r,t,n=[];for(r=1,t=arguments.length;t>r;r++)n.push(arguments[r]);Ember.sendEvent(this,e,n)},fire:function(){this.trigger.apply(this,arguments)},off:function(e,r,t){return Ember.removeListener(this,e,r,t),this},has:function(e){return Ember.hasListeners(this,e)}})}(),function(){var e=r("rsvp");e.configure("async",function(e,r){Ember.run.schedule("actions",r,e)});var t=Ember.get;Ember.DeferredMixin=Ember.Mixin.create({then:function(e,r){function n(r){return r===o?e(s):e(r)}var i,o,s;return s=this,i=t(this,"_deferred"),o=i.promise,o.then(e&&n,r)},resolve:function(e){var r,n;r=t(this,"_deferred"),n=r.promise,e===this?r.resolve(n):r.resolve(e)},reject:function(e){t(this,"_deferred").reject(e)},_deferred:Ember.computed(function(){return e.defer()})})}(),function(){Ember.Container=r("container"),Ember.Container.set=Ember.set}(),function(){function e(){var e,r,o=!1,s=function(){o||s.proto(),n(this,i,v),n(this,"_super",v);var u=a(this);if(u.proto=this,e){var h=e;e=null,this.reopen.apply(this,h)}if(r){var l=r;r=null;for(var f=this.concatenatedProperties,m=0,p=l.length;p>m;m++){var g=l[m];for(var y in g)if(g.hasOwnProperty(y)){var _=g[y],O=Ember.IS_BINDING;if(O.test(y)){var C=u.bindings;C?u.hasOwnProperty("bindings")||(C=u.bindings=t(u.bindings)):C=u.bindings={},C[y]=_}var w=u.descs[y];if(f&&d(f,y)>=0){var P=this[y];_=P?"function"==typeof P.concat?P.concat(_):Ember.makeArray(P).concat(_):Ember.makeArray(_)}w?w.set(this,y,_):typeof this.setUnknownProperty!="function"||y in this?E?Ember.defineProperty(this,y,null,_):this[y]=_:this.setUnknownProperty(y,_)}}}b(this,u),delete u.proto,c(this),this.init.apply(this,arguments)};return s.toString=f.prototype.toString,s.willReopen=function(){o&&(s.PrototypeMixin=f.create(s.PrototypeMixin)),o=!1},s._initMixins=function(r){e=r},s._initProperties=function(e){r=e},s.proto=function(){var e=s.superclass;return e&&e.proto(),o||(o=!0,s.PrototypeMixin.applyPartial(s.prototype),u(s.prototype)),this.prototype},s}function r(e){return function(){return e}}var t=(Ember.set,Ember.get,Ember.create),n=Ember.platform.defineProperty,i=Ember.GUID_KEY,o=Ember.guidFor,s=Ember.generateGuid,a=Ember.meta,u=Ember.rewatch,c=Ember.finishChains,h=Ember.destroy,l=Ember.run.schedule,f=Ember.Mixin,m=f._apply,b=f.finishPartial,p=f.prototype.reopen,E=Ember.ENV.MANDATORY_SETTER,d=Ember.EnumerableUtils.indexOf,v={configurable:!0,writable:!0,enumerable:!1,value:void 0},g=e();g.toString=function(){return"Ember.CoreObject"},g.PrototypeMixin=f.create({reopen:function(){return m(this,arguments,!0),this},isInstance:!0,init:function(){},concatenatedProperties:null,isDestroyed:!1,isDestroying:!1,destroy:function(){return this._didCallDestroy?void 0:(this.isDestroying=!0,this._didCallDestroy=!0,l("destroy",this,this._scheduledDestroy),this)},willDestroy:Ember.K,_scheduledDestroy:function(){this.willDestroy&&this.willDestroy(),h(this),this.isDestroyed=!0,this.didDestroy&&this.didDestroy()},bind:function(e,r){return r instanceof Ember.Binding||(r=Ember.Binding.from(r)),r.to(e).connect(this),r},toString:function(){var e=typeof this.toStringExtension=="function",t=e?":"+this.toStringExtension():"",n="<"+this.constructor.toString()+":"+o(this)+t+">";return this.toString=r(n),n}}),g.PrototypeMixin.ownerConstructor=g,Ember.config.overridePrototypeMixin&&Ember.config.overridePrototypeMixin(g.PrototypeMixin),g.__super__=null;var y=f.create({ClassMixin:Ember.required(),PrototypeMixin:Ember.required(),isClass:!0,isMethod:!1,extend:function(){var r,n=e();return n.ClassMixin=f.create(this.ClassMixin),n.PrototypeMixin=f.create(this.PrototypeMixin),n.ClassMixin.ownerConstructor=n,n.PrototypeMixin.ownerConstructor=n,p.apply(n.PrototypeMixin,arguments),n.superclass=this,n.__super__=this.prototype,r=n.prototype=t(this.prototype),r.constructor=n,s(r,"ember"),a(r).proto=r,n.ClassMixin.apply(n),n},createWithMixins:function(){var e=this;return arguments.length>0&&this._initMixins(arguments),new e},create:function(){var e=this;return arguments.length>0&&this._initProperties(arguments),new e},reopen:function(){return this.willReopen(),p.apply(this.PrototypeMixin,arguments),this},reopenClass:function(){return p.apply(this.ClassMixin,arguments),m(this,arguments,!1),this},detect:function(e){if("function"!=typeof e)return!1;for(;e;){if(e===this)return!0;e=e.superclass}return!1},detectInstance:function(e){return e instanceof this},metaForProperty:function(e){var r=a(this.proto(),!1).descs[e];return r._meta||{}},eachComputedProperty:function(e,r){var t,n=this.proto(),i=a(n).descs,o={};for(var s in i)t=i[s],t instanceof Ember.ComputedProperty&&e.call(r||this,s,t._meta||o)}});y.ownerConstructor=g,Ember.config.overrideClassMixin&&Ember.config.overrideClassMixin(y),g.ClassMixin=y,y.apply(g),Ember.CoreObject=g}(),function(){Ember.Object=Ember.CoreObject.extend(Ember.Observable),Ember.Object.toString=function(){return"Ember.Object"}}(),function(){function e(r,t,i){var s=r.length;c[r.join(".")]=t;for(var a in t)if(h.call(t,a)){var u=t[a];if(r[s]=a,u&&u.toString===n)u.toString=o(r.join(".")),u[f]=r.join(".");else if(u&&u.isNamespace){if(i[l(u)])continue;i[l(u)]=!0,e(r,u,i)}}r.length=s}function r(){var e,r,t=Ember.Namespace,n=Ember.lookup;if(!t.PROCESSED)for(var i in n)if("parent"!==i&&"top"!==i&&"frameElement"!==i&&"webkitStorageInfo"!==i&&!("globalStorage"===i&&n.StorageList&&n.globalStorage instanceof n.StorageList||n.hasOwnProperty&&!n.hasOwnProperty(i))){try{e=Ember.lookup[i],r=e&&e.isNamespace}catch(o){continue}r&&(e[f]=i)}}function t(e){var r=e.superclass;return r?r[f]?r[f]:t(r):void 0}function n(){Ember.BOOTED||this[f]||i();var e;if(this[f])e=this[f];else{var r=t(this);e=r?"(subclass of "+r+")":"(unknown mixin)",this.toString=o(e)}return e}function i(){var t=!u.PROCESSED,n=Ember.anyUnprocessedMixins;if(t&&(r(),u.PROCESSED=!0),t||n){for(var i,o=u.NAMESPACES,s=0,a=o.length;a>s;s++)i=o[s],e([i.toString()],i,{});Ember.anyUnprocessedMixins=!1}}function o(e){return function(){return e}}var s=Ember.get,a=Ember.ArrayPolyfills.indexOf,u=Ember.Namespace=Ember.Object.extend({isNamespace:!0,init:function(){Ember.Namespace.NAMESPACES.push(this),Ember.Namespace.PROCESSED=!1},toString:function(){var e=s(this,"name");return e?e:(r(),this[Ember.GUID_KEY+"_name"])},nameClasses:function(){e([this.toString()],this,{})},destroy:function(){var e=Ember.Namespace.NAMESPACES;Ember.lookup[this.toString()]=void 0,e.splice(a.call(e,this),1),this._super()}});u.reopenClass({NAMESPACES:[Ember],NAMESPACES_BY_ID:{},PROCESSED:!1,processAll:i,byName:function(e){return Ember.BOOTED||i(),c[e]}});var c=u.NAMESPACES_BY_ID,h={}.hasOwnProperty,l=Ember.guidFor,f=Ember.NAME_KEY=Ember.GUID_KEY+"_name";Ember.Mixin.prototype.toString=n}(),function(){Ember.Application=Ember.Namespace.extend()}(),function(){var e="Index out of range",r=[],t=Ember.get;Ember.set,Ember.ArrayProxy=Ember.Object.extend(Ember.MutableArray,{content:null,arrangedContent:Ember.computed.alias("content"),objectAtContent:function(e){return t(this,"arrangedContent").objectAt(e)},replaceContent:function(e,r,n){t(this,"content").replace(e,r,n)},_contentWillChange:Ember.beforeObserver(function(){this._teardownContent()},"content"),_teardownContent:function(){var e=t(this,"content");e&&e.removeArrayObserver(this,{willChange:"contentArrayWillChange",didChange:"contentArrayDidChange"})},contentArrayWillChange:Ember.K,contentArrayDidChange:Ember.K,_contentDidChange:Ember.observer(function(){t(this,"content"),this._setupContent()},"content"),_setupContent:function(){var e=t(this,"content");e&&e.addArrayObserver(this,{willChange:"contentArrayWillChange",didChange:"contentArrayDidChange"})},_arrangedContentWillChange:Ember.beforeObserver(function(){var e=t(this,"arrangedContent"),r=e?t(e,"length"):0;this.arrangedContentArrayWillChange(this,0,r,void 0),this.arrangedContentWillChange(this),this._teardownArrangedContent(e)},"arrangedContent"),_arrangedContentDidChange:Ember.observer(function(){var e=t(this,"arrangedContent"),r=e?t(e,"length"):0;this._setupArrangedContent(),this.arrangedContentDidChange(this),this.arrangedContentArrayDidChange(this,0,void 0,r)},"arrangedContent"),_setupArrangedContent:function(){var e=t(this,"arrangedContent");e&&e.addArrayObserver(this,{willChange:"arrangedContentArrayWillChange",didChange:"arrangedContentArrayDidChange"})},_teardownArrangedContent:function(){var e=t(this,"arrangedContent");e&&e.removeArrayObserver(this,{willChange:"arrangedContentArrayWillChange",didChange:"arrangedContentArrayDidChange"})},arrangedContentWillChange:Ember.K,arrangedContentDidChange:Ember.K,objectAt:function(e){return t(this,"content")&&this.objectAtContent(e)},length:Ember.computed(function(){var e=t(this,"arrangedContent");return e?t(e,"length"):0}),_replace:function(e,r,n){var i=t(this,"content");return i&&this.replaceContent(e,r,n),this},replace:function(){if(t(this,"arrangedContent")!==t(this,"content"))throw new Ember.Error("Using replace on an arranged ArrayProxy is not allowed.");this._replace.apply(this,arguments)},_insertAt:function(r,n){if(r>t(this,"content.length"))throw new Error(e);return this._replace(r,0,[n]),this},insertAt:function(e,r){if(t(this,"arrangedContent")===t(this,"content"))return this._insertAt(e,r);throw new Ember.Error("Using insertAt on an arranged ArrayProxy is not allowed.")},removeAt:function(n,i){if("number"==typeof n){var o,s=t(this,"content"),a=t(this,"arrangedContent"),u=[];if(0>n||n>=t(this,"length"))throw new Error(e);for(void 0===i&&(i=1),o=n;n+i>o;o++)u.push(s.indexOf(a.objectAt(o)));for(u.sort(function(e,r){return r-e}),Ember.beginPropertyChanges(),o=0;o<u.length;o++)this._replace(u[o],1,r);Ember.endPropertyChanges()}return this},pushObject:function(e){return this._insertAt(t(this,"content.length"),e),e},pushObjects:function(e){return this._replace(t(this,"length"),0,e),this},setObjects:function(e){if(e.length===0)return this.clear();var r=t(this,"length");return this._replace(0,r,e),this},unshiftObject:function(e){return this._insertAt(0,e),e},unshiftObjects:function(e){return this._replace(0,0,e),this},slice:function(){var e=this.toArray();return e.slice.apply(e,arguments)},arrangedContentArrayWillChange:function(e,r,t,n){this.arrayContentWillChange(r,t,n)},arrangedContentArrayDidChange:function(e,r,t,n){this.arrayContentDidChange(r,t,n)},init:function(){this._super(),this._setupContent(),this._setupArrangedContent()},willDestroy:function(){this._teardownArrangedContent(),this._teardownContent()}})}(),function(){function e(e,r){var t=r.slice(8);t in this||u(this,t)}function r(e,r){var t=r.slice(8);t in this||c(this,t)}var t=Ember.get,n=Ember.set,i=(Ember.String.fmt,Ember.addBeforeObserver),o=Ember.addObserver,s=Ember.removeBeforeObserver,a=Ember.removeObserver,u=Ember.propertyWillChange,c=Ember.propertyDidChange;Ember.ObjectProxy=Ember.Object.extend({content:null,_contentDidChange:Ember.observer(function(){},"content"),isTruthy:Ember.computed.bool("content"),_debugContainerKey:null,willWatchProperty:function(t){var n="content."+t;i(this,n,null,e),o(this,n,null,r)},didUnwatchProperty:function(t){var n="content."+t;s(this,n,null,e),a(this,n,null,r)},unknownProperty:function(e){var r=t(this,"content");return r?t(r,e):void 0},setUnknownProperty:function(e,r){var i=t(this,"content");return n(i,e,r)}}),Ember.ObjectProxy.reopenClass({create:function(){var e,r,t,n,i,o;if(arguments.length){for(r=this.proto(),t=0,n=arguments.length;n>t;t++){i=arguments[t];for(o in i)!i.hasOwnProperty(o)||o in r||(e||(e={}),e[o]=null)}e&&this._initMixins([e])}return this._super.apply(this,arguments)}})}(),function(){function e(e,r,t,i,o){var s,a=t._objects;for(a||(a=t._objects={});--o>=i;){var u=e.objectAt(o);u&&(Ember.addBeforeObserver(u,r,t,"contentKeyWillChange"),Ember.addObserver(u,r,t,"contentKeyDidChange"),s=n(u),a[s]||(a[s]=[]),a[s].push(o))}}function r(e,r,t,i,o){var s=t._objects;s||(s=t._objects={});for(var a,u;--o>=i;){var c=e.objectAt(o);c&&(Ember.removeBeforeObserver(c,r,t,"contentKeyWillChange"),Ember.removeObserver(c,r,t,"contentKeyDidChange"),u=n(c),a=s[u],a[a.indexOf(o)]=null)}}var t=(Ember.set,Ember.get),n=Ember.guidFor,i=Ember.EnumerableUtils.forEach,o=Ember.Object.extend(Ember.Array,{init:function(e,r,t){this._super(),this._keyName=r,this._owner=t,this._content=e},objectAt:function(e){var r=this._content.objectAt(e);return r&&t(r,this._keyName)},length:Ember.computed(function(){var e=this._content;return e?t(e,"length"):0})}),s=/^.+:(before|change)$/;Ember.EachProxy=Ember.Object.extend({init:function(e){this._super(),this._content=e,e.addArrayObserver(this),i(Ember.watchedEvents(this),function(e){this.didAddListener(e)},this)},unknownProperty:function(e){var r;return r=new o(this._content,e,this),Ember.defineProperty(this,e,null,r),this.beginObservingContentKey(e),r},arrayWillChange:function(e,t,n){var i,o,s=this._keys;o=n>0?t+n:-1,Ember.beginPropertyChanges(this);for(i in s)s.hasOwnProperty(i)&&(o>0&&r(e,i,this,t,o),Ember.propertyWillChange(this,i));Ember.propertyWillChange(this._content,"@each"),Ember.endPropertyChanges(this)},arrayDidChange:function(r,t,n,i){var o,s,a=this._keys;s=i>0?t+i:-1,Ember.beginPropertyChanges(this);for(o in a)a.hasOwnProperty(o)&&(s>0&&e(r,o,this,t,s),Ember.propertyDidChange(this,o));Ember.propertyDidChange(this._content,"@each"),Ember.endPropertyChanges(this)},didAddListener:function(e){s.test(e)&&this.beginObservingContentKey(e.slice(0,-7))},didRemoveListener:function(e){s.test(e)&&this.stopObservingContentKey(e.slice(0,-7))},beginObservingContentKey:function(r){var n=this._keys;if(n||(n=this._keys={}),n[r])n[r]++;else{n[r]=1;var i=this._content,o=t(i,"length");e(i,r,this,0,o)}},stopObservingContentKey:function(e){var n=this._keys;if(n&&n[e]>0&&--n[e]<=0){var i=this._content,o=t(i,"length");r(i,e,this,0,o)}},contentKeyWillChange:function(e,r){Ember.propertyWillChange(this,r)},contentKeyDidChange:function(e,r){Ember.propertyDidChange(this,r)}})}(),function(){var e=Ember.get;Ember.set;var r=Ember.Mixin.create(Ember.MutableArray,Ember.Observable,Ember.Copyable,{get:function(e){return"length"===e?this.length:"number"==typeof e?this[e]:this._super(e)},objectAt:function(e){return this[e]},replace:function(r,t,n){if(this.isFrozen)throw Ember.FROZEN_ERROR;var i=n?e(n,"length"):0;if(this.arrayContentWillChange(r,t,i),n&&n.length!==0){var o=[r,t].concat(n);this.splice.apply(this,o)}else this.splice(r,t);return this.arrayContentDidChange(r,t,i),this},unknownProperty:function(e,r){var t;return void 0!==r&&void 0===t&&(t=this[e]=r),t},indexOf:function(e,r){var t,n=this.length;for(r=void 0===r?0:0>r?Math.ceil(r):Math.floor(r),0>r&&(r+=n),t=r;n>t;t++)if(this[t]===e)return t;return-1},lastIndexOf:function(e,r){var t,n=this.length;for(r=void 0===r?n-1:0>r?Math.ceil(r):Math.floor(r),0>r&&(r+=n),t=r;t>=0;t--)if(this[t]===e)return t;return-1},copy:function(e){return e?this.map(function(e){return Ember.copy(e,!0)}):this.slice()}}),t=["length"];Ember.EnumerableUtils.forEach(r.keys(),function(e){Array.prototype[e]&&t.push(e)}),t.length>0&&(r=r.without.apply(r,t)),Ember.NativeArray=r,Ember.A=function(e){return void 0===e&&(e=[]),Ember.Array.detect(e)?e:Ember.NativeArray.apply(e)},Ember.NativeArray.activate=function(){r.apply(Array.prototype),Ember.A=function(e){return e||[]}},(Ember.EXTEND_PROTOTYPES===!0||Ember.EXTEND_PROTOTYPES.Array)&&Ember.NativeArray.activate()}(),function(){var e=Ember.get,r=Ember.set,t=Ember.guidFor,n=Ember.isNone,i=Ember.String.fmt;Ember.Set=Ember.CoreObject.extend(Ember.MutableEnumerable,Ember.Copyable,Ember.Freezable,{length:0,clear:function(){if(this.isFrozen)throw new Error(Ember.FROZEN_ERROR);var n=e(this,"length");if(0===n)return this;var i;this.enumerableContentWillChange(n,0),Ember.propertyWillChange(this,"firstObject"),Ember.propertyWillChange(this,"lastObject");for(var o=0;n>o;o++)i=t(this[o]),delete this[i],delete this[o];return r(this,"length",0),Ember.propertyDidChange(this,"firstObject"),Ember.propertyDidChange(this,"lastObject"),this.enumerableContentDidChange(n,0),this},isEqual:function(r){if(!Ember.Enumerable.detect(r))return!1;var t=e(this,"length");if(e(r,"length")!==t)return!1;for(;--t>=0;)if(!r.contains(this[t]))return!1;return!0},add:Ember.aliasMethod("addObject"),remove:Ember.aliasMethod("removeObject"),pop:function(){if(e(this,"isFrozen"))throw new Error(Ember.FROZEN_ERROR);var r=this.length>0?this[this.length-1]:null;return this.remove(r),r},push:Ember.aliasMethod("addObject"),shift:Ember.aliasMethod("pop"),unshift:Ember.aliasMethod("push"),addEach:Ember.aliasMethod("addObjects"),removeEach:Ember.aliasMethod("removeObjects"),init:function(e){this._super(),e&&this.addObjects(e)},nextObject:function(e){return this[e]},firstObject:Ember.computed(function(){return this.length>0?this[0]:void 0}),lastObject:Ember.computed(function(){return this.length>0?this[this.length-1]:void 0}),addObject:function(i){if(e(this,"isFrozen"))throw new Error(Ember.FROZEN_ERROR);if(n(i))return this;var o,s=t(i),a=this[s],u=e(this,"length");return a>=0&&u>a&&this[a]===i?this:(o=[i],this.enumerableContentWillChange(null,o),Ember.propertyWillChange(this,"lastObject"),u=e(this,"length"),this[s]=u,this[u]=i,r(this,"length",u+1),Ember.propertyDidChange(this,"lastObject"),this.enumerableContentDidChange(null,o),this)},removeObject:function(i){if(e(this,"isFrozen"))throw new Error(Ember.FROZEN_ERROR);if(n(i))return this;var o,s,a=t(i),u=this[a],c=e(this,"length"),h=0===u,l=u===c-1;return u>=0&&c>u&&this[u]===i&&(s=[i],this.enumerableContentWillChange(s,null),h&&Ember.propertyWillChange(this,"firstObject"),l&&Ember.propertyWillChange(this,"lastObject"),c-1>u&&(o=this[c-1],this[u]=o,this[t(o)]=u),delete this[a],delete this[c-1],r(this,"length",c-1),h&&Ember.propertyDidChange(this,"firstObject"),l&&Ember.propertyDidChange(this,"lastObject"),this.enumerableContentDidChange(s,null)),this},contains:function(e){return this[t(e)]>=0},copy:function(){var n=this.constructor,i=new n,o=e(this,"length");for(r(i,"length",o);--o>=0;)i[o]=this[o],i[t(this[o])]=o;return i},toString:function(){var e,r=this.length,t=[];for(e=0;r>e;e++)t[e]=this[e];return i("Ember.Set<%@>",[t.join(",")])}})}(),function(){var e=Ember.DeferredMixin;Ember.get;var r=Ember.Object.extend(e);r.reopenClass({promise:function(e,t){var n=r.create();return e.call(t,n),n}}),Ember.Deferred=r}(),function(){var e=Ember.ArrayPolyfills.forEach,r=Ember.ENV.EMBER_LOAD_HOOKS||{},t={};Ember.onLoad=function(e,n){var i;r[e]=r[e]||Ember.A(),r[e].pushObject(n),(i=t[e])&&n(i)},Ember.runLoadHooks=function(n,i){t[n]=i,r[n]&&e.call(r[n],function(e){e(i)})}}(),function(){var e=Ember.get;Ember.ControllerMixin=Ember.Mixin.create({isController:!0,target:null,container:null,parentController:null,store:null,model:Ember.computed.alias("content"),send:function(r){var t,n=[].slice.call(arguments,1);this[r]?this[r].apply(this,n):(t=e(this,"target"))&&t.send.apply(t,arguments)}}),Ember.Controller=Ember.Object.extend(Ember.ControllerMixin)}(),function(){var e=Ember.get,r=(Ember.set,Ember.EnumerableUtils.forEach);Ember.SortableMixin=Ember.Mixin.create(Ember.MutableEnumerable,{sortProperties:null,sortAscending:!0,orderBy:function(t,n){var i=0,o=e(this,"sortProperties"),s=e(this,"sortAscending");return r(o,function(r){0===i&&(i=Ember.compare(e(t,r),e(n,r)),0===i||s||(i=-1*i))}),i},destroy:function(){var t=e(this,"content"),n=e(this,"sortProperties");return t&&n&&r(t,function(e){r(n,function(r){Ember.removeObserver(e,r,this,"contentItemSortPropertyDidChange")},this)},this),this._super()},isSorted:Ember.computed.bool("sortProperties"),arrangedContent:Ember.computed("content","sortProperties.@each",function(){var t=e(this,"content"),n=e(this,"isSorted"),i=e(this,"sortProperties"),o=this;return t&&n?(t=t.slice(),t.sort(function(e,r){return o.orderBy(e,r)}),r(t,function(e){r(i,function(r){Ember.addObserver(e,r,this,"contentItemSortPropertyDidChange")},this)},this),Ember.A(t)):t}),_contentWillChange:Ember.beforeObserver(function(){var t=e(this,"content"),n=e(this,"sortProperties");t&&n&&r(t,function(e){r(n,function(r){Ember.removeObserver(e,r,this,"contentItemSortPropertyDidChange")},this)},this),this._super()},"content"),sortAscendingWillChange:Ember.beforeObserver(function(){this._lastSortAscending=e(this,"sortAscending")},"sortAscending"),sortAscendingDidChange:Ember.observer(function(){if(e(this,"sortAscending")!==this._lastSortAscending){var r=e(this,"arrangedContent");r.reverseObjects()}},"sortAscending"),contentArrayWillChange:function(t,n,i,o){var s=e(this,"isSorted");if(s){var a=e(this,"arrangedContent"),u=t.slice(n,n+i),c=e(this,"sortProperties");r(u,function(e){a.removeObject(e),r(c,function(r){Ember.removeObserver(e,r,this,"contentItemSortPropertyDidChange")},this)},this)}return this._super(t,n,i,o)},contentArrayDidChange:function(t,n,i,o){var s=e(this,"isSorted"),a=e(this,"sortProperties");if(s){var u=t.slice(n,n+o);r(u,function(e){this.insertItemSorted(e),r(a,function(r){Ember.addObserver(e,r,this,"contentItemSortPropertyDidChange")},this)},this)}return this._super(t,n,i,o)},insertItemSorted:function(r){var t=e(this,"arrangedContent"),n=e(t,"length"),i=this._binarySearch(r,0,n);t.insertAt(i,r)},contentItemSortPropertyDidChange:function(r){var t=e(this,"arrangedContent"),n=t.indexOf(r),i=t.objectAt(n-1),o=t.objectAt(n+1),s=i&&this.orderBy(r,i),a=o&&this.orderBy(r,o);(0>s||a>0)&&(t.removeObject(r),this.insertItemSorted(r))},_binarySearch:function(r,t,n){var i,o,s,a;return t===n?t:(a=e(this,"arrangedContent"),i=t+Math.floor((n-t)/2),o=a.objectAt(i),s=this.orderBy(o,r),0>s?this._binarySearch(r,i+1,n):s>0?this._binarySearch(r,t,i):i)}})}(),function(){var e=Ember.get,r=(Ember.set,Ember.EnumerableUtils.forEach),t=Ember.EnumerableUtils.replace;Ember.ArrayController=Ember.ArrayProxy.extend(Ember.ControllerMixin,Ember.SortableMixin,{itemController:null,lookupItemController:function(){return e(this,"itemController")},objectAtContent:function(r){var t=e(this,"length"),n=e(this,"arrangedContent"),i=n&&n.objectAt(r);if(r>=0&&t>r){var o=this.lookupItemController(i);if(o)return this.controllerAt(r,i,o)}return i},arrangedContentDidChange:function(){this._super(),this._resetSubControllers()},arrayContentDidChange:function(n,i,o){var s=e(this,"_subControllers"),a=s.slice(n,n+i);r(a,function(e){e&&e.destroy()}),t(s,n,i,new Array(o)),this._super(n,i,o)},init:function(){this.get("content")||Ember.defineProperty(this,"content",void 0,Ember.A()),this._super(),this.set("_subControllers",Ember.A())},controllerAt:function(r,t,n){var i=e(this,"container"),o=e(this,"_subControllers"),s=o[r];if(s||(s=i.lookup("controller:"+n,{singleton:!1}),o[r]=s),!s)throw new Error('Could not resolve itemController: "'+n+'"');return s.set("target",this),s.set("parentController",e(this,"parentController")||this),s.set("content",t),s},_subControllers:null,_resetSubControllers:function(){var t=e(this,"_subControllers");t&&r(t,function(e){e&&e.destroy()}),this.set("_subControllers",Ember.A())}})}(),function(){Ember.ObjectController=Ember.ObjectProxy.extend(Ember.ControllerMixin)}()})(),"undefined"==typeof location||location.hostname!=="localhost"&&location.hostname!=="127.0.0.1"||Ember.Logger.warn("You are running a production build of Ember on localhost and won't receive detailed error messages. If you want full error messages please use the non-minified build provided on the Ember website.");
15
+ (function(){var e,t;(function(){var r={},n={};e=function(e,t,n){r[e]={deps:t,callback:n}},t=function(e){if(n[e])return n[e];n[e]={};for(var i,o=r[e],s=o.deps,a=o.callback,u=[],c=0,h=s.length;h>c;c++)"exports"===s[c]?u.push(i={}):u.push(t(s[c]));var l=a.apply(this,u);return n[e]=i||l}})(),function(){function e(e){return t.console&&t.console[e]?t.console[e].apply?function(){t.console[e].apply(t.console,arguments)}:function(){var r=Array.prototype.join.call(arguments,", ");t.console[e](r)}:void 0}"undefined"==typeof Ember&&(Ember={});var t=Ember.imports=Ember.imports||this,r=Ember.exports=Ember.exports||this;Ember.lookup=Ember.lookup||this,r.Em=r.Ember=Em=Ember,Ember.isNamespace=!0,Ember.toString=function(){return"Ember"},Ember.VERSION="1.0.0-rc.3",Ember.ENV=Ember.ENV||("undefined"==typeof ENV?{}:ENV),Ember.config=Ember.config||{},Ember.EXTEND_PROTOTYPES=Ember.ENV.EXTEND_PROTOTYPES,"undefined"==typeof Ember.EXTEND_PROTOTYPES&&(Ember.EXTEND_PROTOTYPES=!0),Ember.LOG_STACKTRACE_ON_DEPRECATION=Ember.ENV.LOG_STACKTRACE_ON_DEPRECATION!==!1,Ember.SHIM_ES5=Ember.ENV.SHIM_ES5===!1?!1:Ember.EXTEND_PROTOTYPES,Ember.LOG_VERSION=Ember.ENV.LOG_VERSION===!1?!1:!0,Ember.K=function(){return this},"undefined"==typeof Ember.assert&&(Ember.assert=Ember.K),"undefined"==typeof Ember.warn&&(Ember.warn=Ember.K),"undefined"==typeof Ember.debug&&(Ember.debug=Ember.K),"undefined"==typeof Ember.deprecate&&(Ember.deprecate=Ember.K),"undefined"==typeof Ember.deprecateFunc&&(Ember.deprecateFunc=function(e,t){return t}),Ember.uuid=0,Ember.Logger={log:e("log")||Ember.K,warn:e("warn")||Ember.K,error:e("error")||Ember.K,info:e("info")||Ember.K,debug:e("debug")||e("info")||Ember.K},Ember.onerror=null,Ember.handleErrors=function(e,t){if("function"!=typeof Ember.onerror)return e.call(t||this);try{return e.call(t||this)}catch(r){Ember.onerror(r)}},Ember.merge=function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},Ember.isNone=function(e){return null===e||void 0===e},Ember.none=Ember.deprecateFunc("Ember.none is deprecated. Please use Ember.isNone instead.",Ember.isNone),Ember.isEmpty=function(e){return null===e||void 0===e||0===e.length&&"function"!=typeof e||"object"==typeof e&&0===Ember.get(e,"length")},Ember.empty=Ember.deprecateFunc("Ember.empty is deprecated. Please use Ember.isEmpty instead.",Ember.isEmpty)}(),function(){var e=Ember.platform={};if(Ember.create=Object.create,!Ember.create||Ember.ENV.STUB_OBJECT_CREATE){var t=function(){};Ember.create=function(e,r){if(t.prototype=e,e=new t,r){t.prototype=e;for(var n in r)t.prototype[n]=r[n].value;e=new t}return t.prototype=null,e},Ember.create.isSimulated=!0}var r,n,i=Object.defineProperty;if(i)try{i({},"a",{get:function(){}})}catch(o){i=null}i&&(r=function(){var e={};return i(e,"a",{configurable:!0,enumerable:!0,get:function(){},set:function(){}}),i(e,"a",{configurable:!0,enumerable:!0,writable:!0,value:!0}),e.a===!0}(),n=function(){try{return i(document.createElement("div"),"definePropertyOnDOM",{}),!0}catch(e){}return!1}(),r?n||(i=function(e,t,r){var n;return n="object"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName,n?e[t]=r.value:Object.defineProperty(e,t,r)}):i=null),e.defineProperty=i,e.hasPropertyAccessors=!0,e.defineProperty||(e.hasPropertyAccessors=!1,e.defineProperty=function(e,t,r){r.get||(e[t]=r.value)},e.defineProperty.isSimulated=!0),Ember.ENV.MANDATORY_SETTER&&!e.hasPropertyAccessors&&(Ember.ENV.MANDATORY_SETTER=!1)}(),function(){var e=function(e){return e&&Function.prototype.toString.call(e).indexOf("[native code]")>-1},t=e(Array.prototype.map)?Array.prototype.map:function(e){if(void 0===this||null===this)throw new TypeError;var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var n=new Array(r),i=arguments[1],o=0;r>o;o++)o in t&&(n[o]=e.call(i,t[o],o,t));return n},r=e(Array.prototype.forEach)?Array.prototype.forEach:function(e){if(void 0===this||null===this)throw new TypeError;var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var n=arguments[1],i=0;r>i;i++)i in t&&e.call(n,t[i],i,t)},n=e(Array.prototype.indexOf)?Array.prototype.indexOf:function(e,t){null===t||void 0===t?t=0:0>t&&(t=Math.max(0,this.length+t));for(var r=t,n=this.length;n>r;r++)if(this[r]===e)return r;return-1};Ember.ArrayPolyfills={map:t,forEach:r,indexOf:n},Ember.SHIM_ES5&&(Array.prototype.map||(Array.prototype.map=t),Array.prototype.forEach||(Array.prototype.forEach=r),Array.prototype.indexOf||(Array.prototype.indexOf=n))}(),function(){function e(e){this.descs={},this.watching={},this.cache={},this.source=e}function t(e,t){return!(!e||"function"!=typeof e[t])}var r=Ember.platform.defineProperty,n=Ember.create,i="__ember"+ +new Date,o=0,s=[],a={},u=Ember.ENV.MANDATORY_SETTER;Ember.GUID_KEY=i;var c={writable:!1,configurable:!1,enumerable:!1,value:null};Ember.generateGuid=function(e,t){t||(t="ember");var n=t+o++;return e&&(c.value=n,r(e,i,c)),n},Ember.guidFor=function(e){if(void 0===e)return"(undefined)";if(null===e)return"(null)";var t,n=typeof e;switch(n){case"number":return t=s[e],t||(t=s[e]="nu"+e),t;case"string":return t=a[e],t||(t=a[e]="st"+o++),t;case"boolean":return e?"(true)":"(false)";default:return e[i]?e[i]:e===Object?"(Object)":e===Array?"(Array)":(t="ember"+o++,c.value=t,r(e,i,c),t)}};var h={writable:!0,configurable:!1,enumerable:!1,value:null},l=Ember.GUID_KEY+"_meta";Ember.META_KEY=l;var f={descs:{},watching:{}};u&&(f.values={}),Ember.EMPTY_META=f,Object.freeze&&Object.freeze(f);var b=Ember.platform.defineProperty.isSimulated;b&&(e.prototype.__preventPlainObject__=!0,e.prototype.toJSON=function(){}),Ember.meta=function(t,i){var o=t[l];return i===!1?o||f:(o?o.source!==t&&(b||r(t,l,h),o=n(o),o.descs=n(o.descs),o.watching=n(o.watching),o.cache={},o.source=t,u&&(o.values=n(o.values)),t[l]=o):(b||r(t,l,h),o=new e(t),u&&(o.values={}),t[l]=o,o.descs.constructor=null),o)},Ember.getMeta=function(e,t){var r=Ember.meta(e,!1);return r[t]},Ember.setMeta=function(e,t,r){var n=Ember.meta(e,!0);return n[t]=r,r},Ember.metaPath=function(e,t,r){for(var i,o,s=Ember.meta(e,r),a=0,u=t.length;u>a;a++){if(i=t[a],o=s[i]){if(o.__ember_source__!==e){if(!r)return void 0;o=s[i]=n(o),o.__ember_source__=e}}else{if(!r)return void 0;o=s[i]={__ember_source__:e}}s=o}return o},Ember.wrap=function(e,t){function r(){}function n(){var n,i=this._super;return this._super=t||r,n=e.apply(this,arguments),this._super=i,n}return n.wrappedFunction=e,n.__ember_observes__=e.__ember_observes__,n.__ember_observesBefore__=e.__ember_observesBefore__,n},Ember.isArray=function(e){return!e||e.setInterval?!1:Array.isArray&&Array.isArray(e)?!0:Ember.Array&&Ember.Array.detect(e)?!0:void 0!==e.length&&"object"==typeof e?!0:!1},Ember.makeArray=function(e){return null===e||void 0===e?[]:Ember.isArray(e)?e:[e]},Ember.canInvoke=t,Ember.tryInvoke=function(e,r,n){return t(e,r)?e[r].apply(e,n||[]):void 0};var m=function(){var e=0;try{try{}finally{throw e++,new Error("needsFinallyFixTest")}}catch(t){}return 1!==e}();Ember.tryFinally=m?function(e,t,r){var n,i,o;r=r||this;try{n=e.call(r)}finally{try{i=t.call(r)}catch(s){o=s}}if(o)throw o;return void 0===i?n:i}:function(e,t,r){var n,i;r=r||this;try{n=e.call(r)}finally{i=t.call(r)}return void 0===i?n:i},Ember.tryCatchFinally=m?function(e,t,r,n){var i,o,s;n=n||this;try{i=e.call(n)}catch(a){i=t.call(n,a)}finally{try{o=r.call(n)}catch(u){s=u}}if(s)throw s;return void 0===o?i:o}:function(e,t,r,n){var i,o;n=n||this;try{i=e.call(n)}catch(s){i=t.call(n,s)}finally{o=r.call(n)}return void 0===o?i:o};var p={},E="Boolean Number String Function Array Date RegExp Object".split(" ");Ember.ArrayPolyfills.forEach.call(E,function(e){p["[object "+e+"]"]=e.toLowerCase()});var d=Object.prototype.toString;Ember.typeOf=function(e){var t;return t=null===e||void 0===e?String(e):p[d.call(e)]||"object","function"===t?Ember.Object&&Ember.Object.detect(e)&&(t="class"):"object"===t&&(t=e instanceof Error?"error":Ember.Object&&e instanceof Ember.Object?"instance":"object"),t}}(),function(){Ember.Instrumentation={};var e=[],t={},r=function(r){for(var n,i=[],o=0,s=e.length;s>o;o++)n=e[o],n.regex.test(r)&&i.push(n.object);return t[r]=i,i},n=function(){var e="undefined"!=typeof window?window.performance||{}:{},t=e.now||e.mozNow||e.webkitNow||e.msNow||e.oNow;return t?t.bind(e):function(){return+new Date}}();Ember.Instrumentation.instrument=function(e,i,o,s){function a(){for(m=0,p=f.length;p>m;m++)b=f[m],E[m]=b.before(e,n(),i);return o.call(s)}function u(e){i=i||{},i.exception=e}function c(){for(m=0,p=f.length;p>m;m++)b=f[m],b.after(e,n(),i,E[m]);Ember.STRUCTURED_PROFILE&&console.timeEnd(h)}var h,l,f=t[e];if(Ember.STRUCTURED_PROFILE&&(h=e+": "+i.object,console.time(h)),f||(f=r(e)),0===f.length)return l=o.call(s),Ember.STRUCTURED_PROFILE&&console.timeEnd(h),l;var b,m,p,E=[];return Ember.tryCatchFinally(a,u,c)},Ember.Instrumentation.subscribe=function(r,n){for(var i,o=r.split("."),s=[],a=0,u=o.length;u>a;a++)i=o[a],"*"===i?s.push("[^\\.]*"):s.push(i);s=s.join("\\."),s+="(\\..*)?";var c={pattern:r,regex:new RegExp("^"+s+"$"),object:n};return e.push(c),t={},c},Ember.Instrumentation.unsubscribe=function(r){for(var n,i=0,o=e.length;o>i;i++)e[i]===r&&(n=i);e.splice(n,1),t={}},Ember.Instrumentation.reset=function(){e=[],t={}},Ember.instrument=Ember.Instrumentation.instrument,Ember.subscribe=Ember.Instrumentation.subscribe}(),function(){var e,t,r,n;n=Array.prototype.concat,e=Array.prototype.map||Ember.ArrayPolyfills.map,t=Array.prototype.forEach||Ember.ArrayPolyfills.forEach,r=Array.prototype.indexOf||Ember.ArrayPolyfills.indexOf;var i=Ember.EnumerableUtils={map:function(t,r,n){return t.map?t.map.call(t,r,n):e.call(t,r,n)},forEach:function(e,r,n){return e.forEach?e.forEach.call(e,r,n):t.call(e,r,n)},indexOf:function(e,t,n){return e.indexOf?e.indexOf.call(e,t,n):r.call(e,t,n)},indexesOf:function(e,t){return void 0===t?[]:i.map(t,function(t){return i.indexOf(e,t)})},addObject:function(e,t){var r=i.indexOf(e,t);-1===r&&e.push(t)},removeObject:function(e,t){var r=i.indexOf(e,t);-1!==r&&e.splice(r,1)},replace:function(e,t,r,i){if(e.replace)return e.replace(t,r,i);var o=n.apply([t,r],i);return e.splice.apply(e,o)},intersection:function(e,t){var r=[];return i.forEach(e,function(e){i.indexOf(t,e)>=0&&r.push(e)}),r}}}(),function(){var e=Ember.guidFor,t=Ember.ArrayPolyfills.indexOf,r=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},n=function(e,t){var n=e.keys.copy(),i=r(e.values);return t.keys=n,t.values=i,t},i=Ember.OrderedSet=function(){this.clear()};i.create=function(){return new i},i.prototype={clear:function(){this.presenceSet={},this.list=[]},add:function(t){var r=e(t),n=this.presenceSet,i=this.list;r in n||(n[r]=!0,i.push(t))},remove:function(r){var n=e(r),i=this.presenceSet,o=this.list;delete i[n];var s=t.call(o,r);s>-1&&o.splice(s,1)},isEmpty:function(){return 0===this.list.length},has:function(t){var r=e(t),n=this.presenceSet;return r in n},forEach:function(e,t){for(var r=this.toArray(),n=0,i=r.length;i>n;n++)e.call(t,r[n])},toArray:function(){return this.list.slice()},copy:function(){var e=new i;return e.presenceSet=r(this.presenceSet),e.list=this.toArray(),e}};var o=Ember.Map=function(){this.keys=Ember.OrderedSet.create(),this.values={}};o.create=function(){return new o},o.prototype={get:function(t){var r=this.values,n=e(t);return r[n]},set:function(t,r){var n=this.keys,i=this.values,o=e(t);n.add(t),i[o]=r},remove:function(t){var r=this.keys,n=this.values,i=e(t);return n.hasOwnProperty(i)?(r.remove(t),delete n[i],!0):!1},has:function(t){var r=this.values,n=e(t);return r.hasOwnProperty(n)},forEach:function(t,r){var n=this.keys,i=this.values;n.forEach(function(n){var o=e(n);t.call(r,n,i[o])})},copy:function(){return n(this,new o)}};var s=Ember.MapWithDefault=function(e){o.call(this),this.defaultValue=e.defaultValue};s.create=function(e){return e?new s(e):new o},s.prototype=Ember.create(o.prototype),s.prototype.get=function(e){var t=this.has(e);if(t)return o.prototype.get.call(this,e);var r=this.defaultValue(e);return this.set(e,r),r},s.prototype.copy=function(){return n(this,new s({defaultValue:this.defaultValue}))}}(),function(){function e(e){return e.match(a)[0]}function t(t,n){var i,a=s.test(n),u=!a&&o.test(n);if((!t||u)&&(t=Ember.lookup),a&&(n=n.slice(5)),t===Ember.lookup&&(i=e(n),t=r(t,i),n=n.slice(i.length+1)),!n||0===n.length)throw new Error("Invalid Path");return[t,n]}var r,n=Ember.META_KEY,i=Ember.ENV.MANDATORY_SETTER,o=/^([A-Z$]|([0-9][A-Z$])).*[\.\*]/,s=/^this[\.\*]/,a=/^([^\.\*]+)/;r=function r(e,t){if(""===t)return e;if(t||"string"!=typeof e||(t=e,e=null),!e||-1!==t.indexOf("."))return u(e,t);var r,o=e[n],s=o&&o.descs[t];return s?s.get(e,t):(r=i&&o&&o.watching[t]>0?o.values[t]:e[t],void 0!==r||"object"!=typeof e||t in e||"function"!=typeof e.unknownProperty?r:e.unknownProperty(t))},Ember.config.overrideAccessors&&(Ember.get=r,Ember.config.overrideAccessors(),r=Ember.get);var u=Ember._getPath=function(e,n){var i,o,a,u,c;if(null===e&&-1===n.indexOf("."))return r(Ember.lookup,n);for(i=s.test(n),(!e||i)&&(a=t(e,n),e=a[0],n=a[1],a.length=0),o=n.split("."),c=o.length,u=0;e&&c>u;u++)if(e=r(e,o[u],!0),e&&e.isDestroyed)return void 0;return e};Ember.normalizeTuple=function(e,r){return t(e,r)},Ember.getWithDefault=function(e,t,n){var i=r(e,t);return void 0===i?n:i},Ember.get=r,Ember.getPath=Ember.deprecateFunc("getPath is deprecated since get now supports paths",Ember.get)}(),function(){function e(e,t,r){for(var n=-1,i=0,o=e.length;o>i;i++)if(t===e[i][0]&&r===e[i][1]){n=i;break}return n}function t(e,t){var r,n=b(e,!0);return n.listeners||(n.listeners={}),n.hasOwnProperty("listeners")||(n.listeners=f(n.listeners)),r=n.listeners[t],r&&!n.listeners.hasOwnProperty(t)?r=n.listeners[t]=n.listeners[t].slice():r||(r=n.listeners[t]=[]),r}function r(t,r,n){var i=t[m],o=i&&i.listeners&&i.listeners[r];if(o)for(var s=o.length-1;s>=0;s--){var a=o[s][0],u=o[s][1],c=o[s][2],h=o[s][3],l=e(n,a,u);-1===l&&n.push([a,u,c,h])}}function n(t,r,n){var i=t[m],o=i&&i.listeners&&i.listeners[r],s=[];if(o){for(var a=o.length-1;a>=0;a--){var u=o[a][0],c=o[a][1],h=o[a][2],l=o[a][3],f=e(n,u,c);-1===f&&(n.push([u,c,h,l]),s.push([u,c,h,l]))}return s}}function i(r,n,i,o,s){o||"function"!=typeof i||(o=i,i=null);var a=t(r,n),u=e(a,i,o);-1===u&&(a.push([i,o,s,void 0]),"function"==typeof r.didAddListener&&r.didAddListener(n,i,o))}function o(r,n,i,o){function s(i,o){var s=t(r,n),a=e(s,i,o);-1!==a&&(s.splice(a,1),"function"==typeof r.didRemoveListener&&r.didRemoveListener(n,i,o))}if(o||"function"!=typeof i||(o=i,i=null),o)s(i,o);else{var a=r[m],u=a&&a.listeners&&a.listeners[n];if(!u)return;for(var c=u.length-1;c>=0;c--)s(u[c][0],u[c][1])}}function s(r,n,i,o,s){function a(){return s.call(i)}function u(){c&&(c[3]=void 0)}o||"function"!=typeof i||(o=i,i=null);var c,h=t(r,n),l=e(h,i,o);return-1!==l&&(c=h[l].slice(),c[3]=!0,h[l]=c),Ember.tryFinally(a,u)}function a(r,n,i,o,s){function a(){return s.call(i)}function u(){for(f=0,b=m.length;b>f;f++)m[f][3]=void 0}o||"function"!=typeof i||(o=i,i=null);var c,h,l,f,b,m=[];for(f=0,b=n.length;b>f;f++){c=n[f],h=t(r,c);var p=e(h,i,o);-1!==p&&(l=h[p].slice(),l[3]=!0,h[p]=l,m.push(l))}return Ember.tryFinally(a,u)}function u(e){var t=e[m].listeners,r=[];if(t)for(var n in t)t[n]&&r.push(n);return r}function c(e,t,r,n){if(e!==Ember&&"function"==typeof e.sendEvent&&e.sendEvent(t,r),!n){var i=e[m];n=i&&i.listeners&&i.listeners[t]}if(n){for(var s=n.length-1;s>=0;s--)if(n[s]&&n[s][3]!==!0){var a=n[s][0],u=n[s][1],c=n[s][2];c&&o(e,t,a,u),a||(a=e),"string"==typeof u&&(u=a[u]),r?u.apply(a,r):u.call(a)}return!0}}function h(e,t){var r=e[m],n=r&&r.listeners&&r.listeners[t];return!(!n||!n.length)}function l(e,t){var r=[],n=e[m],i=n&&n.listeners&&n.listeners[t];if(!i)return r;for(var o=0,s=i.length;s>o;o++){var a=i[o][0],u=i[o][1];r.push([a,u])}return r}var f=Ember.create,b=Ember.meta,m=Ember.META_KEY;Ember.addListener=i,Ember.removeListener=o,Ember._suspendListener=s,Ember._suspendListeners=a,Ember.sendEvent=c,Ember.hasListeners=h,Ember.watchedEvents=u,Ember.listenersFor=l,Ember.listenersDiff=n,Ember.listenersUnion=r}(),function(){var e=Ember.guidFor,t=Ember.sendEvent,r=Ember._ObserverSet=function(){this.clear()};r.prototype.add=function(t,r,n){var i,o=this.observerSet,s=this.observers,a=e(t),u=o[a];return u||(o[a]=u={}),i=u[r],void 0===i&&(i=s.push({sender:t,keyName:r,eventName:n,listeners:[]})-1,u[r]=i),s[i].listeners},r.prototype.flush=function(){var e,r,n,i,o=this.observers;for(this.clear(),e=0,r=o.length;r>e;++e)n=o[e],i=n.sender,i.isDestroying||i.isDestroyed||t(i,n.eventName,[i,n.keyName],n.listeners)},r.prototype.clear=function(){this.observerSet={},this.observers=[]}}(),function(){function e(e,t,i){if(!e.isDestroying){var o=n,s=!o;s&&(o=n={}),r(p,e,t,o,i),s&&(n=null)}}function t(e,t,n){if(!e.isDestroying){var o=i,s=!o;s&&(o=i={}),r(E,e,t,o,n),s&&(i=null)}}function r(e,t,r,n,i){var o=s(t);if(n[o]||(n[o]={}),!n[o][r]){n[o][r]=!0;var a=i.deps;if(a=a&&a[r])for(var u in a){var c=i.descs[u];c&&c._suspended===t||e(t,u)}}}var n,i,o=Ember.meta,s=Ember.guidFor,a=Ember.tryFinally,u=Ember.sendEvent,c=Ember.listenersUnion,h=Ember.listenersDiff,l=Ember._ObserverSet,f=new l,b=new l,m=0,p=Ember.propertyWillChange=function(t,r){var n=o(t,!1),i=n.watching[r]>0||"length"===r,s=n.proto,a=n.descs[r];i&&s!==t&&(a&&a.willChange&&a.willChange(t,r),e(t,r,n),d(t,r,n),_(t,r))},E=Ember.propertyDidChange=function(e,r){var n=o(e,!1),i=n.watching[r]>0||"length"===r,s=n.proto,a=n.descs[r];s!==e&&(a&&a.didChange&&a.didChange(e,r),(i||"length"===r)&&(t(e,r,n),v(e,r,n),O(e,r)))},d=function(e,t,r,n){if(r.hasOwnProperty("chainWatchers")){var i=r.chainWatchers;if(i=i[t])for(var o=0,s=i.length;s>o;o++)i[o].willChange(n)}},v=function(e,t,r,n){if(r.hasOwnProperty("chainWatchers")){var i=r.chainWatchers;if(i=i[t])for(var o=i.length-1;o>=0;o--)i[o].didChange(n)}};Ember.overrideChains=function(e,t,r){v(e,t,r,!0)};var g=Ember.beginPropertyChanges=function(){m++},y=Ember.endPropertyChanges=function(){m--,0>=m&&(f.clear(),b.flush())};Ember.changeProperties=function(e,t){g(),a(e,y,t)};var _=function(e,t){if(!e.isDestroying){var r,n,i=t+":before";m?(r=f.add(e,t,i),n=h(e,i,r),u(e,i,[e,t],n)):u(e,i,[e,t])}},O=function(e,t){if(!e.isDestroying){var r,n=t+":change";m?(r=b.add(e,t,n),c(e,n,r)):u(e,n,[e,t])}}}(),function(){function e(e,t,r,o){var s;if(s=t.slice(t.lastIndexOf(".")+1),t=t.slice(0,t.length-(s.length+1)),"this"!==t&&(e=n(e,t)),!s||0===s.length)throw new Error("You passed an empty path");if(!e){if(o)return;throw new Error("Object in path "+t+" could not be found or was destroyed.")}return i(e,s,r)}var t=Ember.META_KEY,r=Ember.ENV.MANDATORY_SETTER,n=Ember._getPath,i=function i(n,i,o,s){if("string"==typeof n&&(o=i,i=n,n=null),!n||-1!==i.indexOf("."))return e(n,i,o,s);var a,u,c=n[t],h=c&&c.descs[i];return h?h.set(n,i,o):(a="object"==typeof n&&!(i in n),a&&"function"==typeof n.setUnknownProperty?n.setUnknownProperty(i,o):c&&c.watching[i]>0?(u=r?c.values[i]:n[i],o!==u&&(Ember.propertyWillChange(n,i),r?void 0!==u||i in n?c.values[i]=o:Ember.defineProperty(n,i,null,o):n[i]=o,Ember.propertyDidChange(n,i))):n[i]=o),o};Ember.config.overrideAccessors&&(Ember.set=i,Ember.config.overrideAccessors(),i=Ember.set),Ember.set=i,Ember.setPath=Ember.deprecateFunc("setPath is deprecated since set now supports paths",Ember.set),Ember.trySet=function(e,t,r){return i(e,t,r,!0)},Ember.trySetPath=Ember.deprecateFunc("trySetPath has been renamed to trySet",Ember.trySet)}(),function(){var e=Ember.META_KEY,t=Ember.meta,r=Ember.platform.defineProperty,n=Ember.ENV.MANDATORY_SETTER;Ember.Descriptor=function(){};var i=Ember.MANDATORY_SETTER_FUNCTION=function(){},o=Ember.DEFAULT_GETTER_FUNCTION=function(t){return function(){var r=this[e];return r&&r.values[t]}};Ember.defineProperty=function(e,s,a,u,c){var h,l,f,b;return c||(c=t(e)),h=c.descs,l=c.descs[s],f=c.watching[s]>0,l instanceof Ember.Descriptor&&l.teardown(e,s),a instanceof Ember.Descriptor?(b=a,h[s]=a,n&&f?r(e,s,{configurable:!0,enumerable:!0,writable:!0,value:void 0}):e[s]=void 0,a.setup(e,s)):(h[s]=void 0,null==a?(b=u,n&&f?(c.values[s]=u,r(e,s,{configurable:!0,enumerable:!0,set:i,get:o(s)})):e[s]=u):(b=a,r(e,s,a))),f&&Ember.overrideChains(e,s,c),e.didDefineProperty&&e.didDefineProperty(e,s,b),this}}(),function(){var e=Ember.changeProperties,t=Ember.set;Ember.setProperties=function(r,n){return e(function(){for(var e in n)n.hasOwnProperty(e)&&t(r,e,n[e])}),r}}(),function(){var e=Ember.meta,t=Ember.typeOf,r=Ember.ENV.MANDATORY_SETTER,n=Ember.platform.defineProperty;Ember.watchKey=function(i,o){if("length"!==o||"array"!==t(i)){var s,a=e(i),u=a.watching;u[o]?u[o]=(u[o]||0)+1:(u[o]=1,s=a.descs[o],s&&s.willWatch&&s.willWatch(i,o),"function"==typeof i.willWatchProperty&&i.willWatchProperty(o),r&&o in i&&(a.values[o]=i[o],n(i,o,{configurable:!0,enumerable:!0,set:Ember.MANDATORY_SETTER_FUNCTION,get:Ember.DEFAULT_GETTER_FUNCTION(o)})))}},Ember.unwatchKey=function(t,i){var o,s=e(t),a=s.watching;1===a[i]?(a[i]=0,o=s.descs[i],o&&o.didUnwatch&&o.didUnwatch(t,i),"function"==typeof t.didUnwatchProperty&&t.didUnwatchProperty(i),r&&i in t&&(n(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s.values[i]}),delete s.values[i])):a[i]>1&&a[i]--}}(),function(){function e(e){return e.match(f)[0]}function t(e,t,r){if(e&&"object"==typeof e){var i=n(e),o=i.chainWatchers;i.hasOwnProperty("chainWatchers")||(o=i.chainWatchers={}),o[t]||(o[t]=[]),o[t].push(r),u(e,t)}}function r(e){return n(e,!1).proto===e}var n=Ember.meta,i=Ember.get,o=Ember.normalizeTuple,s=Ember.ArrayPolyfills.forEach,a=Ember.warn,u=Ember.watchKey,c=Ember.unwatchKey,h=Ember.propertyWillChange,l=Ember.propertyDidChange,f=/^([^\.\*]+)/,b=[];Ember.flushPendingChains=function(){if(0!==b.length){var e=b;b=[],s.call(e,function(e){e[0].add(e[1])}),a("Watching an undefined global, Ember expects watched globals to be setup by the time the run loop is flushed, check for typos",0===b.length)}};var m=Ember.removeChainWatcher=function(e,t,r){if(e&&"object"==typeof e){var i=n(e,!1);if(i.hasOwnProperty("chainWatchers")){var o=i.chainWatchers;if(o[t]){o=o[t];for(var s=0,a=o.length;a>s;s++)o[s]===r&&o.splice(s,1)}c(e,t)}}},p=Ember._ChainNode=function(e,r,n){this._parent=e,this._key=r,this._watching=void 0===n,this._value=n,this._paths={},this._watching&&(this._object=e.value(),this._object&&t(this._object,this._key,this)),this._parent&&"@each"===this._parent._key&&this.value()},E=p.prototype;E.value=function(){if(void 0===this._value&&this._watching){var e=this._parent.value();this._value=e&&!r(e)?i(e,this._key):void 0}return this._value},E.destroy=function(){if(this._watching){var e=this._object;e&&m(e,this._key,this),this._watching=!1}},E.copy=function(e){var t,r=new p(null,null,e),n=this._paths;for(t in n)0>=n[t]||r.add(t);return r},E.add=function(t){var r,n,i,s,a;if(a=this._paths,a[t]=(a[t]||0)+1,r=this.value(),n=o(r,t),n[0]&&n[0]===r)t=n[1],i=e(t),t=t.slice(i.length+1);else{if(!n[0])return b.push([this,t]),n.length=0,void 0;s=n[0],i=t.slice(0,0-(n[1].length+1)),t=n[1]}n.length=0,this.chain(i,t,s)},E.remove=function(t){var r,n,i,s,a;a=this._paths,a[t]>0&&a[t]--,r=this.value(),n=o(r,t),n[0]===r?(t=n[1],i=e(t),t=t.slice(i.length+1)):(s=n[0],i=t.slice(0,0-(n[1].length+1)),t=n[1]),n.length=0,this.unchain(i,t)},E.count=0,E.chain=function(t,r,n){var i,o=this._chains;o||(o=this._chains={}),i=o[t],i||(i=o[t]=new p(this,t,n)),i.count++,r&&r.length>0&&(t=e(r),r=r.slice(t.length+1),i.chain(t,r))},E.unchain=function(t,r){var n=this._chains,i=n[t];r&&r.length>1&&(t=e(r),r=r.slice(t.length+1),i.unchain(t,r)),i.count--,0>=i.count&&(delete n[i._key],i.destroy())},E.willChange=function(){var e=this._chains;if(e)for(var t in e)e.hasOwnProperty(t)&&e[t].willChange();this._parent&&this._parent.chainWillChange(this,this._key,1)},E.chainWillChange=function(e,t,r){this._key&&(t=this._key+"."+t),this._parent?this._parent.chainWillChange(this,t,r+1):(r>1&&h(this.value(),t),t="this."+t,this._paths[t]>0&&h(this.value(),t))},E.chainDidChange=function(e,t,r){this._key&&(t=this._key+"."+t),this._parent?this._parent.chainDidChange(this,t,r+1):(r>1&&l(this.value(),t),t="this."+t,this._paths[t]>0&&l(this.value(),t))},E.didChange=function(e){if(this._watching){var r=this._parent.value();r!==this._object&&(m(this._object,this._key,this),this._object=r,t(r,this._key,this)),this._value=void 0,this._parent&&"@each"===this._parent._key&&this.value()}var n=this._chains;if(n)for(var i in n)n.hasOwnProperty(i)&&n[i].didChange(e);e||this._parent&&this._parent.chainDidChange(this,this._key,1)},Ember.finishChains=function(e){var t=n(e,!1),r=t.chains;r&&(r.value()!==e&&(t.chains=r=r.copy(e)),r.didChange(!0))}}(),function(){function e(e){var r=t(e),i=r.chains;return i?i.value()!==e&&(i=r.chains=i.copy(e)):i=r.chains=new n(null,null,e),i}var t=Ember.meta,r=Ember.typeOf,n=Ember._ChainNode;Ember.watchPath=function(n,i){if("length"!==i||"array"!==r(n)){var o=t(n),s=o.watching;s[i]?s[i]=(s[i]||0)+1:(s[i]=1,e(n).add(i))}},Ember.unwatchPath=function(r,n){var i=t(r),o=i.watching;1===o[n]?(o[n]=0,e(r).remove(n)):o[n]>1&&o[n]--}}(),function(){function e(e){return"*"===e||!l.test(e)}var t=Ember.meta,r=Ember.GUID_KEY,n=Ember.META_KEY,i=Ember.removeChainWatcher,o=Ember.watchKey,s=Ember.unwatchKey,a=Ember.watchPath,u=Ember.unwatchPath,c=Ember.typeOf,h=Ember.generateGuid,l=/[\.\*]/;Ember.watch=function(t,r){("length"!==r||"array"!==c(t))&&(e(r)?o(t,r):a(t,r))},Ember.isWatching=function(e,t){var r=e[n];return(r&&r.watching[t])>0},Ember.watch.flushPending=Ember.flushPendingChains,Ember.unwatch=function(t,r){("length"!==r||"array"!==c(t))&&(e(r)?s(t,r):u(t,r))},Ember.rewatch=function(e){var n=t(e,!1),i=n.chains;r in e&&!e.hasOwnProperty(r)&&h(e,"ember"),i&&i.value()!==e&&(n.chains=i.copy(e))};var f=[];Ember.destroy=function(e){var t,r,o,s,a=e[n];if(a&&(e[n]=null,t=a.chains))for(f.push(t);f.length>0;){if(t=f.pop(),r=t._chains)for(o in r)r.hasOwnProperty(o)&&f.push(r[o]);t._watching&&(s=t._object,s&&i(s,t._key,t))}}}(),function(){function e(e,t){var r=e[t];return r?e.hasOwnProperty(t)||(r=e[t]=f(r)):r=e[t]={},r}function t(t){return e(t,"deps")}function r(r,n,i,o){var s,a,u,c,h,l=r._dependentKeys;if(l)for(s=t(o),a=0,u=l.length;u>a;a++)c=l[a],h=e(s,c),h[i]=(h[i]||0)+1,m(n,c)}function n(r,n,i,o){var s,a,u,c,h,l=r._dependentKeys;if(l)for(s=t(o),a=0,u=l.length;u>a;a++)c=l[a],h=e(s,c),h[i]=(h[i]||0)-1,p(n,c)}function i(e,t){this.func=e,this._cacheable=t&&void 0!==t.cacheable?t.cacheable:!0,this._dependentKeys=t&&t.dependentKeys,this._readOnly=t&&(void 0!==t.readOnly||!!t.readOnly)}function o(e,t){for(var r={},n=0;t.length>n;n++)r[t[n]]=u(e,t[n]);return r}function s(e,t){Ember.computed[e]=function(e){var r=l.call(arguments);return Ember.computed(e,function(){return t.apply(this,r)})}}function a(e,t){Ember.computed[e]=function(){var e=l.call(arguments),r=Ember.computed(function(){return t.apply(this,[o(this,e)])});return r.property.apply(r,e)}}var u=Ember.get,c=Ember.set,h=Ember.meta,l=[].slice,f=Ember.create,b=Ember.META_KEY,m=Ember.watch,p=Ember.unwatch;Ember.ComputedProperty=i,i.prototype=new Ember.Descriptor;var E=i.prototype;E.cacheable=function(e){return this._cacheable=e!==!1,this},E.volatile=function(){return this.cacheable(!1)},E.readOnly=function(e){return this._readOnly=void 0===e||!!e,this},E.property=function(){for(var e=[],t=0,r=arguments.length;r>t;t++)e.push(arguments[t]);return this._dependentKeys=e,this},E.meta=function(e){return 0===arguments.length?this._meta||{}:(this._meta=e,this)},E.willWatch=function(e,t){var n=e[b];t in n.cache||r(this,e,t,n)},E.didUnwatch=function(e,t){var r=e[b];t in r.cache||n(this,e,t,r)},E.didChange=function(e,t){if(this._cacheable&&this._suspended!==e){var r=h(e);t in r.cache&&(delete r.cache[t],r.watching[t]||n(this,e,t,r))}},E.get=function(e,t){var n,i,o;if(this._cacheable){if(o=h(e),i=o.cache,t in i)return i[t];n=i[t]=this.func.call(e,t),o.watching[t]||r(this,e,t,o)}else n=this.func.call(e,t);return n},E.set=function(e,t,n){var i,o,s=this._cacheable,a=this.func,u=h(e,s),c=u.watching[t],l=this._suspended,f=!1,b=u.cache;if(this._readOnly)throw new Error("Cannot Set: "+t+" on: "+e.toString());this._suspended=e;try{if(s&&b.hasOwnProperty(t)&&(i=b[t],f=!0),a.wrappedFunction&&(a=a.wrappedFunction),3===a.length)o=a.call(e,t,n,i);else{if(2!==a.length)return Ember.defineProperty(e,t,null,i),Ember.set(e,t,n),void 0;o=a.call(e,t,n)}if(f&&i===o)return;c&&Ember.propertyWillChange(e,t),f&&delete b[t],s&&(c||f||r(this,e,t,u),b[t]=o),c&&Ember.propertyDidChange(e,t)}finally{this._suspended=l}return o},E.setup=function(e,t){var n=e[b];n&&n.watching[t]&&r(this,e,t,h(e))},E.teardown=function(e,t){var r=h(e);return(r.watching[t]||t in r.cache)&&n(this,e,t,r),this._cacheable&&delete r.cache[t],null},Ember.computed=function(e){var t;if(arguments.length>1&&(t=l.call(arguments,0,-1),e=l.call(arguments,-1)[0]),"function"!=typeof e)throw new Error("Computed Property declared without a property function");var r=new i(e);return t&&r.property.apply(r,t),r},Ember.cacheFor=function(e,t){var r=h(e,!1).cache;return r&&t in r?r[t]:void 0},s("empty",function(e){return Ember.isEmpty(u(this,e))}),s("notEmpty",function(e){return!Ember.isEmpty(u(this,e))}),s("none",function(e){return Ember.isNone(u(this,e))}),s("not",function(e){return!u(this,e)}),s("bool",function(e){return!!u(this,e)}),s("match",function(e,t){var r=u(this,e);return"string"==typeof r?!!r.match(t):!1}),s("equal",function(e,t){return u(this,e)===t}),s("gt",function(e,t){return u(this,e)>t}),s("gte",function(e,t){return u(this,e)>=t}),s("lt",function(e,t){return t>u(this,e)}),s("lte",function(e,t){return t>=u(this,e)}),a("and",function(e){for(var t in e)if(e.hasOwnProperty(t)&&!e[t])return!1;return!0}),a("or",function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!0;return!1}),a("any",function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return e[t];return null}),a("map",function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&(Ember.isNone(e[r])?t.push(null):t.push(e[r]));return t}),Ember.computed.alias=function(e){return Ember.computed(e,function(t,r){return arguments.length>1?(c(this,e,r),r):u(this,e)})},Ember.computed.defaultTo=function(e){return Ember.computed(function(t,r,n){return 1===arguments.length?null!=n?n:u(this,e):null!=r?r:u(this,e)})}}(),function(){function e(e){return e+r}function t(e){return e+n}var r=":change",n=":before";Ember.guidFor,Ember.addObserver=function(t,r,n,i){return Ember.addListener(t,e(r),n,i),Ember.watch(t,r),this},Ember.observersFor=function(t,r){return Ember.listenersFor(t,e(r))},Ember.removeObserver=function(t,r,n,i){return Ember.unwatch(t,r),Ember.removeListener(t,e(r),n,i),this},Ember.addBeforeObserver=function(e,r,n,i){return Ember.addListener(e,t(r),n,i),Ember.watch(e,r),this},Ember._suspendBeforeObserver=function(e,r,n,i,o){return Ember._suspendListener(e,t(r),n,i,o)},Ember._suspendObserver=function(t,r,n,i,o){return Ember._suspendListener(t,e(r),n,i,o)};var i=Ember.ArrayPolyfills.map;Ember._suspendBeforeObservers=function(e,r,n,o,s){var a=i.call(r,t);return Ember._suspendListeners(e,a,n,o,s)},Ember._suspendObservers=function(t,r,n,o,s){var a=i.call(r,e);return Ember._suspendListeners(t,a,n,o,s)},Ember.beforeObserversFor=function(e,r){return Ember.listenersFor(e,t(r))},Ember.removeBeforeObserver=function(e,r,n,i){return Ember.unwatch(e,r),Ember.removeListener(e,t(r),n,i),this}}(),function(){function e(e,t,r,n){return void 0===t&&(t=e,e=void 0),"string"==typeof t&&(t=e[t]),r&&n>0&&(r=r.length>n?o.call(r,n):null),Ember.handleErrors(function(){return t.apply(e||this,r||[])},this)}function t(){c=null,u.currentRunLoop&&u.end()}function r(){h=null,u(function(){var t=+new Date,n=-1;for(var i in f)if(f.hasOwnProperty(i)){var o=f[i];o&&o.expires&&(t>=o.expires?(delete f[i],e(o.target,o.method,o.args,2)):(0>n||n>o.expires)&&(n=o.expires))}n>0&&(h=setTimeout(r,n-t),l=n)})}function n(t,r){r[this.tguid]&&delete r[this.tguid][this.mguid],f[t]&&e(this.target,this.method,this.args),delete f[t]}function i(e,t,r,i){var o,s=Ember.guidFor(t),a=Ember.guidFor(r),c=u.autorun().onceTimers,h=c[s]&&c[s][a];return h&&f[h]?f[h].args=i:(o={target:t,method:r,args:i,tguid:s,mguid:a},h=Ember.guidFor(o),f[h]=o,c[s]||(c[s]={}),c[s][a]=h,u.schedule(e,o,n,h,c)),h}var o=[].slice,s=Ember.ArrayPolyfills.forEach,a=function(e){this._prev=e||null,this.onceTimers={}};a.prototype={end:function(){this.flush()},prev:function(){return this._prev},schedule:function(e,t,r){var n,i=this._queues;i||(i=this._queues={}),n=i[e],n||(n=i[e]=[]);var s=arguments.length>3?o.call(arguments,3):null;return n.push({target:t,method:r,args:s}),this},flush:function(t){function r(t){e(t.target,t.method,t.args)}function n(){s.call(u,r)}var i,o,a,u,c;if(!this._queues)return this;if(Ember.watch.flushPending(),t)for(;this._queues&&(u=this._queues[t]);)this._queues[t]=null,"sync"===t?(c=Ember.LOG_BINDINGS,c&&Ember.Logger.log("Begin: Flush Sync Queue"),Ember.beginPropertyChanges(),Ember.tryFinally(n,Ember.endPropertyChanges),c&&Ember.Logger.log("End: Flush Sync Queue")):s.call(u,r);
16
+ else{i=Ember.run.queues,a=i.length,o=0;e:for(;a>o;){t=i[o],u=this._queues&&this._queues[t],delete this._queues[t],u&&("sync"===t?(c=Ember.LOG_BINDINGS,c&&Ember.Logger.log("Begin: Flush Sync Queue"),Ember.beginPropertyChanges(),Ember.tryFinally(n,Ember.endPropertyChanges),c&&Ember.Logger.log("End: Flush Sync Queue")):s.call(u,r));for(var h=0;o>=h;h++)if(this._queues&&this._queues[i[h]]){o=h;continue e}o++}}return this}},Ember.RunLoop=a,Ember.run=function(t,r){function n(){return t||r?e(t,r,i,2):void 0}var i=arguments;return u.begin(),Ember.tryFinally(n,u.end)};var u=Ember.run;Ember.run.begin=function(){u.currentRunLoop=new a(u.currentRunLoop)},Ember.run.end=function(){function e(){u.currentRunLoop.end()}function t(){u.currentRunLoop=u.currentRunLoop.prev()}Ember.tryFinally(e,t)},Ember.run.queues=["sync","actions","destroy"],Ember.run.schedule=function(){var e=u.autorun();e.schedule.apply(e,arguments)};var c;Ember.run.hasScheduledTimers=function(){return!(!c&&!h)},Ember.run.cancelTimers=function(){c&&(clearTimeout(c),c=null),h&&(clearTimeout(h),h=null),f={}},Ember.run.autorun=function(){return u.currentRunLoop||(u.begin(),c||(c=setTimeout(t,1))),u.currentRunLoop},Ember.run.sync=function(){u.autorun(),u.currentRunLoop.flush("sync")};var h,l,f={};Ember.run.later=function(e,t){var n,i,s,a,u;return 2===arguments.length&&"function"==typeof e?(u=t,t=e,e=void 0,n=[e,t]):(n=o.call(arguments),u=n.pop()),i=+new Date+u,s={target:e,method:t,expires:i,args:n},a=Ember.guidFor(s),f[a]=s,h&&l>i&&(clearTimeout(h),h=null),h||(h=setTimeout(r,u),l=i),a},Ember.run.once=function(e,t){return i("actions",e,t,o.call(arguments,2))},Ember.run.scheduleOnce=function(e,t,r){return i(e,t,r,o.call(arguments,3))},Ember.run.next=function(){var e=o.call(arguments);return e.push(1),u.later.apply(this,e)},Ember.run.cancel=function(e){delete f[e]}}(),function(){function e(e,t){return r(o(t)?Ember.lookup:e,t)}function t(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}Ember.LOG_BINDINGS=!1||!!Ember.ENV.LOG_BINDINGS;var r=Ember.get,n=(Ember.set,Ember.guidFor),i=/^([A-Z$]|([0-9][A-Z$]))/,o=Ember.isGlobalPath=function(e){return i.test(e)},s=function(e,t){this._direction="fwd",this._from=t,this._to=e,this._directionMap=Ember.Map.create()};s.prototype={copy:function(){var e=new s(this._to,this._from);return this._oneWay&&(e._oneWay=!0),e},from:function(e){return this._from=e,this},to:function(e){return this._to=e,this},oneWay:function(){return this._oneWay=!0,this},toString:function(){var e=this._oneWay?"[oneWay]":"";return"Ember.Binding<"+n(this)+">("+this._from+" -> "+this._to+")"+e},connect:function(t){var r=this._from,n=this._to;return Ember.trySet(t,n,e(t,r)),Ember.addObserver(t,r,this,this.fromDidChange),this._oneWay||Ember.addObserver(t,n,this,this.toDidChange),this._readyToSync=!0,this},disconnect:function(e){var t=!this._oneWay;return Ember.removeObserver(e,this._from,this,this.fromDidChange),t&&Ember.removeObserver(e,this._to,this,this.toDidChange),this._readyToSync=!1,this},fromDidChange:function(e){this._scheduleSync(e,"fwd")},toDidChange:function(e){this._scheduleSync(e,"back")},_scheduleSync:function(e,t){var r=this._directionMap,n=r.get(e);n||(Ember.run.schedule("sync",this,this._sync,e),r.set(e,t)),"back"===n&&"fwd"===t&&r.set(e,"fwd")},_sync:function(t){var n=Ember.LOG_BINDINGS;if(!t.isDestroyed&&this._readyToSync){var i=this._directionMap,o=i.get(t),s=this._from,a=this._to;if(i.remove(t),"fwd"===o){var u=e(t,this._from);n&&Ember.Logger.log(" ",this.toString(),"->",u,t),this._oneWay?Ember.trySet(t,a,u):Ember._suspendObserver(t,a,this,this.toDidChange,function(){Ember.trySet(t,a,u)})}else if("back"===o){var c=r(t,this._to);n&&Ember.Logger.log(" ",this.toString(),"<-",c,t),Ember._suspendObserver(t,s,this,this.fromDidChange,function(){Ember.trySet(Ember.isGlobalPath(s)?Ember.lookup:t,s,c)})}}}},t(s,{from:function(){var e=this,t=new e;return t.from.apply(t,arguments)},to:function(){var e=this,t=new e;return t.to.apply(t,arguments)},oneWay:function(e,t){var r=this,n=new r(null,e);return n.oneWay(t)}}),Ember.Binding=s,Ember.bind=function(e,t,r){return new Ember.Binding(t,r).connect(e)},Ember.oneWay=function(e,t,r){return new Ember.Binding(t,r).oneWay().connect(e)}}(),function(){function e(e){var t=Ember.meta(e,!0),r=t.mixins;return r?t.hasOwnProperty("mixins")||(r=t.mixins=A(r)):r=t.mixins={},r}function t(e,t){return t&&t.length>0&&(e.mixins=O.call(t,function(e){if(e instanceof g)return e;var t=new g;return t.properties=e,t})),e}function r(e){return"function"==typeof e&&e.isMethod!==!1&&e!==Boolean&&e!==Object&&e!==Number&&e!==Array&&e!==Date&&e!==String}function n(e,t){var r;return t instanceof g?(r=S(t),e[r]?D:(e[r]=t,t.properties)):t}function i(e,t,r){var n;return n=t.concatenatedProperties||r.concatenatedProperties,e.concatenatedProperties&&(n=n?n.concat(e.concatenatedProperties):e.concatenatedProperties),n}function o(e,t,r,n,i){var o;return void 0===n[t]&&(o=i[t]),o=o||e.descs[t],o&&o instanceof Ember.ComputedProperty?(r=A(r),r.func=Ember.wrap(r.func,o.func),r):r}function s(e,t,r,n,i){var o;return void 0===i[t]&&(o=n[t]),o=o||e[t],"function"!=typeof o?r:Ember.wrap(r,o)}function a(e,t,r,n){var i=n[t]||e[t];return i?"function"==typeof i.concat?i.concat(r):Ember.makeArray(i).concat(r):Ember.makeArray(r)}function u(e,t,n,i,u,c,h){if(n instanceof Ember.Descriptor){if(n===y&&u[t])return D;n.func&&(n=o(i,t,n,c,u)),u[t]=n,c[t]=void 0}else r(n)?n=s(e,t,n,c,u):(h&&C.call(h,t)>=0||"concatenatedProperties"===t)&&(n=a(e,t,n,c)),u[t]=void 0,c[t]=n}function c(e,t,r,o,s,a){function h(e){delete r[e],delete o[e]}for(var l,f,b,m,p,E=0,d=e.length;d>E;E++)if(l=e[E],f=n(t,l),f!==D)if(f){p=Ember.meta(s),m=i(f,o,s);for(b in f)f.hasOwnProperty(b)&&(a.push(b),u(s,b,f[b],p,r,o,m));f.hasOwnProperty("toString")&&(s.toString=f.toString)}else l.mixins&&(c(l.mixins,t,r,o,s,a),l._without&&w.call(l._without,h))}function h(e,t,r,n){if(x.test(t)){var i=n.bindings;i?n.hasOwnProperty("bindings")||(i=n.bindings=A(n.bindings)):i=n.bindings={},i[t]=r}}function l(e,t){var r,n,i,o=t.bindings;if(o){for(r in o)n=o[r],n&&(i=r.slice(0,-7),n instanceof Ember.Binding?(n=n.copy(),n.to(i)):n=new Ember.Binding(i,n),n.connect(e),e[r]=n);t.bindings={}}}function f(e,t){return l(e,t||Ember.meta(e)),e}function b(e,t,r,n,i){var o,s=t.methodName;return n[s]||i[s]?(o=i[s],t=n[s]):r.descs[s]?(t=r.descs[s],o=void 0):(t=void 0,o=e[s]),{desc:t,value:o}}function m(e,t,r,n,i){if("function"==typeof r){var o=r[n];if(o)for(var s=0,a=o.length;a>s;s++)Ember[i](e,o[s],null,t)}}function p(e,t,r){var n=e[t];m(e,t,n,"__ember_observesBefore__","removeBeforeObserver"),m(e,t,n,"__ember_observes__","removeObserver"),m(e,t,r,"__ember_observesBefore__","addBeforeObserver"),m(e,t,r,"__ember_observes__","addObserver")}function E(t,r,n){var i,o,s,a={},u={},l=Ember.meta(t),m=[];c(r,e(t),a,u,t,m);for(var E=0,d=m.length;d>E;E++)if(i=m[E],"constructor"!==i&&u.hasOwnProperty(i)&&(s=a[i],o=u[i],s!==y)){for(;s&&s instanceof _;){var v=b(t,s,l,a,u);s=v.desc,o=v.value}(void 0!==s||void 0!==o)&&(p(t,i,o),h(t,i,o,l),j(t,i,s,o,l))}return n||f(t,l),t}function d(e,t,r){var n=S(e);if(r[n])return!1;if(r[n]=!0,e===t)return!0;for(var i=e.mixins,o=i?i.length:0;--o>=0;)if(d(i[o],t,r))return!0;return!1}function v(e,t,r){if(!r[S(t)])if(r[S(t)]=!0,t.properties){var n=t.properties;for(var i in n)n.hasOwnProperty(i)&&(e[i]=!0)}else t.mixins&&w.call(t.mixins,function(t){v(e,t,r)})}var g,y,_,O=Ember.ArrayPolyfills.map,C=Ember.ArrayPolyfills.indexOf,w=Ember.ArrayPolyfills.forEach,P=[].slice,A=Ember.create,j=Ember.defineProperty,S=Ember.guidFor,D={},x=Ember.IS_BINDING=/^.+Binding$/;Ember.mixin=function(e){var t=P.call(arguments,1);return E(e,t,!1),e},Ember.Mixin=function(){return t(this,arguments)},g=Ember.Mixin,g.prototype={properties:null,mixins:null,ownerConstructor:null},g._apply=E,g.applyPartial=function(e){var t=P.call(arguments,1);return E(e,t,!0)},g.finishPartial=f,Ember.anyUnprocessedMixins=!1,g.create=function(){Ember.anyUnprocessedMixins=!0;var e=this;return t(new e,arguments)};var N=g.prototype;N.reopen=function(){var e,t;this.properties?(e=g.create(),e.properties=this.properties,delete this.properties,this.mixins=[e]):this.mixins||(this.mixins=[]);var r,n=arguments.length,i=this.mixins;for(r=0;n>r;r++)e=arguments[r],e instanceof g?i.push(e):(t=g.create(),t.properties=e,i.push(t));return this},N.apply=function(e){return E(e,[this],!1)},N.applyPartial=function(e){return E(e,[this],!0)},N.detect=function(e){if(!e)return!1;if(e instanceof g)return d(e,this,{});var t=Ember.meta(e,!1).mixins;return t?!!t[S(this)]:!1},N.without=function(){var e=new g(this);return e._without=P.call(arguments),e},N.keys=function(){var e={},t={},r=[];v(e,this,t);for(var n in e)e.hasOwnProperty(n)&&r.push(n);return r},g.mixins=function(e){var t=Ember.meta(e,!1).mixins,r=[];if(!t)return r;for(var n in t){var i=t[n];i.properties||r.push(i)}return r},y=new Ember.Descriptor,y.toString=function(){return"(Required Property)"},Ember.required=function(){return y},_=function(e){this.methodName=e},_.prototype=new Ember.Descriptor,Ember.alias=function(e){return new _(e)},Ember.alias=Ember.deprecateFunc("Ember.alias is deprecated. Please use Ember.aliasMethod or Ember.computed.alias instead.",Ember.alias),Ember.aliasMethod=function(e){return new _(e)},Ember.observer=function(e){var t=P.call(arguments,1);return e.__ember_observes__=t,e},Ember.immediateObserver=function(){for(var e=0,t=arguments.length;t>e;e++)arguments[e];return Ember.observer.apply(this,arguments)},Ember.beforeObserver=function(e){var t=P.call(arguments,1);return e.__ember_observesBefore__=t,e}}(),function(){e("rsvp",[],function(){"use strict";function e(e,t){n.async(function(){e.trigger("promise:resolved",{detail:t}),e.isResolved=!0,e.resolvedValue=t})}function t(e,t){n.async(function(){e.trigger("promise:failed",{detail:t}),e.isRejected=!0,e.rejectedValue=t})}function r(e){var t,r=[],n=new m,i=e.length;0===i&&n.resolve([]);var o=function(e){return function(t){s(e,t)}},s=function(e,t){r[e]=t,0===--i&&n.resolve(r)},a=function(e){n.reject(e)};for(t=0;i>t;t++)e[t].then(o(t),a);return n}var n,i,o="undefined"!=typeof window?window:{},s=o.MutationObserver||o.WebKitMutationObserver;if("undefined"!=typeof process&&"[object process]"==={}.toString.call(process))i=function(e,t){process.nextTick(function(){e.call(t)})};else if(s){var a=[],u=new s(function(){var e=a.slice();a=[],e.forEach(function(e){var t=e[0],r=e[1];t.call(r)})}),c=document.createElement("div");u.observe(c,{attributes:!0}),window.addEventListener("unload",function(){u.disconnect(),u=null}),i=function(e,t){a.push([e,t]),c.setAttribute("drainQueue","drainQueue")}}else i=function(e,t){setTimeout(function(){e.call(t)},1)};var h=function(e,t){this.type=e;for(var r in t)t.hasOwnProperty(r)&&(this[r]=t[r])},l=function(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r][0]===t)return r;return-1},f=function(e){var t=e._promiseCallbacks;return t||(t=e._promiseCallbacks={}),t},b={mixin:function(e){return e.on=this.on,e.off=this.off,e.trigger=this.trigger,e},on:function(e,t,r){var n,i,o=f(this);for(e=e.split(/\s+/),r=r||this;i=e.shift();)n=o[i],n||(n=o[i]=[]),-1===l(n,t)&&n.push([t,r])},off:function(e,t){var r,n,i,o=f(this);for(e=e.split(/\s+/);n=e.shift();)t?(r=o[n],i=l(r,t),-1!==i&&r.splice(i,1)):o[n]=[]},trigger:function(e,t){var r,n,i,o,s,a=f(this);if(r=a[e])for(var u=0;r.length>u;u++)n=r[u],i=n[0],o=n[1],"object"!=typeof t&&(t={detail:t}),s=new h(e,t),i.call(o,s)}},m=function(){this.on("promise:resolved",function(e){this.trigger("success",{detail:e.detail})},this),this.on("promise:failed",function(e){this.trigger("error",{detail:e.detail})},this)},p=function(){},E=function(e,t,r,n){var i,o,s,a,u="function"==typeof r;if(u)try{i=r(n.detail),s=!0}catch(c){a=!0,o=c}else i=n.detail,s=!0;i&&"function"==typeof i.then?i.then(function(e){t.resolve(e)},function(e){t.reject(e)}):u&&s?t.resolve(i):a?t.reject(o):t[e](i)};return m.prototype={then:function(e,t){var r=new m;return this.isResolved&&n.async(function(){E("resolve",r,e,{detail:this.resolvedValue})},this),this.isRejected&&n.async(function(){E("reject",r,t,{detail:this.rejectedValue})},this),this.on("promise:resolved",function(t){E("resolve",r,e,t)}),this.on("promise:failed",function(e){E("reject",r,t,e)}),r},resolve:function(t){e(this,t),this.resolve=p,this.reject=p},reject:function(e){t(this,e),this.resolve=p,this.reject=p}},b.mixin(m.prototype),n={async:i,Promise:m,Event:h,EventTarget:b,all:r,raiseOnUncaughtExceptions:!0}})}(),function(){e("container",[],function(){function e(e){this.parent=e,this.dict={}}function t(t){this.parent=t,this.children=[],this.resolver=t&&t.resolver||function(){},this.registry=new e(t&&t.registry),this.cache=new e(t&&t.cache),this.typeInjections=new e(t&&t.typeInjections),this.injections={},this._options=new e(t&&t._options),this._typeOptions=new e(t&&t._typeOptions)}function r(e){throw new Error(e+" is not currently supported on child containers")}function n(e,t){var r=o(e,t,"singleton");return r!==!1}function i(e,t){var r={};if(!t)return r;for(var n,i,o=0,s=t.length;s>o;o++)n=t[o],i=e.lookup(n.fullName),r[n.property]=i;return r}function o(e,t,r){var n=e._options.get(t);if(n&&void 0!==n[r])return n[r];var i=t.split(":")[0];return n=e._typeOptions.get(i),n?n[r]:void 0}function s(e,t){var r=e.normalize(t);return e.resolve(r)}function a(e,t){var r,n=s(e,t),a=t.split(":"),u=a[0];if(o(e,t,"instantiate")===!1)return n;if(n){var c=[];c=c.concat(e.typeInjections.get(u)||[]),c=c.concat(e.injections[t]||[]);var h=i(e,c);return h.container=e,h._debugContainerKey=t,r=n.create(h)}}function u(e,t){e.cache.eachLocal(function(r,n){o(e,r,"instantiate")!==!1&&t(n)})}function c(e){e.cache.eachLocal(function(t,r){o(e,t,"instantiate")!==!1&&r.destroy()}),e.cache.dict={}}return e.prototype={get:function(e){var t=this.dict;return t.hasOwnProperty(e)?t[e]:this.parent?this.parent.get(e):void 0},set:function(e,t){this.dict[e]=t},has:function(e){var t=this.dict;return t.hasOwnProperty(e)?!0:this.parent?this.parent.has(e):!1},eachLocal:function(e,t){var r=this.dict;for(var n in r)r.hasOwnProperty(n)&&e.call(t,n,r[n])}},t.prototype={child:function(){var e=new t(this);return this.children.push(e),e},set:function(e,t,r){e[t]=r},register:function(e,t,r,n){var i;-1!==e.indexOf(":")?(n=r,r=t,i=e):i=e+":"+t;var o=this.normalize(i);this.registry.set(o,r),this._options.set(o,n||{})},resolve:function(e){return this.resolver(e)||this.registry.get(e)},normalize:function(e){return e},lookup:function(e,t){if(e=this.normalize(e),t=t||{},this.cache.has(e)&&t.singleton!==!1)return this.cache.get(e);var r=a(this,e);return r?(n(this,e)&&t.singleton!==!1&&this.cache.set(e,r),r):void 0},has:function(e){return this.cache.has(e)?!0:!!s(this,e)},optionsForType:function(e,t){this.parent&&r("optionsForType"),this._typeOptions.set(e,t)},options:function(e,t){this.optionsForType(e,t)},typeInjection:function(e,t,n){this.parent&&r("typeInjection");var i=this.typeInjections.get(e);i||(i=[],this.typeInjections.set(e,i)),i.push({property:t,fullName:n})},injection:function(e,t,n){if(this.parent&&r("injection"),-1===e.indexOf(":"))return this.typeInjection(e,t,n);var i=this.injections[e]=this.injections[e]||[];i.push({property:t,fullName:n})},destroy:function(){this.isDestroyed=!0;for(var e=0,t=this.children.length;t>e;e++)this.children[e].destroy();this.children=[],u(this,function(e){e.isDestroying=!0}),u(this,function(e){e.destroy()}),delete this.parent,this.isDestroyed=!0},reset:function(){for(var e=0,t=this.children.length;t>e;e++)c(this.children[e]);c(this)}},t})}(),function(){function e(r,n,i,o){var s,a,u;if("object"!=typeof r||null===r)return r;if(n&&(a=t(i,r))>=0)return o[a];if("array"===Ember.typeOf(r)){if(s=r.slice(),n)for(a=s.length;--a>=0;)s[a]=e(s[a],n,i,o)}else if(Ember.Copyable&&Ember.Copyable.detect(r))s=r.copy(n,i,o);else{s={};for(u in r)r.hasOwnProperty(u)&&"__"!==u.substring(0,2)&&(s[u]=n?e(r[u],n,i,o):r[u])}return n&&(i.push(r),o.push(s)),s}var t=Ember.EnumerableUtils.indexOf;Ember.compare=function r(e,t){if(e===t)return 0;var n=Ember.typeOf(e),i=Ember.typeOf(t),o=Ember.Comparable;if(o){if("instance"===n&&o.detect(e.constructor))return e.constructor.compare(e,t);if("instance"===i&&o.detect(t.constructor))return 1-t.constructor.compare(t,e)}var s=Ember.ORDER_DEFINITION_MAPPING;if(!s){var a=Ember.ORDER_DEFINITION;s=Ember.ORDER_DEFINITION_MAPPING={};var u,c;for(u=0,c=a.length;c>u;++u)s[a[u]]=u;delete Ember.ORDER_DEFINITION}var h=s[n],l=s[i];if(l>h)return-1;if(h>l)return 1;switch(n){case"boolean":case"number":return t>e?-1:e>t?1:0;case"string":var f=e.localeCompare(t);return 0>f?-1:f>0?1:0;case"array":for(var b=e.length,m=t.length,p=Math.min(b,m),E=0,d=0;0===E&&p>d;)E=r(e[d],t[d]),d++;return 0!==E?E:m>b?-1:b>m?1:0;case"instance":return Ember.Comparable&&Ember.Comparable.detect(e)?e.compare(e,t):0;case"date":var v=e.getTime(),g=t.getTime();return g>v?-1:v>g?1:0;default:return 0}},Ember.copy=function(t,r){return"object"!=typeof t||null===t?t:Ember.Copyable&&Ember.Copyable.detect(t)?t.copy(r):e(t,r,r?[]:null,r?[]:null)},Ember.inspect=function(e){if("object"!=typeof e||null===e)return e+"";var t,r=[];for(var n in e)if(e.hasOwnProperty(n)){if(t=e[n],"toString"===t)continue;"function"===Ember.typeOf(t)&&(t="function() { ... }"),r.push(n+": "+t)}return"{"+r.join(", ")+"}"},Ember.isEqual=function(e,t){return e&&"function"==typeof e.isEqual?e.isEqual(t):e===t},Ember.ORDER_DEFINITION=Ember.ENV.ORDER_DEFINITION||["undefined","null","boolean","number","string","array","object","instance","function","class","date"],Ember.keys=Object.keys,Ember.keys||(Ember.keys=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t});var n=["description","fileName","lineNumber","message","name","number","stack"];Ember.Error=function(){for(var e=Error.prototype.constructor.apply(this,arguments),t=0;n.length>t;t++)this[n[t]]=e[n[t]]},Ember.Error.prototype=Ember.create(Error.prototype)}(),function(){Ember.RSVP=t("rsvp")}(),function(){var e=/[ _]/g,t={},r=/([a-z])([A-Z])/g,n=/(\-|_|\.|\s)+(.)?/g,i=/([a-z\d])([A-Z]+)/g,o=/\-|\s+/g;Ember.STRINGS={},Ember.String={fmt:function(e,t){var r=0;return e.replace(/%@([0-9]+)?/g,function(e,n){return n=n?parseInt(n,0)-1:r++,e=t[n],(null===e?"(null)":void 0===e?"":e).toString()})},loc:function(e,t){return e=Ember.STRINGS[e]||e,Ember.String.fmt(e,t)},w:function(e){return e.split(/\s+/)},decamelize:function(e){return e.replace(r,"$1_$2").toLowerCase()},dasherize:function(r){var n,i=t,o=i.hasOwnProperty(r);return o?i[r]:(n=Ember.String.decamelize(r).replace(e,"-"),i[r]=n,n)},camelize:function(e){return e.replace(n,function(e,t,r){return r?r.toUpperCase():""}).replace(/^([A-Z])/,function(e){return e.toLowerCase()})},classify:function(e){for(var t=e.split("."),r=[],n=0,i=t.length;i>n;n++){var o=Ember.String.camelize(t[n]);r.push(o.charAt(0).toUpperCase()+o.substr(1))}return r.join(".")},underscore:function(e){return e.replace(i,"$1_$2").replace(o,"_").toLowerCase()},capitalize:function(e){return e.charAt(0).toUpperCase()+e.substr(1)}}}(),function(){var e=Ember.String.fmt,t=Ember.String.w,r=Ember.String.loc,n=Ember.String.camelize,i=Ember.String.decamelize,o=Ember.String.dasherize,s=Ember.String.underscore,a=Ember.String.capitalize,u=Ember.String.classify;(Ember.EXTEND_PROTOTYPES===!0||Ember.EXTEND_PROTOTYPES.String)&&(String.prototype.fmt=function(){return e(this,arguments)},String.prototype.w=function(){return t(this)},String.prototype.loc=function(){return r(this,arguments)},String.prototype.camelize=function(){return n(this)},String.prototype.decamelize=function(){return i(this)},String.prototype.dasherize=function(){return o(this)},String.prototype.underscore=function(){return s(this)},String.prototype.classify=function(){return u(this)},String.prototype.capitalize=function(){return a(this)})}(),function(){var e=Array.prototype.slice;(Ember.EXTEND_PROTOTYPES===!0||Ember.EXTEND_PROTOTYPES.Function)&&(Function.prototype.property=function(){var e=Ember.computed(this);return e.property.apply(e,arguments)},Function.prototype.observes=function(){return this.__ember_observes__=e.call(arguments),this},Function.prototype.observesBefore=function(){return this.__ember_observesBefore__=e.call(arguments),this})}(),function(){function e(){return 0===a.length?{}:a.pop()}function t(e){return a.push(e),null}function r(e,t){function r(r){var o=n(r,e);return i?t===o:!!o}var i=2===arguments.length;return r}var n=Ember.get,i=Ember.set,o=Array.prototype.slice,s=Ember.EnumerableUtils.indexOf,a=[];Ember.Enumerable=Ember.Mixin.create({isEnumerable:!0,nextObject:Ember.required(Function),firstObject:Ember.computed(function(){if(0===n(this,"length"))return void 0;var r,i=e();return r=this.nextObject(0,null,i),t(i),r}).property("[]"),lastObject:Ember.computed(function(){var r=n(this,"length");if(0===r)return void 0;var i,o=e(),s=0,a=null;do a=i,i=this.nextObject(s++,a,o);while(void 0!==i);return t(o),a}).property("[]"),contains:function(e){return void 0!==this.find(function(t){return t===e})},forEach:function(r,i){if("function"!=typeof r)throw new TypeError;var o=n(this,"length"),s=null,a=e();void 0===i&&(i=null);for(var u=0;o>u;u++){var c=this.nextObject(u,s,a);r.call(i,c,u,this),s=c}return s=null,a=t(a),this},getEach:function(e){return this.mapProperty(e)},setEach:function(e,t){return this.forEach(function(r){i(r,e,t)})},map:function(e,t){var r=Ember.A([]);return this.forEach(function(n,i,o){r[i]=e.call(t,n,i,o)}),r},mapProperty:function(e){return this.map(function(t){return n(t,e)})},filter:function(e,t){var r=Ember.A([]);return this.forEach(function(n,i,o){e.call(t,n,i,o)&&r.push(n)}),r},reject:function(e,t){return this.filter(function(){return!e.apply(t,arguments)})},filterProperty:function(){return this.filter(r.apply(this,arguments))},rejectProperty:function(e,t){var r=function(r){return n(r,e)===t},i=function(t){return!!n(t,e)},o=2===arguments.length?r:i;return this.reject(o)},find:function(r,i){var o=n(this,"length");void 0===i&&(i=null);for(var s,a,u=null,c=!1,h=e(),l=0;o>l&&!c;l++)s=this.nextObject(l,u,h),(c=r.call(i,s,l,this))&&(a=s),u=s;return s=u=null,h=t(h),a},findProperty:function(){return this.find(r.apply(this,arguments))},every:function(e,t){return!this.find(function(r,n,i){return!e.call(t,r,n,i)})},everyProperty:function(){return this.every(r.apply(this,arguments))},some:function(e,t){return!!this.find(function(r,n,i){return!!e.call(t,r,n,i)})},someProperty:function(){return this.some(r.apply(this,arguments))},reduce:function(e,t,r){if("function"!=typeof e)throw new TypeError;var n=t;return this.forEach(function(t,i){n=e.call(null,n,t,i,this,r)},this),n},invoke:function(e){var t,r=Ember.A([]);return arguments.length>1&&(t=o.call(arguments,1)),this.forEach(function(n,i){var o=n&&n[e];"function"==typeof o&&(r[i]=t?o.apply(n,t):o.call(n))},this),r},toArray:function(){var e=Ember.A([]);return this.forEach(function(t,r){e[r]=t}),e},compact:function(){return this.filter(function(e){return null!=e})},without:function(e){if(!this.contains(e))return this;var t=Ember.A([]);return this.forEach(function(r){r!==e&&(t[t.length]=r)}),t},uniq:function(){var e=Ember.A([]);return this.forEach(function(t){0>s(e,t)&&e.push(t)}),e},"[]":Ember.computed(function(){return this}),addEnumerableObserver:function(e,t){var r=t&&t.willChange||"enumerableWillChange",i=t&&t.didChange||"enumerableDidChange",o=n(this,"hasEnumerableObservers");return o||Ember.propertyWillChange(this,"hasEnumerableObservers"),Ember.addListener(this,"@enumerable:before",e,r),Ember.addListener(this,"@enumerable:change",e,i),o||Ember.propertyDidChange(this,"hasEnumerableObservers"),this},removeEnumerableObserver:function(e,t){var r=t&&t.willChange||"enumerableWillChange",i=t&&t.didChange||"enumerableDidChange",o=n(this,"hasEnumerableObservers");return o&&Ember.propertyWillChange(this,"hasEnumerableObservers"),Ember.removeListener(this,"@enumerable:before",e,r),Ember.removeListener(this,"@enumerable:change",e,i),o&&Ember.propertyDidChange(this,"hasEnumerableObservers"),this},hasEnumerableObservers:Ember.computed(function(){return Ember.hasListeners(this,"@enumerable:change")||Ember.hasListeners(this,"@enumerable:before")}),enumerableContentWillChange:function(e,t){var r,i,o;return r="number"==typeof e?e:e?n(e,"length"):e=-1,i="number"==typeof t?t:t?n(t,"length"):t=-1,o=0>i||0>r||0!==i-r,-1===e&&(e=null),-1===t&&(t=null),Ember.propertyWillChange(this,"[]"),o&&Ember.propertyWillChange(this,"length"),Ember.sendEvent(this,"@enumerable:before",[this,e,t]),this},enumerableContentDidChange:function(e,t){var r,i,o;return r="number"==typeof e?e:e?n(e,"length"):e=-1,i="number"==typeof t?t:t?n(t,"length"):t=-1,o=0>i||0>r||0!==i-r,-1===e&&(e=null),-1===t&&(t=null),Ember.sendEvent(this,"@enumerable:change",[this,e,t]),o&&Ember.propertyDidChange(this,"length"),Ember.propertyDidChange(this,"[]"),this}})}(),function(){function e(e){return null===e||void 0===e}var t=Ember.get,r=(Ember.set,Ember.EnumerableUtils.map),n=Ember.cacheFor;Ember.Array=Ember.Mixin.create(Ember.Enumerable,{isSCArray:!0,length:Ember.required(),objectAt:function(e){return 0>e||e>=t(this,"length")?void 0:t(this,e)},objectsAt:function(e){var t=this;return r(e,function(e){return t.objectAt(e)})},nextObject:function(e){return this.objectAt(e)},"[]":Ember.computed(function(e,r){return void 0!==r&&this.replace(0,t(this,"length"),r),this}),firstObject:Ember.computed(function(){return this.objectAt(0)}),lastObject:Ember.computed(function(){return this.objectAt(t(this,"length")-1)}),contains:function(e){return this.indexOf(e)>=0},slice:function(r,n){var i=Ember.A([]),o=t(this,"length");for(e(r)&&(r=0),(e(n)||n>o)&&(n=o),0>r&&(r=o+r),0>n&&(n=o+n);n>r;)i[i.length]=this.objectAt(r++);return i},indexOf:function(e,r){var n,i=t(this,"length");for(void 0===r&&(r=0),0>r&&(r+=i),n=r;i>n;n++)if(this.objectAt(n,!0)===e)return n;return-1},lastIndexOf:function(e,r){var n,i=t(this,"length");for((void 0===r||r>=i)&&(r=i-1),0>r&&(r+=i),n=r;n>=0;n--)if(this.objectAt(n)===e)return n;return-1},addArrayObserver:function(e,r){var n=r&&r.willChange||"arrayWillChange",i=r&&r.didChange||"arrayDidChange",o=t(this,"hasArrayObservers");return o||Ember.propertyWillChange(this,"hasArrayObservers"),Ember.addListener(this,"@array:before",e,n),Ember.addListener(this,"@array:change",e,i),o||Ember.propertyDidChange(this,"hasArrayObservers"),this},removeArrayObserver:function(e,r){var n=r&&r.willChange||"arrayWillChange",i=r&&r.didChange||"arrayDidChange",o=t(this,"hasArrayObservers");return o&&Ember.propertyWillChange(this,"hasArrayObservers"),Ember.removeListener(this,"@array:before",e,n),Ember.removeListener(this,"@array:change",e,i),o&&Ember.propertyDidChange(this,"hasArrayObservers"),this},hasArrayObservers:Ember.computed(function(){return Ember.hasListeners(this,"@array:change")||Ember.hasListeners(this,"@array:before")}),arrayContentWillChange:function(e,r,n){void 0===e?(e=0,r=n=-1):(void 0===r&&(r=-1),void 0===n&&(n=-1)),Ember.isWatching(this,"@each")&&t(this,"@each"),Ember.sendEvent(this,"@array:before",[this,e,r,n]);var i,o;if(e>=0&&r>=0&&t(this,"hasEnumerableObservers")){i=[],o=e+r;for(var s=e;o>s;s++)i.push(this.objectAt(s))}else i=r;return this.enumerableContentWillChange(i,n),this},arrayContentDidChange:function(e,r,i){void 0===e?(e=0,r=i=-1):(void 0===r&&(r=-1),void 0===i&&(i=-1));var o,s;if(e>=0&&i>=0&&t(this,"hasEnumerableObservers")){o=[],s=e+i;for(var a=e;s>a;a++)o.push(this.objectAt(a))}else o=i;this.enumerableContentDidChange(r,o),Ember.sendEvent(this,"@array:change",[this,e,r,i]);var u=t(this,"length"),c=n(this,"firstObject"),h=n(this,"lastObject");return this.objectAt(0)!==c&&(Ember.propertyWillChange(this,"firstObject"),Ember.propertyDidChange(this,"firstObject")),this.objectAt(u-1)!==h&&(Ember.propertyWillChange(this,"lastObject"),Ember.propertyDidChange(this,"lastObject")),this},"@each":Ember.computed(function(){return this.__each||(this.__each=new Ember.EachProxy(this)),this.__each})})}(),function(){Ember.Comparable=Ember.Mixin.create({isComparable:!0,compare:Ember.required(Function)})}(),function(){var e=Ember.get;Ember.set,Ember.Copyable=Ember.Mixin.create({copy:Ember.required(Function),frozenCopy:function(){if(Ember.Freezable&&Ember.Freezable.detect(this))return e(this,"isFrozen")?this:this.copy().freeze();throw new Error(Ember.String.fmt("%@ does not support freezing",[this]))}})}(),function(){var e=Ember.get,t=Ember.set;Ember.Freezable=Ember.Mixin.create({isFrozen:!1,freeze:function(){return e(this,"isFrozen")?this:(t(this,"isFrozen",!0),this)}}),Ember.FROZEN_ERROR="Frozen object cannot be modified."}(),function(){var e=Ember.EnumerableUtils.forEach;Ember.MutableEnumerable=Ember.Mixin.create(Ember.Enumerable,{addObject:Ember.required(Function),addObjects:function(t){return Ember.beginPropertyChanges(this),e(t,function(e){this.addObject(e)},this),Ember.endPropertyChanges(this),this},removeObject:Ember.required(Function),removeObjects:function(t){return Ember.beginPropertyChanges(this),e(t,function(e){this.removeObject(e)},this),Ember.endPropertyChanges(this),this}})}(),function(){var e="Index out of range",t=[],r=Ember.get;Ember.set,Ember.MutableArray=Ember.Mixin.create(Ember.Array,Ember.MutableEnumerable,{replace:Ember.required(),clear:function(){var e=r(this,"length");return 0===e?this:(this.replace(0,e,t),this)},insertAt:function(t,n){if(t>r(this,"length"))throw new Error(e);return this.replace(t,0,[n]),this},removeAt:function(n,i){if("number"==typeof n){if(0>n||n>=r(this,"length"))throw new Error(e);void 0===i&&(i=1),this.replace(n,i,t)}return this},pushObject:function(e){return this.insertAt(r(this,"length"),e),e},pushObjects:function(e){return this.replace(r(this,"length"),0,e),this},popObject:function(){var e=r(this,"length");if(0===e)return null;var t=this.objectAt(e-1);return this.removeAt(e-1,1),t},shiftObject:function(){if(0===r(this,"length"))return null;var e=this.objectAt(0);return this.removeAt(0),e},unshiftObject:function(e){return this.insertAt(0,e),e},unshiftObjects:function(e){return this.replace(0,0,e),this},reverseObjects:function(){var e=r(this,"length");if(0===e)return this;var t=this.toArray().reverse();return this.replace(0,e,t),this},setObjects:function(e){if(0===e.length)return this.clear();var t=r(this,"length");return this.replace(0,t,e),this},removeObject:function(e){for(var t=r(this,"length")||0;--t>=0;){var n=this.objectAt(t);n===e&&this.removeAt(t)}return this},addObject:function(e){return this.contains(e)||this.pushObject(e),this}})}(),function(){var e=Ember.get,t=Ember.set;Ember.Observable=Ember.Mixin.create({get:function(t){return e(this,t)},getProperties:function(){var t={},r=arguments;1===arguments.length&&"array"===Ember.typeOf(arguments[0])&&(r=arguments[0]);for(var n=0;r.length>n;n++)t[r[n]]=e(this,r[n]);return t},set:function(e,r){return t(this,e,r),this},setProperties:function(e){return Ember.setProperties(this,e)},beginPropertyChanges:function(){return Ember.beginPropertyChanges(),this},endPropertyChanges:function(){return Ember.endPropertyChanges(),this},propertyWillChange:function(e){return Ember.propertyWillChange(this,e),this},propertyDidChange:function(e){return Ember.propertyDidChange(this,e),this},notifyPropertyChange:function(e){return this.propertyWillChange(e),this.propertyDidChange(e),this},addBeforeObserver:function(e,t,r){Ember.addBeforeObserver(this,e,t,r)},addObserver:function(e,t,r){Ember.addObserver(this,e,t,r)},removeObserver:function(e,t,r){Ember.removeObserver(this,e,t,r)},hasObserverFor:function(e){return Ember.hasListeners(this,e+":change")},getPath:function(e){return this.get(e)},setPath:function(e,t){return this.set(e,t)},getWithDefault:function(e,t){return Ember.getWithDefault(this,e,t)},incrementProperty:function(r,n){return n||(n=1),t(this,r,(e(this,r)||0)+n),e(this,r)},decrementProperty:function(r,n){return n||(n=1),t(this,r,(e(this,r)||0)-n),e(this,r)},toggleProperty:function(r){return t(this,r,!e(this,r)),e(this,r)},cacheFor:function(e){return Ember.cacheFor(this,e)},observersForKey:function(e){return Ember.observersFor(this,e)}})}(),function(){var e=Ember.get;Ember.set,Ember.TargetActionSupport=Ember.Mixin.create({target:null,action:null,actionContext:null,targetObject:Ember.computed(function(){var t=e(this,"target");if("string"===Ember.typeOf(t)){var r=e(this,t);return void 0===r&&(r=e(Ember.lookup,t)),r}return t}).property("target"),actionContextObject:Ember.computed(function(){var t=e(this,"actionContext");if("string"===Ember.typeOf(t)){var r=e(this,t);return void 0===r&&(r=e(Ember.lookup,t)),r}return t}).property("actionContext"),triggerAction:function(t){t=t||{};var r=t.action||e(this,"action"),n=t.target||e(this,"targetObject"),i=t.actionContext||e(this,"actionContextObject")||this;if(n&&r){var o;return o=n.send?n.send.apply(n,[r,i]):n[r].apply(n,[i]),o!==!1&&(o=!0),o}return!1
17
+ }})}(),function(){Ember.Evented=Ember.Mixin.create({on:function(e,t,r){return Ember.addListener(this,e,t,r),this},one:function(e,t,r){return r||(r=t,t=null),Ember.addListener(this,e,t,r,!0),this},trigger:function(e){var t,r,n=[];for(t=1,r=arguments.length;r>t;t++)n.push(arguments[t]);Ember.sendEvent(this,e,n)},fire:function(){this.trigger.apply(this,arguments)},off:function(e,t,r){return Ember.removeListener(this,e,t,r),this},has:function(e){return Ember.hasListeners(this,e)}})}(),function(){var e=t("rsvp");e.async=function(e,t){Ember.run.schedule("actions",t,e)};var r=Ember.get;Ember.DeferredMixin=Ember.Mixin.create({then:function(){var e=r(this,"promise");return e.then.apply(e,arguments)},resolve:function(e){r(this,"promise").resolve(e)},reject:function(e){r(this,"promise").reject(e)},promise:Ember.computed(function(){return new e.Promise})})}(),function(){Ember.Container=t("container"),Ember.Container.set=Ember.set}(),function(){function e(){var e,t,o=!1,s=function(){o||s.proto(),n(this,i,v),n(this,"_super",v);var u=a(this);if(u.proto=this,e){var h=e;e=null,this.reopen.apply(this,h)}if(t){var l=t;t=null;for(var f=this.concatenatedProperties,b=0,p=l.length;p>b;b++){var g=l[b];for(var y in g)if(g.hasOwnProperty(y)){var _=g[y],O=Ember.IS_BINDING;if(O.test(y)){var C=u.bindings;C?u.hasOwnProperty("bindings")||(C=u.bindings=r(u.bindings)):C=u.bindings={},C[y]=_}var w=u.descs[y];if(f&&d(f,y)>=0){var P=this[y];_=P?"function"==typeof P.concat?P.concat(_):Ember.makeArray(P).concat(_):Ember.makeArray(_)}w?w.set(this,y,_):"function"!=typeof this.setUnknownProperty||y in this?E?Ember.defineProperty(this,y,null,_):this[y]=_:this.setUnknownProperty(y,_)}}}m(this,u),delete u.proto,c(this),this.init.apply(this,arguments)};return s.toString=f.prototype.toString,s.willReopen=function(){o&&(s.PrototypeMixin=f.create(s.PrototypeMixin)),o=!1},s._initMixins=function(t){e=t},s._initProperties=function(e){t=e},s.proto=function(){var e=s.superclass;return e&&e.proto(),o||(o=!0,s.PrototypeMixin.applyPartial(s.prototype),u(s.prototype)),this.prototype},s}function t(e){return function(){return e}}var r=(Ember.set,Ember.get,Ember.create),n=Ember.platform.defineProperty,i=Ember.GUID_KEY,o=Ember.guidFor,s=Ember.generateGuid,a=Ember.meta,u=Ember.rewatch,c=Ember.finishChains,h=Ember.destroy,l=Ember.run.schedule,f=Ember.Mixin,b=f._apply,m=f.finishPartial,p=f.prototype.reopen,E=Ember.ENV.MANDATORY_SETTER,d=Ember.EnumerableUtils.indexOf,v={configurable:!0,writable:!0,enumerable:!1,value:void 0},g=e();g.toString=function(){return"Ember.CoreObject"},g.PrototypeMixin=f.create({reopen:function(){return b(this,arguments,!0),this},isInstance:!0,init:function(){},concatenatedProperties:null,isDestroyed:!1,isDestroying:!1,destroy:function(){return this._didCallDestroy?void 0:(this.isDestroying=!0,this._didCallDestroy=!0,l("destroy",this,this._scheduledDestroy),this)},willDestroy:Ember.K,_scheduledDestroy:function(){this.willDestroy&&this.willDestroy(),h(this),this.isDestroyed=!0,this.didDestroy&&this.didDestroy()},bind:function(e,t){return t instanceof Ember.Binding||(t=Ember.Binding.from(t)),t.to(e).connect(this),t},toString:function(){var e="function"==typeof this.toStringExtension,r=e?":"+this.toStringExtension():"",n="<"+this.constructor.toString()+":"+o(this)+r+">";return this.toString=t(n),n}}),g.PrototypeMixin.ownerConstructor=g,Ember.config.overridePrototypeMixin&&Ember.config.overridePrototypeMixin(g.PrototypeMixin),g.__super__=null;var y=f.create({ClassMixin:Ember.required(),PrototypeMixin:Ember.required(),isClass:!0,isMethod:!1,extend:function(){var t,n=e();return n.ClassMixin=f.create(this.ClassMixin),n.PrototypeMixin=f.create(this.PrototypeMixin),n.ClassMixin.ownerConstructor=n,n.PrototypeMixin.ownerConstructor=n,p.apply(n.PrototypeMixin,arguments),n.superclass=this,n.__super__=this.prototype,t=n.prototype=r(this.prototype),t.constructor=n,s(t,"ember"),a(t).proto=t,n.ClassMixin.apply(n),n},createWithMixins:function(){var e=this;return arguments.length>0&&this._initMixins(arguments),new e},create:function(){var e=this;return arguments.length>0&&this._initProperties(arguments),new e},reopen:function(){return this.willReopen(),p.apply(this.PrototypeMixin,arguments),this},reopenClass:function(){return p.apply(this.ClassMixin,arguments),b(this,arguments,!1),this},detect:function(e){if("function"!=typeof e)return!1;for(;e;){if(e===this)return!0;e=e.superclass}return!1},detectInstance:function(e){return e instanceof this},metaForProperty:function(e){var t=a(this.proto(),!1).descs[e];return t._meta||{}},eachComputedProperty:function(e,t){var r,n=this.proto(),i=a(n).descs,o={};for(var s in i)r=i[s],r instanceof Ember.ComputedProperty&&e.call(t||this,s,r._meta||o)}});y.ownerConstructor=g,Ember.config.overrideClassMixin&&Ember.config.overrideClassMixin(y),g.ClassMixin=y,y.apply(g),Ember.CoreObject=g}(),function(){Ember.Object=Ember.CoreObject.extend(Ember.Observable),Ember.Object.toString=function(){return"Ember.Object"}}(),function(){function e(t,r,i){var s=t.length;c[t.join(".")]=r;for(var a in r)if(h.call(r,a)){var u=r[a];if(t[s]=a,u&&u.toString===n)u.toString=o(t.join(".")),u[f]=t.join(".");else if(u&&u.isNamespace){if(i[l(u)])continue;i[l(u)]=!0,e(t,u,i)}}t.length=s}function t(){var e,t,r=Ember.Namespace,n=Ember.lookup;if(!r.PROCESSED)for(var i in n)if("parent"!==i&&"top"!==i&&"frameElement"!==i&&"webkitStorageInfo"!==i&&!("globalStorage"===i&&n.StorageList&&n.globalStorage instanceof n.StorageList||n.hasOwnProperty&&!n.hasOwnProperty(i))){try{e=Ember.lookup[i],t=e&&e.isNamespace}catch(o){continue}t&&(e[f]=i)}}function r(e){var t=e.superclass;return t?t[f]?t[f]:r(t):void 0}function n(){Ember.BOOTED||this[f]||i();var e;if(this[f])e=this[f];else{var t=r(this);e=t?"(subclass of "+t+")":"(unknown mixin)",this.toString=o(e)}return e}function i(){var r=!u.PROCESSED,n=Ember.anyUnprocessedMixins;if(r&&(t(),u.PROCESSED=!0),r||n){for(var i,o=u.NAMESPACES,s=0,a=o.length;a>s;s++)i=o[s],e([i.toString()],i,{});Ember.anyUnprocessedMixins=!1}}function o(e){return function(){return e}}var s=Ember.get,a=Ember.ArrayPolyfills.indexOf,u=Ember.Namespace=Ember.Object.extend({isNamespace:!0,init:function(){Ember.Namespace.NAMESPACES.push(this),Ember.Namespace.PROCESSED=!1},toString:function(){var e=s(this,"name");return e?e:(t(),this[Ember.GUID_KEY+"_name"])},nameClasses:function(){e([this.toString()],this,{})},destroy:function(){var e=Ember.Namespace.NAMESPACES;Ember.lookup[this.toString()]=void 0,e.splice(a.call(e,this),1),this._super()}});u.reopenClass({NAMESPACES:[Ember],NAMESPACES_BY_ID:{},PROCESSED:!1,processAll:i,byName:function(e){return Ember.BOOTED||i(),c[e]}});var c=u.NAMESPACES_BY_ID,h={}.hasOwnProperty,l=Ember.guidFor,f=Ember.NAME_KEY=Ember.GUID_KEY+"_name";Ember.Mixin.prototype.toString=n}(),function(){Ember.Application=Ember.Namespace.extend()}(),function(){var e="Index out of range",t=[],r=Ember.get;Ember.set,Ember.ArrayProxy=Ember.Object.extend(Ember.MutableArray,{content:null,arrangedContent:Ember.computed.alias("content"),objectAtContent:function(e){return r(this,"arrangedContent").objectAt(e)},replaceContent:function(e,t,n){r(this,"content").replace(e,t,n)},_contentWillChange:Ember.beforeObserver(function(){this._teardownContent()},"content"),_teardownContent:function(){var e=r(this,"content");e&&e.removeArrayObserver(this,{willChange:"contentArrayWillChange",didChange:"contentArrayDidChange"})},contentArrayWillChange:Ember.K,contentArrayDidChange:Ember.K,_contentDidChange:Ember.observer(function(){r(this,"content"),this._setupContent()},"content"),_setupContent:function(){var e=r(this,"content");e&&e.addArrayObserver(this,{willChange:"contentArrayWillChange",didChange:"contentArrayDidChange"})},_arrangedContentWillChange:Ember.beforeObserver(function(){var e=r(this,"arrangedContent"),t=e?r(e,"length"):0;this.arrangedContentArrayWillChange(this,0,t,void 0),this.arrangedContentWillChange(this),this._teardownArrangedContent(e)},"arrangedContent"),_arrangedContentDidChange:Ember.observer(function(){var e=r(this,"arrangedContent"),t=e?r(e,"length"):0;this._setupArrangedContent(),this.arrangedContentDidChange(this),this.arrangedContentArrayDidChange(this,0,void 0,t)},"arrangedContent"),_setupArrangedContent:function(){var e=r(this,"arrangedContent");e&&e.addArrayObserver(this,{willChange:"arrangedContentArrayWillChange",didChange:"arrangedContentArrayDidChange"})},_teardownArrangedContent:function(){var e=r(this,"arrangedContent");e&&e.removeArrayObserver(this,{willChange:"arrangedContentArrayWillChange",didChange:"arrangedContentArrayDidChange"})},arrangedContentWillChange:Ember.K,arrangedContentDidChange:Ember.K,objectAt:function(e){return r(this,"content")&&this.objectAtContent(e)},length:Ember.computed(function(){var e=r(this,"arrangedContent");return e?r(e,"length"):0}),_replace:function(e,t,n){var i=r(this,"content");return i&&this.replaceContent(e,t,n),this},replace:function(){if(r(this,"arrangedContent")!==r(this,"content"))throw new Ember.Error("Using replace on an arranged ArrayProxy is not allowed.");this._replace.apply(this,arguments)},_insertAt:function(t,n){if(t>r(this,"content.length"))throw new Error(e);return this._replace(t,0,[n]),this},insertAt:function(e,t){if(r(this,"arrangedContent")===r(this,"content"))return this._insertAt(e,t);throw new Ember.Error("Using insertAt on an arranged ArrayProxy is not allowed.")},removeAt:function(n,i){if("number"==typeof n){var o,s=r(this,"content"),a=r(this,"arrangedContent"),u=[];if(0>n||n>=r(this,"length"))throw new Error(e);for(void 0===i&&(i=1),o=n;n+i>o;o++)u.push(s.indexOf(a.objectAt(o)));for(u.sort(function(e,t){return t-e}),Ember.beginPropertyChanges(),o=0;u.length>o;o++)this._replace(u[o],1,t);Ember.endPropertyChanges()}return this},pushObject:function(e){return this._insertAt(r(this,"content.length"),e),e},pushObjects:function(e){return this._replace(r(this,"length"),0,e),this},setObjects:function(e){if(0===e.length)return this.clear();var t=r(this,"length");return this._replace(0,t,e),this},unshiftObject:function(e){return this._insertAt(0,e),e},unshiftObjects:function(e){return this._replace(0,0,e),this},slice:function(){var e=this.toArray();return e.slice.apply(e,arguments)},arrangedContentArrayWillChange:function(e,t,r,n){this.arrayContentWillChange(t,r,n)},arrangedContentArrayDidChange:function(e,t,r,n){this.arrayContentDidChange(t,r,n)},init:function(){this._super(),this._setupContent(),this._setupArrangedContent()},willDestroy:function(){this._teardownArrangedContent(),this._teardownContent()}})}(),function(){function e(e,t){var r=t.slice(8);r in this||u(this,r)}function t(e,t){var r=t.slice(8);r in this||c(this,r)}var r=Ember.get,n=Ember.set,i=(Ember.String.fmt,Ember.addBeforeObserver),o=Ember.addObserver,s=Ember.removeBeforeObserver,a=Ember.removeObserver,u=Ember.propertyWillChange,c=Ember.propertyDidChange;Ember.ObjectProxy=Ember.Object.extend({content:null,_contentDidChange:Ember.observer(function(){},"content"),isTruthy:Ember.computed.bool("content"),_debugContainerKey:null,willWatchProperty:function(r){var n="content."+r;i(this,n,null,e),o(this,n,null,t)},didUnwatchProperty:function(r){var n="content."+r;s(this,n,null,e),a(this,n,null,t)},unknownProperty:function(e){var t=r(this,"content");return t?r(t,e):void 0},setUnknownProperty:function(e,t){var i=r(this,"content");return n(i,e,t)}}),Ember.ObjectProxy.reopenClass({create:function(){var e,t,r,n,i,o;if(arguments.length){for(t=this.proto(),r=0,n=arguments.length;n>r;r++){i=arguments[r];for(o in i)!i.hasOwnProperty(o)||o in t||(e||(e={}),e[o]=null)}e&&this._initMixins([e])}return this._super.apply(this,arguments)}})}(),function(){function e(e,t,r,i,o){var s,a=r._objects;for(a||(a=r._objects={});--o>=i;){var u=e.objectAt(o);u&&(Ember.addBeforeObserver(u,t,r,"contentKeyWillChange"),Ember.addObserver(u,t,r,"contentKeyDidChange"),s=n(u),a[s]||(a[s]=[]),a[s].push(o))}}function t(e,t,r,i,o){var s=r._objects;s||(s=r._objects={});for(var a,u;--o>=i;){var c=e.objectAt(o);c&&(Ember.removeBeforeObserver(c,t,r,"contentKeyWillChange"),Ember.removeObserver(c,t,r,"contentKeyDidChange"),u=n(c),a=s[u],a[a.indexOf(o)]=null)}}var r=(Ember.set,Ember.get),n=Ember.guidFor,i=Ember.EnumerableUtils.forEach,o=Ember.Object.extend(Ember.Array,{init:function(e,t,r){this._super(),this._keyName=t,this._owner=r,this._content=e},objectAt:function(e){var t=this._content.objectAt(e);return t&&r(t,this._keyName)},length:Ember.computed(function(){var e=this._content;return e?r(e,"length"):0})}),s=/^.+:(before|change)$/;Ember.EachProxy=Ember.Object.extend({init:function(e){this._super(),this._content=e,e.addArrayObserver(this),i(Ember.watchedEvents(this),function(e){this.didAddListener(e)},this)},unknownProperty:function(e){var t;return t=new o(this._content,e,this),Ember.defineProperty(this,e,null,t),this.beginObservingContentKey(e),t},arrayWillChange:function(e,r,n){var i,o,s=this._keys;o=n>0?r+n:-1,Ember.beginPropertyChanges(this);for(i in s)s.hasOwnProperty(i)&&(o>0&&t(e,i,this,r,o),Ember.propertyWillChange(this,i));Ember.propertyWillChange(this._content,"@each"),Ember.endPropertyChanges(this)},arrayDidChange:function(t,r,n,i){var o,s,a=this._keys;s=i>0?r+i:-1,Ember.beginPropertyChanges(this);for(o in a)a.hasOwnProperty(o)&&(s>0&&e(t,o,this,r,s),Ember.propertyDidChange(this,o));Ember.propertyDidChange(this._content,"@each"),Ember.endPropertyChanges(this)},didAddListener:function(e){s.test(e)&&this.beginObservingContentKey(e.slice(0,-7))},didRemoveListener:function(e){s.test(e)&&this.stopObservingContentKey(e.slice(0,-7))},beginObservingContentKey:function(t){var n=this._keys;if(n||(n=this._keys={}),n[t])n[t]++;else{n[t]=1;var i=this._content,o=r(i,"length");e(i,t,this,0,o)}},stopObservingContentKey:function(e){var n=this._keys;if(n&&n[e]>0&&0>=--n[e]){var i=this._content,o=r(i,"length");t(i,e,this,0,o)}},contentKeyWillChange:function(e,t){Ember.propertyWillChange(this,t)},contentKeyDidChange:function(e,t){Ember.propertyDidChange(this,t)}})}(),function(){var e=Ember.get;Ember.set;var t=Ember.Mixin.create(Ember.MutableArray,Ember.Observable,Ember.Copyable,{get:function(e){return"length"===e?this.length:"number"==typeof e?this[e]:this._super(e)},objectAt:function(e){return this[e]},replace:function(t,r,n){if(this.isFrozen)throw Ember.FROZEN_ERROR;var i=n?e(n,"length"):0;if(this.arrayContentWillChange(t,r,i),n&&0!==n.length){var o=[t,r].concat(n);this.splice.apply(this,o)}else this.splice(t,r);return this.arrayContentDidChange(t,r,i),this},unknownProperty:function(e,t){var r;return void 0!==t&&void 0===r&&(r=this[e]=t),r},indexOf:function(e,t){var r,n=this.length;for(t=void 0===t?0:0>t?Math.ceil(t):Math.floor(t),0>t&&(t+=n),r=t;n>r;r++)if(this[r]===e)return r;return-1},lastIndexOf:function(e,t){var r,n=this.length;for(t=void 0===t?n-1:0>t?Math.ceil(t):Math.floor(t),0>t&&(t+=n),r=t;r>=0;r--)if(this[r]===e)return r;return-1},copy:function(e){return e?this.map(function(e){return Ember.copy(e,!0)}):this.slice()}}),r=["length"];Ember.EnumerableUtils.forEach(t.keys(),function(e){Array.prototype[e]&&r.push(e)}),r.length>0&&(t=t.without.apply(t,r)),Ember.NativeArray=t,Ember.A=function(e){return void 0===e&&(e=[]),Ember.Array.detect(e)?e:Ember.NativeArray.apply(e)},Ember.NativeArray.activate=function(){t.apply(Array.prototype),Ember.A=function(e){return e||[]}},(Ember.EXTEND_PROTOTYPES===!0||Ember.EXTEND_PROTOTYPES.Array)&&Ember.NativeArray.activate()}(),function(){var e=Ember.get,t=Ember.set,r=Ember.guidFor,n=Ember.isNone,i=Ember.String.fmt;Ember.Set=Ember.CoreObject.extend(Ember.MutableEnumerable,Ember.Copyable,Ember.Freezable,{length:0,clear:function(){if(this.isFrozen)throw new Error(Ember.FROZEN_ERROR);var n=e(this,"length");if(0===n)return this;var i;this.enumerableContentWillChange(n,0),Ember.propertyWillChange(this,"firstObject"),Ember.propertyWillChange(this,"lastObject");for(var o=0;n>o;o++)i=r(this[o]),delete this[i],delete this[o];return t(this,"length",0),Ember.propertyDidChange(this,"firstObject"),Ember.propertyDidChange(this,"lastObject"),this.enumerableContentDidChange(n,0),this},isEqual:function(t){if(!Ember.Enumerable.detect(t))return!1;var r=e(this,"length");if(e(t,"length")!==r)return!1;for(;--r>=0;)if(!t.contains(this[r]))return!1;return!0},add:Ember.aliasMethod("addObject"),remove:Ember.aliasMethod("removeObject"),pop:function(){if(e(this,"isFrozen"))throw new Error(Ember.FROZEN_ERROR);var t=this.length>0?this[this.length-1]:null;return this.remove(t),t},push:Ember.aliasMethod("addObject"),shift:Ember.aliasMethod("pop"),unshift:Ember.aliasMethod("push"),addEach:Ember.aliasMethod("addObjects"),removeEach:Ember.aliasMethod("removeObjects"),init:function(e){this._super(),e&&this.addObjects(e)},nextObject:function(e){return this[e]},firstObject:Ember.computed(function(){return this.length>0?this[0]:void 0}),lastObject:Ember.computed(function(){return this.length>0?this[this.length-1]:void 0}),addObject:function(i){if(e(this,"isFrozen"))throw new Error(Ember.FROZEN_ERROR);if(n(i))return this;var o,s=r(i),a=this[s],u=e(this,"length");return a>=0&&u>a&&this[a]===i?this:(o=[i],this.enumerableContentWillChange(null,o),Ember.propertyWillChange(this,"lastObject"),u=e(this,"length"),this[s]=u,this[u]=i,t(this,"length",u+1),Ember.propertyDidChange(this,"lastObject"),this.enumerableContentDidChange(null,o),this)},removeObject:function(i){if(e(this,"isFrozen"))throw new Error(Ember.FROZEN_ERROR);if(n(i))return this;var o,s,a=r(i),u=this[a],c=e(this,"length"),h=0===u,l=u===c-1;return u>=0&&c>u&&this[u]===i&&(s=[i],this.enumerableContentWillChange(s,null),h&&Ember.propertyWillChange(this,"firstObject"),l&&Ember.propertyWillChange(this,"lastObject"),c-1>u&&(o=this[c-1],this[u]=o,this[r(o)]=u),delete this[a],delete this[c-1],t(this,"length",c-1),h&&Ember.propertyDidChange(this,"firstObject"),l&&Ember.propertyDidChange(this,"lastObject"),this.enumerableContentDidChange(s,null)),this},contains:function(e){return this[r(e)]>=0},copy:function(){var n=this.constructor,i=new n,o=e(this,"length");for(t(i,"length",o);--o>=0;)i[o]=this[o],i[r(this[o])]=o;return i},toString:function(){var e,t=this.length,r=[];for(e=0;t>e;e++)r[e]=this[e];return i("Ember.Set<%@>",[r.join(",")])}})}(),function(){var e=Ember.DeferredMixin,t=Ember.get,r=Ember.Object.extend(e);r.reopenClass({promise:function(e,n){var i=r.create();return e.call(n,i),t(i,"promise")}}),Ember.Deferred=r}(),function(){var e=Ember.ENV.EMBER_LOAD_HOOKS||{},t={};Ember.onLoad=function(r,n){var i;e[r]=e[r]||Ember.A(),e[r].pushObject(n),(i=t[r])&&n(i)},Ember.runLoadHooks=function(r,n){var i;t[r]=n,(i=e[r])&&e[r].forEach(function(e){e(n)})}}(),function(){var e=Ember.get;Ember.ControllerMixin=Ember.Mixin.create({isController:!0,target:null,container:null,store:null,model:Ember.computed.alias("content"),send:function(t){var r,n=[].slice.call(arguments,1);this[t]?this[t].apply(this,n):(r=e(this,"target"))&&r.send.apply(r,arguments)}}),Ember.Controller=Ember.Object.extend(Ember.ControllerMixin)}(),function(){var e=Ember.get,t=(Ember.set,Ember.EnumerableUtils.forEach);Ember.SortableMixin=Ember.Mixin.create(Ember.MutableEnumerable,{sortProperties:null,sortAscending:!0,orderBy:function(r,n){var i=0,o=e(this,"sortProperties"),s=e(this,"sortAscending");return t(o,function(t){0===i&&(i=Ember.compare(e(r,t),e(n,t)),0===i||s||(i=-1*i))}),i},destroy:function(){var r=e(this,"content"),n=e(this,"sortProperties");return r&&n&&t(r,function(e){t(n,function(t){Ember.removeObserver(e,t,this,"contentItemSortPropertyDidChange")},this)},this),this._super()},isSorted:Ember.computed.bool("sortProperties"),arrangedContent:Ember.computed("content","sortProperties.@each",function(){var r=e(this,"content"),n=e(this,"isSorted"),i=e(this,"sortProperties"),o=this;return r&&n?(r=r.slice(),r.sort(function(e,t){return o.orderBy(e,t)}),t(r,function(e){t(i,function(t){Ember.addObserver(e,t,this,"contentItemSortPropertyDidChange")},this)},this),Ember.A(r)):r}),_contentWillChange:Ember.beforeObserver(function(){var r=e(this,"content"),n=e(this,"sortProperties");r&&n&&t(r,function(e){t(n,function(t){Ember.removeObserver(e,t,this,"contentItemSortPropertyDidChange")},this)},this),this._super()},"content"),sortAscendingWillChange:Ember.beforeObserver(function(){this._lastSortAscending=e(this,"sortAscending")},"sortAscending"),sortAscendingDidChange:Ember.observer(function(){if(e(this,"sortAscending")!==this._lastSortAscending){var t=e(this,"arrangedContent");t.reverseObjects()}},"sortAscending"),contentArrayWillChange:function(r,n,i,o){var s=e(this,"isSorted");if(s){var a=e(this,"arrangedContent"),u=r.slice(n,n+i),c=e(this,"sortProperties");t(u,function(e){a.removeObject(e),t(c,function(t){Ember.removeObserver(e,t,this,"contentItemSortPropertyDidChange")},this)},this)}return this._super(r,n,i,o)},contentArrayDidChange:function(r,n,i,o){var s=e(this,"isSorted"),a=e(this,"sortProperties");if(s){var u=r.slice(n,n+o);t(u,function(e){this.insertItemSorted(e),t(a,function(t){Ember.addObserver(e,t,this,"contentItemSortPropertyDidChange")},this)},this)}return this._super(r,n,i,o)},insertItemSorted:function(t){var r=e(this,"arrangedContent"),n=e(r,"length"),i=this._binarySearch(t,0,n);r.insertAt(i,t)},contentItemSortPropertyDidChange:function(t){var r=e(this,"arrangedContent"),n=r.indexOf(t),i=r.objectAt(n-1),o=r.objectAt(n+1),s=i&&this.orderBy(t,i),a=o&&this.orderBy(t,o);(0>s||a>0)&&(r.removeObject(t),this.insertItemSorted(t))},_binarySearch:function(t,r,n){var i,o,s,a;return r===n?r:(a=e(this,"arrangedContent"),i=r+Math.floor((n-r)/2),o=a.objectAt(i),s=this.orderBy(o,t),0>s?this._binarySearch(t,i+1,n):s>0?this._binarySearch(t,r,i):i)}})}(),function(){var e=Ember.get,t=(Ember.set,Ember.EnumerableUtils.forEach),r=Ember.EnumerableUtils.replace;Ember.ArrayController=Ember.ArrayProxy.extend(Ember.ControllerMixin,Ember.SortableMixin,{itemController:null,lookupItemController:function(){return e(this,"itemController")},objectAtContent:function(t){var r=e(this,"length"),n=e(this,"arrangedContent"),i=n&&n.objectAt(t);if(t>=0&&r>t){var o=this.lookupItemController(i);if(o)return this.controllerAt(t,i,o)}return i},arrangedContentDidChange:function(){this._super(),this._resetSubControllers()},arrayContentDidChange:function(n,i,o){var s=e(this,"_subControllers"),a=s.slice(n,n+i);t(a,function(e){e&&e.destroy()}),r(s,n,i,new Array(o)),this._super(n,i,o)},init:function(){this.get("content")||Ember.defineProperty(this,"content",void 0,Ember.A()),this._super(),this.set("_subControllers",Ember.A())},controllerAt:function(t,r,n){var i=e(this,"container"),o=e(this,"_subControllers"),s=o[t];if(s||(s=i.lookup("controller:"+n,{singleton:!1}),o[t]=s),!s)throw new Error('Could not resolve itemController: "'+n+'"');return s.set("target",this),s.set("content",r),s},_subControllers:null,_resetSubControllers:function(){var r=e(this,"_subControllers");r&&t(r,function(e){e&&e.destroy()}),this.set("_subControllers",Ember.A())}})}(),function(){Ember.ObjectController=Ember.ObjectProxy.extend(Ember.ControllerMixin)}()})(),"undefined"==typeof location||"localhost"!==location.hostname&&"127.0.0.1"!==location.hostname||console.warn("You are running a production build of Ember on localhost and won't receive detailed error messages. If you want full error messages please use the non-minified build provided on the Ember website.");
@@ -310,7 +310,7 @@ Ember.none = Ember.deprecateFunc("Ember.none is deprecated. Please use Ember.isN
310
310
  @return {Boolean}
311
311
  */
312
312
  Ember.isEmpty = function(obj) {
313
- return Ember.isNone(obj) || (obj.length === 0 && typeof obj !== 'function') || (typeof obj === 'object' && Ember.get(obj, 'length') === 0);
313
+ return obj === null || obj === undefined || (obj.length === 0 && typeof obj !== 'function') || (typeof obj === 'object' && Ember.get(obj, 'length') === 0);
314
314
  };
315
315
  Ember.empty = Ember.deprecateFunc("Ember.empty is deprecated. Please use Ember.isEmpty instead.", Ember.isEmpty) ;
316
316
 
@@ -343,13 +343,6 @@ var platform = Ember.platform = {};
343
343
  */
344
344
  Ember.create = Object.create;
345
345
 
346
- // IE8 has Object.create but it couldn't treat property descripters.
347
- if (Ember.create) {
348
- if (Ember.create({a: 1}, {a: {value: 2}}).a !== 2) {
349
- Ember.create = null;
350
- }
351
- }
352
-
353
346
  // STUB_OBJECT_CREATE allows us to override other libraries that stub
354
347
  // Object.create different than we would prefer
355
348
  if (!Ember.create || Ember.ENV.STUB_OBJECT_CREATE) {
@@ -670,7 +663,7 @@ Ember.guidFor = function guidFor(obj) {
670
663
  if (obj === undefined) return "(undefined)";
671
664
  if (obj === null) return "(null)";
672
665
 
673
- var ret;
666
+ var cache, ret;
674
667
  var type = typeof obj;
675
668
 
676
669
  // Don't allow prototype changes to String etc. to change the guidFor
@@ -1071,7 +1064,7 @@ if (needsFinallyFix) {
1071
1064
  */
1072
1065
  if (needsFinallyFix) {
1073
1066
  Ember.tryCatchFinally = function(tryable, catchable, finalizer, binding) {
1074
- var result, finalResult, finalError;
1067
+ var result, finalResult, finalError, finalReturn;
1075
1068
 
1076
1069
  binding = binding || this;
1077
1070
 
@@ -1842,11 +1835,12 @@ get = function get(obj, keyName) {
1842
1835
  obj = null;
1843
1836
  }
1844
1837
 
1838
+ if (!obj || keyName.indexOf('.') !== -1) {
1845
1839
 
1846
- if (obj === null || keyName.indexOf('.') !== -1) {
1847
1840
  return getPath(obj, keyName);
1848
1841
  }
1849
1842
 
1843
+
1850
1844
  var meta = obj[META_KEY], desc = meta && meta.descs[keyName], ret;
1851
1845
  if (desc) {
1852
1846
  return desc.get(obj, keyName);
@@ -1918,7 +1912,7 @@ var getPath = Ember._getPath = function(root, path) {
1918
1912
 
1919
1913
  parts = path.split(".");
1920
1914
  len = parts.length;
1921
- for (idx=0; root !== undefined && root !== null && idx<len; idx++) {
1915
+ for (idx=0; root && idx<len; idx++) {
1922
1916
  root = get(root, parts[idx], true);
1923
1917
  if (root && root.isDestroyed) { return undefined; }
1924
1918
  }
@@ -1964,9 +1958,7 @@ Ember.getPath = Ember.deprecateFunc('getPath is deprecated since get now support
1964
1958
 
1965
1959
  var o_create = Ember.create,
1966
1960
  metaFor = Ember.meta,
1967
- META_KEY = Ember.META_KEY,
1968
- /* listener flags */
1969
- ONCE = 1, SUSPENDED = 2;
1961
+ META_KEY = Ember.META_KEY;
1970
1962
 
1971
1963
  /*
1972
1964
  The event system uses a series of nested hashes to store listeners on an
@@ -1979,7 +1971,7 @@ var o_create = Ember.create,
1979
1971
  {
1980
1972
  listeners: { // variable name: `listenerSet`
1981
1973
  "foo:changed": [ // variable name: `actions`
1982
- [target, method, flags]
1974
+ [target, method, onceFlag, suspendedFlag]
1983
1975
  ]
1984
1976
  }
1985
1977
  }
@@ -2025,11 +2017,12 @@ function actionsUnion(obj, eventName, otherActions) {
2025
2017
  for (var i = actions.length - 1; i >= 0; i--) {
2026
2018
  var target = actions[i][0],
2027
2019
  method = actions[i][1],
2028
- flags = actions[i][2],
2020
+ once = actions[i][2],
2021
+ suspended = actions[i][3],
2029
2022
  actionIndex = indexOf(otherActions, target, method);
2030
2023
 
2031
2024
  if (actionIndex === -1) {
2032
- otherActions.push([target, method, flags]);
2025
+ otherActions.push([target, method, once, suspended]);
2033
2026
  }
2034
2027
  }
2035
2028
  }
@@ -2043,13 +2036,14 @@ function actionsDiff(obj, eventName, otherActions) {
2043
2036
  for (var i = actions.length - 1; i >= 0; i--) {
2044
2037
  var target = actions[i][0],
2045
2038
  method = actions[i][1],
2046
- flags = actions[i][2],
2039
+ once = actions[i][2],
2040
+ suspended = actions[i][3],
2047
2041
  actionIndex = indexOf(otherActions, target, method);
2048
2042
 
2049
2043
  if (actionIndex !== -1) { continue; }
2050
2044
 
2051
- otherActions.push([target, method, flags]);
2052
- diffActions.push([target, method, flags]);
2045
+ otherActions.push([target, method, once, suspended]);
2046
+ diffActions.push([target, method, once, suspended]);
2053
2047
  }
2054
2048
 
2055
2049
  return diffActions;
@@ -2075,14 +2069,11 @@ function addListener(obj, eventName, target, method, once) {
2075
2069
  }
2076
2070
 
2077
2071
  var actions = actionsFor(obj, eventName),
2078
- actionIndex = indexOf(actions, target, method),
2079
- flags = 0;
2080
-
2081
- if (once) flags |= ONCE;
2072
+ actionIndex = indexOf(actions, target, method);
2082
2073
 
2083
2074
  if (actionIndex !== -1) { return; }
2084
2075
 
2085
- actions.push([target, method, flags]);
2076
+ actions.push([target, method, once, undefined]);
2086
2077
 
2087
2078
  if ('function' === typeof obj.didAddListener) {
2088
2079
  obj.didAddListener(eventName, target, method);
@@ -2109,7 +2100,7 @@ function removeListener(obj, eventName, target, method) {
2109
2100
  target = null;
2110
2101
  }
2111
2102
 
2112
- function _removeListener(target, method) {
2103
+ function _removeListener(target, method, once) {
2113
2104
  var actions = actionsFor(obj, eventName),
2114
2105
  actionIndex = indexOf(actions, target, method);
2115
2106
 
@@ -2166,12 +2157,12 @@ function suspendListener(obj, eventName, target, method, callback) {
2166
2157
 
2167
2158
  if (actionIndex !== -1) {
2168
2159
  action = actions[actionIndex].slice(); // copy it, otherwise we're modifying a shared object
2169
- action[2] |= SUSPENDED; // mark the action as suspended
2160
+ action[3] = true; // mark the action as suspended
2170
2161
  actions[actionIndex] = action; // replace the shared object with our copy
2171
2162
  }
2172
2163
 
2173
2164
  function tryable() { return callback.call(target); }
2174
- function finalizer() { if (action) { action[2] &= ~SUSPENDED; } }
2165
+ function finalizer() { if (action) { action[3] = undefined; } }
2175
2166
 
2176
2167
  return Ember.tryFinally(tryable, finalizer);
2177
2168
  }
@@ -2210,7 +2201,7 @@ function suspendListeners(obj, eventNames, target, method, callback) {
2210
2201
 
2211
2202
  if (actionIndex !== -1) {
2212
2203
  action = actions[actionIndex].slice();
2213
- action[2] |= SUSPENDED;
2204
+ action[3] = true;
2214
2205
  actions[actionIndex] = action;
2215
2206
  suspendedActions.push(action);
2216
2207
  }
@@ -2220,7 +2211,7 @@ function suspendListeners(obj, eventNames, target, method, callback) {
2220
2211
 
2221
2212
  function finalizer() {
2222
2213
  for (i = 0, l = suspendedActions.length; i < l; i++) {
2223
- suspendedActions[i][2] &= ~SUSPENDED;
2214
+ suspendedActions[i][3] = undefined;
2224
2215
  }
2225
2216
  }
2226
2217
 
@@ -2270,11 +2261,13 @@ function sendEvent(obj, eventName, params, actions) {
2270
2261
  if (!actions) { return; }
2271
2262
 
2272
2263
  for (var i = actions.length - 1; i >= 0; i--) { // looping in reverse for once listeners
2273
- var action = actions[i];
2274
- if (!action) { continue; }
2275
- var target = action[0], method = action[1], flags = action[2];
2276
- if (flags & SUSPENDED) { continue; }
2277
- if (flags & ONCE) { removeListener(obj, eventName, target, method); }
2264
+ if (!actions[i] || actions[i][3] === true) { continue; }
2265
+
2266
+ var target = actions[i][0],
2267
+ method = actions[i][1],
2268
+ once = actions[i][2];
2269
+
2270
+ if (once) { removeListener(obj, eventName, target, method); }
2278
2271
  if (!target) { target = obj; }
2279
2272
  if ('string' === typeof method) { method = target[method]; }
2280
2273
  if (params) {
@@ -2354,7 +2347,7 @@ var guidFor = Ember.guidFor,
2354
2347
  keyName: keyName,
2355
2348
  eventName: eventName,
2356
2349
  listeners: [
2357
- [target, method, flags]
2350
+ [target, method, onceFlag, suspendedFlag]
2358
2351
  ]
2359
2352
  },
2360
2353
  ...
@@ -2583,11 +2576,11 @@ var endPropertyChanges = Ember.endPropertyChanges = function() {
2583
2576
  });
2584
2577
  ```
2585
2578
 
2586
- @method changeProperties
2579
+ @method changePropertiess
2587
2580
  @param {Function} callback
2588
2581
  @param [binding]
2589
2582
  */
2590
- Ember.changeProperties = function(cb, binding){
2583
+ var changeProperties = Ember.changeProperties = function(cb, binding){
2591
2584
  beginPropertyChanges();
2592
2585
  tryFinally(cb, endPropertyChanges, binding);
2593
2586
  };
@@ -2791,7 +2784,7 @@ var MANDATORY_SETTER = Ember.ENV.MANDATORY_SETTER;
2791
2784
  @private
2792
2785
  @constructor
2793
2786
  */
2794
- Ember.Descriptor = function() {};
2787
+ var Descriptor = Ember.Descriptor = function() {};
2795
2788
 
2796
2789
  // ..........................................................
2797
2790
  // DEFINING PROPERTIES API
@@ -3352,7 +3345,7 @@ Ember.watchPath = function(obj, keyPath) {
3352
3345
  };
3353
3346
 
3354
3347
  Ember.unwatchPath = function(obj, keyPath) {
3355
- var m = metaFor(obj), watching = m.watching;
3348
+ var m = metaFor(obj), watching = m.watching, desc;
3356
3349
 
3357
3350
  if (watching[keyPath] === 1) {
3358
3351
  watching[keyPath] = 0;
@@ -3897,6 +3890,7 @@ ComputedPropertyPrototype.teardown = function(obj, keyName) {
3897
3890
  The function should accept two parameters, key and value. If value is not
3898
3891
  undefined you should set the value first. In either case return the
3899
3892
  current value of the property.
3893
+
3900
3894
  @method computed
3901
3895
  @for Ember
3902
3896
  @param {Function} func The computed property function.
@@ -4138,7 +4132,7 @@ registerComputedWithProperties('or', function(properties) {
4138
4132
  @for Ember
4139
4133
  @param {String} dependentKey, [dependentKey...]
4140
4134
  @return {Ember.ComputedProperty} computed property which returns
4141
- the first truthy value of given list of properties.
4135
+ the first trouthy value of given list of properties.
4142
4136
  */
4143
4137
  registerComputedWithProperties('any', function(properties) {
4144
4138
  for (var key in properties) {
@@ -4188,48 +4182,6 @@ Ember.computed.alias = function(dependentKey) {
4188
4182
  });
4189
4183
  };
4190
4184
 
4191
- /**
4192
- @method computed.oneWay
4193
- @for Ember
4194
- @param {String} dependentKey
4195
- @return {Ember.ComputedProperty} computed property which creates an
4196
- one way computed property to the original value for property.
4197
-
4198
- Where `computed.alias` aliases `get` and `set`, and allows for bidirectional
4199
- data flow, `computed.oneWay` only provides an aliased `get`. The `set` will
4200
- not mutate the upstream property, rather causes the current property to
4201
- become the value set. This causes the downstream property to permentantly
4202
- diverge from the upstream property.
4203
-
4204
- ```javascript
4205
- User = Ember.Object.extend({
4206
- firstName: null,
4207
- lastName: null,
4208
- nickName: Ember.computed.oneWay('firstName')
4209
- });
4210
-
4211
- user = User.create({
4212
- firstName: 'Teddy',
4213
- lastName: 'Zeenny'
4214
- });
4215
-
4216
- user.get('nickName');
4217
- # 'Teddy'
4218
-
4219
- user.set('nickName', 'TeddyBear');
4220
- # 'TeddyBear'
4221
-
4222
- user.get('firstName');
4223
- # 'Teddy'
4224
- ```
4225
- */
4226
- Ember.computed.oneWay = function(dependentKey) {
4227
- return Ember.computed(dependentKey, function() {
4228
- return get(this, dependentKey);
4229
- });
4230
- };
4231
-
4232
-
4233
4185
  /**
4234
4186
  @method computed.defaultTo
4235
4187
  @for Ember
@@ -4259,6 +4211,8 @@ Ember.computed.defaultTo = function(defaultPath) {
4259
4211
  var AFTER_OBSERVERS = ':change';
4260
4212
  var BEFORE_OBSERVERS = ':before';
4261
4213
 
4214
+ var guidFor = Ember.guidFor;
4215
+
4262
4216
  function changeEvent(keyName) {
4263
4217
  return keyName+AFTER_OBSERVERS;
4264
4218
  }
@@ -4750,44 +4704,27 @@ Ember.run.sync = function() {
4750
4704
 
4751
4705
  var timers = {}; // active timers...
4752
4706
 
4753
- function sortByExpires(timerA, timerB) {
4754
- var a = timerA.expires,
4755
- b = timerB.expires;
4756
-
4757
- if (a > b) { return 1; }
4758
- if (a < b) { return -1; }
4759
- return 0;
4760
- }
4761
-
4762
4707
  var scheduledLater, scheduledLaterExpires;
4763
4708
  function invokeLaterTimers() {
4764
4709
  scheduledLater = null;
4765
4710
  run(function() {
4766
4711
  var now = (+ new Date()), earliest = -1;
4767
- var timersToBeInvoked = [];
4768
4712
  for (var key in timers) {
4769
4713
  if (!timers.hasOwnProperty(key)) { continue; }
4770
4714
  var timer = timers[key];
4771
4715
  if (timer && timer.expires) {
4772
4716
  if (now >= timer.expires) {
4773
4717
  delete timers[key];
4774
- timersToBeInvoked.push(timer);
4718
+ invoke(timer.target, timer.method, timer.args, 2);
4775
4719
  } else {
4776
4720
  if (earliest < 0 || (timer.expires < earliest)) { earliest = timer.expires; }
4777
4721
  }
4778
4722
  }
4779
4723
  }
4780
4724
 
4781
- forEach.call(timersToBeInvoked.sort(sortByExpires), function(timer) {
4782
- invoke(timer.target, timer.method, timer.args, 2);
4783
- });
4784
-
4785
4725
  // schedule next timeout to fire when the earliest timer expires
4786
4726
  if (earliest > 0) {
4787
- // To allow overwrite `setTimeout` as stub from test code.
4788
- // The assignment to `window.setTimeout` doesn't equal to `setTimeout` in older IE.
4789
- // So `window` is required.
4790
- scheduledLater = window.setTimeout(invokeLaterTimers, earliest - now);
4727
+ scheduledLater = setTimeout(invokeLaterTimers, earliest - now);
4791
4728
  scheduledLaterExpires = earliest;
4792
4729
  }
4793
4730
  });
@@ -5417,7 +5354,7 @@ mixinProperties(Binding, {
5417
5354
 
5418
5355
  You should consider using one way bindings anytime you have an object that
5419
5356
  may be created frequently and you do not intend to change a property; only
5420
- to monitor it for changes (such as in the example above).
5357
+ to monitor it for changes. (such as in the example above).
5421
5358
 
5422
5359
  ## Adding Bindings Manually
5423
5360
 
@@ -5718,6 +5655,14 @@ function mergeMixins(mixins, m, descs, values, base, keys) {
5718
5655
  }
5719
5656
  }
5720
5657
 
5658
+ function writableReq(obj) {
5659
+ var m = Ember.meta(obj), req = m.required;
5660
+ if (!req || !m.hasOwnProperty('required')) {
5661
+ req = m.required = req ? o_create(req) : {};
5662
+ }
5663
+ return req;
5664
+ }
5665
+
5721
5666
  var IS_BINDING = Ember.IS_BINDING = /^.+Binding$/;
5722
5667
 
5723
5668
  function detectBinding(obj, key, value, m) {
@@ -6203,57 +6148,14 @@ Ember Metal
6203
6148
  })();
6204
6149
 
6205
6150
  (function() {
6206
- define("rsvp/all",
6207
- ["rsvp/defer","exports"],
6208
- function(__dependency1__, __exports__) {
6209
- "use strict";
6210
- var defer = __dependency1__.defer;
6211
-
6212
- function all(promises) {
6213
- var results = [], deferred = defer(), remaining = promises.length;
6214
-
6215
- if (remaining === 0) {
6216
- deferred.resolve([]);
6217
- }
6218
-
6219
- var resolver = function(index) {
6220
- return function(value) {
6221
- resolveAll(index, value);
6222
- };
6223
- };
6224
-
6225
- var resolveAll = function(index, value) {
6226
- results[index] = value;
6227
- if (--remaining === 0) {
6228
- deferred.resolve(results);
6229
- }
6230
- };
6231
-
6232
- var rejectAll = function(error) {
6233
- deferred.reject(error);
6234
- };
6235
-
6236
- for (var i = 0; i < promises.length; i++) {
6237
- if (promises[i] && typeof promises[i].then === 'function') {
6238
- promises[i].then(resolver(i), rejectAll);
6239
- } else {
6240
- resolveAll(i, promises[i]);
6241
- }
6242
- }
6243
- return deferred.promise;
6244
- }
6245
-
6246
- __exports__.all = all;
6247
- });
6248
-
6249
- define("rsvp/async",
6250
- ["exports"],
6251
- function(__exports__) {
6151
+ define("rsvp",
6152
+ [],
6153
+ function() {
6252
6154
  "use strict";
6253
6155
  var browserGlobal = (typeof window !== 'undefined') ? window : {};
6254
6156
 
6255
- var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
6256
- var async;
6157
+ var MutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
6158
+ var RSVP, async;
6257
6159
 
6258
6160
  if (typeof process !== 'undefined' &&
6259
6161
  {}.toString.call(process) === '[object process]') {
@@ -6262,10 +6164,10 @@ define("rsvp/async",
6262
6164
  callback.call(binding);
6263
6165
  });
6264
6166
  };
6265
- } else if (BrowserMutationObserver) {
6167
+ } else if (MutationObserver) {
6266
6168
  var queue = [];
6267
6169
 
6268
- var observer = new BrowserMutationObserver(function() {
6170
+ var observer = new MutationObserver(function() {
6269
6171
  var toProcess = queue.slice();
6270
6172
  queue = [];
6271
6173
 
@@ -6296,47 +6198,6 @@ define("rsvp/async",
6296
6198
  };
6297
6199
  }
6298
6200
 
6299
-
6300
- __exports__.async = async;
6301
- });
6302
-
6303
- define("rsvp/config",
6304
- ["rsvp/async","exports"],
6305
- function(__dependency1__, __exports__) {
6306
- "use strict";
6307
- var async = __dependency1__.async;
6308
-
6309
- var config = {};
6310
- config.async = async;
6311
-
6312
- __exports__.config = config;
6313
- });
6314
-
6315
- define("rsvp/defer",
6316
- ["rsvp/promise","exports"],
6317
- function(__dependency1__, __exports__) {
6318
- "use strict";
6319
- var Promise = __dependency1__.Promise;
6320
-
6321
- function defer() {
6322
- var deferred = {};
6323
-
6324
- var promise = new Promise(function(resolve, reject) {
6325
- deferred.resolve = resolve;
6326
- deferred.reject = reject;
6327
- });
6328
-
6329
- deferred.promise = promise;
6330
- return deferred;
6331
- }
6332
-
6333
- __exports__.defer = defer;
6334
- });
6335
-
6336
- define("rsvp/events",
6337
- ["exports"],
6338
- function(__exports__) {
6339
- "use strict";
6340
6201
  var Event = function(type, options) {
6341
6202
  this.type = type;
6342
6203
 
@@ -6431,148 +6292,7 @@ define("rsvp/events",
6431
6292
  }
6432
6293
  };
6433
6294
 
6434
-
6435
- __exports__.EventTarget = EventTarget;
6436
- });
6437
-
6438
- define("rsvp/hash",
6439
- ["rsvp/defer","exports"],
6440
- function(__dependency1__, __exports__) {
6441
- "use strict";
6442
- var defer = __dependency1__.defer;
6443
-
6444
- function size(object) {
6445
- var size = 0;
6446
-
6447
- for (var prop in object) {
6448
- size++;
6449
- }
6450
-
6451
- return size;
6452
- }
6453
-
6454
- function hash(promises) {
6455
- var results = {}, deferred = defer(), remaining = size(promises);
6456
-
6457
- if (remaining === 0) {
6458
- deferred.resolve({});
6459
- }
6460
-
6461
- var resolver = function(prop) {
6462
- return function(value) {
6463
- resolveAll(prop, value);
6464
- };
6465
- };
6466
-
6467
- var resolveAll = function(prop, value) {
6468
- results[prop] = value;
6469
- if (--remaining === 0) {
6470
- deferred.resolve(results);
6471
- }
6472
- };
6473
-
6474
- var rejectAll = function(error) {
6475
- deferred.reject(error);
6476
- };
6477
-
6478
- for (var prop in promises) {
6479
- if (promises[prop] && typeof promises[prop].then === 'function') {
6480
- promises[prop].then(resolver(prop), rejectAll);
6481
- } else {
6482
- resolveAll(prop, promises[prop]);
6483
- }
6484
- }
6485
-
6486
- return deferred.promise;
6487
- }
6488
-
6489
- __exports__.hash = hash;
6490
- });
6491
-
6492
- define("rsvp/node",
6493
- ["rsvp/promise","rsvp/all","exports"],
6494
- function(__dependency1__, __dependency2__, __exports__) {
6495
- "use strict";
6496
- var Promise = __dependency1__.Promise;
6497
- var all = __dependency2__.all;
6498
-
6499
- function makeNodeCallbackFor(resolve, reject) {
6500
- return function (error, value) {
6501
- if (error) {
6502
- reject(error);
6503
- } else if (arguments.length > 2) {
6504
- resolve(Array.prototype.slice.call(arguments, 1));
6505
- } else {
6506
- resolve(value);
6507
- }
6508
- };
6509
- }
6510
-
6511
- function denodeify(nodeFunc) {
6512
- return function() {
6513
- var nodeArgs = Array.prototype.slice.call(arguments), resolve, reject;
6514
-
6515
- var promise = new Promise(function(nodeResolve, nodeReject) {
6516
- resolve = nodeResolve;
6517
- reject = nodeReject;
6518
- });
6519
-
6520
- all(nodeArgs).then(function(nodeArgs) {
6521
- nodeArgs.push(makeNodeCallbackFor(resolve, reject));
6522
-
6523
- try {
6524
- nodeFunc.apply(this, nodeArgs);
6525
- } catch(e) {
6526
- reject(e);
6527
- }
6528
- });
6529
-
6530
- return promise;
6531
- };
6532
- }
6533
-
6534
- __exports__.denodeify = denodeify;
6535
- });
6536
-
6537
- define("rsvp/promise",
6538
- ["rsvp/config","rsvp/events","exports"],
6539
- function(__dependency1__, __dependency2__, __exports__) {
6540
- "use strict";
6541
- var config = __dependency1__.config;
6542
- var EventTarget = __dependency2__.EventTarget;
6543
-
6544
- function objectOrFunction(x) {
6545
- return isFunction(x) || (typeof x === "object" && x !== null);
6546
- }
6547
-
6548
- function isFunction(x){
6549
- return typeof x === "function";
6550
- }
6551
-
6552
- var Promise = function(resolver) {
6553
- var promise = this,
6554
- resolved = false;
6555
-
6556
- if (typeof resolver !== 'function') {
6557
- throw new TypeError('You must pass a resolver function as the sole argument to the promise constructor');
6558
- }
6559
-
6560
- if (!(promise instanceof Promise)) {
6561
- return new Promise(resolver);
6562
- }
6563
-
6564
- var resolvePromise = function(value) {
6565
- if (resolved) { return; }
6566
- resolved = true;
6567
- resolve(promise, value);
6568
- };
6569
-
6570
- var rejectPromise = function(value) {
6571
- if (resolved) { return; }
6572
- resolved = true;
6573
- reject(promise, value);
6574
- };
6575
-
6295
+ var Promise = function() {
6576
6296
  this.on('promise:resolved', function(event) {
6577
6297
  this.trigger('success', { detail: event.detail });
6578
6298
  }, this);
@@ -6580,16 +6300,12 @@ define("rsvp/promise",
6580
6300
  this.on('promise:failed', function(event) {
6581
6301
  this.trigger('error', { detail: event.detail });
6582
6302
  }, this);
6583
-
6584
- try {
6585
- resolver(resolvePromise, rejectPromise);
6586
- } catch(e) {
6587
- rejectPromise(e);
6588
- }
6589
6303
  };
6590
6304
 
6305
+ var noop = function() {};
6306
+
6591
6307
  var invokeCallback = function(type, promise, callback, event) {
6592
- var hasCallback = isFunction(callback),
6308
+ var hasCallback = typeof callback === 'function',
6593
6309
  value, error, succeeded, failed;
6594
6310
 
6595
6311
  if (hasCallback) {
@@ -6605,34 +6321,34 @@ define("rsvp/promise",
6605
6321
  succeeded = true;
6606
6322
  }
6607
6323
 
6608
- if (handleThenable(promise, value)) {
6609
- return;
6324
+ if (value && typeof value.then === 'function') {
6325
+ value.then(function(value) {
6326
+ promise.resolve(value);
6327
+ }, function(error) {
6328
+ promise.reject(error);
6329
+ });
6610
6330
  } else if (hasCallback && succeeded) {
6611
- resolve(promise, value);
6331
+ promise.resolve(value);
6612
6332
  } else if (failed) {
6613
- reject(promise, error);
6614
- } else if (type === 'resolve') {
6615
- resolve(promise, value);
6616
- } else if (type === 'reject') {
6617
- reject(promise, value);
6333
+ promise.reject(error);
6334
+ } else {
6335
+ promise[type](value);
6618
6336
  }
6619
6337
  };
6620
6338
 
6621
6339
  Promise.prototype = {
6622
- constructor: Promise,
6623
-
6624
6340
  then: function(done, fail) {
6625
- var thenPromise = new Promise(function() {});
6341
+ var thenPromise = new Promise();
6626
6342
 
6627
- if (this.isFulfilled) {
6628
- config.async(function() {
6629
- invokeCallback('resolve', thenPromise, done, { detail: this.fulfillmentValue });
6343
+ if (this.isResolved) {
6344
+ RSVP.async(function() {
6345
+ invokeCallback('resolve', thenPromise, done, { detail: this.resolvedValue });
6630
6346
  }, this);
6631
6347
  }
6632
6348
 
6633
6349
  if (this.isRejected) {
6634
- config.async(function() {
6635
- invokeCallback('reject', thenPromise, fail, { detail: this.rejectedReason });
6350
+ RSVP.async(function() {
6351
+ invokeCallback('reject', thenPromise, fail, { detail: this.rejectedValue });
6636
6352
  }, this);
6637
6353
  }
6638
6354
 
@@ -6645,162 +6361,75 @@ define("rsvp/promise",
6645
6361
  });
6646
6362
 
6647
6363
  return thenPromise;
6648
- }
6649
- };
6650
-
6651
- EventTarget.mixin(Promise.prototype);
6364
+ },
6652
6365
 
6653
- function resolve(promise, value) {
6654
- if (promise === value) {
6655
- fulfill(promise, value);
6656
- } else if (!handleThenable(promise, value)) {
6657
- fulfill(promise, value);
6658
- }
6659
- }
6366
+ resolve: function(value) {
6367
+ resolve(this, value);
6660
6368
 
6661
- function handleThenable(promise, value) {
6662
- var then = null;
6369
+ this.resolve = noop;
6370
+ this.reject = noop;
6371
+ },
6663
6372
 
6664
- if (objectOrFunction(value)) {
6665
- try {
6666
- then = value.then;
6667
- } catch(e) {
6668
- reject(promise, e);
6669
- return true;
6670
- }
6373
+ reject: function(value) {
6374
+ reject(this, value);
6671
6375
 
6672
- if (isFunction(then)) {
6673
- try {
6674
- then.call(value, function(val) {
6675
- if (value !== val) {
6676
- resolve(promise, val);
6677
- } else {
6678
- fulfill(promise, val);
6679
- }
6680
- }, function(val) {
6681
- reject(promise, val);
6682
- });
6683
- } catch (e) {
6684
- reject(promise, e);
6685
- }
6686
- return true;
6687
- }
6376
+ this.resolve = noop;
6377
+ this.reject = noop;
6688
6378
  }
6379
+ };
6689
6380
 
6690
- return false;
6691
- }
6692
-
6693
- function fulfill(promise, value) {
6694
- config.async(function() {
6381
+ function resolve(promise, value) {
6382
+ RSVP.async(function() {
6695
6383
  promise.trigger('promise:resolved', { detail: value });
6696
- promise.isFulfilled = true;
6697
- promise.fulfillmentValue = value;
6384
+ promise.isResolved = true;
6385
+ promise.resolvedValue = value;
6698
6386
  });
6699
6387
  }
6700
6388
 
6701
6389
  function reject(promise, value) {
6702
- config.async(function() {
6390
+ RSVP.async(function() {
6703
6391
  promise.trigger('promise:failed', { detail: value });
6704
6392
  promise.isRejected = true;
6705
- promise.rejectedReason = value;
6706
- });
6707
- }
6708
-
6709
-
6710
- __exports__.Promise = Promise;
6711
- });
6712
-
6713
- define("rsvp/reject",
6714
- ["rsvp/promise","exports"],
6715
- function(__dependency1__, __exports__) {
6716
- "use strict";
6717
- var Promise = __dependency1__.Promise;
6718
-
6719
-
6720
- function objectOrFunction(x) {
6721
- return typeof x === "function" || (typeof x === "object" && x !== null);
6722
- }
6723
-
6724
-
6725
- function reject(reason) {
6726
- return new Promise(function (resolve, reject) {
6727
- reject(reason);
6393
+ promise.rejectedValue = value;
6728
6394
  });
6729
6395
  }
6730
6396
 
6397
+ function all(promises) {
6398
+ var i, results = [];
6399
+ var allPromise = new Promise();
6400
+ var remaining = promises.length;
6731
6401
 
6732
- __exports__.reject = reject;
6733
- });
6734
-
6735
- define("rsvp/resolve",
6736
- ["rsvp/promise","exports"],
6737
- function(__dependency1__, __exports__) {
6738
- "use strict";
6739
- var Promise = __dependency1__.Promise;
6740
-
6741
-
6742
- function objectOrFunction(x) {
6743
- return typeof x === "function" || (typeof x === "object" && x !== null);
6744
- }
6745
-
6746
- function resolve(thenable){
6747
- var promise = new Promise(function(resolve, reject){
6748
- var then;
6749
-
6750
- try {
6751
- if ( objectOrFunction(thenable) ) {
6752
- then = thenable.then;
6753
-
6754
- if (typeof then === "function") {
6755
- then.call(thenable, resolve, reject);
6756
- } else {
6757
- resolve(thenable);
6758
- }
6402
+ if (remaining === 0) {
6403
+ allPromise.resolve([]);
6404
+ }
6759
6405
 
6760
- } else {
6761
- resolve(thenable);
6762
- }
6406
+ var resolver = function(index) {
6407
+ return function(value) {
6408
+ resolve(index, value);
6409
+ };
6410
+ };
6763
6411
 
6764
- } catch(error) {
6765
- reject(error);
6412
+ var resolve = function(index, value) {
6413
+ results[index] = value;
6414
+ if (--remaining === 0) {
6415
+ allPromise.resolve(results);
6766
6416
  }
6767
- });
6417
+ };
6768
6418
 
6769
- return promise;
6770
- }
6419
+ var reject = function(error) {
6420
+ allPromise.reject(error);
6421
+ };
6771
6422
 
6423
+ for (i = 0; i < remaining; i++) {
6424
+ promises[i].then(resolver(i), reject);
6425
+ }
6426
+ return allPromise;
6427
+ }
6772
6428
 
6773
- __exports__.resolve = resolve;
6774
- });
6429
+ EventTarget.mixin(Promise.prototype);
6775
6430
 
6776
- define("rsvp",
6777
- ["rsvp/events","rsvp/promise","rsvp/node","rsvp/all","rsvp/hash","rsvp/defer","rsvp/config","rsvp/resolve","rsvp/reject","exports"],
6778
- function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __exports__) {
6779
- "use strict";
6780
- var EventTarget = __dependency1__.EventTarget;
6781
- var Promise = __dependency2__.Promise;
6782
- var denodeify = __dependency3__.denodeify;
6783
- var all = __dependency4__.all;
6784
- var hash = __dependency5__.hash;
6785
- var defer = __dependency6__.defer;
6786
- var config = __dependency7__.config;
6787
- var resolve = __dependency8__.resolve;
6788
- var reject = __dependency9__.reject;
6789
-
6790
- function configure(name, value) {
6791
- config[name] = value;
6792
- }
6793
-
6794
-
6795
- __exports__.Promise = Promise;
6796
- __exports__.EventTarget = EventTarget;
6797
- __exports__.all = all;
6798
- __exports__.hash = hash;
6799
- __exports__.defer = defer;
6800
- __exports__.denodeify = denodeify;
6801
- __exports__.configure = configure;
6802
- __exports__.resolve = resolve;
6803
- __exports__.reject = reject;
6431
+ RSVP = { async: async, Promise: Promise, Event: Event, EventTarget: EventTarget, all: all, raiseOnUncaughtExceptions: true };
6432
+ return RSVP;
6804
6433
  });
6805
6434
 
6806
6435
  })();
@@ -7375,7 +7004,7 @@ var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'n
7375
7004
  @constructor
7376
7005
  */
7377
7006
  Ember.Error = function() {
7378
- var tmp = Error.apply(this, arguments);
7007
+ var tmp = Error.prototype.constructor.apply(this, arguments);
7379
7008
 
7380
7009
  // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.
7381
7010
  for (var idx = 0; idx < errorProps.length; idx++) {
@@ -7637,12 +7266,10 @@ Ember.String = {
7637
7266
  /**
7638
7267
  Returns the Capitalized form of a string
7639
7268
 
7640
- ```javascript
7641
- 'innerHTML'.capitalize() // 'InnerHTML'
7642
- 'action_name'.capitalize() // 'Action_name'
7643
- 'css-class-name'.capitalize() // 'Css-class-name'
7644
- 'my favorite items'.capitalize() // 'My favorite items'
7645
- ```
7269
+ 'innerHTML'.capitalize() // 'InnerHTML'
7270
+ 'action_name'.capitalize() // 'Action_name'
7271
+ 'css-class-name'.capitalize() // 'Css-class-name'
7272
+ 'my favorite items'.capitalize() // 'My favorite items'
7646
7273
 
7647
7274
  @method capitalize
7648
7275
  @param {String} str
@@ -8787,7 +8414,9 @@ Ember.Enumerable = Ember.Mixin.create({
8787
8414
  // HELPERS
8788
8415
  //
8789
8416
 
8790
- var get = Ember.get, set = Ember.set, isNone = Ember.isNone, map = Ember.EnumerableUtils.map, cacheFor = Ember.cacheFor;
8417
+ var get = Ember.get, set = Ember.set, map = Ember.EnumerableUtils.map, cacheFor = Ember.cacheFor;
8418
+
8419
+ function none(obj) { return obj===null || obj===undefined; }
8791
8420
 
8792
8421
  // ..........................................................
8793
8422
  // ARRAY
@@ -8810,7 +8439,7 @@ var get = Ember.get, set = Ember.set, isNone = Ember.isNone, map = Ember.Enumera
8810
8439
 
8811
8440
  You can use the methods defined in this module to access and modify array
8812
8441
  contents in a KVO-friendly way. You can also be notified whenever the
8813
- membership of an array changes by changing the syntax of the property to
8442
+ membership if an array changes by changing the syntax of the property to
8814
8443
  `.observes('*myProperty.[]')`.
8815
8444
 
8816
8445
  To support `Ember.Array` in your own class, you must override two
@@ -8827,6 +8456,9 @@ var get = Ember.get, set = Ember.set, isNone = Ember.isNone, map = Ember.Enumera
8827
8456
  */
8828
8457
  Ember.Array = Ember.Mixin.create(Ember.Enumerable, /** @scope Ember.Array.prototype */ {
8829
8458
 
8459
+ // compatibility
8460
+ isSCArray: true,
8461
+
8830
8462
  /**
8831
8463
  Your array must support the `length` property. Your replace methods should
8832
8464
  set this property whenever it changes.
@@ -8934,8 +8566,8 @@ Ember.Array = Ember.Mixin.create(Ember.Enumerable, /** @scope Ember.Array.protot
8934
8566
  slice: function(beginIndex, endIndex) {
8935
8567
  var ret = Ember.A([]);
8936
8568
  var length = get(this, 'length') ;
8937
- if (isNone(beginIndex)) beginIndex = 0 ;
8938
- if (isNone(endIndex) || (endIndex > length)) endIndex = length ;
8569
+ if (none(beginIndex)) beginIndex = 0 ;
8570
+ if (none(endIndex) || (endIndex > length)) endIndex = length ;
8939
8571
 
8940
8572
  if (beginIndex < 0) beginIndex = length + beginIndex;
8941
8573
  if (endIndex < 0) endIndex = length + endIndex;
@@ -9095,7 +8727,7 @@ Ember.Array = Ember.Mixin.create(Ember.Enumerable, /** @scope Ember.Array.protot
9095
8727
  @param {Number} startIdx The starting index in the array that will change.
9096
8728
  @param {Number} removeAmt The number of items that will be removed. If you
9097
8729
  pass `null` assumes 0
9098
- @param {Number} addAmt The number of items that will be added. If you
8730
+ @param {Number} addAmt The number of items that will be added If you
9099
8731
  pass `null` assumes 0.
9100
8732
  @return {Ember.Array} receiver
9101
8733
  */
@@ -9129,20 +8761,6 @@ Ember.Array = Ember.Mixin.create(Ember.Enumerable, /** @scope Ember.Array.protot
9129
8761
  return this;
9130
8762
  },
9131
8763
 
9132
- /**
9133
- If you are implementing an object that supports `Ember.Array`, call this
9134
- method just after the array content changes to notify any observers and
9135
- invalidate any related properties. Pass the starting index of the change
9136
- as well as a delta of the amounts to change.
9137
-
9138
- @method arrayContentDidChange
9139
- @param {Number} startIdx The starting index in the array that did change.
9140
- @param {Number} removeAmt The number of items that were removed. If you
9141
- pass `null` assumes 0
9142
- @param {Number} addAmt The number of items that were added. If you
9143
- pass `null` assumes 0.
9144
- @return {Ember.Array} receiver
9145
- */
9146
8764
  arrayContentDidChange: function(startIdx, removeAmt, addAmt) {
9147
8765
 
9148
8766
  // if no args are passed assume everything changes
@@ -9283,7 +8901,8 @@ var get = Ember.get, set = Ember.set;
9283
8901
  @extends Ember.Mixin
9284
8902
  @since Ember 0.9
9285
8903
  */
9286
- Ember.Copyable = Ember.Mixin.create(/** @scope Ember.Copyable.prototype */ {
8904
+ Ember.Copyable = Ember.Mixin.create(
8905
+ /** @scope Ember.Copyable.prototype */ {
9287
8906
 
9288
8907
  /**
9289
8908
  Override to return a copy of the receiver. Default implementation raises
@@ -9388,7 +9007,8 @@ var get = Ember.get, set = Ember.set;
9388
9007
  @extends Ember.Mixin
9389
9008
  @since Ember 0.9
9390
9009
  */
9391
- Ember.Freezable = Ember.Mixin.create(/** @scope Ember.Freezable.prototype */ {
9010
+ Ember.Freezable = Ember.Mixin.create(
9011
+ /** @scope Ember.Freezable.prototype */ {
9392
9012
 
9393
9013
  /**
9394
9014
  Set to `true` when the object is frozen. Use this property to detect
@@ -9569,7 +9189,8 @@ var get = Ember.get, set = Ember.set;
9569
9189
  @uses Ember.Array
9570
9190
  @uses Ember.MutableEnumerable
9571
9191
  */
9572
- Ember.MutableArray = Ember.Mixin.create(Ember.Array, Ember.MutableEnumerable,/** @scope Ember.MutableArray.prototype */ {
9192
+ Ember.MutableArray = Ember.Mixin.create(Ember.Array, Ember.MutableEnumerable,
9193
+ /** @scope Ember.MutableArray.prototype */ {
9573
9194
 
9574
9195
  /**
9575
9196
  __Required.__ You must implement this method to apply this mixin.
@@ -9840,6 +9461,7 @@ Ember.MutableArray = Ember.Mixin.create(Ember.Array, Ember.MutableEnumerable,/**
9840
9461
 
9841
9462
  });
9842
9463
 
9464
+
9843
9465
  })();
9844
9466
 
9845
9467
 
@@ -9887,7 +9509,7 @@ var get = Ember.get, set = Ember.set;
9887
9509
  For example:
9888
9510
 
9889
9511
  ```javascript
9890
- Ember.Object.extend({
9512
+ Ember.Object.create({
9891
9513
  valueObserver: function() {
9892
9514
  // Executes whenever the "value" property changes
9893
9515
  }.observes('value')
@@ -9906,8 +9528,8 @@ var get = Ember.get, set = Ember.set;
9906
9528
  object.addObserver('propertyKey', targetObject, targetAction)
9907
9529
  ```
9908
9530
 
9909
- This will call the `targetAction` method on the `targetObject` whenever
9910
- the value of the `propertyKey` changes.
9531
+ This will call the `targetAction` method on the `targetObject` to be called
9532
+ whenever the value of the `propertyKey` changes.
9911
9533
 
9912
9534
  Note that if `propertyKey` is a computed property, the observer will be
9913
9535
  called when any of the property dependencies are changed, even if the
@@ -10167,8 +9789,8 @@ Ember.Observable = Ember.Mixin.create(/** @scope Ember.Observable.prototype */ {
10167
9789
 
10168
9790
  This is the core method used to register an observer for a property.
10169
9791
 
10170
- Once you call this method, any time the key's value is set, your observer
10171
- will be notified. Note that the observers are triggered any time the
9792
+ Once you call this method, anytime the key's value is set, your observer
9793
+ will be notified. Note that the observers are triggered anytime the
10172
9794
  value is set, regardless of whether it has actually changed. Your
10173
9795
  observer should be prepared to handle that.
10174
9796
 
@@ -10293,11 +9915,11 @@ Ember.Observable = Ember.Mixin.create(/** @scope Ember.Observable.prototype */ {
10293
9915
 
10294
9916
  @method incrementProperty
10295
9917
  @param {String} keyName The name of the property to increment
10296
- @param {Number} increment The amount to increment by. Defaults to 1
10297
- @return {Number} The new property value
9918
+ @param {Object} increment The amount to increment by. Defaults to 1
9919
+ @return {Object} The new property value
10298
9920
  */
10299
9921
  incrementProperty: function(keyName, increment) {
10300
- if (Ember.isNone(increment)) { increment = 1; }
9922
+ if (!increment) { increment = 1; }
10301
9923
  set(this, keyName, (get(this, keyName) || 0)+increment);
10302
9924
  return get(this, keyName);
10303
9925
  },
@@ -10312,12 +9934,12 @@ Ember.Observable = Ember.Mixin.create(/** @scope Ember.Observable.prototype */ {
10312
9934
 
10313
9935
  @method decrementProperty
10314
9936
  @param {String} keyName The name of the property to decrement
10315
- @param {Number} decrement The amount to decrement by. Defaults to 1
10316
- @return {Number} The new property value
9937
+ @param {Object} increment The amount to decrement by. Defaults to 1
9938
+ @return {Object} The new property value
10317
9939
  */
10318
- decrementProperty: function(keyName, decrement) {
10319
- if (Ember.isNone(decrement)) { decrement = 1; }
10320
- set(this, keyName, (get(this, keyName) || 0)-decrement);
9940
+ decrementProperty: function(keyName, increment) {
9941
+ if (!increment) { increment = 1; }
9942
+ set(this, keyName, (get(this, keyName) || 0)-increment);
10321
9943
  return get(this, keyName);
10322
9944
  },
10323
9945
 
@@ -10326,7 +9948,7 @@ Ember.Observable = Ember.Mixin.create(/** @scope Ember.Observable.prototype */ {
10326
9948
  current value.
10327
9949
 
10328
9950
  ```javascript
10329
- starship.toggleProperty('warpDriveEngaged');
9951
+ starship.toggleProperty('warpDriveEnaged');
10330
9952
  ```
10331
9953
 
10332
9954
  @method toggleProperty
@@ -10358,6 +9980,7 @@ Ember.Observable = Ember.Mixin.create(/** @scope Ember.Observable.prototype */ {
10358
9980
  }
10359
9981
  });
10360
9982
 
9983
+
10361
9984
  })();
10362
9985
 
10363
9986
 
@@ -10652,9 +10275,9 @@ Ember.Evented = Ember.Mixin.create({
10652
10275
  (function() {
10653
10276
  var RSVP = requireModule("rsvp");
10654
10277
 
10655
- RSVP.configure('async', function(callback, binding) {
10278
+ RSVP.async = function(callback, binding) {
10656
10279
  Ember.run.schedule('actions', binding, callback);
10657
- });
10280
+ };
10658
10281
 
10659
10282
  /**
10660
10283
  @module ember
@@ -10676,22 +10299,9 @@ Ember.DeferredMixin = Ember.Mixin.create({
10676
10299
  @param {Function} doneCallback a callback function to be called when done
10677
10300
  @param {Function} failCallback a callback function to be called when failed
10678
10301
  */
10679
- then: function(resolve, reject) {
10680
- var deferred, promise, entity;
10681
-
10682
- entity = this;
10683
- deferred = get(this, '_deferred');
10684
- promise = deferred.promise;
10685
-
10686
- function fulfillmentHandler(fulfillment) {
10687
- if (fulfillment === promise) {
10688
- return resolve(entity);
10689
- } else {
10690
- return resolve(fulfillment);
10691
- }
10692
- }
10693
-
10694
- return promise.then(resolve && fulfillmentHandler, reject);
10302
+ then: function(doneCallback, failCallback) {
10303
+ var promise = get(this, 'promise');
10304
+ return promise.then.apply(promise, arguments);
10695
10305
  },
10696
10306
 
10697
10307
  /**
@@ -10700,16 +10310,7 @@ Ember.DeferredMixin = Ember.Mixin.create({
10700
10310
  @method resolve
10701
10311
  */
10702
10312
  resolve: function(value) {
10703
- var deferred, promise;
10704
-
10705
- deferred = get(this, '_deferred');
10706
- promise = deferred.promise;
10707
-
10708
- if (value === this){
10709
- deferred.resolve(promise);
10710
- } else {
10711
- deferred.resolve(value);
10712
- }
10313
+ get(this, 'promise').resolve(value);
10713
10314
  },
10714
10315
 
10715
10316
  /**
@@ -10718,11 +10319,11 @@ Ember.DeferredMixin = Ember.Mixin.create({
10718
10319
  @method reject
10719
10320
  */
10720
10321
  reject: function(value) {
10721
- get(this, '_deferred').reject(value);
10322
+ get(this, 'promise').reject(value);
10722
10323
  },
10723
10324
 
10724
- _deferred: Ember.computed(function() {
10725
- return RSVP.defer();
10325
+ promise: Ember.computed(function() {
10326
+ return new RSVP.Promise();
10726
10327
  })
10727
10328
  });
10728
10329
 
@@ -11552,7 +11153,8 @@ var get = Ember.get, set = Ember.set;
11552
11153
  @extends Ember.Object
11553
11154
  @uses Ember.MutableArray
11554
11155
  */
11555
- Ember.ArrayProxy = Ember.Object.extend(Ember.MutableArray,/** @scope Ember.ArrayProxy.prototype */ {
11156
+ Ember.ArrayProxy = Ember.Object.extend(Ember.MutableArray,
11157
+ /** @scope Ember.ArrayProxy.prototype */ {
11556
11158
 
11557
11159
  /**
11558
11160
  The content array. Must be an object that implements `Ember.Array` and/or
@@ -11826,6 +11428,7 @@ Ember.ArrayProxy = Ember.Object.extend(Ember.MutableArray,/** @scope Ember.Array
11826
11428
  }
11827
11429
  });
11828
11430
 
11431
+
11829
11432
  })();
11830
11433
 
11831
11434
 
@@ -11925,7 +11528,8 @@ function contentPropertyDidChange(content, contentKey) {
11925
11528
  @namespace Ember
11926
11529
  @extends Ember.Object
11927
11530
  */
11928
- Ember.ObjectProxy = Ember.Object.extend(/** @scope Ember.ObjectProxy.prototype */ {
11531
+ Ember.ObjectProxy = Ember.Object.extend(
11532
+ /** @scope Ember.ObjectProxy.prototype */ {
11929
11533
  /**
11930
11534
  The object whose properties will be forwarded.
11931
11535
 
@@ -12363,7 +11967,7 @@ if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.Array) {
12363
11967
  @submodule ember-runtime
12364
11968
  */
12365
11969
 
12366
- var get = Ember.get, set = Ember.set, guidFor = Ember.guidFor, isNone = Ember.isNone, fmt = Ember.String.fmt;
11970
+ var get = Ember.get, set = Ember.set, guidFor = Ember.guidFor, none = Ember.isNone, fmt = Ember.String.fmt;
12367
11971
 
12368
11972
  /**
12369
11973
  An unordered collection of objects.
@@ -12721,7 +12325,7 @@ Ember.Set = Ember.CoreObject.extend(Ember.MutableEnumerable, Ember.Copyable, Emb
12721
12325
  // implements Ember.MutableEnumerable
12722
12326
  addObject: function(obj) {
12723
12327
  if (get(this, 'isFrozen')) throw new Error(Ember.FROZEN_ERROR);
12724
- if (isNone(obj)) return this; // nothing to do
12328
+ if (none(obj)) return this; // nothing to do
12725
12329
 
12726
12330
  var guid = guidFor(obj),
12727
12331
  idx = this[guid],
@@ -12749,7 +12353,7 @@ Ember.Set = Ember.CoreObject.extend(Ember.MutableEnumerable, Ember.Copyable, Emb
12749
12353
  // implements Ember.MutableEnumerable
12750
12354
  removeObject: function(obj) {
12751
12355
  if (get(this, 'isFrozen')) throw new Error(Ember.FROZEN_ERROR);
12752
- if (isNone(obj)) return this; // nothing to do
12356
+ if (none(obj)) return this; // nothing to do
12753
12357
 
12754
12358
  var guid = guidFor(obj),
12755
12359
  idx = this[guid],
@@ -12824,7 +12428,7 @@ Deferred.reopenClass({
12824
12428
  promise: function(callback, binding) {
12825
12429
  var deferred = Deferred.create();
12826
12430
  callback.call(binding, deferred);
12827
- return deferred;
12431
+ return get(deferred, 'promise');
12828
12432
  }
12829
12433
  });
12830
12434
 
@@ -12835,8 +12439,6 @@ Ember.Deferred = Deferred;
12835
12439
 
12836
12440
 
12837
12441
  (function() {
12838
- var forEach = Ember.ArrayPolyfills.forEach;
12839
-
12840
12442
  /**
12841
12443
  @module ember
12842
12444
  @submodule ember-runtime
@@ -12869,10 +12471,12 @@ Ember.onLoad = function(name, callback) {
12869
12471
  @param object {Object} object to pass to callbacks
12870
12472
  */
12871
12473
  Ember.runLoadHooks = function(name, object) {
12474
+ var hooks;
12475
+
12872
12476
  loaded[name] = object;
12873
12477
 
12874
- if (loadHooks[name]) {
12875
- forEach.call(loadHooks[name], function(callback) {
12478
+ if (hooks = loadHooks[name]) {
12479
+ loadHooks[name].forEach(function(callback) {
12876
12480
  callback(object);
12877
12481
  });
12878
12482
  }
@@ -12946,8 +12550,6 @@ Ember.ControllerMixin = Ember.Mixin.create({
12946
12550
 
12947
12551
  container: null,
12948
12552
 
12949
- parentController: null,
12950
-
12951
12553
  store: null,
12952
12554
 
12953
12555
  model: Ember.computed.alias('content'),
@@ -13289,10 +12891,6 @@ var get = Ember.get, set = Ember.set, forEach = Ember.EnumerableUtils.forEach,
13289
12891
  });
13290
12892
  ```
13291
12893
 
13292
- The itemController instances will have a `parentController` property set to
13293
- either the the `parentController` property of the `ArrayController`
13294
- or to the `ArrayController` instance itself.
13295
-
13296
12894
  @class ArrayController
13297
12895
  @namespace Ember
13298
12896
  @extends Ember.ArrayProxy
@@ -13403,7 +13001,6 @@ Ember.ArrayController = Ember.ArrayProxy.extend(Ember.ControllerMixin,
13403
13001
  }
13404
13002
 
13405
13003
  subController.set('target', this);
13406
- subController.set('parentController', get(this, 'parentController') || this);
13407
13004
  subController.set('content', object);
13408
13005
 
13409
13006
  return subController;
@@ -13475,6 +13072,6 @@ Ember Runtime
13475
13072
 
13476
13073
 
13477
13074
  if (typeof location !== 'undefined' && (location.hostname === 'localhost' || location.hostname === '127.0.0.1')) {
13478
- Ember.Logger.warn("You are running a production build of Ember on localhost and won't receive detailed error messages. "+
13075
+ console.warn("You are running a production build of Ember on localhost and won't receive detailed error messages. "+
13479
13076
  "If you want full error messages please use the non-minified build provided on the Ember website.");
13480
13077
  }