angularjs-rails 1.4.8 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/angularjs-rails/version.rb +2 -2
- data/vendor/assets/javascripts/angular-animate.js +477 -286
- data/vendor/assets/javascripts/angular-aria.js +51 -51
- data/vendor/assets/javascripts/angular-cookies.js +9 -8
- data/vendor/assets/javascripts/angular-loader.js +45 -4
- data/vendor/assets/javascripts/angular-message-format.js +2 -2
- data/vendor/assets/javascripts/angular-messages.js +7 -5
- data/vendor/assets/javascripts/angular-mocks.js +406 -35
- data/vendor/assets/javascripts/angular-resource.js +121 -37
- data/vendor/assets/javascripts/angular-route.js +36 -11
- data/vendor/assets/javascripts/angular-sanitize.js +280 -246
- data/vendor/assets/javascripts/angular-scenario.js +2183 -773
- data/vendor/assets/javascripts/angular-touch.js +115 -14
- data/vendor/assets/javascripts/angular.js +2183 -773
- data/vendor/assets/javascripts/unstable/angular2-polyfills.js +3316 -0
- data/vendor/assets/javascripts/unstable/angular2.js +19327 -25066
- metadata +15 -14
@@ -0,0 +1,3316 @@
|
|
1
|
+
/**
|
2
|
+
@license
|
3
|
+
The MIT License
|
4
|
+
|
5
|
+
Copyright (c) 2016 Google, Inc.
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
9
|
+
in the Software without restriction, including without limitation the rights
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
12
|
+
furnished to do so, subject to the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
15
|
+
all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
+
THE SOFTWARE.
|
24
|
+
|
25
|
+
*/
|
26
|
+
|
27
|
+
/******/ (function(modules) { // webpackBootstrap
|
28
|
+
/******/ // The module cache
|
29
|
+
/******/ var installedModules = {};
|
30
|
+
|
31
|
+
/******/ // The require function
|
32
|
+
/******/ function __webpack_require__(moduleId) {
|
33
|
+
|
34
|
+
/******/ // Check if module is in cache
|
35
|
+
/******/ if(installedModules[moduleId])
|
36
|
+
/******/ return installedModules[moduleId].exports;
|
37
|
+
|
38
|
+
/******/ // Create a new module (and put it into the cache)
|
39
|
+
/******/ var module = installedModules[moduleId] = {
|
40
|
+
/******/ exports: {},
|
41
|
+
/******/ id: moduleId,
|
42
|
+
/******/ loaded: false
|
43
|
+
/******/ };
|
44
|
+
|
45
|
+
/******/ // Execute the module function
|
46
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
47
|
+
|
48
|
+
/******/ // Flag the module as loaded
|
49
|
+
/******/ module.loaded = true;
|
50
|
+
|
51
|
+
/******/ // Return the exports of the module
|
52
|
+
/******/ return module.exports;
|
53
|
+
/******/ }
|
54
|
+
|
55
|
+
|
56
|
+
/******/ // expose the modules object (__webpack_modules__)
|
57
|
+
/******/ __webpack_require__.m = modules;
|
58
|
+
|
59
|
+
/******/ // expose the module cache
|
60
|
+
/******/ __webpack_require__.c = installedModules;
|
61
|
+
|
62
|
+
/******/ // __webpack_public_path__
|
63
|
+
/******/ __webpack_require__.p = "";
|
64
|
+
|
65
|
+
/******/ // Load entry module and return exports
|
66
|
+
/******/ return __webpack_require__(0);
|
67
|
+
/******/ })
|
68
|
+
/************************************************************************/
|
69
|
+
/******/ ([
|
70
|
+
/* 0 */
|
71
|
+
/***/ function(module, exports, __webpack_require__) {
|
72
|
+
|
73
|
+
/* WEBPACK VAR INJECTION */(function(global) {'use strict';
|
74
|
+
var microtask = __webpack_require__(1);
|
75
|
+
var es6Promise = __webpack_require__(2);
|
76
|
+
var core = __webpack_require__(6);
|
77
|
+
var browserPatch = __webpack_require__(10);
|
78
|
+
if (core.Zone.prototype['scheduleMicrotask']) {
|
79
|
+
console.warn('Zone-microtasks already exported on window the object!');
|
80
|
+
}
|
81
|
+
else {
|
82
|
+
microtask.addMicrotaskSupport(core.Zone);
|
83
|
+
global.Zone = core.Zone;
|
84
|
+
global.zone = new global.Zone();
|
85
|
+
// Monkey patch the Promise implementation to add support for microtasks
|
86
|
+
global.Promise = es6Promise.Promise;
|
87
|
+
browserPatch.apply();
|
88
|
+
}
|
89
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiem9uZS1taWNyb3Rhc2suanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvYnJvd3Nlci96b25lLW1pY3JvdGFzay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLENBQUM7QUFFYixJQUFZLFNBQVMsV0FBTSxjQUFjLENBQUMsQ0FBQTtBQUMxQyxJQUFZLFVBQVUsV0FBTSxhQUFhLENBQUMsQ0FBQTtBQUMxQyxJQUFZLElBQUksV0FBTSxTQUFTLENBQUMsQ0FBQTtBQUNoQyxJQUFZLFlBQVksV0FBTSxrQkFBa0IsQ0FBQyxDQUFBO0FBRWpELEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLG1CQUFtQixDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQzdDLE9BQU8sQ0FBQyxJQUFJLENBQUMsd0RBQXdELENBQUMsQ0FBQztB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m9yIG1pY3JvdGFza3NcbiAgZ2xvYmFsLlByb21pc2UgPSBlczZQcm9taXNlLlByb21pc2U7XG5cbiAgYnJvd3NlclBhdGNoLmFwcGx5KCk7XG59XG4iXX0=
|
90
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
91
|
+
|
92
|
+
/***/ },
|
93
|
+
/* 1 */
|
94
|
+
/***/ function(module, exports, __webpack_require__) {
|
95
|
+
|
96
|
+
/* WEBPACK VAR INJECTION */(function(global) {// TODO(vicb): Create a benchmark for the different methods & the usage of the queue
|
97
|
+
// see https://github.com/angular/zone.js/issues/97
|
98
|
+
// It is required to initialize hasNativePromise before requiring es6-promise otherwise es6-promise would
|
99
|
+
// overwrite the native Promise implementation on v8 and the check would always return false.
|
100
|
+
// see https://github.com/jakearchibald/es6-promise/issues/140
|
101
|
+
var hasNativePromise = typeof Promise !== "undefined" &&
|
102
|
+
Promise.toString().indexOf("[native code]") !== -1;
|
103
|
+
var isFirefox = global.navigator &&
|
104
|
+
global.navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
105
|
+
var resolvedPromise;
|
106
|
+
// TODO(vicb): remove '!isFirefox' when the bug gets fixed:
|
107
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=1162013
|
108
|
+
if (hasNativePromise && !isFirefox) {
|
109
|
+
// When available use a native Promise to schedule microtasks.
|
110
|
+
// When not available, es6-promise fallback will be used
|
111
|
+
resolvedPromise = Promise.resolve();
|
112
|
+
}
|
113
|
+
var es6Promise = __webpack_require__(2).Promise;
|
114
|
+
if (resolvedPromise) {
|
115
|
+
es6Promise._setScheduler(function (fn) {
|
116
|
+
resolvedPromise.then(fn);
|
117
|
+
});
|
118
|
+
}
|
119
|
+
// es6-promise asap should schedule microtasks via zone.scheduleMicrotask so that any
|
120
|
+
// user defined hooks are triggered
|
121
|
+
es6Promise._setAsap(function (fn, arg) {
|
122
|
+
global.zone.scheduleMicrotask(function () {
|
123
|
+
fn(arg);
|
124
|
+
});
|
125
|
+
});
|
126
|
+
// The default implementation of scheduleMicrotask use the original es6-promise implementation
|
127
|
+
// to schedule a microtask
|
128
|
+
function scheduleMicrotask(fn) {
|
129
|
+
es6Promise._asap(this.bind(fn));
|
130
|
+
}
|
131
|
+
function addMicrotaskSupport(zoneClass) {
|
132
|
+
zoneClass.prototype.scheduleMicrotask = scheduleMicrotask;
|
133
|
+
return zoneClass;
|
134
|
+
}
|
135
|
+
exports.addMicrotaskSupport = addMicrotaskSupport;
|
136
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWljcm90YXNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbGliL21pY3JvdGFzay50cyJdLCJuYW1lcyI6WyJzY2hlZHVsZU1pY3JvdGFzayIsImFkZE1pY3JvdGFza1N1cHBvcnQiXSwibWFwcGluZ3MiOiJBQUFBLG9GQUFvRjtBQUNwRixtREFBbUQ7QUFFbkQseUdBQXlHO0FBQ3pHLDZGQUE2RjtBQUM3Riw4REFBOEQ7QUFDOUQsSUFBSSxnQkFBZ0IsR0FBRyxPQUFPLE9BQU8sS0FBSyxXQUFXO0lBQ2pELE9BQU8sQ0FBQyxRQUFRLEVBQUUsQ0FBQyxPQUFPLENBQUMsZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7QUFFdkQsSUFBSSxTQUFTLEdBQUcsTUFBTSxDQUFDLFNBQVM7SUFDNUIsTUFBTSxDQUFDLFNBQVMsQ0FBQyxTQUFTLENBQUMsV0FBVyxFQUFFLENBQUMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDO0FBRXJFLElBQUksZUFBZSxDQUFDO0FBRXBCLDJEQUEyRDtBQUMzRCx1REFBdUQ7QUFDdkQsRUFBRSxDQUFDLENBQUMsZ0JBQWdCLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDO0lBQ25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uIGFkZE1pY3JvdGFza1N1cHBvcnQoem9uZUNsYXNzKSB7XG4gIHpvbmVDbGFzcy5wcm90b3R5cGUuc2NoZWR1bGVNaWNyb3Rhc2sgPSBzY2hlZHVsZU1pY3JvdGFzaztcbiAgcmV0dXJuIHpvbmVDbGFzcztcbn1cbiJdfQ==
|
137
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
138
|
+
|
139
|
+
/***/ },
|
140
|
+
/* 2 */
|
141
|
+
/***/ function(module, exports, __webpack_require__) {
|
142
|
+
|
143
|
+
var require;var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global, module) {/*!
|
144
|
+
* @overview es6-promise - a tiny implementation of Promises/A+.
|
145
|
+
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
146
|
+
* @license Licensed under MIT license
|
147
|
+
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
|
148
|
+
* @version 3.0.2
|
149
|
+
*/
|
150
|
+
|
151
|
+
(function() {
|
152
|
+
"use strict";
|
153
|
+
function lib$es6$promise$utils$$objectOrFunction(x) {
|
154
|
+
return typeof x === 'function' || (typeof x === 'object' && x !== null);
|
155
|
+
}
|
156
|
+
|
157
|
+
function lib$es6$promise$utils$$isFunction(x) {
|
158
|
+
return typeof x === 'function';
|
159
|
+
}
|
160
|
+
|
161
|
+
function lib$es6$promise$utils$$isMaybeThenable(x) {
|
162
|
+
return typeof x === 'object' && x !== null;
|
163
|
+
}
|
164
|
+
|
165
|
+
var lib$es6$promise$utils$$_isArray;
|
166
|
+
if (!Array.isArray) {
|
167
|
+
lib$es6$promise$utils$$_isArray = function (x) {
|
168
|
+
return Object.prototype.toString.call(x) === '[object Array]';
|
169
|
+
};
|
170
|
+
} else {
|
171
|
+
lib$es6$promise$utils$$_isArray = Array.isArray;
|
172
|
+
}
|
173
|
+
|
174
|
+
var lib$es6$promise$utils$$isArray = lib$es6$promise$utils$$_isArray;
|
175
|
+
var lib$es6$promise$asap$$len = 0;
|
176
|
+
var lib$es6$promise$asap$$toString = {}.toString;
|
177
|
+
var lib$es6$promise$asap$$vertxNext;
|
178
|
+
var lib$es6$promise$asap$$customSchedulerFn;
|
179
|
+
|
180
|
+
var lib$es6$promise$asap$$asap = function asap(callback, arg) {
|
181
|
+
lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len] = callback;
|
182
|
+
lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len + 1] = arg;
|
183
|
+
lib$es6$promise$asap$$len += 2;
|
184
|
+
if (lib$es6$promise$asap$$len === 2) {
|
185
|
+
// If len is 2, that means that we need to schedule an async flush.
|
186
|
+
// If additional callbacks are queued before the queue is flushed, they
|
187
|
+
// will be processed by this flush that we are scheduling.
|
188
|
+
if (lib$es6$promise$asap$$customSchedulerFn) {
|
189
|
+
lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush);
|
190
|
+
} else {
|
191
|
+
lib$es6$promise$asap$$scheduleFlush();
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
function lib$es6$promise$asap$$setScheduler(scheduleFn) {
|
197
|
+
lib$es6$promise$asap$$customSchedulerFn = scheduleFn;
|
198
|
+
}
|
199
|
+
|
200
|
+
function lib$es6$promise$asap$$setAsap(asapFn) {
|
201
|
+
lib$es6$promise$asap$$asap = asapFn;
|
202
|
+
}
|
203
|
+
|
204
|
+
var lib$es6$promise$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined;
|
205
|
+
var lib$es6$promise$asap$$browserGlobal = lib$es6$promise$asap$$browserWindow || {};
|
206
|
+
var lib$es6$promise$asap$$BrowserMutationObserver = lib$es6$promise$asap$$browserGlobal.MutationObserver || lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver;
|
207
|
+
var lib$es6$promise$asap$$isNode = typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';
|
208
|
+
|
209
|
+
// test for web worker but not in IE10
|
210
|
+
var lib$es6$promise$asap$$isWorker = typeof Uint8ClampedArray !== 'undefined' &&
|
211
|
+
typeof importScripts !== 'undefined' &&
|
212
|
+
typeof MessageChannel !== 'undefined';
|
213
|
+
|
214
|
+
// node
|
215
|
+
function lib$es6$promise$asap$$useNextTick() {
|
216
|
+
// node version 0.10.x displays a deprecation warning when nextTick is used recursively
|
217
|
+
// see https://github.com/cujojs/when/issues/410 for details
|
218
|
+
return function() {
|
219
|
+
process.nextTick(lib$es6$promise$asap$$flush);
|
220
|
+
};
|
221
|
+
}
|
222
|
+
|
223
|
+
// vertx
|
224
|
+
function lib$es6$promise$asap$$useVertxTimer() {
|
225
|
+
return function() {
|
226
|
+
lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush);
|
227
|
+
};
|
228
|
+
}
|
229
|
+
|
230
|
+
function lib$es6$promise$asap$$useMutationObserver() {
|
231
|
+
var iterations = 0;
|
232
|
+
var observer = new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush);
|
233
|
+
var node = document.createTextNode('');
|
234
|
+
observer.observe(node, { characterData: true });
|
235
|
+
|
236
|
+
return function() {
|
237
|
+
node.data = (iterations = ++iterations % 2);
|
238
|
+
};
|
239
|
+
}
|
240
|
+
|
241
|
+
// web worker
|
242
|
+
function lib$es6$promise$asap$$useMessageChannel() {
|
243
|
+
var channel = new MessageChannel();
|
244
|
+
channel.port1.onmessage = lib$es6$promise$asap$$flush;
|
245
|
+
return function () {
|
246
|
+
channel.port2.postMessage(0);
|
247
|
+
};
|
248
|
+
}
|
249
|
+
|
250
|
+
function lib$es6$promise$asap$$useSetTimeout() {
|
251
|
+
return function() {
|
252
|
+
setTimeout(lib$es6$promise$asap$$flush, 1);
|
253
|
+
};
|
254
|
+
}
|
255
|
+
|
256
|
+
var lib$es6$promise$asap$$queue = new Array(1000);
|
257
|
+
function lib$es6$promise$asap$$flush() {
|
258
|
+
for (var i = 0; i < lib$es6$promise$asap$$len; i+=2) {
|
259
|
+
var callback = lib$es6$promise$asap$$queue[i];
|
260
|
+
var arg = lib$es6$promise$asap$$queue[i+1];
|
261
|
+
|
262
|
+
callback(arg);
|
263
|
+
|
264
|
+
lib$es6$promise$asap$$queue[i] = undefined;
|
265
|
+
lib$es6$promise$asap$$queue[i+1] = undefined;
|
266
|
+
}
|
267
|
+
|
268
|
+
lib$es6$promise$asap$$len = 0;
|
269
|
+
}
|
270
|
+
|
271
|
+
function lib$es6$promise$asap$$attemptVertx() {
|
272
|
+
try {
|
273
|
+
var r = require;
|
274
|
+
var vertx = __webpack_require__(4);
|
275
|
+
lib$es6$promise$asap$$vertxNext = vertx.runOnLoop || vertx.runOnContext;
|
276
|
+
return lib$es6$promise$asap$$useVertxTimer();
|
277
|
+
} catch(e) {
|
278
|
+
return lib$es6$promise$asap$$useSetTimeout();
|
279
|
+
}
|
280
|
+
}
|
281
|
+
|
282
|
+
var lib$es6$promise$asap$$scheduleFlush;
|
283
|
+
// Decide what async method to use to triggering processing of queued callbacks:
|
284
|
+
if (lib$es6$promise$asap$$isNode) {
|
285
|
+
lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useNextTick();
|
286
|
+
} else if (lib$es6$promise$asap$$BrowserMutationObserver) {
|
287
|
+
lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMutationObserver();
|
288
|
+
} else if (lib$es6$promise$asap$$isWorker) {
|
289
|
+
lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMessageChannel();
|
290
|
+
} else if (lib$es6$promise$asap$$browserWindow === undefined && "function" === 'function') {
|
291
|
+
lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$attemptVertx();
|
292
|
+
} else {
|
293
|
+
lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useSetTimeout();
|
294
|
+
}
|
295
|
+
|
296
|
+
function lib$es6$promise$$internal$$noop() {}
|
297
|
+
|
298
|
+
var lib$es6$promise$$internal$$PENDING = void 0;
|
299
|
+
var lib$es6$promise$$internal$$FULFILLED = 1;
|
300
|
+
var lib$es6$promise$$internal$$REJECTED = 2;
|
301
|
+
|
302
|
+
var lib$es6$promise$$internal$$GET_THEN_ERROR = new lib$es6$promise$$internal$$ErrorObject();
|
303
|
+
|
304
|
+
function lib$es6$promise$$internal$$selfFulfillment() {
|
305
|
+
return new TypeError("You cannot resolve a promise with itself");
|
306
|
+
}
|
307
|
+
|
308
|
+
function lib$es6$promise$$internal$$cannotReturnOwn() {
|
309
|
+
return new TypeError('A promises callback cannot return that same promise.');
|
310
|
+
}
|
311
|
+
|
312
|
+
function lib$es6$promise$$internal$$getThen(promise) {
|
313
|
+
try {
|
314
|
+
return promise.then;
|
315
|
+
} catch(error) {
|
316
|
+
lib$es6$promise$$internal$$GET_THEN_ERROR.error = error;
|
317
|
+
return lib$es6$promise$$internal$$GET_THEN_ERROR;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
|
321
|
+
function lib$es6$promise$$internal$$tryThen(then, value, fulfillmentHandler, rejectionHandler) {
|
322
|
+
try {
|
323
|
+
then.call(value, fulfillmentHandler, rejectionHandler);
|
324
|
+
} catch(e) {
|
325
|
+
return e;
|
326
|
+
}
|
327
|
+
}
|
328
|
+
|
329
|
+
function lib$es6$promise$$internal$$handleForeignThenable(promise, thenable, then) {
|
330
|
+
lib$es6$promise$asap$$asap(function(promise) {
|
331
|
+
var sealed = false;
|
332
|
+
var error = lib$es6$promise$$internal$$tryThen(then, thenable, function(value) {
|
333
|
+
if (sealed) { return; }
|
334
|
+
sealed = true;
|
335
|
+
if (thenable !== value) {
|
336
|
+
lib$es6$promise$$internal$$resolve(promise, value);
|
337
|
+
} else {
|
338
|
+
lib$es6$promise$$internal$$fulfill(promise, value);
|
339
|
+
}
|
340
|
+
}, function(reason) {
|
341
|
+
if (sealed) { return; }
|
342
|
+
sealed = true;
|
343
|
+
|
344
|
+
lib$es6$promise$$internal$$reject(promise, reason);
|
345
|
+
}, 'Settle: ' + (promise._label || ' unknown promise'));
|
346
|
+
|
347
|
+
if (!sealed && error) {
|
348
|
+
sealed = true;
|
349
|
+
lib$es6$promise$$internal$$reject(promise, error);
|
350
|
+
}
|
351
|
+
}, promise);
|
352
|
+
}
|
353
|
+
|
354
|
+
function lib$es6$promise$$internal$$handleOwnThenable(promise, thenable) {
|
355
|
+
if (thenable._state === lib$es6$promise$$internal$$FULFILLED) {
|
356
|
+
lib$es6$promise$$internal$$fulfill(promise, thenable._result);
|
357
|
+
} else if (thenable._state === lib$es6$promise$$internal$$REJECTED) {
|
358
|
+
lib$es6$promise$$internal$$reject(promise, thenable._result);
|
359
|
+
} else {
|
360
|
+
lib$es6$promise$$internal$$subscribe(thenable, undefined, function(value) {
|
361
|
+
lib$es6$promise$$internal$$resolve(promise, value);
|
362
|
+
}, function(reason) {
|
363
|
+
lib$es6$promise$$internal$$reject(promise, reason);
|
364
|
+
});
|
365
|
+
}
|
366
|
+
}
|
367
|
+
|
368
|
+
function lib$es6$promise$$internal$$handleMaybeThenable(promise, maybeThenable) {
|
369
|
+
if (maybeThenable.constructor === promise.constructor) {
|
370
|
+
lib$es6$promise$$internal$$handleOwnThenable(promise, maybeThenable);
|
371
|
+
} else {
|
372
|
+
var then = lib$es6$promise$$internal$$getThen(maybeThenable);
|
373
|
+
|
374
|
+
if (then === lib$es6$promise$$internal$$GET_THEN_ERROR) {
|
375
|
+
lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$GET_THEN_ERROR.error);
|
376
|
+
} else if (then === undefined) {
|
377
|
+
lib$es6$promise$$internal$$fulfill(promise, maybeThenable);
|
378
|
+
} else if (lib$es6$promise$utils$$isFunction(then)) {
|
379
|
+
lib$es6$promise$$internal$$handleForeignThenable(promise, maybeThenable, then);
|
380
|
+
} else {
|
381
|
+
lib$es6$promise$$internal$$fulfill(promise, maybeThenable);
|
382
|
+
}
|
383
|
+
}
|
384
|
+
}
|
385
|
+
|
386
|
+
function lib$es6$promise$$internal$$resolve(promise, value) {
|
387
|
+
if (promise === value) {
|
388
|
+
lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$selfFulfillment());
|
389
|
+
} else if (lib$es6$promise$utils$$objectOrFunction(value)) {
|
390
|
+
lib$es6$promise$$internal$$handleMaybeThenable(promise, value);
|
391
|
+
} else {
|
392
|
+
lib$es6$promise$$internal$$fulfill(promise, value);
|
393
|
+
}
|
394
|
+
}
|
395
|
+
|
396
|
+
function lib$es6$promise$$internal$$publishRejection(promise) {
|
397
|
+
if (promise._onerror) {
|
398
|
+
promise._onerror(promise._result);
|
399
|
+
}
|
400
|
+
|
401
|
+
lib$es6$promise$$internal$$publish(promise);
|
402
|
+
}
|
403
|
+
|
404
|
+
function lib$es6$promise$$internal$$fulfill(promise, value) {
|
405
|
+
if (promise._state !== lib$es6$promise$$internal$$PENDING) { return; }
|
406
|
+
|
407
|
+
promise._result = value;
|
408
|
+
promise._state = lib$es6$promise$$internal$$FULFILLED;
|
409
|
+
|
410
|
+
if (promise._subscribers.length !== 0) {
|
411
|
+
lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, promise);
|
412
|
+
}
|
413
|
+
}
|
414
|
+
|
415
|
+
function lib$es6$promise$$internal$$reject(promise, reason) {
|
416
|
+
if (promise._state !== lib$es6$promise$$internal$$PENDING) { return; }
|
417
|
+
promise._state = lib$es6$promise$$internal$$REJECTED;
|
418
|
+
promise._result = reason;
|
419
|
+
|
420
|
+
lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection, promise);
|
421
|
+
}
|
422
|
+
|
423
|
+
function lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection) {
|
424
|
+
var subscribers = parent._subscribers;
|
425
|
+
var length = subscribers.length;
|
426
|
+
|
427
|
+
parent._onerror = null;
|
428
|
+
|
429
|
+
subscribers[length] = child;
|
430
|
+
subscribers[length + lib$es6$promise$$internal$$FULFILLED] = onFulfillment;
|
431
|
+
subscribers[length + lib$es6$promise$$internal$$REJECTED] = onRejection;
|
432
|
+
|
433
|
+
if (length === 0 && parent._state) {
|
434
|
+
lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, parent);
|
435
|
+
}
|
436
|
+
}
|
437
|
+
|
438
|
+
function lib$es6$promise$$internal$$publish(promise) {
|
439
|
+
var subscribers = promise._subscribers;
|
440
|
+
var settled = promise._state;
|
441
|
+
|
442
|
+
if (subscribers.length === 0) { return; }
|
443
|
+
|
444
|
+
var child, callback, detail = promise._result;
|
445
|
+
|
446
|
+
for (var i = 0; i < subscribers.length; i += 3) {
|
447
|
+
child = subscribers[i];
|
448
|
+
callback = subscribers[i + settled];
|
449
|
+
|
450
|
+
if (child) {
|
451
|
+
lib$es6$promise$$internal$$invokeCallback(settled, child, callback, detail);
|
452
|
+
} else {
|
453
|
+
callback(detail);
|
454
|
+
}
|
455
|
+
}
|
456
|
+
|
457
|
+
promise._subscribers.length = 0;
|
458
|
+
}
|
459
|
+
|
460
|
+
function lib$es6$promise$$internal$$ErrorObject() {
|
461
|
+
this.error = null;
|
462
|
+
}
|
463
|
+
|
464
|
+
var lib$es6$promise$$internal$$TRY_CATCH_ERROR = new lib$es6$promise$$internal$$ErrorObject();
|
465
|
+
|
466
|
+
function lib$es6$promise$$internal$$tryCatch(callback, detail) {
|
467
|
+
try {
|
468
|
+
return callback(detail);
|
469
|
+
} catch(e) {
|
470
|
+
lib$es6$promise$$internal$$TRY_CATCH_ERROR.error = e;
|
471
|
+
return lib$es6$promise$$internal$$TRY_CATCH_ERROR;
|
472
|
+
}
|
473
|
+
}
|
474
|
+
|
475
|
+
function lib$es6$promise$$internal$$invokeCallback(settled, promise, callback, detail) {
|
476
|
+
var hasCallback = lib$es6$promise$utils$$isFunction(callback),
|
477
|
+
value, error, succeeded, failed;
|
478
|
+
|
479
|
+
if (hasCallback) {
|
480
|
+
value = lib$es6$promise$$internal$$tryCatch(callback, detail);
|
481
|
+
|
482
|
+
if (value === lib$es6$promise$$internal$$TRY_CATCH_ERROR) {
|
483
|
+
failed = true;
|
484
|
+
error = value.error;
|
485
|
+
value = null;
|
486
|
+
} else {
|
487
|
+
succeeded = true;
|
488
|
+
}
|
489
|
+
|
490
|
+
if (promise === value) {
|
491
|
+
lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$cannotReturnOwn());
|
492
|
+
return;
|
493
|
+
}
|
494
|
+
|
495
|
+
} else {
|
496
|
+
value = detail;
|
497
|
+
succeeded = true;
|
498
|
+
}
|
499
|
+
|
500
|
+
if (promise._state !== lib$es6$promise$$internal$$PENDING) {
|
501
|
+
// noop
|
502
|
+
} else if (hasCallback && succeeded) {
|
503
|
+
lib$es6$promise$$internal$$resolve(promise, value);
|
504
|
+
} else if (failed) {
|
505
|
+
lib$es6$promise$$internal$$reject(promise, error);
|
506
|
+
} else if (settled === lib$es6$promise$$internal$$FULFILLED) {
|
507
|
+
lib$es6$promise$$internal$$fulfill(promise, value);
|
508
|
+
} else if (settled === lib$es6$promise$$internal$$REJECTED) {
|
509
|
+
lib$es6$promise$$internal$$reject(promise, value);
|
510
|
+
}
|
511
|
+
}
|
512
|
+
|
513
|
+
function lib$es6$promise$$internal$$initializePromise(promise, resolver) {
|
514
|
+
try {
|
515
|
+
resolver(function resolvePromise(value){
|
516
|
+
lib$es6$promise$$internal$$resolve(promise, value);
|
517
|
+
}, function rejectPromise(reason) {
|
518
|
+
lib$es6$promise$$internal$$reject(promise, reason);
|
519
|
+
});
|
520
|
+
} catch(e) {
|
521
|
+
lib$es6$promise$$internal$$reject(promise, e);
|
522
|
+
}
|
523
|
+
}
|
524
|
+
|
525
|
+
function lib$es6$promise$enumerator$$Enumerator(Constructor, input) {
|
526
|
+
var enumerator = this;
|
527
|
+
|
528
|
+
enumerator._instanceConstructor = Constructor;
|
529
|
+
enumerator.promise = new Constructor(lib$es6$promise$$internal$$noop);
|
530
|
+
|
531
|
+
if (enumerator._validateInput(input)) {
|
532
|
+
enumerator._input = input;
|
533
|
+
enumerator.length = input.length;
|
534
|
+
enumerator._remaining = input.length;
|
535
|
+
|
536
|
+
enumerator._init();
|
537
|
+
|
538
|
+
if (enumerator.length === 0) {
|
539
|
+
lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result);
|
540
|
+
} else {
|
541
|
+
enumerator.length = enumerator.length || 0;
|
542
|
+
enumerator._enumerate();
|
543
|
+
if (enumerator._remaining === 0) {
|
544
|
+
lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result);
|
545
|
+
}
|
546
|
+
}
|
547
|
+
} else {
|
548
|
+
lib$es6$promise$$internal$$reject(enumerator.promise, enumerator._validationError());
|
549
|
+
}
|
550
|
+
}
|
551
|
+
|
552
|
+
lib$es6$promise$enumerator$$Enumerator.prototype._validateInput = function(input) {
|
553
|
+
return lib$es6$promise$utils$$isArray(input);
|
554
|
+
};
|
555
|
+
|
556
|
+
lib$es6$promise$enumerator$$Enumerator.prototype._validationError = function() {
|
557
|
+
return new Error('Array Methods must be provided an Array');
|
558
|
+
};
|
559
|
+
|
560
|
+
lib$es6$promise$enumerator$$Enumerator.prototype._init = function() {
|
561
|
+
this._result = new Array(this.length);
|
562
|
+
};
|
563
|
+
|
564
|
+
var lib$es6$promise$enumerator$$default = lib$es6$promise$enumerator$$Enumerator;
|
565
|
+
|
566
|
+
lib$es6$promise$enumerator$$Enumerator.prototype._enumerate = function() {
|
567
|
+
var enumerator = this;
|
568
|
+
|
569
|
+
var length = enumerator.length;
|
570
|
+
var promise = enumerator.promise;
|
571
|
+
var input = enumerator._input;
|
572
|
+
|
573
|
+
for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) {
|
574
|
+
enumerator._eachEntry(input[i], i);
|
575
|
+
}
|
576
|
+
};
|
577
|
+
|
578
|
+
lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) {
|
579
|
+
var enumerator = this;
|
580
|
+
var c = enumerator._instanceConstructor;
|
581
|
+
|
582
|
+
if (lib$es6$promise$utils$$isMaybeThenable(entry)) {
|
583
|
+
if (entry.constructor === c && entry._state !== lib$es6$promise$$internal$$PENDING) {
|
584
|
+
entry._onerror = null;
|
585
|
+
enumerator._settledAt(entry._state, i, entry._result);
|
586
|
+
} else {
|
587
|
+
enumerator._willSettleAt(c.resolve(entry), i);
|
588
|
+
}
|
589
|
+
} else {
|
590
|
+
enumerator._remaining--;
|
591
|
+
enumerator._result[i] = entry;
|
592
|
+
}
|
593
|
+
};
|
594
|
+
|
595
|
+
lib$es6$promise$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) {
|
596
|
+
var enumerator = this;
|
597
|
+
var promise = enumerator.promise;
|
598
|
+
|
599
|
+
if (promise._state === lib$es6$promise$$internal$$PENDING) {
|
600
|
+
enumerator._remaining--;
|
601
|
+
|
602
|
+
if (state === lib$es6$promise$$internal$$REJECTED) {
|
603
|
+
lib$es6$promise$$internal$$reject(promise, value);
|
604
|
+
} else {
|
605
|
+
enumerator._result[i] = value;
|
606
|
+
}
|
607
|
+
}
|
608
|
+
|
609
|
+
if (enumerator._remaining === 0) {
|
610
|
+
lib$es6$promise$$internal$$fulfill(promise, enumerator._result);
|
611
|
+
}
|
612
|
+
};
|
613
|
+
|
614
|
+
lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) {
|
615
|
+
var enumerator = this;
|
616
|
+
|
617
|
+
lib$es6$promise$$internal$$subscribe(promise, undefined, function(value) {
|
618
|
+
enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED, i, value);
|
619
|
+
}, function(reason) {
|
620
|
+
enumerator._settledAt(lib$es6$promise$$internal$$REJECTED, i, reason);
|
621
|
+
});
|
622
|
+
};
|
623
|
+
function lib$es6$promise$promise$all$$all(entries) {
|
624
|
+
return new lib$es6$promise$enumerator$$default(this, entries).promise;
|
625
|
+
}
|
626
|
+
var lib$es6$promise$promise$all$$default = lib$es6$promise$promise$all$$all;
|
627
|
+
function lib$es6$promise$promise$race$$race(entries) {
|
628
|
+
/*jshint validthis:true */
|
629
|
+
var Constructor = this;
|
630
|
+
|
631
|
+
var promise = new Constructor(lib$es6$promise$$internal$$noop);
|
632
|
+
|
633
|
+
if (!lib$es6$promise$utils$$isArray(entries)) {
|
634
|
+
lib$es6$promise$$internal$$reject(promise, new TypeError('You must pass an array to race.'));
|
635
|
+
return promise;
|
636
|
+
}
|
637
|
+
|
638
|
+
var length = entries.length;
|
639
|
+
|
640
|
+
function onFulfillment(value) {
|
641
|
+
lib$es6$promise$$internal$$resolve(promise, value);
|
642
|
+
}
|
643
|
+
|
644
|
+
function onRejection(reason) {
|
645
|
+
lib$es6$promise$$internal$$reject(promise, reason);
|
646
|
+
}
|
647
|
+
|
648
|
+
for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) {
|
649
|
+
lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection);
|
650
|
+
}
|
651
|
+
|
652
|
+
return promise;
|
653
|
+
}
|
654
|
+
var lib$es6$promise$promise$race$$default = lib$es6$promise$promise$race$$race;
|
655
|
+
function lib$es6$promise$promise$resolve$$resolve(object) {
|
656
|
+
/*jshint validthis:true */
|
657
|
+
var Constructor = this;
|
658
|
+
|
659
|
+
if (object && typeof object === 'object' && object.constructor === Constructor) {
|
660
|
+
return object;
|
661
|
+
}
|
662
|
+
|
663
|
+
var promise = new Constructor(lib$es6$promise$$internal$$noop);
|
664
|
+
lib$es6$promise$$internal$$resolve(promise, object);
|
665
|
+
return promise;
|
666
|
+
}
|
667
|
+
var lib$es6$promise$promise$resolve$$default = lib$es6$promise$promise$resolve$$resolve;
|
668
|
+
function lib$es6$promise$promise$reject$$reject(reason) {
|
669
|
+
/*jshint validthis:true */
|
670
|
+
var Constructor = this;
|
671
|
+
var promise = new Constructor(lib$es6$promise$$internal$$noop);
|
672
|
+
lib$es6$promise$$internal$$reject(promise, reason);
|
673
|
+
return promise;
|
674
|
+
}
|
675
|
+
var lib$es6$promise$promise$reject$$default = lib$es6$promise$promise$reject$$reject;
|
676
|
+
|
677
|
+
var lib$es6$promise$promise$$counter = 0;
|
678
|
+
|
679
|
+
function lib$es6$promise$promise$$needsResolver() {
|
680
|
+
throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');
|
681
|
+
}
|
682
|
+
|
683
|
+
function lib$es6$promise$promise$$needsNew() {
|
684
|
+
throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
|
685
|
+
}
|
686
|
+
|
687
|
+
var lib$es6$promise$promise$$default = lib$es6$promise$promise$$Promise;
|
688
|
+
/**
|
689
|
+
Promise objects represent the eventual result of an asynchronous operation. The
|
690
|
+
primary way of interacting with a promise is through its `then` method, which
|
691
|
+
registers callbacks to receive either a promise's eventual value or the reason
|
692
|
+
why the promise cannot be fulfilled.
|
693
|
+
|
694
|
+
Terminology
|
695
|
+
-----------
|
696
|
+
|
697
|
+
- `promise` is an object or function with a `then` method whose behavior conforms to this specification.
|
698
|
+
- `thenable` is an object or function that defines a `then` method.
|
699
|
+
- `value` is any legal JavaScript value (including undefined, a thenable, or a promise).
|
700
|
+
- `exception` is a value that is thrown using the throw statement.
|
701
|
+
- `reason` is a value that indicates why a promise was rejected.
|
702
|
+
- `settled` the final resting state of a promise, fulfilled or rejected.
|
703
|
+
|
704
|
+
A promise can be in one of three states: pending, fulfilled, or rejected.
|
705
|
+
|
706
|
+
Promises that are fulfilled have a fulfillment value and are in the fulfilled
|
707
|
+
state. Promises that are rejected have a rejection reason and are in the
|
708
|
+
rejected state. A fulfillment value is never a thenable.
|
709
|
+
|
710
|
+
Promises can also be said to *resolve* a value. If this value is also a
|
711
|
+
promise, then the original promise's settled state will match the value's
|
712
|
+
settled state. So a promise that *resolves* a promise that rejects will
|
713
|
+
itself reject, and a promise that *resolves* a promise that fulfills will
|
714
|
+
itself fulfill.
|
715
|
+
|
716
|
+
|
717
|
+
Basic Usage:
|
718
|
+
------------
|
719
|
+
|
720
|
+
```js
|
721
|
+
var promise = new Promise(function(resolve, reject) {
|
722
|
+
// on success
|
723
|
+
resolve(value);
|
724
|
+
|
725
|
+
// on failure
|
726
|
+
reject(reason);
|
727
|
+
});
|
728
|
+
|
729
|
+
promise.then(function(value) {
|
730
|
+
// on fulfillment
|
731
|
+
}, function(reason) {
|
732
|
+
// on rejection
|
733
|
+
});
|
734
|
+
```
|
735
|
+
|
736
|
+
Advanced Usage:
|
737
|
+
---------------
|
738
|
+
|
739
|
+
Promises shine when abstracting away asynchronous interactions such as
|
740
|
+
`XMLHttpRequest`s.
|
741
|
+
|
742
|
+
```js
|
743
|
+
function getJSON(url) {
|
744
|
+
return new Promise(function(resolve, reject){
|
745
|
+
var xhr = new XMLHttpRequest();
|
746
|
+
|
747
|
+
xhr.open('GET', url);
|
748
|
+
xhr.onreadystatechange = handler;
|
749
|
+
xhr.responseType = 'json';
|
750
|
+
xhr.setRequestHeader('Accept', 'application/json');
|
751
|
+
xhr.send();
|
752
|
+
|
753
|
+
function handler() {
|
754
|
+
if (this.readyState === this.DONE) {
|
755
|
+
if (this.status === 200) {
|
756
|
+
resolve(this.response);
|
757
|
+
} else {
|
758
|
+
reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));
|
759
|
+
}
|
760
|
+
}
|
761
|
+
};
|
762
|
+
});
|
763
|
+
}
|
764
|
+
|
765
|
+
getJSON('/posts.json').then(function(json) {
|
766
|
+
// on fulfillment
|
767
|
+
}, function(reason) {
|
768
|
+
// on rejection
|
769
|
+
});
|
770
|
+
```
|
771
|
+
|
772
|
+
Unlike callbacks, promises are great composable primitives.
|
773
|
+
|
774
|
+
```js
|
775
|
+
Promise.all([
|
776
|
+
getJSON('/posts'),
|
777
|
+
getJSON('/comments')
|
778
|
+
]).then(function(values){
|
779
|
+
values[0] // => postsJSON
|
780
|
+
values[1] // => commentsJSON
|
781
|
+
|
782
|
+
return values;
|
783
|
+
});
|
784
|
+
```
|
785
|
+
|
786
|
+
@class Promise
|
787
|
+
@param {function} resolver
|
788
|
+
Useful for tooling.
|
789
|
+
@constructor
|
790
|
+
*/
|
791
|
+
function lib$es6$promise$promise$$Promise(resolver) {
|
792
|
+
this._id = lib$es6$promise$promise$$counter++;
|
793
|
+
this._state = undefined;
|
794
|
+
this._result = undefined;
|
795
|
+
this._subscribers = [];
|
796
|
+
|
797
|
+
if (lib$es6$promise$$internal$$noop !== resolver) {
|
798
|
+
if (!lib$es6$promise$utils$$isFunction(resolver)) {
|
799
|
+
lib$es6$promise$promise$$needsResolver();
|
800
|
+
}
|
801
|
+
|
802
|
+
if (!(this instanceof lib$es6$promise$promise$$Promise)) {
|
803
|
+
lib$es6$promise$promise$$needsNew();
|
804
|
+
}
|
805
|
+
|
806
|
+
lib$es6$promise$$internal$$initializePromise(this, resolver);
|
807
|
+
}
|
808
|
+
}
|
809
|
+
|
810
|
+
lib$es6$promise$promise$$Promise.all = lib$es6$promise$promise$all$$default;
|
811
|
+
lib$es6$promise$promise$$Promise.race = lib$es6$promise$promise$race$$default;
|
812
|
+
lib$es6$promise$promise$$Promise.resolve = lib$es6$promise$promise$resolve$$default;
|
813
|
+
lib$es6$promise$promise$$Promise.reject = lib$es6$promise$promise$reject$$default;
|
814
|
+
lib$es6$promise$promise$$Promise._setScheduler = lib$es6$promise$asap$$setScheduler;
|
815
|
+
lib$es6$promise$promise$$Promise._setAsap = lib$es6$promise$asap$$setAsap;
|
816
|
+
lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$asap;
|
817
|
+
|
818
|
+
lib$es6$promise$promise$$Promise.prototype = {
|
819
|
+
constructor: lib$es6$promise$promise$$Promise,
|
820
|
+
|
821
|
+
/**
|
822
|
+
The primary way of interacting with a promise is through its `then` method,
|
823
|
+
which registers callbacks to receive either a promise's eventual value or the
|
824
|
+
reason why the promise cannot be fulfilled.
|
825
|
+
|
826
|
+
```js
|
827
|
+
findUser().then(function(user){
|
828
|
+
// user is available
|
829
|
+
}, function(reason){
|
830
|
+
// user is unavailable, and you are given the reason why
|
831
|
+
});
|
832
|
+
```
|
833
|
+
|
834
|
+
Chaining
|
835
|
+
--------
|
836
|
+
|
837
|
+
The return value of `then` is itself a promise. This second, 'downstream'
|
838
|
+
promise is resolved with the return value of the first promise's fulfillment
|
839
|
+
or rejection handler, or rejected if the handler throws an exception.
|
840
|
+
|
841
|
+
```js
|
842
|
+
findUser().then(function (user) {
|
843
|
+
return user.name;
|
844
|
+
}, function (reason) {
|
845
|
+
return 'default name';
|
846
|
+
}).then(function (userName) {
|
847
|
+
// If `findUser` fulfilled, `userName` will be the user's name, otherwise it
|
848
|
+
// will be `'default name'`
|
849
|
+
});
|
850
|
+
|
851
|
+
findUser().then(function (user) {
|
852
|
+
throw new Error('Found user, but still unhappy');
|
853
|
+
}, function (reason) {
|
854
|
+
throw new Error('`findUser` rejected and we're unhappy');
|
855
|
+
}).then(function (value) {
|
856
|
+
// never reached
|
857
|
+
}, function (reason) {
|
858
|
+
// if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.
|
859
|
+
// If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.
|
860
|
+
});
|
861
|
+
```
|
862
|
+
If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.
|
863
|
+
|
864
|
+
```js
|
865
|
+
findUser().then(function (user) {
|
866
|
+
throw new PedagogicalException('Upstream error');
|
867
|
+
}).then(function (value) {
|
868
|
+
// never reached
|
869
|
+
}).then(function (value) {
|
870
|
+
// never reached
|
871
|
+
}, function (reason) {
|
872
|
+
// The `PedgagocialException` is propagated all the way down to here
|
873
|
+
});
|
874
|
+
```
|
875
|
+
|
876
|
+
Assimilation
|
877
|
+
------------
|
878
|
+
|
879
|
+
Sometimes the value you want to propagate to a downstream promise can only be
|
880
|
+
retrieved asynchronously. This can be achieved by returning a promise in the
|
881
|
+
fulfillment or rejection handler. The downstream promise will then be pending
|
882
|
+
until the returned promise is settled. This is called *assimilation*.
|
883
|
+
|
884
|
+
```js
|
885
|
+
findUser().then(function (user) {
|
886
|
+
return findCommentsByAuthor(user);
|
887
|
+
}).then(function (comments) {
|
888
|
+
// The user's comments are now available
|
889
|
+
});
|
890
|
+
```
|
891
|
+
|
892
|
+
If the assimliated promise rejects, then the downstream promise will also reject.
|
893
|
+
|
894
|
+
```js
|
895
|
+
findUser().then(function (user) {
|
896
|
+
return findCommentsByAuthor(user);
|
897
|
+
}).then(function (comments) {
|
898
|
+
// If `findCommentsByAuthor` fulfills, we'll have the value here
|
899
|
+
}, function (reason) {
|
900
|
+
// If `findCommentsByAuthor` rejects, we'll have the reason here
|
901
|
+
});
|
902
|
+
```
|
903
|
+
|
904
|
+
Simple Example
|
905
|
+
--------------
|
906
|
+
|
907
|
+
Synchronous Example
|
908
|
+
|
909
|
+
```javascript
|
910
|
+
var result;
|
911
|
+
|
912
|
+
try {
|
913
|
+
result = findResult();
|
914
|
+
// success
|
915
|
+
} catch(reason) {
|
916
|
+
// failure
|
917
|
+
}
|
918
|
+
```
|
919
|
+
|
920
|
+
Errback Example
|
921
|
+
|
922
|
+
```js
|
923
|
+
findResult(function(result, err){
|
924
|
+
if (err) {
|
925
|
+
// failure
|
926
|
+
} else {
|
927
|
+
// success
|
928
|
+
}
|
929
|
+
});
|
930
|
+
```
|
931
|
+
|
932
|
+
Promise Example;
|
933
|
+
|
934
|
+
```javascript
|
935
|
+
findResult().then(function(result){
|
936
|
+
// success
|
937
|
+
}, function(reason){
|
938
|
+
// failure
|
939
|
+
});
|
940
|
+
```
|
941
|
+
|
942
|
+
Advanced Example
|
943
|
+
--------------
|
944
|
+
|
945
|
+
Synchronous Example
|
946
|
+
|
947
|
+
```javascript
|
948
|
+
var author, books;
|
949
|
+
|
950
|
+
try {
|
951
|
+
author = findAuthor();
|
952
|
+
books = findBooksByAuthor(author);
|
953
|
+
// success
|
954
|
+
} catch(reason) {
|
955
|
+
// failure
|
956
|
+
}
|
957
|
+
```
|
958
|
+
|
959
|
+
Errback Example
|
960
|
+
|
961
|
+
```js
|
962
|
+
|
963
|
+
function foundBooks(books) {
|
964
|
+
|
965
|
+
}
|
966
|
+
|
967
|
+
function failure(reason) {
|
968
|
+
|
969
|
+
}
|
970
|
+
|
971
|
+
findAuthor(function(author, err){
|
972
|
+
if (err) {
|
973
|
+
failure(err);
|
974
|
+
// failure
|
975
|
+
} else {
|
976
|
+
try {
|
977
|
+
findBoooksByAuthor(author, function(books, err) {
|
978
|
+
if (err) {
|
979
|
+
failure(err);
|
980
|
+
} else {
|
981
|
+
try {
|
982
|
+
foundBooks(books);
|
983
|
+
} catch(reason) {
|
984
|
+
failure(reason);
|
985
|
+
}
|
986
|
+
}
|
987
|
+
});
|
988
|
+
} catch(error) {
|
989
|
+
failure(err);
|
990
|
+
}
|
991
|
+
// success
|
992
|
+
}
|
993
|
+
});
|
994
|
+
```
|
995
|
+
|
996
|
+
Promise Example;
|
997
|
+
|
998
|
+
```javascript
|
999
|
+
findAuthor().
|
1000
|
+
then(findBooksByAuthor).
|
1001
|
+
then(function(books){
|
1002
|
+
// found books
|
1003
|
+
}).catch(function(reason){
|
1004
|
+
// something went wrong
|
1005
|
+
});
|
1006
|
+
```
|
1007
|
+
|
1008
|
+
@method then
|
1009
|
+
@param {Function} onFulfilled
|
1010
|
+
@param {Function} onRejected
|
1011
|
+
Useful for tooling.
|
1012
|
+
@return {Promise}
|
1013
|
+
*/
|
1014
|
+
then: function(onFulfillment, onRejection) {
|
1015
|
+
var parent = this;
|
1016
|
+
var state = parent._state;
|
1017
|
+
|
1018
|
+
if (state === lib$es6$promise$$internal$$FULFILLED && !onFulfillment || state === lib$es6$promise$$internal$$REJECTED && !onRejection) {
|
1019
|
+
return this;
|
1020
|
+
}
|
1021
|
+
|
1022
|
+
var child = new this.constructor(lib$es6$promise$$internal$$noop);
|
1023
|
+
var result = parent._result;
|
1024
|
+
|
1025
|
+
if (state) {
|
1026
|
+
var callback = arguments[state - 1];
|
1027
|
+
lib$es6$promise$asap$$asap(function(){
|
1028
|
+
lib$es6$promise$$internal$$invokeCallback(state, child, callback, result);
|
1029
|
+
});
|
1030
|
+
} else {
|
1031
|
+
lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection);
|
1032
|
+
}
|
1033
|
+
|
1034
|
+
return child;
|
1035
|
+
},
|
1036
|
+
|
1037
|
+
/**
|
1038
|
+
`catch` is simply sugar for `then(undefined, onRejection)` which makes it the same
|
1039
|
+
as the catch block of a try/catch statement.
|
1040
|
+
|
1041
|
+
```js
|
1042
|
+
function findAuthor(){
|
1043
|
+
throw new Error('couldn't find that author');
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
// synchronous
|
1047
|
+
try {
|
1048
|
+
findAuthor();
|
1049
|
+
} catch(reason) {
|
1050
|
+
// something went wrong
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
// async with promises
|
1054
|
+
findAuthor().catch(function(reason){
|
1055
|
+
// something went wrong
|
1056
|
+
});
|
1057
|
+
```
|
1058
|
+
|
1059
|
+
@method catch
|
1060
|
+
@param {Function} onRejection
|
1061
|
+
Useful for tooling.
|
1062
|
+
@return {Promise}
|
1063
|
+
*/
|
1064
|
+
'catch': function(onRejection) {
|
1065
|
+
return this.then(null, onRejection);
|
1066
|
+
}
|
1067
|
+
};
|
1068
|
+
function lib$es6$promise$polyfill$$polyfill() {
|
1069
|
+
var local;
|
1070
|
+
|
1071
|
+
if (typeof global !== 'undefined') {
|
1072
|
+
local = global;
|
1073
|
+
} else if (typeof self !== 'undefined') {
|
1074
|
+
local = self;
|
1075
|
+
} else {
|
1076
|
+
try {
|
1077
|
+
local = Function('return this')();
|
1078
|
+
} catch (e) {
|
1079
|
+
throw new Error('polyfill failed because global object is unavailable in this environment');
|
1080
|
+
}
|
1081
|
+
}
|
1082
|
+
|
1083
|
+
var P = local.Promise;
|
1084
|
+
|
1085
|
+
if (P && Object.prototype.toString.call(P.resolve()) === '[object Promise]' && !P.cast) {
|
1086
|
+
return;
|
1087
|
+
}
|
1088
|
+
|
1089
|
+
local.Promise = lib$es6$promise$promise$$default;
|
1090
|
+
}
|
1091
|
+
var lib$es6$promise$polyfill$$default = lib$es6$promise$polyfill$$polyfill;
|
1092
|
+
|
1093
|
+
var lib$es6$promise$umd$$ES6Promise = {
|
1094
|
+
'Promise': lib$es6$promise$promise$$default,
|
1095
|
+
'polyfill': lib$es6$promise$polyfill$$default
|
1096
|
+
};
|
1097
|
+
|
1098
|
+
/* global define:true module:true window: true */
|
1099
|
+
if ("function" === 'function' && __webpack_require__(5)['amd']) {
|
1100
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = function() { return lib$es6$promise$umd$$ES6Promise; }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
1101
|
+
} else if (typeof module !== 'undefined' && module['exports']) {
|
1102
|
+
module['exports'] = lib$es6$promise$umd$$ES6Promise;
|
1103
|
+
} else if (typeof this !== 'undefined') {
|
1104
|
+
this['ES6Promise'] = lib$es6$promise$umd$$ES6Promise;
|
1105
|
+
}
|
1106
|
+
|
1107
|
+
lib$es6$promise$polyfill$$default();
|
1108
|
+
}).call(this);
|
1109
|
+
|
1110
|
+
|
1111
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(3)(module)))
|
1112
|
+
|
1113
|
+
/***/ },
|
1114
|
+
/* 3 */
|
1115
|
+
/***/ function(module, exports) {
|
1116
|
+
|
1117
|
+
module.exports = function(module) {
|
1118
|
+
if(!module.webpackPolyfill) {
|
1119
|
+
module.deprecate = function() {};
|
1120
|
+
module.paths = [];
|
1121
|
+
// module.parent = undefined by default
|
1122
|
+
module.children = [];
|
1123
|
+
module.webpackPolyfill = 1;
|
1124
|
+
}
|
1125
|
+
return module;
|
1126
|
+
}
|
1127
|
+
|
1128
|
+
|
1129
|
+
/***/ },
|
1130
|
+
/* 4 */
|
1131
|
+
/***/ function(module, exports) {
|
1132
|
+
|
1133
|
+
/* (ignored) */
|
1134
|
+
|
1135
|
+
/***/ },
|
1136
|
+
/* 5 */
|
1137
|
+
/***/ function(module, exports) {
|
1138
|
+
|
1139
|
+
module.exports = function() { throw new Error("define cannot be used indirect"); };
|
1140
|
+
|
1141
|
+
|
1142
|
+
/***/ },
|
1143
|
+
/* 6 */
|
1144
|
+
/***/ function(module, exports, __webpack_require__) {
|
1145
|
+
|
1146
|
+
/* WEBPACK VAR INJECTION */(function(global) {var keys = __webpack_require__(7);
|
1147
|
+
var promise = __webpack_require__(8);
|
1148
|
+
var deprecated = {};
|
1149
|
+
function deprecatedWarning(key, text) {
|
1150
|
+
if (!deprecated.hasOwnProperty(key)) {
|
1151
|
+
deprecated[key] = true;
|
1152
|
+
console.warn("DEPRECATION WARNING: '" + key +
|
1153
|
+
"' is no longer supported and will be removed in next major release. " + text);
|
1154
|
+
}
|
1155
|
+
}
|
1156
|
+
var Zone = (function () {
|
1157
|
+
function Zone(parentZone, data) {
|
1158
|
+
this.parent = null;
|
1159
|
+
// onError is used to override error handling.
|
1160
|
+
// When a custom error handler is provided, it should most probably rethrow the exception
|
1161
|
+
// not to break the expected control flow:
|
1162
|
+
//
|
1163
|
+
// `promise.then(fnThatThrows).catch(fn);`
|
1164
|
+
//
|
1165
|
+
// When this code is executed in a zone with a custom onError handler that doesn't rethrow, the
|
1166
|
+
// `.catch()` branch will not be taken as the `fnThatThrows` exception will be swallowed by the
|
1167
|
+
// handler.
|
1168
|
+
this.onError = null;
|
1169
|
+
var zone = (arguments.length) ? Object.create(parentZone) : this;
|
1170
|
+
zone.parent = parentZone || null;
|
1171
|
+
Object.keys(data || {}).forEach(function (property) {
|
1172
|
+
var _property = property.substr(1);
|
1173
|
+
// augment the new zone with a hook decorates the parent's hook
|
1174
|
+
if (property[0] === '$') {
|
1175
|
+
zone[_property] = data[property](parentZone[_property] || function () { });
|
1176
|
+
}
|
1177
|
+
else if (property[0] === '+') {
|
1178
|
+
if (parentZone[_property]) {
|
1179
|
+
zone[_property] = function () {
|
1180
|
+
var result = parentZone[_property].apply(this, arguments);
|
1181
|
+
data[property].apply(this, arguments);
|
1182
|
+
return result;
|
1183
|
+
};
|
1184
|
+
}
|
1185
|
+
else {
|
1186
|
+
zone[_property] = data[property];
|
1187
|
+
}
|
1188
|
+
}
|
1189
|
+
else if (property[0] === '-') {
|
1190
|
+
if (parentZone[_property]) {
|
1191
|
+
zone[_property] = function () {
|
1192
|
+
data[property].apply(this, arguments);
|
1193
|
+
return parentZone[_property].apply(this, arguments);
|
1194
|
+
};
|
1195
|
+
}
|
1196
|
+
else {
|
1197
|
+
zone[_property] = data[property];
|
1198
|
+
}
|
1199
|
+
}
|
1200
|
+
else {
|
1201
|
+
zone[property] = (typeof data[property] === 'object') ?
|
1202
|
+
JSON.parse(JSON.stringify(data[property])) :
|
1203
|
+
data[property];
|
1204
|
+
}
|
1205
|
+
});
|
1206
|
+
zone.$id = Zone.nextId++;
|
1207
|
+
return zone;
|
1208
|
+
}
|
1209
|
+
Zone.prototype.fork = function (locals) {
|
1210
|
+
this.onZoneCreated();
|
1211
|
+
return new Zone(this, locals);
|
1212
|
+
};
|
1213
|
+
Zone.prototype.bind = function (fn, skipEnqueue) {
|
1214
|
+
if (typeof fn !== 'function') {
|
1215
|
+
throw new Error('Expecting function got: ' + fn);
|
1216
|
+
}
|
1217
|
+
skipEnqueue || this.enqueueTask(fn);
|
1218
|
+
var zone = this.isRootZone() ? this : this.fork();
|
1219
|
+
return function zoneBoundFn() {
|
1220
|
+
return zone.run(fn, this, arguments);
|
1221
|
+
};
|
1222
|
+
};
|
1223
|
+
/// @deprecated
|
1224
|
+
Zone.prototype.bindOnce = function (fn) {
|
1225
|
+
deprecatedWarning('bindOnce', 'There is no replacement.');
|
1226
|
+
var boundZone = this;
|
1227
|
+
return this.bind(function () {
|
1228
|
+
var result = fn.apply(this, arguments);
|
1229
|
+
boundZone.dequeueTask(fn);
|
1230
|
+
return result;
|
1231
|
+
});
|
1232
|
+
};
|
1233
|
+
Zone.prototype.isRootZone = function () {
|
1234
|
+
return this.parent === null;
|
1235
|
+
};
|
1236
|
+
Zone.prototype.run = function (fn, applyTo, applyWith) {
|
1237
|
+
applyWith = applyWith || [];
|
1238
|
+
var oldZone = global.zone;
|
1239
|
+
// MAKE THIS ZONE THE CURRENT ZONE
|
1240
|
+
global.zone = this;
|
1241
|
+
try {
|
1242
|
+
this.beforeTask();
|
1243
|
+
return fn.apply(applyTo, applyWith);
|
1244
|
+
}
|
1245
|
+
catch (e) {
|
1246
|
+
if (this.onError) {
|
1247
|
+
this.onError(e);
|
1248
|
+
}
|
1249
|
+
else {
|
1250
|
+
throw e;
|
1251
|
+
}
|
1252
|
+
}
|
1253
|
+
finally {
|
1254
|
+
this.afterTask();
|
1255
|
+
// REVERT THE CURRENT ZONE BACK TO THE ORIGINAL ZONE
|
1256
|
+
global.zone = oldZone;
|
1257
|
+
}
|
1258
|
+
};
|
1259
|
+
Zone.prototype.beforeTask = function () { };
|
1260
|
+
Zone.prototype.onZoneCreated = function () { };
|
1261
|
+
Zone.prototype.afterTask = function () { };
|
1262
|
+
Zone.prototype.enqueueTask = function (fn) {
|
1263
|
+
deprecatedWarning('enqueueTask', 'Use addTask/addRepeatingTask/addMicroTask');
|
1264
|
+
};
|
1265
|
+
Zone.prototype.dequeueTask = function (fn) {
|
1266
|
+
deprecatedWarning('dequeueTask', 'Use removeTask/removeRepeatingTask/removeMicroTask');
|
1267
|
+
};
|
1268
|
+
Zone.prototype.addTask = function (taskFn) { this.enqueueTask(taskFn); };
|
1269
|
+
Zone.prototype.removeTask = function (taskFn) { this.dequeueTask(taskFn); };
|
1270
|
+
Zone.prototype.addRepeatingTask = function (taskFn) { this.enqueueTask(taskFn); };
|
1271
|
+
Zone.prototype.removeRepeatingTask = function (taskFn) { this.dequeueTask(taskFn); };
|
1272
|
+
Zone.prototype.addMicrotask = function (taskFn) { this.enqueueTask(taskFn); };
|
1273
|
+
Zone.prototype.removeMicrotask = function (taskFn) { this.dequeueTask(taskFn); };
|
1274
|
+
Zone.prototype.addEventListener = function () {
|
1275
|
+
return this[keys.common.addEventListener].apply(this, arguments);
|
1276
|
+
};
|
1277
|
+
Zone.prototype.removeEventListener = function () {
|
1278
|
+
return this[keys.common.removeEventListener].apply(this, arguments);
|
1279
|
+
};
|
1280
|
+
// Root zone ID === 1
|
1281
|
+
Zone.nextId = 1;
|
1282
|
+
Zone.bindPromiseFn = promise.bindPromiseFn;
|
1283
|
+
return Zone;
|
1284
|
+
})();
|
1285
|
+
exports.Zone = Zone;
|
1286
|
+
;
|
1287
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9jb3JlLnRzIl0sIm5hbWVzIjpbImRlcHJlY2F0ZWRXYXJuaW5nIiwiWm9uZSIsIlpvbmUuY29uc3RydWN0b3IiLCJab25lLmZvcmsiLCJab25lLmJpbmQiLCJab25lLmJpbmQuem9uZUJvdW5kRm4iLCJab25lLmJpbmRPbmNlIiwiWm9uZS5pc1Jvb3Rab25lIiwiWm9uZS5ydW4iLCJab25lLmJlZm9yZVRhc2siLCJab25lLm9uWm9uZUNyZWF0ZWQiLCJab25lLmFmdGVyVGFzayIsIlpvbmUuZW5xdWV1ZVRhc2siLCJab25lLmRlcXVldWVUYXNrIiwiWm9uZS5hZGRUYXNrIiwiWm9uZS5yZW1vdmVUYXNrIiwiWm9uZS5hZGRSZXBlYXRpbmdUYXNrIiwiWm9uZS5yZW1vdmVSZXBlYXRpbmdUYXNrIiwiWm9uZS5hZGRNaWNyb3Rhc2siLCJab25lLnJlbW92ZU1pY3JvdGFzayIsIlpvbmUuYWRkRXZlbnRMaXN0ZW5lciIsIlpvbmUucmVtb3ZlRXZlbnRMaXN0ZW5lciJdLCJtYXBwaW5ncyI6IkFBQUEsSUFBWSxJQUFJLFdBQU0sUUFBUSxDQUFDLENBQUE7QUFDL0IsSUFBWSxPQUFPLFdBQU0saUJBQWlCLENBQUMsQ0FBQTtBQUUzQyxJQUFJLFVBQVUsR0FBRyxFQUFFL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1ZXVlVGFzaycsICdVc2UgcmVtb3ZlVGFzay9yZW1vdmVSZXBlYXRpbmdUYXNrL3JlbW92ZU1pY3JvVGFzaycpO1xuICB9XG5cbiAgYWRkVGFzayh0YXNrRm4pIHsgdGhpcy5lbnF1ZXVlVGFzayh0YXNrRm4pOyB9XG4gIHJlbW92ZVRhc2sodGFza0ZuKSB7IHRoaXMuZGVxdWV1ZVRhc2sodGFza0ZuKTsgfVxuXG4gIGFkZFJlcGVhdGluZ1Rhc2sodGFza0ZuKSB7IHRoaXMuZW5xdWV1ZVRhc2sodGFza0ZuKTsgfVxuICByZW1vdmVSZXBlYXRpbmdUYXNrKHRhc2tGbikgeyB0aGlzLmRlcXVldWVUYXNrKHRhc2tGbik7IH1cblxuICBhZGRNaWNyb3Rhc2sodGFza0ZuKSB7IHRoaXMuZW5xdWV1ZVRhc2sodGFza0ZuKTsgfVxuICByZW1vdmVNaWNyb3Rhc2sodGFza0ZuKSB7IHRoaXMuZGVxdWV1ZVRhc2sodGFza0ZuKTsgfVxuXG4gIGFkZEV2ZW50TGlzdGVuZXIoKSB7XG4gICAgcmV0dXJuIHRoaXNba2V5cy5jb21tb24uYWRkRXZlbnRMaXN0ZW5lcl0uYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgfVxuXG4gIHJlbW92ZUV2ZW50TGlzdGVuZXIoKSB7XG4gICAgcmV0dXJuIHRoaXNba2V5cy5jb21tb24ucmVtb3ZlRXZlbnRMaXN0ZW5lcl0uYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgfVxufTtcblxuIl19
|
1288
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
1289
|
+
|
1290
|
+
/***/ },
|
1291
|
+
/* 7 */
|
1292
|
+
/***/ function(module, exports) {
|
1293
|
+
|
1294
|
+
/**
|
1295
|
+
* Creates keys for `private` properties on exposed objects to minimize interactions with other codebases.
|
1296
|
+
*/
|
1297
|
+
function create(name) {
|
1298
|
+
// `Symbol` implementation is broken in Chrome 39.0.2171, do not use them even if they are available
|
1299
|
+
return '_zone$' + name;
|
1300
|
+
}
|
1301
|
+
exports.create = create;
|
1302
|
+
exports.common = {
|
1303
|
+
addEventListener: create('addEventListener'),
|
1304
|
+
removeEventListener: create('removeEventListener')
|
1305
|
+
};
|
1306
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9rZXlzLnRzIl0sIm5hbWVzIjpbImNyZWF0ZSJdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxnQkFBdUIsSUFBSTtJQUN6QkEsb0dBQW9HQTtJQUNwR0EsTUFBTUEsQ0FBQ0EsUUFBUUEsR0FBR0EsSUFBSUEsQ0FBQ0E7QUFDekJBLENBQUNBO0FBSGUsY0FBTSxTQUdyQixDQUFBO0FBRVUsY0FBTSxHQUFHO0lBQ2xCLGdCQUFnQixFQUFFLE1BQU0sQ0FBQyxrQkFBa0IsQ0FBQztJQUM1QyxtQkFBbUIsRUFBRSxNQUFNLENBQUMscUJBQXFCLENBQUM7Q0FDbkQsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ3JlYXRlcyBrZXlzIGZvciBgcHJpdmF0ZWAgcHJvcGVydGllcyBvbiBleHBvc2VkIG9iamVjdHMgdG8gbWluaW1pemUgaW50ZXJhY3Rpb25zIHdpdGggb3RoZXIgY29kZWJhc2VzLlxuICovXG5cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGUobmFtZSkge1xuICAvLyBgU3ltYm9sYCBpbXBsZW1lbnRhdGlvbiBpcyBicm9rZW4gaW4gQ2hyb21lIDM5LjAuMjE3MSwgZG8gbm90IHVzZSB0aGVtIGV2ZW4gaWYgdGhleSBhcmUgYXZhaWxhYmxlXG4gIHJldHVybiAnX3pvbmUkJyArIG5hbWU7XG59XG5cbmV4cG9ydCB2YXIgY29tbW9uID0ge1xuICBhZGRFdmVudExpc3RlbmVyOiBjcmVhdGUoJ2FkZEV2ZW50TGlzdGVuZXInKSxcbiAgcmVtb3ZlRXZlbnRMaXN0ZW5lcjogY3JlYXRlKCdyZW1vdmVFdmVudExpc3RlbmVyJylcbn07XG4iXX0=
|
1307
|
+
|
1308
|
+
/***/ },
|
1309
|
+
/* 8 */
|
1310
|
+
/***/ function(module, exports, __webpack_require__) {
|
1311
|
+
|
1312
|
+
/* WEBPACK VAR INJECTION */(function(global) {var utils = __webpack_require__(9);
|
1313
|
+
if (global.Promise) {
|
1314
|
+
exports.bindPromiseFn = function (delegate) {
|
1315
|
+
return function () {
|
1316
|
+
var delegatePromise = delegate.apply(this, arguments);
|
1317
|
+
// if the delegate returned an instance of Promise, forward it.
|
1318
|
+
if (delegatePromise instanceof Promise) {
|
1319
|
+
return delegatePromise;
|
1320
|
+
}
|
1321
|
+
// Otherwise wrap the Promise-like in a global Promise
|
1322
|
+
return new Promise(function (resolve, reject) {
|
1323
|
+
delegatePromise.then(resolve, reject);
|
1324
|
+
});
|
1325
|
+
};
|
1326
|
+
};
|
1327
|
+
}
|
1328
|
+
else {
|
1329
|
+
exports.bindPromiseFn = function (delegate) {
|
1330
|
+
return function () {
|
1331
|
+
return _patchThenable(delegate.apply(this, arguments));
|
1332
|
+
};
|
1333
|
+
};
|
1334
|
+
}
|
1335
|
+
function _patchPromiseFnsOnObject(objectPath, fnNames) {
|
1336
|
+
var obj = global;
|
1337
|
+
var exists = objectPath.every(function (segment) {
|
1338
|
+
obj = obj[segment];
|
1339
|
+
return obj;
|
1340
|
+
});
|
1341
|
+
if (!exists) {
|
1342
|
+
return;
|
1343
|
+
}
|
1344
|
+
fnNames.forEach(function (name) {
|
1345
|
+
var fn = obj[name];
|
1346
|
+
if (fn) {
|
1347
|
+
obj[name] = exports.bindPromiseFn(fn);
|
1348
|
+
}
|
1349
|
+
});
|
1350
|
+
}
|
1351
|
+
function _patchThenable(thenable) {
|
1352
|
+
var then = thenable.then;
|
1353
|
+
thenable.then = function () {
|
1354
|
+
var args = utils.bindArguments(arguments);
|
1355
|
+
var nextThenable = then.apply(thenable, args);
|
1356
|
+
return _patchThenable(nextThenable);
|
1357
|
+
};
|
1358
|
+
var ocatch = thenable.catch;
|
1359
|
+
thenable.catch = function () {
|
1360
|
+
var args = utils.bindArguments(arguments);
|
1361
|
+
var nextThenable = ocatch.apply(thenable, args);
|
1362
|
+
return _patchThenable(nextThenable);
|
1363
|
+
};
|
1364
|
+
return thenable;
|
1365
|
+
}
|
1366
|
+
function apply() {
|
1367
|
+
// Patch .then() and .catch() on native Promises to execute callbacks in the zone where
|
1368
|
+
// those functions are called.
|
1369
|
+
if (global.Promise) {
|
1370
|
+
utils.patchPrototype(Promise.prototype, [
|
1371
|
+
'then',
|
1372
|
+
'catch'
|
1373
|
+
]);
|
1374
|
+
// Patch browser APIs that return a Promise
|
1375
|
+
var patchFns = [
|
1376
|
+
// fetch
|
1377
|
+
[[], ['fetch']],
|
1378
|
+
[['Response', 'prototype'], ['arrayBuffer', 'blob', 'json', 'text']]
|
1379
|
+
];
|
1380
|
+
patchFns.forEach(function (objPathAndFns) {
|
1381
|
+
_patchPromiseFnsOnObject(objPathAndFns[0], objPathAndFns[1]);
|
1382
|
+
});
|
1383
|
+
}
|
1384
|
+
}
|
1385
|
+
exports.apply = apply;
|
1386
|
+
module.exports = {
|
1387
|
+
apply: apply,
|
1388
|
+
bindPromiseFn: exports.bindPromiseFn
|
1389
|
+
};
|
1390
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvbWlzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9wYXRjaC9wcm9taXNlLnRzIl0sIm5hbWVzIjpbIl9wYXRjaFByb21pc2VGbnNPbk9iamVjdCIsIl9wYXRjaFRoZW5hYmxlIiwiYXBwbHkiXSwibWFw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IFBhdGNoIC50aGVuKCkgYW5kIC5jYXRjaCgpIG9uIG5hdGl2ZSBQcm9taXNlcyB0byBleGVjdXRlIGNhbGxiYWNrcyBpbiB0aGUgem9uZSB3aGVyZVxuICAvLyB0aG9zZSBmdW5jdGlvbnMgYXJlIGNhbGxlZC5cbiAgaWYgKGdsb2JhbC5Qcm9taXNlKSB7XG4gICAgdXRpbHMucGF0Y2hQcm90b3R5cGUoUHJvbWlzZS5wcm90b3R5cGUsIFtcbiAgICAgICd0aGVuJyxcbiAgICAgICdjYXRjaCdcbiAgICBdKTtcblxuICAgIC8vIFBhdGNoIGJyb3dzZXIgQVBJcyB0aGF0IHJldHVybiBhIFByb21pc2VcbiAgICB2YXIgcGF0Y2hGbnMgPSBbXG4gICAgICAvLyBmZXRjaFxuICAgICAgW1tdLCBbJ2ZldGNoJ11dLFxuICAgICAgW1snUmVzcG9uc2UnLCAncHJvdG90eXBlJ10sIFsnYXJyYXlCdWZmZXInLCAnYmxvYicsICdqc29uJywgJ3RleHQnXV1cbiAgICBdO1xuXG4gICAgcGF0Y2hGbnMuZm9yRWFjaChmdW5jdGlvbihvYmpQYXRoQW5kRm5zKSB7XG4gICAgICBfcGF0Y2hQcm9taXNlRm5zT25PYmplY3Qob2JqUGF0aEFuZEZuc1swXSwgb2JqUGF0aEFuZEZuc1sxXSk7XG4gICAgfSk7XG4gIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSB7XG4gIGFwcGx5OiBhcHBseSxcbiAgYmluZFByb21pc2VGbjogYmluZFByb21pc2VGblxufTtcbiJdfQ==
|
1391
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
1392
|
+
|
1393
|
+
/***/ },
|
1394
|
+
/* 9 */
|
1395
|
+
/***/ function(module, exports, __webpack_require__) {
|
1396
|
+
|
1397
|
+
/* WEBPACK VAR INJECTION */(function(global) {var keys = __webpack_require__(7);
|
1398
|
+
function bindArguments(args) {
|
1399
|
+
for (var i = args.length - 1; i >= 0; i--) {
|
1400
|
+
if (typeof args[i] === 'function') {
|
1401
|
+
args[i] = global.zone.bind(args[i]);
|
1402
|
+
}
|
1403
|
+
}
|
1404
|
+
return args;
|
1405
|
+
}
|
1406
|
+
exports.bindArguments = bindArguments;
|
1407
|
+
;
|
1408
|
+
function patchPrototype(obj, fnNames) {
|
1409
|
+
fnNames.forEach(function (name) {
|
1410
|
+
var delegate = obj[name];
|
1411
|
+
if (delegate) {
|
1412
|
+
obj[name] = function () {
|
1413
|
+
return delegate.apply(this, bindArguments(arguments));
|
1414
|
+
};
|
1415
|
+
}
|
1416
|
+
});
|
1417
|
+
}
|
1418
|
+
exports.patchPrototype = patchPrototype;
|
1419
|
+
;
|
1420
|
+
function isWebWorker() {
|
1421
|
+
return (typeof document === "undefined");
|
1422
|
+
}
|
1423
|
+
exports.isWebWorker = isWebWorker;
|
1424
|
+
function patchProperty(obj, prop) {
|
1425
|
+
var desc = Object.getOwnPropertyDescriptor(obj, prop) || {
|
1426
|
+
enumerable: true,
|
1427
|
+
configurable: true
|
1428
|
+
};
|
1429
|
+
// A property descriptor cannot have getter/setter and be writable
|
1430
|
+
// deleting the writable and value properties avoids this error:
|
1431
|
+
//
|
1432
|
+
// TypeError: property descriptors must not specify a value or be writable when a
|
1433
|
+
// getter or setter has been specified
|
1434
|
+
delete desc.writable;
|
1435
|
+
delete desc.value;
|
1436
|
+
// substr(2) cuz 'onclick' -> 'click', etc
|
1437
|
+
var eventName = prop.substr(2);
|
1438
|
+
var _prop = '_' + prop;
|
1439
|
+
desc.set = function (fn) {
|
1440
|
+
if (this[_prop]) {
|
1441
|
+
this.removeEventListener(eventName, this[_prop]);
|
1442
|
+
}
|
1443
|
+
if (typeof fn === 'function') {
|
1444
|
+
this[_prop] = fn;
|
1445
|
+
this.addEventListener(eventName, fn, false);
|
1446
|
+
}
|
1447
|
+
else {
|
1448
|
+
this[_prop] = null;
|
1449
|
+
}
|
1450
|
+
};
|
1451
|
+
desc.get = function () {
|
1452
|
+
return this[_prop];
|
1453
|
+
};
|
1454
|
+
Object.defineProperty(obj, prop, desc);
|
1455
|
+
}
|
1456
|
+
exports.patchProperty = patchProperty;
|
1457
|
+
;
|
1458
|
+
function patchProperties(obj, properties) {
|
1459
|
+
(properties || (function () {
|
1460
|
+
var props = [];
|
1461
|
+
for (var prop in obj) {
|
1462
|
+
props.push(prop);
|
1463
|
+
}
|
1464
|
+
return props;
|
1465
|
+
}()).
|
1466
|
+
filter(function (propertyName) {
|
1467
|
+
return propertyName.substr(0, 2) === 'on';
|
1468
|
+
})).
|
1469
|
+
forEach(function (eventName) {
|
1470
|
+
patchProperty(obj, eventName);
|
1471
|
+
});
|
1472
|
+
}
|
1473
|
+
exports.patchProperties = patchProperties;
|
1474
|
+
;
|
1475
|
+
var originalFnKey = keys.create('originalFn');
|
1476
|
+
var boundFnsKey = keys.create('boundFns');
|
1477
|
+
function patchEventTargetMethods(obj) {
|
1478
|
+
// This is required for the addEventListener hook on the root zone.
|
1479
|
+
obj[keys.common.addEventListener] = obj.addEventListener;
|
1480
|
+
obj.addEventListener = function (eventName, handler, useCapturing) {
|
1481
|
+
//Ignore special listeners of IE11 & Edge dev tools, see https://github.com/angular/zone.js/issues/150
|
1482
|
+
if (handler && handler.toString() !== "[object FunctionWrapper]") {
|
1483
|
+
var eventType = eventName + (useCapturing ? '$capturing' : '$bubbling');
|
1484
|
+
var fn;
|
1485
|
+
if (handler.handleEvent) {
|
1486
|
+
// Have to pass in 'handler' reference as an argument here, otherwise it gets clobbered in
|
1487
|
+
// IE9 by the arguments[1] assignment at end of this function.
|
1488
|
+
fn = (function (handler) {
|
1489
|
+
return function () {
|
1490
|
+
handler.handleEvent.apply(handler, arguments);
|
1491
|
+
};
|
1492
|
+
})(handler);
|
1493
|
+
}
|
1494
|
+
else {
|
1495
|
+
fn = handler;
|
1496
|
+
}
|
1497
|
+
handler[originalFnKey] = fn;
|
1498
|
+
handler[boundFnsKey] = handler[boundFnsKey] || {};
|
1499
|
+
handler[boundFnsKey][eventType] = handler[boundFnsKey][eventType] || global.zone.bind(fn);
|
1500
|
+
arguments[1] = handler[boundFnsKey][eventType];
|
1501
|
+
}
|
1502
|
+
// - Inside a Web Worker, `this` is undefined, the context is `global` (= `self`)
|
1503
|
+
// - When `addEventListener` is called on the global context in strict mode, `this` is undefined
|
1504
|
+
// see https://github.com/angular/zone.js/issues/190
|
1505
|
+
var target = this || global;
|
1506
|
+
return global.zone.addEventListener.apply(target, arguments);
|
1507
|
+
};
|
1508
|
+
// This is required for the removeEventListener hook on the root zone.
|
1509
|
+
obj[keys.common.removeEventListener] = obj.removeEventListener;
|
1510
|
+
obj.removeEventListener = function (eventName, handler, useCapturing) {
|
1511
|
+
var eventType = eventName + (useCapturing ? '$capturing' : '$bubbling');
|
1512
|
+
if (handler && handler[boundFnsKey] && handler[boundFnsKey][eventType]) {
|
1513
|
+
var _bound = handler[boundFnsKey];
|
1514
|
+
arguments[1] = _bound[eventType];
|
1515
|
+
delete _bound[eventType];
|
1516
|
+
global.zone.dequeueTask(handler[originalFnKey]);
|
1517
|
+
}
|
1518
|
+
// - Inside a Web Worker, `this` is undefined, the context is `global`
|
1519
|
+
// - When `addEventListener` is called on the global context in strict mode, `this` is undefined
|
1520
|
+
// see https://github.com/angular/zone.js/issues/190
|
1521
|
+
var target = this || global;
|
1522
|
+
var result = global.zone.removeEventListener.apply(target, arguments);
|
1523
|
+
return result;
|
1524
|
+
};
|
1525
|
+
}
|
1526
|
+
exports.patchEventTargetMethods = patchEventTargetMethods;
|
1527
|
+
;
|
1528
|
+
var originalInstanceKey = keys.create('originalInstance');
|
1529
|
+
// wrap some native API on `window`
|
1530
|
+
function patchClass(className) {
|
1531
|
+
var OriginalClass = global[className];
|
1532
|
+
if (!OriginalClass)
|
1533
|
+
return;
|
1534
|
+
global[className] = function () {
|
1535
|
+
var a = bindArguments(arguments);
|
1536
|
+
switch (a.length) {
|
1537
|
+
case 0:
|
1538
|
+
this[originalInstanceKey] = new OriginalClass();
|
1539
|
+
break;
|
1540
|
+
case 1:
|
1541
|
+
this[originalInstanceKey] = new OriginalClass(a[0]);
|
1542
|
+
break;
|
1543
|
+
case 2:
|
1544
|
+
this[originalInstanceKey] = new OriginalClass(a[0], a[1]);
|
1545
|
+
break;
|
1546
|
+
case 3:
|
1547
|
+
this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);
|
1548
|
+
break;
|
1549
|
+
case 4:
|
1550
|
+
this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);
|
1551
|
+
break;
|
1552
|
+
default: throw new Error('what are you even doing?');
|
1553
|
+
}
|
1554
|
+
};
|
1555
|
+
var instance = new OriginalClass();
|
1556
|
+
var prop;
|
1557
|
+
for (prop in instance) {
|
1558
|
+
(function (prop) {
|
1559
|
+
if (typeof instance[prop] === 'function') {
|
1560
|
+
global[className].prototype[prop] = function () {
|
1561
|
+
return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);
|
1562
|
+
};
|
1563
|
+
}
|
1564
|
+
else {
|
1565
|
+
Object.defineProperty(global[className].prototype, prop, {
|
1566
|
+
set: function (fn) {
|
1567
|
+
if (typeof fn === 'function') {
|
1568
|
+
this[originalInstanceKey][prop] = global.zone.bind(fn);
|
1569
|
+
}
|
1570
|
+
else {
|
1571
|
+
this[originalInstanceKey][prop] = fn;
|
1572
|
+
}
|
1573
|
+
},
|
1574
|
+
get: function () {
|
1575
|
+
return this[originalInstanceKey][prop];
|
1576
|
+
}
|
1577
|
+
});
|
1578
|
+
}
|
1579
|
+
}(prop));
|
1580
|
+
}
|
1581
|
+
for (prop in OriginalClass) {
|
1582
|
+
if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {
|
1583
|
+
global[className][prop] = OriginalClass[prop];
|
1584
|
+
}
|
1585
|
+
}
|
1586
|
+
}
|
1587
|
+
exports.patchClass = patchClass;
|
1588
|
+
;
|
1589
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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2xhc3MuaGFzT3duUHJvcGVydHkocHJvcCkpIHtcbiAgICAgIGdsb2JhbFtjbGFzc05hbWVdW3Byb3BdID0gT3JpZ2luYWxDbGFzc1twcm9wXTtcbiAgICB9XG4gIH1cbn07XG4iXX0=
|
1590
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
1591
|
+
|
1592
|
+
/***/ },
|
1593
|
+
/* 10 */
|
1594
|
+
/***/ function(module, exports, __webpack_require__) {
|
1595
|
+
|
1596
|
+
/* WEBPACK VAR INJECTION */(function(global) {var fnPatch = __webpack_require__(11);
|
1597
|
+
var promisePatch = __webpack_require__(8);
|
1598
|
+
var mutationObserverPatch = __webpack_require__(13);
|
1599
|
+
var definePropertyPatch = __webpack_require__(14);
|
1600
|
+
var registerElementPatch = __webpack_require__(15);
|
1601
|
+
var eventTargetPatch = __webpack_require__(16);
|
1602
|
+
var propertyDescriptorPatch = __webpack_require__(17);
|
1603
|
+
var geolocationPatch = __webpack_require__(19);
|
1604
|
+
var fileReaderPatch = __webpack_require__(20);
|
1605
|
+
function apply() {
|
1606
|
+
fnPatch.patchSetClearFunction(global, global.Zone, [
|
1607
|
+
['setTimeout', 'clearTimeout', false, false],
|
1608
|
+
['setInterval', 'clearInterval', true, false],
|
1609
|
+
['setImmediate', 'clearImmediate', false, false],
|
1610
|
+
['requestAnimationFrame', 'cancelAnimationFrame', false, true],
|
1611
|
+
['mozRequestAnimationFrame', 'mozCancelAnimationFrame', false, true],
|
1612
|
+
['webkitRequestAnimationFrame', 'webkitCancelAnimationFrame', false, true]
|
1613
|
+
]);
|
1614
|
+
fnPatch.patchFunction(global, [
|
1615
|
+
'alert',
|
1616
|
+
'prompt'
|
1617
|
+
]);
|
1618
|
+
eventTargetPatch.apply();
|
1619
|
+
propertyDescriptorPatch.apply();
|
1620
|
+
promisePatch.apply();
|
1621
|
+
mutationObserverPatch.patchClass('MutationObserver');
|
1622
|
+
mutationObserverPatch.patchClass('WebKitMutationObserver');
|
1623
|
+
definePropertyPatch.apply();
|
1624
|
+
registerElementPatch.apply();
|
1625
|
+
geolocationPatch.apply();
|
1626
|
+
fileReaderPatch.apply();
|
1627
|
+
}
|
1628
|
+
exports.apply = apply;
|
1629
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9wYXRjaC9icm93c2VyLnRzIl0sIm5hbWVzIjpbImFwcGx5Il0sIm1hcHBpbmdzIjoiQUFBQSxJQUFZLE9BQU8sV0FBTSxhQUFhLENBQUMsQ0FBQTtBQUN2QyxJQUFZLFlBQVksV0FBTSxXQUFXLENBQUMsQ0FBQTtBQUMxQyxJQUFZLHFCQUFxQixXQUFNLHFCQUFxQixDQUFDLENBQUE7QUFDN0QsSUFBWSxtQkFBbUIsV0FBTSxtQkFBbUIsQ0FBQyxDQUFBO0FBQ3pELElBQVksb0JBQW9CLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUUzRCxJQUFZLGdCQUFnQixXQUFNLGdCQUFnQixDQUFDLENBQUE7QUFDbkQsSUFBWSx1QkFBdUIsV0FBTSx1QkFBdUIsQ0FBQyxDQUFBO0FBQ2pFLElBQVksZ0JBQWdCLFdBQU0sZUFBZSxDQUFDLENBQUE7QUFDbEQsSUFBWSxlQUFlLFdBQU0sZUFBZSxDQUFDLENBQUE7QUFFakQ7SUFDRUEsT0FBT0EsQ0FBQ0EscUJBQXFCQSxDQUFDQSxNQUFNQSxFQUFFQSxNQUFNQSxDQUFDQSxJQUFJQSxFQUFFQTtRQUNqREEsQ0FBQ0EsWUFBWUEsRUFBRUEsY0FBY0EsRUFBRUEsS0FBS0EsRUFBRUEsS0FBS0EsQ0FBQ0E7UUFDNUNBLENBQUNBLGFBQWFBLEVBQUVBLGVBQWVBLEVBQUVBLElBQUlBLEVBQUVBLEtBQUtBLENBQUNBO1FBQz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SwgZmFsc2VdLFxuICAgIFsncmVxdWVzdEFuaW1hdGlvbkZyYW1lJywgJ2NhbmNlbEFuaW1hdGlvbkZyYW1lJywgZmFsc2UsIHRydWVdLFxuICAgIFsnbW96UmVxdWVzdEFuaW1hdGlvbkZyYW1lJywgJ21vekNhbmNlbEFuaW1hdGlvbkZyYW1lJywgZmFsc2UsIHRydWVdLFxuICAgIFsnd2Via2l0UmVxdWVzdEFuaW1hdGlvbkZyYW1lJywgJ3dlYmtpdENhbmNlbEFuaW1hdGlvbkZyYW1lJywgZmFsc2UsIHRydWVdXG4gIF0pO1xuXG4gIGZuUGF0Y2gucGF0Y2hGdW5jdGlvbihnbG9iYWwsIFtcbiAgICAnYWxlcnQnLFxuICAgICdwcm9tcHQnXG4gIF0pO1xuXG4gIGV2ZW50VGFyZ2V0UGF0Y2guYXBwbHkoKTtcblxuICBwcm9wZXJ0eURlc2NyaXB0b3JQYXRjaC5hcHBseSgpO1xuXG4gIHByb21pc2VQYXRjaC5hcHBseSgpO1xuXG4gIG11dGF0aW9uT2JzZXJ2ZXJQYXRjaC5wYXRjaENsYXNzKCdNdXRhdGlvbk9ic2VydmVyJyk7XG4gIG11dGF0aW9uT2JzZXJ2ZXJQYXRjaC5wYXRjaENsYXNzKCdXZWJLaXRNdXRhdGlvbk9ic2VydmVyJyk7XG5cbiAgZGVmaW5lUHJvcGVydHlQYXRjaC5hcHBseSgpO1xuXG4gIHJlZ2lzdGVyRWxlbWVudFBhdGNoLmFwcGx5KCk7XG5cbiAgZ2VvbG9jYXRpb25QYXRjaC5hcHBseSgpO1xuXG4gIGZpbGVSZWFkZXJQYXRjaC5hcHBseSgpO1xufVxuXG4iXX0=
|
1630
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
1631
|
+
|
1632
|
+
/***/ },
|
1633
|
+
/* 11 */
|
1634
|
+
/***/ function(module, exports, __webpack_require__) {
|
1635
|
+
|
1636
|
+
/* WEBPACK VAR INJECTION */(function(global) {var wtf = __webpack_require__(12);
|
1637
|
+
function patchSetClearFunction(window, Zone, fnNames) {
|
1638
|
+
function patchMacroTaskMethod(setName, clearName, repeating, isRaf) {
|
1639
|
+
var setNative = window[setName];
|
1640
|
+
var clearNative = window[clearName];
|
1641
|
+
var ids = {};
|
1642
|
+
if (setNative) {
|
1643
|
+
var wtfSetEventFn = wtf.createEvent('Zone#' + setName + '(uint32 zone, uint32 id, uint32 delay)');
|
1644
|
+
var wtfClearEventFn = wtf.createEvent('Zone#' + clearName + '(uint32 zone, uint32 id)');
|
1645
|
+
var wtfCallbackFn = wtf.createScope('Zone#cb:' + setName + '(uint32 zone, uint32 id, uint32 delay)');
|
1646
|
+
// Forward all calls from the window through the zone.
|
1647
|
+
window[setName] = function () {
|
1648
|
+
return global.zone[setName].apply(global.zone, arguments);
|
1649
|
+
};
|
1650
|
+
window[clearName] = function () {
|
1651
|
+
return global.zone[clearName].apply(global.zone, arguments);
|
1652
|
+
};
|
1653
|
+
// Set up zone processing for the set function.
|
1654
|
+
Zone.prototype[setName] = function (fn, delay) {
|
1655
|
+
// We need to save `fn` in var different then argument. This is because
|
1656
|
+
// in IE9 `argument[0]` and `fn` have same identity, and assigning to
|
1657
|
+
// `argument[0]` changes `fn`.
|
1658
|
+
var callbackFn = fn;
|
1659
|
+
if (typeof callbackFn !== 'function') {
|
1660
|
+
// force the error by calling the method with wrong args
|
1661
|
+
setNative.apply(window, arguments);
|
1662
|
+
}
|
1663
|
+
var zone = this;
|
1664
|
+
var setId = null;
|
1665
|
+
// wrap the callback function into the zone.
|
1666
|
+
arguments[0] = function () {
|
1667
|
+
var callbackZone = zone.isRootZone() || isRaf ? zone : zone.fork();
|
1668
|
+
var callbackThis = this;
|
1669
|
+
var callbackArgs = arguments;
|
1670
|
+
return wtf.leaveScope(wtfCallbackFn(callbackZone.$id, setId, delay), callbackZone.run(function () {
|
1671
|
+
if (!repeating) {
|
1672
|
+
delete ids[setId];
|
1673
|
+
callbackZone.removeTask(callbackFn);
|
1674
|
+
}
|
1675
|
+
return callbackFn.apply(callbackThis, callbackArgs);
|
1676
|
+
}));
|
1677
|
+
};
|
1678
|
+
if (repeating) {
|
1679
|
+
zone.addRepeatingTask(callbackFn);
|
1680
|
+
}
|
1681
|
+
else {
|
1682
|
+
zone.addTask(callbackFn);
|
1683
|
+
}
|
1684
|
+
setId = setNative.apply(window, arguments);
|
1685
|
+
ids[setId] = callbackFn;
|
1686
|
+
wtfSetEventFn(zone.$id, setId, delay);
|
1687
|
+
return setId;
|
1688
|
+
};
|
1689
|
+
Zone.prototype[setName + 'Unpatched'] = function () {
|
1690
|
+
return setNative.apply(window, arguments);
|
1691
|
+
};
|
1692
|
+
// Set up zone processing for the clear function.
|
1693
|
+
Zone.prototype[clearName] = function (id) {
|
1694
|
+
wtfClearEventFn(this.$id, id);
|
1695
|
+
if (ids.hasOwnProperty(id)) {
|
1696
|
+
var callbackFn = ids[id];
|
1697
|
+
delete ids[id];
|
1698
|
+
if (repeating) {
|
1699
|
+
this.removeRepeatingTask(callbackFn);
|
1700
|
+
}
|
1701
|
+
else {
|
1702
|
+
this.removeTask(callbackFn);
|
1703
|
+
}
|
1704
|
+
}
|
1705
|
+
return clearNative.apply(window, arguments);
|
1706
|
+
};
|
1707
|
+
Zone.prototype[clearName + 'Unpatched'] = function () {
|
1708
|
+
return clearNative.apply(window, arguments);
|
1709
|
+
};
|
1710
|
+
}
|
1711
|
+
}
|
1712
|
+
fnNames.forEach(function (args) {
|
1713
|
+
patchMacroTaskMethod.apply(null, args);
|
1714
|
+
});
|
1715
|
+
}
|
1716
|
+
exports.patchSetClearFunction = patchSetClearFunction;
|
1717
|
+
;
|
1718
|
+
function patchFunction(obj, fnNames) {
|
1719
|
+
fnNames.forEach(function (name) {
|
1720
|
+
var delegate = obj[name];
|
1721
|
+
global.zone[name] = function () {
|
1722
|
+
return delegate.apply(obj, arguments);
|
1723
|
+
};
|
1724
|
+
obj[name] = function () {
|
1725
|
+
return global.zone[name].apply(this, arguments);
|
1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ICAgICBhcmd1bWVudHNbMF0gPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICB2YXIgY2FsbGJhY2tab25lID0gem9uZS5pc1Jvb3Rab25lKCkgfHwgaXNSYWYgPyB6b25lIDogem9uZS5mb3JrKCk7XG4gICAgICAgICAgdmFyIGNhbGxiYWNrVGhpcyA9IHRoaXM7XG4gICAgICAgICAgdmFyIGNhbGxiYWNrQXJncyA9IGFyZ3VtZW50cztcbiAgICAgICAgICByZXR1cm4gd3RmLmxlYXZlU2NvcGUoXG4gICAgICAgICAgICAgIHd0ZkNhbGxiYWNrRm4oY2FsbGJhY2tab25lLiRpZCwgc2V0SWQsIGRlbGF5KSxcbiAgICAgICAgICAgICAgY2FsbGJhY2tab25lLnJ1bihmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICBpZiAoIXJlcGVhdGluZykge1xuICAgICAgICAgICAgICAgICAgZGVsZXRlIGlkc1tzZXRJZF07XG4gICAgICAgICAgICAgICAgICBjYWxsYmFja1pvbmUucmVtb3ZlVGFzayhjYWxsYmFja0ZuKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrRm4uYXBwbHkoY2FsbGJhY2tUaGlzLCBjYWxsYmFja0FyZ3MpO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICk7XG4gICAgICAgIH07XG4gICAgICAgIGlmIChyZXBlYXRpbmcpIHtcbiAgICAgICAgICB6b25lLmFkZFJlcGVhdGluZ1Rhc2soY2FsbGJhY2tGbik7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgem9uZS5hZGRUYXNrKGNhbGxiYWNrRm4pO1xuICAgICAgICB9XG4gICAgICAgIHNldElkID0gc2V0TmF0aXZlLmFwcGx5KHdpbmRvdywgYXJndW1lbnRzKTtcbiAgICAgICAgaWRzW3NldElkXSA9IGNhbGxiYWNrRm47XG4gICAgICAgIHd0ZlNldEV2ZW50Rm4oem9uZS4kaWQsIHNldElk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UYXNrTWV0aG9kLmFwcGx5KG51bGwsIGFyZ3MpO1xuICB9KTtcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBwYXRjaEZ1bmN0aW9uKG9iaiwgZm5OYW1lcykge1xuICBmbk5hbWVzLmZvckVhY2goZnVuY3Rpb24gKG5hbWUpIHtcbiAgICB2YXIgZGVsZWdhdGUgPSBvYmpbbmFtZV07XG4gICAgZ2xvYmFsLnpvbmVbbmFtZV0gPSBmdW5jdGlvbiAoKSB7XG4gICAgICByZXR1cm4gZGVsZWdhdGUuYXBwbHkob2JqLCBhcmd1bWVudHMpO1xuICAgIH07XG5cbiAgICBvYmpbbmFtZV0gPSBmdW5jdGlvbiAoKSB7XG4gICAgICByZXR1cm4gZ2xvYmFsLnpvbmVbbmFtZV0uYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgICB9O1xuICB9KTtcbn07XG4iXX0=
|
1732
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
1733
|
+
|
1734
|
+
/***/ },
|
1735
|
+
/* 12 */
|
1736
|
+
/***/ function(module, exports) {
|
1737
|
+
|
1738
|
+
/* WEBPACK VAR INJECTION */(function(global) {// Detect and setup WTF.
|
1739
|
+
var wtfTrace = null;
|
1740
|
+
var wtfEvents = null;
|
1741
|
+
var wtfEnabled = (function () {
|
1742
|
+
var wtf = global['wtf'];
|
1743
|
+
if (wtf) {
|
1744
|
+
wtfTrace = wtf['trace'];
|
1745
|
+
if (wtfTrace) {
|
1746
|
+
wtfEvents = wtfTrace['events'];
|
1747
|
+
return true;
|
1748
|
+
}
|
1749
|
+
}
|
1750
|
+
return false;
|
1751
|
+
})();
|
1752
|
+
function noop() {
|
1753
|
+
}
|
1754
|
+
exports.enabled = wtfEnabled;
|
1755
|
+
exports.createScope = wtfEnabled ? function (signature, flags) {
|
1756
|
+
return wtfEvents.createScope(signature, flags);
|
1757
|
+
} : function (s, f) {
|
1758
|
+
return noop;
|
1759
|
+
};
|
1760
|
+
exports.createEvent = wtfEnabled ? function (signature, flags) {
|
1761
|
+
return wtfEvents.createInstance(signature, flags);
|
1762
|
+
} : function (s, f) {
|
1763
|
+
return noop;
|
1764
|
+
};
|
1765
|
+
exports.leaveScope = wtfEnabled ? function (scope, returnValue) {
|
1766
|
+
wtfTrace.leaveScope(scope, returnValue);
|
1767
|
+
return returnValue;
|
1768
|
+
} : function (s, v) {
|
1769
|
+
return v;
|
1770
|
+
};
|
1771
|
+
exports.beginTimeRange = wtfEnabled ? function (rangeType, action) {
|
1772
|
+
return wtfTrace.beginTimeRange(rangeType, action);
|
1773
|
+
} : function (t, a) {
|
1774
|
+
return null;
|
1775
|
+
};
|
1776
|
+
exports.endTimeRange = wtfEnabled ? function (range) {
|
1777
|
+
wtfTrace.endTimeRange(range);
|
1778
|
+
} : function (r) {
|
1779
|
+
};
|
1780
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3RmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbGliL3d0Zi50cyJdLCJuYW1lcyI6WyJub29wIl0sIm1hcHBpbmdzIjoiQUFBQSx3QkFBd0I7QUFDeEIsSUFBSSxRQUFRLEdBQUcsSUFBSSxDQUFDO0FBQ3BCLElBQUksU0FBUyxHQUFHLElBQUksQ0FBQztBQUNyQixJQUFJLFVBQVUsR0FBRyxDQUFDO0lBQ2hCLElBQUksR0FBRyxHQUFHLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUN4QixFQUFFLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDO1FBQ1IsUUFBUSxHQUFHLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUN4QixFQUFFLENBQUMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDO1lBQ2IsU0FBUyxHQUFHLFFBQVEsQ0FBQyxRQUFRLENBQUMsQ0FBQztZQUMvQixNQUFNLENBQUMsSU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IGZ1bmN0aW9uIChyKSB7XG59O1xuIl19
|
1781
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
1782
|
+
|
1783
|
+
/***/ },
|
1784
|
+
/* 13 */
|
1785
|
+
/***/ function(module, exports, __webpack_require__) {
|
1786
|
+
|
1787
|
+
/* WEBPACK VAR INJECTION */(function(global) {var keys = __webpack_require__(7);
|
1788
|
+
var originalInstanceKey = keys.create('originalInstance');
|
1789
|
+
var creationZoneKey = keys.create('creationZone');
|
1790
|
+
var isActiveKey = keys.create('isActive');
|
1791
|
+
// wrap some native API on `window`
|
1792
|
+
function patchClass(className) {
|
1793
|
+
var OriginalClass = global[className];
|
1794
|
+
if (!OriginalClass)
|
1795
|
+
return;
|
1796
|
+
global[className] = function (fn) {
|
1797
|
+
this[originalInstanceKey] = new OriginalClass(global.zone.bind(fn, true));
|
1798
|
+
// Remember where the class was instantiate to execute the enqueueTask and dequeueTask hooks
|
1799
|
+
this[creationZoneKey] = global.zone;
|
1800
|
+
};
|
1801
|
+
var instance = new OriginalClass(function () { });
|
1802
|
+
global[className].prototype.disconnect = function () {
|
1803
|
+
var result = this[originalInstanceKey].disconnect.apply(this[originalInstanceKey], arguments);
|
1804
|
+
if (this[isActiveKey]) {
|
1805
|
+
this[creationZoneKey].dequeueTask();
|
1806
|
+
this[isActiveKey] = false;
|
1807
|
+
}
|
1808
|
+
return result;
|
1809
|
+
};
|
1810
|
+
global[className].prototype.observe = function () {
|
1811
|
+
if (!this[isActiveKey]) {
|
1812
|
+
this[creationZoneKey].enqueueTask();
|
1813
|
+
this[isActiveKey] = true;
|
1814
|
+
}
|
1815
|
+
return this[originalInstanceKey].observe.apply(this[originalInstanceKey], arguments);
|
1816
|
+
};
|
1817
|
+
var prop;
|
1818
|
+
for (prop in instance) {
|
1819
|
+
(function (prop) {
|
1820
|
+
if (typeof global[className].prototype !== 'undefined') {
|
1821
|
+
return;
|
1822
|
+
}
|
1823
|
+
if (typeof instance[prop] === 'function') {
|
1824
|
+
global[className].prototype[prop] = function () {
|
1825
|
+
return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);
|
1826
|
+
};
|
1827
|
+
}
|
1828
|
+
else {
|
1829
|
+
Object.defineProperty(global[className].prototype, prop, {
|
1830
|
+
set: function (fn) {
|
1831
|
+
if (typeof fn === 'function') {
|
1832
|
+
this[originalInstanceKey][prop] = global.zone.bind(fn);
|
1833
|
+
}
|
1834
|
+
else {
|
1835
|
+
this[originalInstanceKey][prop] = fn;
|
1836
|
+
}
|
1837
|
+
},
|
1838
|
+
get: function () {
|
1839
|
+
return this[originalInstanceKey][prop];
|
1840
|
+
}
|
1841
|
+
});
|
1842
|
+
}
|
1843
|
+
}(prop));
|
1844
|
+
}
|
1845
|
+
}
|
1846
|
+
exports.patchClass = patchClass;
|
1847
|
+
;
|
1848
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXV0YXRpb24tb2JzZXJ2ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvcGF0Y2gvbXV0YXRpb24tb2JzZXJ2ZXIudHMiXSwibmFtZXMiOlsicGF0Y2hDbGFzcyJdLCJtYXBwaW5ncyI6IkFBQUEsSUFBWSxJQUFJLFdBQU0sU0FBUyxDQUFDLENBQUE7QUFFaEMsSUFBSSxtQkFBbUIsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLGtCQUFrQixDQUFDLENBQUM7QUFDMUQsSUFBSSxlQUFlLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQyxjQUFjLENBQUMsQ0FBQztBQUNsRCxJQUFJLFdBQVcsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLFVBQVUsQ0FBQyxDQUFDO0FBRTFDLG1DQUFtQztBQUNuQyxvQkFBMkIsU0FBUztJQUNsQ0EsSUFBSUEsYUFBYUEsR0FBR0EsTUFBTUEsQ0FBQ0EsU0FBU0EsQ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AgICAgICB0aGlzW29yaWdpbmFsSW5zdGFuY2VLZXldW3Byb3BdID0gZ2xvYmFsLnpvbmUuYmluZChmbik7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICB0aGlzW29yaWdpbmFsSW5zdGFuY2VLZXldW3Byb3BdID0gZm47XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzW29yaWdpbmFsSW5zdGFuY2VLZXldW3Byb3BdO1xuICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfShwcm9wKSk7XG4gIH1cbn07XG4iXX0=
|
1849
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
1850
|
+
|
1851
|
+
/***/ },
|
1852
|
+
/* 14 */
|
1853
|
+
/***/ function(module, exports, __webpack_require__) {
|
1854
|
+
|
1855
|
+
var keys = __webpack_require__(7);
|
1856
|
+
// might need similar for object.freeze
|
1857
|
+
// i regret nothing
|
1858
|
+
var _defineProperty = Object.defineProperty;
|
1859
|
+
var _getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
1860
|
+
var _create = Object.create;
|
1861
|
+
var unconfigurablesKey = keys.create('unconfigurables');
|
1862
|
+
function apply() {
|
1863
|
+
Object.defineProperty = function (obj, prop, desc) {
|
1864
|
+
if (isUnconfigurable(obj, prop)) {
|
1865
|
+
throw new TypeError('Cannot assign to read only property \'' + prop + '\' of ' + obj);
|
1866
|
+
}
|
1867
|
+
if (prop !== 'prototype') {
|
1868
|
+
desc = rewriteDescriptor(obj, prop, desc);
|
1869
|
+
}
|
1870
|
+
return _defineProperty(obj, prop, desc);
|
1871
|
+
};
|
1872
|
+
Object.defineProperties = function (obj, props) {
|
1873
|
+
Object.keys(props).forEach(function (prop) {
|
1874
|
+
Object.defineProperty(obj, prop, props[prop]);
|
1875
|
+
});
|
1876
|
+
return obj;
|
1877
|
+
};
|
1878
|
+
Object.create = function (obj, proto) {
|
1879
|
+
if (typeof proto === 'object') {
|
1880
|
+
Object.keys(proto).forEach(function (prop) {
|
1881
|
+
proto[prop] = rewriteDescriptor(obj, prop, proto[prop]);
|
1882
|
+
});
|
1883
|
+
}
|
1884
|
+
return _create(obj, proto);
|
1885
|
+
};
|
1886
|
+
Object.getOwnPropertyDescriptor = function (obj, prop) {
|
1887
|
+
var desc = _getOwnPropertyDescriptor(obj, prop);
|
1888
|
+
if (isUnconfigurable(obj, prop)) {
|
1889
|
+
desc.configurable = false;
|
1890
|
+
}
|
1891
|
+
return desc;
|
1892
|
+
};
|
1893
|
+
}
|
1894
|
+
exports.apply = apply;
|
1895
|
+
;
|
1896
|
+
function _redefineProperty(obj, prop, desc) {
|
1897
|
+
desc = rewriteDescriptor(obj, prop, desc);
|
1898
|
+
return _defineProperty(obj, prop, desc);
|
1899
|
+
}
|
1900
|
+
exports._redefineProperty = _redefineProperty;
|
1901
|
+
;
|
1902
|
+
function isUnconfigurable(obj, prop) {
|
1903
|
+
return obj && obj[unconfigurablesKey] && obj[unconfigurablesKey][prop];
|
1904
|
+
}
|
1905
|
+
function rewriteDescriptor(obj, prop, desc) {
|
1906
|
+
desc.configurable = true;
|
1907
|
+
if (!desc.configurable) {
|
1908
|
+
if (!obj[unconfigurablesKey]) {
|
1909
|
+
_defineProperty(obj, unconfigurablesKey, { writable: true, value: {} });
|
1910
|
+
}
|
1911
|
+
obj[unconfigurablesKey][prop] = true;
|
1912
|
+
}
|
1913
|
+
return desc;
|
1914
|
+
}
|
1915
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5lLXByb3BlcnR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL3BhdGNoL2RlZmluZS1wcm9wZXJ0eS50cyJdLCJuYW1lcyI6WyJhcHBseSIsIl9yZWRlZmluZVByb3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GVzYyA9IHJld3JpdGVEZXNjcmlwdG9yKG9iaiwgcHJvcCwgZGVzYyk7XG4gIHJldHVybiBfZGVmaW5lUHJvcGVydHkob2JqLCBwcm9wLCBkZXNjKTtcbn07XG5cbmZ1bmN0aW9uIGlzVW5jb25maWd1cmFibGUgKG9iaiwgcHJvcCkge1xuICByZXR1cm4gb2JqICYmIG9ialt1bmNvbmZpZ3VyYWJsZXNLZXldICYmIG9ialt1bmNvbmZpZ3VyYWJsZXNLZXldW3Byb3BdO1xufVxuXG5mdW5jdGlvbiByZXdyaXRlRGVzY3JpcHRvciAob2JqLCBwcm9wLCBkZXNjKSB7XG4gIGRlc2MuY29uZmlndXJhYmxlID0gdHJ1ZTtcbiAgaWYgKCFkZXNjLmNvbmZpZ3VyYWJsZSkge1xuICAgIGlmICghb2JqW3VuY29uZmlndXJhYmxlc0tleV0pIHtcbiAgICAgIF9kZWZpbmVQcm9wZXJ0eShvYmosIHVuY29uZmlndXJhYmxlc0tleSwgeyB3cml0YWJsZTogdHJ1ZSwgdmFsdWU6IHt9IH0pO1xuICAgIH1cbiAgICBvYmpbdW5jb25maWd1cmFibGVzS2V5XVtwcm9wXSA9IHRydWU7XG4gIH1cbiAgcmV0dXJuIGRlc2M7XG59XG5cblxuIl19
|
1916
|
+
|
1917
|
+
/***/ },
|
1918
|
+
/* 15 */
|
1919
|
+
/***/ function(module, exports, __webpack_require__) {
|
1920
|
+
|
1921
|
+
/* WEBPACK VAR INJECTION */(function(global) {var define_property_1 = __webpack_require__(14);
|
1922
|
+
var utils = __webpack_require__(9);
|
1923
|
+
function apply() {
|
1924
|
+
if (utils.isWebWorker() || !('registerElement' in global.document)) {
|
1925
|
+
return;
|
1926
|
+
}
|
1927
|
+
var _registerElement = document.registerElement;
|
1928
|
+
var callbacks = [
|
1929
|
+
'createdCallback',
|
1930
|
+
'attachedCallback',
|
1931
|
+
'detachedCallback',
|
1932
|
+
'attributeChangedCallback'
|
1933
|
+
];
|
1934
|
+
document.registerElement = function (name, opts) {
|
1935
|
+
if (opts && opts.prototype) {
|
1936
|
+
callbacks.forEach(function (callback) {
|
1937
|
+
if (opts.prototype.hasOwnProperty(callback)) {
|
1938
|
+
var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);
|
1939
|
+
if (descriptor && descriptor.value) {
|
1940
|
+
descriptor.value = global.zone.bind(descriptor.value);
|
1941
|
+
define_property_1._redefineProperty(opts.prototype, callback, descriptor);
|
1942
|
+
}
|
1943
|
+
else {
|
1944
|
+
opts.prototype[callback] = global.zone.bind(opts.prototype[callback]);
|
1945
|
+
}
|
1946
|
+
}
|
1947
|
+
else if (opts.prototype[callback]) {
|
1948
|
+
opts.prototype[callback] = global.zone.bind(opts.prototype[callback]);
|
1949
|
+
}
|
1950
|
+
});
|
1951
|
+
}
|
1952
|
+
return _registerElement.apply(document, [name, opts]);
|
1953
|
+
};
|
1954
|
+
}
|
1955
|
+
exports.apply = apply;
|
1956
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0ZXItZWxlbWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9wYXRjaC9yZWdpc3Rlci1lbGVtZW50LnRzIl0sIm5hbWVzIjpbImFwcGx5Il0sIm1hcHBpbmdzIjoiQUFBQSxnQ0FBZ0MsbUJBQW1CLENBQUMsQ0FBQTtBQUNwRCxJQUFZLEtBQUssV0FBTSxVQUFVLENBQUMsQ0FBQTtBQUVsQztJQUNFQSxFQUFFQSxDQUFDQSxDQUFDQSxLQUFLQSxDQUFDQSxXQUFXQSxFQUFFQSxJQUFJQSxDQUFDQSxDQUFDQSxpQkFBaUJBLElBQVVBLE1BQU9BLENBQUNBLFFBQVFBLENBQUNBLENBQUNBLENBQUNBLENBQUNBO1FBQzFFQSxNQUFNQSxDQUFDQTtJQUNUQSxDQUFDQTtJQUVEQSxJQUFJQSxnQkFBZ0JBLEdBQVNB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1xuICB9O1xufVxuIl19
|
1957
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
1958
|
+
|
1959
|
+
/***/ },
|
1960
|
+
/* 16 */
|
1961
|
+
/***/ function(module, exports, __webpack_require__) {
|
1962
|
+
|
1963
|
+
/* WEBPACK VAR INJECTION */(function(global) {'use strict';
|
1964
|
+
var utils = __webpack_require__(9);
|
1965
|
+
function apply() {
|
1966
|
+
// patched properties depend on addEventListener, so this needs to come first
|
1967
|
+
if (global.EventTarget) {
|
1968
|
+
utils.patchEventTargetMethods(global.EventTarget.prototype);
|
1969
|
+
}
|
1970
|
+
else {
|
1971
|
+
var apis = [
|
1972
|
+
'ApplicationCache',
|
1973
|
+
'EventSource',
|
1974
|
+
'FileReader',
|
1975
|
+
'InputMethodContext',
|
1976
|
+
'MediaController',
|
1977
|
+
'MessagePort',
|
1978
|
+
'Node',
|
1979
|
+
'Performance',
|
1980
|
+
'SVGElementInstance',
|
1981
|
+
'SharedWorker',
|
1982
|
+
'TextTrack',
|
1983
|
+
'TextTrackCue',
|
1984
|
+
'TextTrackList',
|
1985
|
+
'WebKitNamedFlow',
|
1986
|
+
'Worker',
|
1987
|
+
'WorkerGlobalScope',
|
1988
|
+
'XMLHttpRequest',
|
1989
|
+
'XMLHttpRequestEventTarget',
|
1990
|
+
'XMLHttpRequestUpload'
|
1991
|
+
];
|
1992
|
+
apis.forEach(function (api) {
|
1993
|
+
var proto = global[api] && global[api].prototype;
|
1994
|
+
// Some browsers e.g. Android 4.3's don't actually implement
|
1995
|
+
// the EventTarget methods for all of these e.g. FileReader.
|
1996
|
+
// In this case, there is nothing to patch.
|
1997
|
+
if (proto && proto.addEventListener) {
|
1998
|
+
utils.patchEventTargetMethods(proto);
|
1999
|
+
}
|
2000
|
+
});
|
2001
|
+
// Patch the methods on `window` instead of `Window.prototype`
|
2002
|
+
// `Window` is not accessible on Android 4.3
|
2003
|
+
if (typeof (window) !== 'undefined') {
|
2004
|
+
utils.patchEventTarg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xseSBpbXBsZW1lbnRcbiAgICAgIC8vIHRoZSBFdmVudFRhcmdldCBtZXRob2RzIGZvciBhbGwgb2YgdGhlc2UgZS5nLiBGaWxlUmVhZGVyLlxuICAgICAgLy8gSW4gdGhpcyBjYXNlLCB0aGVyZSBpcyBub3RoaW5nIHRvIHBhdGNoLlxuICAgICAgaWYgKHByb3RvICYmIHByb3RvLmFkZEV2ZW50TGlzdGVuZXIpIHtcbiAgICAgICAgdXRpbHMucGF0Y2hFdmVudFRhcmdldE1ldGhvZHMocHJvdG8pO1xuICAgICAgfVxuICAgIH0pO1xuXG4gICAgLy8gUGF0Y2ggdGhlIG1ldGhvZHMgb24gYHdpbmRvd2AgaW5zdGVhZCBvZiBgV2luZG93LnByb3RvdHlwZWBcbiAgICAvLyBgV2luZG93YCBpcyBub3QgYWNjZXNzaWJsZSBvbiBBbmRyb2lkIDQuM1xuICAgIGlmICh0eXBlb2Yod2luZG93KSAhPT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgIHV0aWxzLnBhdGNoRXZlbnRUYXJnZXRNZXRob2RzKHdpbmRvdyk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
2010
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
2011
|
+
|
2012
|
+
/***/ },
|
2013
|
+
/* 17 */
|
2014
|
+
/***/ function(module, exports, __webpack_require__) {
|
2015
|
+
|
2016
|
+
/* WEBPACK VAR INJECTION */(function(global) {var webSocketPatch = __webpack_require__(18);
|
2017
|
+
var utils = __webpack_require__(9);
|
2018
|
+
var keys = __webpack_require__(7);
|
2019
|
+
var eventNames = '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(' ');
|
2020
|
+
function apply() {
|
2021
|
+
if (utils.isWebWorker()) {
|
2022
|
+
// on WebWorker so don't apply patch
|
2023
|
+
return;
|
2024
|
+
}
|
2025
|
+
var supportsWebSocket = typeof WebSocket !== 'undefined';
|
2026
|
+
if (canPatchViaPropertyDescriptor()) {
|
2027
|
+
// for browsers that we can patch the descriptor: Chrome & Firefox
|
2028
|
+
var onEventNames = eventNames.map(function (property) {
|
2029
|
+
return 'on' + property;
|
2030
|
+
});
|
2031
|
+
utils.patchProperties(HTMLElement.prototype, onEventNames);
|
2032
|
+
utils.patchProperties(XMLHttpRequest.prototype);
|
2033
|
+
if (supportsWebSocket) {
|
2034
|
+
utils.patchProperties(WebSocket.prototype);
|
2035
|
+
}
|
2036
|
+
}
|
2037
|
+
else {
|
2038
|
+
// Safari, Android browsers (Jelly Bean)
|
2039
|
+
patchViaCapturingAllTheEvents();
|
2040
|
+
utils.patchClass('XMLHttpRequest');
|
2041
|
+
if (supportsWebSocket) {
|
2042
|
+
webSocketPatch.apply();
|
2043
|
+
}
|
2044
|
+
}
|
2045
|
+
}
|
2046
|
+
exports.apply = apply;
|
2047
|
+
function canPatchViaPropertyDescriptor() {
|
2048
|
+
if (!Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'onclick') && typeof Element !== 'undefined') {
|
2049
|
+
// WebKit https://bugs.webkit.org/show_bug.cgi?id=134364
|
2050
|
+
// IDL interface attributes are not configurable
|
2051
|
+
var desc = Object.getOwnPropertyDescriptor(Element.prototype, 'onclick');
|
2052
|
+
if (desc && !desc.configurable)
|
2053
|
+
return false;
|
2054
|
+
}
|
2055
|
+
Object.defineProperty(HTMLElement.prototype, 'onclick', {
|
2056
|
+
get: function () {
|
2057
|
+
return true;
|
2058
|
+
}
|
2059
|
+
});
|
2060
|
+
var elt = document.createElement('div');
|
2061
|
+
var result = !!elt.onclick;
|
2062
|
+
Object.defineProperty(HTMLElement.prototype, 'onclick', {});
|
2063
|
+
return result;
|
2064
|
+
}
|
2065
|
+
;
|
2066
|
+
var unboundKey = keys.create('unbound');
|
2067
|
+
// Whenever any event fires, we check the event target and all parents
|
2068
|
+
// for `onwhatever` properties and replace them with zone-bound functions
|
2069
|
+
// - Chrome (for now)
|
2070
|
+
function patchViaCapturingAllTheEvents() {
|
2071
|
+
eventNames.forEach(function (property) {
|
2072
|
+
var onproperty = 'on' + property;
|
2073
|
+
document.addEventListener(property, function (event) {
|
2074
|
+
var elt = event.target, bound;
|
2075
|
+
while (elt) {
|
2076
|
+
if (elt[onproperty] && !elt[onproperty][unboundKey]) {
|
2077
|
+
bound = global.zone.bind(elt[onproperty]);
|
2078
|
+
bound[unboundKey] = elt[onproperty];
|
2079
|
+
elt[onproperty] = bound;
|
2080
|
+
}
|
2081
|
+
elt = elt.parentElement;
|
2082
|
+
}
|
2083
|
+
}, true);
|
2084
|
+
});
|
2085
|
+
}
|
2086
|
+
;
|
2087
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktZGVzY3JpcHRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9wYXRjaC9wcm9wZXJ0eS1kZXNjcmlwdG9yLnRzIl0sIm5hbWVzIjpbImFwcGx5IiwiY2FuUGF0Y2hWaWFQcm9wZXJ0eURlc2NyaXB0b3IiLCJwYXRjaFZpYUNhcHR1cmluZ0FsbFRoZUV2ZW50cyJdLCJtYXBwaW5ncyI6IkFBQUEsSUFBWSxjQUFjLFdBQU0sYUFBYSxDQUFDLENBQUE7QUFDOUMsSUFBWSxLQUFLLFdBQU0sVUFBVSxDQUFDLENBQUE7QUFDbEMsSUFBWSxJQUFJLFdBQU0sU0FBUyxDQUFDLENBQUE7QUFFaEMsSUFBSSxVQUFVLEdBQUcsdW1CQUF1bUIsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUF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S2V5ID0ga2V5cy5jcmVhdGUoJ3VuYm91bmQnKTtcblxuLy8gV2hlbmV2ZXIgYW55IGV2ZW50IGZpcmVzLCB3ZSBjaGVjayB0aGUgZXZlbnQgdGFyZ2V0IGFuZCBhbGwgcGFyZW50c1xuLy8gZm9yIGBvbndoYXRldmVyYCBwcm9wZXJ0aWVzIGFuZCByZXBsYWNlIHRoZW0gd2l0aCB6b25lLWJvdW5kIGZ1bmN0aW9uc1xuLy8gLSBDaHJvbWUgKGZvciBub3cpXG5mdW5jdGlvbiBwYXRjaFZpYUNhcHR1cmluZ0FsbFRoZUV2ZW50cygpIHtcbiAgZXZlbnROYW1lcy5mb3JFYWNoKGZ1bmN0aW9uIChwcm9wZXJ0eSkge1xuICAgIHZhciBvbnByb3BlcnR5ID0gJ29uJyArIHByb3BlcnR5O1xuICAgIGRvY3VtZW50LmFkZEV2ZW50TGlzdGVuZXIocHJvcGVydHksIGZ1bmN0aW9uIChldmVudCkge1xuICAgICAgdmFyIGVsdCA9IDxOb2RlPmV2ZW50LnRhcmdldCwgYm91bmQ7XG4gICAgICB3aGlsZSAoZWx0KSB7XG4gICAgICAgIGlmIChlbHRbb25wcm9wZXJ0eV0gJiYgIWVsdFtvbnByb3BlcnR5XVt1bmJvdW5kS2V5XSkge1xuICAgICAgICAgIGJvdW5kID0gZ2xvYmFsLnpvbmUuYmluZChlbHRbb25wcm9wZXJ0eV0pO1xuICAgICAgICAgIGJvdW5kW3VuYm91bmRLZXldID0gZWx0W29ucHJvcGVydHldO1xuICAgICAgICAgIGVsdFtvbnByb3BlcnR5XSA9IGJvdW5kO1xuICAgICAgICB9XG4gICAgICAgIGVsdCA9IGVsdC5wYXJlbnRFbGVtZW50O1xuICAgICAgfVxuICAgIH0sIHRydWUpO1xuICB9KTtcbn07XG4iXX0=
|
2088
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
2089
|
+
|
2090
|
+
/***/ },
|
2091
|
+
/* 18 */
|
2092
|
+
/***/ function(module, exports, __webpack_require__) {
|
2093
|
+
|
2094
|
+
/* WEBPACK VAR INJECTION */(function(global) {var utils = __webpack_require__(9);
|
2095
|
+
// we have to patch the instance since the proto is non-configurable
|
2096
|
+
function apply() {
|
2097
|
+
var WS = global.WebSocket;
|
2098
|
+
// On Safari window.EventTarget doesn't exist so need to patch WS add/removeEventListener
|
2099
|
+
// On older Chrome, no need since EventTarget was already patched
|
2100
|
+
if (!global.EventTarget) {
|
2101
|
+
utils.patchEventTargetMethods(WS.prototype);
|
2102
|
+
}
|
2103
|
+
global.WebSocket = function (a, b) {
|
2104
|
+
var socket = arguments.length > 1 ? new WS(a, b) : new WS(a);
|
2105
|
+
var proxySocket;
|
2106
|
+
// Safari 7.0 has non-configurable own 'onmessage' and friends properties on the socket instance
|
2107
|
+
var onmessageDesc = Object.getOwnPropertyDescriptor(socket, 'onmessage');
|
2108
|
+
if (onmessageDesc && onmessageDesc.configurable === false) {
|
2109
|
+
proxySocket = Object.create(socket);
|
2110
|
+
['addEventListener', 'removeEventListener', 'send', 'close'].forEach(function (propName) {
|
2111
|
+
proxySocket[propName] = function () {
|
2112
|
+
return socket[propName].apply(socket, arguments);
|
2113
|
+
};
|
2114
|
+
});
|
2115
|
+
}
|
2116
|
+
else {
|
2117
|
+
// we can patch the real socket
|
2118
|
+
proxySocket = socket;
|
2119
|
+
}
|
2120
|
+
utils.patchProperties(proxySocket, ['onclose', 'onerror', 'onmessage', 'onopen']);
|
2121
|
+
return proxySocket;
|
2122
|
+
};
|
2123
|
+
}
|
2124
|
+
exports.apply = apply;
|
2125
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2Vic29ja2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL3BhdGNoL3dlYnNvY2tldC50cyJdLCJuYW1lcyI6WyJhcHBseSJdLCJtYXBwaW5ncyI6IkFBQUEsSUFBWSxLQUFLLFdBQ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b3InLCAnb25tZXNzYWdlJywgJ29ub3BlbiddKTtcblxuICAgIHJldHVybiBwcm94eVNvY2tldDtcbiAgfTtcbn1cbiJdfQ==
|
2126
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
2127
|
+
|
2128
|
+
/***/ },
|
2129
|
+
/* 19 */
|
2130
|
+
/***/ function(module, exports, __webpack_require__) {
|
2131
|
+
|
2132
|
+
/* WEBPACK VAR INJECTION */(function(global) {var utils = __webpack_require__(9);
|
2133
|
+
function apply() {
|
2134
|
+
if (global.navigator && global.navigator.geolocation) {
|
2135
|
+
utils.patchPrototype(global.navigator.geolocation, [
|
2136
|
+
'getCurrentPosition',
|
2137
|
+
'watchPosition'
|
2138
|
+
]);
|
2139
|
+
}
|
2140
|
+
}
|
2141
|
+
exports.apply = apply;
|
2142
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VvbG9jYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvcGF0Y2gvZ2VvbG9jYXRpb24udHMiXSwibmFtZXMiOlsiYXBwbHkiXSwibWFwcGluZ3MiOiJBQUFBLElBQVksS0FBSyxXQUFNLFVBQVUsQ0FBQyxDQUFBO0FBRWxDO0lBQ0VBLEVBQUVBLENBQUNBLENBQUNBLE1BQU1BLENBQUNBLFNBQVNBLElBQUlBLE1BQU1BLENBQUNBLFNBQVNBLENBQUNBLFdBQVdBLENBQUNBLENBQUNBLENBQUNBO1FBQ3JEQSxLQUFLQSxDQUFDQSxjQUFjQSxDQUFDQSxNQUFNQSxDQUFDQSxTQUFTQSxDQUFDQSxXQUFXQSxFQUFFQTtZQUNqREEsb0JBQW9CQTtZQUNwQkEsZUFBZUE7U0FDaEJBLENBQUNBLENBQUNBO0lBQ0xBLENBQUNBO0FBQ0hBLENBQUNBO0FBUGUsYUFBSyxRQU9wQixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgdXRpbHMgZnJvbSAnLi4vdXRpbHMnO1xuXG5leHBvcnQgZnVuY3Rpb24gYXBwbHkoKSB7XG4gIGlmIChnbG9iYWwubmF2aWdhdG9yICYmIGdsb2JhbC5uYXZpZ2F0b3IuZ2VvbG9jYXRpb24pIHtcbiAgICB1dGlscy5wYXRjaFByb3RvdHlwZShnbG9iYWwubmF2aWdhdG9yLmdlb2xvY2F0aW9uLCBbXG4gICAgICAnZ2V0Q3VycmVudFBvc2l0aW9uJyxcbiAgICAgICd3YXRjaFBvc2l0aW9uJ1xuICAgIF0pO1xuICB9XG59XG4iXX0=
|
2143
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
2144
|
+
|
2145
|
+
/***/ },
|
2146
|
+
/* 20 */
|
2147
|
+
/***/ function(module, exports, __webpack_require__) {
|
2148
|
+
|
2149
|
+
var utils = __webpack_require__(9);
|
2150
|
+
function apply() {
|
2151
|
+
utils.patchClass('FileReader');
|
2152
|
+
}
|
2153
|
+
exports.apply = apply;
|
2154
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1yZWFkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvcGF0Y2gvZmlsZS1yZWFkZXIudHMiXSwibmFtZXMiOlsiYXBwbHkiXSwibWFwcGluZ3MiOiJBQUFBLElBQVksS0FBSyxXQUFNLFVBQVUsQ0FBQyxDQUFBO0FBRWxDO0lBQ0VBLEtBQUtBLENBQUNBLFVBQVVBLENBQUNBLFlBQVlBLENBQUNBLENBQUNBO0FBQ2pDQSxDQUFDQTtBQUZlLGFBQUssUUFFcEIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIHV0aWxzIGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGZ1bmN0aW9uIGFwcGx5KCkge1xuICB1dGlscy5wYXRjaENsYXNzKCdGaWxlUmVhZGVyJyk7XG59XG4iXX0=
|
2155
|
+
|
2156
|
+
/***/ }
|
2157
|
+
/******/ ]);
|
2158
|
+
/******/ (function(modules) { // webpackBootstrap
|
2159
|
+
/******/ // The module cache
|
2160
|
+
/******/ var installedModules = {};
|
2161
|
+
|
2162
|
+
/******/ // The require function
|
2163
|
+
/******/ function __webpack_require__(moduleId) {
|
2164
|
+
|
2165
|
+
/******/ // Check if module is in cache
|
2166
|
+
/******/ if(installedModules[moduleId])
|
2167
|
+
/******/ return installedModules[moduleId].exports;
|
2168
|
+
|
2169
|
+
/******/ // Create a new module (and put it into the cache)
|
2170
|
+
/******/ var module = installedModules[moduleId] = {
|
2171
|
+
/******/ exports: {},
|
2172
|
+
/******/ id: moduleId,
|
2173
|
+
/******/ loaded: false
|
2174
|
+
/******/ };
|
2175
|
+
|
2176
|
+
/******/ // Execute the module function
|
2177
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
2178
|
+
|
2179
|
+
/******/ // Flag the module as loaded
|
2180
|
+
/******/ module.loaded = true;
|
2181
|
+
|
2182
|
+
/******/ // Return the exports of the module
|
2183
|
+
/******/ return module.exports;
|
2184
|
+
/******/ }
|
2185
|
+
|
2186
|
+
|
2187
|
+
/******/ // expose the modules object (__webpack_modules__)
|
2188
|
+
/******/ __webpack_require__.m = modules;
|
2189
|
+
|
2190
|
+
/******/ // expose the module cache
|
2191
|
+
/******/ __webpack_require__.c = installedModules;
|
2192
|
+
|
2193
|
+
/******/ // __webpack_public_path__
|
2194
|
+
/******/ __webpack_require__.p = "";
|
2195
|
+
|
2196
|
+
/******/ // Load entry module and return exports
|
2197
|
+
/******/ return __webpack_require__(0);
|
2198
|
+
/******/ })
|
2199
|
+
/************************************************************************/
|
2200
|
+
/******/ ([
|
2201
|
+
/* 0 */
|
2202
|
+
/***/ function(module, exports, __webpack_require__) {
|
2203
|
+
|
2204
|
+
/* WEBPACK VAR INJECTION */(function(global) {var long_stack_trace_1 = __webpack_require__(1);
|
2205
|
+
if (!global.Zone) {
|
2206
|
+
throw new Error('zone.js should be installed before loading the long stack trace zone');
|
2207
|
+
}
|
2208
|
+
global.Zone.longStackTraceZone = long_stack_trace_1.longStackTraceZone;
|
2209
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9uZy1zdGFjay10cmFjZS16b25lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2Jyb3dzZXIvbG9uZy1zdGFjay10cmFjZS16b25lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlDQUFpQywyQkFBMkIsQ0FBQyxDQUFBO0FBRTdELEVBQUUsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7SUFDakIsTUFBTSxJQUFJLEtBQUssQ0FBQyxzRUFBc0UsQ0FBQyxDQUFDO0FBQzFGLENBQUM7QUFFRCxNQUFNLENBQUMsSUFBSSxDQUFDLGtCQUFrQixHQUFHLHFDQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtsb25nU3RhY2tUcmFjZVpvbmV9IGZyb20gJy4uL3pvbmVzL2xvbmctc3RhY2stdHJhY2UnO1xuXG5pZiAoIWdsb2JhbC5ab25lKSB7XG4gIHRocm93IG5ldyBFcnJvcignem9uZS5qcyBzaG91bGQgYmUgaW5zdGFsbGVkIGJlZm9yZSBsb2FkaW5nIHRoZSBsb25nIHN0YWNrIHRyYWNlIHpvbmUnKTtcbn1cblxuZ2xvYmFsLlpvbmUubG9uZ1N0YWNrVHJhY2Vab25lID0gbG9uZ1N0YWNrVHJhY2Vab25lO1xuIl19
|
2210
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
2211
|
+
|
2212
|
+
/***/ },
|
2213
|
+
/* 1 */
|
2214
|
+
/***/ function(module, exports) {
|
2215
|
+
|
2216
|
+
/* WEBPACK VAR INJECTION */(function(global) {/*
|
2217
|
+
* Wrapped stacktrace
|
2218
|
+
*
|
2219
|
+
* We need this because in some implementations, constructing a trace is slow
|
2220
|
+
* and so we want to defer accessing the trace for as long as possible
|
2221
|
+
*/
|
2222
|
+
'use strict';
|
2223
|
+
function _Stacktrace(e) {
|
2224
|
+
this._e = e;
|
2225
|
+
}
|
2226
|
+
_Stacktrace.prototype.get = function () {
|
2227
|
+
if (global.zone.stackFramesFilter && this._e.stack) {
|
2228
|
+
return this._e.stack
|
2229
|
+
.split('\n')
|
2230
|
+
.filter(global.zone.stackFramesFilter)
|
2231
|
+
.join('\n');
|
2232
|
+
}
|
2233
|
+
return this._e.stack;
|
2234
|
+
};
|
2235
|
+
function _getStacktraceWithUncaughtError() {
|
2236
|
+
return new _Stacktrace(new Error());
|
2237
|
+
}
|
2238
|
+
function _getStacktraceWithCaughtError() {
|
2239
|
+
try {
|
2240
|
+
throw new Error();
|
2241
|
+
}
|
2242
|
+
catch (e) {
|
2243
|
+
return new _Stacktrace(e);
|
2244
|
+
}
|
2245
|
+
}
|
2246
|
+
// Some implementations of exception handling don't create a stack trace if the exception
|
2247
|
+
// isn't thrown, however it's faster not to actually throw the exception.
|
2248
|
+
var stack = _getStacktraceWithUncaughtError();
|
2249
|
+
var _getStacktrace = stack && stack._e.stack
|
2250
|
+
? _getStacktraceWithUncaughtError
|
2251
|
+
: _getStacktraceWithCaughtError;
|
2252
|
+
exports.longStackTraceZone = {
|
2253
|
+
getLongStacktrace: function (exception) {
|
2254
|
+
var traces = [];
|
2255
|
+
var currentZone = this;
|
2256
|
+
if (exception) {
|
2257
|
+
if (currentZone.stackFramesFilter && exception.stack) {
|
2258
|
+
traces.push(exception.stack.split('\n')
|
2259
|
+
.filter(currentZone.stackFramesFilter)
|
2260
|
+
.join('\n'));
|
2261
|
+
}
|
2262
|
+
else {
|
2263
|
+
traces.push(exception.stack);
|
2264
|
+
}
|
2265
|
+
}
|
2266
|
+
var now = Date.now();
|
2267
|
+
while (currentZone && currentZone.constructedAtException) {
|
2268
|
+
traces.push('--- ' + (new Date(currentZone.constructedAtTime)).toString() +
|
2269
|
+
' - ' + (now - currentZone.constructedAtTime) + 'ms ago', currentZone.constructedAtException.get());
|
2270
|
+
currentZone = currentZone.parent;
|
2271
|
+
}
|
2272
|
+
return traces.join('\n');
|
2273
|
+
},
|
2274
|
+
stackFramesFilter: function (line) {
|
2275
|
+
return !/zone(-microtask)?(\.min)?\.js/.test(line);
|
2276
|
+
},
|
2277
|
+
onError: function (exception) {
|
2278
|
+
var reporter = this.reporter || console.log.bind(console);
|
2279
|
+
reporter(exception.toString());
|
2280
|
+
reporter(this.getLongStacktrace(exception));
|
2281
|
+
},
|
2282
|
+
'$fork': function (parentFork) {
|
2283
|
+
return function () {
|
2284
|
+
var newZone = parentFork.apply(this, arguments);
|
2285
|
+
newZone.constructedAtException = _getStacktrace();
|
2286
|
+
newZone.constructedAtTime = Date.now();
|
2287
|
+
return newZone;
|
2288
|
+
};
|
2289
|
+
}
|
2290
|
+
};
|
2291
|
+
//# sourceMappingURLDisabled=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9uZy1zdGFjay10cmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi96b25lcy9sb25nLXN0YWNrLXRyYWNlLnRzIl0sIm5hbWVzIjpbIl9TdGFja3RyYWNlIiwiX2dldFN0YWNrdHJhY2VXaXRoVW5jYXVnaHRFcnJvciIsIl9nZXRTdGFja3RyYWNlV2l0aENhdWdodEVycm9yIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7R0FLRztBQUVILFlBQVksQ0FBQztBQUViLHFCQUFxQixDQUFDO0lBQ3BCQSxJQUFJQSxDQUFDQSxFQUFFQSxHQUFHQSxDQUFDQSxDQUFDQTtBQUNkQSxDQUFDQTtBQUVELFdBQVcsQ0FBQyxTQUFTLENBQ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QXRUaW1lKSArICdtcyBhZ28nLFxuICAgICAgICAgIGN1cnJlbnRab25lLmNvbnN0cnVjdGVkQXRFeGNlcHRpb24uZ2V0KCkpO1xuICAgICAgY3VycmVudFpvbmUgPSBjdXJyZW50Wm9uZS5wYXJlbnQ7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRyYWNlcy5qb2luKCdcXG4nKTtcbiAgfSxcblxuICBzdGFja0ZyYW1lc0ZpbHRlcjogZnVuY3Rpb24gKGxpbmUpIHtcbiAgICByZXR1cm4gIS96b25lKC1taWNyb3Rhc2spPyhcXC5taW4pP1xcLmpzLy50ZXN0KGxpbmUpO1xuICB9LFxuXG4gIG9uRXJyb3I6IGZ1bmN0aW9uIChleGNlcHRpb24pIHtcbiAgICB2YXIgcmVwb3J0ZXIgPSB0aGlzLnJlcG9ydGVyIHx8IGNvbnNvbGUubG9nLmJpbmQoY29uc29sZSk7XG4gICAgcmVwb3J0ZXIoZXhjZXB0aW9uLnRvU3RyaW5nKCkpO1xuICAgIHJlcG9ydGVyKHRoaXMuZ2V0TG9uZ1N0YWNrdHJhY2UoZXhjZXB0aW9uKSk7XG4gIH0sXG5cbiAgJyRmb3JrJzogZnVuY3Rpb24gKHBhcmVudEZvcmspIHtcbiAgICByZXR1cm4gZnVuY3Rpb24oKSB7XG4gICAgICB2YXIgbmV3Wm9uZSA9IHBhcmVudEZvcmsuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgICAgIG5ld1pvbmUuY29uc3RydWN0ZWRBdEV4Y2VwdGlvbiA9IF9nZXRTdGFja3RyYWNlKCk7XG4gICAgICBuZXdab25lLmNvbnN0cnVjdGVkQXRUaW1lID0gRGF0ZS5ub3coKTtcbiAgICAgIHJldHVybiBuZXdab25lO1xuICAgIH1cbiAgfVxufTtcblxuIl19
|
2292
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
2293
|
+
|
2294
|
+
/***/ }
|
2295
|
+
/******/ ]);
|
2296
|
+
/**
|
2297
|
+
@license
|
2298
|
+
Apache License
|
2299
|
+
|
2300
|
+
Version 2.0, January 2004
|
2301
|
+
|
2302
|
+
http://www.apache.org/licenses/
|
2303
|
+
|
2304
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
2305
|
+
|
2306
|
+
1. Definitions.
|
2307
|
+
|
2308
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
2309
|
+
|
2310
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
2311
|
+
|
2312
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
2313
|
+
|
2314
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
2315
|
+
|
2316
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
2317
|
+
|
2318
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
2319
|
+
|
2320
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
2321
|
+
|
2322
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
2323
|
+
|
2324
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
2325
|
+
|
2326
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
2327
|
+
|
2328
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
2329
|
+
|
2330
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
2331
|
+
|
2332
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
2333
|
+
|
2334
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
2335
|
+
|
2336
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
2337
|
+
|
2338
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
2339
|
+
|
2340
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
2341
|
+
|
2342
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
2343
|
+
|
2344
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
2345
|
+
|
2346
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
2347
|
+
|
2348
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
2349
|
+
|
2350
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
2351
|
+
|
2352
|
+
END OF TERMS AND CONDITIONS
|
2353
|
+
*/
|
2354
|
+
|
2355
|
+
/*! *****************************************************************************
|
2356
|
+
Copyright (C) Microsoft. All rights reserved.
|
2357
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
2358
|
+
this file except in compliance with the License. You may obtain a copy of the
|
2359
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
2360
|
+
|
2361
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
2362
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
2363
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
2364
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
2365
|
+
|
2366
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
2367
|
+
and limitations under the License.
|
2368
|
+
***************************************************************************** */
|
2369
|
+
"use strict";
|
2370
|
+
var Reflect;
|
2371
|
+
(function (Reflect) {
|
2372
|
+
// Load global or shim versions of Map, Set, and WeakMap
|
2373
|
+
var functionPrototype = Object.getPrototypeOf(Function);
|
2374
|
+
var _Map = typeof Map === "function" ? Map : CreateMapPolyfill();
|
2375
|
+
var _Set = typeof Set === "function" ? Set : CreateSetPolyfill();
|
2376
|
+
var _WeakMap = typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
|
2377
|
+
// [[Metadata]] internal slot
|
2378
|
+
var __Metadata__ = new _WeakMap();
|
2379
|
+
/**
|
2380
|
+
* Applies a set of decorators to a property of a target object.
|
2381
|
+
* @param decorators An array of decorators.
|
2382
|
+
* @param target The target object.
|
2383
|
+
* @param targetKey (Optional) The property key to decorate.
|
2384
|
+
* @param targetDescriptor (Optional) The property descriptor for the target key
|
2385
|
+
* @remarks Decorators are applied in reverse order.
|
2386
|
+
* @example
|
2387
|
+
*
|
2388
|
+
* class C {
|
2389
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
2390
|
+
* // static staticProperty;
|
2391
|
+
* // property;
|
2392
|
+
*
|
2393
|
+
* constructor(p) { }
|
2394
|
+
* static staticMethod(p) { }
|
2395
|
+
* method(p) { }
|
2396
|
+
* }
|
2397
|
+
*
|
2398
|
+
* // constructor
|
2399
|
+
* C = Reflect.decorate(decoratorsArray, C);
|
2400
|
+
*
|
2401
|
+
* // property (on constructor)
|
2402
|
+
* Reflect.decorate(decoratorsArray, C, "staticProperty");
|
2403
|
+
*
|
2404
|
+
* // property (on prototype)
|
2405
|
+
* Reflect.decorate(decoratorsArray, C.prototype, "property");
|
2406
|
+
*
|
2407
|
+
* // method (on constructor)
|
2408
|
+
* Object.defineProperty(C, "staticMethod",
|
2409
|
+
* Reflect.decorate(decoratorsArray, C, "staticMethod",
|
2410
|
+
* Object.getOwnPropertyDescriptor(C, "staticMethod")));
|
2411
|
+
*
|
2412
|
+
* // method (on prototype)
|
2413
|
+
* Object.defineProperty(C.prototype, "method",
|
2414
|
+
* Reflect.decorate(decoratorsArray, C.prototype, "method",
|
2415
|
+
* Object.getOwnPropertyDescriptor(C.prototype, "method")));
|
2416
|
+
*
|
2417
|
+
*/
|
2418
|
+
function decorate(decorators, target, targetKey, targetDescriptor) {
|
2419
|
+
if (!IsUndefined(targetDescriptor)) {
|
2420
|
+
if (!IsArray(decorators)) {
|
2421
|
+
throw new TypeError();
|
2422
|
+
}
|
2423
|
+
else if (!IsObject(target)) {
|
2424
|
+
throw new TypeError();
|
2425
|
+
}
|
2426
|
+
else if (IsUndefined(targetKey)) {
|
2427
|
+
throw new TypeError();
|
2428
|
+
}
|
2429
|
+
else if (!IsObject(targetDescriptor)) {
|
2430
|
+
throw new TypeError();
|
2431
|
+
}
|
2432
|
+
targetKey = ToPropertyKey(targetKey);
|
2433
|
+
return DecoratePropertyWithDescriptor(decorators, target, targetKey, targetDescriptor);
|
2434
|
+
}
|
2435
|
+
else if (!IsUndefined(targetKey)) {
|
2436
|
+
if (!IsArray(decorators)) {
|
2437
|
+
throw new TypeError();
|
2438
|
+
}
|
2439
|
+
else if (!IsObject(target)) {
|
2440
|
+
throw new TypeError();
|
2441
|
+
}
|
2442
|
+
targetKey = ToPropertyKey(targetKey);
|
2443
|
+
return DecoratePropertyWithoutDescriptor(decorators, target, targetKey);
|
2444
|
+
}
|
2445
|
+
else {
|
2446
|
+
if (!IsArray(decorators)) {
|
2447
|
+
throw new TypeError();
|
2448
|
+
}
|
2449
|
+
else if (!IsConstructor(target)) {
|
2450
|
+
throw new TypeError();
|
2451
|
+
}
|
2452
|
+
return DecorateConstructor(decorators, target);
|
2453
|
+
}
|
2454
|
+
}
|
2455
|
+
Reflect.decorate = decorate;
|
2456
|
+
/**
|
2457
|
+
* A default metadata decorator factory that can be used on a class, class member, or parameter.
|
2458
|
+
* @param metadataKey The key for the metadata entry.
|
2459
|
+
* @param metadataValue The value for the metadata entry.
|
2460
|
+
* @returns A decorator function.
|
2461
|
+
* @remarks
|
2462
|
+
* If `metadataKey` is already defined for the target and target key, the
|
2463
|
+
* metadataValue for that key will be overwritten.
|
2464
|
+
* @example
|
2465
|
+
*
|
2466
|
+
* // constructor
|
2467
|
+
* @Reflect.metadata(key, value)
|
2468
|
+
* class C {
|
2469
|
+
* }
|
2470
|
+
*
|
2471
|
+
* // property (on constructor, TypeScript only)
|
2472
|
+
* class C {
|
2473
|
+
* @Reflect.metadata(key, value)
|
2474
|
+
* static staticProperty;
|
2475
|
+
* }
|
2476
|
+
*
|
2477
|
+
* // property (on prototype, TypeScript only)
|
2478
|
+
* class C {
|
2479
|
+
* @Reflect.metadata(key, value)
|
2480
|
+
* property;
|
2481
|
+
* }
|
2482
|
+
*
|
2483
|
+
* // method (on constructor)
|
2484
|
+
* class C {
|
2485
|
+
* @Reflect.metadata(key, value)
|
2486
|
+
* static staticMethod() { }
|
2487
|
+
* }
|
2488
|
+
*
|
2489
|
+
* // method (on prototype)
|
2490
|
+
* class C {
|
2491
|
+
* @Reflect.metadata(key, value)
|
2492
|
+
* method() { }
|
2493
|
+
* }
|
2494
|
+
*
|
2495
|
+
*/
|
2496
|
+
function metadata(metadataKey, metadataValue) {
|
2497
|
+
function decorator(target, targetKey) {
|
2498
|
+
if (!IsUndefined(targetKey)) {
|
2499
|
+
if (!IsObject(target)) {
|
2500
|
+
throw new TypeError();
|
2501
|
+
}
|
2502
|
+
targetKey = ToPropertyKey(targetKey);
|
2503
|
+
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
|
2504
|
+
}
|
2505
|
+
else {
|
2506
|
+
if (!IsConstructor(target)) {
|
2507
|
+
throw new TypeError();
|
2508
|
+
}
|
2509
|
+
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, undefined);
|
2510
|
+
}
|
2511
|
+
}
|
2512
|
+
return decorator;
|
2513
|
+
}
|
2514
|
+
Reflect.metadata = metadata;
|
2515
|
+
/**
|
2516
|
+
* Define a unique metadata entry on the target.
|
2517
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
2518
|
+
* @param metadataValue A value that contains attached metadata.
|
2519
|
+
* @param target The target object on which to define metadata.
|
2520
|
+
* @param targetKey (Optional) The property key for the target.
|
2521
|
+
* @example
|
2522
|
+
*
|
2523
|
+
* class C {
|
2524
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
2525
|
+
* // static staticProperty;
|
2526
|
+
* // property;
|
2527
|
+
*
|
2528
|
+
* constructor(p) { }
|
2529
|
+
* static staticMethod(p) { }
|
2530
|
+
* method(p) { }
|
2531
|
+
* }
|
2532
|
+
*
|
2533
|
+
* // constructor
|
2534
|
+
* Reflect.defineMetadata("custom:annotation", options, C);
|
2535
|
+
*
|
2536
|
+
* // property (on constructor)
|
2537
|
+
* Reflect.defineMetadata("custom:annotation", options, C, "staticProperty");
|
2538
|
+
*
|
2539
|
+
* // property (on prototype)
|
2540
|
+
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "property");
|
2541
|
+
*
|
2542
|
+
* // method (on constructor)
|
2543
|
+
* Reflect.defineMetadata("custom:annotation", options, C, "staticMethod");
|
2544
|
+
*
|
2545
|
+
* // method (on prototype)
|
2546
|
+
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "method");
|
2547
|
+
*
|
2548
|
+
* // decorator factory as metadata-producing annotation.
|
2549
|
+
* function MyAnnotation(options): Decorator {
|
2550
|
+
* return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key);
|
2551
|
+
* }
|
2552
|
+
*
|
2553
|
+
*/
|
2554
|
+
function defineMetadata(metadataKey, metadataValue, target, targetKey) {
|
2555
|
+
if (!IsObject(target)) {
|
2556
|
+
throw new TypeError();
|
2557
|
+
}
|
2558
|
+
else if (!IsUndefined(targetKey)) {
|
2559
|
+
targetKey = ToPropertyKey(targetKey);
|
2560
|
+
}
|
2561
|
+
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
|
2562
|
+
}
|
2563
|
+
Reflect.defineMetadata = defineMetadata;
|
2564
|
+
/**
|
2565
|
+
* Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.
|
2566
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
2567
|
+
* @param target The target object on which the metadata is defined.
|
2568
|
+
* @param targetKey (Optional) The property key for the target.
|
2569
|
+
* @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.
|
2570
|
+
* @example
|
2571
|
+
*
|
2572
|
+
* class C {
|
2573
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
2574
|
+
* // static staticProperty;
|
2575
|
+
* // property;
|
2576
|
+
*
|
2577
|
+
* constructor(p) { }
|
2578
|
+
* static staticMethod(p) { }
|
2579
|
+
* method(p) { }
|
2580
|
+
* }
|
2581
|
+
*
|
2582
|
+
* // constructor
|
2583
|
+
* result = Reflect.hasMetadata("custom:annotation", C);
|
2584
|
+
*
|
2585
|
+
* // property (on constructor)
|
2586
|
+
* result = Reflect.hasMetadata("custom:annotation", C, "staticProperty");
|
2587
|
+
*
|
2588
|
+
* // property (on prototype)
|
2589
|
+
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "property");
|
2590
|
+
*
|
2591
|
+
* // method (on constructor)
|
2592
|
+
* result = Reflect.hasMetadata("custom:annotation", C, "staticMethod");
|
2593
|
+
*
|
2594
|
+
* // method (on prototype)
|
2595
|
+
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "method");
|
2596
|
+
*
|
2597
|
+
*/
|
2598
|
+
function hasMetadata(metadataKey, target, targetKey) {
|
2599
|
+
if (!IsObject(target)) {
|
2600
|
+
throw new TypeError();
|
2601
|
+
}
|
2602
|
+
else if (!IsUndefined(targetKey)) {
|
2603
|
+
targetKey = ToPropertyKey(targetKey);
|
2604
|
+
}
|
2605
|
+
return OrdinaryHasMetadata(metadataKey, target, targetKey);
|
2606
|
+
}
|
2607
|
+
Reflect.hasMetadata = hasMetadata;
|
2608
|
+
/**
|
2609
|
+
* Gets a value indicating whether the target object has the provided metadata key defined.
|
2610
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
2611
|
+
* @param target The target object on which the metadata is defined.
|
2612
|
+
* @param targetKey (Optional) The property key for the target.
|
2613
|
+
* @returns `true` if the metadata key was defined on the target object; otherwise, `false`.
|
2614
|
+
* @example
|
2615
|
+
*
|
2616
|
+
* class C {
|
2617
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
2618
|
+
* // static staticProperty;
|
2619
|
+
* // property;
|
2620
|
+
*
|
2621
|
+
* constructor(p) { }
|
2622
|
+
* static staticMethod(p) { }
|
2623
|
+
* method(p) { }
|
2624
|
+
* }
|
2625
|
+
*
|
2626
|
+
* // constructor
|
2627
|
+
* result = Reflect.hasOwnMetadata("custom:annotation", C);
|
2628
|
+
*
|
2629
|
+
* // property (on constructor)
|
2630
|
+
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticProperty");
|
2631
|
+
*
|
2632
|
+
* // property (on prototype)
|
2633
|
+
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "property");
|
2634
|
+
*
|
2635
|
+
* // method (on constructor)
|
2636
|
+
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticMethod");
|
2637
|
+
*
|
2638
|
+
* // method (on prototype)
|
2639
|
+
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "method");
|
2640
|
+
*
|
2641
|
+
*/
|
2642
|
+
function hasOwnMetadata(metadataKey, target, targetKey) {
|
2643
|
+
if (!IsObject(target)) {
|
2644
|
+
throw new TypeError();
|
2645
|
+
}
|
2646
|
+
else if (!IsUndefined(targetKey)) {
|
2647
|
+
targetKey = ToPropertyKey(targetKey);
|
2648
|
+
}
|
2649
|
+
return OrdinaryHasOwnMetadata(metadataKey, target, targetKey);
|
2650
|
+
}
|
2651
|
+
Reflect.hasOwnMetadata = hasOwnMetadata;
|
2652
|
+
/**
|
2653
|
+
* Gets the metadata value for the provided metadata key on the target object or its prototype chain.
|
2654
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
2655
|
+
* @param target The target object on which the metadata is defined.
|
2656
|
+
* @param targetKey (Optional) The property key for the target.
|
2657
|
+
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
|
2658
|
+
* @example
|
2659
|
+
*
|
2660
|
+
* class C {
|
2661
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
2662
|
+
* // static staticProperty;
|
2663
|
+
* // property;
|
2664
|
+
*
|
2665
|
+
* constructor(p) { }
|
2666
|
+
* static staticMethod(p) { }
|
2667
|
+
* method(p) { }
|
2668
|
+
* }
|
2669
|
+
*
|
2670
|
+
* // constructor
|
2671
|
+
* result = Reflect.getMetadata("custom:annotation", C);
|
2672
|
+
*
|
2673
|
+
* // property (on constructor)
|
2674
|
+
* result = Reflect.getMetadata("custom:annotation", C, "staticProperty");
|
2675
|
+
*
|
2676
|
+
* // property (on prototype)
|
2677
|
+
* result = Reflect.getMetadata("custom:annotation", C.prototype, "property");
|
2678
|
+
*
|
2679
|
+
* // method (on constructor)
|
2680
|
+
* result = Reflect.getMetadata("custom:annotation", C, "staticMethod");
|
2681
|
+
*
|
2682
|
+
* // method (on prototype)
|
2683
|
+
* result = Reflect.getMetadata("custom:annotation", C.prototype, "method");
|
2684
|
+
*
|
2685
|
+
*/
|
2686
|
+
function getMetadata(metadataKey, target, targetKey) {
|
2687
|
+
if (!IsObject(target)) {
|
2688
|
+
throw new TypeError();
|
2689
|
+
}
|
2690
|
+
else if (!IsUndefined(targetKey)) {
|
2691
|
+
targetKey = ToPropertyKey(targetKey);
|
2692
|
+
}
|
2693
|
+
return OrdinaryGetMetadata(metadataKey, target, targetKey);
|
2694
|
+
}
|
2695
|
+
Reflect.getMetadata = getMetadata;
|
2696
|
+
/**
|
2697
|
+
* Gets the metadata value for the provided metadata key on the target object.
|
2698
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
2699
|
+
* @param target The target object on which the metadata is defined.
|
2700
|
+
* @param targetKey (Optional) The property key for the target.
|
2701
|
+
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
|
2702
|
+
* @example
|
2703
|
+
*
|
2704
|
+
* class C {
|
2705
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
2706
|
+
* // static staticProperty;
|
2707
|
+
* // property;
|
2708
|
+
*
|
2709
|
+
* constructor(p) { }
|
2710
|
+
* static staticMethod(p) { }
|
2711
|
+
* method(p) { }
|
2712
|
+
* }
|
2713
|
+
*
|
2714
|
+
* // constructor
|
2715
|
+
* result = Reflect.getOwnMetadata("custom:annotation", C);
|
2716
|
+
*
|
2717
|
+
* // property (on constructor)
|
2718
|
+
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticProperty");
|
2719
|
+
*
|
2720
|
+
* // property (on prototype)
|
2721
|
+
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "property");
|
2722
|
+
*
|
2723
|
+
* // method (on constructor)
|
2724
|
+
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticMethod");
|
2725
|
+
*
|
2726
|
+
* // method (on prototype)
|
2727
|
+
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "method");
|
2728
|
+
*
|
2729
|
+
*/
|
2730
|
+
function getOwnMetadata(metadataKey, target, targetKey) {
|
2731
|
+
if (!IsObject(target)) {
|
2732
|
+
throw new TypeError();
|
2733
|
+
}
|
2734
|
+
else if (!IsUndefined(targetKey)) {
|
2735
|
+
targetKey = ToPropertyKey(targetKey);
|
2736
|
+
}
|
2737
|
+
return OrdinaryGetOwnMetadata(metadataKey, target, targetKey);
|
2738
|
+
}
|
2739
|
+
Reflect.getOwnMetadata = getOwnMetadata;
|
2740
|
+
/**
|
2741
|
+
* Gets the metadata keys defined on the target object or its prototype chain.
|
2742
|
+
* @param target The target object on which the metadata is defined.
|
2743
|
+
* @param targetKey (Optional) The property key for the target.
|
2744
|
+
* @returns An array of unique metadata keys.
|
2745
|
+
* @example
|
2746
|
+
*
|
2747
|
+
* class C {
|
2748
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
2749
|
+
* // static staticProperty;
|
2750
|
+
* // property;
|
2751
|
+
*
|
2752
|
+
* constructor(p) { }
|
2753
|
+
* static staticMethod(p) { }
|
2754
|
+
* method(p) { }
|
2755
|
+
* }
|
2756
|
+
*
|
2757
|
+
* // constructor
|
2758
|
+
* result = Reflect.getMetadataKeys(C);
|
2759
|
+
*
|
2760
|
+
* // property (on constructor)
|
2761
|
+
* result = Reflect.getMetadataKeys(C, "staticProperty");
|
2762
|
+
*
|
2763
|
+
* // property (on prototype)
|
2764
|
+
* result = Reflect.getMetadataKeys(C.prototype, "property");
|
2765
|
+
*
|
2766
|
+
* // method (on constructor)
|
2767
|
+
* result = Reflect.getMetadataKeys(C, "staticMethod");
|
2768
|
+
*
|
2769
|
+
* // method (on prototype)
|
2770
|
+
* result = Reflect.getMetadataKeys(C.prototype, "method");
|
2771
|
+
*
|
2772
|
+
*/
|
2773
|
+
function getMetadataKeys(target, targetKey) {
|
2774
|
+
if (!IsObject(target)) {
|
2775
|
+
throw new TypeError();
|
2776
|
+
}
|
2777
|
+
else if (!IsUndefined(targetKey)) {
|
2778
|
+
targetKey = ToPropertyKey(targetKey);
|
2779
|
+
}
|
2780
|
+
return OrdinaryMetadataKeys(target, targetKey);
|
2781
|
+
}
|
2782
|
+
Reflect.getMetadataKeys = getMetadataKeys;
|
2783
|
+
/**
|
2784
|
+
* Gets the unique metadata keys defined on the target object.
|
2785
|
+
* @param target The target object on which the metadata is defined.
|
2786
|
+
* @param targetKey (Optional) The property key for the target.
|
2787
|
+
* @returns An array of unique metadata keys.
|
2788
|
+
* @example
|
2789
|
+
*
|
2790
|
+
* class C {
|
2791
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
2792
|
+
* // static staticProperty;
|
2793
|
+
* // property;
|
2794
|
+
*
|
2795
|
+
* constructor(p) { }
|
2796
|
+
* static staticMethod(p) { }
|
2797
|
+
* method(p) { }
|
2798
|
+
* }
|
2799
|
+
*
|
2800
|
+
* // constructor
|
2801
|
+
* result = Reflect.getOwnMetadataKeys(C);
|
2802
|
+
*
|
2803
|
+
* // property (on constructor)
|
2804
|
+
* result = Reflect.getOwnMetadataKeys(C, "staticProperty");
|
2805
|
+
*
|
2806
|
+
* // property (on prototype)
|
2807
|
+
* result = Reflect.getOwnMetadataKeys(C.prototype, "property");
|
2808
|
+
*
|
2809
|
+
* // method (on constructor)
|
2810
|
+
* result = Reflect.getOwnMetadataKeys(C, "staticMethod");
|
2811
|
+
*
|
2812
|
+
* // method (on prototype)
|
2813
|
+
* result = Reflect.getOwnMetadataKeys(C.prototype, "method");
|
2814
|
+
*
|
2815
|
+
*/
|
2816
|
+
function getOwnMetadataKeys(target, targetKey) {
|
2817
|
+
if (!IsObject(target)) {
|
2818
|
+
throw new TypeError();
|
2819
|
+
}
|
2820
|
+
else if (!IsUndefined(targetKey)) {
|
2821
|
+
targetKey = ToPropertyKey(targetKey);
|
2822
|
+
}
|
2823
|
+
return OrdinaryOwnMetadataKeys(target, targetKey);
|
2824
|
+
}
|
2825
|
+
Reflect.getOwnMetadataKeys = getOwnMetadataKeys;
|
2826
|
+
/**
|
2827
|
+
* Deletes the metadata entry from the target object with the provided key.
|
2828
|
+
* @param metadataKey A key used to store and retrieve metadata.
|
2829
|
+
* @param target The target object on which the metadata is defined.
|
2830
|
+
* @param targetKey (Optional) The property key for the target.
|
2831
|
+
* @returns `true` if the metadata entry was found and deleted; otherwise, false.
|
2832
|
+
* @example
|
2833
|
+
*
|
2834
|
+
* class C {
|
2835
|
+
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
2836
|
+
* // static staticProperty;
|
2837
|
+
* // property;
|
2838
|
+
*
|
2839
|
+
* constructor(p) { }
|
2840
|
+
* static staticMethod(p) { }
|
2841
|
+
* method(p) { }
|
2842
|
+
* }
|
2843
|
+
*
|
2844
|
+
* // constructor
|
2845
|
+
* result = Reflect.deleteMetadata("custom:annotation", C);
|
2846
|
+
*
|
2847
|
+
* // property (on constructor)
|
2848
|
+
* result = Reflect.deleteMetadata("custom:annotation", C, "staticProperty");
|
2849
|
+
*
|
2850
|
+
* // property (on prototype)
|
2851
|
+
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "property");
|
2852
|
+
*
|
2853
|
+
* // method (on constructor)
|
2854
|
+
* result = Reflect.deleteMetadata("custom:annotation", C, "staticMethod");
|
2855
|
+
*
|
2856
|
+
* // method (on prototype)
|
2857
|
+
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "method");
|
2858
|
+
*
|
2859
|
+
*/
|
2860
|
+
function deleteMetadata(metadataKey, target, targetKey) {
|
2861
|
+
if (!IsObject(target)) {
|
2862
|
+
throw new TypeError();
|
2863
|
+
}
|
2864
|
+
else if (!IsUndefined(targetKey)) {
|
2865
|
+
targetKey = ToPropertyKey(targetKey);
|
2866
|
+
}
|
2867
|
+
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#deletemetadata-metadatakey-p-
|
2868
|
+
var metadataMap = GetOrCreateMetadataMap(target, targetKey, false);
|
2869
|
+
if (IsUndefined(metadataMap)) {
|
2870
|
+
return false;
|
2871
|
+
}
|
2872
|
+
if (!metadataMap.delete(metadataKey)) {
|
2873
|
+
return false;
|
2874
|
+
}
|
2875
|
+
if (metadataMap.size > 0) {
|
2876
|
+
return true;
|
2877
|
+
}
|
2878
|
+
var targetMetadata = __Metadata__.get(target);
|
2879
|
+
targetMetadata.delete(targetKey);
|
2880
|
+
if (targetMetadata.size > 0) {
|
2881
|
+
return true;
|
2882
|
+
}
|
2883
|
+
__Metadata__.delete(target);
|
2884
|
+
return true;
|
2885
|
+
}
|
2886
|
+
Reflect.deleteMetadata = deleteMetadata;
|
2887
|
+
function DecorateConstructor(decorators, target) {
|
2888
|
+
for (var i = decorators.length - 1; i >= 0; --i) {
|
2889
|
+
var decorator = decorators[i];
|
2890
|
+
var decorated = decorator(target);
|
2891
|
+
if (!IsUndefined(decorated)) {
|
2892
|
+
if (!IsConstructor(decorated)) {
|
2893
|
+
throw new TypeError();
|
2894
|
+
}
|
2895
|
+
target = decorated;
|
2896
|
+
}
|
2897
|
+
}
|
2898
|
+
return target;
|
2899
|
+
}
|
2900
|
+
function DecoratePropertyWithDescriptor(decorators, target, propertyKey, descriptor) {
|
2901
|
+
for (var i = decorators.length - 1; i >= 0; --i) {
|
2902
|
+
var decorator = decorators[i];
|
2903
|
+
var decorated = decorator(target, propertyKey, descriptor);
|
2904
|
+
if (!IsUndefined(decorated)) {
|
2905
|
+
if (!IsObject(decorated)) {
|
2906
|
+
throw new TypeError();
|
2907
|
+
}
|
2908
|
+
descriptor = decorated;
|
2909
|
+
}
|
2910
|
+
}
|
2911
|
+
return descriptor;
|
2912
|
+
}
|
2913
|
+
function DecoratePropertyWithoutDescriptor(decorators, target, propertyKey) {
|
2914
|
+
for (var i = decorators.length - 1; i >= 0; --i) {
|
2915
|
+
var decorator = decorators[i];
|
2916
|
+
decorator(target, propertyKey);
|
2917
|
+
}
|
2918
|
+
}
|
2919
|
+
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#getorcreatemetadatamap--o-p-create-
|
2920
|
+
function GetOrCreateMetadataMap(target, targetKey, create) {
|
2921
|
+
var targetMetadata = __Metadata__.get(target);
|
2922
|
+
if (!targetMetadata) {
|
2923
|
+
if (!create) {
|
2924
|
+
return undefined;
|
2925
|
+
}
|
2926
|
+
targetMetadata = new _Map();
|
2927
|
+
__Metadata__.set(target, targetMetadata);
|
2928
|
+
}
|
2929
|
+
var keyMetadata = targetMetadata.get(targetKey);
|
2930
|
+
if (!keyMetadata) {
|
2931
|
+
if (!create) {
|
2932
|
+
return undefined;
|
2933
|
+
}
|
2934
|
+
keyMetadata = new _Map();
|
2935
|
+
targetMetadata.set(targetKey, keyMetadata);
|
2936
|
+
}
|
2937
|
+
return keyMetadata;
|
2938
|
+
}
|
2939
|
+
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasmetadata--metadatakey-o-p-
|
2940
|
+
function OrdinaryHasMetadata(MetadataKey, O, P) {
|
2941
|
+
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
2942
|
+
if (hasOwn) {
|
2943
|
+
return true;
|
2944
|
+
}
|
2945
|
+
var parent = GetPrototypeOf(O);
|
2946
|
+
if (parent !== null) {
|
2947
|
+
return OrdinaryHasMetadata(MetadataKey, parent, P);
|
2948
|
+
}
|
2949
|
+
return false;
|
2950
|
+
}
|
2951
|
+
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasownmetadata--metadatakey-o-p-
|
2952
|
+
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
|
2953
|
+
var metadataMap = GetOrCreateMetadataMap(O, P, false);
|
2954
|
+
if (metadataMap === undefined) {
|
2955
|
+
return false;
|
2956
|
+
}
|
2957
|
+
return Boolean(metadataMap.has(MetadataKey));
|
2958
|
+
}
|
2959
|
+
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetmetadata--metadatakey-o-p-
|
2960
|
+
function OrdinaryGetMetadata(MetadataKey, O, P) {
|
2961
|
+
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
2962
|
+
if (hasOwn) {
|
2963
|
+
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
2964
|
+
}
|
2965
|
+
var parent = GetPrototypeOf(O);
|
2966
|
+
if (parent !== null) {
|
2967
|
+
return OrdinaryGetMetadata(MetadataKey, parent, P);
|
2968
|
+
}
|
2969
|
+
return undefined;
|
2970
|
+
}
|
2971
|
+
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetownmetadata--metadatakey-o-p-
|
2972
|
+
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
|
2973
|
+
var metadataMap = GetOrCreateMetadataMap(O, P, false);
|
2974
|
+
if (metadataMap === undefined) {
|
2975
|
+
return undefined;
|
2976
|
+
}
|
2977
|
+
return metadataMap.get(MetadataKey);
|
2978
|
+
}
|
2979
|
+
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarydefineownmetadata--metadatakey-metadatavalue-o-p-
|
2980
|
+
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
|
2981
|
+
var metadataMap = GetOrCreateMetadataMap(O, P, true);
|
2982
|
+
metadataMap.set(MetadataKey, MetadataValue);
|
2983
|
+
}
|
2984
|
+
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarymetadatakeys--o-p-
|
2985
|
+
function OrdinaryMetadataKeys(O, P) {
|
2986
|
+
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
|
2987
|
+
var parent = GetPrototypeOf(O);
|
2988
|
+
if (parent === null) {
|
2989
|
+
return ownKeys;
|
2990
|
+
}
|
2991
|
+
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
2992
|
+
if (parentKeys.length <= 0) {
|
2993
|
+
return ownKeys;
|
2994
|
+
}
|
2995
|
+
if (ownKeys.length <= 0) {
|
2996
|
+
return parentKeys;
|
2997
|
+
}
|
2998
|
+
var set = new _Set();
|
2999
|
+
var keys = [];
|
3000
|
+
for (var _i = 0; _i < ownKeys.length; _i++) {
|
3001
|
+
var key = ownKeys[_i];
|
3002
|
+
var hasKey = set.has(key);
|
3003
|
+
if (!hasKey) {
|
3004
|
+
set.add(key);
|
3005
|
+
keys.push(key);
|
3006
|
+
}
|
3007
|
+
}
|
3008
|
+
for (var _a = 0; _a < parentKeys.length; _a++) {
|
3009
|
+
var key = parentKeys[_a];
|
3010
|
+
var hasKey = set.has(key);
|
3011
|
+
if (!hasKey) {
|
3012
|
+
set.add(key);
|
3013
|
+
keys.push(key);
|
3014
|
+
}
|
3015
|
+
}
|
3016
|
+
return keys;
|
3017
|
+
}
|
3018
|
+
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryownmetadatakeys--o-p-
|
3019
|
+
function OrdinaryOwnMetadataKeys(target, targetKey) {
|
3020
|
+
var metadataMap = GetOrCreateMetadataMap(target, targetKey, false);
|
3021
|
+
var keys = [];
|
3022
|
+
if (metadataMap) {
|
3023
|
+
metadataMap.forEach(function (_, key) { return keys.push(key); });
|
3024
|
+
}
|
3025
|
+
return keys;
|
3026
|
+
}
|
3027
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-undefined-type
|
3028
|
+
function IsUndefined(x) {
|
3029
|
+
return x === undefined;
|
3030
|
+
}
|
3031
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray
|
3032
|
+
function IsArray(x) {
|
3033
|
+
return Array.isArray(x);
|
3034
|
+
}
|
3035
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-type
|
3036
|
+
function IsObject(x) {
|
3037
|
+
return typeof x === "object" ? x !== null : typeof x === "function";
|
3038
|
+
}
|
3039
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor
|
3040
|
+
function IsConstructor(x) {
|
3041
|
+
return typeof x === "function";
|
3042
|
+
}
|
3043
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-symbol-type
|
3044
|
+
function IsSymbol(x) {
|
3045
|
+
return typeof x === "symbol";
|
3046
|
+
}
|
3047
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey
|
3048
|
+
function ToPropertyKey(value) {
|
3049
|
+
if (IsSymbol(value)) {
|
3050
|
+
return value;
|
3051
|
+
}
|
3052
|
+
return String(value);
|
3053
|
+
}
|
3054
|
+
function GetPrototypeOf(O) {
|
3055
|
+
var proto = Object.getPrototypeOf(O);
|
3056
|
+
if (typeof O !== "function" || O === functionPrototype) {
|
3057
|
+
return proto;
|
3058
|
+
}
|
3059
|
+
// TypeScript doesn't set __proto__ in ES5, as it's non-standard.
|
3060
|
+
// Try to determine the superclass constructor. Compatible implementations
|
3061
|
+
// must either set __proto__ on a subclass constructor to the superclass constructor,
|
3062
|
+
// or ensure each class has a valid `constructor` property on its prototype that
|
3063
|
+
// points back to the constructor.
|
3064
|
+
// If this is not the same as Function.[[Prototype]], then this is definately inherited.
|
3065
|
+
// This is the case when in ES6 or when using __proto__ in a compatible browser.
|
3066
|
+
if (proto !== functionPrototype) {
|
3067
|
+
return proto;
|
3068
|
+
}
|
3069
|
+
// If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.
|
3070
|
+
var prototype = O.prototype;
|
3071
|
+
var prototypeProto = Object.getPrototypeOf(prototype);
|
3072
|
+
if (prototypeProto == null || prototypeProto === Object.prototype) {
|
3073
|
+
return proto;
|
3074
|
+
}
|
3075
|
+
// if the constructor was not a function, then we cannot determine the heritage.
|
3076
|
+
var constructor = prototypeProto.constructor;
|
3077
|
+
if (typeof constructor !== "function") {
|
3078
|
+
return proto;
|
3079
|
+
}
|
3080
|
+
// if we have some kind of self-reference, then we cannot determine the heritage.
|
3081
|
+
if (constructor === O) {
|
3082
|
+
return proto;
|
3083
|
+
}
|
3084
|
+
// we have a pretty good guess at the heritage.
|
3085
|
+
return constructor;
|
3086
|
+
}
|
3087
|
+
// naive Map shim
|
3088
|
+
function CreateMapPolyfill() {
|
3089
|
+
var cacheSentinel = {};
|
3090
|
+
function Map() {
|
3091
|
+
this._keys = [];
|
3092
|
+
this._values = [];
|
3093
|
+
this._cache = cacheSentinel;
|
3094
|
+
}
|
3095
|
+
Map.prototype = {
|
3096
|
+
get size() {
|
3097
|
+
return this._keys.length;
|
3098
|
+
},
|
3099
|
+
has: function (key) {
|
3100
|
+
if (key === this._cache) {
|
3101
|
+
return true;
|
3102
|
+
}
|
3103
|
+
if (this._find(key) >= 0) {
|
3104
|
+
this._cache = key;
|
3105
|
+
return true;
|
3106
|
+
}
|
3107
|
+
return false;
|
3108
|
+
},
|
3109
|
+
get: function (key) {
|
3110
|
+
var index = this._find(key);
|
3111
|
+
if (index >= 0) {
|
3112
|
+
this._cache = key;
|
3113
|
+
return this._values[index];
|
3114
|
+
}
|
3115
|
+
return undefined;
|
3116
|
+
},
|
3117
|
+
set: function (key, value) {
|
3118
|
+
this.delete(key);
|
3119
|
+
this._keys.push(key);
|
3120
|
+
this._values.push(value);
|
3121
|
+
this._cache = key;
|
3122
|
+
return this;
|
3123
|
+
},
|
3124
|
+
delete: function (key) {
|
3125
|
+
var index = this._find(key);
|
3126
|
+
if (index >= 0) {
|
3127
|
+
this._keys.splice(index, 1);
|
3128
|
+
this._values.splice(index, 1);
|
3129
|
+
this._cache = cacheSentinel;
|
3130
|
+
return true;
|
3131
|
+
}
|
3132
|
+
return false;
|
3133
|
+
},
|
3134
|
+
clear: function () {
|
3135
|
+
this._keys.length = 0;
|
3136
|
+
this._values.length = 0;
|
3137
|
+
this._cache = cacheSentinel;
|
3138
|
+
},
|
3139
|
+
forEach: function (callback, thisArg) {
|
3140
|
+
var size = this.size;
|
3141
|
+
for (var i = 0; i < size; ++i) {
|
3142
|
+
var key = this._keys[i];
|
3143
|
+
var value = this._values[i];
|
3144
|
+
this._cache = key;
|
3145
|
+
callback.call(this, value, key, this);
|
3146
|
+
}
|
3147
|
+
},
|
3148
|
+
_find: function (key) {
|
3149
|
+
var keys = this._keys;
|
3150
|
+
var size = keys.length;
|
3151
|
+
for (var i = 0; i < size; ++i) {
|
3152
|
+
if (keys[i] === key) {
|
3153
|
+
return i;
|
3154
|
+
}
|
3155
|
+
}
|
3156
|
+
return -1;
|
3157
|
+
}
|
3158
|
+
};
|
3159
|
+
return Map;
|
3160
|
+
}
|
3161
|
+
// naive Set shim
|
3162
|
+
function CreateSetPolyfill() {
|
3163
|
+
var cacheSentinel = {};
|
3164
|
+
function Set() {
|
3165
|
+
this._map = new _Map();
|
3166
|
+
}
|
3167
|
+
Set.prototype = {
|
3168
|
+
get size() {
|
3169
|
+
return this._map.length;
|
3170
|
+
},
|
3171
|
+
has: function (value) {
|
3172
|
+
return this._map.has(value);
|
3173
|
+
},
|
3174
|
+
add: function (value) {
|
3175
|
+
this._map.set(value, value);
|
3176
|
+
return this;
|
3177
|
+
},
|
3178
|
+
delete: function (value) {
|
3179
|
+
return this._map.delete(value);
|
3180
|
+
},
|
3181
|
+
clear: function () {
|
3182
|
+
this._map.clear();
|
3183
|
+
},
|
3184
|
+
forEach: function (callback, thisArg) {
|
3185
|
+
this._map.forEach(callback, thisArg);
|
3186
|
+
}
|
3187
|
+
};
|
3188
|
+
return Set;
|
3189
|
+
}
|
3190
|
+
// naive WeakMap shim
|
3191
|
+
function CreateWeakMapPolyfill() {
|
3192
|
+
var UUID_SIZE = 16;
|
3193
|
+
var isNode = typeof global !== "undefined" && Object.prototype.toString.call(global.process) === '[object process]';
|
3194
|
+
var nodeCrypto = isNode && require("crypto");
|
3195
|
+
var hasOwn = Object.prototype.hasOwnProperty;
|
3196
|
+
var keys = {};
|
3197
|
+
var rootKey = CreateUniqueKey();
|
3198
|
+
function WeakMap() {
|
3199
|
+
this._key = CreateUniqueKey();
|
3200
|
+
}
|
3201
|
+
WeakMap.prototype = {
|
3202
|
+
has: function (target) {
|
3203
|
+
var table = GetOrCreateWeakMapTable(target, false);
|
3204
|
+
if (table) {
|
3205
|
+
return this._key in table;
|
3206
|
+
}
|
3207
|
+
return false;
|
3208
|
+
},
|
3209
|
+
get: function (target) {
|
3210
|
+
var table = GetOrCreateWeakMapTable(target, false);
|
3211
|
+
if (table) {
|
3212
|
+
return table[this._key];
|
3213
|
+
}
|
3214
|
+
return undefined;
|
3215
|
+
},
|
3216
|
+
set: function (target, value) {
|
3217
|
+
var table = GetOrCreateWeakMapTable(target, true);
|
3218
|
+
table[this._key] = value;
|
3219
|
+
return this;
|
3220
|
+
},
|
3221
|
+
delete: function (target) {
|
3222
|
+
var table = GetOrCreateWeakMapTable(target, false);
|
3223
|
+
if (table && this._key in table) {
|
3224
|
+
return delete table[this._key];
|
3225
|
+
}
|
3226
|
+
return false;
|
3227
|
+
},
|
3228
|
+
clear: function () {
|
3229
|
+
// NOTE: not a real clear, just makes the previous data unreachable
|
3230
|
+
this._key = CreateUniqueKey();
|
3231
|
+
}
|
3232
|
+
};
|
3233
|
+
function FillRandomBytes(buffer, size) {
|
3234
|
+
for (var i = 0; i < size; ++i) {
|
3235
|
+
buffer[i] = Math.random() * 255 | 0;
|
3236
|
+
}
|
3237
|
+
}
|
3238
|
+
function GenRandomBytes(size) {
|
3239
|
+
if (nodeCrypto) {
|
3240
|
+
var data = nodeCrypto.randomBytes(size);
|
3241
|
+
return data;
|
3242
|
+
}
|
3243
|
+
else if (typeof Uint8Array === "function") {
|
3244
|
+
var data = new Uint8Array(size);
|
3245
|
+
if (typeof crypto !== "undefined") {
|
3246
|
+
crypto.getRandomValues(data);
|
3247
|
+
}
|
3248
|
+
else if (typeof msCrypto !== "undefined") {
|
3249
|
+
msCrypto.getRandomValues(data);
|
3250
|
+
}
|
3251
|
+
else {
|
3252
|
+
FillRandomBytes(data, size);
|
3253
|
+
}
|
3254
|
+
return data;
|
3255
|
+
}
|
3256
|
+
else {
|
3257
|
+
var data = new Array(size);
|
3258
|
+
FillRandomBytes(data, size);
|
3259
|
+
return data;
|
3260
|
+
}
|
3261
|
+
}
|
3262
|
+
function CreateUUID() {
|
3263
|
+
var data = GenRandomBytes(UUID_SIZE);
|
3264
|
+
// mark as random - RFC 4122 § 4.4
|
3265
|
+
data[6] = data[6] & 0x4f | 0x40;
|
3266
|
+
data[8] = data[8] & 0xbf | 0x80;
|
3267
|
+
var result = "";
|
3268
|
+
for (var offset = 0; offset < UUID_SIZE; ++offset) {
|
3269
|
+
var byte = data[offset];
|
3270
|
+
if (offset === 4 || offset === 6 || offset === 8) {
|
3271
|
+
result += "-";
|
3272
|
+
}
|
3273
|
+
if (byte < 16) {
|
3274
|
+
result += "0";
|
3275
|
+
}
|
3276
|
+
result += byte.toString(16).toLowerCase();
|
3277
|
+
}
|
3278
|
+
return result;
|
3279
|
+
}
|
3280
|
+
function CreateUniqueKey() {
|
3281
|
+
var key;
|
3282
|
+
do {
|
3283
|
+
key = "@@WeakMap@@" + CreateUUID();
|
3284
|
+
} while (hasOwn.call(keys, key));
|
3285
|
+
keys[key] = true;
|
3286
|
+
return key;
|
3287
|
+
}
|
3288
|
+
function GetOrCreateWeakMapTable(target, create) {
|
3289
|
+
if (!hasOwn.call(target, rootKey)) {
|
3290
|
+
if (!create) {
|
3291
|
+
return undefined;
|
3292
|
+
}
|
3293
|
+
Object.defineProperty(target, rootKey, { value: Object.create(null) });
|
3294
|
+
}
|
3295
|
+
return target[rootKey];
|
3296
|
+
}
|
3297
|
+
return WeakMap;
|
3298
|
+
}
|
3299
|
+
// hook global Reflect
|
3300
|
+
(function (__global) {
|
3301
|
+
if (typeof __global.Reflect !== "undefined") {
|
3302
|
+
if (__global.Reflect !== Reflect) {
|
3303
|
+
for (var p in Reflect) {
|
3304
|
+
__global.Reflect[p] = Reflect[p];
|
3305
|
+
}
|
3306
|
+
}
|
3307
|
+
}
|
3308
|
+
else {
|
3309
|
+
__global.Reflect = Reflect;
|
3310
|
+
}
|
3311
|
+
})(typeof window !== "undefined" ? window :
|
3312
|
+
typeof WorkerGlobalScope !== "undefined" ? self :
|
3313
|
+
typeof global !== "undefined" ? global :
|
3314
|
+
Function("return this;")());
|
3315
|
+
})(Reflect || (Reflect = {}));
|
3316
|
+
//# sourceMappingURLDisabled=Reflect.js.map
|