-
Notifications
You must be signed in to change notification settings - Fork 521
/
steal-with-promises.production.js
7 lines (6 loc) · 90.5 KB
/
steal-with-promises.production.js
1
2
3
4
5
6
7
/*
* steal v2.2.4
*
* Copyright (c) 2021 Bitovi; Licensed MIT
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.Promise=e():"undefined"!=typeof global?global.Promise=e():"undefined"!=typeof self&&(self.Promise=e())}(function(){return function e(t,n,r){function a(i,s){if(!n[i]){if(!t[i]){var l="function"==typeof require&&require;if(!s&&l)return l(i,!0);if(o)return o(i,!0);throw new Error("Cannot find module '"+i+"'")}var u=n[i]={exports:{}};t[i][0].call(u.exports,function(e){var n=t[i][1][e];return a(n||e)},u,u.exports,e,t,n,r)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<r.length;i++)a(r[i]);return a}({1:[function(e,t,n){var r=e("../lib/decorators/unhandledRejection")(e("../lib/Promise"));t.exports="undefined"!=typeof global?global.Promise=r:"undefined"!=typeof self?self.Promise=r:r},{"../lib/Promise":2,"../lib/decorators/unhandledRejection":4}],2:[function(e,t,n){!function(e){"use strict";e(function(e){return e("./makePromise")({scheduler:new(e("./Scheduler"))(e("./env").asap)})})}(function(n){t.exports=n(e)})},{"./Scheduler":3,"./env":5,"./makePromise":7}],3:[function(e,t,n){!function(e){"use strict";e(function(){function e(e){this._async=e,this._running=!1,this._queue=this,this._queueLen=0,this._afterQueue={},this._afterQueueLen=0;var t=this;this.drain=function(){t._drain()}}return e.prototype.enqueue=function(e){this._queue[this._queueLen++]=e,this.run()},e.prototype.afterQueue=function(e){this._afterQueue[this._afterQueueLen++]=e,this.run()},e.prototype.run=function(){this._running||(this._running=!0,this._async(this.drain))},e.prototype._drain=function(){for(var e=0;e<this._queueLen;++e)this._queue[e].run(),this._queue[e]=void 0;for(this._queueLen=0,this._running=!1,e=0;e<this._afterQueueLen;++e)this._afterQueue[e].run(),this._afterQueue[e]=void 0;this._afterQueueLen=0},e})}(function(e){t.exports=e()})},{}],4:[function(e,t,n){!function(e){"use strict";e(function(e){function t(e){throw e}function n(){}var r=e("../env").setTimer,a=e("../format");return function(e){function o(e){e.handled||(p.push(e),c("Potentially unhandled rejection ["+e.id+"] "+a.formatError(e.value)))}function i(e){var t=p.indexOf(e);t>=0&&(p.splice(t,1),d("Handled previous rejection ["+e.id+"] "+a.formatObject(e.value)))}function s(e,t){f.push(e,t),null===h&&(h=r(l,0))}function l(){for(h=null;f.length>0;)f.shift()(f.shift())}var u,c=n,d=n;"undefined"!=typeof console&&(u=console,c=void 0!==u.error?function(e){u.error(e)}:function(e){u.log(e)},d=void 0!==u.info?function(e){u.info(e)}:function(e){u.log(e)}),e.onPotentiallyUnhandledRejection=function(e){s(o,e)},e.onPotentiallyUnhandledRejectionHandled=function(e){s(i,e)},e.onFatalRejection=function(e){s(t,e.value)};var f=[],p=[],h=null;return e}})}(function(n){t.exports=n(e)})},{"../env":5,"../format":6}],5:[function(e,t,n){!function(e){"use strict";e(function(e){var t,n="undefined"!=typeof setTimeout&&setTimeout,r=function(e,t){return setTimeout(e,t)},a=function(e){return clearTimeout(e)},o=function(e){return n(e,0)};if("undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))o=function(e){return process.nextTick(e)};else if(t="function"==typeof MutationObserver&&MutationObserver||"function"==typeof WebKitMutationObserver&&WebKitMutationObserver)o=function(e){var t,n=document.createTextNode("");new e(function(){var e=t;t=void 0,e()}).observe(n,{characterData:!0});var r=0;return function(e){t=e,n.data=r^=1}}(t);else if(!n){var i=e("vertx");r=function(e,t){return i.setTimer(t,e)},a=i.cancelTimer,o=i.runOnLoop||i.runOnContext}return{setTimer:r,clearTimer:a,asap:o}})}(function(n){t.exports=n(e)})},{}],6:[function(e,t,n){!function(e){"use strict";e(function(){function e(e){var n=String(e);return"[object Object]"===n&&"undefined"!=typeof JSON&&(n=t(e,n)),n}function t(e,t){try{return JSON.stringify(e)}catch(e){return t}}return{formatError:function(t){var n="object"==typeof t&&null!==t&&(t.stack||t.message)?t.stack||t.message:e(t);return t instanceof Error?n:n+" (WARNING: non-Error used)"},formatObject:e,tryStringify:t}})}(function(e){t.exports=e()})},{}],7:[function(e,t,n){!function(e){"use strict";e(function(){return function(e){function t(e,t){this._handler=e===m?t:n(e)}function n(e){function t(e){n.reject(e)}var n=new g;try{e(function(e){n.resolve(e)},t,function(e){n.notify(e)})}catch(e){t(e)}return n}function r(e){return L(e)?e:new t(m,new b(f(e)))}function a(e){return new t(m,new b(new _(e)))}function o(){return Q}function i(e,t){return new t(m,new g(e.receiver,e.join().context))}function s(e,n,r){function a(e,t,n){c[e]=t,0==--u&&n.become(new x(c))}for(var o,i="function"==typeof n?function(t,o,i){i.resolved||l(r,a,t,e(n,o,t),i)}:a,s=new g,u=r.length>>>0,c=new Array(u),d=0;d<r.length&&!s.resolved;++d)void 0!==(o=r[d])||d in r?l(r,i,d,o,s):--u;return 0===u&&s.become(new x(c)),new t(m,s)}function l(e,t,n,r,a){if(I(r)){var o=p(r),i=o.state();0===i?o.fold(t,n,void 0,a):i>0?t(n,o.value,a):(a.become(o),u(e,n+1,o))}else t(n,r,a)}function u(e,t,n){for(var r=t;r<e.length;++r)c(f(e[r]),n)}function c(e,t){if(e!==t){var n=e.state();0===n?e.visit(e,void 0,e._unreport):n<0&&e._unreport()}}function d(e){var n,r,a,o=new g;for(n=0;n<e.length;++n)if(void 0!==(r=e[n])||n in e){if(0!==(a=f(r)).state()){o.become(a),u(e,n+1,a);break}a.visit(o,o.resolve,o.reject)}return new t(m,o)}function f(e){return L(e)?e._handler.join():I(e)?h(e):new x(e)}function p(e){return L(e)?e._handler.join():h(e)}function h(e){try{var t=e.then;return"function"==typeof t?new y(t,e):new x(e)}catch(e){return new _(e)}}function m(){}function v(){}function g(e,n){t.createContext(this,n),this.consumers=void 0,this.receiver=e,this.handler=void 0,this.resolved=!1}function b(e){this.handler=e}function y(e,t){g.call(this),U.enqueue(new P(e,t,this))}function x(e){t.createContext(this),this.value=e}function _(e){t.createContext(this),this.id=++H,this.value=e,this.handled=!1,this.reported=!1,this._report()}function w(e,t){this.rejection=e,this.context=t}function j(e){this.rejection=e}function S(){return new _(new TypeError("Promise cycle"))}function E(e,t){this.continuation=e,this.handler=t}function O(e,t){this.handler=t,this.value=e}function P(e,t,n){this._then=e,this.thenable=t,this.resolver=n}function M(e,t,n,r,a){try{e.call(t,n,r,a)}catch(e){r(e)}}function k(e,t,n,r){this.f=e,this.z=t,this.c=n,this.to=r,this.resolver=G,this.receiver=this}function L(e){return e instanceof t}function I(e){return("object"==typeof e||"function"==typeof e)&&null!==e}function R(e,n,r,a){if("function"!=typeof e)return a.become(n);t.enterContext(n),C(e,n.value,r,a),t.exitContext()}function T(e,n,r,a,o){if("function"!=typeof e)return o.become(r);t.enterContext(r),$(e,n,r.value,a,o),t.exitContext()}function N(e,n,r,a,o){if("function"!=typeof e)return o.notify(n);t.enterContext(r),q(e,n,a,o),t.exitContext()}function D(e,t,n){try{return e(t,n)}catch(e){return a(e)}}function C(e,t,n,r){try{r.become(f(e.call(n,t)))}catch(e){r.become(new _(e))}}function $(e,t,n,r,a){try{e.call(r,t,n,a)}catch(e){a.become(new _(e))}}function q(e,t,n,r){try{r.notify(e.call(n,t))}catch(e){r.notify(e)}}function F(e,t){t.prototype=W(e.prototype),t.prototype.constructor=t}function A(e,t){return t}function z(){}var U=e.scheduler,B="undefined"!=typeof process&&null!==process&&"function"==typeof process.emit?function(e,t){return"unhandledRejection"===e?process.emit(e,t.value,t):process.emit(e,t)}:"undefined"!=typeof self&&"function"==typeof CustomEvent?function(e,t,n){var r=!1;try{r=new n("unhandledRejection")instanceof n}catch(e){}return r?function(e,r){var a=new n(e,{detail:{reason:r.value,key:r},bubbles:!1,cancelable:!0});return!t.dispatchEvent(a)}:e}(z,self,CustomEvent):z,W=Object.create||function(e){function t(){}return t.prototype=e,new t};t.resolve=r,t.reject=a,t.never=o,t._defer=function(){return new t(m,new g)},t._handler=f,t.prototype.then=function(e,t,n){var r=this._handler,a=r.join().state();if("function"!=typeof e&&a>0||"function"!=typeof t&&a<0)return new this.constructor(m,r);var o=this._beget(),i=o._handler;return r.chain(i,r.receiver,e,t,n),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype._beget=function(){return i(this._handler,this.constructor)},t.all=function(e){return s(A,null,e)},t.race=function(e){return"object"!=typeof e||null===e?a(new TypeError("non-iterable passed to race()")):0===e.length?o():1===e.length?r(e[0]):d(e)},t._traverse=function(e,t){return s(D,e,t)},t._visitRemaining=u,m.prototype.when=m.prototype.become=m.prototype.notify=m.prototype.fail=m.prototype._unreport=m.prototype._report=z,m.prototype._state=0,m.prototype.state=function(){return this._state},m.prototype.join=function(){for(var e=this;void 0!==e.handler;)e=e.handler;return e},m.prototype.chain=function(e,t,n,r,a){this.when({resolver:e,receiver:t,fulfilled:n,rejected:r,progress:a})},m.prototype.visit=function(e,t,n,r){this.chain(G,e,t,n,r)},m.prototype.fold=function(e,t,n,r){this.when(new k(e,t,n,r))},F(m,v),v.prototype.become=function(e){e.fail()};var G=new v;F(m,g),g.prototype._state=0,g.prototype.resolve=function(e){this.become(f(e))},g.prototype.reject=function(e){this.resolved||this.become(new _(e))},g.prototype.join=function(){if(!this.resolved)return this;for(var e=this;void 0!==e.handler;)if((e=e.handler)===this)return this.handler=S();return e},g.prototype.run=function(){var e=this.consumers,t=this.handler;this.handler=this.handler.join(),this.consumers=void 0;for(var n=0;n<e.length;++n)t.when(e[n])},g.prototype.become=function(e){this.resolved||(this.resolved=!0,this.handler=e,void 0!==this.consumers&&U.enqueue(this),void 0!==this.context&&e._report(this.context))},g.prototype.when=function(e){this.resolved?U.enqueue(new E(e,this.handler)):void 0===this.consumers?this.consumers=[e]:this.consumers.push(e)},g.prototype.notify=function(e){this.resolved||U.enqueue(new O(e,this))},g.prototype.fail=function(e){var t=void 0===e?this.context:e;this.resolved&&this.handler.join().fail(t)},g.prototype._report=function(e){this.resolved&&this.handler.join()._report(e)},g.prototype._unreport=function(){this.resolved&&this.handler.join()._unreport()},F(m,b),b.prototype.when=function(e){U.enqueue(new E(e,this))},b.prototype._report=function(e){this.join()._report(e)},b.prototype._unreport=function(){this.join()._unreport()},F(g,y),F(m,x),x.prototype._state=1,x.prototype.fold=function(e,t,n,r){T(e,t,this,n,r)},x.prototype.when=function(e){R(e.fulfilled,this,e.receiver,e.resolver)};var H=0;F(m,_),_.prototype._state=-1,_.prototype.fold=function(e,t,n,r){r.become(this)},_.prototype.when=function(e){"function"==typeof e.rejected&&this._unreport(),R(e.rejected,this,e.receiver,e.resolver)},_.prototype._report=function(e){U.afterQueue(new w(this,e))},_.prototype._unreport=function(){this.handled||(this.handled=!0,U.afterQueue(new j(this)))},_.prototype.fail=function(e){this.reported=!0,B("unhandledRejection",this),t.onFatalRejection(this,void 0===e?this.context:e)},w.prototype.run=function(){this.rejection.handled||this.rejection.reported||(this.rejection.reported=!0,B("unhandledRejection",this.rejection)||t.onPotentiallyUnhandledRejection(this.rejection,this.context))},j.prototype.run=function(){this.rejection.reported&&(B("rejectionHandled",this.rejection)||t.onPotentiallyUnhandledRejectionHandled(this.rejection))},t.createContext=t.enterContext=t.exitContext=t.onPotentiallyUnhandledRejection=t.onPotentiallyUnhandledRejectionHandled=t.onFatalRejection=z;var Q=new t(m,new m);return E.prototype.run=function(){this.handler.join().when(this.continuation)},O.prototype.run=function(){var e=this.handler.consumers;if(void 0!==e)for(var t,n=0;n<e.length;++n)N((t=e[n]).progress,this.value,this.handler,t.receiver,t.resolver)},P.prototype.run=function(){var e=this.resolver;M(this._then,this.thenable,function(t){e.resolve(t)},function(t){e.reject(t)},function(t){e.notify(t)})},k.prototype.fulfilled=function(e){this.f.call(this.c,this.z,e,this.to)},k.prototype.rejected=function(e){this.to.reject(e)},k.prototype.progress=function(e){this.to.notify(e)},t}})}(function(e){t.exports=e()})},{}]},{},[1])(1)}),function(__global){function __eval(__source,__global,__load){try{eval('(function() { var __moduleName = "'+(__load.name||"").replace('"','"')+'"; '+__source+" \n }).call(__global);")}catch(e){throw"SyntaxError"!=e.name&&"TypeError"!=e.name||(e.message="Evaluating "+(__load.name||load.address)+"\n\t"+e.message),e}}var isWorker="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,isBrowser="undefined"!=typeof window&&!isWorker;__global.$__Object$getPrototypeOf=Object.getPrototypeOf||function(e){return e.__proto__};var $__Object$defineProperty;!function(){try{Object.defineProperty({},"a",{})&&($__Object$defineProperty=Object.defineProperty)}catch(e){$__Object$defineProperty=function(e,t,n){try{e[t]=n.value||n.get.call(e)}catch(e){}}}}(),__global.$__Object$create=Object.create||function(e,t){function n(){}if(n.prototype=e,"object"==typeof t)for(prop in t)t.hasOwnProperty(prop)&&(n[prop]=t[prop]);return new n},function(){function e(e){return{status:"loading",name:e,linkSets:[],dependencies:[],metadata:{}}}function t(e,t,n){return new I(l({step:n.address?"fetch":"locate",loader:e,moduleName:t,moduleMetadata:n&&n.metadata||{},moduleSource:n.source,moduleAddress:n.address}))}function n(t,n,a,o){return new I(function(e,r){e(t.loaderObj.normalize(n,a,o))}).then(function(e){return I.resolve(t.loaderObj.notifyLoad(n,e,a)).then(function(){return e})}).then(function(n){var a;if(t.modules[n])return a=e(n),a.status="linked",a.module=t.modules[n],a;for(var o=0,i=t.loads.length;o<i;o++)if((a=t.loads[o]).name==n)return k.assert("loading"==a.status||"loaded"==a.status,"loading or loaded"),a;for(var s=t.loaderObj.failed||D,o=0,i=s.length;o<i;o++)if((a=s[o]).name===n)return I.reject("The load "+n+" already failed.");return a=e(n),t.loads.push(a),r(t,a),a})}function r(e,t){a(e,t,I.resolve().then(function(){return e.loaderObj.locate({name:t.name,metadata:t.metadata})}))}function a(e,t,n){o(e,t,n.then(function(n){if("loading"==t.status)return t.address=n,e.loaderObj.fetch({name:t.name,metadata:t.metadata,address:n})}))}function o(e,t,r){var a=t.pass||0,o=function(){return t.pass<<0!==a};r.then(function(r){if("loading"==t.status)return I.resolve(e.loaderObj.translate({name:t.name,metadata:t.metadata,address:t.address,source:r})).then(function(n){if("loading"==t.status&&!o())return t.source=n,e.loaderObj.instantiate({name:t.name,metadata:t.metadata,address:t.address,source:n})}).then(function(n){if("loading"==t.status&&!o()){if(void 0===n)return t.address=t.address||"<Anonymous Module "+ ++C+">",t.isDeclarative=!0,e.loaderObj.transpile(t).then(function(e){var n=__global.System,r=n.register;n.register=function(e,n,r){var a=r,o=n;"string"!=typeof e&&(a=o,o=e),t.declare=a,t.depsList=o},__eval(e,__global,t),n.register=r});if("object"!=typeof n)throw TypeError("Invalid instantiate return value");t.depsList=n.deps||[],t.execute=n.execute,t.isDeclarative=!1}}).then(function(){if("loading"==t.status&&!o()){t.dependencies=[];for(var r=t.depsList,a=[],i=0,s=r.length;i<s;i++)!function(r,o){a.push(n(e,r,t.name,t.address).then(function(e){if(t.dependencies[o]={key:r,value:e.name},"linked"!=e.status)for(var n=t.linkSets.concat([]),a=0,i=n.length;a<i;a++)c(n[a],e)}))}(r[i],i);return I.all(a)}}).then(function(){if("loading"==t.status&&!o()){k.assert("loading"==t.status,"is loading"),t.status="loaded";for(var e=t.linkSets.concat([]),n=0,r=e.length;n<r;n++)f(e[n],t)}})}).catch(function(e){t.status="failed",t.exception=e;for(var n=t.linkSets.concat([]),r=0,a=n.length;r<a;r++)p(n[r],t,e);k.assert(0==t.linkSets.length,"linkSets not removed")})}function i(e){e.pass=null!=e.pass?e.pass+1:1}function s(e,t){var n=e.status;e.status=t,t!==n&&"loaded"===n&&e.linkSets.forEach(function(e){e.loadingCount++})}function l(t){return function(n,i){var s=t.loader,l=t.moduleName,c=t.step,d=t.moduleMetadata.importingModuleName;if(s.modules[l])throw new TypeError('"'+l+'" already exists in the module table');for(var f,p,h=0,m=s.loads.length;h<m;h++)if(s.loads[h].name==l){if(f=s.loads[h],"translate"!=c||f.source||(f.address=t.moduleAddress,o(s,f,I.resolve(t.moduleSource))),p=f.linkSets[0],d&&p.loads[d])continue;return p.done.then(function(){n(f)})}var v;f?v=f:(v=e(l)).metadata=t.moduleMetadata;var g=u(s,v);f||s.loads.push(v),n(g.done),"locate"==c?r(s,v):"fetch"==c?a(s,v,I.resolve(t.moduleAddress)):(k.assert("translate"==c,"translate step"),v.address=t.moduleAddress,o(s,v,I.resolve(t.moduleSource)))}}function u(e,t){var n={loader:e,loads:[],startingLoad:t,loadingCount:0};return n.done=new I(function(e,t){n.resolve=e,n.reject=t}),c(n,t),n}function c(e,t){k.assert("loading"==t.status||"loaded"==t.status||"failed"===t.status,"loading or loaded on link set");for(var n=0,r=e.loads.length;n<r;n++)if(e.loads[n]==t)return;e.loads.push(t),e.loads[t.name]=!0,t.linkSets.push(e),"loaded"!=t.status&&e.loadingCount++;for(var a=e.loader,n=0,r=t.dependencies.length;n<r;n++){var o=t.dependencies[n].value;if(!a.modules[o])for(var i=0,s=a.loads.length;i<s;i++)if(a.loads[i].name==o){c(e,a.loads[i]);break}}}function d(e){var t=!1;try{g(e,function(n,r){p(e,n,r),t=!0})}catch(n){p(e,null,n),t=!0}return t}function f(e,t){if(k.assert("loaded"==t.status||"linked"==t.status,"loaded or linked"),e.loadingCount--,!(e.loadingCount>0)){var n=e.startingLoad;if(!1===e.loader.loaderObj.execute){for(var r=[].concat(e.loads),a=0,o=r.length;a<o;a++)(t=r[a]).module=t.isDeclarative?{name:t.name,module:$({}),evaluated:!0}:{module:$({})},t.status="linked",h(e.loader,t);return e.resolve(n)}d(e)||(k.assert(0==e.loads.length,"loads cleared"),e.resolve(n))}}function p(e,t,n){for(var r=e.loader,a=n,o=e.loads.concat([]),i=0,s=o.length;i<s;i++){var t=o[i];r.loaderObj.failed=r.loaderObj.failed||[],"failed"===t.status&&-1==T.call(r.loaderObj.failed,t)?r.loaderObj.failed.push(t):r.loaderObj._pendingState&&r.loaderObj._pendingState(t);var l=T.call(t.linkSets,e);if(k.assert(-1!=l,"link not present"),t.linkSets.splice(l,1),0==t.linkSets.length){var u=T.call(e.loader.loads,t);-1!=u&&e.loader.loads.splice(u,1)}}e.reject(a)}function h(e,t){if(e.loaderObj.trace){e.loaderObj.loads||(e.loaderObj.loads={});var n={};t.dependencies.forEach(function(e){n[e.key]=e.value}),e.loaderObj.loads[t.name]={name:t.name,deps:t.dependencies.map(function(e){return e.key}),depMap:n,address:t.address,metadata:t.metadata,source:t.source,kind:t.isDeclarative?"declarative":"dynamic"}}t.name&&(k.assert(!e.modules[t.name],"load not in module table"),e.modules[t.name]=t.module);var r=T.call(e.loads,t);-1!=r&&e.loads.splice(r,1);for(var a=0,o=t.linkSets.length;a<o;a++)-1!=(r=T.call(t.linkSets[a].loads,t))&&t.linkSets[a].loads.splice(r,1);t.linkSets.splice(0,t.linkSets.length)}function m(e,t,n){if(n[e.groupIndex]=n[e.groupIndex]||[],-1==T.call(n[e.groupIndex],e)){n[e.groupIndex].push(e);for(var r=0,a=t.length;r<a;r++)for(var o=t[r],i=0;i<e.dependencies.length;i++)if(o.name==e.dependencies[i].value){k.assert("loaded"==o.status,"Load in linkSet not loaded!");var s=e.groupIndex+(o.isDeclarative!=e.isDeclarative);if(void 0===o.groupIndex||o.groupIndex<s){if(void 0!==o.groupIndex&&(n[o.groupIndex].splice(T.call(n[o.groupIndex],o),1),0==n[o.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");o.groupIndex=s}m(o,t,n)}}}function v(e,t,n){try{var r=t.execute()}catch(e){return void n(t,e)}if(r&&r instanceof P)return r;n(t,new TypeError("Execution must define a Module instance"))}function g(e,t){var n=e.loader;if(e.loads.length){var r=[],a=e.loads[0];a.groupIndex=0,m(a,e.loads,r);for(var o=a.isDeclarative==r.length%2,i=r.length-1;i>=0;i--){for(var s=r[i],l=0;l<s.length;l++){var u=s[l];if(o)y(u,e.loads,n);else{var c=v(e,u,t);if(!c)return;u.module={name:u.name,module:c},u.status="linked"}h(n,u)}o=!o}}}function b(e,t){var n=t.moduleRecords;return n[e]||(n[e]={name:e,dependencies:[],module:new P,importers:[]})}function y(e,t,n){if(!e.module){var r=e.module=b(e.name,n),a=e.module.module,o=e.declare.call(__global,function(e,t){if(r.locked=!0,"object"==typeof e)for(var n in e)a[n]=e[n];else a[e]=t;for(var o=0,i=r.importers.length;o<i;o++){var s=r.importers[o];if(!s.locked){var l=T.call(s.dependencies,r);s.setters[l](a)}}return r.locked=!1,t});r.setters=o.setters,r.execute=o.execute;for(var i=0,s=e.dependencies.length;i<s;i++){var l=e.dependencies[i].value,u=n.modules[l];if(!u)for(var c=0;c<t.length;c++)t[c].name==l&&(t[c].module?u=b(l,n):(y(t[c],t,n),u=t[c].module));u.importers?(r.dependencies.push(u),u.importers.push(r)):r.dependencies.push(null),r.setters[i]&&r.setters[i](u.module)}e.status="linked"}}function x(e,t){return k.assert("linked"==t.status,"is linked "+t.name),j(t.module,[],e),t.module.module}function _(e,t){try{e.execute.call(__global)}catch(e){return e.onModuleExecution=!0,w(e),e}}function w(e){if(!e.originalErr){for(var t=(e.stack||e.message||e).toString().split("\n"),n=[],r=0;r<t.length;r++)void 0!==L&&-1!=t[r].indexOf(L.src)||n.push(t[r]);n.length&&(e.stack=n.join("\n\t"))}return e}function j(e,t,n){var r=S(e,t,n);if(r)throw r}function S(e,t,n){if(!e.evaluated&&e.dependencies){t.push(e);for(var r,a=e.dependencies,o=0,i=a.length;o<i;o++){var s=a[o];if(s&&(-1==T.call(t,s)&&(r=S(s,t,n))))return r=E(r,"Error evaluating "+s.name+"\n")}if(e.failed)return new Error("Module failed execution.");if(!e.evaluated)return e.evaluated=!0,(r=_(e,n))?e.failed=!0:Object.preventExtensions&&Object.preventExtensions(e.module),e.execute=void 0,r}}function E(e,t){var n=e;return n instanceof Error?n.message=t+n.message:n=t+n,n}function O(e){if("object"!=typeof e)throw new TypeError("Options must be an object");e.normalize&&(this.normalize=e.normalize),e.locate&&(this.locate=e.locate),e.fetch&&(this.fetch=e.fetch),e.translate&&(this.translate=e.translate),e.instantiate&&(this.instantiate=e.instantiate),this._loader={loaderObj:this,loads:[],modules:{},importPromises:{},moduleRecords:{}},N(this,"global",{get:function(){return __global}})}function P(){}function M(e,t,n){var r=e._loader.importPromises;return r[t]=n.then(function(e){return r[t]=void 0,e},function(e){throw r[t]=void 0,e})}var k,L,I=__global.Promise||require("when/es6-shim/Promise");if(__global.console?(k=__global.console).assert=k.assert||function(){}:k={assert:function(){}},isBrowser){var R=document.getElementsByTagName("script");L=document.currentScript||R[R.length-1]}var T=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},N=$__Object$defineProperty,D=[],C=0,$=(O.prototype={constructor:O,anonymousCount:0,define:function(e,t,n){if(this._loader.importPromises[e])throw new TypeError("Module is already loading.");return M(this,e,new I(l({step:"translate",loader:this._loader,moduleName:e,moduleMetadata:n&&n.metadata||{},moduleSource:t,moduleAddress:n&&n.address})))},delete:function(e){var t=this._loader;if(delete t.importPromises[e],delete t.moduleRecords[e],this.failed)for(var n=0;n<this.failed.length;n++)if(this.failed[n].name===e){this.failed.splice(n,1);break}return!!t.modules[e]&&delete t.modules[e]},get:function(e){if(this._loader.modules[e])return j(this._loader.modules[e],[],this),this._loader.modules[e].module},has:function(e){return!!this._loader.modules[e]},import:function(e,n){var r=this;return I.resolve(r.normalize(e,n&&n.name,n&&n.address)).then(function(e){var a=r._loader;return a.modules[e]?(j(a.modules[e],[],a._loader),a.modules[e].module):a.importPromises[e]||M(r,e,t(a,e,n||{}).then(function(t){return delete a.importPromises[e],x(a,t)}).then(null,function(t){if(r.defined&&(r.defined[e]=void 0),t.onModuleExecution&&r.getModuleLoad){var n=r.getModuleLoad(e);if(n)return r.rejectWithCodeFrame(t,n)}else if(t.promise)return t.promise;return I.reject(t)}))})},load:function(e,n){return this._loader.modules[e]?(j(this._loader.modules[e],[],this._loader),I.resolve(this._loader.modules[e].module)):this._loader.importPromises[e]||M(this,e,t(this._loader,e,{}))},module:function(t,n){var r=e("<Anonymous"+ ++this.anonymousCount+">");r.address=n&&n.address;var a=u(this._loader,r),i=I.resolve(t),s=this._loader,l=a.done.then(function(){return x(s,r)});return o(s,r,i),l},newModule:function(e){if("object"!=typeof e)throw new TypeError("Expected object");var t,n=new P;if(Object.getOwnPropertyNames&&null!=e)t=Object.getOwnPropertyNames(e);else{t=[];for(var r in e)t.push(r)}for(var a=0;a<t.length;a++)!function(t){N(n,t,{configurable:!1,enumerable:!0,get:function(){return e[t]}})}(t[a]);return Object.preventExtensions&&Object.preventExtensions(n),n},set:function(e,t){if(!(t instanceof P))throw new TypeError("Loader.set("+e+", module) must be a module");this._loader.modules[e]={module:t}},normalize:function(e,t,n){return e},locate:function(e){return e.name},fetch:function(e){throw new TypeError("Fetch not implemented")},translate:function(e){return e.source},instantiate:function(e){},notifyLoad:function(e,t,n){},provide:function(e,t,n){for(var r,a=0;a<this._loader.loads.length;a++)if(this._loader.loads[a].name===e){r=this._loader.loads[a];break}return r?(i(r),s(r,"loading"),o(this._loader,r,I.resolve(t))):(this.delete(e),this.define(e,t,n))}}).newModule;"object"==typeof exports&&(module.exports=O),__global.Reflect=__global.Reflect||{},__global.Reflect.Loader=__global.Reflect.Loader||O,__global.Reflect.global=__global.Reflect.global||__global,__global.LoaderPolyfill=O}(),function(e){function t(e,t){return e.newModule({__useDefault:!0,default:v[t]})}function n(e){return"babel"===e?"Babel":e}function r(e,t){var n=this.traceurOptions||{};n.modules="instantiate",n.script=!1,n.sourceMaps="inline",n.filename=e.address,n.inputSourceMap=e.metadata.sourceMap,n.moduleName=!1;var r=new t.Compiler(n),o=a(e.source,r,n.filename);return o+="!eval"}function a(e,t,n){try{return t.compile(e,n)}catch(e){throw e[0]}}function o(){var e=this,t="function"==typeof e.getEnv&&e.getEnv();return g?process.env.BABEL_ENV||process.env.NODE_ENV||t||"development":t||"development"}function i(e){return s(e)?"string"==typeof e?e:e[0]:null}function s(e){return"string"==typeof e||e.length&&"string"==typeof e[0]}function l(e){var t=e||[],n="transform-es2015-modules-systemjs";return-1===t.indexOf(n)&&t.unshift(n),t}function u(e,t){var n=e||[],r=!1!==t.forceES5,a=r?[y,"react","stage-0"]:["react"];return n.length&&r&&-1!=n.indexOf(y)&&n.unshift(y),n.length?n:a}function c(e){var t=e.metadata.npmPackage;if(t){var n=t.steal||t.system;if(n&&n.babelOptions)return n.babelOptions}return this.babelOptions||{}}function d(e){return(e.version?+e.version.split(".")[0]:6)||6}function f(e,t){var n=this,r=c.call(n,e);return r.sourceMap="inline",r.filename=e.address,r.code=!0,r.ast=!1,d(t)>=6?(delete r.optional,delete r.whitelist,delete r.blacklist,r.presets=u(r.presets,n),r.plugins=l(r.plugins)):(r.modules="system",r.blacklist||(r.blacklist=["react"])),r}function p(e){var t=e.types;return{visitor:{Program:function(e,n){e.unshiftContainer("body",[t.exportNamedDeclaration(null,[t.exportSpecifier(t.identifier("true"),t.identifier("__esModule"))])])}}}}function h(e){return e.metadata.importSpecifiers=Object.create(null),e.metadata.importNames=Object.create(null),e.metadata.exportNames=Object.create(null),{visitor:{ImportDeclaration:function(t,n){var r=t.node,a=r.source.value,o=r.source.loc;e.metadata.importSpecifiers[a]=o;var i=e.metadata.importNames[a];i||(i=e.metadata.importNames[a]=[]),i.push.apply(i,(r.specifiers||[]).map(function(e){return"ImportDefaultSpecifier"===e.type?"default":e.imported&&e.imported.name}))},ExportDeclaration:function(t,n){var r=t.node;if(r.source){var a=r.source.value,o=e.metadata.exportNames[a];"ExportNamedDeclaration"===r.type?(o||(o=e.metadata.exportNames[a]=new Map),r.specifiers.forEach(function(e){o.set(e.exported.name,e.local.name)})):"ExportAllDeclaration"===r.type&&(e.metadata.exportNames[a]=1)}}}}}function m(e,t){var n=this,r=t.Babel||t.babel||t,a=d(r),o=f.call(n,e,r);return Promise.all([b.call(this,r,o),x.call(this,r,o)]).then(function(t){a>=6&&(o.plugins=[h.bind(null,e),p].concat(t[0]),o.presets=t[1]);try{return r.transform(e.source,o).code+"\n//# sourceURL="+e.address+"!eval"}catch(t){if(t instanceof SyntaxError){var i=new SyntaxError(t.message),s=new n.StackTrace(t.message,[n.StackTrace.item("",e.address,t.loc.line,t.loc.column)]);return i.stack=s.toString(),Promise.reject(i)}return Promise.reject(t)}})}var v=__global,g="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process);e.prototype.transpiler="babel",e.prototype.transpile=function(e){var n=this;return n.transpilerHasRun||(v.traceur&&!n.has("traceur")&&n.set("traceur",t(n,"traceur")),v.Babel&&!n.has("babel")&&n.set("babel",t(n,"Babel")),n.transpilerHasRun=!0),n.import(n.transpiler).then(function(t){var a=t;return a.__useDefault&&(a=a.default),(a.Compiler?r:m).call(n,e,a)}).then(function(t){return'var __moduleAddress = "'+e.address+'";'+t})},e.prototype.instantiate=function(e){var r=this;return Promise.resolve(r.normalize(r.transpiler)).then(function(a){if(e.name===a)return{deps:[],execute:function(){var a=v.System,o=v.Reflect.Loader;return __eval("(function(require,exports,module){"+e.source+"})();",v,e),v.System=a,v.Reflect.Loader=o,t(r,n(e.name))}}})};var b=function(){function e(e,r){var a=[];return(r||[]).forEach(function(r){var o=i(r);if(!s(r)||t(e,o))a.push(r);else if(!t(e,o)){var l=this.configMain||"package.json!npm",u=n(o);a.push(this.import(u,{name:l}).then(function(e){var t=e.__esModule?e.default:e;return"string"==typeof r?t:[t,r[1]]}))}},this),Promise.all(a)}function t(e,t){var n=/^(?:babel-plugin-)/;return!!(e.availablePlugins||{})[n.test(t)?t.replace("babel-plugin-",""):t]}function n(e){var t=/^(?:babel-plugin-)/;return/\//.test(e)||t.test(e)?e:"babel-plugin-"+e}return function(t,n){var r=o.call(this),a=n.env||{},i=[e.call(this,t,n.plugins)];for(var s in a)if(r===s){var l=a[s].plugins||[];i.push(e.call(this,t,l))}return Promise.all(i).then(function(e){var t=[];return e.forEach(function(e){t=t.concat(e)}),t})}}(),y="es2015-no-commonjs",x=function(){function e(e,r){var a=[];return(r||[]).forEach(function(r){var o=i(r);if(!s(r)||t(e,o))a.push(r);else if(!t(e,o)){var l=this.configMain||"package.json!npm",u=n(o);a.push(this.import(u,{name:l}).then(function(e){var t=e.__esModule?e.default:e;return"string"==typeof r?t:[t,r[1]]}))}},this),Promise.all(a)}function t(e,t){var n=/^(?:babel-preset-)/;return!!(e.availablePresets||{})[n.test(t)?t.replace("babel-preset-",""):t]}function n(e){var t=/^(?:babel-preset-)/;return/\//.test(e)||t.test(e)?e:"babel-preset-"+e}return function(t,n){var r=o.call(this),a=n.env||{},i=[e.call(this,t,n.presets)];for(var s in a)if(r===s){var l=a[s].presets||[];i.push(e.call(this,t,l))}return Promise.all(i).then(function(e){var t=[];return e.forEach(function(e){t=t.concat(e)}),t})}}();e.prototype._getImportSpecifierPositionsPlugin=h}(__global.LoaderPolyfill),function(){function e(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function t(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}function n(n,r){var a=r,i=n;return s.test(r)?"http:"+r:(o&&(a=a.replace(/\\/g,"/")),a=e(a||""),i=e(i||""),a&&i?(a.protocol||i.protocol)+(a.protocol||a.authority?a.authority:i.authority)+t(a.protocol||a.authority||"/"===a.pathname.charAt(0)?a.pathname:a.pathname?(i.authority&&!i.pathname?"/":"")+i.pathname.slice(0,i.pathname.lastIndexOf("/")+1)+a.pathname:i.pathname)+(a.protocol||a.authority||a.pathname?a.search:a.search||i.search)+a.hash:null)}function r(e,t,n){if(void 0===n.getDependants)return i.resolve();var r=n.getDependants(t.name);if(Array.isArray(r)&&r.length){var a=n.StackTrace,o=n.isEnv("production");return i.resolve().then(function(){return o?i.resolve():n.import("@@babel-code-frame")}).then(function(i){var s=n.getModuleLoad(r[0]),l=n.getImportSpecifier(t.name,s)||{line:1,column:0},u="The module ["+n.prettyName(t)+"] couldn't be fetched.\nClicking the link in the stack trace below takes you to the import.\nSee https://stealjs.com/docs/StealJS.error-messages.html#404-not-found for more information.\n",c=e.message+"\n"+u;o||(c+="\n"+i(s.metadata.originalSource||s.source,l.line,l.column)+"\n"),e.message=c;var d=new a(c,[a.item(null,s.address,l.line,l.column)]);e.stack=d.toString()})}return i.resolve()}var a,o="undefined"!=typeof process&&!!process.platform.match(/^win/),i=__global.Promise||require("when/es6-shim/Promise"),s=/^\/\//;if("undefined"!=typeof XMLHttpRequest)a=function(e,t,n){function r(){t(o.responseText)}function a(){var t=o.status,r=t+" "+o.statusText+": "+e+"\n"||"XHR error",a=new Error(r);a.url=e,a.statusCode=t,n(a)}var o=new XMLHttpRequest,i=!0,s=!1;if(!("withCredentials"in o)){var l=/^(\w+:)?\/\/([^\/]+)/.exec(e);l&&(i=l[2]===window.location.host,l[1]&&(i&=l[1]===window.location.protocol))}i||"undefined"==typeof XDomainRequest||((o=new XDomainRequest).onload=r,o.onerror=a,o.ontimeout=a,o.onprogress=function(){},o.timeout=0,s=!0),o.onreadystatechange=function(){4===o.readyState&&(200===o.status||0==o.status&&o.responseText?r():a())},o.open("GET",e,!0),s&&setTimeout(function(){o.send()},0),o.send(null)};else if("undefined"!=typeof require){var l,u,c,d=/ENOENT/;a=function(e,t,n){if("file:"===e.substr(0,5)){l=l||require("fs");var r=e.substr(5);return o&&(r=r.replace(/\//g,"\\")),l.readFile(r,function(r,a){if(r)return d.test(r.message)&&(r.statusCode=404,r.url=e),n(r);t(a+"")})}if("http"===e.substr(0,4)){return("https:"===e.substr(0,6)?c=c||require("https"):u=u||require("http")).get(e,function(e){if(200!==e.statusCode)n(new Error("Request failed. Status: "+e.statusCode));else{var r="";e.setEncoding("utf8"),e.on("data",function(e){r+=e}),e.on("end",function(){t(r)})}})}}}else{if("function"!=typeof fetch)throw new TypeError("No environment fetch API available.");a=function(e,t,n){fetch(e).then(function(e){return e.text()}).then(function(e){t(e)}).then(null,function(e){n(e)})}}var f=new(function(e){function t(t){if(e.call(this,t||{}),"undefined"!=typeof location&&location.href){var n=__global.location.href.split("#")[0].split("?")[0];this.baseURL=n.substring(0,n.lastIndexOf("/")+1)}else{if("undefined"==typeof process||!process.cwd)throw new TypeError("No environment baseURL");this.baseURL="file:"+process.cwd()+"/",o&&(this.baseURL=this.baseURL.replace(/\\/g,"/"))}this.paths={"*":"*.js"}}return t.__proto__=null!==e?e:Function.prototype,t.prototype=$__Object$create(null!==e?e.prototype:null),$__Object$defineProperty(t.prototype,"constructor",{value:t}),$__Object$defineProperty(t.prototype,"global",{get:function(){return isBrowser?window:isWorker?self:__global},enumerable:!1}),$__Object$defineProperty(t.prototype,"strict",{get:function(){return!0},enumerable:!1}),$__Object$defineProperty(t.prototype,"normalize",{value:function(e,t,n){if("string"!=typeof e)throw new TypeError("Module name must be a string");var r=e.split("/");if(0==r.length)throw new TypeError("No module name provided");var a=0,o=!1,i=0;if("."==r[0]){if(++a==r.length)throw new TypeError('Illegal module name "'+e+'"');o=!0}else{for(;".."==r[a];)if(++a==r.length)throw new TypeError('Illegal module name "'+e+'"');a&&(o=!0),i=a}if(!o)return e;var s=[],l=(t||"").split("/");l.length;return s=s.concat(l.splice(0,l.length-1-i)),(s=s.concat(r.splice(a,r.length-a))).join("/")},enumerable:!1,writable:!0}),$__Object$defineProperty(t.prototype,"locate",{value:function(e){var t,r=e.name,a="";for(var o in this.paths){var i=o.split("*");if(i.length>2)throw new TypeError("Only one wildcard in a path is permitted");if(1==i.length){if(r==o&&o.length>a.length){a=o;break}}else r.substr(0,i[0].length)==i[0]&&r.substr(r.length-i[1].length)==i[1]&&(a=o,t=r.substr(i[0].length,r.length-i[1].length-i[0].length))}var s=this.paths[a];return t&&(s=s.replace("*",t)),isBrowser&&(s=s.replace(/#/g,"%23")),n(this.baseURL,s)},enumerable:!1,writable:!0}),$__Object$defineProperty(t.prototype,"fetch",{value:function(e){var t=this;return new i(function(o,i){a(n(t.baseURL,e.address),function(e){o(e)},function(n){var a=i.bind(null,n);r(n,e,t).then(a,a)})})},enumerable:!1,writable:!0}),t}(__global.LoaderPolyfill));"object"==typeof exports&&(module.exports=f),__global.System=f}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(e){e.upgradeSystemLoader=function(){function t(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function r(e,n){var r=e,a=n;return x&&(a=a.replace(/\\/g,"/")),a=t(a||""),r=t(r||""),a&&r?(a.protocol||r.protocol)+(a.protocol||a.authority?a.authority:r.authority)+function(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}(a.protocol||a.authority||"/"===a.pathname.charAt(0)?a.pathname:a.pathname?(r.authority&&!r.pathname?"/":"")+r.pathname.slice(0,r.pathname.lastIndexOf("/")+1)+a.pathname:r.pathname)+(a.protocol||a.authority||a.pathname?a.search:a.search||r.search)+a.hash:null}function a(t){var n={};if(("object"==typeof t||"function"==typeof t)&&t!==e)if(_)for(var r in t)"default"!==r&&o(n,t,r);else i(n,t);return n.default=t,w(n,"__useDefault",{value:!0}),n}function o(e,t,n){try{var r;(r=Object.getOwnPropertyDescriptor(t,n))&&w(e,n,r)}catch(r){return e[n]=t[n],!1}}function i(e,t,n){var r=t&&t.hasOwnProperty;for(var a in t)r&&!t.hasOwnProperty(a)||n&&a in e||(e[a]=t[a]);return e}function s(e){function t(e,t){t._extensions=[];for(var n=0,r=e.length;n<r;n++)e[n](t)}var n=e.import;e.import=function(e,t){return n.call(this,e,t).then(function(e){return e.__useDefault?e.default:e})};var a={};Object.defineProperty(a,"__esModule",{enumerable:!1,configurable:!0,writable:!1,value:!0}),e.set("@empty",e.newModule(a)),"undefined"!=typeof require&&(e._nodeRequire=require),e.config=function(e){for(var t in e){var n=e[t];if("object"!=typeof n||n instanceof Array)this[t]=n;else{this[t]=this[t]||{};for(var r in n)this[t][r]=n[r]}}};var o;if("undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope)o="file:"+process.cwd()+"/",x&&(o=o.replace(/\\/g,"/"));else if("undefined"==typeof window)o=e.global.location.href;else if(!(o=document.baseURI)){var i=document.getElementsByTagName("base");o=i[0]&&i[0].href||window.location.href}var l,u=e.locate;e.locate=function(e){return this.baseURL!=l&&("/"!=(l=r(o,this.baseURL)).substr(l.length-1,1)&&(l+="/"),this.baseURL=l),Promise.resolve(u.call(this,e))},e._getLineAndColumnFromPosition=function(e,t){for(var n,r=(t||0)+1,a=0,o=1,i=0,s=e.length;r&&a<s&&(n=e[a],r!==a);)"\n"!==n?(i++,a++):(a++,o++,i=0);return{line:o,column:i}},e._extensions=e._extensions||[],e._extensions.push(s),e.clone=function(){var e=this,n=new LoaderPolyfill(j);return n.baseURL=e.baseURL,n.paths={"*":"*.js"},t(e._extensions,n),n}}function l(e){function t(e,t){var n=e.meta&&e.meta[t.name];if(n)for(var r in n)t.metadata[r]=t.metadata[r]||n[r]}var n=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,r=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;e.meta={},e._extensions=e._extensions||[],e._extensions.push(l);var a=e.locate;e.locate=function(e){return t(this,e),a.call(this,e)};var o=e.translate;e.translate=function(e){var a=e.source.match(n);if(a)for(var i=a[0].match(r),s=0;s<i.length;s++){var l=i[s].length,u=i[s].substr(0,1);if(";"==i[s].substr(l-1,1)&&l--,'"'==u||"'"==u){var c=i[s].substr(1,i[s].length-3),d=c.substr(0,c.indexOf(" "));if(d){var f=c.substr(d.length+1,c.length-d.length-1);e.metadata[d]instanceof Array?e.metadata[d].push(f):e.metadata[d]||(e.metadata[d]=f)}}}return t(this,e),o.call(this,e)}}function u(e){function t(e,t){var a,o=this,i=t,s=e.source.lastIndexOf("\n");-1!=s&&"//# sourceMappingURL="==e.source.substr(s+1,21)&&(a=e.source.substr(s+22,e.source.length-s-22),void 0!==r&&(a=r(e.address,a)));var l=e.metadata&&e.metadata.eval;i=i||o.global,n(e.source,e.address,i,a,l)}function o(e){for(var t=[],n=0,r=e.length;n<r;n++)-1==y.call(t,e[n])&&t.push(e[n]);return t}function i(t,n,r,a){var o=t,i=n,s=r,l=a;"string"!=typeof o&&(l=s,s=i,i=o,o=null),g=!0;var u;if(u="boolean"==typeof s?{declarative:!1,deps:i,execute:l,executingRequire:s}:{declarative:!0,deps:i,declare:s},o)u.name=o,o in e.defined||(e.defined[o]=u);else if(u.declarative){if(v)throw new TypeError("Multiple anonymous System.register calls in the same module file.");v=u}}function s(e){if(!e.register){e.register=i,e.defined||(e.defined={});var t=e.onScriptLoad;e.onScriptLoad=function(e){t(e),v&&(e.metadata.entry=v),g&&(e.metadata.format=e.metadata.format||"register",e.metadata.registered=!0)}}}function l(e,t,n){if(n[e.groupIndex]=n[e.groupIndex]||[],-1==y.call(n[e.groupIndex],e)){n[e.groupIndex].push(e);for(var r=0,a=e.normalizedDeps.length;r<a;r++){var o=e.normalizedDeps[r],i=t.defined[o];if(i&&!i.evaluated){var s=e.groupIndex+(i.declarative!=e.declarative);if(void 0===i.groupIndex||i.groupIndex<s){if(void 0!==i.groupIndex&&(n[i.groupIndex].splice(y.call(n[i.groupIndex],i),1),0==n[i.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");i.groupIndex=s}l(i,t,n)}}}}function c(e,t){var n=t.defined[e];if(!n.module){n.groupIndex=0;var r=[];l(n,t,r);for(var a=!!n.declarative==r.length%2,o=r.length-1;o>=0;o--){for(var i=r[o],s=0;s<i.length;s++){var u=i[s];a?f(u,t):h(u,t)}a=!a}}}function d(e){return x[e]||(x[e]={name:e,dependencies:[],exports:{},importers:[]})}function f(e,t){if(!e.module){var n=e.module=d(e.name),r=e.module.exports,a=e.declare.call(t.global,function(e,t){n.locked=!0,r[e]=t;for(var a=0,o=n.importers.length;a<o;a++){var i=n.importers[a];if(!i.locked){var s=y.call(i.dependencies,n);i.setters[s](r)}}return n.locked=!1,t});if(n.setters=a.setters,n.execute=a.execute,!n.setters||!n.execute)throw new TypeError("Invalid System.register form for "+e.name);for(var o=0,i=e.normalizedDeps.length;o<i;o++){var s,l=e.normalizedDeps[o],u=t.defined[l],c=x[l];c?s=c.exports:u&&!u.declarative?s=u.module.exports&&u.module.exports.__esModule?u.module.exports:u.esModule:u?(f(u,t),s=(c=u.module).exports):s=t.get(l),c&&c.importers?(c.importers.push(n),n.dependencies.push(c)):n.dependencies.push(null),n.setters[o]&&n.setters[o](s)}}}function p(e,t){var n,r=t.defined[e];if(r)r.declarative?m(e,[],t):r.evaluated||h(r,t),n=r.module.exports;else if(!(n=t.get(e)))throw new Error("Unable to load dependency "+e+".");return(!r||r.declarative)&&n&&n.__useDefault?n.default:n}function h(e,t){if(!e.module){var n={};e.isESModule&&Object.defineProperty(n,"__esModule",{value:!0});var r=e.module={exports:n,id:e.name};if(!e.executingRequire)for(var o=0,i=e.normalizedDeps.length;o<i;o++){var s=e.normalizedDeps[o],l=t.defined[s];l&&h(l,t)}e.evaluated=!0;var u=e.execute.call(t.global,function(n){for(var r=0,a=e.deps.length;r<a;r++)if(e.deps[r]==n)return p(e.normalizedDeps[r],t);throw new TypeError("Module "+n+" not declared as a dependency.")},n,r);u&&(r.exports=u),(n=r.exports)&&(n.__esModule||n instanceof _)?e.esModule=n:e.esmExports?n===t.global?e.esModule={default:n,__useDefault:!0}:e.esModule=a(n):e.esModule={default:n}}}function m(e,t,n){var r=n.defined[e];if(r&&!r.evaluated&&r.declarative){t.push(e);for(var a=0,o=r.normalizedDeps.length;a<o;a++){var i=r.normalizedDeps[a];-1==y.call(t,i)&&(n.defined[i]?m(i,t,n):n.get(i))}r.evaluated||(r.evaluated=!0,r.module.execute.call(n.global))}}void 0===y&&(y=Array.prototype.indexOf),(void 0===n||"undefined"!=typeof document&&!document.addEventListener)&&(n=eval),e._extensions=e._extensions||[],e._extensions.push(u);e.__exec=t;var v,g;s(e);var x={},_=e.newModule({}).constructor,w=/\bSystem\.register\b/,j=e.fetch;e.fetch=function(e){var t=this;return s(t),t.defined[e.name]?(e.metadata.format="defined",""):(v=null,g=!1,j.call(t,e))};var S=e.translate;e.translate=function(e){return this.register=i,this.__exec=t,e.metadata.deps=e.metadata.deps||[],Promise.resolve(S.call(this,e)).then(function(t){return(e.metadata.init||e.metadata.exports)&&(e.metadata.format=e.metadata.format||"global"),("register"==e.metadata.format||!e.metadata.format&&e.source.match(w))&&(e.metadata.format="register"),t})};var E=e.instantiate;e.instantiate=function(e){var t,n=this;if(n.defined[e.name])(t=n.defined[e.name]).deps=t.deps.concat(e.metadata.deps);else if(e.metadata.entry)t=e.metadata.entry;else if(e.metadata.execute)t={declarative:!1,deps:e.metadata.deps||[],esModule:null,execute:e.metadata.execute,executingRequire:e.metadata.executingRequire};else if("register"==e.metadata.format){v=null,g=!1;var r=n.global.System;if(n.global.System=n,n.__exec(e),n.global.System=r,v&&(t=v),!t&&b.defined[e.name]&&(t=b.defined[e.name]),!g&&!e.metadata.registered)throw new TypeError(e.name+" detected as System.register but didn't execute.")}if(!t&&"es6"!=e.metadata.format)return{deps:e.metadata.deps,execute:function(){return n.newModule({})}};if(!t)return E.call(this,e);n.defined[e.name]=t,t.deps=o(t.deps),t.name=e.name,t.esmExports=!1!==e.metadata.esmExports;for(var a=[],i=0,s=t.deps.length;i<s;i++)a.push(Promise.resolve(n.normalize(t.deps[i],e.name)));return Promise.all(a).then(function(r){return t.normalizedDeps=r,{deps:t.deps,execute:function(){c(e.name,n),m(e.name,[],n),n.defined[e.name]=void 0;var r=t.module.exports;return t.declarative||(r=t.esModule),n.newModule(r)}}})}}function c(e){function t(e,t,n){if(e.meta[t]={format:"global"},f&&!e.paths[t])try{e.paths[t]=require.resolve(n||t)}catch(e){}}function n(e){return e.replace(i,'""').replace(s,"$1").match(o)}e._extensions.push(c);var r,a,o=/(^\s*|[}\);\n]\s*)(import\s+(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s+from\s+['"]|\{)|export\s+\*\s+from\s+["']|export\s+(\{|default|function|class|var|const|let|async\s+function))/,i=/["'].*["']/g,s=/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm,l=/\$traceurRuntime\s*\./,u=/babelHelpers\s*\./,d=!0,f="undefined"!=typeof process&&"undefined"!=typeof require&&require.resolve,p=e.locate;e.locate=function(e){var n=this;return d&&("traceur"==n.transpiler?(t(n,"traceur","traceur/bin/traceur.js"),n.meta.traceur.exports="traceur",t(n,"traceur-runtime","traceur/bin/traceur-runtime.js")):"babel"==n.transpiler&&t(n,"babel","babel-standalone/babel.js"),d=!1),p.call(n,e)};var h=e.translate;e.translate=function(e){var t=this;return h.call(t,e).then(function(o){if("es6"==e.metadata.format||!e.metadata.format&&n(o))return e.metadata.format="es6",o;if("register"==e.metadata.format){if(!t.global.$traceurRuntime&&e.source.match(l))return t.import("traceur-runtime").then(function(){return o});if(!t.global.babelHelpers&&e.source.match(u))return t.import("babel/external-helpers").then(function(){return o})}return"traceur"==t.transpiler?Promise.all([r||(r=t.normalize(t.transpiler)),a||(a=t.normalize(t.transpiler+"-runtime"))]).then(function(t){return e.name==t[0]||e.name==t[1]?"(function() { var curSystem = System; "+o+"\nSystem = curSystem; })();":o}):o})}}function d(e){function t(e,t){for(var n=e.split("."),r=t;n.length;)r=r[n.shift()];return r}function n(e){function n(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n]]=!0;return t}if(!e.has("@@global-helpers")){var r,a,o=e.global.hasOwnProperty,i={};e.set("@@global-helpers",e.newModule({prepareGlobal:function(t,s,l){var u,c,d=t,f=s,p=l;if("object"==typeof d){var h=d;f=h.deps,u=h.globals,p=h.exportName,d=h.moduleName,c=h.require}if(f)for(var m=0;m<f.length;m++){var v=i[f[m]];if(v)for(var g in v)e.global[g]=v[g]}if(u&&c)for(var b in u)e.global[b]=c(u[b]);if(!p&&!1!==p&&!1!==e.inferGlobals){r={},a=n(["indexedDB","sessionStorage","localStorage","clipboardData","frames","webkitStorageInfo","toolbar","statusbar","scrollbars","personalbar","menubar","locationbar","webkitIndexedDB","screenTop","screenLeft"]);for(var y in e.global)if(!a[y]&&(!o||e.global.hasOwnProperty(y)))try{r[y]=e.global[y]}catch(e){a[y]=!0}}},retrieveGlobal:function(n,s,l){var u,c,d={};if(l)u=l.call(e.global);else if(s){var f=s.split(".")[0];u=t(s,e.global),d[f]=e.global[f]}else if(!1!==s&&!1!==e.inferGlobals)for(var p in e.global)a[p]||o&&!e.global.hasOwnProperty(p)||p==e.global||r[p]==e.global[p]||(d[p]=e.global[p],u?u!==e.global[p]&&(c=!0):void 0===u&&(u=e.global[p]));return i[n]=d,c?d:u}}))}}e._extensions.push(d),n(e);var r=e.instantiate;e.instantiate=function(e){var t=this;n(t);var a=e.metadata.exports;if(e.metadata.format||(e.metadata.format="global"),e.metadata.globals)for(var o in e.metadata.globals)e.metadata.deps.push(e.metadata.globals[o]);return"global"==e.metadata.format&&(e.metadata.execute=function(n,r,o){t.get("@@global-helpers").prepareGlobal({require:n,moduleName:o.id,exportName:a,deps:e.metadata.deps,globals:e.metadata.globals}),a&&(e.source+='\nthis["'+a+'"] = '+a+";");var i=t.global.define,n=t.global.require;return t.global.define=void 0,t.global.module=void 0,t.global.exports=void 0,t.__exec(e,t.global),t.global.require=n,t.global.define=i,t.get("@@global-helpers").retrieveGlobal(o.id,a,e.metadata.init)}),r.call(t,e)}}function f(e){function t(e){function t(e,t){for(var n=0;n<e.length;n++)if(e[n][0]<t.index&&e[n][1]>t.index)return!0;return!1}a.lastIndex=o.lastIndex=i.lastIndex=0;var n,r=[],s={},l=[],u=[];if(e.length/e.split("\n").length<200){for(;n=i.exec(e);)l.push([n.index,n.index+n[0].length]);for(;n=o.exec(e);)t(l,n)||u.push([n.index,n.index+n[0].length])}for(;n=a.exec(e);)if(!t(l,n)&&!t(u,n)){var c=n[1].substr(1,n[1].length-2);if(c.match(/"|'/))continue;r.push(c),s[c]=n.index}return{deps:r,info:s}}function n(e,t){var n=this;return function(r){var a=t[r];return n._getLineAndColumnFromPosition(e.source,a)}}e._extensions.push(f),e._determineFormat=Function.prototype;var r=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])(exports\s*(\[['"]|\.)|module(\.exports|\['exports'\]|\["exports"\])\s*(\[['"]|[=,\.])|Object.defineProperty\(\s*module\s*,\s*(?:'|")exports(?:'|"))/,a=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g,o=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,i=/("[^"\\\n\r]*(\\.[^"\\\n\r]*)*"|'[^'\\\n\r]*(\\.[^'\\\n\r]*)*')/g,s=e.instantiate;e.instantiate=function(o){if(o.metadata.format||(r.lastIndex=0,a.lastIndex=0,(a.exec(o.source)||r.exec(o.source))&&(o.metadata.format="cjs",this._determineFormat(o))),"cjs"==o.metadata.format){var i=t(o.source);o.metadata.deps=o.metadata.deps?o.metadata.deps.concat(i.deps):i.deps,o.metadata.getImportPosition=n.call(this,o,i.info),o.metadata.executingRequire=!0,o.metadata.execute=function(t,n,r){var a=(o.address||"").split("/");a.pop(),a=a.join("/"),b._nodeRequire&&(a=a.substr(5));e.global._g={global:e.global,exports:n,module:r,require:t,__filename:b._nodeRequire?o.address.substr(5):o.address,__dirname:a};var i=e.global.define;e.global.define=void 0;var s={name:o.name,source:"(function() {\n(function(global, exports, module, require, __filename, __dirname){\n"+o.source+"\n}).call(_g.exports, _g.global, _g.exports, _g.module, _g.require, _g.__filename, _g.__dirname);})();",address:o.address};try{e.__exec(s)}catch(t){throw e.StackTrace&&(e.StackTrace.parse(t)||(t.stack=new e.StackTrace(t.message,[e.StackTrace.item("<anonymous>",o.address,1,0)]).toString())),t}e.global.define=i,e.global._g=void 0}}return s.call(this,o)}}function p(e){function t(e,t){var n=[],r=(e.match(f)[1].split(",")[t]||"require").replace(h,""),a=m[r]||(m[r]=new RegExp("/\\*|//|\"|'|`|(?:^|\\breturn\\b|[([=,;:?><&|^*%~+-])\\s*(?=/)|\\b"+r+"(?=\\s*\\()","g"));a.lastIndex=0,v[r]=v.require;for(var o,i,s,l;o=a.exec(e);)if(i=o[0],(s=v[i])||(s=v[i="/regexp/"]),s.lastIndex=a.lastIndex,(l=s.exec(e))&&l.index===a.lastIndex){a.lastIndex=s.lastIndex;var u=o.index-1;u>-1&&"."===e.charAt(u)||s!==v.require||l[2]&&n.push(l[2])}return n}function n(e,t,r,a){var o=this;if("object"==typeof e&&!(e instanceof Array))return n.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(e instanceof Array)){if("string"==typeof e){var i=o.get(e);return i.__useDefault?i.default:i}throw new TypeError("Invalid require")}Promise.all(e.map(function(e){return o.import(e,a)})).then(function(e){t&&t.apply(null,e)},r)}function r(e,t,r){return function(a,o,i){return"string"==typeof a?t(a):n.call(r,a,o,i,{name:e})}}function a(e){function n(n,a,o){var i=n,s=a,l=o,u=!1;"string"!=typeof i&&(l=s,s=i,i=null),s instanceof Array||(l=s,s=["require","exports","module"]),"function"!=typeof l&&(l=function(e){return function(){return e}}(l)),void 0===s[s.length-1]&&s.pop();var c,f,p;if(-1!=(c=y.call(s,"require"))){s.splice(c,1);var h=l.toString();s=s.concat(t(h,c))}-1!=(f=y.call(s,"exports"))&&(s.splice(f,1),h||(h=l.toString(),u=g.test(h))),-1!=(p=y.call(s,"module"))&&s.splice(p,1);var m={deps:s,execute:function(t,n,a){for(var o=[],i=0;i<s.length;i++)o.push(t(s[i]));a.uri=e.baseURL+a.id,a.config=function(){},-1!=p&&o.splice(p,0,a),-1!=f&&o.splice(f,0,n),-1!=c&&o.splice(c,0,r(a.id,t,e));var u=l.apply(d,o);if(void 0===u&&a&&(u=a.exports),void 0!==u)return u}};if(i){var v=_&&_.metadata&&_.metadata.parsedModuleName;v&&v.version&&(v.modulePath===i||v.packageName===i)&&e.register(v.moduleName,m.deps,!1,m.execute),b=0!=s.length||b||x?null:m,x=!0,e.register(i,m.deps,!1,m.execute)}else{if(b)throw new TypeError("Multiple defines for anonymous module");b=m}e.defined[i]&&(e.defined[i].isESModule=u)}var a=e.onScriptLoad;e.onScriptLoad=function(e){a(e),(b||x)&&(e.metadata.format="defined",e.metadata.registered=!0),b&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(b.deps):b.deps,e.metadata.execute=b.execute)},n.amd={},e.amdDefine=n}function o(e,t){e.amdDefine||a(e),b=null,x=null,_=t;var n=e.global;w=n.module,j=n.exports,S=n.define,n.module=void 0,n.exports=void 0,n.define&&n.define===e.amdDefine||(n.define=e.amdDefine)}function i(e){var t=e.global;t.define=S,t.module=w,t.exports=j,_=void 0}var s="undefined"!=typeof module&&module.exports;e._extensions.push(p);var l=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,u=/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm,c=/(function|var|let|const|return|export|\"|\'|\(|\=)$/i,f=/\(([^\)]*)\)/,h=/^\s+|\s+$/g,m={},v={"/*":/[\s\S]*?\*\//g,"//":/[^\r\n]+(?:\r?\n|$)/g,'"':/(?:\\[\s\S]|[^\\])*?"/g,"'":/(?:\\[\s\S]|[^\\])*?'/g,"`":/(?:\\[\s\S]|[^\\])*?`/g,require:/\s*\(\s*(['"`])((?:\\[\s\S]|(?!\1)[^\\])*?)\1\s*\)/g,"/regexp/":/\/(?:(?:\\.|[^\/\r\n])+?)\//g},g=/Object\.defineProperty\([A-Za-z]+, ?['"]__esModule['"], ?{ ?value: ?(!0|true) ?}\)/;e.amdRequire=function(){return n.apply(this,arguments)};var b,x,_,w,j,S;if(a(e),e.scriptLoader){var E=e.fetch;e.fetch=function(e){return o(this,e),E.call(this,e)}}var O=e.instantiate;e.instantiate=function(e){var t=this,n=e.source.replace(u,"$1"),r=n.match(l);if("amd"==e.metadata.format||!e.metadata.format&&r){var a=n.substring(0,n.indexOf(r[0])).replace(h,"");if(!c.test(a)){if(e.metadata.format="amd",!1!==t.execute&&(o(t,e),t.__exec(e),i(t),!b&&!x&&!s))throw new TypeError("AMD module "+e.name+" did not define");b&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(b.deps):b.deps,e.metadata.execute=b.execute)}}return O.call(t,e)}}function h(e){function t(e,t){return!(e.length<t.length)&&(e.substr(0,t.length)==t&&(!e[t.length]||"/"==e[t.length]))}function n(e){for(var t=1,n=0,r=e.length;n<r;n++)"/"===e[n]&&t++;return t}function r(e,t,n){return n+e.substr(t)}function a(e,a,o){var i,s,l,u,c=0,d=0;if(a)for(var f in o.map)if("object"==typeof(h=o.map[f])&&t(a,f)&&!((l=n(f))<=d))for(var p in h)t(e,p)&&((u=n(p))<=c||(i=p,c=u,s=f,d=l));if(i)return r(e,i.length,o.map[s][i]);for(var f in o.map){var h=o.map[f];"string"==typeof h&&(t(e,f)&&((u=n(f))<=c||(i=f,c=u)))}return i?r(e,i.length,o.map[i]):e}e.map=e.map||{},e._extensions.push(h);var o=e.normalize;e.normalize=function(e,t,n){var r=this,i=e;r.map||(r.map={});var s=!1;return"/"==i.substr(i.length-1,1)&&(s=!0,i+="#"),Promise.resolve(o.call(r,i,t,n)).then(function(e){var n=a(e,t,r);if(s){var o=n.split("/");o.pop();var i=o.pop();o.push(i),o.push(i),n=o.join("/")}return n})}}function m(e){void 0===y&&(y=Array.prototype.indexOf),e._extensions.push(m);var t=e.normalize;e.normalize=function(e,n,r){var a,o=this,i=n;return i&&-1!=(a=i.indexOf("!"))&&(i=i.substr(0,a)),Promise.resolve(t.call(o,e,i,r)).then(function(e){var t=e.lastIndexOf("!");if(-1!=t){var n=e.substr(0,t),a=e.substr(t+1)||n.substr(n.lastIndexOf(".")+1);return new Promise(function(e){e(o.normalize(a,i,r))}).then(function(e){return a=e,o.normalize(n,i,r,!0)}).then(function(e){return e+"!"+a})}return e})};var n=e.locate;e.locate=function(e){var t=this,r=e.name;if(this.defined&&this.defined[r])return n.call(this,e);var a=r.lastIndexOf("!");if(-1!=a){var o=r.substr(a+1);e.name=r.substr(0,a);var i=t.pluginLoader||t;return i.import(o,{metadata:{importingModuleName:r}}).then(function(){var n=i.get(o);return!1===(n=n.default||n).build&&t.pluginLoader&&(e.metadata.build=!1),e.metadata.plugin=n,e.metadata.pluginName=o,e.metadata.pluginArgument=e.name,e.metadata.buildType=n.buildType||"js",n.locate?n.locate.call(t,e):Promise.resolve(t.locate(e)).then(function(e){return e.replace(/\.js$/,"")})})}return n.call(this,e)};var r=e.fetch;e.fetch=function(e){var t=this;return!1===e.metadata.build&&t.pluginLoader?"":e.metadata.plugin&&e.metadata.plugin.fetch&&!e.metadata.pluginFetchCalled?(e.metadata.pluginFetchCalled=!0,e.metadata.plugin.fetch.call(t,e,r)):r.call(t,e)};var a=e.translate;e.translate=function(e){var t=this;return e.metadata.plugin&&e.metadata.plugin.translate?Promise.resolve(e.metadata.plugin.translate.call(t,e)).then(function(n){return"string"==typeof n&&(e.metadata.originalSource||(e.metadata.originalSource=e.source),e.source=n),a.call(t,e)}):a.call(t,e)};var o=e.instantiate;e.instantiate=function(e){var t=this;return e.metadata.plugin&&e.metadata.plugin.instantiate?Promise.resolve(e.metadata.plugin.instantiate.call(t,e)).then(function(n){return n||o.call(t,e)}):e.metadata.plugin&&!1===e.metadata.plugin.build?(e.metadata.format="defined",e.metadata.deps.push(e.metadata.pluginName),e.metadata.execute=function(){return t.newModule({})},o.call(t,e)):o.call(t,e)}}function v(e){void 0===y&&(y=Array.prototype.indexOf),e._extensions.push(v),e.bundles=e.bundles||{};var t=e.fetch;e.fetch=function(e){var n=this;if(n.trace)return t.call(this,e);n.bundles||(n.bundles={});for(var r in n.bundles)if(-1!=y.call(n.bundles[r],e.name))return Promise.resolve(n.normalize(r)).then(function(e){return n.bundles[e]=n.bundles[e]||n.bundles[r],n.meta=n.meta||{},n.meta[e]=n.meta[e]||{},n.meta[e].bundle=!0,n.load(e)}).then(function(){return n.defined[e.name]&&!e.metadata.format&&(e.metadata.format="defined"),""});return t.call(this,e)}}function g(e){e.depCache=e.depCache||{},e._extensions.push(g);var t=e.locate;e.locate=function(e){var n=this;n.depCache||(n.depCache={});var r=n.depCache[e.name];if(r)for(var a=0;a<r.length;a++)n.load(r[a]);return t.call(n,e)}}e.upgradeSystemLoader=void 0;var b,y=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},x="undefined"!=typeof process&&!!process.platform.match(/^win/);!function(){var t=e.System;(b=e.System=new LoaderPolyfill(t)).baseURL=t.baseURL,b.paths={"*":"*.js"},b.originalSystem=t}(),b.noConflict=function(){e.SystemJS=b,e.System=b.originalSystem};var _=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(e){_=!1}var w;!function(){try{Object.defineProperty({},"a",{})&&(w=Object.defineProperty)}catch(e){w=function(e,t,n){try{e[t]=n.value||n.get.call(e)}catch(e){}}}}();var j=e.System.originalSystem;s(b),l(b),u(b),c(b),d(b),f(b),p(b),h(b),m(b),v(b),g(b)};var t,n;!function(){function r(e,n){for(var r=0;r<e.length;r++)void 0!==t&&-1!=e[r].indexOf(t.src)||n.push(e[r])}function a(e,t,n,a){var i=[];e.originalErr||r((e.stack||e.message||e).toString().split("\n"),i),e.originalErr&&!i.length&&r(e.originalErr.stack.toString().split("\n"),i);var s=e instanceof SyntaxError;if(n&&s&&!e.originalErr&&i.length&&-1===e.stack.indexOf(n))for(var l=0;l<i.length;l++)if(/( at )|(@http)/.test(i[l])){i.splice(l,1," at eval ("+n+":1:1)"),e.stack=i.join("\n\t");break}var u=e.message;c||(u=u.replace(h?/file:\/\/\//g:/file:\/\//g,""));var d=e.constructor||Error,f=y?new d(u,e.fileName,e.lineNumber):new d(u);return c?i&&(f.stack=i.join("\n\t")):f.stack=i.join("\n\t"),f.originalErr=e.originalErr||e,f.firstErr=e.firstErr||f,f.onModuleExecution=!0,s?(f.onlyIncludeCodeFrameIfRootModule=!0,o(f,t)):f}function o(e,t){if("function"!=typeof Error.captureStackTrace)return e;var n=e.firstErr&&e.firstErr.logError||i.bind(null,t);return Object.defineProperty(e,"logError",{enumerable:!1,value:n})}function i(e,t){setTimeout(function(){new Function(e)})}var s,l,u="undefined"==typeof window&&"undefined"!=typeof self&&"undefined"!=typeof importScripts,c="undefined"!=typeof window&&"undefined"!=typeof document,d="object"==typeof process&&"[object process]"==={}.toString.call(process),f=!!(d&&global.nw&&global.nw.process),p=c&&!f&&window.chrome&&window.chrome.extension,h="undefined"!=typeof process&&!!process.platform.match(/^win/);if(s=function(e,t,n){try{new Function(e).call(n)}catch(n){throw a(n,e,t)}},u)e.upgradeSystemLoader();else if(!c&&!f||p){if(d){var m=require("./src/loader");e.System=m.System,e.Loader=m.Loader,e.upgradeSystemLoader(),module.exports=e.System;var v=require("vm");s=function(e){v.runInThisContext(e)}}}else{var g,b=document.getElementsByTagName("script");t=b[b.length-1],l=function(e){g||(g=document.head||document.body||document.documentElement);var t=document.createElement("script");t.text=e;var n,r=window.onerror;if(window.onerror=function(e){n=e},g.appendChild(t),g.removeChild(t),window.onerror=r,n)throw n},e.upgradeSystemLoader()}var y="_"==new Error(0,"_").fileName;n=function(e,t,n,r,a){var o=e;o+="\n//# sourceURL="+t+(r?"\n//# sourceMappingURL="+r:""),"script"===a&&"function"==typeof l?l(o):s(o,t,n)}}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(e){var t,n=function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},r=function(e,t){var n,r;if("number"==typeof e.length&&e.length-1 in e)for(n=0,r=e.length;n<r;n++)t.call(e[n],e[n],n,e);else for(n in e)e.hasOwnProperty(n)&&t.call(e[n],e[n],n,e);return e},a=function(e,t){var n=[];return r(e,function(e,r){n[r]=t(e,r)}),n},o=function(e){return"string"==typeof e},i=function(e,t){return r(t,function(t,n){e[n]=t}),e},s=function(e){var t=e.lastIndexOf("/");return-1===t&&(t=e.lastIndexOf("\\")),-1!==t?e.substr(0,t):e},l=function(e){return e[e.length-1]},u=function(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/]*(?::[^:@\/]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null},c=function(e,t){return t=u(t||""),e=u(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+function(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}(t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname)+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null},d=function(e,t){for(var n=t.split("/"),r=e.split("/"),a=[];n.length&&r.length&&n[0]==r[0];)n.shift(),r.shift();for(var o=0;o<r.length-1;o++)a.push("../");return"./"+a.join("")+n.join("/")},f=Function.prototype.bind,p=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},h="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,m=!(b="object"==typeof process&&"[object process]"==={}.toString.call(process))&&"undefined"!=typeof window,v=b&&function(){try{return"undefined"!==require("nw.gui")}catch(e){return!1}}(),g=b&&!!process.versions.electron,b=b&&!v&&!g,y=m||v||g,x=function(){if(m||v||g){if(document.currentScript)return document.currentScript;var e=document.scripts;if(e.length)return e[e.length-1]}},_=x(),w="object"==typeof console?f.call(console.warn,console):function(){},j=function(e){var t=e.lastIndexOf("/");-1===t&&(t=e.lastIndexOf("\\"));var n=(-1==t?e:e.substr(t+1)).match(/^[\w-\s\.!]+/);return n?n[0]:""},S=function(e){var t=j(e),n=t.lastIndexOf(".");return-1!==n?t.substr(n+1):""},E=function(e,t){var n=e,r=n.lastIndexOf("!"),a="";if(-1!=r){var o=n.substr(0,r);a="!"+n.substr(r+1),n=o}var i=j(n),s=S(n);return"/"===n[n.length-1]?n+j(n.substr(0,n.length-1))+a:/^(\w+(?:s)?:\/\/|\.|file|\/)/.test(n)||-1!==i.indexOf(".")?"js"===s?n.substr(0,n.lastIndexOf("."))+a:n+a:n+"/"+i+a},O=function(e){var t=e||this.System,n=P(t.clone());return n.loader.set("@steal",n.loader.newModule({default:n,__useDefault:!0})),n.clone=O,n};"function"==typeof Set?t=Set:((t=function(){this._items=[]}).prototype.has=function(e){return-1!==this._items.indexOf(e)},t.prototype.add=function(e){this.has(e)||this._items.push(e)});var P=function(e){var v=function(t){void 0!==e&&p(t)&&(e._extensions&&e._extensions.push(t),t(e,P))};e.set("@loader",e.newModule({default:e,__useDefault:!0})),e.set("less",e.newModule({__useDefault:!0,default:{fetch:function(){throw new Error(["steal-less plugin must be installed and configured properly","See https://stealjs.com/docs/steal-less.html"].join("\n"))}}})),e.config({map:{"@loader/@loader":"@loader","@steal/@steal":"@steal"}});var g,S,O,P=function(){var t=arguments,n=function(){var e,n=[];r(t,function(t){o(t)?n.push(P.System.import(E(t))):"function"==typeof t&&(e=t)});var a=Promise.all(n);return e?a.then(function(t){return e&&e.apply(null,t)}):a};return e.isEnv("production")?n():g.then(n,n)};e.set("@steal",e.newModule({default:P,__useDefault:!0})),e.Set=t;var M=e.clone;e.clone=function(){var e=M.apply(this,arguments);return e.set("@loader",e.newModule({default:e,__useDefault:!0})),e.set("@steal",e.newModule({default:P,__useDefault:!0})),e.Set=t,e},P.System=P.loader=e,P.parseURI=u,P.joinURIs=c,P.normalize=E,P.relativeURI=d,P.addExtension=v,v(function(e){e.ext={};var t=e.normalize,n=/\.(\w+)!?$/;e.normalize=function(r,a,o,i){if(i)return t.apply(this,arguments);var s=r.match(n),l=r;if(s){var u="!"===r[r.length-1],c=s[1];a&&e.configMain!==r&&".js"===s[0]?l=r.substr(0,r.lastIndexOf(".")):e.ext[c]&&(l=r+(u?"":"!")+e.ext[c])}return t.call(this,l,a,o)}}),v(function(e){var t=e.normalize,n=/@.+#.+/;e.normalize=function(e,r,a,o){var i,s,l=e.length-1,u=e;return"/"===e[l]&&(i=e.substring(0,l).lastIndexOf("/"),s=e.substring(i+1,l),n.test(s)&&(s=s.substr(s.lastIndexOf("#")+1)),u+=s),t.call(this,u,r,a,o)}}),v(function(e){var t=function(e,t){var n=this;return Promise.resolve(n.normalize(e,t)).then(function(e){return n.locate({name:e,metadata:{}})}).then(function(e){var t=e;return".js"===e.substr(e.length-3)&&(t=e.substr(0,e.length-3)),t})},n=function(e,t){for(var n=t.split("/"),r=e.split("/"),a=[];n.length&&r.length&&n[0]==r[0];)n.shift(),r.shift();for(var o=0;o<r.length-1;o++)a.push("../");return a.join("")+n.join("/")},r=/(locate):\/\/([a-z0-9/._@-]*)/gi,a=function(e,t){var a=[];return e.replace(r,function(e,r,o,i){a.push({start:i,end:i+e.length,name:o,postLocate:function(e){return n(t,e)}})}),a},o=e.translate;e.translate=function(e){var n=this;if(!e.metadata.plugin)return o.call(this,e);if(!e.metadata.plugin.locateScheme)return o.call(this,e);var r=a(e.source,e.address);if(!r.length)return o.call(this,e);for(var i=[],s=0,l=r.length;s<l;s++)i.push(t.call(this,r[s].name,e.name));return Promise.all(i).then(function(t){for(var a=r.length-1;a>=0;a--)e.source=e.source.substr(0,r[a].start)+r[a].postLocate(t[a])+e.source.substr(r[a].end,e.source.length);return o.call(n,e)})}}),v(function(e){e._contextualModules={},e.setContextual=function(e,t){this._contextualModules[e]=t};var t=e.normalize;e.normalize=function(e,n){var r=this,a=r.pluginLoader||r;if(n){var o=this._contextualModules[e];if(o){var i=e+"/"+n;return r.has(i)?Promise.resolve(i):("string"==typeof o&&(o=a.import(o)),Promise.resolve(o).then(function(e){var t=e;return t.default&&(t=t.default),Promise.resolve(t.call(r,n))}).then(function(e){return r.set(i,r.newModule(e)),i}))}}return t.apply(this,arguments)}}),v(function(e){function t(){document.removeEventListener("DOMContentLoaded",t,!1),window.removeEventListener("load",t,!1),n()}function n(){for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n++){var r=t[n];if("steal-module"==r.type||"text/steal-module"==r.type){var a=r.innerHTML;/\S/.test(a)&&e.module(a).catch(function(e){setTimeout(function(){throw e})})}}}e.loadScriptModules=function(){m&&("complete"===document.readyState?setTimeout(n):document.addEventListener&&(document.addEventListener("DOMContentLoaded",t,!1),window.addEventListener("load",t,!1)))}}),v(function(e){function t(e){n=null,e.global.module=void 0,e.global.exports=void 0,e.global.steal=function(){for(var t,r=[],a=0;a<arguments.length;a++)"string"==typeof arguments[a]?r.push(E(arguments[a])):t=arguments[a];"function"!=typeof t&&(t=function(e){return function(){return e}}(t)),n={deps:r,execute:function(n,a,o){for(var i=[],s=0;s<r.length;s++)i.push(n(r[s]));var l=t.apply(e.global,i);if(void 0!==l)return l}}}}var n,r=/(?:^\s*|[}{\(\);,\n\?\&]\s*)steal\s*\(\s*((?:"[^"]+"\s*,|'[^']+'\s*,\s*)*)/,a=e.instantiate;e.instantiate=function(e){var o=this;if("steal"===e.metadata.format||!e.metadata.format&&e.source.match(r)){e.metadata.format="steal";var i=o.global.steal;if(t(o),o.__exec(e),o.global.steal=i,!n)throw"Steal module "+e.name+" did not call steal";n&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(n.deps):n.deps,e.metadata.execute=n.execute)}return a.call(o,e)}}),v(function(e){var t=e.instantiate,n="object"==typeof console?Function.prototype.bind.call(console.warn,console):null;e._instantiatedModules||Object.defineProperty(e,"_instantiatedModules",{value:Object.create(null),writable:!1}),e._pendingState=function(t){delete e._instantiatedModules[t.address]},e.instantiate=function(e){var r=e.address,a=this,o=a._instantiatedModules;if(n&&r&&o[r]){var i=a._traceData&&a._traceData.loads||{},s=a._traceData&&a._traceData.parentMap||{},l=o[e.address];if(1===l.length&&l[0]===e.name)return t.apply(a,arguments);var u=l.concat(e.name).map(function(e){return"\t"+e+"\n"+(s[e]?Object.keys(s[e]):[]).map(function(e){return"\t\t - "+i[e].address}).join("\n")}).join("\n\n");n(["The module with address "+e.address+" is being instantiated twice.","This happens when module identifiers normalize to different module names.\n","Modules:\n"+(u||"")+"\n","HINT: Import the module using the ~/[modulePath] identifier.\nLearn more at https://stealjs.com/docs/moduleName.html and https://stealjs.com/docs/tilde.html"].join("\n"))}else a._configLoaded&&r&&(o[e.address]=[e.name]);return t.apply(a,arguments)};var r=e.delete;e.delete=function(e){var t=r.apply(this,arguments),n=this.getModuleLoad(e);return n&&(this._instantiatedModules[n.address]=void 0),t}}),v(function(e){e._warnNoMain=function(e){var t=this;this._noMainTimeoutId=setTimeout(function(){t.import=n},e)};var t={"package.json!npm":!0,npm:!0,"@empty":!0,"@dev":!0},n=e.import;e.import=function(e){return void 0===t[e]&&e!==this.configMain&&(this.import=n,this._warnNoMain=Function.prototype,clearTimeout(this._noMainTimeoutId)),n.apply(this,arguments)};var r=e.module;e.module=function(){var e=r.apply(this,arguments);return this.module=r,clearTimeout(this._noMainTimeoutId),e}}),v(function(e){function t(e,t,n){var r=e.meta[t.name];if(r&&r.deps&&r.deps.length){var a=r.deps.map(n).join("\n");t.source=a+"\n"+t.source}}function n(e){return'import "'+e+'";'}function r(e){return'require("'+e+'");'}var a=e.transpile,o=e._determineFormat;e.transpile=function(e){return t(this,e,n),a.apply(this,arguments)},e._determineFormat=function(e){return"cjs"===e.metadata.format&&t(this,e,r),o.apply(this,arguments)}}),v(function(e){function t(e,t){this.message=e,this.items=t}function n(e){var t=e.split("\n"),n=o(t.map(a));if(n.length>0)return n;var i=o(t.map(r));if(i.length>0)return i;throw new Error("Unknown stack format: "+e)}function r(e){var t=e.match(l);if(!t)return null;var n=t[1]||"";return{method:n,fnName:n,url:t[2]||"",line:parseInt(t[3])||0,column:parseInt(t[4])||0}}function a(e){var t=e.match(u)||e.match(c);if(!t)return null;var n=t[3].match(d);if(!n)return null;var r=t[2]||"";return t[1]&&(r="eval at "+r),{method:r,fnName:r,url:n[1]||"",line:parseInt(n[2])||0,column:parseInt(n[3])||0}}function o(e){var t=[];return e.forEach(function(e){e&&t.push(e)}),t}function i(e){var t=/at position ([0-9]+)/.exec(e);if(t&&t.length>1)return Number(t[1])}function s(e,t){for(var n=0;n<e.items.length;n++)if(e.items[n].url===t)return e.items[n]}t.prototype.toString=function(){for(var e,n,r=["Error: "+this.message],a=0,o=this.items.length;a<o;a++)n=" at ",(e=this.items[a]).fnName&&(n+=e.fnName+" "),n+=t.positionLink(e),r.push(n);return r.join("\n")},t.positionLink=function(e){var t=e.line||0,n=e.column||0;return"("+e.url+":"+t+":"+n+")"},t.item=function(e,t,n,r){return{method:e,fnName:e,url:t,line:n,column:r}};var l=/^(?:([^@]*)@)?(.*?):(\d+)(?::(\d+))?$/,u=/^\s*(eval )?at (.*) \((.*)\)$/,c=/^\s*at()() (\S+)$/,d=/^\(?([^\(]+):(\d+):(\d+)\)?$/;t.parse=function(e){try{var r=n(e.stack||e);if(r.length)return new t(e.message,r)}catch(e){return}},e.StackTrace=t,e.loadCodeFrame=function(){this.global.process||(this.global.process={argv:"",env:{}});var e=this.pluginLoader||this;return e.isEnv("production")?Promise.resolve():e.import("@@babel-code-frame")},e._parseJSONError=function(e,t){var n=i(e.message);return n?this._getLineAndColumnFromPosition(t,n):{line:0,column:0}};var f=/at position( |:)([0-9]+)/,p=/at line ([0-9]+) column ([0-9]+)/;e._parseSyntaxErrorLocation=function(e,t){var n=f.exec(e.message);if(n&&3===n.length){var r=Number(n[2]);return this._getLineAndColumnFromPosition(t.source,r)}if((n=p.exec(e.message))&&3===n.length)return{line:Number(n[1]),column:Number(n[2])}},e._addSourceInfoToError=function(e,n,r,a){return this.loadCodeFrame().then(function(o){if(o){var i=o(r.metadata.originalSource||r.source,n.line,n.column);e.message+="\n\n"+i+"\n"}var s=new t(e.message,[t.item(a,r.address,n.line,n.column)]);return e.stack=s.toString(),Promise.reject(e)})},e.rejectWithCodeFrame=function(e,n){var r,a=t.parse(e);return(r=e.onlyIncludeCodeFrameIfRootModule?a&&a.items[0]&&a.items[0].url===n.address&&a.items[0]:s(a,n.address))?this.loadCodeFrame().then(function(t){if(t){var o=new Error(e.message),i=r.line,s=r.column;"cjs"===n.metadata.format&&(i-=3);var l=t(n.metadata.originalSource||n.source,i,s);return l?(o.message+="\n\n"+l+"\n",a.message=o.message,o.stack=a.toString(),Promise.reject(o)):Promise.reject(e)}return Promise.reject(e)}):Promise.reject(e)}}),v(function(e){e.prettyName=function(e){var t=e.metadata.parsedModuleName;return t?t.packageName+"/"+t.modulePath:e.name}}),v(function(e){function t(e,t){return!e.noTreeShaking&&!1!==e.treeShaking}function n(e){var t=this,n=r.call(this,e),o=new t.Set,i=!1;return n.forEach(function(n){var r=t.getModuleLoad(n);t.moduleSpecifierFromName(r,e.name);"es6"===r.metadata.format||(i=!0)}),i||(i=a.call(t,e,function(e){e.forEach(function(e){o.add(e)})})),e.metadata.usedExports&&e.metadata.usedExports.forEach(function(e){o.add(e)}),t.treeShakeConfig[e.name]||(t.treeShakeConfig[e.name]=Object.create(null)),e.metadata.usedExports=t.treeShakeConfig[e.name].usedExports=o,e.metadata.allExportsUsed=t.treeShakeConfig[e.name].allExportsUsed=i,{all:i,used:o}}function r(e){var t=[],n=this.getDependants(e.name),r=e.metadata.shakenParents;if(r)for(var a=0;a<n.length;a++)-1===r.indexOf(n[a])&&t.push(n[a]);else t=n;return t}function a(e,t){var n=e.name,r=new this.Set,a=[n].concat(this.getDependants(n)),o=null,i=0,s=!0;if(1===a.length)return!0;var l=Object.create(null);a.forEach(function(e){l[e]=!0});do{var u=a[++i];if(null!=u){if(!r.has(u)){r.add(u);var c=this.getModuleLoad(u),d=this.moduleSpecifierFromName(c,n),f="es6"===c.metadata.format,p=c.metadata.importNames,h=c.metadata.exportNames;if(!f&&l[u])return!0;if(p&&p[d]){v=p[d];if(o){var m=v;v=[],m.forEach(function(e){o.has(e)&&v.push(o.get(e))})}s=!1!==t(v)}if(h&&h[d]){var v=h[d],g=this.getDependants(u);if(isNaN(v))o=v;else if(!g.length)return!0;a.push(null),a.push(u),a.push.apply(a,g)}s=!1!==s&&i<a.length-1}}else n=a[++i],s=i<a.length-1}while(s);return!1}function o(e,t){var n=[],r=a.call(this,e,function(e){n.push.apply(n,e)}),o=r;if(!r&&e.metadata.usedExports)for(var i=0;i<n.length;i++)if(!e.metadata.usedExports.has(n[i])){o=!0;break}if(o){var s=e.metadata.originalSource||e.source;this.provide(e.name,s,e)}return Promise.resolve()}function i(e,t){function r(){return a||(a=n.call(e,t))}var a,o={exit:function(e,t){t.treeShakable=!1}},i={ImportDeclaration:{exit:function(e,t){t.treeShakable=0===e.node.specifiers.length}},FunctionDeclaration:o,VariableDeclaration:o};return{visitor:{Program:{enter:function(n){var r={};n.traverse(i,r),t.metadata.treeShakable=!1!==r.treeShakable,e.treeShakeConfig[t.name]||(e.treeShakeConfig[t.name]=Object.create(null)),e.treeShakeConfig[t.name].treeShakable=t.metadata.treeShakable}},ExportNamedDeclaration:function(e,n){if(t.metadata.treeShakable){var a=r(),o=a.used;a.all||(e.get("specifiers").forEach(function(e){var t=e.get("exported.name").node;o.has(t)||"__esModule"===t||e.remove()}),0===e.get("specifiers").length&&e.remove())}},ExportAllDeclaration:function(e,n){t.metadata.treeShakable&&r()}}}}function s(e){var n=this;return(n.pluginLoader||n).import("babel").then(function(r){var a=r.__useDefault?r.default:r,o=a.Babel||a.babel||a;try{var s=[].concat(u(o));s.push(n._getImportSpecifierPositionsPlugin.bind(null,e)),t(n,e)&&s.push(i.bind(null,n,e));var l=o.transform(e.source,{plugins:s,compact:!1,filename:e&&e.address}).code;return""===l?'"format es6";':l}catch(e){return e instanceof SyntaxError?Promise.resolve():Promise.reject(e)}})}var l=e.notifyLoad;e.notifyLoad=function(t,n,r){var a=e.getModuleLoad(n);return a&&a.metadata.treeShakable?o.call(this,a,r):l.apply(this,arguments)};var u=function(){var e;return function(t){if(!e){e=[];for(var n in t.availablePlugins)0===n.indexOf("syntax-")&&e.push(t.availablePlugins[n])}return e}}(),c=e.translate,d=/(^\s*|[}\);\n]\s*)(import\s+(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s+from\s+['"]|\{)|export\s+\*\s+from\s+["']|export\s+(\{|default|function|class|var|const|let|async\s+function))/;e.translate=function(e){var t=this;return Promise.resolve().then(function(){if(d.test(e.source))return e.metadata.originalSource||(e.metadata.originalSource=e.source),s.call(t,e)}).then(function(n){return n&&(e.source=n),c.call(t,e)})},e.treeShakeConfig=Object.create(null);e._newLoader||Function.prototype;e._newLoader=function(e){var t=this.treeShakeConfig;e.treeShakeConfig=this.treeShakeConfig;for(var n in t){var r=t[n],a=Object.create(null);a.treeShakable=r.treeShakable,a.usedExports=new this.Set(r.usedExports),a.allExportsUsed=r.allExportsUsed;var o={meta:{}};o.meta[n]=a,e.config(o)}}}),v(function(e){var t=/\.mjs$/,n=/\.js$/,r=e.locate;e.locate=function(e){var a=t.test(e.name),o=r.apply(this,arguments);return a?Promise.resolve(o).then(function(e){return n.test(e)?e.substr(0,e.length-3):e}):o}}),v(function(e){function t(e,t){var n;for(n in e)t(n,e[n])}function n(e){function t(e,t){for(var n=0;n<e.length;n++)if(e[n][0]<t.index&&e[n][1]>t.index)return!0;return!1}function n(e){for(;a=e.exec(r);)if(!t(i,a)){var n=a[1];o.push(n)}}var r=e.replace(c,"");l.lastIndex=c.lastIndex=u.lastIndex=d.lastIndex=0;var a,o=[],i=[];if(e.length/e.split("\n").length<200)for(;a=d.exec(r);)i.push([a.index,a.index+a[0].length]);return n(l),n(u),o}e._traceData={loads:{},parentMap:{}},e.getDependencies=function(e){var t=this.getModuleLoad(e);return t?t.metadata.dependencies:void 0},e.getDependants=function(e){var n=[];return t(this._traceData.parentMap[e]||{},function(e){n.push(e)}),n},e.getModuleLoad=function(e){return this._traceData.loads[e]},e.getBundles=function(e,n){var r=n||{};r[e]=!0;var a=this,o=a._traceData.parentMap[e];if(!o)return[e];var i=[];return t(o,function(e,t){r[e]||(i=i.concat(a.getBundles(e,r)))}),i},e.getImportSpecifier=function(e,t){for(var n,r=0;r<t.metadata.dependencies.length;){if(t.metadata.dependencies[r]===e){n=t.metadata.deps[r];break}r++}if(n){if(t.metadata.importSpecifiers)return(t.metadata.importSpecifiers[n]||{}).start;if(t.metadata.getImportPosition)return t.metadata.getImportPosition(n)}},e.moduleSpecifierFromName=function(e,t){var n=e.metadata.dependencies;if(n){var r=n.indexOf(t);return e.metadata.deps[r]}},e._allowModuleExecution={},e.allowModuleExecution=function(e){var t=this;return t.normalize(e).then(function(e){t._allowModuleExecution[e]=!0})};var r=e.normalize;e.normalize=function(e,t){var n=r.apply(this,arguments);if(t){var a=this._traceData.parentMap;return n.then(function(e){return a[e]||(a[e]={}),a[e][t]=!0,e})}return n};var a=function(){return e.newModule({})},o={traceur:!0,babel:!0},i=function(e){return o[e.name]||this._allowModuleExecution[e.name]},s=[].map||function(e){for(var t=[],n=0,r=this.length;n<r;n++)t.push(e(this[n]));return t},l=/import [\s\S]*?["'](.+)["']/g,u=/export .+ from ["'](.+)["']/g,c=/(?:(?:^|\s)\/\/(.+?)$)|(?:\/\*([\S\s]*?)\*\/)/gm,d=/(?:("|')[^\1\\\n\r]*(?:\\.[^\1\\\n\r]*)*\1|`[^`]*`)/g,f=e.instantiate;e.instantiate=function(e){function t(t){var n=r.preventModuleExecution&&!i.call(r,e),o=t?t.deps:e.metadata.deps,l=r.normalizeSpecifier||r.normalize;return Promise.all(s.call(o,function(t){return l.call(r,t,e.name)})).then(function(r){return e.metadata.deps=o,e.metadata.dependencies=r,n?{deps:o,execute:a}:t})}this._traceData.loads[e.name]=e;var r=this;return Promise.resolve(f.apply(this,arguments)).then(function(r){if(!r){var a=n(e.source);e.metadata.deps=a}return t(r)})};var p=e.transpile;e.transpile=function(e){var t=e.metadata.transpiledSource;return t?(delete e.metadata.transpiledSource,Promise.resolve(t)):p.apply(this,arguments)},e.eachModule=function(e){for(var t in this._loader.modules)e.call(this,t,this.get(t))}}),v(function(e){function t(e){var t=e;return!!t&&(t=t.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@"),t=t.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]"),t=t.replace(/(?:^|:|,)(?:\s*\[)+/g,""),/^[\],:{}\s]*$/.test(t))}function n(e){if(("json"===e.metadata.format||!e.metadata.format)&&(t(e.source)||r.test(e.name)))try{return JSON.parse(e.source)}catch(t){var n=void 0;if(t instanceof SyntaxError){var a=this._parseSyntaxErrorLocation(t,e);if(a){var o="Unable to parse "+e.address,i=new SyntaxError(o);throw i.promise=this._addSourceInfoToError(i,a,e,"JSON.parse"),i}}return n("Error parsing "+e.address+":",t),{}}}var r=/\.json$/i,a=/\.js$/i,o=e.locate;e.locate=function(e){return o.apply(this,arguments).then(function(t){return r.test(e.name)?t.replace(a,""):t})};var i=function(e,t,n){var r=e.jsonOptions&&e.jsonOptions.transform;return r?r.call(e,t,n):n};if(!b){var s=e.instantiate;return e.instantiate=function(e){var t,r=this;return(t=n.call(this,e))&&(t=i(r,e,t),e.metadata.format="json",e.metadata.execute=function(){return t}),s.call(r,e)},e}var l=e.translate;e.translate=function(e){var t=e.metadata.address||e.address;if(r.test(t)&&-1===e.name.indexOf("!")){var a=n.call(this,e);if(a)return a=i(this,e,a),"define([], function(){\n\treturn "+JSON.stringify(a)+"\n});"}return l.call(this,e)}}),v(function(e){var t=e.fetch;e.fetch=function(e){var n=this;if(n.isEnv("production")&&n.cacheVersion){var r=n.cacheVersion,a=(n.cacheKey||"version")+"="+r;e.address=e.address+(-1===e.address.indexOf("?")?"?":"&")+a}return t.call(this,e)}});var k=function(e,t,n){e[t]||(e[t]=n)};e.configMain="@config",e.devBundle="@empty",e.depsBundle="@empty",e.paths[e.configMain]="stealconfig.js",e.env=(h?"worker":"window")+"-development",e.ext=Object.create(null),e.logLevel=0,e.forceES5=!0;k(e.paths,"bundles/*.css","dist/bundles/*css"),k(e.paths,"bundles/*","dist/bundles/*.js"),(e.global.less||(e.global.less={})).async=!0;var L=function(t){return{order:t,set:function(t){var n=j(t),r=s(t);b||(e.configPath=c(location.href,t)),e.configMain=n,e.paths[n]=n,this.config({baseURL:(r===t?".":r)+"/"})}}},I=function(e,t){return{order:t,set:function(t){this[e]=t}}},R=function(e,t){return{order:t,set:function(t){this[e]=!!t&&"false"!==t}}},T=function(e){var t=e;return b&&!/^file:/.test(t)?("."===t[0]&&("/"===t[1]||"."===t[1]&&"/"===t[2])&&(t=require("path").join(process.cwd(),t)),t?"file:"+t:t):t},N=function(e){var t=e.lastIndexOf("!");if(-1!==t)return e.substr(t+1)},D=function(e){var t=e.lastIndexOf("!");if(-1!==t)return e.substr(0,t)},C=function(){if(this.loadBundles&&this.main&&!this.stealBundled){var t=this.main,n=this.bundlesName||"bundles/",r=n+t;k(this.meta,r,{format:"amd"});var a=N(e.configMain),o=[t,e.configMain];if(a&&e.set(a,e.newModule({})),a=N(t)){var i=D(t);o.push(a),o.push(i),r=n+i.substr(0,i.indexOf("."))}this.bundles[r]=o}},$=function(){if(this.envs){var e=this.envs[this.env];e&&this.config(e)}},q=function(){if(this.liveReloadInstalled){var e=this;this.import("live-reload",{name:"@@steal"}).then(function(t){t(e.configMain,function(){$.call(e)})})}},F=[],A={map:!0,paths:!0,meta:!0},z={instantiated:{order:1,set:function(e){var t=this;r(e||{},function(e,n){t.set(n,t.newModule(e))})}},envs:{order:2,set:function(e){var t=this.envs;t||(t=this.envs={}),r(e,function(e,n){var a=t[n];a||(a=t[n]={}),r(e,function(e,t){A[t]&&a[t]?i(a[t],e):a[t]=e})})}},env:{order:3,set:function(e){this.env=e,this.isEnv("production")&&(this.loadBundles=!0)}},loadBundles:R("loadBundles",4),stealBundled:R("stealBundled",5),bundle:{order:6,set:function(t){e.bundle=t}},bundlesPath:{order:7,set:function(e){return this.paths["bundles/*.css"]=e+"/*css",this.paths["bundles/*"]=e+"/*.js",e}},meta:{order:8,set:function(e){var t=this;r(e||{},function(e,n){if("object"==typeof e){var r=t.meta[n];if(r&&r.format===e.format){var a=e.deps;i(e,r),a&&(e.deps=a)}}}),i(this.meta,e)}},configMain:I("configMain",9),config:L(10),configPath:L(11),baseURL:function(e,t){return{order:t,set:function(t){this[e]=T(t)}}}("baseURL",12),main:I("main",13),stealPath:{order:14,set:function(t,n){var r=T(t),a=r.split("/");if(k(this.paths,"@dev",r+"/ext/dev.js"),k(this.paths,"npm",r+"/ext/npm.js"),k(this.paths,"npm-extension",r+"/ext/npm-extension.js"),k(this.paths,"npm-utils",r+"/ext/npm-utils.js"),k(this.paths,"npm-crawl",r+"/ext/npm-crawl.js"),k(this.paths,"npm-load",r+"/ext/npm-load.js"),k(this.paths,"npm-convert",r+"/ext/npm-convert.js"),k(this.paths,"semver",r+"/ext/semver.js"),k(this.paths,"live-reload",r+"/ext/live-reload.js"),k(this.paths,"steal-clone",r+"/ext/steal-clone.js"),this.paths.traceur=r+"/ext/traceur.js",this.paths["traceur-runtime"]=r+"/ext/traceur-runtime.js",this.paths.babel=r+"/ext/babel.js",this.paths["babel-runtime"]=r+"/ext/babel-runtime.js",this.paths["@@babel-code-frame"]=r+"/ext/babel-code-frame.js",k(this.meta,"traceur",{exports:"traceur"}),k(this.meta,"@@babel-code-frame",{format:"global",exports:"BabelCodeFrame"}),this.setContextual("steal-clone","steal-clone"),b)"@config"===this.configMain&&"steal"===l(a)&&(a.pop(),"node_modules"===l(a)&&(this.configMain="package.json!npm",a.pop())),(this.isEnv("production")||this.loadBundles)&&C.call(this);else if(!n.baseURL&&!n.config&&!n.configPath){if("steal"===l(a)){a.pop();var o=!1;"node_modules"===l(a)&&(e.configMain="package.json!npm",C.call(this),a.pop(),o=!0),o||a.push("steal")}this.config({baseURL:a.join("/")+"/"})}e.stealPath=r}},stealURL:{order:15,set:function(t,n){var r=t.split("?").shift(),a=r.split("/"),o=a.pop(),i=a.join("/"),s=this.getPlatform()||(h?"worker":"window");e.stealURL=r,(this.stealBundled&&!0===this.stealBundled||o.indexOf("steal.production")>-1||o.indexOf("steal-with-promises.production")>-1&&!n.env)&&this.config({env:s+"-production"}),(this.isEnv("production")||this.loadBundles)&&C.call(this),z.stealPath.set.call(this,i,n)}},devBundle:{order:16,set:function(e,t){var n=!0===e?"dev-bundle":e;n&&(this.devBundle=n)}},depsBundle:{order:17,set:function(e,t){var n=!0===e?"dev-bundle":e;n&&(this.depsBundle=n)}}};r(z,function(e,t){e.order?F.splice(e.order,0,t):F.push(t)}),function(e,t,n){var a=e.config;e.config=function(o){var s=i({},o);r(t,function(t){var r=n[t];if(r.set&&s[t]){var a=r.set.call(e,s[t],o);void 0!==a&&(e[t]=a),delete s[t]}}),a.call(this,s)}}(e,F,z),P.config=function(e){if("string"==typeof e)return this.loader[e];this.loader.config(e)},v(function(e){e.getEnv=function(){return(this.env||"").split("-")[1]||this.env},e.getPlatform=function(){var e=(this.env||"").split("-");return 2===e.length?e[0]:void 0},e.isEnv=function(e){return this.getEnv()===e},e.isPlatform=function(e){return this.getPlatform()===e}});var U=function(e){var t={},r=/Url$/,a=e.split("?"),o=a.shift(),i=a.join("?").split("&"),s=o.split("/");s.pop(),s.join("/");if(i.length&&i[0].length)for(var l,u=0;u<i.length;u++){var c=(l=i[u]).split("=");if(c.length>1){var d=n(c[0]);t[d=d.replace(r,"URL")]=c.slice(1).join("=")}}return t},B=function(e){var t={},a=/Url$/;t.stealURL=e.src,r(e.attributes,function(e){var r=e.nodeName||e.name,o=n(0===r.indexOf("data-")?r.replace("data-",""):r);o=o.replace(a,"URL"),t[o]=""===e.value||e.value});var o=e.innerHTML;/\S/.test(o)&&(t.mainSource=o);var s=i(U(e.src),t);return s.main&&("boolean"==typeof s.main&&delete s.main,s.loadMainOnStartup=!0),s},W=function(){var e=this;return new Promise(function(t,n){if(!h)return y?(e.script=_||x(),void t(B(e.script))):void t({loadMainOnStartup:!0,stealPath:__dirname});t(i({loadMainOnStartup:!0,stealURL:location.href},U(location.href)))})};return P.startup=function(e){var t,n,r=this,o=this.loader;return g=new Promise(function(e,r){t=e,n=r}),O=W.call(this).then(function(s){function l(e){if(404===e.statusCode&&r.script){var t="This page has "+((o.devBundle?"dev-":"deps-")+"bundle")+" enabled but "+e.url+" could not be retrieved.\nDid you forget to generate the bundle first?\nSee https://stealjs.com/docs/StealJS.development-bundles.html for more information.",n=new Error(t);return n.stack=null,Promise.reject(n)}return Promise.reject(e)}var u;return u="object"==typeof e?i(e,s):s,o.config(u),$.call(o),o.loadBundles?(o.main||!o.isEnv("production")||o.stealBundled||w("Attribute 'main' is required in production environment. Please add it to the script tag."),o.import(o.configMain).then(t,n),g.then(function(e){return $.call(o),o._configLoaded=!0,o.main&&u.loadMainOnStartup?o.import(o.main):e})):(o.import(o.devBundle).then(function(){return o.import(o.configMain)},l).then(function(){return o.import(o.depsBundle).then(null,l)}).then(t,n),(S=g.then(function(){return $.call(o),q.call(o),o._configLoaded=!0,u&&o.config(u),o.import("@dev")})).then(function(){if(!o.main||o.localLoader)return g;if(u.loadMainOnStartup){var e=o.main;return"string"==typeof e&&(e=[e]),Promise.all(a(e,function(e){return o.import(e)}))}o._warnNoMain(r._mainWarnMs||2e3)}))}).then(function(e){return o.mainSource?o.module(o.mainSource):(o.loadScriptModules(),e)})},P.done=function(){return O},P.import=function(){var e=arguments,t=this.System;return g||(t.main||(t.main="@empty"),P.startup()),g.then(function(){var n=[];return r(e,function(e){n.push(t.import(e))}),n.length>1?Promise.all(n):n[0]})},P.setContextual=f.call(e.setContextual,e),P.isEnv=f.call(e.isEnv,e),P.isPlatform=f.call(e.isPlatform,e),P};if(!b||v||g){var M=e.steal;e.steal=P(System),e.steal.startup(M&&"object"==typeof M&&M).then(null,function(e){if("undefined"!=typeof console){var t=console;"function"==typeof e.logError?e.logError(t):t[t.error?"error":"log"](e)}}),e.steal.clone=O}else e.steal=P(System),e.steal.System=System,e.steal.dev=require("./ext/dev.js"),steal.clone=O,module.exports=e.steal}("undefined"==typeof window?"undefined"==typeof global?this:global:window);