diff options
Diffstat (limited to 'js/vendor/traceur-runtime/traceur-runtime.min.js')
-rw-r--r-- | js/vendor/traceur-runtime/traceur-runtime.min.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/vendor/traceur-runtime/traceur-runtime.min.js b/js/vendor/traceur-runtime/traceur-runtime.min.js index 2bcc8c2d3..55aa140b2 100644 --- a/js/vendor/traceur-runtime/traceur-runtime.min.js +++ b/js/vendor/traceur-runtime/traceur-runtime.min.js @@ -1,2 +1,3 @@ -!function(a){"use strict";function b(a){return{configurable:!0,enumerable:!1,value:a,writable:!0}}function c(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++ib+"$__"}function d(){var a=c();return nb[a]=!0,a}function e(a){return"object"==typeof a&&a instanceof h}function f(a){return e(a)?"symbol":typeof a}function g(a){var b=new h(a);if(!(this instanceof g))return b;throw new TypeError("Symbol cannot be new'ed")}function h(a){var b=c();Y(this,lb,{value:this}),Y(this,jb,{value:b}),Y(this,kb,{value:a}),j(this),mb[b]=this}function i(a){var b=a[ob];return b&&b.self===a?b:fb(a)?(qb.hash.value=rb++,qb.self.value=a,pb.value=W(null,qb),Y(a,ob,pb),pb.value):void 0}function j(a){return i(a),Z.apply(this,arguments)}function k(a){return i(a),db.apply(this,arguments)}function l(a){return i(a),eb.apply(this,arguments)}function m(a){return e(a)?a[jb]:a}function n(a){for(var b=[],c=_(a),d=0;d<c.length;d++){var e=c[d];mb[e]||nb[e]||b.push(e)}return b}function o(a,b){return $(a,m(b))}function p(a){for(var b=[],c=_(a),d=0;d<c.length;d++){var e=mb[c[d]];e&&b.push(e)}return b}function q(a){return cb.call(this,m(a))}function r(b){return a.traceur&&a.traceur.options[b]}function s(a,b,c){var d,f;return e(b)&&(d=b,b=b[jb]),a[b]=c,d&&(f=$(a,b))&&Y(a,b,{enumerable:!1}),c}function t(a,b,c){return e(b)&&(c.enumerable&&(c=W(c,{enumerable:{value:!1}})),b=b[jb]),Y(a,b,c),a}function u(a){function b(a,b){return a===b?0!==a||1/a===1/b:a!==a&&b!==b}function c(a){for(var b=1;b<arguments.length;b++){var c,d=arguments[b],e=bb(d),f=e.length;for(c=0;f>c;c++){var g=e[c];nb[g]||(a[g]=d[g])}}return a}function d(a,b){var c,d,e=_(b),f=e.length;for(c=0;f>c;c++){var g=e[c];nb[g]||(d=$(b,e[c]),Y(a,e[c],d))}return a}Y(a,"defineProperty",{value:t}),Y(a,"getOwnPropertyNames",{value:n}),Y(a,"getOwnPropertyDescriptor",{value:o}),Y(a.prototype,"hasOwnProperty",{value:q}),Y(a,"freeze",{value:j}),Y(a,"preventExtensions",{value:k}),Y(a,"seal",{value:l}),a.getOwnPropertySymbols=p,Y(a,"is",hb(b)),Y(a,"assign",hb(c)),Y(a,"mixin",hb(d))}function v(a){for(var b=1;b<arguments.length;b++)for(var c=_(arguments[b]),d=0;d<c.length;d++){var e=c[d];nb[e]||!function(b,c){Y(a,c,{get:function(){return b[c]},enumerable:!0})}(arguments[b],c[d])}return a}function w(a){return null!=a&&("object"==typeof a||"function"==typeof a)}function x(a){if(null==a)throw V();return U(a)}function y(a){if(!w(a))throw V(a+" is not an Object");return a}function z(){for(var a=[],b=0,c=0;c<arguments.length;c++)for(var d=x(arguments[c]),e=0;e<d.length;e++)a[b++]=d[e];return a}function A(a,b){var c=ab(a);do{var d=$(c,b);if(d)return d;c=ab(c)}while(c);return void 0}function B(a,b,c,d){return C(a,b,c).apply(a,d)}function C(a,b,c){var d=A(b,c);return d?d.get?d.get.call(a):d.value:void 0}function D(a,b,c,d){var e=A(b,c);if(e&&e.set)return e.set.call(a,d),d;throw V("super has no setter '"+c+"'.")}function E(a){for(var b,c={},d=_(a),e=0;e<d.length;e++){var b=d[e];c[b]=$(a,b)}return c}function F(a,b,c,d){return Y(b,"constructor",{value:a,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof d&&(a.__proto__=d),a.prototype=W(G(d),E(b))):a.prototype=b,Y(a,"prototype",{configurable:!1,writable:!1}),X(a,E(c))}function G(a){if("function"==typeof a){var b=a.prototype;if(U(b)===b||null===b)return a.prototype}if(null===a)return null;throw new TypeError}function H(a,b,c){null!==ab(b)&&B(a,b,"constructor",c)}function I(a){return new Error("Traceur compiler bug: invalid state in state machine: "+a)}function J(){this.state=0,this.GState=sb,this.storedException=void 0,this.finallyFallThrough=void 0,this.sent_=void 0,this.returnValue=void 0,this.tryStack_=[]}function K(a,b,c,d){switch(a.GState){case tb:throw new Error('"'+c+'" on executing generator');case vb:throw new Error('"'+c+'" on closed generator');case sb:if("throw"===c)throw a.GState=vb,d;if(void 0!==d)throw V("Sent value to newborn generator");case ub:a.GState=tb,a.action=c,a.sent=d;var e=b(a),f=e===a;return f&&(e=a.returnValue),a.GState=f?vb:ub,{value:e,done:f}}}function L(){}function M(){}function N(a,b,c){var d=R(a,c),e=new J,f=W(b.prototype);return f[yb]=e,f[zb]=d,f}function O(a){return a.prototype=W(M.prototype),a.__proto__=M,a}function P(){J.call(this),this.err=void 0;var a=this;a.result=new Promise(function(b,c){a.resolve=b,a.reject=c})}function Q(a,b){var c=R(a,b),d=new P;return d.createCallback=function(a){return function(b){d.state=a,d.value=b,c(d)}},d.errback=function(a){S(d,a),c(d)},c(d),d.result}function R(a,b){return function(c){for(;;)try{return a.call(b,c)}catch(d){S(c,d)}}}function S(a,b){a.storedException=b;var c=a.tryStack_[a.tryStack_.length-1];return c?(a.state=void 0!==c.catch?c.catch:c.finally,void(void 0!==c.finallyFallThrough&&(a.finallyFallThrough=c.finallyFallThrough))):void a.handleException(b)}function T(a){a.Symbol=g,u(a.Object)}if(!a.$traceurRuntime){var U=Object,V=TypeError,W=U.create,X=U.defineProperties,Y=U.defineProperty,Z=U.freeze,$=U.getOwnPropertyDescriptor,_=U.getOwnPropertyNames,ab=U.getPrototypeOf,bb=U.keys,cb=U.prototype.hasOwnProperty,db=(U.prototype.toString,Object.preventExtensions),eb=Object.seal,fb=Object.isExtensible,gb={"void":function(){},any:function(){},string:function(){},number:function(){},"boolean":function(){}},hb=b,ib=0,jb=c(),kb=c(),lb=c(),mb=W(null),nb=W(null);Y(g.prototype,"constructor",b(g)),Y(g.prototype,"toString",hb(function(){var a=this[lb];if(!r("symbols"))return a[jb];if(!a)throw TypeError("Conversion from symbol to string");var b=a[kb];return void 0===b&&(b=""),"Symbol("+b+")"})),Y(g.prototype,"valueOf",hb(function(){var a=this[lb];if(!a)throw TypeError("Conversion from symbol to string");return r("symbols")?a:a[jb]})),Y(h.prototype,"constructor",b(g)),Y(h.prototype,"toString",{value:g.prototype.toString,enumerable:!1}),Y(h.prototype,"valueOf",{value:g.prototype.valueOf,enumerable:!1});var ob=d(),pb={value:void 0},qb={hash:{value:void 0},self:{value:void 0}},rb=0;g.iterator=g(),j(h.prototype);var sb=0,tb=1,ub=2,vb=3,wb=-2,xb=-3;J.prototype={pushTry:function(a,b){if(null!==b){for(var c=null,d=this.tryStack_.length-1;d>=0;d--)if(void 0!==this.tryStack_[d].catch){c=this.tryStack_[d].catch;break}null===c&&(c=xb),this.tryStack_.push({"finally":b,finallyFallThrough:c})}null!==a&&this.tryStack_.push({"catch":a})},popTry:function(){this.tryStack_.pop()},get sent(){return this.maybeThrow(),this.sent_},set sent(a){this.sent_=a},get sentIgnoreThrow(){return this.sent_},maybeThrow:function(){if("throw"===this.action)throw this.action="next",this.sent_},end:function(){switch(this.state){case wb:return this;case xb:throw this.storedException;default:throw I(this.state)}},handleException:function(a){throw this.GState=vb,this.state=wb,a}};var yb=d(),zb=d();L.prototype=M,Y(M,"constructor",b(L)),M.prototype={constructor:M,next:function(a){return K(this[yb],this[zb],"next",a)},"throw":function(a){return K(this[yb],this[zb],"throw",a)}},X(M.prototype,{constructor:{enumerable:!1},next:{enumerable:!1},"throw":{enumerable:!1}}),t(M.prototype,g.iterator,b(function(){return this})),P.prototype=Object.create(J.prototype),P.prototype.end=function(){switch(this.state){case wb:this.resolve(this.returnValue);break;case xb:this.reject(this.storedException);break;default:this.reject(I(this.state))}},P.prototype.handleException=function(){this.state=xb},T(a),a.$traceurRuntime={assertObject:y,asyncWrap:Q,createClass:F,defaultSuperCall:H,exportStar:v,initGeneratorFunction:O,createGeneratorInstance:N,getOwnHashObject:i,setProperty:s,setupGlobals:T,spread:z,superCall:B,superGet:C,superSet:D,toObject:x,toProperty:m,type:gb,"typeof":f}}}("undefined"!=typeof global?global:this),function(){function a(a,b,c,d,e,f,g){var h=[];return a&&h.push(a,":"),c&&(h.push("//"),b&&h.push(b,"@"),h.push(c),d&&h.push(":",d)),e&&h.push(e),f&&h.push("?",f),g&&h.push("#",g),h.join("")}function b(a){return a.match(h)}function c(a){if("/"===a)return"/";for(var b="/"===a[0]?"/":"",c="/"===a.slice(-1)?"/":"",d=a.split("/"),e=[],f=0,g=0;g<d.length;g++){var h=d[g];switch(h){case"":case".":break;case"..":e.length?e.pop():f++;break;default:e.push(h)}}if(!b){for(;f-->0;)e.unshift("..");0===e.length&&e.push(".")}return b+e.join("/")+c}function d(b){var d=b[i.PATH]||"";return d=c(d),b[i.PATH]=d,a(b[i.SCHEME],b[i.USER_INFO],b[i.DOMAIN],b[i.PORT],b[i.PATH],b[i.QUERY_DATA],b[i.FRAGMENT])}function e(a){var c=b(a);return d(c)}function f(a,c){var e=b(c),f=b(a);if(e[i.SCHEME])return d(e);e[i.SCHEME]=f[i.SCHEME];for(var g=i.SCHEME;g<=i.PORT;g++)e[g]||(e[g]=f[g]);if("/"==e[i.PATH][0])return d(e);var h=f[i.PATH],j=h.lastIndexOf("/");return h=h.slice(0,j+1)+e[i.PATH],e[i.PATH]=h,d(e)}function g(a){if(!a)return!1;if("/"===a[0])return!0;var c=b(a);return c[i.SCHEME]?!0:!1}var h=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),i={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};$traceurRuntime.canonicalizeUrl=e,$traceurRuntime.isAbsolute=g,$traceurRuntime.removeDotSegments=c,$traceurRuntime.resolveUrl=f}(),function(a){"use strict";function b(a){if(a){var b=o.normalize(a);return i[b]}}function c(a){var b=arguments[1],c=Object.create(null);return Object.getOwnPropertyNames(a).forEach(function(d){var e,f;if(b===n){var g=Object.getOwnPropertyDescriptor(a,d);g.get&&(e=g.get)}e||(f=a[d],e=function(){return f}),Object.defineProperty(c,d,{get:e,enumerable:!0})}),Object.preventExtensions(c),c}var d,e=$traceurRuntime.assertObject($traceurRuntime),f=e.canonicalizeUrl,g=e.resolveUrl,h=e.isAbsolute,i=Object.create(null);d=a.location&&a.location.href?g(a.location.href,"./"):"";var j=function(a,b){this.url=a,this.value_=b};$traceurRuntime.createClass(j,{},{});var k=function(a,b){$traceurRuntime.superCall(this,l.prototype,"constructor",[a,null]),this.func=b},l=k;$traceurRuntime.createClass(k,{getUncoatedModule:function(){return this.value_?this.value_:this.value_=this.func.call(a)}},{},j);var m=Object.create(null),n={},o={normalize:function(a,b){if("string"!=typeof a)throw new TypeError("module name must be a string, not "+typeof a);if(h(a))return f(a);if(/[^\.]\/\.\.\//.test(a))throw new Error("module name embeds /../: "+a);return"."===a[0]&&b?g(b,a):f(a)},get:function(a){var d=b(a);if(!d)return void 0;var e=m[d.url];return e?e:(e=c(d.getUncoatedModule(),n),m[d.url]=e)},set:function(a,b){a=String(a),i[a]=new k(a,function(){return b}),m[a]=b},get baseURL(){return d},set baseURL(a){d=String(a)},registerModule:function(a,b){var c=o.normalize(a);if(i[c])throw new Error("duplicate module named "+c);i[c]=new k(c,b)},bundleStore:Object.create(null),register:function(a,b,c){b&&(b.length||c.length)?this.bundleStore[a]={deps:b,execute:function(){var a=arguments,d={};b.forEach(function(b,c){return d[b]=a[c]});var e=c.call(this,d);return e.execute.call(this),e.exports}}:this.registerModule(a,c)},getAnonymousModule:function(b){return new c(b.call(a),n)},getForTesting:function(a){var b=this;return this.testingPrefix_||Object.keys(m).some(function(a){var c=/(traceur@[^\/]*\/)/.exec(a);return c?(b.testingPrefix_=c[1],!0):void 0}),this.get(this.testingPrefix_+a)}};o.set("@traceur/src/runtime/ModuleStore",new c({ModuleStore:o}));var p=$traceurRuntime.setupGlobals;$traceurRuntime.setupGlobals=function(a){p(a)},$traceurRuntime.ModuleStore=o,a.System={register:o.register.bind(o),get:o.get,set:o.set,normalize:o.normalize},$traceurRuntime.getModuleImpl=function(a){var c=b(a);return c&&c.getUncoatedModule()}}("undefined"!=typeof global?global:this),System.register("traceur-runtime@0.0.41/src/runtime/polyfills/utils",[],function(){"use strict";function a(a){return 0|a}function b(a){return a&&("object"==typeof a||"function"==typeof a)}function c(a){return"function"==typeof a}function d(a){return a=+a,isNaN(a)?0:isFinite(a)&&0!==a?a>0?Math.floor(a):Math.ceil(a):a}function e(a){var b=d(a);return 0>b?0:Math.min(b,g)}var f=$traceurRuntime.toObject,g=Math.pow(2,53)-1;return{get toObject(){return f},get toUint32(){return a},get isObject(){return b},get isCallable(){return c},get toInteger(){return d},get toLength(){return e}}}),System.register("traceur-runtime@0.0.41/src/runtime/polyfills/Array",[],function(){"use strict";function a(a){var b=void 0!==arguments[1]?arguments[1]:0,c=arguments[2],d=h(this),e=g(d.length),i=f(b),j=void 0!==c?f(c):e;for(i=0>i?Math.max(e+i,0):Math.min(i,e),j=0>j?Math.max(e+j,0):Math.min(j,e);j>i;)d[i]=a,i++;return d}function b(a){var b=arguments[1];return d(this,a,b)}function c(a){var b=arguments[1];return d(this,a,b,!0)}function d(a,b){var c=arguments[2],d=void 0!==arguments[3]?arguments[3]:!1,e=h(a),f=g(e.length);if(!i(b))throw TypeError();for(var j=0;f>j;j++)if(j in e){var k=e[j];if(b.call(c,k,j,e))return d?j:k}return d?-1:void 0}var e=$traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/utils")),f=e.toInteger,g=e.toLength,h=e.toObject,i=e.isCallable;return{get fill(){return a},get find(){return b},get findIndex(){return c}}}),System.register("traceur-runtime@0.0.41/src/runtime/polyfills/ArrayIterator",[],function(){"use strict";function a(a,b){var c=h(a),d=new m;return d.iteratorObject_=c,d.arrayIteratorNextIndex_=0,d.arrayIterationKind_=b,d}function b(a,b){return{value:a,done:b}}function c(){return a(this,l)}function d(){return a(this,j)}function e(){return a(this,k)}var f,g=$traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/utils")),h=g.toObject,i=g.toUint32,j=1,k=2,l=3,m=function(){};return $traceurRuntime.createClass(m,(f={},Object.defineProperty(f,"next",{value:function(){var a=h(this),c=a.iteratorObject_;if(!c)throw new TypeError("Object is not an ArrayIterator");var d=a.arrayIteratorNextIndex_,e=a.arrayIterationKind_,f=i(c.length);return d>=f?(a.arrayIteratorNextIndex_=1/0,b(void 0,!0)):(a.arrayIteratorNextIndex_=d+1,e==k?b(c[d],!1):e==l?b([d,c[d]],!1):b(d,!1))},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(f,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),f),{}),{get entries(){return c},get keys(){return d},get values(){return e}}}),System.register("traceur-runtime@0.0.41/src/runtime/polyfills/Map",[],function(){"use strict";function a(a,b){if(c(b)){var e=d(b);return e&&a.objectIndex_[e.hash]}return"string"==typeof b?a.stringIndex_[b]:a.primitiveIndex_[b]}function b(a){a.entries_=[],a.objectIndex_=Object.create(null),a.stringIndex_=Object.create(null),a.primitiveIndex_=Object.create(null),a.deletedCount_=0}var c=$traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/utils")).isObject,d=$traceurRuntime.getOwnHashObject,e=Object.prototype.hasOwnProperty,f={},g=function(){var a=arguments[0];if(!c(this))throw new TypeError("Constructor Map requires 'new'");if(e.call(this,"entries_"))throw new TypeError("Map can not be reentrantly initialised");if(b(this),null!==a&&void 0!==a){var d=a[Symbol.iterator];if(void 0!==d)for(var f,g=a[Symbol.iterator]();!(f=g.next()).done;){var h=$traceurRuntime.assertObject(f.value),i=h[0],j=h[1];this.set(i,j)}}};return $traceurRuntime.createClass(g,{get size(){return this.entries_.length/2-this.deletedCount_},get:function(b){var c=a(this,b);return void 0!==c?this.entries_[c+1]:void 0},set:function(b,e){var f=c(b),g="string"==typeof b,h=a(this,b);if(void 0!==h)this.entries_[h+1]=e;else if(h=this.entries_.length,this.entries_[h]=b,this.entries_[h+1]=e,f){var i=d(b),j=i.hash;this.objectIndex_[j]=h}else g?this.stringIndex_[b]=h:this.primitiveIndex_[b]=h;return this},has:function(b){return void 0!==a(this,b)},"delete":function(a){var b,e,g=c(a),h="string"==typeof a;if(g){var i=d(a);i&&(b=this.objectIndex_[e=i.hash],delete this.objectIndex_[e])}else h?(b=this.stringIndex_[a],delete this.stringIndex_[a]):(b=this.primitiveIndex_[a],delete this.primitiveIndex_[a]);void 0!==b&&(this.entries_[b]=f,this.entries_[b+1]=void 0,this.deletedCount_++)},clear:function(){b(this)},forEach:function(a){for(var b=arguments[1],c=0,d=this.entries_.length;d>c;c+=2){var e=this.entries_[c],g=this.entries_[c+1];e!==f&&a.call(b,g,e,this)}}},{}),{get Map(){return g}}}),System.register("traceur-runtime@0.0.41/node_modules/rsvp/lib/rsvp/asap",[],function(){"use strict";function a(){return function(){process.nextTick(d)}}function b(){var a=0,b=new h(d),c=document.createTextNode("");return b.observe(c,{characterData:!0}),function(){c.data=a=++a%2}}function c(){return function(){setTimeout(d,1)}}function d(){for(var a=0;a<i.length;a++){var b=i[a],c=b[0],d=b[1];c(d)}i=[]}var e,f=function(a,b){var c=i.push([a,b]);1===c&&e()},g="undefined"!=typeof window?window:{},h=g.MutationObserver||g.WebKitMutationObserver,i=[];return e="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?a():h?b():c(),{get default(){return f}}}),System.register("traceur-runtime@0.0.41/src/runtime/polyfills/Promise",[],function(){"use strict";function a(a){return a&&"object"==typeof a&&void 0!==a.status_}function b(a){return a}function c(a){throw a}function d(a){var d=void 0!==arguments[1]?arguments[1]:b,f=void 0!==arguments[2]?arguments[2]:c,g=e(a.constructor);switch(a.status_){case void 0:throw TypeError;case 0:a.onResolve_.push(d,g),a.onReject_.push(f,g);break;case 1:k(a.value_,[d,g]);break;case-1:k(a.value_,[f,g])}return g.promise}function e(a){if(this===r){var b=g(new r(p));return{promise:b,resolve:function(a){h(b,a)},reject:function(a){i(b,a)}}}var c={};return c.promise=new a(function(a,b){c.resolve=a,c.reject=b}),c}function f(a,b,c,d,e){return a.status_=b,a.value_=c,a.onResolve_=d,a.onReject_=e,a}function g(a){return f(a,0,void 0,[],[])}function h(a,b){j(a,1,b,a.onResolve_)}function i(a,b){j(a,-1,b,a.onReject_)}function j(a,b,c,d){0===a.status_&&(k(c,d),f(a,b,c))}function k(a,b){o(function(){for(var c=0;c<b.length;c+=2)l(a,b[c],b[c+1])})}function l(b,c,e){try{var f=c(b);if(f===e.promise)throw new TypeError;a(f)?d(f,e.resolve,e.reject):e.resolve(f)}catch(g){try{e.reject(g)}catch(g){}}}function m(a){return a&&("object"==typeof a||"function"==typeof a)}function n(b,c){if(!a(c)&&m(c)){var d;try{d=c.then}catch(f){var g=s.call(b,f);return c[t]=g,g}if("function"==typeof d){var h=c[t];if(h)return h;var i=e(b);c[t]=i.promise;try{d.call(c,i.resolve,i.reject)}catch(f){i.reject(f)}return i.promise}}return c}var o=$traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/node_modules/rsvp/lib/rsvp/asap")).default,p={},q=function(a){if(a!==p){if("function"!=typeof a)throw new TypeError;var b=g(this);try{a(function(a){h(b,a)},function(a){i(b,a)})}catch(c){i(b,c)}}};$traceurRuntime.createClass(q,{"catch":function(a){return this.then(void 0,a)},then:function(e,f){"function"!=typeof e&&(e=b),"function"!=typeof f&&(f=c);var g=this,h=this.constructor;return d(this,function(b){return b=n(h,b),b===g?f(new TypeError):a(b)?b.then(e,f):e(b)},f)}},{resolve:function(a){return this===r?f(new r(p),1,a):new this(function(b){b(a)})},reject:function(a){return this===r?f(new r(p),-1,a):new this(function(b,c){c(a)})},cast:function(b){if(b instanceof this)return b;if(a(b)){var c=e(this);return d(b,c.resolve,c.reject),c.promise}return this.resolve(b)},all:function(a){var b=e(this),c=[];try{var d=a.length;if(0===d)b.resolve(c);else for(var f=0;f<a.length;f++)this.resolve(a[f]).then(function(a,e){c[a]=e,0===--d&&b.resolve(c)}.bind(void 0,f),function(a){b.reject(a)})}catch(g){b.reject(g)}return b.promise},race:function(a){var b=e(this);try{for(var c=0;c<a.length;c++)this.resolve(a[c]).then(function(a){b.resolve(a)},function(a){b.reject(a)})}catch(d){b.reject(d)}return b.promise}});var r=q,s=r.reject,t="@@thenable";return{get Promise(){return q}}}),System.register("traceur-runtime@0.0.41/src/runtime/polyfills/String",[],function(){"use strict";function a(a){var b=String(this);if(null==this||"[object RegExp]"==h.call(a))throw TypeError();var c=b.length,d=String(a),e=(d.length,arguments.length>1?arguments[1]:void 0),f=e?Number(e):0;isNaN(f)&&(f=0);var g=Math.min(Math.max(f,0),c);return i.call(b,d,f)==g}function b(a){var b=String(this);if(null==this||"[object RegExp]"==h.call(a))throw TypeError();var c=b.length,d=String(a),e=d.length,f=c;if(arguments.length>1){var g=arguments[1];void 0!==g&&(f=g?Number(g):0,isNaN(f)&&(f=0))}var i=Math.min(Math.max(f,0),c),k=i-e;return 0>k?!1:j.call(b,d,k)==k}function c(a){if(null==this)throw TypeError();var b=String(this),c=b.length,d=String(a),e=(d.length,arguments.length>1?arguments[1]:void 0),f=e?Number(e):0;isNaN(f)&&(f=0);Math.min(Math.max(f,0),c);return-1!=i.call(b,d,f)}function d(a){if(null==this)throw TypeError();var b=String(this),c=a?Number(a):0;if(isNaN(c)&&(c=0),0>c||1/0==c)throw RangeError();if(0==c)return"";for(var d="";c--;)d+=b;return d}function e(a){if(null==this)throw TypeError();var b=String(this),c=b.length,d=a?Number(a):0;if(isNaN(d)&&(d=0),0>d||d>=c)return void 0;var e,f=b.charCodeAt(d);return f>=55296&&56319>=f&&c>d+1&&(e=b.charCodeAt(d+1),e>=56320&&57343>=e)?1024*(f-55296)+e-56320+65536:f}function f(a){var b=a.raw,c=b.length>>>0;if(0===c)return"";for(var d="",e=0;;){if(d+=b[e],e+1===c)return d;d+=arguments[++e]}}function g(){var a,b,c=[],d=Math.floor,e=-1,f=arguments.length;if(!f)return"";for(;++e<f;){var g=Number(arguments[e]);if(!isFinite(g)||0>g||g>1114111||d(g)!=g)throw RangeError("Invalid code point: "+g);65535>=g?c.push(g):(g-=65536,a=(g>>10)+55296,b=g%1024+56320,c.push(a,b))}return String.fromCharCode.apply(null,c)}var h=Object.prototype.toString,i=String.prototype.indexOf,j=String.prototype.lastIndexOf;return{get startsWith(){return a},get endsWith(){return b},get contains(){return c},get repeat(){return d},get codePointAt(){return e},get raw(){return f},get fromCodePoint(){return g}}}),System.register("traceur-runtime@0.0.41/src/runtime/polyfills/polyfills",[],function(){"use strict";function a(a,b,c){b in a||Object.defineProperty(a,b,{value:c,configurable:!0,enumerable:!1,writable:!0})}function b(b,c){for(var d=0;d<c.length;d+=2){var e=c[d],f=c[d+1];a(b,e,f)}}function c(a){a.Promise||(a.Promise=i)}function d(a){a.Map||(a.Map=h)}function e(a){b(a.prototype,["codePointAt",k,"contains",l,"endsWith",m,"startsWith",q,"repeat",o]),b(a,["fromCodePoint",n,"raw",p])}function f(a,c){b(a.prototype,["entries",u,"keys",v,"values",w,"fill",r,"find",s,"findIndex",t]),c&&c.iterator&&Object.defineProperty(a.prototype,c.iterator,{value:w,configurable:!0,enumerable:!1,writable:!0})}function g(a){c(a),d(a),e(a.String),f(a.Array,a.Symbol)}var h=$traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/Map")).Map,i=$traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/Promise")).Promise,j=$traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/String")),k=j.codePointAt,l=j.contains,m=j.endsWith,n=j.fromCodePoint,o=j.repeat,p=j.raw,q=j.startsWith,j=$traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/Array")),r=j.fill,s=j.find,t=j.findIndex,j=$traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/ArrayIterator")),u=j.entries,v=j.keys,w=j.values;g(this);var x=$traceurRuntime.setupGlobals;return $traceurRuntime.setupGlobals=function(a){x(a),g(a)},{}}),System.register("traceur-runtime@0.0.41/src/runtime/polyfill-import",[],function(){"use strict";$traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/polyfills"));return{}}),System.get("traceur-runtime@0.0.41/src/runtime/polyfill-import"); +!function(a){"use strict";function b(a){return{configurable:!0,enumerable:!1,value:a,writable:!0}}function c(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++P+"$__"}function d(){var a=c();return U[a]=!0,a}function e(a){return"object"==typeof a&&a instanceof h}function f(a){return e(a)?"symbol":typeof a}function g(a){var b=new h(a);if(!(this instanceof g))return b;throw new TypeError("Symbol cannot be new'ed")}function h(a){var b=c();E(this,S,{value:this}),E(this,Q,{value:b}),E(this,R,{value:a}),j(this),T[b]=this}function i(a){var b=a[V];return b&&b.self===a?b:M(a)?(X.hash.value=Y++,X.self.value=a,W.value=C(null,X),E(a,V,W),W.value):void 0}function j(a){return i(a),F.apply(this,arguments)}function k(a){return i(a),K.apply(this,arguments)}function l(a){return i(a),L.apply(this,arguments)}function m(a){return e(a)?a[Q]:a}function n(a){for(var b=[],c=H(a),d=0;d<c.length;d++){var e=c[d];T[e]||U[e]||b.push(e)}return b}function o(a,b){return G(a,m(b))}function p(a){for(var b=[],c=H(a),d=0;d<c.length;d++){var e=T[c[d]];e&&b.push(e)}return b}function q(a){return J.call(this,m(a))}function r(b){return a.traceur&&a.traceur.options[b]}function s(a,b,c){var d,f;return e(b)&&(d=b,b=b[Q]),a[b]=c,d&&(f=G(a,b))&&E(a,b,{enumerable:!1}),c}function t(a,b,c){return e(b)&&(c.enumerable&&(c=C(c,{enumerable:{value:!1}})),b=b[Q]),E(a,b,c),a}function u(a){E(a,"defineProperty",{value:t}),E(a,"getOwnPropertyNames",{value:n}),E(a,"getOwnPropertyDescriptor",{value:o}),E(a.prototype,"hasOwnProperty",{value:q}),E(a,"freeze",{value:j}),E(a,"preventExtensions",{value:k}),E(a,"seal",{value:l}),a.getOwnPropertySymbols=p}function v(a){for(var b=1;b<arguments.length;b++)for(var c=H(arguments[b]),d=0;d<c.length;d++){var e=c[d];U[e]||!function(b,c){E(a,c,{get:function(){return b[c]},enumerable:!0})}(arguments[b],c[d])}return a}function w(a){return null!=a&&("object"==typeof a||"function"==typeof a)}function x(a){if(null==a)throw B();return A(a)}function y(a){if(null==a)throw new TypeError("Value cannot be converted to an Object");return a}function z(a){a.Symbol=g,a.Reflect=a.Reflect||{},a.Reflect.global=a.Reflect.global||a,u(a.Object)}if(!a.$traceurRuntime){var A=Object,B=TypeError,C=A.create,D=A.defineProperties,E=A.defineProperty,F=A.freeze,G=A.getOwnPropertyDescriptor,H=A.getOwnPropertyNames,I=A.keys,J=A.prototype.hasOwnProperty,K=(A.prototype.toString,Object.preventExtensions),L=Object.seal,M=Object.isExtensible,N={"void":function(){},any:function(){},string:function(){},number:function(){},"boolean":function(){}},O=b,P=0,Q=c(),R=c(),S=c(),T=C(null),U=C(null);E(g.prototype,"constructor",b(g)),E(g.prototype,"toString",O(function(){var a=this[S];if(!r("symbols"))return a[Q];if(!a)throw TypeError("Conversion from symbol to string");var b=a[R];return void 0===b&&(b=""),"Symbol("+b+")"})),E(g.prototype,"valueOf",O(function(){var a=this[S];if(!a)throw TypeError("Conversion from symbol to string");return r("symbols")?a:a[Q]})),E(h.prototype,"constructor",b(g)),E(h.prototype,"toString",{value:g.prototype.toString,enumerable:!1}),E(h.prototype,"valueOf",{value:g.prototype.valueOf,enumerable:!1});var V=d(),W={value:void 0},X={hash:{value:void 0},self:{value:void 0}},Y=0;g.iterator=g(),j(h.prototype),z(a),a.$traceurRuntime={createPrivateName:d,exportStar:v,getOwnHashObject:i,privateNames:U,setProperty:s,setupGlobals:z,toObject:x,isObject:w,toProperty:m,type:N,"typeof":f,checkObjectCoercible:y,hasOwnProperty:function(a,b){return q.call(a,b)},defineProperties:D,defineProperty:E,getOwnPropertyDescriptor:G,getOwnPropertyNames:H,keys:I}}}("undefined"!=typeof global?global:this),function(){"use strict";function a(){for(var a,b=[],c=0,d=0;d<arguments.length;d++){var e=$traceurRuntime.checkObjectCoercible(arguments[d]);if("function"!=typeof e[$traceurRuntime.toProperty(Symbol.iterator)])throw new TypeError("Cannot spread non-iterable object.");for(var f=e[$traceurRuntime.toProperty(Symbol.iterator)]();!(a=f.next()).done;)b[c++]=a.value}return b}$traceurRuntime.spread=a}(),function(){"use strict";function a(a,b){var c=p(a);do{var d=n(c,b);if(d)return d;c=p(c)}while(c);return void 0}function b(a,b,d,e){return c(a,b,d).apply(a,e)}function c(b,c,d){var e=a(c,d);return e?e.get?e.get.call(b):e.value:void 0}function d(b,c,d,e){var f=a(c,d);if(f&&f.set)return f.set.call(b,e),e;throw j("super has no setter '"+d+"'.")}function e(a){for(var b,c={},d=o(a),e=0;e<d.length;e++){var b=d[e];c[b]=n(a,b)}return c}function f(a,b,c,d){return m(b,"constructor",{value:a,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof d&&(a.__proto__=d),a.prototype=k(g(d),e(b))):a.prototype=b,m(a,"prototype",{configurable:!1,writable:!1}),l(a,e(c))}function g(a){if("function"==typeof a){var b=a.prototype;if(i(b)===b||null===b)return a.prototype;throw new j("super prototype must be an Object or null")}if(null===a)return null;throw new j("Super expression must either be null or a function, not "+typeof a+".")}function h(a,c,d){null!==p(c)&&b(a,c,"constructor",d)}var i=Object,j=TypeError,k=i.create,l=$traceurRuntime.defineProperties,m=$traceurRuntime.defineProperty,n=$traceurRuntime.getOwnPropertyDescriptor,o=$traceurRuntime.getOwnPropertyNames,p=Object.getPrototypeOf;$traceurRuntime.createClass=f,$traceurRuntime.defaultSuperCall=h,$traceurRuntime.superCall=b,$traceurRuntime.superGet=c,$traceurRuntime.superSet=d}(),function(){"use strict";function a(a){return{configurable:!0,enumerable:!1,value:a,writable:!0}}function b(a){return new Error("Traceur compiler bug: invalid state in state machine: "+a)}function c(){this.state=0,this.GState=r,this.storedException=void 0,this.finallyFallThrough=void 0,this.sent_=void 0,this.returnValue=void 0,this.tryStack_=[]}function d(a,b,c,d){switch(a.GState){case s:throw new Error('"'+c+'" on executing generator');case u:if("next"==c)return{value:void 0,done:!0};throw d;case r:if("throw"===c)throw a.GState=u,d;if(void 0!==d)throw q("Sent value to newborn generator");case t:a.GState=s,a.action=c,a.sent=d;var e=b(a),f=e===a;return f&&(e=a.returnValue),a.GState=f?u:t,{value:e,done:f}}}function e(){}function f(){}function g(a,b,d){var e=k(a,d),f=new c,g=p(b.prototype);return g[x]=f,g[y]=e,g}function h(a){return a.prototype=p(f.prototype),a.__proto__=f,a}function i(){c.call(this),this.err=void 0;var a=this;a.result=new Promise(function(b,c){a.resolve=b,a.reject=c})}function j(a,b){var c=k(a,b),d=new i;return d.createCallback=function(a){return function(b){d.state=a,d.value=b,c(d)}},d.errback=function(a){l(d,a),c(d)},c(d),d.result}function k(a,b){return function(c){for(;;)try{return a.call(b,c)}catch(d){l(c,d)}}}function l(a,b){a.storedException=b;var c=a.tryStack_[a.tryStack_.length-1];return c?(a.state=void 0!==c.catch?c.catch:c.finally,void(void 0!==c.finallyFallThrough&&(a.finallyFallThrough=c.finallyFallThrough))):void a.handleException(b)}var m=$traceurRuntime.createPrivateName,n=$traceurRuntime.defineProperties,o=$traceurRuntime.defineProperty,p=Object.create,q=TypeError,r=0,s=1,t=2,u=3,v=-2,w=-3;c.prototype={pushTry:function(a,b){if(null!==b){for(var c=null,d=this.tryStack_.length-1;d>=0;d--)if(void 0!==this.tryStack_[d].catch){c=this.tryStack_[d].catch;break}null===c&&(c=w),this.tryStack_.push({"finally":b,finallyFallThrough:c})}null!==a&&this.tryStack_.push({"catch":a})},popTry:function(){this.tryStack_.pop()},get sent(){return this.maybeThrow(),this.sent_},set sent(a){this.sent_=a},get sentIgnoreThrow(){return this.sent_},maybeThrow:function(){if("throw"===this.action)throw this.action="next",this.sent_},end:function(){switch(this.state){case v:return this;case w:throw this.storedException;default:throw b(this.state)}},handleException:function(a){throw this.GState=u,this.state=v,a}};var x=m(),y=m();e.prototype=f,o(f,"constructor",a(e)),f.prototype={constructor:f,next:function(a){return d(this[x],this[y],"next",a)},"throw":function(a){return d(this[x],this[y],"throw",a)}},n(f.prototype,{constructor:{enumerable:!1},next:{enumerable:!1},"throw":{enumerable:!1}}),Object.defineProperty(f.prototype,Symbol.iterator,a(function(){return this})),i.prototype=p(c.prototype),i.prototype.end=function(){switch(this.state){case v:this.resolve(this.returnValue);break;case w:this.reject(this.storedException);break;default:this.reject(b(this.state))}},i.prototype.handleException=function(){this.state=w},$traceurRuntime.asyncWrap=j,$traceurRuntime.initGeneratorFunction=h,$traceurRuntime.createGeneratorInstance=g}(),function(){function a(a,b,c,d,e,f,g){var h=[];return a&&h.push(a,":"),c&&(h.push("//"),b&&h.push(b,"@"),h.push(c),d&&h.push(":",d)),e&&h.push(e),f&&h.push("?",f),g&&h.push("#",g),h.join("")}function b(a){return a.match(h)}function c(a){if("/"===a)return"/";for(var b="/"===a[0]?"/":"",c="/"===a.slice(-1)?"/":"",d=a.split("/"),e=[],f=0,g=0;g<d.length;g++){var h=d[g];switch(h){case"":case".":break;case"..":e.length?e.pop():f++;break;default:e.push(h)}}if(!b){for(;f-->0;)e.unshift("..");0===e.length&&e.push(".")}return b+e.join("/")+c}function d(b){var d=b[i.PATH]||"";return d=c(d),b[i.PATH]=d,a(b[i.SCHEME],b[i.USER_INFO],b[i.DOMAIN],b[i.PORT],b[i.PATH],b[i.QUERY_DATA],b[i.FRAGMENT])}function e(a){var c=b(a);return d(c)}function f(a,c){var e=b(c),f=b(a);if(e[i.SCHEME])return d(e);e[i.SCHEME]=f[i.SCHEME];for(var g=i.SCHEME;g<=i.PORT;g++)e[g]||(e[g]=f[g]);if("/"==e[i.PATH][0])return d(e);var h=f[i.PATH],j=h.lastIndexOf("/");return h=h.slice(0,j+1)+e[i.PATH],e[i.PATH]=h,d(e)}function g(a){if(!a)return!1;if("/"===a[0])return!0;var c=b(a);return c[i.SCHEME]?!0:!1}var h=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),i={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};$traceurRuntime.canonicalizeUrl=e,$traceurRuntime.isAbsolute=g,$traceurRuntime.removeDotSegments=c,$traceurRuntime.resolveUrl=f}(),function(a){"use strict";function b(a){if(a){var b=p.normalize(a);return i[b]}}function c(a){var b=arguments[1],c=Object.create(null);return Object.getOwnPropertyNames(a).forEach(function(d){var e,f;if(b===o){var g=Object.getOwnPropertyDescriptor(a,d);g.get&&(e=g.get)}e||(f=a[d],e=function(){return f}),Object.defineProperty(c,d,{get:e,enumerable:!0})}),Object.preventExtensions(c),c}var d,e=$traceurRuntime,f=e.canonicalizeUrl,g=e.resolveUrl,h=e.isAbsolute,i=Object.create(null);d=a.location&&a.location.href?g(a.location.href,"./"):"";var j=function(a,b){this.url=a,this.value_=b};$traceurRuntime.createClass(j,{},{});var k=function(a,b){this.message=this.constructor.name+(b?": '"+b+"'":"")+" in "+a};$traceurRuntime.createClass(k,{loadedBy:function(a){this.message+="\n loaded by "+a}},{},Error);var l=function(a,b){$traceurRuntime.superCall(this,m.prototype,"constructor",[a,null]),this.func=b},m=l;$traceurRuntime.createClass(l,{getUncoatedModule:function(){if(this.value_)return this.value_;try{return this.value_=this.func.call(a)}catch(b){if(b instanceof k)throw b.loadedBy(this.url),b;throw new k(this.url,b)}}},{},j);var n=Object.create(null),o={},p={normalize:function(a,b){if("string"!=typeof a)throw new TypeError("module name must be a string, not "+typeof a);if(h(a))return f(a);if(/[^\.]\/\.\.\//.test(a))throw new Error("module name embeds /../: "+a);return"."===a[0]&&b?g(b,a):f(a)},get:function(a){var d=b(a);if(!d)return void 0;var e=n[d.url];return e?e:(e=c(d.getUncoatedModule(),o),n[d.url]=e)},set:function(a,b){a=String(a),i[a]=new l(a,function(){return b}),n[a]=b},get baseURL(){return d},set baseURL(a){d=String(a)},registerModule:function(a,b){var c=p.normalize(a);if(i[c])throw new Error("duplicate module named "+c);i[c]=new l(c,b)},bundleStore:Object.create(null),register:function(a,b,c){b&&(b.length||c.length)?this.bundleStore[a]={deps:b,execute:function(){var a=arguments,d={};b.forEach(function(b,c){return d[b]=a[c]});var e=c.call(this,d);return e.execute.call(this),e.exports}}:this.registerModule(a,c)},getAnonymousModule:function(b){return new c(b.call(a),o)},getForTesting:function(a){var b=this;return this.testingPrefix_||Object.keys(n).some(function(a){var c=/(traceur@[^\/]*\/)/.exec(a);return c?(b.testingPrefix_=c[1],!0):void 0}),this.get(this.testingPrefix_+a)}};p.set("@traceur/src/runtime/ModuleStore",new c({ModuleStore:p}));var q=$traceurRuntime.setupGlobals;$traceurRuntime.setupGlobals=function(a){q(a)},$traceurRuntime.ModuleStore=p,a.System={register:p.register.bind(p),get:p.get,set:p.set,normalize:p.normalize},$traceurRuntime.getModuleImpl=function(a){var c=b(a);return c&&c.getUncoatedModule()}}("undefined"!=typeof global?global:this),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/utils",[],function(){"use strict";function a(a){return a>>>0}function b(a){return a&&("object"==typeof a||"function"==typeof a)}function c(a){return"function"==typeof a}function d(a){return"number"==typeof a}function e(a){return a=+a,u(a)?0:0!==a&&t(a)?a>0?s(a):r(a):a}function f(a){var b=e(a);return 0>b?0:w(b,y)}function g(a){return b(a)?a[Symbol.iterator]:void 0}function h(a){return c(a)}function i(a,b){return{value:a,done:b}}function j(a,b,c){b in a||Object.defineProperty(a,b,c)}function k(a,b,c){j(a,b,{value:c,configurable:!0,enumerable:!1,writable:!0})}function l(a,b,c){j(a,b,{value:c,configurable:!1,enumerable:!1,writable:!1})}function m(a,b){for(var c=0;c<b.length;c+=2){var d=b[c],e=b[c+1];k(a,d,e)}}function n(a,b){for(var c=0;c<b.length;c+=2){var d=b[c],e=b[c+1];l(a,d,e)}}function o(a,b,c){c&&c.iterator&&!a[c.iterator]&&(a["@@iterator"]&&(b=a["@@iterator"]),Object.defineProperty(a,c.iterator,{value:b,configurable:!0,enumerable:!1,writable:!0}))}function p(a){z.push(a)}function q(a){z.forEach(function(b){return b(a)})}var r=Math.ceil,s=Math.floor,t=isFinite,u=isNaN,v=Math.pow,w=Math.min,x=$traceurRuntime.toObject,y=v(2,53)-1,z=[];return{get toObject(){return x},get toUint32(){return a},get isObject(){return b},get isCallable(){return c},get isNumber(){return d},get toInteger(){return e},get toLength(){return f},get checkIterable(){return g},get isConstructor(){return h},get createIteratorResultObject(){return i},get maybeDefine(){return j},get maybeDefineMethod(){return k},get maybeDefineConst(){return l},get maybeAddFunctions(){return m},get maybeAddConsts(){return n},get maybeAddIterator(){return o},get registerPolyfill(){return p},get polyfillAll(){return q}}}),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Map",[],function(){"use strict";function a(a,b){if(e(b)){var c=h(b);return c&&a.objectIndex_[c.hash]}return"string"==typeof b?a.stringIndex_[b]:a.primitiveIndex_[b]}function b(a){a.entries_=[],a.objectIndex_=Object.create(null),a.stringIndex_=Object.create(null),a.primitiveIndex_=Object.create(null),a.deletedCount_=0}function c(a){var b=a,c=b.Object,d=b.Symbol;a.Map||(a.Map=k);var e=a.Map.prototype;e.entries&&(f(e,e.entries,d),f(c.getPrototypeOf((new a.Map).entries()),function(){return this},d))}var d=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),e=d.isObject,f=d.maybeAddIterator,g=d.registerPolyfill,h=$traceurRuntime.getOwnHashObject,i=Object.prototype.hasOwnProperty,j={},k=function(){var a=arguments[0];if(!e(this))throw new TypeError("Map called on incompatible type");if(i.call(this,"entries_"))throw new TypeError("Map can not be reentrantly initialised");if(b(this),null!==a&&void 0!==a)for(var c,d=a[Symbol.iterator]();!(c=d.next()).done;){var f=c.value,g=f[0],h=f[1];this.set(g,h)}};return $traceurRuntime.createClass(k,{get size(){return this.entries_.length/2-this.deletedCount_},get:function(b){var c=a(this,b);return void 0!==c?this.entries_[c+1]:void 0},set:function(b,c){var d=e(b),f="string"==typeof b,g=a(this,b);if(void 0!==g)this.entries_[g+1]=c;else if(g=this.entries_.length,this.entries_[g]=b,this.entries_[g+1]=c,d){var i=h(b),j=i.hash;this.objectIndex_[j]=g}else f?this.stringIndex_[b]=g:this.primitiveIndex_[b]=g;return this},has:function(b){return void 0!==a(this,b)},"delete":function(a){var b,c,d=e(a),f="string"==typeof a;if(d){var g=h(a);g&&(b=this.objectIndex_[c=g.hash],delete this.objectIndex_[c])}else f?(b=this.stringIndex_[a],delete this.stringIndex_[a]):(b=this.primitiveIndex_[a],delete this.primitiveIndex_[a]);void 0!==b&&(this.entries_[b]=j,this.entries_[b+1]=void 0,this.deletedCount_++)},clear:function(){b(this)},forEach:function(a){for(var b=arguments[1],c=0,d=this.entries_.length;d>c;c+=2){var e=this.entries_[c],f=this.entries_[c+1];e!==j&&a.call(b,f,e,this)}},entries:$traceurRuntime.initGeneratorFunction(function l(){var a,b,c,d;return $traceurRuntime.createGeneratorInstance(function(e){for(;;)switch(e.state){case 0:a=0,b=this.entries_.length,e.state=12;break;case 12:e.state=b>a?8:-2;break;case 4:a+=2,e.state=12;break;case 8:c=this.entries_[a],d=this.entries_[a+1],e.state=9;break;case 9:e.state=c===j?4:6;break;case 6:return e.state=2,[c,d];case 2:e.maybeThrow(),e.state=4;break;default:return e.end()}},l,this)}),keys:$traceurRuntime.initGeneratorFunction(function m(){var a,b,c,d;return $traceurRuntime.createGeneratorInstance(function(e){for(;;)switch(e.state){case 0:a=0,b=this.entries_.length,e.state=12;break;case 12:e.state=b>a?8:-2;break;case 4:a+=2,e.state=12;break;case 8:c=this.entries_[a],d=this.entries_[a+1],e.state=9;break;case 9:e.state=c===j?4:6;break;case 6:return e.state=2,c;case 2:e.maybeThrow(),e.state=4;break;default:return e.end()}},m,this)}),values:$traceurRuntime.initGeneratorFunction(function n(){var a,b,c,d;return $traceurRuntime.createGeneratorInstance(function(e){for(;;)switch(e.state){case 0:a=0,b=this.entries_.length,e.state=12;break;case 12:e.state=b>a?8:-2;break;case 4:a+=2,e.state=12;break;case 8:c=this.entries_[a],d=this.entries_[a+1],e.state=9;break;case 9:e.state=c===j?4:6;break;case 6:return e.state=2,d;case 2:e.maybeThrow(),e.state=4;break;default:return e.end()}},n,this)})},{}),Object.defineProperty(k.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:k.prototype.entries}),g(c),{get Map(){return k},get polyfillMap(){return c}}}),System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Map"),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Set",[],function(){"use strict";function a(a){a.map_=new g}function b(a){var b=a,c=b.Object,d=b.Symbol;a.Set||(a.Set=i);var f=a.Set.prototype;f.values&&(e(f,f.values,d),e(c.getPrototypeOf((new a.Set).values()),function(){return this},d))}var c=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),d=c.isObject,e=c.maybeAddIterator,f=c.registerPolyfill,g=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Map").Map,h=($traceurRuntime.getOwnHashObject,Object.prototype.hasOwnProperty),i=function(){var b=arguments[0];if(!d(this))throw new TypeError("Set called on incompatible type");if(h.call(this,"map_"))throw new TypeError("Set can not be reentrantly initialised");if(a(this),null!==b&&void 0!==b)for(var c,e=b[Symbol.iterator]();!(c=e.next()).done;){var f=c.value;this.add(f)}};return $traceurRuntime.createClass(i,{get size(){return this.map_.size},has:function(a){return this.map_.has(a)},add:function(a){return this.map_.set(a,a)},"delete":function(a){return this.map_.delete(a)},clear:function(){return this.map_.clear()},forEach:function(a){var b=arguments[1],c=this;return this.map_.forEach(function(d,e){a.call(b,e,e,c)})},values:$traceurRuntime.initGeneratorFunction(function j(){var a,b;return $traceurRuntime.createGeneratorInstance(function(c){for(;;)switch(c.state){case 0:a=this.map_.keys()[Symbol.iterator](),c.sent=void 0,c.action="next",c.state=12;break;case 12:b=a[c.action](c.sentIgnoreThrow),c.state=9;break;case 9:c.state=b.done?3:2;break;case 3:c.sent=b.value,c.state=-2;break;case 2:return c.state=12,b.value;default:return c.end()}},j,this)}),entries:$traceurRuntime.initGeneratorFunction(function k(){var a,b;return $traceurRuntime.createGeneratorInstance(function(c){for(;;)switch(c.state){case 0:a=this.map_.entries()[Symbol.iterator](),c.sent=void 0,c.action="next",c.state=12;break;case 12:b=a[c.action](c.sentIgnoreThrow),c.state=9;break;case 9:c.state=b.done?3:2;break;case 3:c.sent=b.value,c.state=-2;break;case 2:return c.state=12,b.value;default:return c.end()}},k,this)})},{}),Object.defineProperty(i.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:i.prototype.values}),Object.defineProperty(i.prototype,"keys",{configurable:!0,writable:!0,value:i.prototype.values}),f(b),{get Set(){return i},get polyfillSet(){return b}}}),System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Set"),System.register("traceur-runtime@0.0.58/node_modules/rsvp/lib/rsvp/asap",[],function(){"use strict";function a(a,b){var c=j.push([a,b]);1===c&&f()}function b(){return function(){process.nextTick(e)}}function c(){var a=0,b=new i(e),c=document.createTextNode("");return b.observe(c,{characterData:!0}),function(){c.data=a=++a%2}}function d(){return function(){setTimeout(e,1)}}function e(){for(var a=0;a<j.length;a++){var b=j[a],c=b[0],d=b[1];c(d)}j=[]}var f,g=a,h="undefined"!=typeof window?window:{},i=h.MutationObserver||h.WebKitMutationObserver,j=[];return f="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?b():i?c():d(),{get default(){return g}}}),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Promise",[],function(){"use strict";function a(a){return a&&"object"==typeof a&&void 0!==a.status_}function b(a){return a}function c(a){throw a}function d(a){var d=void 0!==arguments[1]?arguments[1]:b,f=void 0!==arguments[2]?arguments[2]:c,g=e(a.constructor);switch(a.status_){case void 0:throw TypeError;case 0:a.onResolve_.push(d,g),a.onReject_.push(f,g);break;case 1:k(a.value_,[d,g]);break;case-1:k(a.value_,[f,g])}return g.promise}function e(a){if(this===t){var b=g(new t(r));return{promise:b,resolve:function(a){h(b,a)},reject:function(a){i(b,a)}}}var c={};return c.promise=new a(function(a,b){c.resolve=a,c.reject=b}),c}function f(a,b,c,d,e){return a.status_=b,a.value_=c,a.onResolve_=d,a.onReject_=e,a}function g(a){return f(a,0,void 0,[],[])}function h(a,b){j(a,1,b,a.onResolve_)}function i(a,b){j(a,-1,b,a.onReject_)}function j(a,b,c,d){0===a.status_&&(k(c,d),f(a,b,c))}function k(a,b){p(function(){for(var c=0;c<b.length;c+=2)l(a,b[c],b[c+1])})}function l(b,c,e){try{var f=c(b);if(f===e.promise)throw new TypeError;a(f)?d(f,e.resolve,e.reject):e.resolve(f)}catch(g){try{e.reject(g)}catch(g){}}}function m(a){return a&&("object"==typeof a||"function"==typeof a)}function n(b,c){if(!a(c)&&m(c)){var d;try{d=c.then}catch(f){var g=u.call(b,f);return c[v]=g,g}if("function"==typeof d){var h=c[v];if(h)return h;var i=e(b);c[v]=i.promise;try{d.call(c,i.resolve,i.reject)}catch(f){i.reject(f)}return i.promise}}return c}function o(a){a.Promise||(a.Promise=s)}var p=System.get("traceur-runtime@0.0.58/node_modules/rsvp/lib/rsvp/asap").default,q=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils").registerPolyfill,r={},s=function(a){if(a!==r){if("function"!=typeof a)throw new TypeError;var b=g(this);try{a(function(a){h(b,a)},function(a){i(b,a)})}catch(c){i(b,c)}}};$traceurRuntime.createClass(s,{"catch":function(a){return this.then(void 0,a)},then:function(e,f){"function"!=typeof e&&(e=b),"function"!=typeof f&&(f=c);var g=this,h=this.constructor;return d(this,function(b){return b=n(h,b),b===g?f(new TypeError):a(b)?b.then(e,f):e(b)},f)}},{resolve:function(a){return this===t?f(new t(r),1,a):new this(function(b){b(a)})},reject:function(a){return this===t?f(new t(r),-1,a):new this(function(b,c){c(a)})},cast:function(b){if(b instanceof this)return b;if(a(b)){var c=e(this);return d(b,c.resolve,c.reject),c.promise}return this.resolve(b)},all:function(a){var b=e(this),c=[];try{var d=a.length;if(0===d)b.resolve(c);else for(var f=0;f<a.length;f++)this.resolve(a[f]).then(function(a,e){c[a]=e,0===--d&&b.resolve(c)}.bind(void 0,f),function(a){b.reject(a)})}catch(g){b.reject(g)}return b.promise},race:function(a){var b=e(this);try{for(var c=0;c<a.length;c++)this.resolve(a[c]).then(function(a){b.resolve(a)},function(a){b.reject(a)})}catch(d){b.reject(d)}return b.promise}});var t=s,u=t.reject,v="@@thenable";return q(o),{get Promise(){return s},get polyfillPromise(){return o}}}),System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Promise"),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/StringIterator",[],function(){"use strict";function a(a){var b=String(a),c=Object.create(k.prototype);return c[h(i)]=b,c[h(j)]=0,c}var b,c=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),d=c.createIteratorResultObject,e=c.isObject,f=$traceurRuntime,g=f.hasOwnProperty,h=f.toProperty,i=Symbol("iteratedString"),j=Symbol("stringIteratorNextIndex"),k=function(){};return $traceurRuntime.createClass(k,(b={},Object.defineProperty(b,"next",{value:function(){var a=this;if(!e(a)||!g(a,i))throw new TypeError("this must be a StringIterator object");var b=a[h(i)];if(void 0===b)return d(void 0,!0);var c=a[h(j)],f=b.length;if(c>=f)return a[h(i)]=void 0,d(void 0,!0);var k,l=b.charCodeAt(c);if(55296>l||l>56319||c+1===f)k=String.fromCharCode(l);else{var m=b.charCodeAt(c+1);k=56320>m||m>57343?String.fromCharCode(l):String.fromCharCode(l)+String.fromCharCode(m)}return a[h(j)]=c+k.length,d(k,!1)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(b,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),b),{}),{get createStringIterator(){return a}}}),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/String",[],function(){"use strict";function a(a){var b=String(this);if(null==this||"[object RegExp]"==o.call(a))throw TypeError();var c=b.length,d=String(a),e=(d.length,arguments.length>1?arguments[1]:void 0),f=e?Number(e):0;isNaN(f)&&(f=0);var g=Math.min(Math.max(f,0),c);return p.call(b,d,f)==g}function b(a){var b=String(this);if(null==this||"[object RegExp]"==o.call(a))throw TypeError();var c=b.length,d=String(a),e=d.length,f=c;if(arguments.length>1){var g=arguments[1];void 0!==g&&(f=g?Number(g):0,isNaN(f)&&(f=0))}var h=Math.min(Math.max(f,0),c),i=h-e;return 0>i?!1:q.call(b,d,i)==i}function c(a){if(null==this)throw TypeError();var b=String(this),c=b.length,d=String(a),e=(d.length,arguments.length>1?arguments[1]:void 0),f=e?Number(e):0;isNaN(f)&&(f=0);Math.min(Math.max(f,0),c);return-1!=p.call(b,d,f)}function d(a){if(null==this)throw TypeError();var b=String(this),c=a?Number(a):0;if(isNaN(c)&&(c=0),0>c||1/0==c)throw RangeError();if(0==c)return"";for(var d="";c--;)d+=b;return d}function e(a){if(null==this)throw TypeError();var b=String(this),c=b.length,d=a?Number(a):0;if(isNaN(d)&&(d=0),0>d||d>=c)return void 0;var e,f=b.charCodeAt(d);return f>=55296&&56319>=f&&c>d+1&&(e=b.charCodeAt(d+1),e>=56320&&57343>=e)?1024*(f-55296)+e-56320+65536:f}function f(a){var b=a.raw,c=b.length>>>0;if(0===c)return"";for(var d="",e=0;;){if(d+=b[e],e+1===c)return d;d+=arguments[++e]}}function g(){var a,b,c=[],d=Math.floor,e=-1,f=arguments.length;if(!f)return"";for(;++e<f;){var g=Number(arguments[e]);if(!isFinite(g)||0>g||g>1114111||d(g)!=g)throw RangeError("Invalid code point: "+g);65535>=g?c.push(g):(g-=65536,a=(g>>10)+55296,b=g%1024+56320,c.push(a,b))}return String.fromCharCode.apply(null,c)}function h(){var a=$traceurRuntime.checkObjectCoercible(this),b=String(a);return j(b)}function i(i){var j=i.String;l(j.prototype,["codePointAt",e,"contains",c,"endsWith",b,"startsWith",a,"repeat",d]),l(j,["fromCodePoint",g,"raw",f]),m(j.prototype,h,Symbol)}var j=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/StringIterator").createStringIterator,k=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),l=k.maybeAddFunctions,m=k.maybeAddIterator,n=k.registerPolyfill,o=Object.prototype.toString,p=String.prototype.indexOf,q=String.prototype.lastIndexOf;return n(i),{get startsWith(){return a},get endsWith(){return b},get contains(){return c},get repeat(){return d},get codePointAt(){return e},get raw(){return f},get fromCodePoint(){return g},get stringPrototypeIterator(){return h},get polyfillString(){return i}}}),System.get("traceur-runtime@0.0.58/src/runtime/polyfills/String"),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/ArrayIterator",[],function(){"use strict";function a(a,b){var c=g(a),d=new m;return d.iteratorObject_=c,d.arrayIteratorNextIndex_=0,d.arrayIterationKind_=b,d}function b(){return a(this,l)}function c(){return a(this,j)}function d(){return a(this,k)}var e,f=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),g=f.toObject,h=f.toUint32,i=f.createIteratorResultObject,j=1,k=2,l=3,m=function(){};return $traceurRuntime.createClass(m,(e={},O |