Socket
Socket
Sign inDemoInstall

zone.js

Package Overview
Dependencies
Maintainers
2
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zone.js - npm Package Compare versions

Comparing version 0.5.15 to 0.6.0

dist/wtf.js

69

dist/jasmine-patch.js

@@ -45,54 +45,31 @@ /******/ (function(modules) { // webpackBootstrap

/* 0 */
/***/ function(module, exports, __webpack_require__) {
var jasminePatch = __webpack_require__(1);
jasminePatch.apply();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiamFzbWluZS1wYXRjaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9icm93c2VyL2phc21pbmUtcGF0Y2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBWSxZQUFZLFdBQU0sa0JBQWtCLENBQUMsQ0FBQTtBQUVqRCxZQUFZLENBQUMsS0FBSyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBqYXNtaW5lUGF0Y2ggZnJvbSAnLi4vamFzbWluZS9wYXRjaCc7XG5cbmphc21pbmVQYXRjaC5hcHBseSgpO1xuIl19
/***/ },
/* 1 */
/***/ function(module, exports) {
/* WEBPACK VAR INJECTION */(function(global) {'use strict';
// Patch jasmine's it and fit functions so that the `done` callback always resets the zone
// Patch jasmine's it and fit functions so that the `done` wrapCallback always resets the zone
// to the jasmine zone, which should be the root zone. (angular/zone.js#91)
function apply() {
if (!global.zone) {
throw new Error('zone.js does not seem to be installed');
if (!Zone) {
throw new Error('zone.js does not seem to be installed');
}
var SET_TIMEOUT = '__zone_symbol__setTimeout';
// When you have in async test (test with `done` argument) jasmine will
// execute the next test synchronously in the done handler. This makes sense
// for most tests, but now with zones. With zones running next test
// synchronously means that the current zone does not get cleared. This
// results in a chain of nested zones, which makes it hard to reason about
// it. We override the `clearStack` method which forces jasmine to always
// drain the stack before next test gets executed.
jasmine.QueueRunner = (function (SuperQueueRunner) {
// Subclass the `QueueRunner` and override the `clearStack` method.
function alwaysClearStack(fn) {
global[SET_TIMEOUT](fn, 0);
}
if (!global.zone.isRootZone()) {
throw new Error('The jasmine patch should be called from the root zone');
function QueueRunner(options) {
options.clearStack = alwaysClearStack;
SuperQueueRunner.call(this, options);
}
// When you have in async test (test with `done` argument) jasmine will
// execute the next test synchronously in the done handle. This makes sense
// for most tests, but now with zones. With zones running next test
// synchronously means that the current zone does not get cleared. This
// results in a chain of nested zones, which makes it hard to reason about
// it. We override the `clearStack` method which forces jasmine to always
// drain the stack before next test gets executed.
jasmine.QueueRunner = (function (SuperQueueRunner) {
// Subclass the `QueueRunner` and override the `clearStack` mothed.
function alwaysClearStack(fn) {
global.zone.setTimeoutUnpatched(fn, 0);
}
function QueueRunner(options) {
options.clearStack = alwaysClearStack;
SuperQueueRunner.call(this, options);
}
QueueRunner.prototype = SuperQueueRunner.prototype;
return QueueRunner;
})(jasmine.QueueRunner);
}
exports.apply = apply;
if (global.jasmine) {
module.exports = {
apply: apply
};
}
else {
module.exports = {
apply: function () { }
};
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvamFzbWluZS9wYXRjaC50cyJdLCJuYW1lcyI6WyJhcHBseSIsImFsd2F5c0NsZWFyU3RhY2siLCJRdWV1ZVJ1bm5lciJdLCJtYXBwaW5ncyI6IkFBQUEsWUFBWSxDQUFDO0FBQ2IsMEZBQTBGO0FBQzFGLDJFQUEyRTtBQUUzRTtJQUNFQSxFQUFFQSxDQUFDQSxDQUFDQSxDQUFDQSxNQUFNQSxDQUFDQSxJQUFJQSxDQUFDQSxDQUFDQSxDQUFDQTtRQUNqQkEsTUFBTUEsSUFBSUEsS0FBS0EsQ0FBQ0EsdUNBQXVDQSxDQUFDQSxD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5lKS5RdWV1ZVJ1bm5lcik7XG5cbn1cblxuaWYgKCg8YW55Pmdsb2JhbCkuamFzbWluZSkge1xuICBtb2R1bGUuZXhwb3J0cyA9IHtcbiAgICBhcHBseTogYXBwbHlcbiAgfTtcbn0gZWxzZSB7XG4gIG1vZHVsZS5leHBvcnRzID0ge1xuICAgIGFwcGx5OiBmdW5jdGlvbigpIHsgfVxuICB9O1xufVxuIl19
QueueRunner.prototype = SuperQueueRunner.prototype;
return QueueRunner;
})(jasmine.QueueRunner);
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

@@ -99,0 +76,0 @@

@@ -1,1 +0,1 @@

!function(e){function n(t){if(o[t])return o[t].exports;var r=o[t]={exports:{},id:t,loaded:!1};return e[t].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var o={};return n.m=e,n.c=o,n.p="",n(0)}([function(e,exports,n){var o=n(1);o.apply()},function(e,exports){(function(n){"use strict";function o(){if(!n.zone)throw new Error("zone.js does not seem to be installed");if(!n.zone.isRootZone())throw new Error("The jasmine patch should be called from the root zone");jasmine.QueueRunner=function(e){function o(e){n.zone.setTimeoutUnpatched(e,0)}function t(n){n.clearStack=o,e.call(this,n)}return t.prototype=e.prototype,t}(jasmine.QueueRunner)}exports.apply=o,n.jasmine?e.exports={apply:o}:e.exports={apply:function(){}}}).call(exports,function(){return this}())}]);
!function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,exports){(function(e){"use strict";if(!Zone)throw new Error("zone.js does not seem to be installed");var n="__zone_symbol__setTimeout";jasmine.QueueRunner=function(t){function o(t){e[n](t,0)}function r(e){e.clearStack=o,t.call(this,e)}return r.prototype=t.prototype,r}(jasmine.QueueRunner)}).call(exports,function(){return this}())}]);

@@ -45,95 +45,126 @@ /******/ (function(modules) { // webpackBootstrap

/* 0 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {var long_stack_trace_1 = __webpack_require__(1);
if (!global.Zone) {
throw new Error('zone.js should be installed before loading the long stack trace zone');
}
global.Zone.longStackTraceZone = long_stack_trace_1.longStackTraceZone;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9uZy1zdGFjay10cmFjZS16b25lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2Jyb3dzZXIvbG9uZy1zdGFjay10cmFjZS16b25lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlDQUFpQywyQkFBMkIsQ0FBQyxDQUFBO0FBRTdELEVBQUUsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7SUFDakIsTUFBTSxJQUFJLEtBQUssQ0FBQyxzRUFBc0UsQ0FBQyxDQUFDO0FBQzFGLENBQUM7QUFFRCxNQUFNLENBQUMsSUFBSSxDQUFDLGtCQUFrQixHQUFHLHFDQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtsb25nU3RhY2tUcmFjZVpvbmV9IGZyb20gJy4uL3pvbmVzL2xvbmctc3RhY2stdHJhY2UnO1xuXG5pZiAoIWdsb2JhbC5ab25lKSB7XG4gIHRocm93IG5ldyBFcnJvcignem9uZS5qcyBzaG91bGQgYmUgaW5zdGFsbGVkIGJlZm9yZSBsb2FkaW5nIHRoZSBsb25nIHN0YWNrIHRyYWNlIHpvbmUnKTtcbn1cblxuZ2xvYmFsLlpvbmUubG9uZ1N0YWNrVHJhY2Vab25lID0gbG9uZ1N0YWNrVHJhY2Vab25lO1xuIl19
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ },
/* 1 */
/***/ function(module, exports) {
/* WEBPACK VAR INJECTION */(function(global) {/*
* Wrapped stacktrace
*
* We need this because in some implementations, constructing a trace is slow
* and so we want to defer accessing the trace for as long as possible
*/
'use strict';
function _Stacktrace(e) {
this._e = e;
}
_Stacktrace.prototype.get = function () {
if (global.zone.stackFramesFilter && this._e.stack) {
return this._e.stack
.split('\n')
.filter(global.zone.stackFramesFilter)
.join('\n');
(function () {
var NEWLINE = '\n';
var SEP = ' ------------- ';
var IGNORE_FRAMES = [];
var creationTrace = '__creationTrace__';
var LongStackTrace = (function () {
function LongStackTrace() {
this.error = getStacktrace();
this.timestamp = new Date();
}
return LongStackTrace;
}());
function getStacktraceWithUncaughtError() {
return new Error('STACKTRACE TRACKING');
}
return this._e.stack;
};
function _getStacktraceWithUncaughtError() {
return new _Stacktrace(new Error());
}
function _getStacktraceWithCaughtError() {
try {
throw new Error();
function getStacktraceWithCaughtError() {
try {
throw getStacktraceWithUncaughtError();
}
catch (e) {
return e;
}
}
catch (e) {
return new _Stacktrace(e);
// Some implementations of exception handling don't create a stack trace if the exception
// isn't thrown, however it's faster not to actually throw the exception.
var error = getStacktraceWithUncaughtError();
var coughtError = getStacktraceWithCaughtError();
var getStacktrace = error.stack
? getStacktraceWithUncaughtError
: (coughtError.stack ? getStacktraceWithCaughtError : getStacktraceWithUncaughtError);
function getFrames(error) {
return error.stack ? error.stack.split(NEWLINE) : [];
}
}
// Some implementations of exception handling don't create a stack trace if the exception
// isn't thrown, however it's faster not to actually throw the exception.
var stack = _getStacktraceWithUncaughtError();
var _getStacktrace = stack && stack._e.stack
? _getStacktraceWithUncaughtError
: _getStacktraceWithCaughtError;
exports.longStackTraceZone = {
getLongStacktrace: function (exception) {
var traces = [];
var currentZone = this;
if (exception) {
if (currentZone.stackFramesFilter && exception.stack) {
traces.push(exception.stack.split('\n')
.filter(currentZone.stackFramesFilter)
.join('\n'));
function addErrorStack(lines, error) {
var trace;
trace = getFrames(error);
for (var i = 0; i < trace.length; i++) {
var frame = trace[i];
// Filter out the Frames which are part of stack capturing.
if (!(i < IGNORE_FRAMES.length && IGNORE_FRAMES[i] === frame)) {
lines.push(trace[i]);
}
else {
traces.push(exception.stack);
}
}
function renderLongStackTrace(frames, stack) {
var longTrace = [stack];
if (frames) {
var timestamp = new Date().getTime();
for (var i = 0; i < frames.length; i++) {
var traceFrames = frames[i];
var lastTime = traceFrames.timestamp;
longTrace.push(SEP + " Elapsed: " + (timestamp - lastTime.getTime()) + " ms; At: " + lastTime + " " + SEP);
addErrorStack(longTrace, traceFrames.error);
timestamp = lastTime.getTime();
}
}
var now = Date.now();
while (currentZone && currentZone.constructedAtException) {
traces.push('--- ' + (new Date(currentZone.constructedAtTime)).toString() +
' - ' + (now - currentZone.constructedAtTime) + 'ms ago', currentZone.constructedAtException.get());
currentZone = currentZone.parent;
return longTrace.join(NEWLINE);
}
Zone['longStackTraceZoneSpec'] = {
name: 'long-stack-trace',
longStackTraceLimit: 10,
onScheduleTask: function (parentZoneDelegate, currentZone, targetZone, task) {
var currentTask = Zone.currentTask;
var trace = currentTask && currentTask.data && currentTask.data[creationTrace] || [];
trace = [new LongStackTrace()].concat(trace);
if (trace.length > this.longStackTraceLimit) {
trace.length = this.longStackTraceLimit;
}
if (!task.data)
task.data = {};
task.data[creationTrace] = trace;
return parentZoneDelegate.scheduleTask(targetZone, task);
},
onHandleError: function (parentZoneDelegate, currentZone, targetZone, error) {
var parentTask = Zone.currentTask;
if (error instanceof Error && parentTask) {
var descriptor = Object.getOwnPropertyDescriptor(error, 'stack');
if (descriptor) {
var delegateGet = descriptor.get;
var value = descriptor.value;
descriptor = {
get: function () {
return renderLongStackTrace(parentTask.data[creationTrace], delegateGet ? delegateGet.apply(this) : value);
}
};
Object.defineProperty(error, 'stack', descriptor);
}
else {
error.stack = renderLongStackTrace(parentTask.data[creationTrace], error.stack);
}
}
return parentZoneDelegate.handleError(targetZone, error);
}
return traces.join('\n');
},
stackFramesFilter: function (line) {
return !/zone(-microtask)?(\.min)?\.js/.test(line);
},
onError: function (exception) {
var reporter = this.reporter || console.log.bind(console);
reporter(exception.toString());
reporter(this.getLongStacktrace(exception));
},
'$fork': function (parentFork) {
return function () {
var newZone = parentFork.apply(this, arguments);
newZone.constructedAtException = _getStacktrace();
newZone.constructedAtTime = Date.now();
return newZone;
};
};
function captureStackTraces(stackTraces, count) {
if (count > 0) {
stackTraces.push(getFrames((new LongStackTrace()).error));
captureStackTraces(stackTraces, count - 1);
}
}
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9uZy1zdGFjay10cmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi96b25lcy9sb25nLXN0YWNrLXRyYWNlLnRzIl0sIm5hbWVzIjpbIl9TdGFja3RyYWNlIiwiX2dldFN0YWNrdHJhY2VXaXRoVW5jYXVnaHRFcnJvciIsIl9nZXRTdGFja3RyYWNlV2l0aENhdWdodEVycm9yIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7R0FLRztBQUVILFlBQVksQ0FBQztBQUViLHFCQUFxQixDQUFDO0lBQ3BCQSxJQUFJQSxDQUFDQSxFQUFFQSxHQUFHQSxDQUFDQSxDQUFDQTtBQUNkQSxDQUFDQTtBQUVELFdBQVcsQ0FBQyxTQUFTLENBQUMsR0FBRyxHQUFHO0lBQzFCLEVBQUUsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsaUJBQWlCLElBQUksSUFBSSxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDO1FBQ25ELE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLEtBQUs7YUFDakIsS0FBSyxDQUFDLElBQUksQ0FBQzthQUNYLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLGlCQUFpQixDQUFDO2FBQ3JDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNoQixDQUFDO0lBRUQsTUFBTSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsS0FBSyxDQUFD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b3J0ZXIgPSB0aGlzLnJlcG9ydGVyIHx8IGNvbnNvbGUubG9nLmJpbmQoY29uc29sZSk7XG4gICAgcmVwb3J0ZXIoZXhjZXB0aW9uLnRvU3RyaW5nKCkpO1xuICAgIHJlcG9ydGVyKHRoaXMuZ2V0TG9uZ1N0YWNrdHJhY2UoZXhjZXB0aW9uKSk7XG4gIH0sXG5cbiAgJyRmb3JrJzogZnVuY3Rpb24gKHBhcmVudEZvcmspIHtcbiAgICByZXR1cm4gZnVuY3Rpb24oKSB7XG4gICAgICB2YXIgbmV3Wm9uZSA9IHBhcmVudEZvcmsuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgICAgIG5ld1pvbmUuY29uc3RydWN0ZWRBdEV4Y2VwdGlvbiA9IF9nZXRTdGFja3RyYWNlKCk7XG4gICAgICBuZXdab25lLmNvbnN0cnVjdGVkQXRUaW1lID0gRGF0ZS5ub3coKTtcbiAgICAgIHJldHVybiBuZXdab25lO1xuICAgIH1cbiAgfVxufTtcblxuIl19
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
function computeIgnoreFrames() {
var frames = [];
captureStackTraces(frames, 2);
var frames1 = frames[0];
var frames2 = frames[1];
for (var i = 0; i < frames1.length; i++) {
var frame1 = frames1[i];
var frame2 = frames2[i];
if (frame1 === frame2) {
IGNORE_FRAMES.push(frame1);
}
else {
break;
}
}
}
computeIgnoreFrames();
})();
/***/ }
/******/ ]);

@@ -1,1 +0,1 @@

!function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,exports,n){(function(t){var e=n(1);if(!t.Zone)throw new Error("zone.js should be installed before loading the long stack trace zone");t.Zone.longStackTraceZone=e.longStackTraceZone}).call(exports,function(){return this}())},function(t,exports){(function(t){"use strict";function n(t){this._e=t}function e(){return new n(new Error)}function r(){try{throw new Error}catch(t){return new n(t)}}n.prototype.get=function(){return t.zone.stackFramesFilter&&this._e.stack?this._e.stack.split("\n").filter(t.zone.stackFramesFilter).join("\n"):this._e.stack};var o=e(),c=o&&o._e.stack?e:r;exports.longStackTraceZone={getLongStacktrace:function(t){var n=[],e=this;t&&(e.stackFramesFilter&&t.stack?n.push(t.stack.split("\n").filter(e.stackFramesFilter).join("\n")):n.push(t.stack));for(var r=Date.now();e&&e.constructedAtException;)n.push("--- "+new Date(e.constructedAtTime).toString()+" - "+(r-e.constructedAtTime)+"ms ago",e.constructedAtException.get()),e=e.parent;return n.join("\n")},stackFramesFilter:function(t){return!/zone(-microtask)?(\.min)?\.js/.test(t)},onError:function(t){var n=this.reporter||console.log.bind(console);n(t.toString()),n(this.getLongStacktrace(t))},$fork:function(t){return function(){var n=t.apply(this,arguments);return n.constructedAtException=c(),n.constructedAtTime=Date.now(),n}}}}).call(exports,function(){return this}())}]);
!function(t){function r(n){if(e[n])return e[n].exports;var a=e[n]={exports:{},id:n,loaded:!1};return t[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}var e={};return r.m=t,r.c=e,r.p="",r(0)}([function(t,exports){"use strict";!function(){function t(){return new Error("STACKTRACE TRACKING")}function r(){try{throw t()}catch(r){return r}}function e(t){return t.stack?t.stack.split(i):[]}function n(t,r){var n;n=e(r);for(var a=0;a<n.length;a++){var c=n[a];a<u.length&&u[a]===c||t.push(n[a])}}function a(t,r){var e=[r];if(t)for(var a=(new Date).getTime(),c=0;c<t.length;c++){var o=t[c],u=o.timestamp;e.push(s+" Elapsed: "+(a-u.getTime())+" ms; At: "+u+" "+s),n(e,o.error),a=u.getTime()}return e.join(i)}function c(t,r){r>0&&(t.push(e((new l).error)),c(t,r-1))}function o(){var t=[];c(t,2);for(var r=t[0],e=t[1],n=0;n<r.length;n++){var a=r[n],o=e[n];if(a!==o)break;u.push(a)}}var i="\n",s=" ------------- ",u=[],f="__creationTrace__",l=function(){function t(){this.error=d(),this.timestamp=new Date}return t}(),h=t(),p=r(),d=h.stack?t:p.stack?r:t;Zone.longStackTraceZoneSpec={name:"long-stack-trace",longStackTraceLimit:10,onScheduleTask:function(t,r,e,n){var a=Zone.currentTask,c=a&&a.data&&a.data[f]||[];return c=[new l].concat(c),c.length>this.longStackTraceLimit&&(c.length=this.longStackTraceLimit),n.data||(n.data={}),n.data[f]=c,t.scheduleTask(e,n)},onHandleError:function(t,r,e,n){var c=Zone.currentTask;if(n instanceof Error&&c){var o=Object.getOwnPropertyDescriptor(n,"stack");if(o){var i=o.get,s=o.value;o={get:function(){return a(c.data[f],i?i.apply(this):s)}},Object.defineProperty(n,"stack",o)}else n.stack=a(c.data[f],n.stack)}return t.handleError(e,n)}},o()}()}]);

@@ -1,1 +0,1 @@

!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,exports,t){(function(e){var n=t(1),r=t(5);e.Zone?console.warn("Zone already exported on window the object!"):(e.Zone=n.Zone,e.zone=new e.Zone,r.apply()),exports.Zone=e.Zone}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(e,t){i.hasOwnProperty(e)||(i[e]=!0,console.warn("DEPRECATION WARNING: '"+e+"' is no longer supported and will be removed in next major release. "+t))}var r=t(2),o=t(3),i={},a=function(){function t(e,n){this.parent=null,this.onError=null;var r=arguments.length?Object.create(e):this;return r.parent=e||null,Object.keys(n||{}).forEach(function(t){var o=t.substr(1);"$"===t[0]?r[o]=n[t](e[o]||function(){}):"+"===t[0]?e[o]?r[o]=function(){var r=e[o].apply(this,arguments);return n[t].apply(this,arguments),r}:r[o]=n[t]:"-"===t[0]?e[o]?r[o]=function(){return n[t].apply(this,arguments),e[o].apply(this,arguments)}:r[o]=n[t]:r[t]="object"==typeof n[t]?JSON.parse(JSON.stringify(n[t])):n[t]}),r.$id=t.nextId++,r}return t.prototype.fork=function(e){return this.onZoneCreated(),new t(this,e)},t.prototype.bind=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);t||this.enqueueTask(e);var n=this.isRootZone()?this:this.fork();return function(){return n.run(e,this,arguments)}},t.prototype.bindOnce=function(e){n("bindOnce","There is no replacement.");var t=this;return this.bind(function(){var n=e.apply(this,arguments);return t.dequeueTask(e),n})},t.prototype.isRootZone=function(){return null===this.parent},t.prototype.run=function(t,n,r){r=r||[];var o=e.zone;e.zone=this;try{return this.beforeTask(),t.apply(n,r)}catch(i){if(!this.onError)throw i;this.onError(i)}finally{this.afterTask(),e.zone=o}},t.prototype.beforeTask=function(){},t.prototype.onZoneCreated=function(){},t.prototype.afterTask=function(){},t.prototype.enqueueTask=function(e){n("enqueueTask","Use addTask/addRepeatingTask/addMicroTask")},t.prototype.dequeueTask=function(e){n("dequeueTask","Use removeTask/removeRepeatingTask/removeMicroTask")},t.prototype.addTask=function(e){this.enqueueTask(e)},t.prototype.removeTask=function(e){this.dequeueTask(e)},t.prototype.addRepeatingTask=function(e){this.enqueueTask(e)},t.prototype.removeRepeatingTask=function(e){this.dequeueTask(e)},t.prototype.addMicrotask=function(e){this.enqueueTask(e)},t.prototype.removeMicrotask=function(e){this.dequeueTask(e)},t.prototype.addEventListener=function(){return this[r.common.addEventListener].apply(this,arguments)},t.prototype.removeEventListener=function(){return this[r.common.removeEventListener].apply(this,arguments)},t.nextId=1,t.bindPromiseFn=o.bindPromiseFn,t}();exports.Zone=a}).call(exports,function(){return this}())},function(e,exports){function t(e){return"_zone$"+e}exports.create=t,exports.common={addEventListener:t("addEventListener"),removeEventListener:t("removeEventListener")}},function(e,exports,t){(function(n){function r(e,t){var r=n,o=e.every(function(e){return r=r[e]});o&&t.forEach(function(e){var t=r[e];t&&(r[e]=exports.bindPromiseFn(t))})}function o(e){var t=e.then;e.then=function(){var n=a.bindArguments(arguments),r=t.apply(e,n);return o(r)};var n=e["catch"];return e["catch"]=function(){var t=a.bindArguments(arguments),r=n.apply(e,t);return o(r)},e}function i(){if(n.Promise){a.patchPrototype(Promise.prototype,["then","catch"]);var e=[[[],["fetch"]],[["Response","prototype"],["arrayBuffer","blob","json","text"]]];e.forEach(function(e){r(e[0],e[1])})}}var a=t(4);n.Promise?exports.bindPromiseFn=function(e){return function(){var t=e.apply(this,arguments);return t instanceof Promise?t:new Promise(function(e,n){t.then(e,n)})}}:exports.bindPromiseFn=function(e){return function(){return o(e.apply(this,arguments))}},exports.apply=i,e.exports={apply:i,bindPromiseFn:exports.bindPromiseFn}}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(t){for(var n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=e.zone.bind(t[n]));return t}function r(e,t){t.forEach(function(t){var r=e[t];r&&(e[t]=function(){return r.apply(this,n(arguments))})})}function o(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}function i(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(e,t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=t.substr(2),o="_"+t;n.set=function(e){this[o]&&this.removeEventListener(r,this[o]),"function"==typeof e?(this[o]=e,this.addEventListener(r,e,!1)):this[o]=null},n.get=function(){return this[o]},Object.defineProperty(e,t,n)}function u(e,t){(t||function(){var t=[];for(var n in e)t.push(n);return t}().filter(function(e){return"on"===e.substr(0,2)})).forEach(function(t){a(e,t)})}function c(t){t[p.common.addEventListener]=t.addEventListener,t.addEventListener=function(t,n,r){if(n&&"[object FunctionWrapper]"!==n.toString()){var o,i=t+(r?"$capturing":"$bubbling");o=n.handleEvent?function(e){return function(){e.handleEvent.apply(e,arguments)}}(n):n,n[f]=o,n[l]=n[l]||{},n[l][i]=n[l][i]||e.zone.bind(o),arguments[1]=n[l][i]}var a=this||e;return e.zone.addEventListener.apply(a,arguments)},t[p.common.removeEventListener]=t.removeEventListener,t.removeEventListener=function(t,n,r){var o=t+(r?"$capturing":"$bubbling");if(n&&n[l]&&n[l][o]){var i=n[l];arguments[1]=i[o],delete i[o],e.zone.dequeueTask(n[f])}var a=this||e,u=e.zone.removeEventListener.apply(a,arguments);return u}}function s(t){var r=e[t];if(r){e[t]=function(){var e=n(arguments);switch(e.length){case 0:this[d]=new r;break;case 1:this[d]=new r(e[0]);break;case 2:this[d]=new r(e[0],e[1]);break;case 3:this[d]=new r(e[0],e[1],e[2]);break;case 4:this[d]=new r(e[0],e[1],e[2],e[3]);break;default:throw new Error("what are you even doing?")}};var o,i=new r;for(o in i)!function(n){"function"==typeof i[n]?e[t].prototype[n]=function(){return this[d][n].apply(this[d],arguments)}:Object.defineProperty(e[t].prototype,n,{set:function(t){"function"==typeof t?this[d][n]=e.zone.bind(t):this[d][n]=t},get:function(){return this[d][n]}})}(o);for(o in r)"prototype"!==o&&r.hasOwnProperty(o)&&(e[t][o]=r[o])}}var p=t(2);exports.bindArguments=n,exports.patchPrototype=r,exports.isWebWorker=o,exports.isNode=i,exports.patchProperty=a,exports.patchProperties=u;var f=p.create("originalFn"),l=p.create("boundFns");exports.patchEventTargetMethods=c;var d=p.create("originalInstance");exports.patchClass=s}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){r.patchSetClearFunction(e,e.Zone,[["setTimeout","clearTimeout",!1,!1],["setInterval","clearInterval",!0,!1],["setImmediate","clearImmediate",!1,!1],["requestAnimationFrame","cancelAnimationFrame",!1,!0],["mozRequestAnimationFrame","mozCancelAnimationFrame",!1,!0],["webkitRequestAnimationFrame","webkitCancelAnimationFrame",!1,!0]]),r.patchFunction(e,["alert","prompt"]),c.apply(),s.apply(),o.apply(),i.patchClass("MutationObserver"),i.patchClass("WebKitMutationObserver"),a.apply(),u.apply(),p.apply(),f.apply()}var r=t(6),o=t(3),i=t(8),a=t(9),u=t(10),c=t(11),s=t(12),p=t(14),f=t(15);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(t,n,r){function i(r,i,a,u){var c=t[r],s=t[i],p={};if(c){var f=o.createEvent("Zone#"+r+"(uint32 zone, uint32 id, uint32 delay)"),l=o.createEvent("Zone#"+i+"(uint32 zone, uint32 id)"),d=o.createScope("Zone#cb:"+r+"(uint32 zone, uint32 id, uint32 delay)");t[r]=function(){return e.zone[r].apply(e.zone,arguments)},t[i]=function(){return e.zone[i].apply(e.zone,arguments)},n.prototype[r]=function(e,n){var r=e;"function"!=typeof r&&c.apply(t,arguments);var i=this,s=null;return arguments[0]=function(){var e=i.isRootZone()||u?i:i.fork(),t=this,c=arguments;return o.leaveScope(d(e.$id,s,n),e.run(function(){return a||(delete p[s],e.removeTask(r)),r.apply(t,c)}))},a?i.addRepeatingTask(r):i.addTask(r),s=c.apply(t,arguments),p[s]=r,f(i.$id,s,n),s},n.prototype[r+"Unpatched"]=function(){return c.apply(t,arguments)},n.prototype[i]=function(e){if(l(this.$id,e),p.hasOwnProperty(e)){var n=p[e];delete p[e],a?this.removeRepeatingTask(n):this.removeTask(n)}return s.apply(t,arguments)},n.prototype[i+"Unpatched"]=function(){return s.apply(t,arguments)}}}r.forEach(function(e){i.apply(null,e)})}function r(t,n){n.forEach(function(n){var r=t[n];e.zone[n]=function(){return r.apply(t,arguments)},t[n]=function(){return e.zone[n].apply(this,arguments)}})}var o=t(7);exports.patchSetClearFunction=n,exports.patchFunction=r}).call(exports,function(){return this}())},function(e,exports){(function(e){function t(){}var n=null,r=null,o=function(){var t=e.wtf;return t&&(n=t.trace)?(r=n.events,!0):!1}();exports.enabled=o,exports.createScope=o?function(e,t){return r.createScope(e,t)}:function(e,n){return t},exports.createEvent=o?function(e,t){return r.createInstance(e,t)}:function(e,n){return t},exports.leaveScope=o?function(e,t){return n.leaveScope(e,t),t}:function(e,t){return t},exports.beginTimeRange=o?function(e,t){return n.beginTimeRange(e,t)}:function(e,t){return null},exports.endTimeRange=o?function(e){n.endTimeRange(e)}:function(e){}}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(t){var n=e[t];if(n){e[t]=function(t){this[o]=new n(e.zone.bind(t,!0)),this[i]=e.zone};var r=new n(function(){});e[t].prototype.disconnect=function(){var e=this[o].disconnect.apply(this[o],arguments);return this[a]&&(this[i].dequeueTask(),this[a]=!1),e},e[t].prototype.observe=function(){return this[a]||(this[i].enqueueTask(),this[a]=!0),this[o].observe.apply(this[o],arguments)};var u;for(u in r)!function(n){"undefined"==typeof e[t].prototype&&("function"==typeof r[n]?e[t].prototype[n]=function(){return this[o][n].apply(this[o],arguments)}:Object.defineProperty(e[t].prototype,n,{set:function(t){"function"==typeof t?this[o][n]=e.zone.bind(t):this[o][n]=t},get:function(){return this[o][n]}}))}(u)}}var r=t(2),o=r.create("originalInstance"),i=r.create("creationZone"),a=r.create("isActive");exports.patchClass=n}).call(exports,function(){return this}())},function(e,exports,t){function n(){Object.defineProperty=function(e,t,n){if(o(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);return"prototype"!==t&&(n=i(e,t,n)),u(e,t,n)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"==typeof t&&Object.keys(t).forEach(function(n){t[n]=i(e,n,t[n])}),s(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=c(e,t);return o(e,t)&&(n.configurable=!1),n}}function r(e,t,n){return n=i(e,t,n),u(e,t,n)}function o(e,t){return e&&e[p]&&e[p][t]}function i(e,t,n){return n.configurable=!0,n.configurable||(e[p]||u(e,p,{writable:!0,value:{}}),e[p][t]=!0),n}var a=t(2),u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,s=Object.create,p=a.create("unconfigurables");exports.apply=n,exports._redefineProperty=r},function(e,exports,t){(function(e){function n(){if(!o.isWebWorker()&&!o.isNode()&&"registerElement"in e.document){var t=document.registerElement,n=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(o,i){return i&&i.prototype&&n.forEach(function(t){if(i.prototype.hasOwnProperty(t)){var n=Object.getOwnPropertyDescriptor(i.prototype,t);n&&n.value?(n.value=e.zone.bind(n.value),r._redefineProperty(i.prototype,t,n)):i.prototype[t]=e.zone.bind(i.prototype[t])}else i.prototype[t]&&(i.prototype[t]=e.zone.bind(i.prototype[t]))}),t.apply(document,[o,i])}}}var r=t(9),o=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){"use strict";function n(){if(e.EventTarget)r.patchEventTargetMethods(e.EventTarget.prototype);else{var t=["ApplicationCache","EventSource","FileReader","InputMethodContext","MediaController","MessagePort","Node","Performance","SVGElementInstance","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebKitNamedFlow","Worker","WorkerGlobalScope","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];t.forEach(function(t){var n=e[t]&&e[t].prototype;n&&n.addEventListener&&r.patchEventTargetMethods(n)}),"undefined"!=typeof window&&r.patchEventTargetMethods(window)}}var r=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){if(!a.isNode()){var e="undefined"!=typeof WebSocket;if(r()){if(!a.isWebWorker()){var t=c.map(function(e){return"on"+e});a.patchProperties(HTMLElement.prototype,t)}a.patchProperties(XMLHttpRequest.prototype),e&&a.patchProperties(WebSocket.prototype)}else a.isWebWorker()||o(),a.patchClass("XMLHttpRequest"),e&&i.apply()}}function r(){if(!a.isWebWorker()&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var e=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(e&&!e.configurable)return!1}Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{get:function(){return!0}});var t=new XMLHttpRequest,n=!!t.onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{}),n}function o(){c.forEach(function(t){var n="on"+t;document.addEventListener(t,function(t){for(var r,o=t.target;o;)o[n]&&!o[n][s]&&(r=e.zone.bind(o[n]),r[s]=o[n],o[n]=r),o=o.parentElement},!0)})}var i=t(13),a=t(4),u=t(2),c="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" ");exports.apply=n;var s=u.create("unbound")}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){var t=e.WebSocket;e.EventTarget||r.patchEventTargetMethods(t.prototype),e.WebSocket=function(e,n){var o,i=arguments.length>1?new t(e,n):new t(e),a=Object.getOwnPropertyDescriptor(i,"onmessage");return a&&a.configurable===!1?(o=Object.create(i),["addEventListener","removeEventListener","send","close"].forEach(function(e){o[e]=function(){return i[e].apply(i,arguments)}})):o=i,r.patchProperties(o,["onclose","onerror","onmessage","onopen"]),o}}var r=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){e.navigator&&e.navigator.geolocation&&r.patchPrototype(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}var r=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){function n(){r.patchClass("FileReader")}var r=t(4);exports.apply=n}]);
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,exports,t){(function(e){"use strict";function n(e,t,n,r){function o(t){var n=t.data;return n.args[0]=t.invoke,n.handleId=i.apply(e,n.args),t}function a(e){return c(e.data.handleId)}t+=r,n+=r;var i=s.patchMethod(e,t,function(){return function(n,s){if("function"==typeof s[0]){var c=Zone.current,u={handleId:null,isPeriodic:"Interval"==r,delay:"Timeout"==r||"Interval"==r?s[1]||0:null,args:s};return c.scheduleMacroTask(t,s[0],u,o,a)}return i.apply(e,s)}}),c=s.patchMethod(e,n,function(){return function(e,t){var n=t[0];n.zone.cancelTask(n)}})}t(1);var r=t(2),o=t(4),a=t(5),i=t(6),s=t(3),c="set",u="clear",l=["alert","prompt","confirm"];n(e,c,u,"Timeout"),n(e,c,u,"Interval"),n(e,c,u,"Immediate"),n(e,"request","cancelMacroTask","AnimationFrame"),n(e,"mozRequest","mozCancel","AnimationFrame"),n(e,"webkitRequest","webkitCancel","AnimationFrame");for(var h=0;h<l.length;h++){var p=l[h];s.patchMethod(e,p,function(t,n,r){return function(n,o){return Zone.current.run(t,e,o,r)}})}r.eventTargetPatch(),i.propertyDescriptorPatch(),s.patchClass("MutationObserver"),s.patchClass("WebKitMutationObserver"),s.patchClass("FileReader"),o.propertyPatch(),a.registerElementPatch(),e.navigator&&e.navigator.geolocation&&s.patchPrototype(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}).call(exports,function(){return this}())},function(e,exports){(function(e){(function(e){function t(e){return"__zone_symbol__"+e}function n(t){y||0!=m.length||(e[v]?e[v].resolve(0)[k](r):e[d](r,0)),m.push(t)}function r(){if(!T){for(T=!0;m.length;){var e=m;m=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){console.error(r,r instanceof Error?r.stack:void 0)}}}for(;_.length;){var o=_;_=[];for(var t=0;t<o.length;t++){var a=o[t];try{a.zone.runGuarded(function(){throw a})}catch(r){console.error(r,r instanceof Error?r.stack:void 0)}}}T=!1}}function o(e){return e&&e.then}function a(e){return e}function i(e){return O.reject(e)}function s(e,t){return function(n){c(e,t,n)}}function c(e,t,n){if(e[b]===S)if(n instanceof O&&n[b]!==S)u(n),c(e,n[b],n[w]);else if(o(n))n.then(s(e,t),s(e,!1));else{e[b]=t;var r=e[w];e[w]=n;for(var a=0;a<r.length;)l(e,r[a++],r[a++],r[a++],r[a++]);if(0==r.length&&t==D){e[b]=z;try{throw new Error("Uncaught (in promise): "+n)}catch(i){var p=i;p.rejection=n,p.promise=e,p.zone=h.current,p.task=h.currentTask,_.push(p)}}}return e}function u(e){if(e[b]===z){e[b]=D;for(var t=0;t<_.length;t++)if(e===_[t].promise){_.splice(t,1);break}}}function l(e,t,n,r,o){u(e);var s=e[b]?r||a:o||i;t.scheduleMicroTask(E,function(){try{c(n,!0,t.run(s,null,[e[w]]))}catch(r){c(n,!1,r)}})}var h=function(){function e(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new p(this,this._parent&&this._parent._zoneDelegate,t)}return Object.defineProperty(e,"current",{get:function(){return g},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t._properties[e];t=t._parent}},e.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},e.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var e=this._zoneDelegate.intercept(this,e,t),n=this;return function(){return n.runGuarded(e,this,arguments,t)}},e.prototype.run=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=g;g=this;try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{g=o}},e.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=g;g=this;try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{g=o}},e.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone which created it! (Creation: "+e.zone.name+"; Execution: "+this.name+")");var r=y;y=e;var o=g;g=this;try{try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{g=o,y=r,"microTask"==e.type}},e.prototype.scheduleMicroTask=function(e,t,n,r){return this._zoneDelegate.scheduleTask(this,new f("microTask",this,e,t,n,r,null))},e.prototype.scheduleMacroTask=function(e,t,n,r,o){return this._zoneDelegate.scheduleTask(this,new f("macroTask",this,e,t,n,r,o))},e.prototype.scheduleEventTask=function(e,t,n,r,o){return this._zoneDelegate.scheduleTask(this,new f("eventTask",this,e,t,n,r,o))},e.prototype.cancelTask=function(e){var t=this._zoneDelegate.cancelTask(this,e);return e.cancelFn=null,t},e.__symbol__=t,e}(),p=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._hasTaskZS=n&&(n.onHasTask?n:t._hasTaskZS),this._hasTaskDlgt=n&&(n.onHasTask?t:t._hasTaskDlgt)}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new h(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this.zone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this.zone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this.zone,e,t):!0},e.prototype.scheduleTask=function(e,t){try{if(this._scheduleTaskZS)return this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this.zone,e,t);if(t.scheduleFn)t.scheduleFn(t);else{if("microTask"!=t.type)throw new Error("Task is missing scheduleFn.");n(t)}return t}finally{e==this.zone&&this._updateTaskCount(t.type,1)}},e.prototype.invokeTask=function(e,t,n,r){try{return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this.zone,e,t,n,r):t.callback.apply(n,r)}finally{e!=this.zone||"eventTask"==t.type||t.data&&t.data.isPeriodic||this._updateTaskCount(t.type,-1)}},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this.zone,e,t);else{if(!t.cancelFn)throw new Error("Task does not support cancellation, or is already canceled.");n=t.cancelFn(t)}return e==this.zone&&this._updateTaskCount(t.type,-1),n},e.prototype.hasTask=function(e,t){return this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this.zone,e,t)},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(0>o)throw new Error("More tasks executed then were scheduled.");if(0==r||0==o){var a={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e};try{this.hasTask(this.zone,a)}finally{this._parentDelegate&&this._parentDelegate._updateTaskCount(e,t)}}},e}(),f=function(){function e(e,t,n,o,a,i,s){this.type=e,this.zone=t,this.source=n,this.data=a,this.scheduleFn=i,this.cancelFn=s,this.callback=o;var c=this;this.invoke=function(){try{return t.runTask(c,this,arguments)}finally{r()}}}return e}(),d=t("setTimeout"),v=t("Promise"),k=t("then"),g=new h(null,null),y=null,m=[],T=!1,_=[],b=t("state"),w=t("value"),E="Promise.then",S=null,P=!0,D=!1,z=0,O=function(){function e(e){var t=this;t[b]=S,t[w]=[];try{e&&e(s(t,P),s(t,D))}catch(n){c(t,!1,n)}}return e.resolve=function(e){return c(new this(null),P,e)},e.reject=function(e){return c(new this(null),D,e)},e.race=function(e){function t(e){i&&(i=r(e))}function n(e){i&&(i=a(e))}for(var r,a,i=new this(function(e,t){r=e,a=t}),s=0,c=e;s<c.length;s++){var u=c[s];o(u)||(u=this.resolve(u)),u.then(t,n)}return i},e.all=function(e){function t(e){a&&r(e),a=null}for(var n,r,a=new this(function(e,t){n=e,r=t}),i=[],s=0,c=0,u=e;c<u.length;c++){var l=u[c];o(l)||(l=this.resolve(l)),l.then(function(e){return function(t){i[e]=t,s--,a&&!s&&n(i)}}(s),t),s++}return s||n(i),a},e.prototype.then=function(t,n){var r=new e(null),o=h.current;return this[b]==S?this[w].push(o,r,t,n):l(this,o,r,t,n),r},e.prototype["catch"]=function(e){return this.then(null,e)},e}(),Z=e[t("Promise")]=e.Promise;if(e.Promise=O,Z){var C=Z.prototype,M=C[t("then")]=C.then;C.then=function(e,t){var n=this;return new O(function(e,t){M.call(n,e,t)}).then(e,t)}}return e.Zone=h})(function(){try{return window}catch(t){return e}}())}).call(exports,function(){return this}())},function(e,exports,t){(function(e){"use strict";function n(){var t=[],n=e.wtf;n?t=o.split(",").map(function(e){return"HTML"+e+"Element"}).concat(a):e[i]?t.push(i):t=a;for(var s=0;s<t.length;s++){var c=e[t[s]];r.patchEventTargetMethods(c&&c.prototype)}}var r=t(3),o="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video",a="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),i="EventTarget";exports.eventTargetPatch=n}).call(exports,function(){return this}())},function(e,exports){(function(e){"use strict";function t(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=Zone.current.wrap(e[n],t+"_"+n));return e}function n(e,n){for(var r=e.constructor.name,o=0;o<n.length;o++){var a=n[o],i=e[a];i&&(e[a]=function(e){return function(){return e.apply(this,t(arguments,r+"."+a))}}(i))}}function r(e,t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=t.substr(2),o="_"+t;n.set=function(e){this[o]&&this.removeEventListener(r,this[o]),"function"==typeof e?(this[o]=e,this.addEventListener(r,e,!1)):this[o]=null},n.get=function(){return this[o]},Object.defineProperty(e,t,n)}function o(e,t){var n=[];for(var o in e)"on"==o.substr(0,2)&&n.push(o);for(var a=0;a<n.length;a++)r(e,n[a]);if(t)for(var i=0;i<t.length;i++)r(e,"on"+t[i])}function a(e,t,n,r,o){var a=e[v];if(a)for(var i=0;i<a.length;i++){var s=a[i],c=s.data;if(c.handler===t&&c.useCapturing===r&&c.eventName===n)return o&&a.splice(i,1),s}return null}function i(e,t){var n=e[v];n||(n=e[v]=[]),n.push(t)}function s(e){var t=e.data;return i(t.target,e),t.target[y](t.eventName,e.invoke,t.useCapturing)}function c(e){var t=e.data;a(t.target,e.invoke,t.eventName,t.useCapturing,!0),t.target[m](t.eventName,e.invoke,t.useCapturing)}function u(t,n){var r=n[0],o=n[1],i=n[2]||!1,u=t||e,l=null;if("function"==typeof o?l=o:o&&o.handleEvent&&(l=function(e){return o.handleEvent(e)}),!l||o&&"[object FunctionWrapper]"===o.toString())return u[y](r,o,i);var h=a(u,o,r,i,!1);if(h)return u[y](r,h.invoke,i);var p=Zone.current,f=u.constructor.name+".addEventListener:"+r,d={target:u,eventName:r,name:r,useCapturing:i,handler:o};p.scheduleEventTask(f,l,d,s,c)}function l(t,n){var r=n[0],o=n[1],i=n[2]||!1,s=t||e,c=a(s,o,r,i,!1);c?c.zone.cancelTask(c):s[m](r,o,i)}function h(e){return e&&e.addEventListener?(d(e,k,function(){return u}),d(e,g,function(){return l}),!0):!1}function p(n){var r=e[n];if(r){e[n]=function(){var e=t(arguments,n);switch(e.length){case 0:this[T]=new r;break;case 1:this[T]=new r(e[0]);break;case 2:this[T]=new r(e[0],e[1]);break;case 3:this[T]=new r(e[0],e[1],e[2]);break;case 4:this[T]=new r(e[0],e[1],e[2],e[3]);break;default:throw new Error("Arg list too long.")}};var o,a=new r(function(){});for(o in a)!function(t){"function"==typeof a[t]?e[n].prototype[t]=function(){return this[T][t].apply(this[T],arguments)}:Object.defineProperty(e[n].prototype,t,{set:function(e){"function"==typeof e?this[T][t]=Zone.current.wrap(e,n+"."+t):this[T][t]=e},get:function(){return this[T][t]}})}(o);for(o in r)"prototype"!==o&&r.hasOwnProperty(o)&&(e[n][o]=r[o])}}function f(e,t){try{return Function("f","return function "+e+"(){return f(this, arguments)}")(t)}catch(n){return function(){return t(this,arguments)}}}function d(e,t,n){for(var r=e;r&&!r.hasOwnProperty(t);)r=Object.getPrototypeOf(r);!r&&e[t]&&(r=e);var o,a=exports.zoneSymbol(t);return r&&!(o=r[a])&&(o=r[a]=r[t],r[t]=f(t,n(o,a,t))),o}exports.zoneSymbol=Zone.__symbol__,exports.bindArguments=t,exports.patchPrototype=n,exports.isWebWorker="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,exports.isNode="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),exports.isBrowser=!exports.isNode&&!exports.isWebWorker&&!(!window||!window.HTMLElement),exports.patchProperty=r,exports.patchOnProperties=o;var v=exports.zoneSymbol("eventTasks"),k="addEventListener",g="removeEventListener",y=exports.zoneSymbol(k),m=exports.zoneSymbol(g);exports.patchEventTargetMethods=h;var T=exports.zoneSymbol("originalInstance");exports.patchClass=p,exports.createNamedFn=f,exports.patchMethod=d}).call(exports,function(){return this}())},function(e,exports,t){"use strict";function n(){Object.defineProperty=function(e,t,n){if(o(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);return"prototype"!==t&&(n=a(e,t,n)),s(e,t,n)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"==typeof t&&Object.keys(t).forEach(function(n){t[n]=a(e,n,t[n])}),u(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=c(e,t);return o(e,t)&&(n.configurable=!1),n}}function r(e,t,n){return n=a(e,t,n),s(e,t,n)}function o(e,t){return e&&e[l]&&e[l][t]}function a(e,t,n){return n.configurable=!0,n.configurable||(e[l]||s(e,l,{writable:!0,value:{}}),e[l][t]=!0),n}var i=t(3),s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.create,l=i.zoneSymbol("unconfigurables");exports.propertyPatch=n,exports._redefineProperty=r},function(e,exports,t){(function(e){"use strict";function n(){if(o.isBrowser&&"registerElement"in e.document){var t=document.registerElement,n=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(e,o){return o&&o.prototype&&n.forEach(function(e){var t="Document.registerElement::"+e;if(o.prototype.hasOwnProperty(e)){var n=Object.getOwnPropertyDescriptor(o.prototype,e);n&&n.value?(n.value=Zone.current.wrap(n.value,t),r._redefineProperty(o.prototype,e,n)):o.prototype[e]=Zone.current.wrap(o.prototype[e],t)}else o.prototype[e]&&(o.prototype[e]=Zone.current.wrap(o.prototype[e],t))}),t.apply(document,[e,o])}}}var r=t(4),o=t(3);exports.registerElementPatch=n}).call(exports,function(){return this}())},function(e,exports,t){"use strict";function n(){if(!i.isNode){var e="undefined"!=typeof WebSocket;r()?(i.isBrowser&&i.patchOnProperties(HTMLElement.prototype,s),i.patchOnProperties(XMLHttpRequest.prototype,null),e&&i.patchOnProperties(WebSocket.prototype,null)):(o(),i.patchClass("XMLHttpRequest"),e&&a.apply())}}function r(){if(i.isBrowser&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var e=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(e&&!e.configurable)return!1}Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{get:function(){return!0}});var t=new XMLHttpRequest,n=!!t.onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{}),n}function o(){for(var e=0;e<s.length;e++){var t=s[e],n="on"+t;document.addEventListener(t,function(e){for(var t,r=e.target,o=r.constructor.name+"."+n;r;)r[n]&&!r[n][c]&&(t=Zone.current.wrap(r[n],o),t[c]=r[n],r[n]=t),r=r.parentElement},!0)}}var a=t(7),i=t(3),s="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" ");exports.propertyDescriptorPatch=n;var c=i.zoneSymbol("unbound")},function(e,exports,t){(function(e){"use strict";function n(){var t=e.WebSocket;e.EventTarget||r.patchEventTargetMethods(t.prototype),e.WebSocket=function(e,n){var o,a=arguments.length>1?new t(e,n):new t(e),i=Object.getOwnPropertyDescriptor(a,"onmessage");return i&&i.configurable===!1?(o=Object.create(a),["addEventListener","removeEventListener","send","close"].forEach(function(e){o[e]=function(){return a[e].apply(a,arguments)}})):o=a,r.patchOnProperties(o,["close","error","message","open"]),o}}var r=t(3);exports.apply=n}).call(exports,function(){return this}())}]);

@@ -1,4 +0,1062 @@

import './browser/zone';
/**
* Zone is a mechanism for intercepting and keeping track of asynchronous work.
*
* A Zone is a global object which is configured with rules about how to intercept and keep track
* of the asynchronous callbacks. Zone has these responsibilities:
*
* 1. Intercept asynchronous task scheduling
* 2. Wrap callbacks for error-handling and zone tracking across async operations.
* 3. Provide a way to attach data to zones
* 4. Provide a context specific last frame error handling
* 5. (Intercept blocking methods)
*
* A zone by itself does not do anything, instead it relies on some other code to route existing
* platform API through it. (The zone library ships with code which monkey patches all of the
* browsers's asynchronous API and redirects them through the zone for interception.)
*
* In its simplest form a zone allows one to intercept the scheduling and calling of asynchronous
* operations, and execute additional code before as well as after the asynchronous task. The rules
* of interception are configured using [ZoneConfig]. There can be many different zone instances in
* a system, but only one zone is active at any given time which can be retrieved using
* [Zone#current].
*
*
*
* ## Callback Wrapping
*
* An important aspect of the zones is that they should persist across asynchronous operations. To
* achieve this, when a future work is scheduled through async API, it is necessary to capture, and
* subsequently restore the current zone. For example if a code is running in zone `b` and it
* invokes `setTimeout` to scheduleTask work later, the `setTimeout` method needs to 1) capture the
* current zone and 2) wrap the `wrapCallback` in code which will restore the current zone `b` once
* the wrapCallback executes. In this way the rules which govern the current code are preserved in
* all future asynchronous tasks. There could be a different zone `c` which has different rules and
* is associated with different asynchronous tasks. As these tasks are processed, each asynchronous
* wrapCallback correctly restores the correct zone, as well as preserves the zone for future
* asynchronous callbacks.
*
* Example: Suppose a browser page consist of application code as well as third-party
* advertisement code. (These two code bases are independent, developed by different mutually
* unaware developers.) The application code may be interested in doing global error handling and
* so it configures the `app` zone to send all of the errors to the server for analysis, and then
* executes the application in the `app` zone. The advertising code is interested in the same
* error processing but it needs to send the errors to a different third-party. So it creates the
* `ads` zone with a different error handler. Now both advertising as well as application code
* create many asynchronous operations, but the [Zone] will ensure that all of the asynchronous
* operations created from the application code will execute in `app` zone with its error
* handler and all of the advertisement code will execute in the `ads` zone with its error handler.
* This will not only work for the async operations created directly, but also for all subsequent
* asynchronous operations.
*
* If you think of chain of asynchronous operations as a thread of execution (bit of a stretch)
* then [Zone#current] will act as a thread local variable.
*
*
*
* ## Asynchronous operation scheduling
*
* In addition to wrapping the callbacks to restore the zone, all operations which cause a
* scheduling of work for later are routed through the current zone which is allowed to intercept
* them by adding work before or after the wrapCallback as well as using different means of
* achieving the request. (Useful for unit testing, or tracking of requests). In some instances
* such as `setTimeout` the wrapping of the wrapCallback and scheduling is done in the same
* wrapCallback, but there are other examples such as `Promises` where the `then` wrapCallback is
* wrapped, but the execution of `then` in triggered by `Promise` scheduling `resolve` work.
*
* Fundamentally there are three kinds of tasks which can be scheduled:
*
* 1. [MicroTask] used for doing work right after the current task. This is non-cancelable which is
* guaranteed to run exactly once and immediately.
* 2. [MacroTask] used for doing work later. Such as `setTimeout`. This is typically cancelable
* which is guaranteed to execute at least once after some well understood delay.
* 3. [EventTask] used for listening on some future event. This may execute zero or more times, with
* an unknown delay.
*
* Each asynchronous API is modeled and routed through one of these APIs.
*
*
* ### [MicroTask]
*
* [MicroTask]s represent work which will be done in current VM turn as soon as possible, before VM
* yielding.
*
*
* ### [TimerTask]
*
* [TimerTask]s represents work which will be done after some delay. (Sometimes the delay is
* approximate such as on next available animation frame). Typically these methods include:
* `setTimeout`, `setImmediate`, `setInterval`, `requestAnimationFrame`, and all browser specif
* variants.
*
*
* ### [EventTask]
*
* [EventTask]s represents a request to create a listener on an event. Unlike the other task
* events may never be executed, but typically execute more then once. There is no queue of
* events, rather their callbacks are unpredictable both in order and time.
*
*
* ## Global Error Handling
*
*
* ## Composability
*
* Zones can be composed together through [Zone.fork()]. A child zone may create its own set of
* rules. A child zone is expected to either:
*
* 1. Delegate the interception to a parent zone, and optionally add before and after wrapCallback
* hook.s
* 2) Or process the request itself without delegation.
*
* Composability allows zones to keep their concerns clean. For example a top most zone may chose
* to handle error handling, while child zones may chose to do user action tracking.
*
*
* ## Root Zone
*
* At the start the browser will run in a special root zone, which is configure to behave exactly
* like the platform, making any existing code which is not-zone aware behave as expected. All
* zones are children of the root zone.
*
*/
interface Zone {
/**
*
* @returns {Zone} The parent Zone.
*/
parent: Zone;
/**
* @returns {string} The Zone name (useful for debugging)
*/
name: string;
export var Zone = global.Zone;
/**
* Returns a value associated with the `key`.
*
* If the current zone does not have a key, the request is delegated to the parent zone. Use
* [ZoneSpec.properties] to configure the set of properties asseciated with the current zone.
*
* @param key The key to retrieve.
* @returns {any} Tha value for the key, or `undefined` if not found.
*/
get(key: string): any;
/**
* Used to create a child zone.
*
* @param zoneSpec A set of rules which the child zone should follow.
* @returns {Zone} A new child zone.
*/
fork(zoneSpec: ZoneSpec): Zone;
/**
* Wraps a callback function in a new function which will properly restore the current zone upon
* invocation.
*
* The wrapped function will properly forward `this` as well as `arguments` to the `callback`.
*
* Before the function is wrapped the zone can intercept the `callback` by declaring
* [ZoneSpec.onIntercept].
*
* @param callback the function which will be wrapped in the zone.
* @param source A unique debug location of the API being wrapped.
* @returns {function(): *} A function which will invoke the `callback` through [Zone.runGuarded].
*/
wrap(callback: Function, source: string): Function;
/**
* Invokes a function in a given zone.
*
* The invocation of `callback` can be intercepted be declaring [ZoneSpec.onInvoke].
*
* @param callback The function to invoke.
* @param applyThis
* @param applyArgs
* @param source A unique debug location of the API being invoked.
* @returns {any} Value from the `callback` function.
*/
run<T>(callback: Function, applyThis?: any, applyArgs?: any[], source?: string): T;
/**
* Invokes a function in a given zone and catches any exceptions.
*
* Any exceptions thrown will be forwarded to [Zone.HandleError].
*
* The invocation of `callback` can be intercepted be declaring [ZoneSpec.onInvoke]. The
* handling of exceptions can intercepted by declaring [ZoneSpec.handleError].
*
* @param callback The function to invoke.
* @param applyThis
* @param applyArgs
* @param source A unique debug location of the API being invoked.
* @returns {any} Value from the `callback` function.
*/
runGuarded<T>(callback: Function, applyThis?: any, applyArgs?: any[], source?: string): T;
/**
* Execute the Task by restoring the [Zone.currentTask] in the Task's zone.
*
* @param callback
* @param applyThis
* @param applyArgs
* @returns {*}
*/
runTask(task: Task, applyThis?: any, applyArgs?: any): any;
scheduleMicroTask(source: string, callback: Function, data?: TaskData, customSchedule?: (task: Task) => void): MicroTask;
scheduleMacroTask(source: string, callback: Function, data: TaskData, customSchedule: (task: Task) => void, customCancel: (task: Task) => void): MacroTask;
scheduleEventTask(source: string, callback: Function, data: TaskData, customSchedule: (task: Task) => void, customCancel: (task: Task) => void): EventTask;
/**
* Allows the zone to intercept canceling of scheduled Task.
*
* The interception is configured using [ZoneSpec.onCancelTask]. The default canceler invokes
* the [Task.cancelFn].
*
* @param task
* @returns {any}
*/
cancelTask(task: Task): any;
}
interface ZoneType {
/**
* @returns {Zone} Returns the current [Zone]. Returns the current zone. The only way to change
* the current zone is by invoking a run() method, which will update the current zone for the
* duration of the run method callback.
*/
current: Zone;
/**
* @returns {Task} The task associated with the current execution.
*/
currentTask: Task;
}
/**
* Provides a way to configure the interception of zone events.
*
* Only the `name` property is required (all other are optional).
*/
interface ZoneSpec {
/**
* The name of the zone. Usefull when debugging Zones.
*/
name: string;
/**
* A set of properties to be associated with Zone. Use [Zone.get] to retrive them.
*/
properties?: {[key: string]: any};
/**
* Allows the interception of zone forking.
*
* When the zone is being forked, the request is forwarded to this method for interception.
*
* @param parentZoneDelegate Dalegate which performs the parent [ZoneSpec] operation.
* @param currentZone The current [Zone] where the current interceptor has beed declared.
* @param targetZone The [Zone] which originally received the request.
* @param zoneSpec The argument passed into the `fork` method.
*/
onFork?: (parentZoneDelegate: ZoneDelegate, currentZone: Zone, targetZone: Zone,
zoneSpec: ZoneSpec) => Zone;
/**
* Allows interception of the wrapping of the callback.
*
* @param parentZoneDelegate Dalegate which performs the parent [ZoneSpec] operation.
* @param currentZone The current [Zone] where the current interceptor has beed declared.
* @param targetZone The [Zone] which originally received the request.
* @param delegate The argument passed into the `warp` method.
* @param source The argument passed into the `warp` method.
*/
onIntercept?: (parentZoneDelegate: ZoneDelegate, currentZone: Zone, targetZone: Zone,
delegate: Function, source: string) => Function;
/**
* Allows interception of the callback invocation.
*
* @param parentZoneDelegate Dalegate which performs the parent [ZoneSpec] operation.
* @param currentZone The current [Zone] where the current interceptor has beed declared.
* @param targetZone The [Zone] which originally received the request.
* @param delegate The argument passed into the `run` method.
* @param applyThis The argument passed into the `run` method.
* @param applyArgs The argument passed into the `run` method.
* @param source The argument passed into the `run` method.
*/
onInvoke?: (parentZoneDelegate: ZoneDelegate, currentZone: Zone, targetZone: Zone,
delegate: Function, applyThis: any, applyArgs: any[], source: string) => any;
/**
* Allows interception of the error handling.
*
* @param parentZoneDelegate Dalegate which performs the parent [ZoneSpec] operation.
* @param currentZone The current [Zone] where the current interceptor has beed declared.
* @param targetZone The [Zone] which originally received the request.
* @param error The argument passed into the `handleError` method.
*/
onHandleError?: (parentZoneDelegate: ZoneDelegate, currentZone: Zone, targetZone: Zone,
error: any) => boolean;
/**
* Allows interception of task scheduling.
*
* @param parentZoneDelegate Dalegate which performs the parent [ZoneSpec] operation.
* @param currentZone The current [Zone] where the current interceptor has beed declared.
* @param targetZone The [Zone] which originally received the request.
* @param task The argument passed into the `scheduleTask` method.
*/
onScheduleTask?: (parentZoneDelegate: ZoneDelegate, currentZone: Zone, targetZone: Zone,
task: Task) => Task;
onInvokeTask?: (parentZoneDelegate: ZoneDelegate, currentZone: Zone, targetZone: Zone,
task: Task, applyThis: any, applyArgs: any) => any;
/**
* Allows interception of task cancalation.
*
* @param parentZoneDelegate Dalegate which performs the parent [ZoneSpec] operation.
* @param currentZone The current [Zone] where the current interceptor has beed declared.
* @param targetZone The [Zone] which originally received the request.
* @param task The argument passed into the `cancelTask` method.
*/
onCancelTask?: (parentZoneDelegate: ZoneDelegate, currentZone: Zone, targetZone: Zone,
task: Task) => any;
/**
* Notifies of changes to the task queue empty status.
*
* @param parentZoneDelegate Dalegate which performs the parent [ZoneSpec] operation.
* @param currentZone The current [Zone] where the current interceptor has beed declared.
* @param targetZone The [Zone] which originally received the request.
* @param isEmpty
*/
onHasTask?: (delegate: ZoneDelegate, current: Zone, target: Zone,
hasTaskState: HasTaskState) => void;
};
/**
* A delegate when intercepting zone operations.
*
* A ZoneDelegate is needed because a child zone can't simply invoke a method on a parent zone. For
* example a child zone wrap can't just call parent zone wrap. Doing so would create a callback
* which is bound to the parent zone. What we are interested is intercepting the callback before it
* is bound to any zone. Furthermore, we also need to pass the targetZone (zone which received the
* original request) to the delegate.
*
* The ZoneDelegate methods mirror those of Zone with an addition of extra targetZone argument in
* the method signature. (The original Zone which received the request.) Some methods are renamed
* to prevent confusion, because they have slightly different semantics and arguments.
*
* - `wrap` => `intercept`: The `wrap` method delegates to `intercept`. The `wrap` method returns
* a callback which will run in a given zone, where as intercept allows wrapping the callback
* so that additional code can be run before and after, but does not associated the callback
* with the zone.
* - `run` => `invoke`: The `run` method delegates to `invoke` to perform the actual execution of
* the callback. The `run` method switches to new zone; saves and restores the `Zone.current`;
* and optionally performs error handling. The invoke is not responsible for error handling,
* or zone management.
*
* Not every method is usually overwritten in the child zone, for this reason the ZoneDelegate
* stores the closest zone which overwrites this behavior along with the closest ZoneSpec.
*
* NOTE: We have tried to make this API analogous to Event bubbling with target and current
* properties.
*
* Note: The ZoneDelegate treats ZoneSpec as class. This allows the ZoneSpec to use its `this` to
* store internal state.
*/
interface ZoneDelegate {
zone: Zone;
fork(targetZone: Zone, zoneSpec: ZoneSpec): Zone;
intercept(targetZone: Zone, callback: Function, source: string): Function;
invoke(targetZone: Zone, callback: Function, applyThis: any, applyArgs: any[], source: string): any;
handleError(targetZone: Zone, error: any): boolean;
scheduleTask(targetZone: Zone, task: Task): Task;
invokeTask(targetZone: Zone, task: Task, applyThis: any, applyArgs: any): any;
cancelTask(targetZone: Zone, task: Task): any;
hasTask(targetZone: Zone, isEmpty: HasTaskState): void;
}
type HasTaskState = {
microTask: boolean,
macroTask: boolean,
eventTask: boolean,
change: TaskType
};
/**
* Task type: `microTask`, `macroTask`, `eventTask`.
*/
type TaskType = string; /* TS v1.8 => "microTask" | "macroTask" | "eventTask" */;
/**
*/
interface TaskData {
/**
* A periodic [MacroTask] is such which get automatically rescheduled after it is executed.
*/
isPeriodic?: boolean;
/**
* Delay in milliseconds when the Task will run.
*/
delay?: number;
}
/**
* Represents work which is executed with a clean stack.
*
* Tasks are used in Zones to mark work which is performed on clean stack frame. There are three
* kinds of task. [MicroTask], [MacroTask], and [EventTask].
*
* A JS VM can be modeled as a [MicroTask] queue, [MacroTask] queue, and [EventTask] set.
*
* - [MicroTask] queue represents a set of tasks which are executing right after the current stack
* frame becomes clean and before a VM yield. All [MicroTask]s execute in order of insertion
* before VM yield and the next [MacroTask] is executed.
* - [MacroTask] queue represents a set of tasks which are executed one at a time after each VM
* yield. The queue is order by time, and insertions can happen in any location.
* - [EventTask] is a set of tasks which can at any time be inserted to the head of the [MacroTask]
* queue. This happens when the event fires.
*
*/
interface Task {
/**
* Task type: `microTask`, `macroTask`, `eventTask`.
*/
type: TaskType;
/**
* Debug string representing the API which requested the scheduling of the task.
*/
source: string;
/**
* The Function to be used by the VM on entering the [Task]. This function will delegate to
* [Zone.runTask] and delegate to `callback`.
*/
invoke: Function;
/**
* Function which needs to be executed by the Task after the [Zone.currentTask] has been set to
* the current task.
*/
callback: Function;
/**
* Task specific options associated with the current task. This is passed to the `scheduleFn`.
*/
data: TaskData;
/**
* Represents the default work which needs to be done to schedule the Task by the VM.
*
* A zone may chose to intercept this function and perform its own scheduling.
*/
scheduleFn: (task: Task) => void;
/**
* Represents the default work which needs to be done to un-schedule the Task from the VM. Not all
* Tasks are cancelable, and therefore this method is optional.
*
* A zone may chose to intercept this function and perform its own scheduling.
*/
cancelFn: (task: Task) => void;
/**
* @type {Zone} The zone which will be used to invoke the `callback`. The Zone is captured
* at the time of Task creation.
*/
zone: Zone;
}
interface MicroTask extends Task {
/* TS v1.8 => type: 'microTask'; */
}
interface MacroTask extends Task {
/* TS v1.8 => type: 'macroTask'; */
}
interface EventTask extends Task {
/* TS v1.8 => type: 'eventTask'; */
}
/** @internal */
type AmbientZone = Zone;
/** @internal */
type AmbientZoneDelegate = ZoneDelegate;
var Zone: ZoneType = (function(global) {
class Zone implements AmbientZone {
static __symbol__: (name: string) => string = __symbol__;
static get current(): AmbientZone { return _currentZone; };
static get currentTask(): Task { return _currentTask; };
public get parent(): AmbientZone { return this._parent; };
public get name(): string { return this._name; };
private _parent: Zone;
private _name: string;
private _properties: {[key: string]: any} = null;
private _zoneDelegate: ZoneDelegate;
constructor(parent: Zone, zoneSpec: ZoneSpec)
{
this._parent = parent;
this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>';
this._properties = zoneSpec && zoneSpec.properties || {};
this._zoneDelegate = new ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);
}
public get(key: string): any {
var current: Zone = this;
while (current) {
if (current._properties.hasOwnProperty(key)) {
return current._properties[key];
}
current = current._parent;
}
}
public fork(zoneSpec: ZoneSpec): AmbientZone {
if (!zoneSpec) throw new Error('ZoneSpec required!');
return this._zoneDelegate.fork(this, zoneSpec);
}
public wrap(callback: Function, source: string): Function
{
if (typeof callback != 'function') {
throw new Error('Expecting function got: ' + callback);
}
var callback = this._zoneDelegate.intercept(this, callback, source);
var zone: Zone = this;
return function() {
return zone.runGuarded(callback, this, <any>arguments, source);
}
}
public run(callback: Function, applyThis: any = null, applyArgs: any[] = null,
source: string = null)
{
var oldZone = _currentZone;
_currentZone = this;
try {
return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
} finally {
_currentZone = oldZone;
}
}
public runGuarded(callback: Function, applyThis: any = null, applyArgs: any[] = null,
source: string = null)
{
var oldZone = _currentZone;
_currentZone = this;
try {
try {
return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
} catch (error) {
if (this._zoneDelegate.handleError(this, error)) {
throw error;
}
}
} finally {
_currentZone = oldZone;
}
}
runTask(task: Task, applyThis?: any, applyArgs?: any) {
if (task.zone != this)
throw new Error('A task can only be run in the zone which created it! (Creation: ' +
task.zone.name + '; Execution: ' + this.name + ')');
var previousTask = _currentTask;
_currentTask = task;
var oldZone = _currentZone;
_currentZone = this;
try {
try {
return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);
} catch (error) {
if (this._zoneDelegate.handleError(this, error)) {
throw error;
}
}
} finally {
_currentZone = oldZone;
_currentTask = previousTask;
if (task.type == 'microTask') {
}
}
}
scheduleMicroTask(source: string, callback: Function, data?: TaskData,
customSchedule?: (task: Task) => void): MicroTask {
return <MicroTask>this._zoneDelegate.scheduleTask(this,
new ZoneTask('microTask', this, source, callback, data, customSchedule, null));
}
scheduleMacroTask(source: string, callback: Function, data: TaskData,
customSchedule: (task: Task) => void,
customCancel: (task: Task) => void): MacroTask {
return <MacroTask>this._zoneDelegate.scheduleTask(this,
new ZoneTask('macroTask', this, source, callback, data, customSchedule, customCancel));
}
scheduleEventTask(source: string, callback: Function, data: TaskData,
customSchedule: (task: Task) => void,
customCancel: (task: Task) => void): EventTask {
return <EventTask>this._zoneDelegate.scheduleTask(this,
new ZoneTask('eventTask', this, source, callback, data, customSchedule, customCancel));
}
cancelTask(task: Task): any {
var value = this._zoneDelegate.cancelTask(this, task);
task.cancelFn = null;
return value;
}
};
class ZoneDelegate implements AmbientZoneDelegate {
public zone: Zone;
private _taskCounts: {microTask: number, macroTask: number, eventTask: number}
= {microTask: 0, macroTask: 0, eventTask: 0};
private _parentDelegate: ZoneDelegate;
private _forkDlgt: ZoneDelegate;
private _forkZS: ZoneSpec;
private _interceptDlgt: ZoneDelegate;
private _interceptZS: ZoneSpec;
private _invokeDlgt: ZoneDelegate;
private _invokeZS: ZoneSpec;
private _handleErrorDlgt: ZoneDelegate;
private _handleErrorZS: ZoneSpec;
private _scheduleTaskDlgt: ZoneDelegate;
private _scheduleTaskZS: ZoneSpec;
private _invokeTaskDlgt: ZoneDelegate;
private _invokeTaskZS: ZoneSpec;
private _cancelTaskDlgt: ZoneDelegate;
private _cancelTaskZS: ZoneSpec;
private _hasTaskDlgt: ZoneDelegate;
private _hasTaskZS: ZoneSpec;
constructor(zone: Zone, parentDelegate: ZoneDelegate, zoneSpec:ZoneSpec) {
this.zone = zone;
this._parentDelegate = parentDelegate;
this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);
this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);
this._interceptZS = zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);
this._interceptDlgt = zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);
this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);
this._invokeDlgt = zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);
this._handleErrorZS = zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);
this._handleErrorDlgt = zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);
this._scheduleTaskZS = zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);
this._scheduleTaskDlgt = zoneSpec && (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);
this._invokeTaskZS = zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);
this._invokeTaskDlgt = zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);
this._cancelTaskZS = zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);
this._cancelTaskDlgt = zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);
this._hasTaskZS = zoneSpec && (zoneSpec.onHasTask ? zoneSpec : parentDelegate._hasTaskZS);
this._hasTaskDlgt = zoneSpec && (zoneSpec.onHasTask ? parentDelegate : parentDelegate._hasTaskDlgt);
}
fork(targetZone: Zone, zoneSpec: ZoneSpec): AmbientZone {
return this._forkZS
? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec)
: new Zone(targetZone, zoneSpec);
}
intercept(targetZone: Zone, callback: Function, source: string): Function {
return this._interceptZS
? this._interceptZS.onIntercept(this._interceptDlgt, this.zone, targetZone, callback, source)
: callback;
}
invoke(targetZone: Zone, callback: Function, applyThis: any, applyArgs: any[],
source: string): any
{
return this._invokeZS
? this._invokeZS.onInvoke(this._invokeDlgt, this.zone, targetZone, callback, applyThis, applyArgs, source)
: callback.apply(applyThis, applyArgs);
}
handleError(targetZone: Zone, error: any): boolean {
return this._handleErrorZS
? this._handleErrorZS.onHandleError(this._handleErrorDlgt, this.zone, targetZone, error)
: true;
}
scheduleTask(targetZone: Zone, task: Task): Task {
try {
if (this._scheduleTaskZS) {
return this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this.zone, targetZone, task);
} else if (task.scheduleFn) {
task.scheduleFn(task)
} else if (task.type == 'microTask') {
scheduleMicroTask(<MicroTask>task);
} else {
throw new Error('Task is missing scheduleFn.');
}
return task;
} finally {
if (targetZone == this.zone) {
this._updateTaskCount(task.type, 1);
}
}
}
invokeTask(targetZone: Zone, task: Task, applyThis: any, applyArgs: any): any {
try {
return this._invokeTaskZS
? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this.zone, targetZone, task, applyThis, applyArgs)
: task.callback.apply(applyThis, applyArgs);
} finally {
if (targetZone == this.zone && (task.type != 'eventTask') && !(task.data && task.data.isPeriodic)) {
this._updateTaskCount(task.type, -1);
}
}
}
cancelTask(targetZone: Zone, task: Task): any {
var value;
if (this._cancelTaskZS) {
value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this.zone, targetZone, task);
} else if (!task.cancelFn) {
throw new Error('Task does not support cancellation, or is already canceled.');
} else {
value = task.cancelFn(task)
}
if (targetZone == this.zone) {
// this should not be in the finally block, because exceptions assume not canceled.
this._updateTaskCount(task.type, -1);
}
return value;
}
hasTask(targetZone: Zone, isEmpty: HasTaskState) {
return this._hasTaskZS && this._hasTaskZS.onHasTask(this._hasTaskDlgt, this.zone, targetZone,
isEmpty);
}
private _updateTaskCount(type: TaskType, count: number) {
var counts = this._taskCounts;
var prev = counts[type];
var next = counts[type] = prev + count;
if (next < 0) {
debugger;
throw new Error('More tasks executed then were scheduled.');
}
if (prev == 0 || next == 0) {
var isEmpty: HasTaskState = {
microTask: counts.microTask > 0,
macroTask: counts.macroTask > 0,
eventTask: counts.eventTask > 0,
change: type
};
try {
this.hasTask(this.zone, isEmpty);
} finally {
if (this._parentDelegate) {
this._parentDelegate._updateTaskCount(type, count);
}
}
}
}
}
class ZoneTask implements Task {
public type: TaskType;
public source: string;
public invoke: Function;
public callback: Function;
public data: TaskData;
public scheduleFn: (task: Task) => void;
public cancelFn: (task: Task) => void;
public zone: Zone;
constructor(type: TaskType, zone: Zone, source: string, callback: Function, options: TaskData,
scheduleFn: (task: Task) => void, cancelFn:(task: Task) => void)
{
this.type = type;
this.zone = zone;
this.source = source;
this.data = options;
this.scheduleFn = scheduleFn;
this.cancelFn = cancelFn;
this.callback = callback;
var self = this;
this.invoke = function () {
try {
return zone.runTask(self, this, <any>arguments);
} finally {
drainMicroTaskQueue();
}
};
}
}
interface UncaughtPromiseError extends Error {
zone: AmbientZone;
task: Task;
promise: ZoneAwarePromise<any>;
rejection: any;
}
function __symbol__(name: string) { return '__zone_symbol__' + name; };
const symbolSetTimeout = __symbol__('setTimeout');
const symbolPromise = __symbol__('Promise');
const symbolThen = __symbol__('then');
var _currentZone: Zone = new Zone(null, null);
var _currentTask: Task = null;
var _microTaskQueue: Task[] = [];
var _isDrainingMicrotaskQueue: boolean = false;
var _uncaughtPromiseErrors: UncaughtPromiseError[] = [];
function scheduleMicroTask(task: MicroTask) {
if (!_currentTask && _microTaskQueue.length == 0) {
// We are not running in Task, so we need to kickstart the microtask queue.
if (global[symbolPromise]) {
global[symbolPromise].resolve(0)[symbolThen](drainMicroTaskQueue);
} else {
global[symbolSetTimeout](drainMicroTaskQueue, 0);
}
}
_microTaskQueue.push(task);
}
function drainMicroTaskQueue() {
if (!_isDrainingMicrotaskQueue) {
_isDrainingMicrotaskQueue = true;
while(_microTaskQueue.length) {
var queue = _microTaskQueue;
_microTaskQueue = [];
for (var i = 0; i < queue.length; i++) {
var task = queue[i];
try {
task.zone.runTask(task, null, null);
} catch (e) {
console.error(e, e instanceof Error ? e.stack : undefined);
}
}
}
while(_uncaughtPromiseErrors.length) {
var uncaughtPromiseErrors = _uncaughtPromiseErrors;
_uncaughtPromiseErrors = [];
for (var i = 0; i < uncaughtPromiseErrors.length; i++) {
var uncaughtPromiseError: UncaughtPromiseError = uncaughtPromiseErrors[i];
try {
uncaughtPromiseError.zone.runGuarded(() => { throw uncaughtPromiseError; });
} catch (e) {
console.error(e, e instanceof Error ? e.stack : undefined);
}
}
}
_isDrainingMicrotaskQueue = false;
}
}
function isThenable(value: any): boolean {
return value && value.then;
}
function forwardResolution(value: any): any { return value; }
function forwardRejection(rejection: any): any { return ZoneAwarePromise.reject(rejection); }
const symbolState: string = __symbol__('state');
const symbolValue: string = __symbol__('value');
const source: string = 'Promise.then';
const UNRESOLVED = null;
const RESOLVED = true;
const REJECTED = false;
const REJECTED_NO_CATCH = 0;
function makeResolver(promise: ZoneAwarePromise<any>, state: boolean): (value: any) => void {
return (v) => {
resolvePromise(promise, state, v);
// Do not return value or you will break the Promise spec.
}
}
function resolvePromise(promise: ZoneAwarePromise<any>, state: boolean, value: any): ZoneAwarePromise<any> {
if (promise[symbolState] === UNRESOLVED) {
if (value instanceof ZoneAwarePromise && value[symbolState] !== UNRESOLVED) {
clearRejectedNoCatch(<Promise<any>>value);
resolvePromise(promise, value[symbolState], value[symbolValue]);
} else if (isThenable(value)) {
value.then(makeResolver(promise, state), makeResolver(promise, false));
} else {
promise[symbolState] = state;
var queue = promise[symbolValue];
promise[symbolValue] = value;
for (var i = 0; i < queue.length;) {
scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);
}
if (queue.length == 0 && state == REJECTED) {
promise[symbolState] = REJECTED_NO_CATCH;
try {
throw new Error("Uncaught (in promise): " + value);
} catch (e) {
var error: UncaughtPromiseError = e;
error.rejection = value;
error.promise = promise;
error.zone = Zone.current;
error.task = Zone.currentTask;
_uncaughtPromiseErrors.push(error);
}
}
}
}
// Resolving an already resolved promise is a noop.
return promise;
}
function clearRejectedNoCatch(promise: ZoneAwarePromise<any>): void {
if (promise[symbolState] === REJECTED_NO_CATCH) {
promise[symbolState] = REJECTED;
for (var i = 0; i < _uncaughtPromiseErrors.length; i++) {
if (promise === _uncaughtPromiseErrors[i].promise) {
_uncaughtPromiseErrors.splice(i, 1);
break;
}
}
}
}
function scheduleResolveOrReject<R, U>(promise: ZoneAwarePromise<any>,
zone: AmbientZone,
chainPromise: ZoneAwarePromise<any>,
onFulfilled?: (value: R) => U,
onRejected?: (error: any) => U): void
{
clearRejectedNoCatch(promise);
var delegate = promise[symbolState] ? onFulfilled || forwardResolution: onRejected || forwardRejection;
zone.scheduleMicroTask(source, () => {
try {
resolvePromise(chainPromise, true, zone.run(delegate, null, [promise[symbolValue]]));
} catch (error) {
resolvePromise(chainPromise, false, error);
}
});
}
class ZoneAwarePromise<R> implements Promise<R> {
static resolve<R>(value:R): Promise<R> {
return resolvePromise(<ZoneAwarePromise<R>>new this(null), RESOLVED, value);
}
static reject<U>(error:U): Promise<U> {
return resolvePromise(<ZoneAwarePromise<U>>new this(null), REJECTED, error);
}
static race<R>(values: Thenable<any>[]): Promise<R> {
var resolve: (v: any) => void;
var reject: (v: any) => void;
var promise: any = new this((res, rej) => {resolve = res; reject = rej});
function onResolve(value) { promise && (promise = null || resolve(value)) }
function onReject(error) { promise && (promise = null || reject(error)) }
for(var value of values) {
if (!isThenable(value)) {
value = this.resolve(value);
}
value.then(onResolve, onReject);
}
return promise;
}
static all<R>(values): Promise<R> {
var resolve: (v: any) => void;
var reject: (v: any) => void;
var promise = new this((res, rej) => {resolve = res; reject = rej;});
var resolvedValues = [];
var count = 0;
function onReject(error) { promise && reject(error); promise = null; }
for(var value of values) {
if (!isThenable(value)) {
value = this.resolve(value);
}
value.then(((index) => (value) => {
resolvedValues[index] = value;
count--;
if (promise && !count) {
resolve(resolvedValues);
}
promise == null;
})(count), onReject);
count++;
}
if (!count) resolve(resolvedValues);
return promise;
}
constructor(executor: (resolve : (value?: R | Thenable<R>) => void,
reject: (error?: any) => void) => void) {
var promise: ZoneAwarePromise<R> = this;
promise[symbolState] = UNRESOLVED;
promise[symbolValue] = []; // queue;
try {
executor && executor(makeResolver(promise, RESOLVED), makeResolver(promise, REJECTED));
} catch (e) {
resolvePromise(promise, false, e);
}
}
then<R, U>(onFulfilled?: (value: R) => U | Thenable<U>,
onRejected?: (error: any) => U | Thenable<U>): Promise<R>
{
var chainPromise: Promise<R> = new ZoneAwarePromise(null);
var zone = Zone.current;
if (this[symbolState] == UNRESOLVED ) {
(<any[]>this[symbolValue]).push(zone, chainPromise, onFulfilled, onRejected);
} else {
scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);
}
return chainPromise;
}
catch<U>(onRejected?: (error: any) => U | Thenable<U>): Promise<R> {
return this.then(null, onRejected);
}
}
var NativePromise = global[__symbol__('Promise')] = global.Promise;
global.Promise = ZoneAwarePromise;
if (NativePromise) {
var NativePromiseProtototype = NativePromise.prototype;
var NativePromiseThen = NativePromiseProtototype[__symbol__('then')]
= NativePromiseProtototype.then;
NativePromiseProtototype.then = function(onResolve, onReject) {
var nativePromise = this;
return new ZoneAwarePromise((resolve, reject) => {
NativePromiseThen.call(nativePromise, resolve, reject);
}).then(onResolve, onReject);
}
}
return global.Zone = Zone;
})((function(): any { try { return window; } catch(e) { return global; }})());
{
"name": "zone.js",
"version": "0.5.15",
"version": "0.6.0",
"description": "Zones for JavaScript",
"main": "build/lib/zone.js",
"typings": "build/lib/core.d.ts",
"main": "dist/zone.js",
"typings": "dist/zone.js.d.ts",
"files": [
"lib",
"build",
"dist"

@@ -17,6 +16,6 @@ ],

"scripts": {
"tsd": "tsd install",
"prepublish": "npm install tsd@^0.6.5 && tsd reinstall --overwrite && tsc && gulp build",
"tsc": "tsc",
"tsc:w": "tsc -w",
"prepublish": "./node_modules/.bin/tsc && gulp build",
"postinstall": "./node_modules/.bin/typings install",
"tsc": "./node_modules/.bin/tsc",
"tsc:w": "./node_modules/.bin/tsc -w",
"test": "karma start karma.conf.js",

@@ -39,22 +38,23 @@ "serve": "python -m SimpleHTTPServer 8000"

"gulp": "^3.8.11",
"gulp-util": "^3.0.7",
"gulp-rename": "^1.2.2",
"gulp-tsc": "^1.1.4",
"gulp-uglify": "^1.2.0",
"gulp-util": "^3.0.7",
"jasmine-core": "^2.2.0",
"karma": "^0.13.14",
"karma-chrome-launcher": "^0.2.1",
"karma-firefox-launcher": "^0.1.4",
"karma-jasmine": "^0.3.6",
"karma-safari-launcher": "^0.1.1",
"karma-sauce-launcher": "^0.2.10",
"karma": "^0.13.14",
"karma-chrome-launcher": "^0.2.1",
"karma-jasmine": "^0.3.6",
"karma-sourcemap-loader": "^0.3.6",
"karma-webpack": "^1.7.0",
"nodejs-websocket": "^1.2.0",
"ts-loader": "^0.6.0",
"tsd": "^0.6.5",
"typescript": "^1.7.3",
"webpack": "^1.12.2",
"nodejs-websocket": "^1.2.0",
"typescript": "^1.8.0",
"typings": "^0.6.6",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
"vinyl-source-stream": "^1.1.0",
"webpack": "^1.12.2"
}
}

@@ -7,3 +7,8 @@ # Zone.js

# NEW Zone.js POST-v0.6.0
See the new API [here](./dist/zone.js.d.ts).
# DEPRECATED Zone.js PRE-v0.5.15
## What's a Zone?

@@ -240,3 +245,3 @@

By default the callback is executed in the zone where those methods have been called to avoid
By default the wrapCallback is executed in the zone where those methods have been called to avoid
growing the stack size on each recursive call.

@@ -243,0 +248,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc