mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-28 03:23:44 +03:00
6910 lines
1.3 MiB
6910 lines
1.3 MiB
/*eslint no-unused-vars: 0*/
|
||
/*eslint strict: 0*/
|
||
var $buoop = { vs: {i:9, f:25, o:12.1, s:7}, c:2 };
|
||
function $buo_f(){
|
||
var e = document.createElement('script');
|
||
e.src = '//browser-update.org/update.min.js';
|
||
document.body.appendChild(e);
|
||
}
|
||
try {document.addEventListener('DOMContentLoaded', $buo_f, false);}
|
||
catch(e){window.attachEvent('onload', $buo_f);}
|
||
|
||
/******/ (function(modules) { // webpackBootstrap
|
||
/******/ // The module cache
|
||
/******/ var installedModules = {};
|
||
|
||
/******/ // The require function
|
||
/******/ function __webpack_require__(moduleId) {
|
||
|
||
/******/ // Check if module is in cache
|
||
/******/ if(installedModules[moduleId])
|
||
/******/ return installedModules[moduleId].exports;
|
||
|
||
/******/ // Create a new module (and put it into the cache)
|
||
/******/ var module = installedModules[moduleId] = {
|
||
/******/ exports: {},
|
||
/******/ id: moduleId,
|
||
/******/ loaded: false
|
||
/******/ };
|
||
|
||
/******/ // Execute the module function
|
||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||
|
||
/******/ // Flag the module as loaded
|
||
/******/ module.loaded = true;
|
||
|
||
/******/ // Return the exports of the module
|
||
/******/ return module.exports;
|
||
/******/ }
|
||
|
||
|
||
/******/ // expose the modules object (__webpack_modules__)
|
||
/******/ __webpack_require__.m = modules;
|
||
|
||
/******/ // expose the module cache
|
||
/******/ __webpack_require__.c = installedModules;
|
||
|
||
/******/ // __webpack_public_path__
|
||
/******/ __webpack_require__.p = "";
|
||
|
||
/******/ // Load entry module and return exports
|
||
/******/ return __webpack_require__(0);
|
||
/******/ })
|
||
/************************************************************************/
|
||
/******/ ([
|
||
/* 0 */
|
||
/***/ function(module, exports, __webpack_require__) {
|
||
|
||
/* WEBPACK VAR INJECTION */(function(global) {"use strict";
|
||
__webpack_require__(1);
|
||
var event_target_1 = __webpack_require__(2);
|
||
var define_property_1 = __webpack_require__(4);
|
||
var register_element_1 = __webpack_require__(5);
|
||
var property_descriptor_1 = __webpack_require__(6);
|
||
var timers_1 = __webpack_require__(8);
|
||
var utils_1 = __webpack_require__(3);
|
||
var set = 'set';
|
||
var clear = 'clear';
|
||
var blockingMethods = ['alert', 'prompt', 'confirm'];
|
||
var _global = typeof window == 'undefined' ? global : window;
|
||
timers_1.patchTimer(_global, set, clear, 'Timeout');
|
||
timers_1.patchTimer(_global, set, clear, 'Interval');
|
||
timers_1.patchTimer(_global, set, clear, 'Immediate');
|
||
timers_1.patchTimer(_global, 'request', 'cancelMacroTask', 'AnimationFrame');
|
||
timers_1.patchTimer(_global, 'mozRequest', 'mozCancel', 'AnimationFrame');
|
||
timers_1.patchTimer(_global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');
|
||
for (var i = 0; i < blockingMethods.length; i++) {
|
||
var name = blockingMethods[i];
|
||
utils_1.patchMethod(_global, name, function (delegate, symbol, name) {
|
||
return function (s, args) {
|
||
return Zone.current.run(delegate, _global, args, name);
|
||
};
|
||
});
|
||
}
|
||
event_target_1.eventTargetPatch(_global);
|
||
property_descriptor_1.propertyDescriptorPatch(_global);
|
||
utils_1.patchClass('MutationObserver');
|
||
utils_1.patchClass('WebKitMutationObserver');
|
||
utils_1.patchClass('FileReader');
|
||
define_property_1.propertyPatch();
|
||
register_element_1.registerElementPatch(_global);
|
||
// Treat XMLHTTPRequest as a macrotask.
|
||
patchXHR(_global);
|
||
var XHR_TASK = utils_1.zoneSymbol('xhrTask');
|
||
function patchXHR(window) {
|
||
function findPendingTask(target) {
|
||
var pendingTask = target[XHR_TASK];
|
||
return pendingTask;
|
||
}
|
||
function scheduleTask(task) {
|
||
var data = task.data;
|
||
data.target.addEventListener('readystatechange', function () {
|
||
if (data.target.readyState === XMLHttpRequest.DONE) {
|
||
if (!data.aborted) {
|
||
task.invoke();
|
||
}
|
||
}
|
||
});
|
||
var storedTask = data.target[XHR_TASK];
|
||
if (!storedTask) {
|
||
data.target[XHR_TASK] = task;
|
||
}
|
||
setNative.apply(data.target, data.args);
|
||
return task;
|
||
}
|
||
function placeholderCallback() {
|
||
}
|
||
function clearTask(task) {
|
||
var data = task.data;
|
||
// Note - ideally, we would call data.target.removeEventListener here, but it's too late
|
||
// to prevent it from firing. So instead, we store info for the event listener.
|
||
data.aborted = true;
|
||
return clearNative.apply(data.target, data.args);
|
||
}
|
||
var setNative = utils_1.patchMethod(window.XMLHttpRequest.prototype, 'send', function () { return function (self, args) {
|
||
var zone = Zone.current;
|
||
var options = {
|
||
target: self,
|
||
isPeriodic: false,
|
||
delay: null,
|
||
args: args,
|
||
aborted: false
|
||
};
|
||
return zone.scheduleMacroTask('XMLHttpRequest.send', placeholderCallback, options, scheduleTask, clearTask);
|
||
}; });
|
||
var clearNative = utils_1.patchMethod(window.XMLHttpRequest.prototype, 'abort', function (delegate) { return function (self, args) {
|
||
var task = findPendingTask(self);
|
||
if (task && typeof task.type == 'string') {
|
||
// If the XHR has already completed, do nothing.
|
||
if (task.cancelFn == null) {
|
||
return;
|
||
}
|
||
task.zone.cancelTask(task);
|
||
}
|
||
// Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no task to cancel. Do nothing.
|
||
}; });
|
||
}
|
||
/// GEO_LOCATION
|
||
if (_global['navigator'] && _global['navigator'].geolocation) {
|
||
utils_1.patchPrototype(_global['navigator'].geolocation, [
|
||
'getCurrentPosition',
|
||
'watchPosition'
|
||
]);
|
||
}
|
||
|
||
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
||
|
||
/***/ },
|
||
/* 1 */
|
||
/***/ function(module, exports) {
|
||
|
||
/* WEBPACK VAR INJECTION */(function(global) {;
|
||
;
|
||
var Zone = (function (global) {
|
||
var Zone = (function () {
|
||
function Zone(parent, zoneSpec) {
|
||
this._properties = null;
|
||
this._parent = parent;
|
||
this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>';
|
||
this._properties = zoneSpec && zoneSpec.properties || {};
|
||
this._zoneDelegate = new ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);
|
||
}
|
||
Object.defineProperty(Zone, "current", {
|
||
get: function () { return _currentZone; },
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
;
|
||
Object.defineProperty(Zone, "currentTask", {
|
||
get: function () { return _currentTask; },
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
;
|
||
Object.defineProperty(Zone.prototype, "parent", {
|
||
get: function () { return this._parent; },
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
;
|
||
Object.defineProperty(Zone.prototype, "name", {
|
||
get: function () { return this._name; },
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
;
|
||
Zone.prototype.get = function (key) {
|
||
var current = this;
|
||
while (current) {
|
||
if (current._properties.hasOwnProperty(key)) {
|
||
return current._properties[key];
|
||
}
|
||
current = current._parent;
|
||
}
|
||
};
|
||
Zone.prototype.fork = function (zoneSpec) {
|
||
if (!zoneSpec)
|
||
throw new Error('ZoneSpec required!');
|
||
return this._zoneDelegate.fork(this, zoneSpec);
|
||
};
|
||
Zone.prototype.wrap = function (callback, source) {
|
||
if (typeof callback !== 'function') {
|
||
throw new Error('Expecting function got: ' + callback);
|
||
}
|
||
var _callback = this._zoneDelegate.intercept(this, callback, source);
|
||
var zone = this;
|
||
return function () {
|
||
return zone.runGuarded(_callback, this, arguments, source);
|
||
};
|
||
};
|
||
Zone.prototype.run = function (callback, applyThis, applyArgs, source) {
|
||
if (applyThis === void 0) { applyThis = null; }
|
||
if (applyArgs === void 0) { applyArgs = null; }
|
||
if (source === void 0) { source = null; }
|
||
var oldZone = _currentZone;
|
||
_currentZone = this;
|
||
try {
|
||
return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
|
||
}
|
||
finally {
|
||
_currentZone = oldZone;
|
||
}
|
||
};
|
||
Zone.prototype.runGuarded = function (callback, applyThis, applyArgs, source) {
|
||
if (applyThis === void 0) { applyThis = null; }
|
||
if (applyArgs === void 0) { applyArgs = null; }
|
||
if (source === void 0) { source = null; }
|
||
var oldZone = _currentZone;
|
||
_currentZone = this;
|
||
try {
|
||
try {
|
||
return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
|
||
}
|
||
catch (error) {
|
||
if (this._zoneDelegate.handleError(this, error)) {
|
||
throw error;
|
||
}
|
||
}
|
||
}
|
||
finally {
|
||
_currentZone = oldZone;
|
||
}
|
||
};
|
||
Zone.prototype.runTask = function (task, applyThis, applyArgs) {
|
||
task.runCount++;
|
||
if (task.zone != this)
|
||
throw new Error('A task can only be run in the zone which created it! (Creation: ' +
|
||
task.zone.name + '; Execution: ' + this.name + ')');
|
||
var previousTask = _currentTask;
|
||
_currentTask = task;
|
||
var oldZone = _currentZone;
|
||
_currentZone = this;
|
||
try {
|
||
if (task.type == 'macroTask' && task.data && !task.data.isPeriodic) {
|
||
task.cancelFn = null;
|
||
}
|
||
try {
|
||
return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);
|
||
}
|
||
catch (error) {
|
||
if (this._zoneDelegate.handleError(this, error)) {
|
||
throw error;
|
||
}
|
||
}
|
||
}
|
||
finally {
|
||
_currentZone = oldZone;
|
||
_currentTask = previousTask;
|
||
}
|
||
};
|
||
Zone.prototype.scheduleMicroTask = function (source, callback, data, customSchedule) {
|
||
return this._zoneDelegate.scheduleTask(this, new ZoneTask('microTask', this, source, callback, data, customSchedule, null));
|
||
};
|
||
Zone.prototype.scheduleMacroTask = function (source, callback, data, customSchedule, customCancel) {
|
||
return this._zoneDelegate.scheduleTask(this, new ZoneTask('macroTask', this, source, callback, data, customSchedule, customCancel));
|
||
};
|
||
Zone.prototype.scheduleEventTask = function (source, callback, data, customSchedule, customCancel) {
|
||
return this._zoneDelegate.scheduleTask(this, new ZoneTask('eventTask', this, source, callback, data, customSchedule, customCancel));
|
||
};
|
||
Zone.prototype.cancelTask = function (task) {
|
||
var value = this._zoneDelegate.cancelTask(this, task);
|
||
task.runCount = -1;
|
||
task.cancelFn = null;
|
||
return value;
|
||
};
|
||
Zone.__symbol__ = __symbol__;
|
||
return Zone;
|
||
}());
|
||
;
|
||
var ZoneDelegate = (function () {
|
||
function ZoneDelegate(zone, parentDelegate, zoneSpec) {
|
||
this._taskCounts = { microTask: 0, macroTask: 0, eventTask: 0 };
|
||
this.zone = zone;
|
||
this._parentDelegate = parentDelegate;
|
||
this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);
|
||
this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);
|
||
this._interceptZS = zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);
|
||
this._interceptDlgt = zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);
|
||
this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);
|
||
this._invokeDlgt = zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);
|
||
this._handleErrorZS = zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);
|
||
this._handleErrorDlgt = zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);
|
||
this._scheduleTaskZS = zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);
|
||
this._scheduleTaskDlgt = zoneSpec && (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);
|
||
this._invokeTaskZS = zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);
|
||
this._invokeTaskDlgt = zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);
|
||
this._cancelTaskZS = zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);
|
||
this._cancelTaskDlgt = zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);
|
||
this._hasTaskZS = zoneSpec && (zoneSpec.onHasTask ? zoneSpec : parentDelegate._hasTaskZS);
|
||
this._hasTaskDlgt = zoneSpec && (zoneSpec.onHasTask ? parentDelegate : parentDelegate._hasTaskDlgt);
|
||
}
|
||
ZoneDelegate.prototype.fork = function (targetZone, zoneSpec) {
|
||
return this._forkZS
|
||
? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec)
|
||
: new Zone(targetZone, zoneSpec);
|
||
};
|
||
ZoneDelegate.prototype.intercept = function (targetZone, callback, source) {
|
||
return this._interceptZS
|
||
? this._interceptZS.onIntercept(this._interceptDlgt, this.zone, targetZone, callback, source)
|
||
: callback;
|
||
};
|
||
ZoneDelegate.prototype.invoke = function (targetZone, callback, applyThis, applyArgs, source) {
|
||
return this._invokeZS
|
||
? this._invokeZS.onInvoke(this._invokeDlgt, this.zone, targetZone, callback, applyThis, applyArgs, source)
|
||
: callback.apply(applyThis, applyArgs);
|
||
};
|
||
ZoneDelegate.prototype.handleError = function (targetZone, error) {
|
||
return this._handleErrorZS
|
||
? this._handleErrorZS.onHandleError(this._handleErrorDlgt, this.zone, targetZone, error)
|
||
: true;
|
||
};
|
||
ZoneDelegate.prototype.scheduleTask = function (targetZone, task) {
|
||
try {
|
||
if (this._scheduleTaskZS) {
|
||
return this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this.zone, targetZone, task);
|
||
}
|
||
else if (task.scheduleFn) {
|
||
task.scheduleFn(task);
|
||
}
|
||
else if (task.type == 'microTask') {
|
||
scheduleMicroTask(task);
|
||
}
|
||
else {
|
||
throw new Error('Task is missing scheduleFn.');
|
||
}
|
||
return task;
|
||
}
|
||
finally {
|
||
if (targetZone == this.zone) {
|
||
this._updateTaskCount(task.type, 1);
|
||
}
|
||
}
|
||
};
|
||
ZoneDelegate.prototype.invokeTask = function (targetZone, task, applyThis, applyArgs) {
|
||
try {
|
||
return this._invokeTaskZS
|
||
? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this.zone, targetZone, task, applyThis, applyArgs)
|
||
: task.callback.apply(applyThis, applyArgs);
|
||
}
|
||
finally {
|
||
if (targetZone == this.zone && (task.type != 'eventTask') && !(task.data && task.data.isPeriodic)) {
|
||
this._updateTaskCount(task.type, -1);
|
||
}
|
||
}
|
||
};
|
||
ZoneDelegate.prototype.cancelTask = function (targetZone, task) {
|
||
var value;
|
||
if (this._cancelTaskZS) {
|
||
value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this.zone, targetZone, task);
|
||
}
|
||
else if (!task.cancelFn) {
|
||
throw new Error('Task does not support cancellation, or is already canceled.');
|
||
}
|
||
else {
|
||
value = task.cancelFn(task);
|
||
}
|
||
if (targetZone == this.zone) {
|
||
// this should not be in the finally block, because exceptions assume not canceled.
|
||
this._updateTaskCount(task.type, -1);
|
||
}
|
||
return value;
|
||
};
|
||
ZoneDelegate.prototype.hasTask = function (targetZone, isEmpty) {
|
||
return this._hasTaskZS && this._hasTaskZS.onHasTask(this._hasTaskDlgt, this.zone, targetZone, isEmpty);
|
||
};
|
||
ZoneDelegate.prototype._updateTaskCount = function (type, count) {
|
||
var counts = this._taskCounts;
|
||
var prev = counts[type];
|
||
var next = counts[type] = prev + count;
|
||
if (next < 0) {
|
||
throw new Error('More tasks executed then were scheduled.');
|
||
}
|
||
if (prev == 0 || next == 0) {
|
||
var isEmpty = {
|
||
microTask: counts.microTask > 0,
|
||
macroTask: counts.macroTask > 0,
|
||
eventTask: counts.eventTask > 0,
|
||
change: type
|
||
};
|
||
try {
|
||
this.hasTask(this.zone, isEmpty);
|
||
}
|
||
finally {
|
||
if (this._parentDelegate) {
|
||
this._parentDelegate._updateTaskCount(type, count);
|
||
}
|
||
}
|
||
}
|
||
};
|
||
return ZoneDelegate;
|
||
}());
|
||
var ZoneTask = (function () {
|
||
function ZoneTask(type, zone, source, callback, options, scheduleFn, cancelFn) {
|
||
this.runCount = 0;
|
||
this.type = type;
|
||
this.zone = zone;
|
||
this.source = source;
|
||
this.data = options;
|
||
this.scheduleFn = scheduleFn;
|
||
this.cancelFn = cancelFn;
|
||
this.callback = callback;
|
||
var self = this;
|
||
this.invoke = function () {
|
||
try {
|
||
return zone.runTask(self, this, arguments);
|
||
}
|
||
finally {
|
||
drainMicroTaskQueue();
|
||
}
|
||
};
|
||
}
|
||
return ZoneTask;
|
||
}());
|
||
function __symbol__(name) { return '__zone_symbol__' + name; }
|
||
;
|
||
var symbolSetTimeout = __symbol__('setTimeout');
|
||
var symbolPromise = __symbol__('Promise');
|
||
var symbolThen = __symbol__('then');
|
||
var _currentZone = new Zone(null, null);
|
||
var _currentTask = null;
|
||
var _microTaskQueue = [];
|
||
var _isDrainingMicrotaskQueue = false;
|
||
var _uncaughtPromiseErrors = [];
|
||
var _drainScheduled = false;
|
||
function scheduleQueueDrain() {
|
||
if (!_drainScheduled && !_currentTask && _microTaskQueue.length == 0) {
|
||
// We are not running in Task, so we need to kickstart the microtask queue.
|
||
if (global[symbolPromise]) {
|
||
global[symbolPromise].resolve(0)[symbolThen](drainMicroTaskQueue);
|
||
}
|
||
else {
|
||
global[symbolSetTimeout](drainMicroTaskQueue, 0);
|
||
}
|
||
}
|
||
}
|
||
function scheduleMicroTask(task) {
|
||
scheduleQueueDrain();
|
||
_microTaskQueue.push(task);
|
||
}
|
||
function consoleError(e) {
|
||
var rejection = e && e.rejection;
|
||
if (rejection) {
|
||
console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection);
|
||
}
|
||
console.error(e);
|
||
}
|
||
function drainMicroTaskQueue() {
|
||
if (!_isDrainingMicrotaskQueue) {
|
||
_isDrainingMicrotaskQueue = true;
|
||
while (_microTaskQueue.length) {
|
||
var queue = _microTaskQueue;
|
||
_microTaskQueue = [];
|
||
for (var i = 0; i < queue.length; i++) {
|
||
var task = queue[i];
|
||
try {
|
||
task.zone.runTask(task, null, null);
|
||
}
|
||
catch (e) {
|
||
consoleError(e);
|
||
}
|
||
}
|
||
}
|
||
while (_uncaughtPromiseErrors.length) {
|
||
var uncaughtPromiseErrors = _uncaughtPromiseErrors;
|
||
_uncaughtPromiseErrors = [];
|
||
var _loop_1 = function(i) {
|
||
var uncaughtPromiseError = uncaughtPromiseErrors[i];
|
||
try {
|
||
uncaughtPromiseError.zone.runGuarded(function () { throw uncaughtPromiseError; });
|
||
}
|
||
catch (e) {
|
||
consoleError(e);
|
||
}
|
||
};
|
||
for (var i = 0; i < uncaughtPromiseErrors.length; i++) {
|
||
_loop_1(i);
|
||
}
|
||
}
|
||
_isDrainingMicrotaskQueue = false;
|
||
_drainScheduled = false;
|
||
}
|
||
}
|
||
function isThenable(value) {
|
||
return value && value.then;
|
||
}
|
||
function forwardResolution(value) { return value; }
|
||
function forwardRejection(rejection) { return ZoneAwarePromise.reject(rejection); }
|
||
var symbolState = __symbol__('state');
|
||
var symbolValue = __symbol__('value');
|
||
var source = 'Promise.then';
|
||
var UNRESOLVED = null;
|
||
var RESOLVED = true;
|
||
var REJECTED = false;
|
||
var REJECTED_NO_CATCH = 0;
|
||
function makeResolver(promise, state) {
|
||
return function (v) {
|
||
resolvePromise(promise, state, v);
|
||
// Do not return value or you will break the Promise spec.
|
||
};
|
||
}
|
||
function resolvePromise(promise, state, value) {
|
||
if (promise[symbolState] === UNRESOLVED) {
|
||
if (value instanceof ZoneAwarePromise && value[symbolState] !== UNRESOLVED) {
|
||
clearRejectedNoCatch(value);
|
||
resolvePromise(promise, value[symbolState], value[symbolValue]);
|
||
}
|
||
else if (isThenable(value)) {
|
||
value.then(makeResolver(promise, state), makeResolver(promise, false));
|
||
}
|
||
else {
|
||
promise[symbolState] = state;
|
||
var queue = promise[symbolValue];
|
||
promise[symbolValue] = value;
|
||
for (var i = 0; i < queue.length;) {
|
||
scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);
|
||
}
|
||
if (queue.length == 0 && state == REJECTED) {
|
||
promise[symbolState] = REJECTED_NO_CATCH;
|
||
try {
|
||
throw new Error("Uncaught (in promise): " + value);
|
||
}
|
||
catch (e) {
|
||
var error = e;
|
||
error.rejection = value;
|
||
error.promise = promise;
|
||
error.zone = Zone.current;
|
||
error.task = Zone.currentTask;
|
||
_uncaughtPromiseErrors.push(error);
|
||
scheduleQueueDrain();
|
||
}
|
||
}
|
||
}
|
||
}
|
||
// Resolving an already resolved promise is a noop.
|
||
return promise;
|
||
}
|
||
function clearRejectedNoCatch(promise) {
|
||
if (promise[symbolState] === REJECTED_NO_CATCH) {
|
||
promise[symbolState] = REJECTED;
|
||
for (var i = 0; i < _uncaughtPromiseErrors.length; i++) {
|
||
if (promise === _uncaughtPromiseErrors[i].promise) {
|
||
_uncaughtPromiseErrors.splice(i, 1);
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {
|
||
clearRejectedNoCatch(promise);
|
||
var delegate = promise[symbolState] ? onFulfilled || forwardResolution : onRejected || forwardRejection;
|
||
zone.scheduleMicroTask(source, function () {
|
||
try {
|
||
resolvePromise(chainPromise, true, zone.run(delegate, null, [promise[symbolValue]]));
|
||
}
|
||
catch (error) {
|
||
resolvePromise(chainPromise, false, error);
|
||
}
|
||
});
|
||
}
|
||
var ZoneAwarePromise = (function () {
|
||
function ZoneAwarePromise(executor) {
|
||
var promise = this;
|
||
promise[symbolState] = UNRESOLVED;
|
||
promise[symbolValue] = []; // queue;
|
||
try {
|
||
executor && executor(makeResolver(promise, RESOLVED), makeResolver(promise, REJECTED));
|
||
}
|
||
catch (e) {
|
||
resolvePromise(promise, false, e);
|
||
}
|
||
}
|
||
ZoneAwarePromise.resolve = function (value) {
|
||
return resolvePromise(new this(null), RESOLVED, value);
|
||
};
|
||
ZoneAwarePromise.reject = function (error) {
|
||
return resolvePromise(new this(null), REJECTED, error);
|
||
};
|
||
ZoneAwarePromise.race = function (values) {
|
||
var resolve;
|
||
var reject;
|
||
var promise = new this(function (res, rej) { resolve = res; reject = rej; });
|
||
function onResolve(value) { promise && (promise = null || resolve(value)); }
|
||
function onReject(error) { promise && (promise = null || reject(error)); }
|
||
for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {
|
||
var value = values_1[_i];
|
||
if (!isThenable(value)) {
|
||
value = this.resolve(value);
|
||
}
|
||
value.then(onResolve, onReject);
|
||
}
|
||
return promise;
|
||
};
|
||
ZoneAwarePromise.all = function (values) {
|
||
var resolve;
|
||
var reject;
|
||
var promise = new this(function (res, rej) { resolve = res; reject = rej; });
|
||
var count = 0;
|
||
var resolvedValues = [];
|
||
function onReject(error) { promise && reject(error); promise = null; }
|
||
for (var _i = 0, values_2 = values; _i < values_2.length; _i++) {
|
||
var value = values_2[_i];
|
||
if (!isThenable(value)) {
|
||
value = this.resolve(value);
|
||
}
|
||
value.then((function (index) { return function (value) {
|
||
resolvedValues[index] = value;
|
||
count--;
|
||
if (promise && !count) {
|
||
resolve(resolvedValues);
|
||
}
|
||
promise == null;
|
||
}; })(count), onReject);
|
||
count++;
|
||
}
|
||
if (!count)
|
||
resolve(resolvedValues);
|
||
return promise;
|
||
};
|
||
ZoneAwarePromise.prototype.then = function (onFulfilled, onRejected) {
|
||
var chainPromise = new ZoneAwarePromise(null);
|
||
var zone = Zone.current;
|
||
if (this[symbolState] == UNRESOLVED) {
|
||
this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);
|
||
}
|
||
else {
|
||
scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);
|
||
}
|
||
return chainPromise;
|
||
};
|
||
ZoneAwarePromise.prototype.catch = function (onRejected) {
|
||
return this.then(null, onRejected);
|
||
};
|
||
return ZoneAwarePromise;
|
||
}());
|
||
var NativePromise = global[__symbol__('Promise')] = global.Promise;
|
||
global.Promise = ZoneAwarePromise;
|
||
if (NativePromise) {
|
||
var NativePromiseProtototype = NativePromise.prototype;
|
||
var NativePromiseThen_1 = NativePromiseProtototype[__symbol__('then')]
|
||
= NativePromiseProtototype.then;
|
||
NativePromiseProtototype.then = function (onResolve, onReject) {
|
||
var nativePromise = this;
|
||
return new ZoneAwarePromise(function (resolve, reject) {
|
||
NativePromiseThen_1.call(nativePromise, resolve, reject);
|
||
}).then(onResolve, onReject);
|
||
};
|
||
}
|
||
return global.Zone = Zone;
|
||
})(typeof window === 'undefined' ? global : window);
|
||
|
||
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
||
|
||
/***/ },
|
||
/* 2 */
|
||
/***/ function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
var utils_1 = __webpack_require__(3);
|
||
var WTF_ISSUE_555 = 'Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video';
|
||
var NO_EVENT_TARGET = 'ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex'.split(',');
|
||
var EVENT_TARGET = 'EventTarget';
|
||
function eventTargetPatch(_global) {
|
||
var apis = [];
|
||
var isWtf = _global['wtf'];
|
||
if (isWtf) {
|
||
// Workaround for: https://github.com/google/tracing-framework/issues/555
|
||
apis = WTF_ISSUE_555.split(',').map(function (v) { return 'HTML' + v + 'Element'; }).concat(NO_EVENT_TARGET);
|
||
}
|
||
else if (_global[EVENT_TARGET]) {
|
||
apis.push(EVENT_TARGET);
|
||
}
|
||
else {
|
||
// Note: EventTarget is not available in all browsers,
|
||
// if it's not available, we instead patch the APIs in the IDL that inherit from EventTarget
|
||
apis = NO_EVENT_TARGET;
|
||
}
|
||
for (var i = 0; i < apis.length; i++) {
|
||
var type = _global[apis[i]];
|
||
utils_1.patchEventTargetMethods(type && type.prototype);
|
||
}
|
||
}
|
||
exports.eventTargetPatch = eventTargetPatch;
|
||
|
||
|
||
/***/ },
|
||
/* 3 */
|
||
/***/ function(module, exports) {
|
||
|
||
/* WEBPACK VAR INJECTION */(function(global) {/**
|
||
* Suppress closure compiler errors about unknown 'process' variable
|
||
* @fileoverview
|
||
* @suppress {undefinedVars}
|
||
*/
|
||
"use strict";
|
||
exports.zoneSymbol = Zone['__symbol__'];
|
||
var _global = typeof window == 'undefined' ? global : window;
|
||
function bindArguments(args, source) {
|
||
for (var i = args.length - 1; i >= 0; i--) {
|
||
if (typeof args[i] === 'function') {
|
||
args[i] = Zone.current.wrap(args[i], source + '_' + i);
|
||
}
|
||
}
|
||
return args;
|
||
}
|
||
exports.bindArguments = bindArguments;
|
||
;
|
||
function patchPrototype(prototype, fnNames) {
|
||
var source = prototype.constructor['name'];
|
||
var _loop_1 = function(i) {
|
||
var name_1 = fnNames[i];
|
||
var delegate = prototype[name_1];
|
||
if (delegate) {
|
||
prototype[name_1] = (function (delegate) {
|
||
return function () {
|
||
return delegate.apply(this, bindArguments(arguments, source + '.' + name_1));
|
||
};
|
||
})(delegate);
|
||
}
|
||
};
|
||
for (var i = 0; i < fnNames.length; i++) {
|
||
_loop_1(i);
|
||
}
|
||
}
|
||
exports.patchPrototype = patchPrototype;
|
||
;
|
||
exports.isWebWorker = (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope);
|
||
exports.isNode = (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]');
|
||
exports.isBrowser = !exports.isNode && !exports.isWebWorker && !!(typeof window !== 'undefined' && window['HTMLElement']);
|
||
function patchProperty(obj, prop) {
|
||
var desc = Object.getOwnPropertyDescriptor(obj, prop) || {
|
||
enumerable: true,
|
||
configurable: true
|
||
};
|
||
// A property descriptor cannot have getter/setter and be writable
|
||
// deleting the writable and value properties avoids this error:
|
||
//
|
||
// TypeError: property descriptors must not specify a value or be writable when a
|
||
// getter or setter has been specified
|
||
delete desc.writable;
|
||
delete desc.value;
|
||
// substr(2) cuz 'onclick' -> 'click', etc
|
||
var eventName = prop.substr(2);
|
||
var _prop = '_' + prop;
|
||
desc.set = function (fn) {
|
||
if (this[_prop]) {
|
||
this.removeEventListener(eventName, this[_prop]);
|
||
}
|
||
if (typeof fn === 'function') {
|
||
var wrapFn = function (event) {
|
||
var result;
|
||
result = fn.apply(this, arguments);
|
||
if (result != undefined && !result)
|
||
event.preventDefault();
|
||
};
|
||
this[_prop] = wrapFn;
|
||
this.addEventListener(eventName, wrapFn, false);
|
||
}
|
||
else {
|
||
this[_prop] = null;
|
||
}
|
||
};
|
||
desc.get = function () {
|
||
return this[_prop];
|
||
};
|
||
Object.defineProperty(obj, prop, desc);
|
||
}
|
||
exports.patchProperty = patchProperty;
|
||
;
|
||
function patchOnProperties(obj, properties) {
|
||
var onProperties = [];
|
||
for (var prop in obj) {
|
||
if (prop.substr(0, 2) == 'on') {
|
||
onProperties.push(prop);
|
||
}
|
||
}
|
||
for (var j = 0; j < onProperties.length; j++) {
|
||
patchProperty(obj, onProperties[j]);
|
||
}
|
||
if (properties) {
|
||
for (var i = 0; i < properties.length; i++) {
|
||
patchProperty(obj, 'on' + properties[i]);
|
||
}
|
||
}
|
||
}
|
||
exports.patchOnProperties = patchOnProperties;
|
||
;
|
||
var EVENT_TASKS = exports.zoneSymbol('eventTasks');
|
||
var ADD_EVENT_LISTENER = 'addEventListener';
|
||
var REMOVE_EVENT_LISTENER = 'removeEventListener';
|
||
var SYMBOL_ADD_EVENT_LISTENER = exports.zoneSymbol(ADD_EVENT_LISTENER);
|
||
var SYMBOL_REMOVE_EVENT_LISTENER = exports.zoneSymbol(REMOVE_EVENT_LISTENER);
|
||
function findExistingRegisteredTask(target, handler, name, capture, remove) {
|
||
var eventTasks = target[EVENT_TASKS];
|
||
if (eventTasks) {
|
||
for (var i = 0; i < eventTasks.length; i++) {
|
||
var eventTask = eventTasks[i];
|
||
var data = eventTask.data;
|
||
if (data.handler === handler
|
||
&& data.useCapturing === capture
|
||
&& data.eventName === name) {
|
||
if (remove) {
|
||
eventTasks.splice(i, 1);
|
||
}
|
||
return eventTask;
|
||
}
|
||
}
|
||
}
|
||
return null;
|
||
}
|
||
function attachRegisteredEvent(target, eventTask) {
|
||
var eventTasks = target[EVENT_TASKS];
|
||
if (!eventTasks) {
|
||
eventTasks = target[EVENT_TASKS] = [];
|
||
}
|
||
eventTasks.push(eventTask);
|
||
}
|
||
function scheduleEventListener(eventTask) {
|
||
var meta = eventTask.data;
|
||
attachRegisteredEvent(meta.target, eventTask);
|
||
return meta.target[SYMBOL_ADD_EVENT_LISTENER](meta.eventName, eventTask.invoke, meta.useCapturing);
|
||
}
|
||
function cancelEventListener(eventTask) {
|
||
var meta = eventTask.data;
|
||
findExistingRegisteredTask(meta.target, eventTask.invoke, meta.eventName, meta.useCapturing, true);
|
||
meta.target[SYMBOL_REMOVE_EVENT_LISTENER](meta.eventName, eventTask.invoke, meta.useCapturing);
|
||
}
|
||
function zoneAwareAddEventListener(self, args) {
|
||
var eventName = args[0];
|
||
var handler = args[1];
|
||
var useCapturing = args[2] || false;
|
||
// - Inside a Web Worker, `this` is undefined, the context is `global`
|
||
// - When `addEventListener` is called on the global context in strict mode, `this` is undefined
|
||
// see https://github.com/angular/zone.js/issues/190
|
||
var target = self || _global;
|
||
var delegate = null;
|
||
if (typeof handler == 'function') {
|
||
delegate = handler;
|
||
}
|
||
else if (handler && handler.handleEvent) {
|
||
delegate = function (event) { return handler.handleEvent(event); };
|
||
}
|
||
var validZoneHandler = false;
|
||
try {
|
||
// In cross site contexts (such as WebDriver frameworks like Selenium),
|
||
// accessing the handler object here will cause an exception to be thrown which
|
||
// will fail tests prematurely.
|
||
validZoneHandler = handler && handler.toString() === "[object FunctionWrapper]";
|
||
}
|
||
catch (e) {
|
||
// Returning nothing here is fine, because objects in a cross-site context are unusable
|
||
return;
|
||
}
|
||
// Ignore special listeners of IE11 & Edge dev tools, see https://github.com/angular/zone.js/issues/150
|
||
if (!delegate || validZoneHandler) {
|
||
return target[SYMBOL_ADD_EVENT_LISTENER](eventName, handler, useCapturing);
|
||
}
|
||
var eventTask = findExistingRegisteredTask(target, handler, eventName, useCapturing, false);
|
||
if (eventTask) {
|
||
// we already registered, so this will have noop.
|
||
return target[SYMBOL_ADD_EVENT_LISTENER](eventName, eventTask.invoke, useCapturing);
|
||
}
|
||
var zone = Zone.current;
|
||
var source = target.constructor['name'] + '.addEventListener:' + eventName;
|
||
var data = {
|
||
target: target,
|
||
eventName: eventName,
|
||
name: eventName,
|
||
useCapturing: useCapturing,
|
||
handler: handler
|
||
};
|
||
zone.scheduleEventTask(source, delegate, data, scheduleEventListener, cancelEventListener);
|
||
}
|
||
function zoneAwareRemoveEventListener(self, args) {
|
||
var eventName = args[0];
|
||
var handler = args[1];
|
||
var useCapturing = args[2] || false;
|
||
// - Inside a Web Worker, `this` is undefined, the context is `global`
|
||
// - When `addEventListener` is called on the global context in strict mode, `this` is undefined
|
||
// see https://github.com/angular/zone.js/issues/190
|
||
var target = self || _global;
|
||
var eventTask = findExistingRegisteredTask(target, handler, eventName, useCapturing, true);
|
||
if (eventTask) {
|
||
eventTask.zone.cancelTask(eventTask);
|
||
}
|
||
else {
|
||
target[SYMBOL_REMOVE_EVENT_LISTENER](eventName, handler, useCapturing);
|
||
}
|
||
}
|
||
function patchEventTargetMethods(obj) {
|
||
if (obj && obj.addEventListener) {
|
||
patchMethod(obj, ADD_EVENT_LISTENER, function () { return zoneAwareAddEventListener; });
|
||
patchMethod(obj, REMOVE_EVENT_LISTENER, function () { return zoneAwareRemoveEventListener; });
|
||
return true;
|
||
}
|
||
else {
|
||
return false;
|
||
}
|
||
}
|
||
exports.patchEventTargetMethods = patchEventTargetMethods;
|
||
;
|
||
var originalInstanceKey = exports.zoneSymbol('originalInstance');
|
||
// wrap some native API on `window`
|
||
function patchClass(className) {
|
||
var OriginalClass = _global[className];
|
||
if (!OriginalClass)
|
||
return;
|
||
_global[className] = function () {
|
||
var a = bindArguments(arguments, className);
|
||
switch (a.length) {
|
||
case 0:
|
||
this[originalInstanceKey] = new OriginalClass();
|
||
break;
|
||
case 1:
|
||
this[originalInstanceKey] = new OriginalClass(a[0]);
|
||
break;
|
||
case 2:
|
||
this[originalInstanceKey] = new OriginalClass(a[0], a[1]);
|
||
break;
|
||
case 3:
|
||
this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);
|
||
break;
|
||
case 4:
|
||
this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);
|
||
break;
|
||
default: throw new Error('Arg list too long.');
|
||
}
|
||
};
|
||
var instance = new OriginalClass(function () { });
|
||
var prop;
|
||
for (prop in instance) {
|
||
(function (prop) {
|
||
if (typeof instance[prop] === 'function') {
|
||
_global[className].prototype[prop] = function () {
|
||
return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);
|
||
};
|
||
}
|
||
else {
|
||
Object.defineProperty(_global[className].prototype, prop, {
|
||
set: function (fn) {
|
||
if (typeof fn === 'function') {
|
||
this[originalInstanceKey][prop] = Zone.current.wrap(fn, className + '.' + prop);
|
||
}
|
||
else {
|
||
this[originalInstanceKey][prop] = fn;
|
||
}
|
||
},
|
||
get: function () {
|
||
return this[originalInstanceKey][prop];
|
||
}
|
||
});
|
||
}
|
||
}(prop));
|
||
}
|
||
for (prop in OriginalClass) {
|
||
if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {
|
||
_global[className][prop] = OriginalClass[prop];
|
||
}
|
||
}
|
||
}
|
||
exports.patchClass = patchClass;
|
||
;
|
||
function createNamedFn(name, delegate) {
|
||
try {
|
||
return (Function('f', "return function " + name + "(){return f(this, arguments)}"))(delegate);
|
||
}
|
||
catch (e) {
|
||
// if we fail, we must be CSP, just return delegate.
|
||
return function () {
|
||
return delegate(this, arguments);
|
||
};
|
||
}
|
||
}
|
||
exports.createNamedFn = createNamedFn;
|
||
function patchMethod(target, name, patchFn) {
|
||
var proto = target;
|
||
while (proto && !proto.hasOwnProperty(name)) {
|
||
proto = Object.getPrototypeOf(proto);
|
||
}
|
||
if (!proto && target[name]) {
|
||
// somehow we did not find it, but we can see it. This happens on IE for Window properties.
|
||
proto = target;
|
||
}
|
||
var delegateName = exports.zoneSymbol(name);
|
||
var delegate;
|
||
if (proto && !(delegate = proto[delegateName])) {
|
||
delegate = proto[delegateName] = proto[name];
|
||
proto[name] = createNamedFn(name, patchFn(delegate, delegateName, name));
|
||
}
|
||
return delegate;
|
||
}
|
||
exports.patchMethod = patchMethod;
|
||
|
||
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
||
|
||
/***/ },
|
||
/* 4 */
|
||
/***/ function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
var utils_1 = __webpack_require__(3);
|
||
/*
|
||
* This is necessary for Chrome and Chrome mobile, to enable
|
||
* things like redefining `createdCallback` on an element.
|
||
*/
|
||
var _defineProperty = Object.defineProperty;
|
||
var _getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||
var _create = Object.create;
|
||
var unconfigurablesKey = utils_1.zoneSymbol('unconfigurables');
|
||
function propertyPatch() {
|
||
Object.defineProperty = function (obj, prop, desc) {
|
||
if (isUnconfigurable(obj, prop)) {
|
||
throw new TypeError('Cannot assign to read only property \'' + prop + '\' of ' + obj);
|
||
}
|
||
if (prop !== 'prototype') {
|
||
desc = rewriteDescriptor(obj, prop, desc);
|
||
}
|
||
return _defineProperty(obj, prop, desc);
|
||
};
|
||
Object.defineProperties = function (obj, props) {
|
||
Object.keys(props).forEach(function (prop) {
|
||
Object.defineProperty(obj, prop, props[prop]);
|
||
});
|
||
return obj;
|
||
};
|
||
Object.create = function (obj, proto) {
|
||
if (typeof proto === 'object') {
|
||
Object.keys(proto).forEach(function (prop) {
|
||
proto[prop] = rewriteDescriptor(obj, prop, proto[prop]);
|
||
});
|
||
}
|
||
return _create(obj, proto);
|
||
};
|
||
Object.getOwnPropertyDescriptor = function (obj, prop) {
|
||
var desc = _getOwnPropertyDescriptor(obj, prop);
|
||
if (isUnconfigurable(obj, prop)) {
|
||
desc.configurable = false;
|
||
}
|
||
return desc;
|
||
};
|
||
}
|
||
exports.propertyPatch = propertyPatch;
|
||
;
|
||
function _redefineProperty(obj, prop, desc) {
|
||
desc = rewriteDescriptor(obj, prop, desc);
|
||
return _defineProperty(obj, prop, desc);
|
||
}
|
||
exports._redefineProperty = _redefineProperty;
|
||
;
|
||
function isUnconfigurable(obj, prop) {
|
||
return obj && obj[unconfigurablesKey] && obj[unconfigurablesKey][prop];
|
||
}
|
||
function rewriteDescriptor(obj, prop, desc) {
|
||
desc.configurable = true;
|
||
if (!desc.configurable) {
|
||
if (!obj[unconfigurablesKey]) {
|
||
_defineProperty(obj, unconfigurablesKey, { writable: true, value: {} });
|
||
}
|
||
obj[unconfigurablesKey][prop] = true;
|
||
}
|
||
return desc;
|
||
}
|
||
|
||
|
||
/***/ },
|
||
/* 5 */
|
||
/***/ function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
var define_property_1 = __webpack_require__(4);
|
||
var utils_1 = __webpack_require__(3);
|
||
function registerElementPatch(_global) {
|
||
if (!utils_1.isBrowser || !('registerElement' in _global.document)) {
|
||
return;
|
||
}
|
||
var _registerElement = document.registerElement;
|
||
var callbacks = [
|
||
'createdCallback',
|
||
'attachedCallback',
|
||
'detachedCallback',
|
||
'attributeChangedCallback'
|
||
];
|
||
document.registerElement = function (name, opts) {
|
||
if (opts && opts.prototype) {
|
||
callbacks.forEach(function (callback) {
|
||
var source = 'Document.registerElement::' + callback;
|
||
if (opts.prototype.hasOwnProperty(callback)) {
|
||
var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);
|
||
if (descriptor && descriptor.value) {
|
||
descriptor.value = Zone.current.wrap(descriptor.value, source);
|
||
define_property_1._redefineProperty(opts.prototype, callback, descriptor);
|
||
}
|
||
else {
|
||
opts.prototype[callback] = Zone.current.wrap(opts.prototype[callback], source);
|
||
}
|
||
}
|
||
else if (opts.prototype[callback]) {
|
||
opts.prototype[callback] = Zone.current.wrap(opts.prototype[callback], source);
|
||
}
|
||
});
|
||
}
|
||
return _registerElement.apply(document, [name, opts]);
|
||
};
|
||
}
|
||
exports.registerElementPatch = registerElementPatch;
|
||
|
||
|
||
/***/ },
|
||
/* 6 */
|
||
/***/ function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
var webSocketPatch = __webpack_require__(7);
|
||
var utils_1 = __webpack_require__(3);
|
||
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(' ');
|
||
function propertyDescriptorPatch(_global) {
|
||
if (utils_1.isNode) {
|
||
return;
|
||
}
|
||
var supportsWebSocket = typeof WebSocket !== 'undefined';
|
||
if (canPatchViaPropertyDescriptor()) {
|
||
// for browsers that we can patch the descriptor: Chrome & Firefox
|
||
if (utils_1.isBrowser) {
|
||
utils_1.patchOnProperties(HTMLElement.prototype, eventNames);
|
||
}
|
||
utils_1.patchOnProperties(XMLHttpRequest.prototype, null);
|
||
if (typeof IDBIndex !== 'undefined') {
|
||
utils_1.patchOnProperties(IDBIndex.prototype, null);
|
||
utils_1.patchOnProperties(IDBRequest.prototype, null);
|
||
utils_1.patchOnProperties(IDBOpenDBRequest.prototype, null);
|
||
utils_1.patchOnProperties(IDBDatabase.prototype, null);
|
||
utils_1.patchOnProperties(IDBTransaction.prototype, null);
|
||
utils_1.patchOnProperties(IDBCursor.prototype, null);
|
||
}
|
||
if (supportsWebSocket) {
|
||
utils_1.patchOnProperties(WebSocket.prototype, null);
|
||
}
|
||
}
|
||
else {
|
||
// Safari, Android browsers (Jelly Bean)
|
||
patchViaCapturingAllTheEvents();
|
||
utils_1.patchClass('XMLHttpRequest');
|
||
if (supportsWebSocket) {
|
||
webSocketPatch.apply(_global);
|
||
}
|
||
}
|
||
}
|
||
exports.propertyDescriptorPatch = propertyDescriptorPatch;
|
||
function canPatchViaPropertyDescriptor() {
|
||
if (utils_1.isBrowser && !Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'onclick')
|
||
&& typeof Element !== 'undefined') {
|
||
// WebKit https://bugs.webkit.org/show_bug.cgi?id=134364
|
||
// IDL interface attributes are not configurable
|
||
var desc = Object.getOwnPropertyDescriptor(Element.prototype, 'onclick');
|
||
if (desc && !desc.configurable)
|
||
return false;
|
||
}
|
||
Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {
|
||
get: function () {
|
||
return true;
|
||
}
|
||
});
|
||
var req = new XMLHttpRequest();
|
||
var result = !!req.onreadystatechange;
|
||
Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {});
|
||
return result;
|
||
}
|
||
;
|
||
var unboundKey = utils_1.zoneSymbol('unbound');
|
||
// Whenever any eventListener fires, we check the eventListener target and all parents
|
||
// for `onwhatever` properties and replace them with zone-bound functions
|
||
// - Chrome (for now)
|
||
function patchViaCapturingAllTheEvents() {
|
||
var _loop_1 = function(i) {
|
||
var property = eventNames[i];
|
||
var onproperty = 'on' + property;
|
||
document.addEventListener(property, function (event) {
|
||
var elt = event.target, bound, source;
|
||
if (elt) {
|
||
source = elt.constructor['name'] + '.' + onproperty;
|
||
}
|
||
else {
|
||
source = 'unknown.' + onproperty;
|
||
}
|
||
while (elt) {
|
||
if (elt[onproperty] && !elt[onproperty][unboundKey]) {
|
||
bound = Zone.current.wrap(elt[onproperty], source);
|
||
bound[unboundKey] = elt[onproperty];
|
||
elt[onproperty] = bound;
|
||
}
|
||
elt = elt.parentElement;
|
||
}
|
||
}, true);
|
||
};
|
||
for (var i = 0; i < eventNames.length; i++) {
|
||
_loop_1(i);
|
||
}
|
||
;
|
||
}
|
||
;
|
||
|
||
|
||
/***/ },
|
||
/* 7 */
|
||
/***/ function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
var utils_1 = __webpack_require__(3);
|
||
// we have to patch the instance since the proto is non-configurable
|
||
function apply(_global) {
|
||
var WS = _global.WebSocket;
|
||
// On Safari window.EventTarget doesn't exist so need to patch WS add/removeEventListener
|
||
// On older Chrome, no need since EventTarget was already patched
|
||
if (!_global.EventTarget) {
|
||
utils_1.patchEventTargetMethods(WS.prototype);
|
||
}
|
||
_global.WebSocket = function (a, b) {
|
||
var socket = arguments.length > 1 ? new WS(a, b) : new WS(a);
|
||
var proxySocket;
|
||
// Safari 7.0 has non-configurable own 'onmessage' and friends properties on the socket instance
|
||
var onmessageDesc = Object.getOwnPropertyDescriptor(socket, 'onmessage');
|
||
if (onmessageDesc && onmessageDesc.configurable === false) {
|
||
proxySocket = Object.create(socket);
|
||
['addEventListener', 'removeEventListener', 'send', 'close'].forEach(function (propName) {
|
||
proxySocket[propName] = function () {
|
||
return socket[propName].apply(socket, arguments);
|
||
};
|
||
});
|
||
}
|
||
else {
|
||
// we can patch the real socket
|
||
proxySocket = socket;
|
||
}
|
||
utils_1.patchOnProperties(proxySocket, ['close', 'error', 'message', 'open']);
|
||
return proxySocket;
|
||
};
|
||
for (var prop in WS) {
|
||
_global.WebSocket[prop] = WS[prop];
|
||
}
|
||
}
|
||
exports.apply = apply;
|
||
|
||
|
||
/***/ },
|
||
/* 8 */
|
||
/***/ function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
var utils_1 = __webpack_require__(3);
|
||
function patchTimer(window, setName, cancelName, nameSuffix) {
|
||
var setNative = null;
|
||
var clearNative = null;
|
||
setName += nameSuffix;
|
||
cancelName += nameSuffix;
|
||
function scheduleTask(task) {
|
||
var data = task.data;
|
||
data.args[0] = task.invoke;
|
||
data.handleId = setNative.apply(window, data.args);
|
||
return task;
|
||
}
|
||
function clearTask(task) {
|
||
return clearNative(task.data.handleId);
|
||
}
|
||
setNative = utils_1.patchMethod(window, setName, function (delegate) { return function (self, args) {
|
||
if (typeof args[0] === 'function') {
|
||
var zone = Zone.current;
|
||
var options = {
|
||
handleId: null,
|
||
isPeriodic: nameSuffix === 'Interval',
|
||
delay: (nameSuffix === 'Timeout' || nameSuffix === 'Interval') ? args[1] || 0 : null,
|
||
args: args
|
||
};
|
||
return zone.scheduleMacroTask(setName, args[0], options, scheduleTask, clearTask);
|
||
}
|
||
else {
|
||
// cause an error by calling it directly.
|
||
return delegate.apply(window, args);
|
||
}
|
||
}; });
|
||
clearNative = utils_1.patchMethod(window, cancelName, function (delegate) { return function (self, args) {
|
||
var task = args[0];
|
||
if (task && typeof task.type === 'string') {
|
||
if (task.cancelFn && task.data.isPeriodic || task.runCount === 0) {
|
||
// Do not cancel already canceled functions
|
||
task.zone.cancelTask(task);
|
||
}
|
||
}
|
||
else {
|
||
// cause an error by calling it directly.
|
||
delegate.apply(window, args);
|
||
}
|
||
}; });
|
||
}
|
||
exports.patchTimer = patchTimer;
|
||
|
||
|
||
/***/ }
|
||
/******/ ]);
|
||
/******/ (function(modules) { // webpackBootstrap
|
||
/******/ // The module cache
|
||
/******/ var installedModules = {};
|
||
|
||
/******/ // The require function
|
||
/******/ function __webpack_require__(moduleId) {
|
||
|
||
/******/ // Check if module is in cache
|
||
/******/ if(installedModules[moduleId])
|
||
/******/ return installedModules[moduleId].exports;
|
||
|
||
/******/ // Create a new module (and put it into the cache)
|
||
/******/ var module = installedModules[moduleId] = {
|
||
/******/ exports: {},
|
||
/******/ id: moduleId,
|
||
/******/ loaded: false
|
||
/******/ };
|
||
|
||
/******/ // Execute the module function
|
||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||
|
||
/******/ // Flag the module as loaded
|
||
/******/ module.loaded = true;
|
||
|
||
/******/ // Return the exports of the module
|
||
/******/ return module.exports;
|
||
/******/ }
|
||
|
||
|
||
/******/ // expose the modules object (__webpack_modules__)
|
||
/******/ __webpack_require__.m = modules;
|
||
|
||
/******/ // expose the module cache
|
||
/******/ __webpack_require__.c = installedModules;
|
||
|
||
/******/ // __webpack_public_path__
|
||
/******/ __webpack_require__.p = "";
|
||
|
||
/******/ // Load entry module and return exports
|
||
/******/ return __webpack_require__(0);
|
||
/******/ })
|
||
/************************************************************************/
|
||
/******/ ([
|
||
/* 0 */
|
||
/***/ function(module, exports) {
|
||
|
||
'use strict';
|
||
(function () {
|
||
var NEWLINE = '\n';
|
||
var SEP = ' ------------- ';
|
||
var IGNORE_FRAMES = [];
|
||
var creationTrace = '__creationTrace__';
|
||
var LongStackTrace = (function () {
|
||
function LongStackTrace() {
|
||
this.error = getStacktrace();
|
||
this.timestamp = new Date();
|
||
}
|
||
return LongStackTrace;
|
||
}());
|
||
function getStacktraceWithUncaughtError() {
|
||
return new Error('STACKTRACE TRACKING');
|
||
}
|
||
function getStacktraceWithCaughtError() {
|
||
try {
|
||
throw getStacktraceWithUncaughtError();
|
||
}
|
||
catch (e) {
|
||
return e;
|
||
}
|
||
}
|
||
// Some implementations of exception handling don't create a stack trace if the exception
|
||
// isn't thrown, however it's faster not to actually throw the exception.
|
||
var error = getStacktraceWithUncaughtError();
|
||
var coughtError = getStacktraceWithCaughtError();
|
||
var getStacktrace = error.stack
|
||
? getStacktraceWithUncaughtError
|
||
: (coughtError.stack ? getStacktraceWithCaughtError : getStacktraceWithUncaughtError);
|
||
function getFrames(error) {
|
||
return error.stack ? error.stack.split(NEWLINE) : [];
|
||
}
|
||
function addErrorStack(lines, error) {
|
||
var trace = getFrames(error);
|
||
for (var i = 0; i < trace.length; i++) {
|
||
var frame = trace[i];
|
||
// Filter out the Frames which are part of stack capturing.
|
||
if (!(i < IGNORE_FRAMES.length && IGNORE_FRAMES[i] === frame)) {
|
||
lines.push(trace[i]);
|
||
}
|
||
}
|
||
}
|
||
function renderLongStackTrace(frames, stack) {
|
||
var longTrace = [stack];
|
||
if (frames) {
|
||
var timestamp = new Date().getTime();
|
||
for (var i = 0; i < frames.length; i++) {
|
||
var traceFrames = frames[i];
|
||
var lastTime = traceFrames.timestamp;
|
||
longTrace.push(SEP + " Elapsed: " + (timestamp - lastTime.getTime()) + " ms; At: " + lastTime + " " + SEP);
|
||
addErrorStack(longTrace, traceFrames.error);
|
||
timestamp = lastTime.getTime();
|
||
}
|
||
}
|
||
return longTrace.join(NEWLINE);
|
||
}
|
||
Zone['longStackTraceZoneSpec'] = {
|
||
name: 'long-stack-trace',
|
||
longStackTraceLimit: 10,
|
||
onScheduleTask: function (parentZoneDelegate, currentZone, targetZone, task) {
|
||
var currentTask = Zone.currentTask;
|
||
var trace = currentTask && currentTask.data && currentTask.data[creationTrace] || [];
|
||
trace = [new LongStackTrace()].concat(trace);
|
||
if (trace.length > this.longStackTraceLimit) {
|
||
trace.length = this.longStackTraceLimit;
|
||
}
|
||
if (!task.data)
|
||
task.data = {};
|
||
task.data[creationTrace] = trace;
|
||
return parentZoneDelegate.scheduleTask(targetZone, task);
|
||
},
|
||
onHandleError: function (parentZoneDelegate, currentZone, targetZone, error) {
|
||
var parentTask = Zone.currentTask;
|
||
if (error instanceof Error && parentTask) {
|
||
var descriptor = Object.getOwnPropertyDescriptor(error, 'stack');
|
||
if (descriptor) {
|
||
var delegateGet_1 = descriptor.get;
|
||
var value_1 = descriptor.value;
|
||
descriptor = {
|
||
get: function () {
|
||
return renderLongStackTrace(parentTask.data && parentTask.data[creationTrace], delegateGet_1 ? delegateGet_1.apply(this) : value_1);
|
||
}
|
||
};
|
||
Object.defineProperty(error, 'stack', descriptor);
|
||
}
|
||
else {
|
||
error.stack = renderLongStackTrace(parentTask.data && parentTask.data[creationTrace], error.stack);
|
||
}
|
||
}
|
||
return parentZoneDelegate.handleError(targetZone, error);
|
||
}
|
||
};
|
||
function captureStackTraces(stackTraces, count) {
|
||
if (count > 0) {
|
||
stackTraces.push(getFrames((new LongStackTrace()).error));
|
||
captureStackTraces(stackTraces, count - 1);
|
||
}
|
||
}
|
||
function computeIgnoreFrames() {
|
||
var frames = [];
|
||
captureStackTraces(frames, 2);
|
||
var frames1 = frames[0];
|
||
var frames2 = frames[1];
|
||
for (var i = 0; i < frames1.length; i++) {
|
||
var frame1 = frames1[i];
|
||
var frame2 = frames2[i];
|
||
if (frame1 === frame2) {
|
||
IGNORE_FRAMES.push(frame1);
|
||
}
|
||
else {
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
computeIgnoreFrames();
|
||
})();
|
||
|
||
|
||
/***/ }
|
||
/******/ ]);
|
||
/*! *****************************************************************************
|
||
Copyright (C) Microsoft. All rights reserved.
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
this file except in compliance with the License. You may obtain a copy of the
|
||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
||
See the Apache Version 2.0 License for specific language governing permissions
|
||
and limitations under the License.
|
||
***************************************************************************** */
|
||
var Reflect;
|
||
(function (Reflect) {
|
||
"use strict";
|
||
// Load global or shim versions of Map, Set, and WeakMap
|
||
var functionPrototype = Object.getPrototypeOf(Function);
|
||
var _Map = typeof Map === "function" ? Map : CreateMapPolyfill();
|
||
var _Set = typeof Set === "function" ? Set : CreateSetPolyfill();
|
||
var _WeakMap = typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
|
||
// [[Metadata]] internal slot
|
||
var __Metadata__ = new _WeakMap();
|
||
/**
|
||
* Applies a set of decorators to a property of a target object.
|
||
* @param decorators An array of decorators.
|
||
* @param target The target object.
|
||
* @param targetKey (Optional) The property key to decorate.
|
||
* @param targetDescriptor (Optional) The property descriptor for the target key
|
||
* @remarks Decorators are applied in reverse order.
|
||
* @example
|
||
*
|
||
* class C {
|
||
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
* // static staticProperty;
|
||
* // property;
|
||
*
|
||
* constructor(p) { }
|
||
* static staticMethod(p) { }
|
||
* method(p) { }
|
||
* }
|
||
*
|
||
* // constructor
|
||
* C = Reflect.decorate(decoratorsArray, C);
|
||
*
|
||
* // property (on constructor)
|
||
* Reflect.decorate(decoratorsArray, C, "staticProperty");
|
||
*
|
||
* // property (on prototype)
|
||
* Reflect.decorate(decoratorsArray, C.prototype, "property");
|
||
*
|
||
* // method (on constructor)
|
||
* Object.defineProperty(C, "staticMethod",
|
||
* Reflect.decorate(decoratorsArray, C, "staticMethod",
|
||
* Object.getOwnPropertyDescriptor(C, "staticMethod")));
|
||
*
|
||
* // method (on prototype)
|
||
* Object.defineProperty(C.prototype, "method",
|
||
* Reflect.decorate(decoratorsArray, C.prototype, "method",
|
||
* Object.getOwnPropertyDescriptor(C.prototype, "method")));
|
||
*
|
||
*/
|
||
function decorate(decorators, target, targetKey, targetDescriptor) {
|
||
if (!IsUndefined(targetDescriptor)) {
|
||
if (!IsArray(decorators)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (IsUndefined(targetKey)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsObject(targetDescriptor)) {
|
||
throw new TypeError();
|
||
}
|
||
targetKey = ToPropertyKey(targetKey);
|
||
return DecoratePropertyWithDescriptor(decorators, target, targetKey, targetDescriptor);
|
||
}
|
||
else if (!IsUndefined(targetKey)) {
|
||
if (!IsArray(decorators)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
targetKey = ToPropertyKey(targetKey);
|
||
return DecoratePropertyWithoutDescriptor(decorators, target, targetKey);
|
||
}
|
||
else {
|
||
if (!IsArray(decorators)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsConstructor(target)) {
|
||
throw new TypeError();
|
||
}
|
||
return DecorateConstructor(decorators, target);
|
||
}
|
||
}
|
||
Reflect.decorate = decorate;
|
||
/**
|
||
* A default metadata decorator factory that can be used on a class, class member, or parameter.
|
||
* @param metadataKey The key for the metadata entry.
|
||
* @param metadataValue The value for the metadata entry.
|
||
* @returns A decorator function.
|
||
* @remarks
|
||
* If `metadataKey` is already defined for the target and target key, the
|
||
* metadataValue for that key will be overwritten.
|
||
* @example
|
||
*
|
||
* // constructor
|
||
* @Reflect.metadata(key, value)
|
||
* class C {
|
||
* }
|
||
*
|
||
* // property (on constructor, TypeScript only)
|
||
* class C {
|
||
* @Reflect.metadata(key, value)
|
||
* static staticProperty;
|
||
* }
|
||
*
|
||
* // property (on prototype, TypeScript only)
|
||
* class C {
|
||
* @Reflect.metadata(key, value)
|
||
* property;
|
||
* }
|
||
*
|
||
* // method (on constructor)
|
||
* class C {
|
||
* @Reflect.metadata(key, value)
|
||
* static staticMethod() { }
|
||
* }
|
||
*
|
||
* // method (on prototype)
|
||
* class C {
|
||
* @Reflect.metadata(key, value)
|
||
* method() { }
|
||
* }
|
||
*
|
||
*/
|
||
function metadata(metadataKey, metadataValue) {
|
||
function decorator(target, targetKey) {
|
||
if (!IsUndefined(targetKey)) {
|
||
if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
targetKey = ToPropertyKey(targetKey);
|
||
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
|
||
}
|
||
else {
|
||
if (!IsConstructor(target)) {
|
||
throw new TypeError();
|
||
}
|
||
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);
|
||
}
|
||
}
|
||
return decorator;
|
||
}
|
||
Reflect.metadata = metadata;
|
||
/**
|
||
* Define a unique metadata entry on the target.
|
||
* @param metadataKey A key used to store and retrieve metadata.
|
||
* @param metadataValue A value that contains attached metadata.
|
||
* @param target The target object on which to define metadata.
|
||
* @param targetKey (Optional) The property key for the target.
|
||
* @example
|
||
*
|
||
* class C {
|
||
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
* // static staticProperty;
|
||
* // property;
|
||
*
|
||
* constructor(p) { }
|
||
* static staticMethod(p) { }
|
||
* method(p) { }
|
||
* }
|
||
*
|
||
* // constructor
|
||
* Reflect.defineMetadata("custom:annotation", options, C);
|
||
*
|
||
* // property (on constructor)
|
||
* Reflect.defineMetadata("custom:annotation", options, C, "staticProperty");
|
||
*
|
||
* // property (on prototype)
|
||
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "property");
|
||
*
|
||
* // method (on constructor)
|
||
* Reflect.defineMetadata("custom:annotation", options, C, "staticMethod");
|
||
*
|
||
* // method (on prototype)
|
||
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "method");
|
||
*
|
||
* // decorator factory as metadata-producing annotation.
|
||
* function MyAnnotation(options): Decorator {
|
||
* return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key);
|
||
* }
|
||
*
|
||
*/
|
||
function defineMetadata(metadataKey, metadataValue, target, targetKey) {
|
||
if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsUndefined(targetKey)) {
|
||
targetKey = ToPropertyKey(targetKey);
|
||
}
|
||
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
|
||
}
|
||
Reflect.defineMetadata = defineMetadata;
|
||
/**
|
||
* Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.
|
||
* @param metadataKey A key used to store and retrieve metadata.
|
||
* @param target The target object on which the metadata is defined.
|
||
* @param targetKey (Optional) The property key for the target.
|
||
* @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.
|
||
* @example
|
||
*
|
||
* class C {
|
||
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
* // static staticProperty;
|
||
* // property;
|
||
*
|
||
* constructor(p) { }
|
||
* static staticMethod(p) { }
|
||
* method(p) { }
|
||
* }
|
||
*
|
||
* // constructor
|
||
* result = Reflect.hasMetadata("custom:annotation", C);
|
||
*
|
||
* // property (on constructor)
|
||
* result = Reflect.hasMetadata("custom:annotation", C, "staticProperty");
|
||
*
|
||
* // property (on prototype)
|
||
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "property");
|
||
*
|
||
* // method (on constructor)
|
||
* result = Reflect.hasMetadata("custom:annotation", C, "staticMethod");
|
||
*
|
||
* // method (on prototype)
|
||
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "method");
|
||
*
|
||
*/
|
||
function hasMetadata(metadataKey, target, targetKey) {
|
||
if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsUndefined(targetKey)) {
|
||
targetKey = ToPropertyKey(targetKey);
|
||
}
|
||
return OrdinaryHasMetadata(metadataKey, target, targetKey);
|
||
}
|
||
Reflect.hasMetadata = hasMetadata;
|
||
/**
|
||
* Gets a value indicating whether the target object has the provided metadata key defined.
|
||
* @param metadataKey A key used to store and retrieve metadata.
|
||
* @param target The target object on which the metadata is defined.
|
||
* @param targetKey (Optional) The property key for the target.
|
||
* @returns `true` if the metadata key was defined on the target object; otherwise, `false`.
|
||
* @example
|
||
*
|
||
* class C {
|
||
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
* // static staticProperty;
|
||
* // property;
|
||
*
|
||
* constructor(p) { }
|
||
* static staticMethod(p) { }
|
||
* method(p) { }
|
||
* }
|
||
*
|
||
* // constructor
|
||
* result = Reflect.hasOwnMetadata("custom:annotation", C);
|
||
*
|
||
* // property (on constructor)
|
||
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticProperty");
|
||
*
|
||
* // property (on prototype)
|
||
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "property");
|
||
*
|
||
* // method (on constructor)
|
||
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticMethod");
|
||
*
|
||
* // method (on prototype)
|
||
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "method");
|
||
*
|
||
*/
|
||
function hasOwnMetadata(metadataKey, target, targetKey) {
|
||
if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsUndefined(targetKey)) {
|
||
targetKey = ToPropertyKey(targetKey);
|
||
}
|
||
return OrdinaryHasOwnMetadata(metadataKey, target, targetKey);
|
||
}
|
||
Reflect.hasOwnMetadata = hasOwnMetadata;
|
||
/**
|
||
* Gets the metadata value for the provided metadata key on the target object or its prototype chain.
|
||
* @param metadataKey A key used to store and retrieve metadata.
|
||
* @param target The target object on which the metadata is defined.
|
||
* @param targetKey (Optional) The property key for the target.
|
||
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
|
||
* @example
|
||
*
|
||
* class C {
|
||
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
* // static staticProperty;
|
||
* // property;
|
||
*
|
||
* constructor(p) { }
|
||
* static staticMethod(p) { }
|
||
* method(p) { }
|
||
* }
|
||
*
|
||
* // constructor
|
||
* result = Reflect.getMetadata("custom:annotation", C);
|
||
*
|
||
* // property (on constructor)
|
||
* result = Reflect.getMetadata("custom:annotation", C, "staticProperty");
|
||
*
|
||
* // property (on prototype)
|
||
* result = Reflect.getMetadata("custom:annotation", C.prototype, "property");
|
||
*
|
||
* // method (on constructor)
|
||
* result = Reflect.getMetadata("custom:annotation", C, "staticMethod");
|
||
*
|
||
* // method (on prototype)
|
||
* result = Reflect.getMetadata("custom:annotation", C.prototype, "method");
|
||
*
|
||
*/
|
||
function getMetadata(metadataKey, target, targetKey) {
|
||
if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsUndefined(targetKey)) {
|
||
targetKey = ToPropertyKey(targetKey);
|
||
}
|
||
return OrdinaryGetMetadata(metadataKey, target, targetKey);
|
||
}
|
||
Reflect.getMetadata = getMetadata;
|
||
/**
|
||
* Gets the metadata value for the provided metadata key on the target object.
|
||
* @param metadataKey A key used to store and retrieve metadata.
|
||
* @param target The target object on which the metadata is defined.
|
||
* @param targetKey (Optional) The property key for the target.
|
||
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
|
||
* @example
|
||
*
|
||
* class C {
|
||
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
* // static staticProperty;
|
||
* // property;
|
||
*
|
||
* constructor(p) { }
|
||
* static staticMethod(p) { }
|
||
* method(p) { }
|
||
* }
|
||
*
|
||
* // constructor
|
||
* result = Reflect.getOwnMetadata("custom:annotation", C);
|
||
*
|
||
* // property (on constructor)
|
||
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticProperty");
|
||
*
|
||
* // property (on prototype)
|
||
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "property");
|
||
*
|
||
* // method (on constructor)
|
||
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticMethod");
|
||
*
|
||
* // method (on prototype)
|
||
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "method");
|
||
*
|
||
*/
|
||
function getOwnMetadata(metadataKey, target, targetKey) {
|
||
if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsUndefined(targetKey)) {
|
||
targetKey = ToPropertyKey(targetKey);
|
||
}
|
||
return OrdinaryGetOwnMetadata(metadataKey, target, targetKey);
|
||
}
|
||
Reflect.getOwnMetadata = getOwnMetadata;
|
||
/**
|
||
* Gets the metadata keys defined on the target object or its prototype chain.
|
||
* @param target The target object on which the metadata is defined.
|
||
* @param targetKey (Optional) The property key for the target.
|
||
* @returns An array of unique metadata keys.
|
||
* @example
|
||
*
|
||
* class C {
|
||
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
* // static staticProperty;
|
||
* // property;
|
||
*
|
||
* constructor(p) { }
|
||
* static staticMethod(p) { }
|
||
* method(p) { }
|
||
* }
|
||
*
|
||
* // constructor
|
||
* result = Reflect.getMetadataKeys(C);
|
||
*
|
||
* // property (on constructor)
|
||
* result = Reflect.getMetadataKeys(C, "staticProperty");
|
||
*
|
||
* // property (on prototype)
|
||
* result = Reflect.getMetadataKeys(C.prototype, "property");
|
||
*
|
||
* // method (on constructor)
|
||
* result = Reflect.getMetadataKeys(C, "staticMethod");
|
||
*
|
||
* // method (on prototype)
|
||
* result = Reflect.getMetadataKeys(C.prototype, "method");
|
||
*
|
||
*/
|
||
function getMetadataKeys(target, targetKey) {
|
||
if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsUndefined(targetKey)) {
|
||
targetKey = ToPropertyKey(targetKey);
|
||
}
|
||
return OrdinaryMetadataKeys(target, targetKey);
|
||
}
|
||
Reflect.getMetadataKeys = getMetadataKeys;
|
||
/**
|
||
* Gets the unique metadata keys defined on the target object.
|
||
* @param target The target object on which the metadata is defined.
|
||
* @param targetKey (Optional) The property key for the target.
|
||
* @returns An array of unique metadata keys.
|
||
* @example
|
||
*
|
||
* class C {
|
||
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
* // static staticProperty;
|
||
* // property;
|
||
*
|
||
* constructor(p) { }
|
||
* static staticMethod(p) { }
|
||
* method(p) { }
|
||
* }
|
||
*
|
||
* // constructor
|
||
* result = Reflect.getOwnMetadataKeys(C);
|
||
*
|
||
* // property (on constructor)
|
||
* result = Reflect.getOwnMetadataKeys(C, "staticProperty");
|
||
*
|
||
* // property (on prototype)
|
||
* result = Reflect.getOwnMetadataKeys(C.prototype, "property");
|
||
*
|
||
* // method (on constructor)
|
||
* result = Reflect.getOwnMetadataKeys(C, "staticMethod");
|
||
*
|
||
* // method (on prototype)
|
||
* result = Reflect.getOwnMetadataKeys(C.prototype, "method");
|
||
*
|
||
*/
|
||
function getOwnMetadataKeys(target, targetKey) {
|
||
if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsUndefined(targetKey)) {
|
||
targetKey = ToPropertyKey(targetKey);
|
||
}
|
||
return OrdinaryOwnMetadataKeys(target, targetKey);
|
||
}
|
||
Reflect.getOwnMetadataKeys = getOwnMetadataKeys;
|
||
/**
|
||
* Deletes the metadata entry from the target object with the provided key.
|
||
* @param metadataKey A key used to store and retrieve metadata.
|
||
* @param target The target object on which the metadata is defined.
|
||
* @param targetKey (Optional) The property key for the target.
|
||
* @returns `true` if the metadata entry was found and deleted; otherwise, false.
|
||
* @example
|
||
*
|
||
* class C {
|
||
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
* // static staticProperty;
|
||
* // property;
|
||
*
|
||
* constructor(p) { }
|
||
* static staticMethod(p) { }
|
||
* method(p) { }
|
||
* }
|
||
*
|
||
* // constructor
|
||
* result = Reflect.deleteMetadata("custom:annotation", C);
|
||
*
|
||
* // property (on constructor)
|
||
* result = Reflect.deleteMetadata("custom:annotation", C, "staticProperty");
|
||
*
|
||
* // property (on prototype)
|
||
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "property");
|
||
*
|
||
* // method (on constructor)
|
||
* result = Reflect.deleteMetadata("custom:annotation", C, "staticMethod");
|
||
*
|
||
* // method (on prototype)
|
||
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "method");
|
||
*
|
||
*/
|
||
function deleteMetadata(metadataKey, target, targetKey) {
|
||
if (!IsObject(target)) {
|
||
throw new TypeError();
|
||
}
|
||
else if (!IsUndefined(targetKey)) {
|
||
targetKey = ToPropertyKey(targetKey);
|
||
}
|
||
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#deletemetadata-metadatakey-p-
|
||
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
|
||
if (IsUndefined(metadataMap)) {
|
||
return false;
|
||
}
|
||
if (!metadataMap.delete(metadataKey)) {
|
||
return false;
|
||
}
|
||
if (metadataMap.size > 0) {
|
||
return true;
|
||
}
|
||
var targetMetadata = __Metadata__.get(target);
|
||
targetMetadata.delete(targetKey);
|
||
if (targetMetadata.size > 0) {
|
||
return true;
|
||
}
|
||
__Metadata__.delete(target);
|
||
return true;
|
||
}
|
||
Reflect.deleteMetadata = deleteMetadata;
|
||
function DecorateConstructor(decorators, target) {
|
||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||
var decorator = decorators[i];
|
||
var decorated = decorator(target);
|
||
if (!IsUndefined(decorated)) {
|
||
if (!IsConstructor(decorated)) {
|
||
throw new TypeError();
|
||
}
|
||
target = decorated;
|
||
}
|
||
}
|
||
return target;
|
||
}
|
||
function DecoratePropertyWithDescriptor(decorators, target, propertyKey, descriptor) {
|
||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||
var decorator = decorators[i];
|
||
var decorated = decorator(target, propertyKey, descriptor);
|
||
if (!IsUndefined(decorated)) {
|
||
if (!IsObject(decorated)) {
|
||
throw new TypeError();
|
||
}
|
||
descriptor = decorated;
|
||
}
|
||
}
|
||
return descriptor;
|
||
}
|
||
function DecoratePropertyWithoutDescriptor(decorators, target, propertyKey) {
|
||
for (var i = decorators.length - 1; i >= 0; --i) {
|
||
var decorator = decorators[i];
|
||
decorator(target, propertyKey);
|
||
}
|
||
}
|
||
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#getorcreatemetadatamap--o-p-create-
|
||
function GetOrCreateMetadataMap(target, targetKey, create) {
|
||
var targetMetadata = __Metadata__.get(target);
|
||
if (!targetMetadata) {
|
||
if (!create) {
|
||
return undefined;
|
||
}
|
||
targetMetadata = new _Map();
|
||
__Metadata__.set(target, targetMetadata);
|
||
}
|
||
var keyMetadata = targetMetadata.get(targetKey);
|
||
if (!keyMetadata) {
|
||
if (!create) {
|
||
return undefined;
|
||
}
|
||
keyMetadata = new _Map();
|
||
targetMetadata.set(targetKey, keyMetadata);
|
||
}
|
||
return keyMetadata;
|
||
}
|
||
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasmetadata--metadatakey-o-p-
|
||
function OrdinaryHasMetadata(MetadataKey, O, P) {
|
||
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
||
if (hasOwn) {
|
||
return true;
|
||
}
|
||
var parent = GetPrototypeOf(O);
|
||
if (parent !== null) {
|
||
return OrdinaryHasMetadata(MetadataKey, parent, P);
|
||
}
|
||
return false;
|
||
}
|
||
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasownmetadata--metadatakey-o-p-
|
||
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
|
||
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
|
||
if (metadataMap === undefined) {
|
||
return false;
|
||
}
|
||
return Boolean(metadataMap.has(MetadataKey));
|
||
}
|
||
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetmetadata--metadatakey-o-p-
|
||
function OrdinaryGetMetadata(MetadataKey, O, P) {
|
||
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
||
if (hasOwn) {
|
||
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
||
}
|
||
var parent = GetPrototypeOf(O);
|
||
if (parent !== null) {
|
||
return OrdinaryGetMetadata(MetadataKey, parent, P);
|
||
}
|
||
return undefined;
|
||
}
|
||
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetownmetadata--metadatakey-o-p-
|
||
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
|
||
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
|
||
if (metadataMap === undefined) {
|
||
return undefined;
|
||
}
|
||
return metadataMap.get(MetadataKey);
|
||
}
|
||
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarydefineownmetadata--metadatakey-metadatavalue-o-p-
|
||
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
|
||
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);
|
||
metadataMap.set(MetadataKey, MetadataValue);
|
||
}
|
||
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarymetadatakeys--o-p-
|
||
function OrdinaryMetadataKeys(O, P) {
|
||
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
|
||
var parent = GetPrototypeOf(O);
|
||
if (parent === null) {
|
||
return ownKeys;
|
||
}
|
||
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
||
if (parentKeys.length <= 0) {
|
||
return ownKeys;
|
||
}
|
||
if (ownKeys.length <= 0) {
|
||
return parentKeys;
|
||
}
|
||
var set = new _Set();
|
||
var keys = [];
|
||
for (var _i = 0; _i < ownKeys.length; _i++) {
|
||
var key = ownKeys[_i];
|
||
var hasKey = set.has(key);
|
||
if (!hasKey) {
|
||
set.add(key);
|
||
keys.push(key);
|
||
}
|
||
}
|
||
for (var _a = 0; _a < parentKeys.length; _a++) {
|
||
var key = parentKeys[_a];
|
||
var hasKey = set.has(key);
|
||
if (!hasKey) {
|
||
set.add(key);
|
||
keys.push(key);
|
||
}
|
||
}
|
||
return keys;
|
||
}
|
||
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryownmetadatakeys--o-p-
|
||
function OrdinaryOwnMetadataKeys(target, targetKey) {
|
||
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
|
||
var keys = [];
|
||
if (metadataMap) {
|
||
metadataMap.forEach(function (_, key) { return keys.push(key); });
|
||
}
|
||
return keys;
|
||
}
|
||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-undefined-type
|
||
function IsUndefined(x) {
|
||
return x === undefined;
|
||
}
|
||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray
|
||
function IsArray(x) {
|
||
return Array.isArray(x);
|
||
}
|
||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-type
|
||
function IsObject(x) {
|
||
return typeof x === "object" ? x !== null : typeof x === "function";
|
||
}
|
||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor
|
||
function IsConstructor(x) {
|
||
return typeof x === "function";
|
||
}
|
||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-symbol-type
|
||
function IsSymbol(x) {
|
||
return typeof x === "symbol";
|
||
}
|
||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey
|
||
function ToPropertyKey(value) {
|
||
if (IsSymbol(value)) {
|
||
return value;
|
||
}
|
||
return String(value);
|
||
}
|
||
function GetPrototypeOf(O) {
|
||
var proto = Object.getPrototypeOf(O);
|
||
if (typeof O !== "function" || O === functionPrototype) {
|
||
return proto;
|
||
}
|
||
// TypeScript doesn't set __proto__ in ES5, as it's non-standard.
|
||
// Try to determine the superclass constructor. Compatible implementations
|
||
// must either set __proto__ on a subclass constructor to the superclass constructor,
|
||
// or ensure each class has a valid `constructor` property on its prototype that
|
||
// points back to the constructor.
|
||
// If this is not the same as Function.[[Prototype]], then this is definately inherited.
|
||
// This is the case when in ES6 or when using __proto__ in a compatible browser.
|
||
if (proto !== functionPrototype) {
|
||
return proto;
|
||
}
|
||
// If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.
|
||
var prototype = O.prototype;
|
||
var prototypeProto = Object.getPrototypeOf(prototype);
|
||
if (prototypeProto == null || prototypeProto === Object.prototype) {
|
||
return proto;
|
||
}
|
||
// if the constructor was not a function, then we cannot determine the heritage.
|
||
var constructor = prototypeProto.constructor;
|
||
if (typeof constructor !== "function") {
|
||
return proto;
|
||
}
|
||
// if we have some kind of self-reference, then we cannot determine the heritage.
|
||
if (constructor === O) {
|
||
return proto;
|
||
}
|
||
// we have a pretty good guess at the heritage.
|
||
return constructor;
|
||
}
|
||
// naive Map shim
|
||
function CreateMapPolyfill() {
|
||
var cacheSentinel = {};
|
||
function Map() {
|
||
this._keys = [];
|
||
this._values = [];
|
||
this._cache = cacheSentinel;
|
||
}
|
||
Map.prototype = {
|
||
get size() {
|
||
return this._keys.length;
|
||
},
|
||
has: function (key) {
|
||
if (key === this._cache) {
|
||
return true;
|
||
}
|
||
if (this._find(key) >= 0) {
|
||
this._cache = key;
|
||
return true;
|
||
}
|
||
return false;
|
||
},
|
||
get: function (key) {
|
||
var index = this._find(key);
|
||
if (index >= 0) {
|
||
this._cache = key;
|
||
return this._values[index];
|
||
}
|
||
return undefined;
|
||
},
|
||
set: function (key, value) {
|
||
this.delete(key);
|
||
this._keys.push(key);
|
||
this._values.push(value);
|
||
this._cache = key;
|
||
return this;
|
||
},
|
||
delete: function (key) {
|
||
var index = this._find(key);
|
||
if (index >= 0) {
|
||
this._keys.splice(index, 1);
|
||
this._values.splice(index, 1);
|
||
this._cache = cacheSentinel;
|
||
return true;
|
||
}
|
||
return false;
|
||
},
|
||
clear: function () {
|
||
this._keys.length = 0;
|
||
this._values.length = 0;
|
||
this._cache = cacheSentinel;
|
||
},
|
||
forEach: function (callback, thisArg) {
|
||
var size = this.size;
|
||
for (var i = 0; i < size; ++i) {
|
||
var key = this._keys[i];
|
||
var value = this._values[i];
|
||
this._cache = key;
|
||
callback.call(this, value, key, this);
|
||
}
|
||
},
|
||
_find: function (key) {
|
||
var keys = this._keys;
|
||
var size = keys.length;
|
||
for (var i = 0; i < size; ++i) {
|
||
if (keys[i] === key) {
|
||
return i;
|
||
}
|
||
}
|
||
return -1;
|
||
}
|
||
};
|
||
return Map;
|
||
}
|
||
// naive Set shim
|
||
function CreateSetPolyfill() {
|
||
var cacheSentinel = {};
|
||
function Set() {
|
||
this._map = new _Map();
|
||
}
|
||
Set.prototype = {
|
||
get size() {
|
||
return this._map.length;
|
||
},
|
||
has: function (value) {
|
||
return this._map.has(value);
|
||
},
|
||
add: function (value) {
|
||
this._map.set(value, value);
|
||
return this;
|
||
},
|
||
delete: function (value) {
|
||
return this._map.delete(value);
|
||
},
|
||
clear: function () {
|
||
this._map.clear();
|
||
},
|
||
forEach: function (callback, thisArg) {
|
||
this._map.forEach(callback, thisArg);
|
||
}
|
||
};
|
||
return Set;
|
||
}
|
||
// naive WeakMap shim
|
||
function CreateWeakMapPolyfill() {
|
||
var UUID_SIZE = 16;
|
||
var isNode = typeof global !== "undefined" && Object.prototype.toString.call(global.process) === '[object process]';
|
||
var nodeCrypto = isNode && require("crypto");
|
||
var hasOwn = Object.prototype.hasOwnProperty;
|
||
var keys = {};
|
||
var rootKey = CreateUniqueKey();
|
||
function WeakMap() {
|
||
this._key = CreateUniqueKey();
|
||
}
|
||
WeakMap.prototype = {
|
||
has: function (target) {
|
||
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
||
if (table) {
|
||
return this._key in table;
|
||
}
|
||
return false;
|
||
},
|
||
get: function (target) {
|
||
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
||
if (table) {
|
||
return table[this._key];
|
||
}
|
||
return undefined;
|
||
},
|
||
set: function (target, value) {
|
||
var table = GetOrCreateWeakMapTable(target, /*create*/ true);
|
||
table[this._key] = value;
|
||
return this;
|
||
},
|
||
delete: function (target) {
|
||
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
||
if (table && this._key in table) {
|
||
return delete table[this._key];
|
||
}
|
||
return false;
|
||
},
|
||
clear: function () {
|
||
// NOTE: not a real clear, just makes the previous data unreachable
|
||
this._key = CreateUniqueKey();
|
||
}
|
||
};
|
||
function FillRandomBytes(buffer, size) {
|
||
for (var i = 0; i < size; ++i) {
|
||
buffer[i] = Math.random() * 255 | 0;
|
||
}
|
||
}
|
||
function GenRandomBytes(size) {
|
||
if (nodeCrypto) {
|
||
var data = nodeCrypto.randomBytes(size);
|
||
return data;
|
||
}
|
||
else if (typeof Uint8Array === "function") {
|
||
var data = new Uint8Array(size);
|
||
if (typeof crypto !== "undefined") {
|
||
crypto.getRandomValues(data);
|
||
}
|
||
else if (typeof msCrypto !== "undefined") {
|
||
msCrypto.getRandomValues(data);
|
||
}
|
||
else {
|
||
FillRandomBytes(data, size);
|
||
}
|
||
return data;
|
||
}
|
||
else {
|
||
var data = new Array(size);
|
||
FillRandomBytes(data, size);
|
||
return data;
|
||
}
|
||
}
|
||
function CreateUUID() {
|
||
var data = GenRandomBytes(UUID_SIZE);
|
||
// mark as random - RFC 4122 § 4.4
|
||
data[6] = data[6] & 0x4f | 0x40;
|
||
data[8] = data[8] & 0xbf | 0x80;
|
||
var result = "";
|
||
for (var offset = 0; offset < UUID_SIZE; ++offset) {
|
||
var byte = data[offset];
|
||
if (offset === 4 || offset === 6 || offset === 8) {
|
||
result += "-";
|
||
}
|
||
if (byte < 16) {
|
||
result += "0";
|
||
}
|
||
result += byte.toString(16).toLowerCase();
|
||
}
|
||
return result;
|
||
}
|
||
function CreateUniqueKey() {
|
||
var key;
|
||
do {
|
||
key = "@@WeakMap@@" + CreateUUID();
|
||
} while (hasOwn.call(keys, key));
|
||
keys[key] = true;
|
||
return key;
|
||
}
|
||
function GetOrCreateWeakMapTable(target, create) {
|
||
if (!hasOwn.call(target, rootKey)) {
|
||
if (!create) {
|
||
return undefined;
|
||
}
|
||
Object.defineProperty(target, rootKey, { value: Object.create(null) });
|
||
}
|
||
return target[rootKey];
|
||
}
|
||
return WeakMap;
|
||
}
|
||
// hook global Reflect
|
||
(function (__global) {
|
||
if (typeof __global.Reflect !== "undefined") {
|
||
if (__global.Reflect !== Reflect) {
|
||
for (var p in Reflect) {
|
||
__global.Reflect[p] = Reflect[p];
|
||
}
|
||
}
|
||
}
|
||
else {
|
||
__global.Reflect = Reflect;
|
||
}
|
||
})(typeof window !== "undefined" ? window :
|
||
typeof WorkerGlobalScope !== "undefined" ? self :
|
||
typeof global !== "undefined" ? global :
|
||
Function("return this;")());
|
||
})(Reflect || (Reflect = {}));
|
||
|
||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
||
(function (global){
|
||
"use strict";
|
||
|
||
_dereq_(189);
|
||
|
||
_dereq_(2);
|
||
|
||
if (global._babelPolyfill) {
|
||
throw new Error("only one instance of babel-polyfill is allowed");
|
||
}
|
||
global._babelPolyfill = true;
|
||
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
||
},{"189":189,"2":2}],2:[function(_dereq_,module,exports){
|
||
module.exports = _dereq_(190);
|
||
},{"190":190}],3:[function(_dereq_,module,exports){
|
||
module.exports = function(it){
|
||
if(typeof it != 'function')throw TypeError(it + ' is not a function!');
|
||
return it;
|
||
};
|
||
},{}],4:[function(_dereq_,module,exports){
|
||
// 22.1.3.31 Array.prototype[@@unscopables]
|
||
var UNSCOPABLES = _dereq_(84)('unscopables')
|
||
, ArrayProto = Array.prototype;
|
||
if(ArrayProto[UNSCOPABLES] == undefined)_dereq_(32)(ArrayProto, UNSCOPABLES, {});
|
||
module.exports = function(key){
|
||
ArrayProto[UNSCOPABLES][key] = true;
|
||
};
|
||
},{"32":32,"84":84}],5:[function(_dereq_,module,exports){
|
||
var isObject = _dereq_(39);
|
||
module.exports = function(it){
|
||
if(!isObject(it))throw TypeError(it + ' is not an object!');
|
||
return it;
|
||
};
|
||
},{"39":39}],6:[function(_dereq_,module,exports){
|
||
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
|
||
'use strict';
|
||
var toObject = _dereq_(81)
|
||
, toIndex = _dereq_(77)
|
||
, toLength = _dereq_(80);
|
||
|
||
module.exports = [].copyWithin || function copyWithin(target/*= 0*/, start/*= 0, end = @length*/){
|
||
var O = toObject(this)
|
||
, len = toLength(O.length)
|
||
, to = toIndex(target, len)
|
||
, from = toIndex(start, len)
|
||
, $$ = arguments
|
||
, end = $$.length > 2 ? $$[2] : undefined
|
||
, count = Math.min((end === undefined ? len : toIndex(end, len)) - from, len - to)
|
||
, inc = 1;
|
||
if(from < to && to < from + count){
|
||
inc = -1;
|
||
from += count - 1;
|
||
to += count - 1;
|
||
}
|
||
while(count-- > 0){
|
||
if(from in O)O[to] = O[from];
|
||
else delete O[to];
|
||
to += inc;
|
||
from += inc;
|
||
} return O;
|
||
};
|
||
},{"77":77,"80":80,"81":81}],7:[function(_dereq_,module,exports){
|
||
// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
|
||
'use strict';
|
||
var toObject = _dereq_(81)
|
||
, toIndex = _dereq_(77)
|
||
, toLength = _dereq_(80);
|
||
module.exports = [].fill || function fill(value /*, start = 0, end = @length */){
|
||
var O = toObject(this)
|
||
, length = toLength(O.length)
|
||
, $$ = arguments
|
||
, $$len = $$.length
|
||
, index = toIndex($$len > 1 ? $$[1] : undefined, length)
|
||
, end = $$len > 2 ? $$[2] : undefined
|
||
, endPos = end === undefined ? length : toIndex(end, length);
|
||
while(endPos > index)O[index++] = value;
|
||
return O;
|
||
};
|
||
},{"77":77,"80":80,"81":81}],8:[function(_dereq_,module,exports){
|
||
// false -> Array#indexOf
|
||
// true -> Array#includes
|
||
var toIObject = _dereq_(79)
|
||
, toLength = _dereq_(80)
|
||
, toIndex = _dereq_(77);
|
||
module.exports = function(IS_INCLUDES){
|
||
return function($this, el, fromIndex){
|
||
var O = toIObject($this)
|
||
, length = toLength(O.length)
|
||
, index = toIndex(fromIndex, length)
|
||
, value;
|
||
// Array#includes uses SameValueZero equality algorithm
|
||
if(IS_INCLUDES && el != el)while(length > index){
|
||
value = O[index++];
|
||
if(value != value)return true;
|
||
// Array#toIndex ignores holes, Array#includes - not
|
||
} else for(;length > index; index++)if(IS_INCLUDES || index in O){
|
||
if(O[index] === el)return IS_INCLUDES || index;
|
||
} return !IS_INCLUDES && -1;
|
||
};
|
||
};
|
||
},{"77":77,"79":79,"80":80}],9:[function(_dereq_,module,exports){
|
||
// 0 -> Array#forEach
|
||
// 1 -> Array#map
|
||
// 2 -> Array#filter
|
||
// 3 -> Array#some
|
||
// 4 -> Array#every
|
||
// 5 -> Array#find
|
||
// 6 -> Array#findIndex
|
||
var ctx = _dereq_(18)
|
||
, IObject = _dereq_(35)
|
||
, toObject = _dereq_(81)
|
||
, toLength = _dereq_(80)
|
||
, asc = _dereq_(10);
|
||
module.exports = function(TYPE){
|
||
var IS_MAP = TYPE == 1
|
||
, IS_FILTER = TYPE == 2
|
||
, IS_SOME = TYPE == 3
|
||
, IS_EVERY = TYPE == 4
|
||
, IS_FIND_INDEX = TYPE == 6
|
||
, NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
||
return function($this, callbackfn, that){
|
||
var O = toObject($this)
|
||
, self = IObject(O)
|
||
, f = ctx(callbackfn, that, 3)
|
||
, length = toLength(self.length)
|
||
, index = 0
|
||
, result = IS_MAP ? asc($this, length) : IS_FILTER ? asc($this, 0) : undefined
|
||
, val, res;
|
||
for(;length > index; index++)if(NO_HOLES || index in self){
|
||
val = self[index];
|
||
res = f(val, index, O);
|
||
if(TYPE){
|
||
if(IS_MAP)result[index] = res; // map
|
||
else if(res)switch(TYPE){
|
||
case 3: return true; // some
|
||
case 5: return val; // find
|
||
case 6: return index; // findIndex
|
||
case 2: result.push(val); // filter
|
||
} else if(IS_EVERY)return false; // every
|
||
}
|
||
}
|
||
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
|
||
};
|
||
};
|
||
},{"10":10,"18":18,"35":35,"80":80,"81":81}],10:[function(_dereq_,module,exports){
|
||
// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
|
||
var isObject = _dereq_(39)
|
||
, isArray = _dereq_(37)
|
||
, SPECIES = _dereq_(84)('species');
|
||
module.exports = function(original, length){
|
||
var C;
|
||
if(isArray(original)){
|
||
C = original.constructor;
|
||
// cross-realm fallback
|
||
if(typeof C == 'function' && (C === Array || isArray(C.prototype)))C = undefined;
|
||
if(isObject(C)){
|
||
C = C[SPECIES];
|
||
if(C === null)C = undefined;
|
||
}
|
||
} return new (C === undefined ? Array : C)(length);
|
||
};
|
||
},{"37":37,"39":39,"84":84}],11:[function(_dereq_,module,exports){
|
||
// getting tag from 19.1.3.6 Object.prototype.toString()
|
||
var cof = _dereq_(12)
|
||
, TAG = _dereq_(84)('toStringTag')
|
||
// ES3 wrong here
|
||
, ARG = cof(function(){ return arguments; }()) == 'Arguments';
|
||
|
||
module.exports = function(it){
|
||
var O, T, B;
|
||
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
||
// @@toStringTag case
|
||
: typeof (T = (O = Object(it))[TAG]) == 'string' ? T
|
||
// builtinTag case
|
||
: ARG ? cof(O)
|
||
// ES3 arguments fallback
|
||
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
|
||
};
|
||
},{"12":12,"84":84}],12:[function(_dereq_,module,exports){
|
||
var toString = {}.toString;
|
||
|
||
module.exports = function(it){
|
||
return toString.call(it).slice(8, -1);
|
||
};
|
||
},{}],13:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $ = _dereq_(47)
|
||
, hide = _dereq_(32)
|
||
, redefineAll = _dereq_(61)
|
||
, ctx = _dereq_(18)
|
||
, strictNew = _dereq_(70)
|
||
, defined = _dereq_(19)
|
||
, forOf = _dereq_(28)
|
||
, $iterDefine = _dereq_(43)
|
||
, step = _dereq_(45)
|
||
, ID = _dereq_(83)('id')
|
||
, $has = _dereq_(31)
|
||
, isObject = _dereq_(39)
|
||
, setSpecies = _dereq_(66)
|
||
, DESCRIPTORS = _dereq_(20)
|
||
, isExtensible = Object.isExtensible || isObject
|
||
, SIZE = DESCRIPTORS ? '_s' : 'size'
|
||
, id = 0;
|
||
|
||
var fastKey = function(it, create){
|
||
// return primitive with prefix
|
||
if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
||
if(!$has(it, ID)){
|
||
// can't set id to frozen object
|
||
if(!isExtensible(it))return 'F';
|
||
// not necessary to add id
|
||
if(!create)return 'E';
|
||
// add missing object id
|
||
hide(it, ID, ++id);
|
||
// return object id with prefix
|
||
} return 'O' + it[ID];
|
||
};
|
||
|
||
var getEntry = function(that, key){
|
||
// fast case
|
||
var index = fastKey(key), entry;
|
||
if(index !== 'F')return that._i[index];
|
||
// frozen object case
|
||
for(entry = that._f; entry; entry = entry.n){
|
||
if(entry.k == key)return entry;
|
||
}
|
||
};
|
||
|
||
module.exports = {
|
||
getConstructor: function(wrapper, NAME, IS_MAP, ADDER){
|
||
var C = wrapper(function(that, iterable){
|
||
strictNew(that, C, NAME);
|
||
that._i = $.create(null); // index
|
||
that._f = undefined; // first entry
|
||
that._l = undefined; // last entry
|
||
that[SIZE] = 0; // size
|
||
if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);
|
||
});
|
||
redefineAll(C.prototype, {
|
||
// 23.1.3.1 Map.prototype.clear()
|
||
// 23.2.3.2 Set.prototype.clear()
|
||
clear: function clear(){
|
||
for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){
|
||
entry.r = true;
|
||
if(entry.p)entry.p = entry.p.n = undefined;
|
||
delete data[entry.i];
|
||
}
|
||
that._f = that._l = undefined;
|
||
that[SIZE] = 0;
|
||
},
|
||
// 23.1.3.3 Map.prototype.delete(key)
|
||
// 23.2.3.4 Set.prototype.delete(value)
|
||
'delete': function(key){
|
||
var that = this
|
||
, entry = getEntry(that, key);
|
||
if(entry){
|
||
var next = entry.n
|
||
, prev = entry.p;
|
||
delete that._i[entry.i];
|
||
entry.r = true;
|
||
if(prev)prev.n = next;
|
||
if(next)next.p = prev;
|
||
if(that._f == entry)that._f = next;
|
||
if(that._l == entry)that._l = prev;
|
||
that[SIZE]--;
|
||
} return !!entry;
|
||
},
|
||
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
|
||
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
|
||
forEach: function forEach(callbackfn /*, that = undefined */){
|
||
var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)
|
||
, entry;
|
||
while(entry = entry ? entry.n : this._f){
|
||
f(entry.v, entry.k, this);
|
||
// revert to the last existing entry
|
||
while(entry && entry.r)entry = entry.p;
|
||
}
|
||
},
|
||
// 23.1.3.7 Map.prototype.has(key)
|
||
// 23.2.3.7 Set.prototype.has(value)
|
||
has: function has(key){
|
||
return !!getEntry(this, key);
|
||
}
|
||
});
|
||
if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {
|
||
get: function(){
|
||
return defined(this[SIZE]);
|
||
}
|
||
});
|
||
return C;
|
||
},
|
||
def: function(that, key, value){
|
||
var entry = getEntry(that, key)
|
||
, prev, index;
|
||
// change existing entry
|
||
if(entry){
|
||
entry.v = value;
|
||
// create new entry
|
||
} else {
|
||
that._l = entry = {
|
||
i: index = fastKey(key, true), // <- index
|
||
k: key, // <- key
|
||
v: value, // <- value
|
||
p: prev = that._l, // <- previous entry
|
||
n: undefined, // <- next entry
|
||
r: false // <- removed
|
||
};
|
||
if(!that._f)that._f = entry;
|
||
if(prev)prev.n = entry;
|
||
that[SIZE]++;
|
||
// add to index
|
||
if(index !== 'F')that._i[index] = entry;
|
||
} return that;
|
||
},
|
||
getEntry: getEntry,
|
||
setStrong: function(C, NAME, IS_MAP){
|
||
// add .keys, .values, .entries, [@@iterator]
|
||
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
|
||
$iterDefine(C, NAME, function(iterated, kind){
|
||
this._t = iterated; // target
|
||
this._k = kind; // kind
|
||
this._l = undefined; // previous
|
||
}, function(){
|
||
var that = this
|
||
, kind = that._k
|
||
, entry = that._l;
|
||
// revert to the last existing entry
|
||
while(entry && entry.r)entry = entry.p;
|
||
// get next entry
|
||
if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){
|
||
// or finish the iteration
|
||
that._t = undefined;
|
||
return step(1);
|
||
}
|
||
// return step by kind
|
||
if(kind == 'keys' )return step(0, entry.k);
|
||
if(kind == 'values')return step(0, entry.v);
|
||
return step(0, [entry.k, entry.v]);
|
||
}, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);
|
||
|
||
// add [@@species], 23.1.2.2, 23.2.2.2
|
||
setSpecies(NAME);
|
||
}
|
||
};
|
||
},{"18":18,"19":19,"20":20,"28":28,"31":31,"32":32,"39":39,"43":43,"45":45,"47":47,"61":61,"66":66,"70":70,"83":83}],14:[function(_dereq_,module,exports){
|
||
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
|
||
var forOf = _dereq_(28)
|
||
, classof = _dereq_(11);
|
||
module.exports = function(NAME){
|
||
return function toJSON(){
|
||
if(classof(this) != NAME)throw TypeError(NAME + "#toJSON isn't generic");
|
||
var arr = [];
|
||
forOf(this, false, arr.push, arr);
|
||
return arr;
|
||
};
|
||
};
|
||
},{"11":11,"28":28}],15:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var hide = _dereq_(32)
|
||
, redefineAll = _dereq_(61)
|
||
, anObject = _dereq_(5)
|
||
, isObject = _dereq_(39)
|
||
, strictNew = _dereq_(70)
|
||
, forOf = _dereq_(28)
|
||
, createArrayMethod = _dereq_(9)
|
||
, $has = _dereq_(31)
|
||
, WEAK = _dereq_(83)('weak')
|
||
, isExtensible = Object.isExtensible || isObject
|
||
, arrayFind = createArrayMethod(5)
|
||
, arrayFindIndex = createArrayMethod(6)
|
||
, id = 0;
|
||
|
||
// fallback for frozen keys
|
||
var frozenStore = function(that){
|
||
return that._l || (that._l = new FrozenStore);
|
||
};
|
||
var FrozenStore = function(){
|
||
this.a = [];
|
||
};
|
||
var findFrozen = function(store, key){
|
||
return arrayFind(store.a, function(it){
|
||
return it[0] === key;
|
||
});
|
||
};
|
||
FrozenStore.prototype = {
|
||
get: function(key){
|
||
var entry = findFrozen(this, key);
|
||
if(entry)return entry[1];
|
||
},
|
||
has: function(key){
|
||
return !!findFrozen(this, key);
|
||
},
|
||
set: function(key, value){
|
||
var entry = findFrozen(this, key);
|
||
if(entry)entry[1] = value;
|
||
else this.a.push([key, value]);
|
||
},
|
||
'delete': function(key){
|
||
var index = arrayFindIndex(this.a, function(it){
|
||
return it[0] === key;
|
||
});
|
||
if(~index)this.a.splice(index, 1);
|
||
return !!~index;
|
||
}
|
||
};
|
||
|
||
module.exports = {
|
||
getConstructor: function(wrapper, NAME, IS_MAP, ADDER){
|
||
var C = wrapper(function(that, iterable){
|
||
strictNew(that, C, NAME);
|
||
that._i = id++; // collection id
|
||
that._l = undefined; // leak store for frozen objects
|
||
if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);
|
||
});
|
||
redefineAll(C.prototype, {
|
||
// 23.3.3.2 WeakMap.prototype.delete(key)
|
||
// 23.4.3.3 WeakSet.prototype.delete(value)
|
||
'delete': function(key){
|
||
if(!isObject(key))return false;
|
||
if(!isExtensible(key))return frozenStore(this)['delete'](key);
|
||
return $has(key, WEAK) && $has(key[WEAK], this._i) && delete key[WEAK][this._i];
|
||
},
|
||
// 23.3.3.4 WeakMap.prototype.has(key)
|
||
// 23.4.3.4 WeakSet.prototype.has(value)
|
||
has: function has(key){
|
||
if(!isObject(key))return false;
|
||
if(!isExtensible(key))return frozenStore(this).has(key);
|
||
return $has(key, WEAK) && $has(key[WEAK], this._i);
|
||
}
|
||
});
|
||
return C;
|
||
},
|
||
def: function(that, key, value){
|
||
if(!isExtensible(anObject(key))){
|
||
frozenStore(that).set(key, value);
|
||
} else {
|
||
$has(key, WEAK) || hide(key, WEAK, {});
|
||
key[WEAK][that._i] = value;
|
||
} return that;
|
||
},
|
||
frozenStore: frozenStore,
|
||
WEAK: WEAK
|
||
};
|
||
},{"28":28,"31":31,"32":32,"39":39,"5":5,"61":61,"70":70,"83":83,"9":9}],16:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var global = _dereq_(30)
|
||
, $export = _dereq_(23)
|
||
, redefine = _dereq_(62)
|
||
, redefineAll = _dereq_(61)
|
||
, forOf = _dereq_(28)
|
||
, strictNew = _dereq_(70)
|
||
, isObject = _dereq_(39)
|
||
, fails = _dereq_(25)
|
||
, $iterDetect = _dereq_(44)
|
||
, setToStringTag = _dereq_(67);
|
||
|
||
module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){
|
||
var Base = global[NAME]
|
||
, C = Base
|
||
, ADDER = IS_MAP ? 'set' : 'add'
|
||
, proto = C && C.prototype
|
||
, O = {};
|
||
var fixMethod = function(KEY){
|
||
var fn = proto[KEY];
|
||
redefine(proto, KEY,
|
||
KEY == 'delete' ? function(a){
|
||
return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
|
||
} : KEY == 'has' ? function has(a){
|
||
return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
|
||
} : KEY == 'get' ? function get(a){
|
||
return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);
|
||
} : KEY == 'add' ? function add(a){ fn.call(this, a === 0 ? 0 : a); return this; }
|
||
: function set(a, b){ fn.call(this, a === 0 ? 0 : a, b); return this; }
|
||
);
|
||
};
|
||
if(typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){
|
||
new C().entries().next();
|
||
}))){
|
||
// create collection constructor
|
||
C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
|
||
redefineAll(C.prototype, methods);
|
||
} else {
|
||
var instance = new C
|
||
// early implementations not supports chaining
|
||
, HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance
|
||
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
||
, THROWS_ON_PRIMITIVES = fails(function(){ instance.has(1); })
|
||
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
||
, ACCEPT_ITERABLES = $iterDetect(function(iter){ new C(iter); }) // eslint-disable-line no-new
|
||
// for early implementations -0 and +0 not the same
|
||
, BUGGY_ZERO;
|
||
if(!ACCEPT_ITERABLES){
|
||
C = wrapper(function(target, iterable){
|
||
strictNew(target, C, NAME);
|
||
var that = new Base;
|
||
if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);
|
||
return that;
|
||
});
|
||
C.prototype = proto;
|
||
proto.constructor = C;
|
||
}
|
||
IS_WEAK || instance.forEach(function(val, key){
|
||
BUGGY_ZERO = 1 / key === -Infinity;
|
||
});
|
||
if(THROWS_ON_PRIMITIVES || BUGGY_ZERO){
|
||
fixMethod('delete');
|
||
fixMethod('has');
|
||
IS_MAP && fixMethod('get');
|
||
}
|
||
if(BUGGY_ZERO || HASNT_CHAINING)fixMethod(ADDER);
|
||
// weak collections should not contains .clear method
|
||
if(IS_WEAK && proto.clear)delete proto.clear;
|
||
}
|
||
|
||
setToStringTag(C, NAME);
|
||
|
||
O[NAME] = C;
|
||
$export($export.G + $export.W + $export.F * (C != Base), O);
|
||
|
||
if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);
|
||
|
||
return C;
|
||
};
|
||
},{"23":23,"25":25,"28":28,"30":30,"39":39,"44":44,"61":61,"62":62,"67":67,"70":70}],17:[function(_dereq_,module,exports){
|
||
var core = module.exports = {version: '1.2.6'};
|
||
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
|
||
},{}],18:[function(_dereq_,module,exports){
|
||
// optional / simple context binding
|
||
var aFunction = _dereq_(3);
|
||
module.exports = function(fn, that, length){
|
||
aFunction(fn);
|
||
if(that === undefined)return fn;
|
||
switch(length){
|
||
case 1: return function(a){
|
||
return fn.call(that, a);
|
||
};
|
||
case 2: return function(a, b){
|
||
return fn.call(that, a, b);
|
||
};
|
||
case 3: return function(a, b, c){
|
||
return fn.call(that, a, b, c);
|
||
};
|
||
}
|
||
return function(/* ...args */){
|
||
return fn.apply(that, arguments);
|
||
};
|
||
};
|
||
},{"3":3}],19:[function(_dereq_,module,exports){
|
||
// 7.2.1 RequireObjectCoercible(argument)
|
||
module.exports = function(it){
|
||
if(it == undefined)throw TypeError("Can't call method on " + it);
|
||
return it;
|
||
};
|
||
},{}],20:[function(_dereq_,module,exports){
|
||
// Thank's IE8 for his funny defineProperty
|
||
module.exports = !_dereq_(25)(function(){
|
||
return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
|
||
});
|
||
},{"25":25}],21:[function(_dereq_,module,exports){
|
||
var isObject = _dereq_(39)
|
||
, document = _dereq_(30).document
|
||
// in old IE typeof document.createElement is 'object'
|
||
, is = isObject(document) && isObject(document.createElement);
|
||
module.exports = function(it){
|
||
return is ? document.createElement(it) : {};
|
||
};
|
||
},{"30":30,"39":39}],22:[function(_dereq_,module,exports){
|
||
// all enumerable object keys, includes symbols
|
||
var $ = _dereq_(47);
|
||
module.exports = function(it){
|
||
var keys = $.getKeys(it)
|
||
, getSymbols = $.getSymbols;
|
||
if(getSymbols){
|
||
var symbols = getSymbols(it)
|
||
, isEnum = $.isEnum
|
||
, i = 0
|
||
, key;
|
||
while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);
|
||
}
|
||
return keys;
|
||
};
|
||
},{"47":47}],23:[function(_dereq_,module,exports){
|
||
var global = _dereq_(30)
|
||
, core = _dereq_(17)
|
||
, hide = _dereq_(32)
|
||
, redefine = _dereq_(62)
|
||
, ctx = _dereq_(18)
|
||
, PROTOTYPE = 'prototype';
|
||
|
||
var $export = function(type, name, source){
|
||
var IS_FORCED = type & $export.F
|
||
, IS_GLOBAL = type & $export.G
|
||
, IS_STATIC = type & $export.S
|
||
, IS_PROTO = type & $export.P
|
||
, IS_BIND = type & $export.B
|
||
, target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]
|
||
, exports = IS_GLOBAL ? core : core[name] || (core[name] = {})
|
||
, expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {})
|
||
, key, own, out, exp;
|
||
if(IS_GLOBAL)source = name;
|
||
for(key in source){
|
||
// contains in native
|
||
own = !IS_FORCED && target && key in target;
|
||
// export native or passed
|
||
out = (own ? target : source)[key];
|
||
// bind timers to global for call from export context
|
||
exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
|
||
// extend global
|
||
if(target && !own)redefine(target, key, out);
|
||
// export
|
||
if(exports[key] != out)hide(exports, key, exp);
|
||
if(IS_PROTO && expProto[key] != out)expProto[key] = out;
|
||
}
|
||
};
|
||
global.core = core;
|
||
// type bitmap
|
||
$export.F = 1; // forced
|
||
$export.G = 2; // global
|
||
$export.S = 4; // static
|
||
$export.P = 8; // proto
|
||
$export.B = 16; // bind
|
||
$export.W = 32; // wrap
|
||
module.exports = $export;
|
||
},{"17":17,"18":18,"30":30,"32":32,"62":62}],24:[function(_dereq_,module,exports){
|
||
var MATCH = _dereq_(84)('match');
|
||
module.exports = function(KEY){
|
||
var re = /./;
|
||
try {
|
||
'/./'[KEY](re);
|
||
} catch(e){
|
||
try {
|
||
re[MATCH] = false;
|
||
return !'/./'[KEY](re);
|
||
} catch(f){ /* empty */ }
|
||
} return true;
|
||
};
|
||
},{"84":84}],25:[function(_dereq_,module,exports){
|
||
module.exports = function(exec){
|
||
try {
|
||
return !!exec();
|
||
} catch(e){
|
||
return true;
|
||
}
|
||
};
|
||
},{}],26:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var hide = _dereq_(32)
|
||
, redefine = _dereq_(62)
|
||
, fails = _dereq_(25)
|
||
, defined = _dereq_(19)
|
||
, wks = _dereq_(84);
|
||
|
||
module.exports = function(KEY, length, exec){
|
||
var SYMBOL = wks(KEY)
|
||
, original = ''[KEY];
|
||
if(fails(function(){
|
||
var O = {};
|
||
O[SYMBOL] = function(){ return 7; };
|
||
return ''[KEY](O) != 7;
|
||
})){
|
||
redefine(String.prototype, KEY, exec(defined, SYMBOL, original));
|
||
hide(RegExp.prototype, SYMBOL, length == 2
|
||
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
|
||
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
|
||
? function(string, arg){ return original.call(string, this, arg); }
|
||
// 21.2.5.6 RegExp.prototype[@@match](string)
|
||
// 21.2.5.9 RegExp.prototype[@@search](string)
|
||
: function(string){ return original.call(string, this); }
|
||
);
|
||
}
|
||
};
|
||
},{"19":19,"25":25,"32":32,"62":62,"84":84}],27:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
// 21.2.5.3 get RegExp.prototype.flags
|
||
var anObject = _dereq_(5);
|
||
module.exports = function(){
|
||
var that = anObject(this)
|
||
, result = '';
|
||
if(that.global) result += 'g';
|
||
if(that.ignoreCase) result += 'i';
|
||
if(that.multiline) result += 'm';
|
||
if(that.unicode) result += 'u';
|
||
if(that.sticky) result += 'y';
|
||
return result;
|
||
};
|
||
},{"5":5}],28:[function(_dereq_,module,exports){
|
||
var ctx = _dereq_(18)
|
||
, call = _dereq_(41)
|
||
, isArrayIter = _dereq_(36)
|
||
, anObject = _dereq_(5)
|
||
, toLength = _dereq_(80)
|
||
, getIterFn = _dereq_(85);
|
||
module.exports = function(iterable, entries, fn, that){
|
||
var iterFn = getIterFn(iterable)
|
||
, f = ctx(fn, that, entries ? 2 : 1)
|
||
, index = 0
|
||
, length, step, iterator;
|
||
if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');
|
||
// fast case for arrays with default iterator
|
||
if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){
|
||
entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
||
} else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){
|
||
call(iterator, f, step.value, entries);
|
||
}
|
||
};
|
||
},{"18":18,"36":36,"41":41,"5":5,"80":80,"85":85}],29:[function(_dereq_,module,exports){
|
||
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
||
var toIObject = _dereq_(79)
|
||
, getNames = _dereq_(47).getNames
|
||
, toString = {}.toString;
|
||
|
||
var windowNames = typeof window == 'object' && Object.getOwnPropertyNames
|
||
? Object.getOwnPropertyNames(window) : [];
|
||
|
||
var getWindowNames = function(it){
|
||
try {
|
||
return getNames(it);
|
||
} catch(e){
|
||
return windowNames.slice();
|
||
}
|
||
};
|
||
|
||
module.exports.get = function getOwnPropertyNames(it){
|
||
if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);
|
||
return getNames(toIObject(it));
|
||
};
|
||
},{"47":47,"79":79}],30:[function(_dereq_,module,exports){
|
||
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
||
var global = module.exports = typeof window != 'undefined' && window.Math == Math
|
||
? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
|
||
if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
|
||
},{}],31:[function(_dereq_,module,exports){
|
||
var hasOwnProperty = {}.hasOwnProperty;
|
||
module.exports = function(it, key){
|
||
return hasOwnProperty.call(it, key);
|
||
};
|
||
},{}],32:[function(_dereq_,module,exports){
|
||
var $ = _dereq_(47)
|
||
, createDesc = _dereq_(60);
|
||
module.exports = _dereq_(20) ? function(object, key, value){
|
||
return $.setDesc(object, key, createDesc(1, value));
|
||
} : function(object, key, value){
|
||
object[key] = value;
|
||
return object;
|
||
};
|
||
},{"20":20,"47":47,"60":60}],33:[function(_dereq_,module,exports){
|
||
module.exports = _dereq_(30).document && document.documentElement;
|
||
},{"30":30}],34:[function(_dereq_,module,exports){
|
||
// fast apply, http://jsperf.lnkit.com/fast-apply/5
|
||
module.exports = function(fn, args, that){
|
||
var un = that === undefined;
|
||
switch(args.length){
|
||
case 0: return un ? fn()
|
||
: fn.call(that);
|
||
case 1: return un ? fn(args[0])
|
||
: fn.call(that, args[0]);
|
||
case 2: return un ? fn(args[0], args[1])
|
||
: fn.call(that, args[0], args[1]);
|
||
case 3: return un ? fn(args[0], args[1], args[2])
|
||
: fn.call(that, args[0], args[1], args[2]);
|
||
case 4: return un ? fn(args[0], args[1], args[2], args[3])
|
||
: fn.call(that, args[0], args[1], args[2], args[3]);
|
||
} return fn.apply(that, args);
|
||
};
|
||
},{}],35:[function(_dereq_,module,exports){
|
||
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
||
var cof = _dereq_(12);
|
||
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
|
||
return cof(it) == 'String' ? it.split('') : Object(it);
|
||
};
|
||
},{"12":12}],36:[function(_dereq_,module,exports){
|
||
// check on default Array iterator
|
||
var Iterators = _dereq_(46)
|
||
, ITERATOR = _dereq_(84)('iterator')
|
||
, ArrayProto = Array.prototype;
|
||
|
||
module.exports = function(it){
|
||
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
||
};
|
||
},{"46":46,"84":84}],37:[function(_dereq_,module,exports){
|
||
// 7.2.2 IsArray(argument)
|
||
var cof = _dereq_(12);
|
||
module.exports = Array.isArray || function(arg){
|
||
return cof(arg) == 'Array';
|
||
};
|
||
},{"12":12}],38:[function(_dereq_,module,exports){
|
||
// 20.1.2.3 Number.isInteger(number)
|
||
var isObject = _dereq_(39)
|
||
, floor = Math.floor;
|
||
module.exports = function isInteger(it){
|
||
return !isObject(it) && isFinite(it) && floor(it) === it;
|
||
};
|
||
},{"39":39}],39:[function(_dereq_,module,exports){
|
||
module.exports = function(it){
|
||
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
||
};
|
||
},{}],40:[function(_dereq_,module,exports){
|
||
// 7.2.8 IsRegExp(argument)
|
||
var isObject = _dereq_(39)
|
||
, cof = _dereq_(12)
|
||
, MATCH = _dereq_(84)('match');
|
||
module.exports = function(it){
|
||
var isRegExp;
|
||
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
|
||
};
|
||
},{"12":12,"39":39,"84":84}],41:[function(_dereq_,module,exports){
|
||
// call something on iterator step with safe closing on error
|
||
var anObject = _dereq_(5);
|
||
module.exports = function(iterator, fn, value, entries){
|
||
try {
|
||
return entries ? fn(anObject(value)[0], value[1]) : fn(value);
|
||
// 7.4.6 IteratorClose(iterator, completion)
|
||
} catch(e){
|
||
var ret = iterator['return'];
|
||
if(ret !== undefined)anObject(ret.call(iterator));
|
||
throw e;
|
||
}
|
||
};
|
||
},{"5":5}],42:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $ = _dereq_(47)
|
||
, descriptor = _dereq_(60)
|
||
, setToStringTag = _dereq_(67)
|
||
, IteratorPrototype = {};
|
||
|
||
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
||
_dereq_(32)(IteratorPrototype, _dereq_(84)('iterator'), function(){ return this; });
|
||
|
||
module.exports = function(Constructor, NAME, next){
|
||
Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});
|
||
setToStringTag(Constructor, NAME + ' Iterator');
|
||
};
|
||
},{"32":32,"47":47,"60":60,"67":67,"84":84}],43:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var LIBRARY = _dereq_(49)
|
||
, $export = _dereq_(23)
|
||
, redefine = _dereq_(62)
|
||
, hide = _dereq_(32)
|
||
, has = _dereq_(31)
|
||
, Iterators = _dereq_(46)
|
||
, $iterCreate = _dereq_(42)
|
||
, setToStringTag = _dereq_(67)
|
||
, getProto = _dereq_(47).getProto
|
||
, ITERATOR = _dereq_(84)('iterator')
|
||
, BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`
|
||
, FF_ITERATOR = '@@iterator'
|
||
, KEYS = 'keys'
|
||
, VALUES = 'values';
|
||
|
||
var returnThis = function(){ return this; };
|
||
|
||
module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){
|
||
$iterCreate(Constructor, NAME, next);
|
||
var getMethod = function(kind){
|
||
if(!BUGGY && kind in proto)return proto[kind];
|
||
switch(kind){
|
||
case KEYS: return function keys(){ return new Constructor(this, kind); };
|
||
case VALUES: return function values(){ return new Constructor(this, kind); };
|
||
} return function entries(){ return new Constructor(this, kind); };
|
||
};
|
||
var TAG = NAME + ' Iterator'
|
||
, DEF_VALUES = DEFAULT == VALUES
|
||
, VALUES_BUG = false
|
||
, proto = Base.prototype
|
||
, $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]
|
||
, $default = $native || getMethod(DEFAULT)
|
||
, methods, key;
|
||
// Fix native
|
||
if($native){
|
||
var IteratorPrototype = getProto($default.call(new Base));
|
||
// Set @@toStringTag to native iterators
|
||
setToStringTag(IteratorPrototype, TAG, true);
|
||
// FF fix
|
||
if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);
|
||
// fix Array#{values, @@iterator}.name in V8 / FF
|
||
if(DEF_VALUES && $native.name !== VALUES){
|
||
VALUES_BUG = true;
|
||
$default = function values(){ return $native.call(this); };
|
||
}
|
||
}
|
||
// Define iterator
|
||
if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){
|
||
hide(proto, ITERATOR, $default);
|
||
}
|
||
// Plug for library
|
||
Iterators[NAME] = $default;
|
||
Iterators[TAG] = returnThis;
|
||
if(DEFAULT){
|
||
methods = {
|
||
values: DEF_VALUES ? $default : getMethod(VALUES),
|
||
keys: IS_SET ? $default : getMethod(KEYS),
|
||
entries: !DEF_VALUES ? $default : getMethod('entries')
|
||
};
|
||
if(FORCED)for(key in methods){
|
||
if(!(key in proto))redefine(proto, key, methods[key]);
|
||
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
|
||
}
|
||
return methods;
|
||
};
|
||
},{"23":23,"31":31,"32":32,"42":42,"46":46,"47":47,"49":49,"62":62,"67":67,"84":84}],44:[function(_dereq_,module,exports){
|
||
var ITERATOR = _dereq_(84)('iterator')
|
||
, SAFE_CLOSING = false;
|
||
|
||
try {
|
||
var riter = [7][ITERATOR]();
|
||
riter['return'] = function(){ SAFE_CLOSING = true; };
|
||
Array.from(riter, function(){ throw 2; });
|
||
} catch(e){ /* empty */ }
|
||
|
||
module.exports = function(exec, skipClosing){
|
||
if(!skipClosing && !SAFE_CLOSING)return false;
|
||
var safe = false;
|
||
try {
|
||
var arr = [7]
|
||
, iter = arr[ITERATOR]();
|
||
iter.next = function(){ safe = true; };
|
||
arr[ITERATOR] = function(){ return iter; };
|
||
exec(arr);
|
||
} catch(e){ /* empty */ }
|
||
return safe;
|
||
};
|
||
},{"84":84}],45:[function(_dereq_,module,exports){
|
||
module.exports = function(done, value){
|
||
return {value: value, done: !!done};
|
||
};
|
||
},{}],46:[function(_dereq_,module,exports){
|
||
module.exports = {};
|
||
},{}],47:[function(_dereq_,module,exports){
|
||
var $Object = Object;
|
||
module.exports = {
|
||
create: $Object.create,
|
||
getProto: $Object.getPrototypeOf,
|
||
isEnum: {}.propertyIsEnumerable,
|
||
getDesc: $Object.getOwnPropertyDescriptor,
|
||
setDesc: $Object.defineProperty,
|
||
setDescs: $Object.defineProperties,
|
||
getKeys: $Object.keys,
|
||
getNames: $Object.getOwnPropertyNames,
|
||
getSymbols: $Object.getOwnPropertySymbols,
|
||
each: [].forEach
|
||
};
|
||
},{}],48:[function(_dereq_,module,exports){
|
||
var $ = _dereq_(47)
|
||
, toIObject = _dereq_(79);
|
||
module.exports = function(object, el){
|
||
var O = toIObject(object)
|
||
, keys = $.getKeys(O)
|
||
, length = keys.length
|
||
, index = 0
|
||
, key;
|
||
while(length > index)if(O[key = keys[index++]] === el)return key;
|
||
};
|
||
},{"47":47,"79":79}],49:[function(_dereq_,module,exports){
|
||
module.exports = false;
|
||
},{}],50:[function(_dereq_,module,exports){
|
||
// 20.2.2.14 Math.expm1(x)
|
||
module.exports = Math.expm1 || function expm1(x){
|
||
return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;
|
||
};
|
||
},{}],51:[function(_dereq_,module,exports){
|
||
// 20.2.2.20 Math.log1p(x)
|
||
module.exports = Math.log1p || function log1p(x){
|
||
return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);
|
||
};
|
||
},{}],52:[function(_dereq_,module,exports){
|
||
// 20.2.2.28 Math.sign(x)
|
||
module.exports = Math.sign || function sign(x){
|
||
return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
|
||
};
|
||
},{}],53:[function(_dereq_,module,exports){
|
||
var global = _dereq_(30)
|
||
, macrotask = _dereq_(76).set
|
||
, Observer = global.MutationObserver || global.WebKitMutationObserver
|
||
, process = global.process
|
||
, Promise = global.Promise
|
||
, isNode = _dereq_(12)(process) == 'process'
|
||
, head, last, notify;
|
||
|
||
var flush = function(){
|
||
var parent, domain, fn;
|
||
if(isNode && (parent = process.domain)){
|
||
process.domain = null;
|
||
parent.exit();
|
||
}
|
||
while(head){
|
||
domain = head.domain;
|
||
fn = head.fn;
|
||
if(domain)domain.enter();
|
||
fn(); // <- currently we use it only for Promise - try / catch not required
|
||
if(domain)domain.exit();
|
||
head = head.next;
|
||
} last = undefined;
|
||
if(parent)parent.enter();
|
||
};
|
||
|
||
// Node.js
|
||
if(isNode){
|
||
notify = function(){
|
||
process.nextTick(flush);
|
||
};
|
||
// browsers with MutationObserver
|
||
} else if(Observer){
|
||
var toggle = 1
|
||
, node = document.createTextNode('');
|
||
new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new
|
||
notify = function(){
|
||
node.data = toggle = -toggle;
|
||
};
|
||
// environments with maybe non-completely correct, but existent Promise
|
||
} else if(Promise && Promise.resolve){
|
||
notify = function(){
|
||
Promise.resolve().then(flush);
|
||
};
|
||
// for other environments - macrotask based on:
|
||
// - setImmediate
|
||
// - MessageChannel
|
||
// - window.postMessag
|
||
// - onreadystatechange
|
||
// - setTimeout
|
||
} else {
|
||
notify = function(){
|
||
// strange IE + webpack dev server bug - use .call(global)
|
||
macrotask.call(global, flush);
|
||
};
|
||
}
|
||
|
||
module.exports = function asap(fn){
|
||
var task = {fn: fn, next: undefined, domain: isNode && process.domain};
|
||
if(last)last.next = task;
|
||
if(!head){
|
||
head = task;
|
||
notify();
|
||
} last = task;
|
||
};
|
||
},{"12":12,"30":30,"76":76}],54:[function(_dereq_,module,exports){
|
||
// 19.1.2.1 Object.assign(target, source, ...)
|
||
var $ = _dereq_(47)
|
||
, toObject = _dereq_(81)
|
||
, IObject = _dereq_(35);
|
||
|
||
// should work with symbols and should have deterministic property order (V8 bug)
|
||
module.exports = _dereq_(25)(function(){
|
||
var a = Object.assign
|
||
, A = {}
|
||
, B = {}
|
||
, S = Symbol()
|
||
, K = 'abcdefghijklmnopqrst';
|
||
A[S] = 7;
|
||
K.split('').forEach(function(k){ B[k] = k; });
|
||
return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;
|
||
}) ? function assign(target, source){ // eslint-disable-line no-unused-vars
|
||
var T = toObject(target)
|
||
, $$ = arguments
|
||
, $$len = $$.length
|
||
, index = 1
|
||
, getKeys = $.getKeys
|
||
, getSymbols = $.getSymbols
|
||
, isEnum = $.isEnum;
|
||
while($$len > index){
|
||
var S = IObject($$[index++])
|
||
, keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)
|
||
, length = keys.length
|
||
, j = 0
|
||
, key;
|
||
while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];
|
||
}
|
||
return T;
|
||
} : Object.assign;
|
||
},{"25":25,"35":35,"47":47,"81":81}],55:[function(_dereq_,module,exports){
|
||
// most Object methods by ES6 should accept primitives
|
||
var $export = _dereq_(23)
|
||
, core = _dereq_(17)
|
||
, fails = _dereq_(25);
|
||
module.exports = function(KEY, exec){
|
||
var fn = (core.Object || {})[KEY] || Object[KEY]
|
||
, exp = {};
|
||
exp[KEY] = exec(fn);
|
||
$export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);
|
||
};
|
||
},{"17":17,"23":23,"25":25}],56:[function(_dereq_,module,exports){
|
||
var $ = _dereq_(47)
|
||
, toIObject = _dereq_(79)
|
||
, isEnum = $.isEnum;
|
||
module.exports = function(isEntries){
|
||
return function(it){
|
||
var O = toIObject(it)
|
||
, keys = $.getKeys(O)
|
||
, length = keys.length
|
||
, i = 0
|
||
, result = []
|
||
, key;
|
||
while(length > i)if(isEnum.call(O, key = keys[i++])){
|
||
result.push(isEntries ? [key, O[key]] : O[key]);
|
||
} return result;
|
||
};
|
||
};
|
||
},{"47":47,"79":79}],57:[function(_dereq_,module,exports){
|
||
// all object keys, includes non-enumerable and symbols
|
||
var $ = _dereq_(47)
|
||
, anObject = _dereq_(5)
|
||
, Reflect = _dereq_(30).Reflect;
|
||
module.exports = Reflect && Reflect.ownKeys || function ownKeys(it){
|
||
var keys = $.getNames(anObject(it))
|
||
, getSymbols = $.getSymbols;
|
||
return getSymbols ? keys.concat(getSymbols(it)) : keys;
|
||
};
|
||
},{"30":30,"47":47,"5":5}],58:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var path = _dereq_(59)
|
||
, invoke = _dereq_(34)
|
||
, aFunction = _dereq_(3);
|
||
module.exports = function(/* ...pargs */){
|
||
var fn = aFunction(this)
|
||
, length = arguments.length
|
||
, pargs = Array(length)
|
||
, i = 0
|
||
, _ = path._
|
||
, holder = false;
|
||
while(length > i)if((pargs[i] = arguments[i++]) === _)holder = true;
|
||
return function(/* ...args */){
|
||
var that = this
|
||
, $$ = arguments
|
||
, $$len = $$.length
|
||
, j = 0, k = 0, args;
|
||
if(!holder && !$$len)return invoke(fn, pargs, that);
|
||
args = pargs.slice();
|
||
if(holder)for(;length > j; j++)if(args[j] === _)args[j] = $$[k++];
|
||
while($$len > k)args.push($$[k++]);
|
||
return invoke(fn, args, that);
|
||
};
|
||
};
|
||
},{"3":3,"34":34,"59":59}],59:[function(_dereq_,module,exports){
|
||
module.exports = _dereq_(30);
|
||
},{"30":30}],60:[function(_dereq_,module,exports){
|
||
module.exports = function(bitmap, value){
|
||
return {
|
||
enumerable : !(bitmap & 1),
|
||
configurable: !(bitmap & 2),
|
||
writable : !(bitmap & 4),
|
||
value : value
|
||
};
|
||
};
|
||
},{}],61:[function(_dereq_,module,exports){
|
||
var redefine = _dereq_(62);
|
||
module.exports = function(target, src){
|
||
for(var key in src)redefine(target, key, src[key]);
|
||
return target;
|
||
};
|
||
},{"62":62}],62:[function(_dereq_,module,exports){
|
||
// add fake Function#toString
|
||
// for correct work wrapped methods / constructors with methods like LoDash isNative
|
||
var global = _dereq_(30)
|
||
, hide = _dereq_(32)
|
||
, SRC = _dereq_(83)('src')
|
||
, TO_STRING = 'toString'
|
||
, $toString = Function[TO_STRING]
|
||
, TPL = ('' + $toString).split(TO_STRING);
|
||
|
||
_dereq_(17).inspectSource = function(it){
|
||
return $toString.call(it);
|
||
};
|
||
|
||
(module.exports = function(O, key, val, safe){
|
||
if(typeof val == 'function'){
|
||
val.hasOwnProperty(SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
|
||
val.hasOwnProperty('name') || hide(val, 'name', key);
|
||
}
|
||
if(O === global){
|
||
O[key] = val;
|
||
} else {
|
||
if(!safe)delete O[key];
|
||
hide(O, key, val);
|
||
}
|
||
})(Function.prototype, TO_STRING, function toString(){
|
||
return typeof this == 'function' && this[SRC] || $toString.call(this);
|
||
});
|
||
},{"17":17,"30":30,"32":32,"83":83}],63:[function(_dereq_,module,exports){
|
||
module.exports = function(regExp, replace){
|
||
var replacer = replace === Object(replace) ? function(part){
|
||
return replace[part];
|
||
} : replace;
|
||
return function(it){
|
||
return String(it).replace(regExp, replacer);
|
||
};
|
||
};
|
||
},{}],64:[function(_dereq_,module,exports){
|
||
// 7.2.9 SameValue(x, y)
|
||
module.exports = Object.is || function is(x, y){
|
||
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
||
};
|
||
},{}],65:[function(_dereq_,module,exports){
|
||
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
||
/* eslint-disable no-proto */
|
||
var getDesc = _dereq_(47).getDesc
|
||
, isObject = _dereq_(39)
|
||
, anObject = _dereq_(5);
|
||
var check = function(O, proto){
|
||
anObject(O);
|
||
if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!");
|
||
};
|
||
module.exports = {
|
||
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
|
||
function(test, buggy, set){
|
||
try {
|
||
set = _dereq_(18)(Function.call, getDesc(Object.prototype, '__proto__').set, 2);
|
||
set(test, []);
|
||
buggy = !(test instanceof Array);
|
||
} catch(e){ buggy = true; }
|
||
return function setPrototypeOf(O, proto){
|
||
check(O, proto);
|
||
if(buggy)O.__proto__ = proto;
|
||
else set(O, proto);
|
||
return O;
|
||
};
|
||
}({}, false) : undefined),
|
||
check: check
|
||
};
|
||
},{"18":18,"39":39,"47":47,"5":5}],66:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var global = _dereq_(30)
|
||
, $ = _dereq_(47)
|
||
, DESCRIPTORS = _dereq_(20)
|
||
, SPECIES = _dereq_(84)('species');
|
||
|
||
module.exports = function(KEY){
|
||
var C = global[KEY];
|
||
if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {
|
||
configurable: true,
|
||
get: function(){ return this; }
|
||
});
|
||
};
|
||
},{"20":20,"30":30,"47":47,"84":84}],67:[function(_dereq_,module,exports){
|
||
var def = _dereq_(47).setDesc
|
||
, has = _dereq_(31)
|
||
, TAG = _dereq_(84)('toStringTag');
|
||
|
||
module.exports = function(it, tag, stat){
|
||
if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});
|
||
};
|
||
},{"31":31,"47":47,"84":84}],68:[function(_dereq_,module,exports){
|
||
var global = _dereq_(30)
|
||
, SHARED = '__core-js_shared__'
|
||
, store = global[SHARED] || (global[SHARED] = {});
|
||
module.exports = function(key){
|
||
return store[key] || (store[key] = {});
|
||
};
|
||
},{"30":30}],69:[function(_dereq_,module,exports){
|
||
// 7.3.20 SpeciesConstructor(O, defaultConstructor)
|
||
var anObject = _dereq_(5)
|
||
, aFunction = _dereq_(3)
|
||
, SPECIES = _dereq_(84)('species');
|
||
module.exports = function(O, D){
|
||
var C = anObject(O).constructor, S;
|
||
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
|
||
};
|
||
},{"3":3,"5":5,"84":84}],70:[function(_dereq_,module,exports){
|
||
module.exports = function(it, Constructor, name){
|
||
if(!(it instanceof Constructor))throw TypeError(name + ": use the 'new' operator!");
|
||
return it;
|
||
};
|
||
},{}],71:[function(_dereq_,module,exports){
|
||
var toInteger = _dereq_(78)
|
||
, defined = _dereq_(19);
|
||
// true -> String#at
|
||
// false -> String#codePointAt
|
||
module.exports = function(TO_STRING){
|
||
return function(that, pos){
|
||
var s = String(defined(that))
|
||
, i = toInteger(pos)
|
||
, l = s.length
|
||
, a, b;
|
||
if(i < 0 || i >= l)return TO_STRING ? '' : undefined;
|
||
a = s.charCodeAt(i);
|
||
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
|
||
? TO_STRING ? s.charAt(i) : a
|
||
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
|
||
};
|
||
};
|
||
},{"19":19,"78":78}],72:[function(_dereq_,module,exports){
|
||
// helper for String#{startsWith, endsWith, includes}
|
||
var isRegExp = _dereq_(40)
|
||
, defined = _dereq_(19);
|
||
|
||
module.exports = function(that, searchString, NAME){
|
||
if(isRegExp(searchString))throw TypeError('String#' + NAME + " doesn't accept regex!");
|
||
return String(defined(that));
|
||
};
|
||
},{"19":19,"40":40}],73:[function(_dereq_,module,exports){
|
||
// https://github.com/ljharb/proposal-string-pad-left-right
|
||
var toLength = _dereq_(80)
|
||
, repeat = _dereq_(74)
|
||
, defined = _dereq_(19);
|
||
|
||
module.exports = function(that, maxLength, fillString, left){
|
||
var S = String(defined(that))
|
||
, stringLength = S.length
|
||
, fillStr = fillString === undefined ? ' ' : String(fillString)
|
||
, intMaxLength = toLength(maxLength);
|
||
if(intMaxLength <= stringLength)return S;
|
||
if(fillStr == '')fillStr = ' ';
|
||
var fillLen = intMaxLength - stringLength
|
||
, stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
|
||
if(stringFiller.length > fillLen)stringFiller = stringFiller.slice(0, fillLen);
|
||
return left ? stringFiller + S : S + stringFiller;
|
||
};
|
||
},{"19":19,"74":74,"80":80}],74:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var toInteger = _dereq_(78)
|
||
, defined = _dereq_(19);
|
||
|
||
module.exports = function repeat(count){
|
||
var str = String(defined(this))
|
||
, res = ''
|
||
, n = toInteger(count);
|
||
if(n < 0 || n == Infinity)throw RangeError("Count can't be negative");
|
||
for(;n > 0; (n >>>= 1) && (str += str))if(n & 1)res += str;
|
||
return res;
|
||
};
|
||
},{"19":19,"78":78}],75:[function(_dereq_,module,exports){
|
||
var $export = _dereq_(23)
|
||
, defined = _dereq_(19)
|
||
, fails = _dereq_(25)
|
||
, spaces = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
|
||
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'
|
||
, space = '[' + spaces + ']'
|
||
, non = '\u200b\u0085'
|
||
, ltrim = RegExp('^' + space + space + '*')
|
||
, rtrim = RegExp(space + space + '*$');
|
||
|
||
var exporter = function(KEY, exec){
|
||
var exp = {};
|
||
exp[KEY] = exec(trim);
|
||
$export($export.P + $export.F * fails(function(){
|
||
return !!spaces[KEY]() || non[KEY]() != non;
|
||
}), 'String', exp);
|
||
};
|
||
|
||
// 1 -> String#trimLeft
|
||
// 2 -> String#trimRight
|
||
// 3 -> String#trim
|
||
var trim = exporter.trim = function(string, TYPE){
|
||
string = String(defined(string));
|
||
if(TYPE & 1)string = string.replace(ltrim, '');
|
||
if(TYPE & 2)string = string.replace(rtrim, '');
|
||
return string;
|
||
};
|
||
|
||
module.exports = exporter;
|
||
},{"19":19,"23":23,"25":25}],76:[function(_dereq_,module,exports){
|
||
var ctx = _dereq_(18)
|
||
, invoke = _dereq_(34)
|
||
, html = _dereq_(33)
|
||
, cel = _dereq_(21)
|
||
, global = _dereq_(30)
|
||
, process = global.process
|
||
, setTask = global.setImmediate
|
||
, clearTask = global.clearImmediate
|
||
, MessageChannel = global.MessageChannel
|
||
, counter = 0
|
||
, queue = {}
|
||
, ONREADYSTATECHANGE = 'onreadystatechange'
|
||
, defer, channel, port;
|
||
var run = function(){
|
||
var id = +this;
|
||
if(queue.hasOwnProperty(id)){
|
||
var fn = queue[id];
|
||
delete queue[id];
|
||
fn();
|
||
}
|
||
};
|
||
var listner = function(event){
|
||
run.call(event.data);
|
||
};
|
||
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
||
if(!setTask || !clearTask){
|
||
setTask = function setImmediate(fn){
|
||
var args = [], i = 1;
|
||
while(arguments.length > i)args.push(arguments[i++]);
|
||
queue[++counter] = function(){
|
||
invoke(typeof fn == 'function' ? fn : Function(fn), args);
|
||
};
|
||
defer(counter);
|
||
return counter;
|
||
};
|
||
clearTask = function clearImmediate(id){
|
||
delete queue[id];
|
||
};
|
||
// Node.js 0.8-
|
||
if(_dereq_(12)(process) == 'process'){
|
||
defer = function(id){
|
||
process.nextTick(ctx(run, id, 1));
|
||
};
|
||
// Browsers with MessageChannel, includes WebWorkers
|
||
} else if(MessageChannel){
|
||
channel = new MessageChannel;
|
||
port = channel.port2;
|
||
channel.port1.onmessage = listner;
|
||
defer = ctx(port.postMessage, port, 1);
|
||
// Browsers with postMessage, skip WebWorkers
|
||
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
||
} else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){
|
||
defer = function(id){
|
||
global.postMessage(id + '', '*');
|
||
};
|
||
global.addEventListener('message', listner, false);
|
||
// IE8-
|
||
} else if(ONREADYSTATECHANGE in cel('script')){
|
||
defer = function(id){
|
||
html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function(){
|
||
html.removeChild(this);
|
||
run.call(id);
|
||
};
|
||
};
|
||
// Rest old browsers
|
||
} else {
|
||
defer = function(id){
|
||
setTimeout(ctx(run, id, 1), 0);
|
||
};
|
||
}
|
||
}
|
||
module.exports = {
|
||
set: setTask,
|
||
clear: clearTask
|
||
};
|
||
},{"12":12,"18":18,"21":21,"30":30,"33":33,"34":34}],77:[function(_dereq_,module,exports){
|
||
var toInteger = _dereq_(78)
|
||
, max = Math.max
|
||
, min = Math.min;
|
||
module.exports = function(index, length){
|
||
index = toInteger(index);
|
||
return index < 0 ? max(index + length, 0) : min(index, length);
|
||
};
|
||
},{"78":78}],78:[function(_dereq_,module,exports){
|
||
// 7.1.4 ToInteger
|
||
var ceil = Math.ceil
|
||
, floor = Math.floor;
|
||
module.exports = function(it){
|
||
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
|
||
};
|
||
},{}],79:[function(_dereq_,module,exports){
|
||
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
||
var IObject = _dereq_(35)
|
||
, defined = _dereq_(19);
|
||
module.exports = function(it){
|
||
return IObject(defined(it));
|
||
};
|
||
},{"19":19,"35":35}],80:[function(_dereq_,module,exports){
|
||
// 7.1.15 ToLength
|
||
var toInteger = _dereq_(78)
|
||
, min = Math.min;
|
||
module.exports = function(it){
|
||
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
||
};
|
||
},{"78":78}],81:[function(_dereq_,module,exports){
|
||
// 7.1.13 ToObject(argument)
|
||
var defined = _dereq_(19);
|
||
module.exports = function(it){
|
||
return Object(defined(it));
|
||
};
|
||
},{"19":19}],82:[function(_dereq_,module,exports){
|
||
// 7.1.1 ToPrimitive(input [, PreferredType])
|
||
var isObject = _dereq_(39);
|
||
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
||
// and the second argument - flag - preferred type is a string
|
||
module.exports = function(it, S){
|
||
if(!isObject(it))return it;
|
||
var fn, val;
|
||
if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
|
||
if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;
|
||
if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
|
||
throw TypeError("Can't convert object to primitive value");
|
||
};
|
||
},{"39":39}],83:[function(_dereq_,module,exports){
|
||
var id = 0
|
||
, px = Math.random();
|
||
module.exports = function(key){
|
||
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
||
};
|
||
},{}],84:[function(_dereq_,module,exports){
|
||
var store = _dereq_(68)('wks')
|
||
, uid = _dereq_(83)
|
||
, Symbol = _dereq_(30).Symbol;
|
||
module.exports = function(name){
|
||
return store[name] || (store[name] =
|
||
Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));
|
||
};
|
||
},{"30":30,"68":68,"83":83}],85:[function(_dereq_,module,exports){
|
||
var classof = _dereq_(11)
|
||
, ITERATOR = _dereq_(84)('iterator')
|
||
, Iterators = _dereq_(46);
|
||
module.exports = _dereq_(17).getIteratorMethod = function(it){
|
||
if(it != undefined)return it[ITERATOR]
|
||
|| it['@@iterator']
|
||
|| Iterators[classof(it)];
|
||
};
|
||
},{"11":11,"17":17,"46":46,"84":84}],86:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $ = _dereq_(47)
|
||
, $export = _dereq_(23)
|
||
, DESCRIPTORS = _dereq_(20)
|
||
, createDesc = _dereq_(60)
|
||
, html = _dereq_(33)
|
||
, cel = _dereq_(21)
|
||
, has = _dereq_(31)
|
||
, cof = _dereq_(12)
|
||
, invoke = _dereq_(34)
|
||
, fails = _dereq_(25)
|
||
, anObject = _dereq_(5)
|
||
, aFunction = _dereq_(3)
|
||
, isObject = _dereq_(39)
|
||
, toObject = _dereq_(81)
|
||
, toIObject = _dereq_(79)
|
||
, toInteger = _dereq_(78)
|
||
, toIndex = _dereq_(77)
|
||
, toLength = _dereq_(80)
|
||
, IObject = _dereq_(35)
|
||
, IE_PROTO = _dereq_(83)('__proto__')
|
||
, createArrayMethod = _dereq_(9)
|
||
, arrayIndexOf = _dereq_(8)(false)
|
||
, ObjectProto = Object.prototype
|
||
, ArrayProto = Array.prototype
|
||
, arraySlice = ArrayProto.slice
|
||
, arrayJoin = ArrayProto.join
|
||
, defineProperty = $.setDesc
|
||
, getOwnDescriptor = $.getDesc
|
||
, defineProperties = $.setDescs
|
||
, factories = {}
|
||
, IE8_DOM_DEFINE;
|
||
|
||
if(!DESCRIPTORS){
|
||
IE8_DOM_DEFINE = !fails(function(){
|
||
return defineProperty(cel('div'), 'a', {get: function(){ return 7; }}).a != 7;
|
||
});
|
||
$.setDesc = function(O, P, Attributes){
|
||
if(IE8_DOM_DEFINE)try {
|
||
return defineProperty(O, P, Attributes);
|
||
} catch(e){ /* empty */ }
|
||
if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
|
||
if('value' in Attributes)anObject(O)[P] = Attributes.value;
|
||
return O;
|
||
};
|
||
$.getDesc = function(O, P){
|
||
if(IE8_DOM_DEFINE)try {
|
||
return getOwnDescriptor(O, P);
|
||
} catch(e){ /* empty */ }
|
||
if(has(O, P))return createDesc(!ObjectProto.propertyIsEnumerable.call(O, P), O[P]);
|
||
};
|
||
$.setDescs = defineProperties = function(O, Properties){
|
||
anObject(O);
|
||
var keys = $.getKeys(Properties)
|
||
, length = keys.length
|
||
, i = 0
|
||
, P;
|
||
while(length > i)$.setDesc(O, P = keys[i++], Properties[P]);
|
||
return O;
|
||
};
|
||
}
|
||
$export($export.S + $export.F * !DESCRIPTORS, 'Object', {
|
||
// 19.1.2.6 / 15.2.3.3 Object.getOwnPropertyDescriptor(O, P)
|
||
getOwnPropertyDescriptor: $.getDesc,
|
||
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
||
defineProperty: $.setDesc,
|
||
// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
|
||
defineProperties: defineProperties
|
||
});
|
||
|
||
// IE 8- don't enum bug keys
|
||
var keys1 = ('constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,' +
|
||
'toLocaleString,toString,valueOf').split(',')
|
||
// Additional keys for getOwnPropertyNames
|
||
, keys2 = keys1.concat('length', 'prototype')
|
||
, keysLen1 = keys1.length;
|
||
|
||
// Create object with `null` prototype: use iframe Object with cleared prototype
|
||
var createDict = function(){
|
||
// Thrash, waste and sodomy: IE GC bug
|
||
var iframe = cel('iframe')
|
||
, i = keysLen1
|
||
, gt = '>'
|
||
, iframeDocument;
|
||
iframe.style.display = 'none';
|
||
html.appendChild(iframe);
|
||
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
|
||
// createDict = iframe.contentWindow.Object;
|
||
// html.removeChild(iframe);
|
||
iframeDocument = iframe.contentWindow.document;
|
||
iframeDocument.open();
|
||
iframeDocument.write('<script>document.F=Object</script' + gt);
|
||
iframeDocument.close();
|
||
createDict = iframeDocument.F;
|
||
while(i--)delete createDict.prototype[keys1[i]];
|
||
return createDict();
|
||
};
|
||
var createGetKeys = function(names, length){
|
||
return function(object){
|
||
var O = toIObject(object)
|
||
, i = 0
|
||
, result = []
|
||
, key;
|
||
for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);
|
||
// Don't enum bug & hidden keys
|
||
while(length > i)if(has(O, key = names[i++])){
|
||
~arrayIndexOf(result, key) || result.push(key);
|
||
}
|
||
return result;
|
||
};
|
||
};
|
||
var Empty = function(){};
|
||
$export($export.S, 'Object', {
|
||
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
|
||
getPrototypeOf: $.getProto = $.getProto || function(O){
|
||
O = toObject(O);
|
||
if(has(O, IE_PROTO))return O[IE_PROTO];
|
||
if(typeof O.constructor == 'function' && O instanceof O.constructor){
|
||
return O.constructor.prototype;
|
||
} return O instanceof Object ? ObjectProto : null;
|
||
},
|
||
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
|
||
getOwnPropertyNames: $.getNames = $.getNames || createGetKeys(keys2, keys2.length, true),
|
||
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
||
create: $.create = $.create || function(O, /*?*/Properties){
|
||
var result;
|
||
if(O !== null){
|
||
Empty.prototype = anObject(O);
|
||
result = new Empty();
|
||
Empty.prototype = null;
|
||
// add "__proto__" for Object.getPrototypeOf shim
|
||
result[IE_PROTO] = O;
|
||
} else result = createDict();
|
||
return Properties === undefined ? result : defineProperties(result, Properties);
|
||
},
|
||
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
||
keys: $.getKeys = $.getKeys || createGetKeys(keys1, keysLen1, false)
|
||
});
|
||
|
||
var construct = function(F, len, args){
|
||
if(!(len in factories)){
|
||
for(var n = [], i = 0; i < len; i++)n[i] = 'a[' + i + ']';
|
||
factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
|
||
}
|
||
return factories[len](F, args);
|
||
};
|
||
|
||
// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
|
||
$export($export.P, 'Function', {
|
||
bind: function bind(that /*, args... */){
|
||
var fn = aFunction(this)
|
||
, partArgs = arraySlice.call(arguments, 1);
|
||
var bound = function(/* args... */){
|
||
var args = partArgs.concat(arraySlice.call(arguments));
|
||
return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
|
||
};
|
||
if(isObject(fn.prototype))bound.prototype = fn.prototype;
|
||
return bound;
|
||
}
|
||
});
|
||
|
||
// fallback for not array-like ES3 strings and DOM objects
|
||
$export($export.P + $export.F * fails(function(){
|
||
if(html)arraySlice.call(html);
|
||
}), 'Array', {
|
||
slice: function(begin, end){
|
||
var len = toLength(this.length)
|
||
, klass = cof(this);
|
||
end = end === undefined ? len : end;
|
||
if(klass == 'Array')return arraySlice.call(this, begin, end);
|
||
var start = toIndex(begin, len)
|
||
, upTo = toIndex(end, len)
|
||
, size = toLength(upTo - start)
|
||
, cloned = Array(size)
|
||
, i = 0;
|
||
for(; i < size; i++)cloned[i] = klass == 'String'
|
||
? this.charAt(start + i)
|
||
: this[start + i];
|
||
return cloned;
|
||
}
|
||
});
|
||
$export($export.P + $export.F * (IObject != Object), 'Array', {
|
||
join: function join(separator){
|
||
return arrayJoin.call(IObject(this), separator === undefined ? ',' : separator);
|
||
}
|
||
});
|
||
|
||
// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
|
||
$export($export.S, 'Array', {isArray: _dereq_(37)});
|
||
|
||
var createArrayReduce = function(isRight){
|
||
return function(callbackfn, memo){
|
||
aFunction(callbackfn);
|
||
var O = IObject(this)
|
||
, length = toLength(O.length)
|
||
, index = isRight ? length - 1 : 0
|
||
, i = isRight ? -1 : 1;
|
||
if(arguments.length < 2)for(;;){
|
||
if(index in O){
|
||
memo = O[index];
|
||
index += i;
|
||
break;
|
||
}
|
||
index += i;
|
||
if(isRight ? index < 0 : length <= index){
|
||
throw TypeError('Reduce of empty array with no initial value');
|
||
}
|
||
}
|
||
for(;isRight ? index >= 0 : length > index; index += i)if(index in O){
|
||
memo = callbackfn(memo, O[index], index, this);
|
||
}
|
||
return memo;
|
||
};
|
||
};
|
||
|
||
var methodize = function($fn){
|
||
return function(arg1/*, arg2 = undefined */){
|
||
return $fn(this, arg1, arguments[1]);
|
||
};
|
||
};
|
||
|
||
$export($export.P, 'Array', {
|
||
// 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])
|
||
forEach: $.each = $.each || methodize(createArrayMethod(0)),
|
||
// 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])
|
||
map: methodize(createArrayMethod(1)),
|
||
// 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])
|
||
filter: methodize(createArrayMethod(2)),
|
||
// 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])
|
||
some: methodize(createArrayMethod(3)),
|
||
// 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])
|
||
every: methodize(createArrayMethod(4)),
|
||
// 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])
|
||
reduce: createArrayReduce(false),
|
||
// 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
|
||
reduceRight: createArrayReduce(true),
|
||
// 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])
|
||
indexOf: methodize(arrayIndexOf),
|
||
// 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])
|
||
lastIndexOf: function(el, fromIndex /* = @[*-1] */){
|
||
var O = toIObject(this)
|
||
, length = toLength(O.length)
|
||
, index = length - 1;
|
||
if(arguments.length > 1)index = Math.min(index, toInteger(fromIndex));
|
||
if(index < 0)index = toLength(length + index);
|
||
for(;index >= 0; index--)if(index in O)if(O[index] === el)return index;
|
||
return -1;
|
||
}
|
||
});
|
||
|
||
// 20.3.3.1 / 15.9.4.4 Date.now()
|
||
$export($export.S, 'Date', {now: function(){ return +new Date; }});
|
||
|
||
var lz = function(num){
|
||
return num > 9 ? num : '0' + num;
|
||
};
|
||
|
||
// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
|
||
// PhantomJS / old WebKit has a broken implementations
|
||
$export($export.P + $export.F * (fails(function(){
|
||
return new Date(-5e13 - 1).toISOString() != '0385-07-25T07:06:39.999Z';
|
||
}) || !fails(function(){
|
||
new Date(NaN).toISOString();
|
||
})), 'Date', {
|
||
toISOString: function toISOString(){
|
||
if(!isFinite(this))throw RangeError('Invalid time value');
|
||
var d = this
|
||
, y = d.getUTCFullYear()
|
||
, m = d.getUTCMilliseconds()
|
||
, s = y < 0 ? '-' : y > 9999 ? '+' : '';
|
||
return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +
|
||
'-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +
|
||
'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +
|
||
':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z';
|
||
}
|
||
});
|
||
},{"12":12,"20":20,"21":21,"23":23,"25":25,"3":3,"31":31,"33":33,"34":34,"35":35,"37":37,"39":39,"47":47,"5":5,"60":60,"77":77,"78":78,"79":79,"8":8,"80":80,"81":81,"83":83,"9":9}],87:[function(_dereq_,module,exports){
|
||
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.P, 'Array', {copyWithin: _dereq_(6)});
|
||
|
||
_dereq_(4)('copyWithin');
|
||
},{"23":23,"4":4,"6":6}],88:[function(_dereq_,module,exports){
|
||
// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.P, 'Array', {fill: _dereq_(7)});
|
||
|
||
_dereq_(4)('fill');
|
||
},{"23":23,"4":4,"7":7}],89:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
|
||
var $export = _dereq_(23)
|
||
, $find = _dereq_(9)(6)
|
||
, KEY = 'findIndex'
|
||
, forced = true;
|
||
// Shouldn't skip holes
|
||
if(KEY in [])Array(1)[KEY](function(){ forced = false; });
|
||
$export($export.P + $export.F * forced, 'Array', {
|
||
findIndex: function findIndex(callbackfn/*, that = undefined */){
|
||
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
||
}
|
||
});
|
||
_dereq_(4)(KEY);
|
||
},{"23":23,"4":4,"9":9}],90:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
|
||
var $export = _dereq_(23)
|
||
, $find = _dereq_(9)(5)
|
||
, KEY = 'find'
|
||
, forced = true;
|
||
// Shouldn't skip holes
|
||
if(KEY in [])Array(1)[KEY](function(){ forced = false; });
|
||
$export($export.P + $export.F * forced, 'Array', {
|
||
find: function find(callbackfn/*, that = undefined */){
|
||
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
||
}
|
||
});
|
||
_dereq_(4)(KEY);
|
||
},{"23":23,"4":4,"9":9}],91:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var ctx = _dereq_(18)
|
||
, $export = _dereq_(23)
|
||
, toObject = _dereq_(81)
|
||
, call = _dereq_(41)
|
||
, isArrayIter = _dereq_(36)
|
||
, toLength = _dereq_(80)
|
||
, getIterFn = _dereq_(85);
|
||
$export($export.S + $export.F * !_dereq_(44)(function(iter){ Array.from(iter); }), 'Array', {
|
||
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
|
||
from: function from(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
|
||
var O = toObject(arrayLike)
|
||
, C = typeof this == 'function' ? this : Array
|
||
, $$ = arguments
|
||
, $$len = $$.length
|
||
, mapfn = $$len > 1 ? $$[1] : undefined
|
||
, mapping = mapfn !== undefined
|
||
, index = 0
|
||
, iterFn = getIterFn(O)
|
||
, length, result, step, iterator;
|
||
if(mapping)mapfn = ctx(mapfn, $$len > 2 ? $$[2] : undefined, 2);
|
||
// if object isn't iterable or it's array with default iterator - use simple case
|
||
if(iterFn != undefined && !(C == Array && isArrayIter(iterFn))){
|
||
for(iterator = iterFn.call(O), result = new C; !(step = iterator.next()).done; index++){
|
||
result[index] = mapping ? call(iterator, mapfn, [step.value, index], true) : step.value;
|
||
}
|
||
} else {
|
||
length = toLength(O.length);
|
||
for(result = new C(length); length > index; index++){
|
||
result[index] = mapping ? mapfn(O[index], index) : O[index];
|
||
}
|
||
}
|
||
result.length = index;
|
||
return result;
|
||
}
|
||
});
|
||
|
||
},{"18":18,"23":23,"36":36,"41":41,"44":44,"80":80,"81":81,"85":85}],92:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var addToUnscopables = _dereq_(4)
|
||
, step = _dereq_(45)
|
||
, Iterators = _dereq_(46)
|
||
, toIObject = _dereq_(79);
|
||
|
||
// 22.1.3.4 Array.prototype.entries()
|
||
// 22.1.3.13 Array.prototype.keys()
|
||
// 22.1.3.29 Array.prototype.values()
|
||
// 22.1.3.30 Array.prototype[@@iterator]()
|
||
module.exports = _dereq_(43)(Array, 'Array', function(iterated, kind){
|
||
this._t = toIObject(iterated); // target
|
||
this._i = 0; // next index
|
||
this._k = kind; // kind
|
||
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
|
||
}, function(){
|
||
var O = this._t
|
||
, kind = this._k
|
||
, index = this._i++;
|
||
if(!O || index >= O.length){
|
||
this._t = undefined;
|
||
return step(1);
|
||
}
|
||
if(kind == 'keys' )return step(0, index);
|
||
if(kind == 'values')return step(0, O[index]);
|
||
return step(0, [index, O[index]]);
|
||
}, 'values');
|
||
|
||
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
|
||
Iterators.Arguments = Iterators.Array;
|
||
|
||
addToUnscopables('keys');
|
||
addToUnscopables('values');
|
||
addToUnscopables('entries');
|
||
},{"4":4,"43":43,"45":45,"46":46,"79":79}],93:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $export = _dereq_(23);
|
||
|
||
// WebKit Array.of isn't generic
|
||
$export($export.S + $export.F * _dereq_(25)(function(){
|
||
function F(){}
|
||
return !(Array.of.call(F) instanceof F);
|
||
}), 'Array', {
|
||
// 22.1.2.3 Array.of( ...items)
|
||
of: function of(/* ...args */){
|
||
var index = 0
|
||
, $$ = arguments
|
||
, $$len = $$.length
|
||
, result = new (typeof this == 'function' ? this : Array)($$len);
|
||
while($$len > index)result[index] = $$[index++];
|
||
result.length = $$len;
|
||
return result;
|
||
}
|
||
});
|
||
},{"23":23,"25":25}],94:[function(_dereq_,module,exports){
|
||
_dereq_(66)('Array');
|
||
},{"66":66}],95:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $ = _dereq_(47)
|
||
, isObject = _dereq_(39)
|
||
, HAS_INSTANCE = _dereq_(84)('hasInstance')
|
||
, FunctionProto = Function.prototype;
|
||
// 19.2.3.6 Function.prototype[@@hasInstance](V)
|
||
if(!(HAS_INSTANCE in FunctionProto))$.setDesc(FunctionProto, HAS_INSTANCE, {value: function(O){
|
||
if(typeof this != 'function' || !isObject(O))return false;
|
||
if(!isObject(this.prototype))return O instanceof this;
|
||
// for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
|
||
while(O = $.getProto(O))if(this.prototype === O)return true;
|
||
return false;
|
||
}});
|
||
},{"39":39,"47":47,"84":84}],96:[function(_dereq_,module,exports){
|
||
var setDesc = _dereq_(47).setDesc
|
||
, createDesc = _dereq_(60)
|
||
, has = _dereq_(31)
|
||
, FProto = Function.prototype
|
||
, nameRE = /^\s*function ([^ (]*)/
|
||
, NAME = 'name';
|
||
// 19.2.4.2 name
|
||
NAME in FProto || _dereq_(20) && setDesc(FProto, NAME, {
|
||
configurable: true,
|
||
get: function(){
|
||
var match = ('' + this).match(nameRE)
|
||
, name = match ? match[1] : '';
|
||
has(this, NAME) || setDesc(this, NAME, createDesc(5, name));
|
||
return name;
|
||
}
|
||
});
|
||
},{"20":20,"31":31,"47":47,"60":60}],97:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var strong = _dereq_(13);
|
||
|
||
// 23.1 Map Objects
|
||
_dereq_(16)('Map', function(get){
|
||
return function Map(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };
|
||
}, {
|
||
// 23.1.3.6 Map.prototype.get(key)
|
||
get: function get(key){
|
||
var entry = strong.getEntry(this, key);
|
||
return entry && entry.v;
|
||
},
|
||
// 23.1.3.9 Map.prototype.set(key, value)
|
||
set: function set(key, value){
|
||
return strong.def(this, key === 0 ? 0 : key, value);
|
||
}
|
||
}, strong, true);
|
||
},{"13":13,"16":16}],98:[function(_dereq_,module,exports){
|
||
// 20.2.2.3 Math.acosh(x)
|
||
var $export = _dereq_(23)
|
||
, log1p = _dereq_(51)
|
||
, sqrt = Math.sqrt
|
||
, $acosh = Math.acosh;
|
||
|
||
// V8 bug https://code.google.com/p/v8/issues/detail?id=3509
|
||
$export($export.S + $export.F * !($acosh && Math.floor($acosh(Number.MAX_VALUE)) == 710), 'Math', {
|
||
acosh: function acosh(x){
|
||
return (x = +x) < 1 ? NaN : x > 94906265.62425156
|
||
? Math.log(x) + Math.LN2
|
||
: log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));
|
||
}
|
||
});
|
||
},{"23":23,"51":51}],99:[function(_dereq_,module,exports){
|
||
// 20.2.2.5 Math.asinh(x)
|
||
var $export = _dereq_(23);
|
||
|
||
function asinh(x){
|
||
return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));
|
||
}
|
||
|
||
$export($export.S, 'Math', {asinh: asinh});
|
||
},{"23":23}],100:[function(_dereq_,module,exports){
|
||
// 20.2.2.7 Math.atanh(x)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Math', {
|
||
atanh: function atanh(x){
|
||
return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;
|
||
}
|
||
});
|
||
},{"23":23}],101:[function(_dereq_,module,exports){
|
||
// 20.2.2.9 Math.cbrt(x)
|
||
var $export = _dereq_(23)
|
||
, sign = _dereq_(52);
|
||
|
||
$export($export.S, 'Math', {
|
||
cbrt: function cbrt(x){
|
||
return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);
|
||
}
|
||
});
|
||
},{"23":23,"52":52}],102:[function(_dereq_,module,exports){
|
||
// 20.2.2.11 Math.clz32(x)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Math', {
|
||
clz32: function clz32(x){
|
||
return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;
|
||
}
|
||
});
|
||
},{"23":23}],103:[function(_dereq_,module,exports){
|
||
// 20.2.2.12 Math.cosh(x)
|
||
var $export = _dereq_(23)
|
||
, exp = Math.exp;
|
||
|
||
$export($export.S, 'Math', {
|
||
cosh: function cosh(x){
|
||
return (exp(x = +x) + exp(-x)) / 2;
|
||
}
|
||
});
|
||
},{"23":23}],104:[function(_dereq_,module,exports){
|
||
// 20.2.2.14 Math.expm1(x)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Math', {expm1: _dereq_(50)});
|
||
},{"23":23,"50":50}],105:[function(_dereq_,module,exports){
|
||
// 20.2.2.16 Math.fround(x)
|
||
var $export = _dereq_(23)
|
||
, sign = _dereq_(52)
|
||
, pow = Math.pow
|
||
, EPSILON = pow(2, -52)
|
||
, EPSILON32 = pow(2, -23)
|
||
, MAX32 = pow(2, 127) * (2 - EPSILON32)
|
||
, MIN32 = pow(2, -126);
|
||
|
||
var roundTiesToEven = function(n){
|
||
return n + 1 / EPSILON - 1 / EPSILON;
|
||
};
|
||
|
||
|
||
$export($export.S, 'Math', {
|
||
fround: function fround(x){
|
||
var $abs = Math.abs(x)
|
||
, $sign = sign(x)
|
||
, a, result;
|
||
if($abs < MIN32)return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
|
||
a = (1 + EPSILON32 / EPSILON) * $abs;
|
||
result = a - (a - $abs);
|
||
if(result > MAX32 || result != result)return $sign * Infinity;
|
||
return $sign * result;
|
||
}
|
||
});
|
||
},{"23":23,"52":52}],106:[function(_dereq_,module,exports){
|
||
// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])
|
||
var $export = _dereq_(23)
|
||
, abs = Math.abs;
|
||
|
||
$export($export.S, 'Math', {
|
||
hypot: function hypot(value1, value2){ // eslint-disable-line no-unused-vars
|
||
var sum = 0
|
||
, i = 0
|
||
, $$ = arguments
|
||
, $$len = $$.length
|
||
, larg = 0
|
||
, arg, div;
|
||
while(i < $$len){
|
||
arg = abs($$[i++]);
|
||
if(larg < arg){
|
||
div = larg / arg;
|
||
sum = sum * div * div + 1;
|
||
larg = arg;
|
||
} else if(arg > 0){
|
||
div = arg / larg;
|
||
sum += div * div;
|
||
} else sum += arg;
|
||
}
|
||
return larg === Infinity ? Infinity : larg * Math.sqrt(sum);
|
||
}
|
||
});
|
||
},{"23":23}],107:[function(_dereq_,module,exports){
|
||
// 20.2.2.18 Math.imul(x, y)
|
||
var $export = _dereq_(23)
|
||
, $imul = Math.imul;
|
||
|
||
// some WebKit versions fails with big numbers, some has wrong arity
|
||
$export($export.S + $export.F * _dereq_(25)(function(){
|
||
return $imul(0xffffffff, 5) != -5 || $imul.length != 2;
|
||
}), 'Math', {
|
||
imul: function imul(x, y){
|
||
var UINT16 = 0xffff
|
||
, xn = +x
|
||
, yn = +y
|
||
, xl = UINT16 & xn
|
||
, yl = UINT16 & yn;
|
||
return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);
|
||
}
|
||
});
|
||
},{"23":23,"25":25}],108:[function(_dereq_,module,exports){
|
||
// 20.2.2.21 Math.log10(x)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Math', {
|
||
log10: function log10(x){
|
||
return Math.log(x) / Math.LN10;
|
||
}
|
||
});
|
||
},{"23":23}],109:[function(_dereq_,module,exports){
|
||
// 20.2.2.20 Math.log1p(x)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Math', {log1p: _dereq_(51)});
|
||
},{"23":23,"51":51}],110:[function(_dereq_,module,exports){
|
||
// 20.2.2.22 Math.log2(x)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Math', {
|
||
log2: function log2(x){
|
||
return Math.log(x) / Math.LN2;
|
||
}
|
||
});
|
||
},{"23":23}],111:[function(_dereq_,module,exports){
|
||
// 20.2.2.28 Math.sign(x)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Math', {sign: _dereq_(52)});
|
||
},{"23":23,"52":52}],112:[function(_dereq_,module,exports){
|
||
// 20.2.2.30 Math.sinh(x)
|
||
var $export = _dereq_(23)
|
||
, expm1 = _dereq_(50)
|
||
, exp = Math.exp;
|
||
|
||
// V8 near Chromium 38 has a problem with very small numbers
|
||
$export($export.S + $export.F * _dereq_(25)(function(){
|
||
return !Math.sinh(-2e-17) != -2e-17;
|
||
}), 'Math', {
|
||
sinh: function sinh(x){
|
||
return Math.abs(x = +x) < 1
|
||
? (expm1(x) - expm1(-x)) / 2
|
||
: (exp(x - 1) - exp(-x - 1)) * (Math.E / 2);
|
||
}
|
||
});
|
||
},{"23":23,"25":25,"50":50}],113:[function(_dereq_,module,exports){
|
||
// 20.2.2.33 Math.tanh(x)
|
||
var $export = _dereq_(23)
|
||
, expm1 = _dereq_(50)
|
||
, exp = Math.exp;
|
||
|
||
$export($export.S, 'Math', {
|
||
tanh: function tanh(x){
|
||
var a = expm1(x = +x)
|
||
, b = expm1(-x);
|
||
return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));
|
||
}
|
||
});
|
||
},{"23":23,"50":50}],114:[function(_dereq_,module,exports){
|
||
// 20.2.2.34 Math.trunc(x)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Math', {
|
||
trunc: function trunc(it){
|
||
return (it > 0 ? Math.floor : Math.ceil)(it);
|
||
}
|
||
});
|
||
},{"23":23}],115:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $ = _dereq_(47)
|
||
, global = _dereq_(30)
|
||
, has = _dereq_(31)
|
||
, cof = _dereq_(12)
|
||
, toPrimitive = _dereq_(82)
|
||
, fails = _dereq_(25)
|
||
, $trim = _dereq_(75).trim
|
||
, NUMBER = 'Number'
|
||
, $Number = global[NUMBER]
|
||
, Base = $Number
|
||
, proto = $Number.prototype
|
||
// Opera ~12 has broken Object#toString
|
||
, BROKEN_COF = cof($.create(proto)) == NUMBER
|
||
, TRIM = 'trim' in String.prototype;
|
||
|
||
// 7.1.3 ToNumber(argument)
|
||
var toNumber = function(argument){
|
||
var it = toPrimitive(argument, false);
|
||
if(typeof it == 'string' && it.length > 2){
|
||
it = TRIM ? it.trim() : $trim(it, 3);
|
||
var first = it.charCodeAt(0)
|
||
, third, radix, maxCode;
|
||
if(first === 43 || first === 45){
|
||
third = it.charCodeAt(2);
|
||
if(third === 88 || third === 120)return NaN; // Number('+0x1') should be NaN, old V8 fix
|
||
} else if(first === 48){
|
||
switch(it.charCodeAt(1)){
|
||
case 66 : case 98 : radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
|
||
case 79 : case 111 : radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
|
||
default : return +it;
|
||
}
|
||
for(var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++){
|
||
code = digits.charCodeAt(i);
|
||
// parseInt parses a string to a first unavailable symbol
|
||
// but ToNumber should return NaN if a string contains unavailable symbols
|
||
if(code < 48 || code > maxCode)return NaN;
|
||
} return parseInt(digits, radix);
|
||
}
|
||
} return +it;
|
||
};
|
||
|
||
if(!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')){
|
||
$Number = function Number(value){
|
||
var it = arguments.length < 1 ? 0 : value
|
||
, that = this;
|
||
return that instanceof $Number
|
||
// check on 1..constructor(foo) case
|
||
&& (BROKEN_COF ? fails(function(){ proto.valueOf.call(that); }) : cof(that) != NUMBER)
|
||
? new Base(toNumber(it)) : toNumber(it);
|
||
};
|
||
$.each.call(_dereq_(20) ? $.getNames(Base) : (
|
||
// ES3:
|
||
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
|
||
// ES6 (in case, if modules with ES6 Number statics required before):
|
||
'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
|
||
'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
|
||
).split(','), function(key){
|
||
if(has(Base, key) && !has($Number, key)){
|
||
$.setDesc($Number, key, $.getDesc(Base, key));
|
||
}
|
||
});
|
||
$Number.prototype = proto;
|
||
proto.constructor = $Number;
|
||
_dereq_(62)(global, NUMBER, $Number);
|
||
}
|
||
},{"12":12,"20":20,"25":25,"30":30,"31":31,"47":47,"62":62,"75":75,"82":82}],116:[function(_dereq_,module,exports){
|
||
// 20.1.2.1 Number.EPSILON
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Number', {EPSILON: Math.pow(2, -52)});
|
||
},{"23":23}],117:[function(_dereq_,module,exports){
|
||
// 20.1.2.2 Number.isFinite(number)
|
||
var $export = _dereq_(23)
|
||
, _isFinite = _dereq_(30).isFinite;
|
||
|
||
$export($export.S, 'Number', {
|
||
isFinite: function isFinite(it){
|
||
return typeof it == 'number' && _isFinite(it);
|
||
}
|
||
});
|
||
},{"23":23,"30":30}],118:[function(_dereq_,module,exports){
|
||
// 20.1.2.3 Number.isInteger(number)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Number', {isInteger: _dereq_(38)});
|
||
},{"23":23,"38":38}],119:[function(_dereq_,module,exports){
|
||
// 20.1.2.4 Number.isNaN(number)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Number', {
|
||
isNaN: function isNaN(number){
|
||
return number != number;
|
||
}
|
||
});
|
||
},{"23":23}],120:[function(_dereq_,module,exports){
|
||
// 20.1.2.5 Number.isSafeInteger(number)
|
||
var $export = _dereq_(23)
|
||
, isInteger = _dereq_(38)
|
||
, abs = Math.abs;
|
||
|
||
$export($export.S, 'Number', {
|
||
isSafeInteger: function isSafeInteger(number){
|
||
return isInteger(number) && abs(number) <= 0x1fffffffffffff;
|
||
}
|
||
});
|
||
},{"23":23,"38":38}],121:[function(_dereq_,module,exports){
|
||
// 20.1.2.6 Number.MAX_SAFE_INTEGER
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Number', {MAX_SAFE_INTEGER: 0x1fffffffffffff});
|
||
},{"23":23}],122:[function(_dereq_,module,exports){
|
||
// 20.1.2.10 Number.MIN_SAFE_INTEGER
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Number', {MIN_SAFE_INTEGER: -0x1fffffffffffff});
|
||
},{"23":23}],123:[function(_dereq_,module,exports){
|
||
// 20.1.2.12 Number.parseFloat(string)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Number', {parseFloat: parseFloat});
|
||
},{"23":23}],124:[function(_dereq_,module,exports){
|
||
// 20.1.2.13 Number.parseInt(string, radix)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Number', {parseInt: parseInt});
|
||
},{"23":23}],125:[function(_dereq_,module,exports){
|
||
// 19.1.3.1 Object.assign(target, source)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S + $export.F, 'Object', {assign: _dereq_(54)});
|
||
},{"23":23,"54":54}],126:[function(_dereq_,module,exports){
|
||
// 19.1.2.5 Object.freeze(O)
|
||
var isObject = _dereq_(39);
|
||
|
||
_dereq_(55)('freeze', function($freeze){
|
||
return function freeze(it){
|
||
return $freeze && isObject(it) ? $freeze(it) : it;
|
||
};
|
||
});
|
||
},{"39":39,"55":55}],127:[function(_dereq_,module,exports){
|
||
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
|
||
var toIObject = _dereq_(79);
|
||
|
||
_dereq_(55)('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor){
|
||
return function getOwnPropertyDescriptor(it, key){
|
||
return $getOwnPropertyDescriptor(toIObject(it), key);
|
||
};
|
||
});
|
||
},{"55":55,"79":79}],128:[function(_dereq_,module,exports){
|
||
// 19.1.2.7 Object.getOwnPropertyNames(O)
|
||
_dereq_(55)('getOwnPropertyNames', function(){
|
||
return _dereq_(29).get;
|
||
});
|
||
},{"29":29,"55":55}],129:[function(_dereq_,module,exports){
|
||
// 19.1.2.9 Object.getPrototypeOf(O)
|
||
var toObject = _dereq_(81);
|
||
|
||
_dereq_(55)('getPrototypeOf', function($getPrototypeOf){
|
||
return function getPrototypeOf(it){
|
||
return $getPrototypeOf(toObject(it));
|
||
};
|
||
});
|
||
},{"55":55,"81":81}],130:[function(_dereq_,module,exports){
|
||
// 19.1.2.11 Object.isExtensible(O)
|
||
var isObject = _dereq_(39);
|
||
|
||
_dereq_(55)('isExtensible', function($isExtensible){
|
||
return function isExtensible(it){
|
||
return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;
|
||
};
|
||
});
|
||
},{"39":39,"55":55}],131:[function(_dereq_,module,exports){
|
||
// 19.1.2.12 Object.isFrozen(O)
|
||
var isObject = _dereq_(39);
|
||
|
||
_dereq_(55)('isFrozen', function($isFrozen){
|
||
return function isFrozen(it){
|
||
return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;
|
||
};
|
||
});
|
||
},{"39":39,"55":55}],132:[function(_dereq_,module,exports){
|
||
// 19.1.2.13 Object.isSealed(O)
|
||
var isObject = _dereq_(39);
|
||
|
||
_dereq_(55)('isSealed', function($isSealed){
|
||
return function isSealed(it){
|
||
return isObject(it) ? $isSealed ? $isSealed(it) : false : true;
|
||
};
|
||
});
|
||
},{"39":39,"55":55}],133:[function(_dereq_,module,exports){
|
||
// 19.1.3.10 Object.is(value1, value2)
|
||
var $export = _dereq_(23);
|
||
$export($export.S, 'Object', {is: _dereq_(64)});
|
||
},{"23":23,"64":64}],134:[function(_dereq_,module,exports){
|
||
// 19.1.2.14 Object.keys(O)
|
||
var toObject = _dereq_(81);
|
||
|
||
_dereq_(55)('keys', function($keys){
|
||
return function keys(it){
|
||
return $keys(toObject(it));
|
||
};
|
||
});
|
||
},{"55":55,"81":81}],135:[function(_dereq_,module,exports){
|
||
// 19.1.2.15 Object.preventExtensions(O)
|
||
var isObject = _dereq_(39);
|
||
|
||
_dereq_(55)('preventExtensions', function($preventExtensions){
|
||
return function preventExtensions(it){
|
||
return $preventExtensions && isObject(it) ? $preventExtensions(it) : it;
|
||
};
|
||
});
|
||
},{"39":39,"55":55}],136:[function(_dereq_,module,exports){
|
||
// 19.1.2.17 Object.seal(O)
|
||
var isObject = _dereq_(39);
|
||
|
||
_dereq_(55)('seal', function($seal){
|
||
return function seal(it){
|
||
return $seal && isObject(it) ? $seal(it) : it;
|
||
};
|
||
});
|
||
},{"39":39,"55":55}],137:[function(_dereq_,module,exports){
|
||
// 19.1.3.19 Object.setPrototypeOf(O, proto)
|
||
var $export = _dereq_(23);
|
||
$export($export.S, 'Object', {setPrototypeOf: _dereq_(65).set});
|
||
},{"23":23,"65":65}],138:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
// 19.1.3.6 Object.prototype.toString()
|
||
var classof = _dereq_(11)
|
||
, test = {};
|
||
test[_dereq_(84)('toStringTag')] = 'z';
|
||
if(test + '' != '[object z]'){
|
||
_dereq_(62)(Object.prototype, 'toString', function toString(){
|
||
return '[object ' + classof(this) + ']';
|
||
}, true);
|
||
}
|
||
},{"11":11,"62":62,"84":84}],139:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $ = _dereq_(47)
|
||
, LIBRARY = _dereq_(49)
|
||
, global = _dereq_(30)
|
||
, ctx = _dereq_(18)
|
||
, classof = _dereq_(11)
|
||
, $export = _dereq_(23)
|
||
, isObject = _dereq_(39)
|
||
, anObject = _dereq_(5)
|
||
, aFunction = _dereq_(3)
|
||
, strictNew = _dereq_(70)
|
||
, forOf = _dereq_(28)
|
||
, setProto = _dereq_(65).set
|
||
, same = _dereq_(64)
|
||
, SPECIES = _dereq_(84)('species')
|
||
, speciesConstructor = _dereq_(69)
|
||
, asap = _dereq_(53)
|
||
, PROMISE = 'Promise'
|
||
, process = global.process
|
||
, isNode = classof(process) == 'process'
|
||
, P = global[PROMISE]
|
||
, Wrapper;
|
||
|
||
var testResolve = function(sub){
|
||
var test = new P(function(){});
|
||
if(sub)test.constructor = Object;
|
||
return P.resolve(test) === test;
|
||
};
|
||
|
||
var USE_NATIVE = function(){
|
||
var works = false;
|
||
function P2(x){
|
||
var self = new P(x);
|
||
setProto(self, P2.prototype);
|
||
return self;
|
||
}
|
||
try {
|
||
works = P && P.resolve && testResolve();
|
||
setProto(P2, P);
|
||
P2.prototype = $.create(P.prototype, {constructor: {value: P2}});
|
||
// actual Firefox has broken subclass support, test that
|
||
if(!(P2.resolve(5).then(function(){}) instanceof P2)){
|
||
works = false;
|
||
}
|
||
// actual V8 bug, https://code.google.com/p/v8/issues/detail?id=4162
|
||
if(works && _dereq_(20)){
|
||
var thenableThenGotten = false;
|
||
P.resolve($.setDesc({}, 'then', {
|
||
get: function(){ thenableThenGotten = true; }
|
||
}));
|
||
works = thenableThenGotten;
|
||
}
|
||
} catch(e){ works = false; }
|
||
return works;
|
||
}();
|
||
|
||
// helpers
|
||
var sameConstructor = function(a, b){
|
||
// library wrapper special case
|
||
if(LIBRARY && a === P && b === Wrapper)return true;
|
||
return same(a, b);
|
||
};
|
||
var getConstructor = function(C){
|
||
var S = anObject(C)[SPECIES];
|
||
return S != undefined ? S : C;
|
||
};
|
||
var isThenable = function(it){
|
||
var then;
|
||
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
||
};
|
||
var PromiseCapability = function(C){
|
||
var resolve, reject;
|
||
this.promise = new C(function($$resolve, $$reject){
|
||
if(resolve !== undefined || reject !== undefined)throw TypeError('Bad Promise constructor');
|
||
resolve = $$resolve;
|
||
reject = $$reject;
|
||
});
|
||
this.resolve = aFunction(resolve),
|
||
this.reject = aFunction(reject)
|
||
};
|
||
var perform = function(exec){
|
||
try {
|
||
exec();
|
||
} catch(e){
|
||
return {error: e};
|
||
}
|
||
};
|
||
var notify = function(record, isReject){
|
||
if(record.n)return;
|
||
record.n = true;
|
||
var chain = record.c;
|
||
asap(function(){
|
||
var value = record.v
|
||
, ok = record.s == 1
|
||
, i = 0;
|
||
var run = function(reaction){
|
||
var handler = ok ? reaction.ok : reaction.fail
|
||
, resolve = reaction.resolve
|
||
, reject = reaction.reject
|
||
, result, then;
|
||
try {
|
||
if(handler){
|
||
if(!ok)record.h = true;
|
||
result = handler === true ? value : handler(value);
|
||
if(result === reaction.promise){
|
||
reject(TypeError('Promise-chain cycle'));
|
||
} else if(then = isThenable(result)){
|
||
then.call(result, resolve, reject);
|
||
} else resolve(result);
|
||
} else reject(value);
|
||
} catch(e){
|
||
reject(e);
|
||
}
|
||
};
|
||
while(chain.length > i)run(chain[i++]); // variable length - can't use forEach
|
||
chain.length = 0;
|
||
record.n = false;
|
||
if(isReject)setTimeout(function(){
|
||
var promise = record.p
|
||
, handler, console;
|
||
if(isUnhandled(promise)){
|
||
if(isNode){
|
||
process.emit('unhandledRejection', value, promise);
|
||
} else if(handler = global.onunhandledrejection){
|
||
handler({promise: promise, reason: value});
|
||
} else if((console = global.console) && console.error){
|
||
console.error('Unhandled promise rejection', value);
|
||
}
|
||
} record.a = undefined;
|
||
}, 1);
|
||
});
|
||
};
|
||
var isUnhandled = function(promise){
|
||
var record = promise._d
|
||
, chain = record.a || record.c
|
||
, i = 0
|
||
, reaction;
|
||
if(record.h)return false;
|
||
while(chain.length > i){
|
||
reaction = chain[i++];
|
||
if(reaction.fail || !isUnhandled(reaction.promise))return false;
|
||
} return true;
|
||
};
|
||
var $reject = function(value){
|
||
var record = this;
|
||
if(record.d)return;
|
||
record.d = true;
|
||
record = record.r || record; // unwrap
|
||
record.v = value;
|
||
record.s = 2;
|
||
record.a = record.c.slice();
|
||
notify(record, true);
|
||
};
|
||
var $resolve = function(value){
|
||
var record = this
|
||
, then;
|
||
if(record.d)return;
|
||
record.d = true;
|
||
record = record.r || record; // unwrap
|
||
try {
|
||
if(record.p === value)throw TypeError("Promise can't be resolved itself");
|
||
if(then = isThenable(value)){
|
||
asap(function(){
|
||
var wrapper = {r: record, d: false}; // wrap
|
||
try {
|
||
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
|
||
} catch(e){
|
||
$reject.call(wrapper, e);
|
||
}
|
||
});
|
||
} else {
|
||
record.v = value;
|
||
record.s = 1;
|
||
notify(record, false);
|
||
}
|
||
} catch(e){
|
||
$reject.call({r: record, d: false}, e); // wrap
|
||
}
|
||
};
|
||
|
||
// constructor polyfill
|
||
if(!USE_NATIVE){
|
||
// 25.4.3.1 Promise(executor)
|
||
P = function Promise(executor){
|
||
aFunction(executor);
|
||
var record = this._d = {
|
||
p: strictNew(this, P, PROMISE), // <- promise
|
||
c: [], // <- awaiting reactions
|
||
a: undefined, // <- checked in isUnhandled reactions
|
||
s: 0, // <- state
|
||
d: false, // <- done
|
||
v: undefined, // <- value
|
||
h: false, // <- handled rejection
|
||
n: false // <- notify
|
||
};
|
||
try {
|
||
executor(ctx($resolve, record, 1), ctx($reject, record, 1));
|
||
} catch(err){
|
||
$reject.call(record, err);
|
||
}
|
||
};
|
||
_dereq_(61)(P.prototype, {
|
||
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
|
||
then: function then(onFulfilled, onRejected){
|
||
var reaction = new PromiseCapability(speciesConstructor(this, P))
|
||
, promise = reaction.promise
|
||
, record = this._d;
|
||
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
||
reaction.fail = typeof onRejected == 'function' && onRejected;
|
||
record.c.push(reaction);
|
||
if(record.a)record.a.push(reaction);
|
||
if(record.s)notify(record, false);
|
||
return promise;
|
||
},
|
||
// 25.4.5.1 Promise.prototype.catch(onRejected)
|
||
'catch': function(onRejected){
|
||
return this.then(undefined, onRejected);
|
||
}
|
||
});
|
||
}
|
||
|
||
$export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: P});
|
||
_dereq_(67)(P, PROMISE);
|
||
_dereq_(66)(PROMISE);
|
||
Wrapper = _dereq_(17)[PROMISE];
|
||
|
||
// statics
|
||
$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
|
||
// 25.4.4.5 Promise.reject(r)
|
||
reject: function reject(r){
|
||
var capability = new PromiseCapability(this)
|
||
, $$reject = capability.reject;
|
||
$$reject(r);
|
||
return capability.promise;
|
||
}
|
||
});
|
||
$export($export.S + $export.F * (!USE_NATIVE || testResolve(true)), PROMISE, {
|
||
// 25.4.4.6 Promise.resolve(x)
|
||
resolve: function resolve(x){
|
||
// instanceof instead of internal slot check because we should fix it without replacement native Promise core
|
||
if(x instanceof P && sameConstructor(x.constructor, this))return x;
|
||
var capability = new PromiseCapability(this)
|
||
, $$resolve = capability.resolve;
|
||
$$resolve(x);
|
||
return capability.promise;
|
||
}
|
||
});
|
||
$export($export.S + $export.F * !(USE_NATIVE && _dereq_(44)(function(iter){
|
||
P.all(iter)['catch'](function(){});
|
||
})), PROMISE, {
|
||
// 25.4.4.1 Promise.all(iterable)
|
||
all: function all(iterable){
|
||
var C = getConstructor(this)
|
||
, capability = new PromiseCapability(C)
|
||
, resolve = capability.resolve
|
||
, reject = capability.reject
|
||
, values = [];
|
||
var abrupt = perform(function(){
|
||
forOf(iterable, false, values.push, values);
|
||
var remaining = values.length
|
||
, results = Array(remaining);
|
||
if(remaining)$.each.call(values, function(promise, index){
|
||
var alreadyCalled = false;
|
||
C.resolve(promise).then(function(value){
|
||
if(alreadyCalled)return;
|
||
alreadyCalled = true;
|
||
results[index] = value;
|
||
--remaining || resolve(results);
|
||
}, reject);
|
||
});
|
||
else resolve(results);
|
||
});
|
||
if(abrupt)reject(abrupt.error);
|
||
return capability.promise;
|
||
},
|
||
// 25.4.4.4 Promise.race(iterable)
|
||
race: function race(iterable){
|
||
var C = getConstructor(this)
|
||
, capability = new PromiseCapability(C)
|
||
, reject = capability.reject;
|
||
var abrupt = perform(function(){
|
||
forOf(iterable, false, function(promise){
|
||
C.resolve(promise).then(capability.resolve, reject);
|
||
});
|
||
});
|
||
if(abrupt)reject(abrupt.error);
|
||
return capability.promise;
|
||
}
|
||
});
|
||
},{"11":11,"17":17,"18":18,"20":20,"23":23,"28":28,"3":3,"30":30,"39":39,"44":44,"47":47,"49":49,"5":5,"53":53,"61":61,"64":64,"65":65,"66":66,"67":67,"69":69,"70":70,"84":84}],140:[function(_dereq_,module,exports){
|
||
// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
|
||
var $export = _dereq_(23)
|
||
, _apply = Function.apply;
|
||
|
||
$export($export.S, 'Reflect', {
|
||
apply: function apply(target, thisArgument, argumentsList){
|
||
return _apply.call(target, thisArgument, argumentsList);
|
||
}
|
||
});
|
||
},{"23":23}],141:[function(_dereq_,module,exports){
|
||
// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
|
||
var $ = _dereq_(47)
|
||
, $export = _dereq_(23)
|
||
, aFunction = _dereq_(3)
|
||
, anObject = _dereq_(5)
|
||
, isObject = _dereq_(39)
|
||
, bind = Function.bind || _dereq_(17).Function.prototype.bind;
|
||
|
||
// MS Edge supports only 2 arguments
|
||
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
|
||
$export($export.S + $export.F * _dereq_(25)(function(){
|
||
function F(){}
|
||
return !(Reflect.construct(function(){}, [], F) instanceof F);
|
||
}), 'Reflect', {
|
||
construct: function construct(Target, args /*, newTarget*/){
|
||
aFunction(Target);
|
||
var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
|
||
if(Target == newTarget){
|
||
// w/o altered newTarget, optimization for 0-4 arguments
|
||
if(args != undefined)switch(anObject(args).length){
|
||
case 0: return new Target;
|
||
case 1: return new Target(args[0]);
|
||
case 2: return new Target(args[0], args[1]);
|
||
case 3: return new Target(args[0], args[1], args[2]);
|
||
case 4: return new Target(args[0], args[1], args[2], args[3]);
|
||
}
|
||
// w/o altered newTarget, lot of arguments case
|
||
var $args = [null];
|
||
$args.push.apply($args, args);
|
||
return new (bind.apply(Target, $args));
|
||
}
|
||
// with altered newTarget, not support built-in constructors
|
||
var proto = newTarget.prototype
|
||
, instance = $.create(isObject(proto) ? proto : Object.prototype)
|
||
, result = Function.apply.call(Target, instance, args);
|
||
return isObject(result) ? result : instance;
|
||
}
|
||
});
|
||
},{"17":17,"23":23,"25":25,"3":3,"39":39,"47":47,"5":5}],142:[function(_dereq_,module,exports){
|
||
// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
|
||
var $ = _dereq_(47)
|
||
, $export = _dereq_(23)
|
||
, anObject = _dereq_(5);
|
||
|
||
// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
|
||
$export($export.S + $export.F * _dereq_(25)(function(){
|
||
Reflect.defineProperty($.setDesc({}, 1, {value: 1}), 1, {value: 2});
|
||
}), 'Reflect', {
|
||
defineProperty: function defineProperty(target, propertyKey, attributes){
|
||
anObject(target);
|
||
try {
|
||
$.setDesc(target, propertyKey, attributes);
|
||
return true;
|
||
} catch(e){
|
||
return false;
|
||
}
|
||
}
|
||
});
|
||
},{"23":23,"25":25,"47":47,"5":5}],143:[function(_dereq_,module,exports){
|
||
// 26.1.4 Reflect.deleteProperty(target, propertyKey)
|
||
var $export = _dereq_(23)
|
||
, getDesc = _dereq_(47).getDesc
|
||
, anObject = _dereq_(5);
|
||
|
||
$export($export.S, 'Reflect', {
|
||
deleteProperty: function deleteProperty(target, propertyKey){
|
||
var desc = getDesc(anObject(target), propertyKey);
|
||
return desc && !desc.configurable ? false : delete target[propertyKey];
|
||
}
|
||
});
|
||
},{"23":23,"47":47,"5":5}],144:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
// 26.1.5 Reflect.enumerate(target)
|
||
var $export = _dereq_(23)
|
||
, anObject = _dereq_(5);
|
||
var Enumerate = function(iterated){
|
||
this._t = anObject(iterated); // target
|
||
this._i = 0; // next index
|
||
var keys = this._k = [] // keys
|
||
, key;
|
||
for(key in iterated)keys.push(key);
|
||
};
|
||
_dereq_(42)(Enumerate, 'Object', function(){
|
||
var that = this
|
||
, keys = that._k
|
||
, key;
|
||
do {
|
||
if(that._i >= keys.length)return {value: undefined, done: true};
|
||
} while(!((key = keys[that._i++]) in that._t));
|
||
return {value: key, done: false};
|
||
});
|
||
|
||
$export($export.S, 'Reflect', {
|
||
enumerate: function enumerate(target){
|
||
return new Enumerate(target);
|
||
}
|
||
});
|
||
},{"23":23,"42":42,"5":5}],145:[function(_dereq_,module,exports){
|
||
// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
|
||
var $ = _dereq_(47)
|
||
, $export = _dereq_(23)
|
||
, anObject = _dereq_(5);
|
||
|
||
$export($export.S, 'Reflect', {
|
||
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey){
|
||
return $.getDesc(anObject(target), propertyKey);
|
||
}
|
||
});
|
||
},{"23":23,"47":47,"5":5}],146:[function(_dereq_,module,exports){
|
||
// 26.1.8 Reflect.getPrototypeOf(target)
|
||
var $export = _dereq_(23)
|
||
, getProto = _dereq_(47).getProto
|
||
, anObject = _dereq_(5);
|
||
|
||
$export($export.S, 'Reflect', {
|
||
getPrototypeOf: function getPrototypeOf(target){
|
||
return getProto(anObject(target));
|
||
}
|
||
});
|
||
},{"23":23,"47":47,"5":5}],147:[function(_dereq_,module,exports){
|
||
// 26.1.6 Reflect.get(target, propertyKey [, receiver])
|
||
var $ = _dereq_(47)
|
||
, has = _dereq_(31)
|
||
, $export = _dereq_(23)
|
||
, isObject = _dereq_(39)
|
||
, anObject = _dereq_(5);
|
||
|
||
function get(target, propertyKey/*, receiver*/){
|
||
var receiver = arguments.length < 3 ? target : arguments[2]
|
||
, desc, proto;
|
||
if(anObject(target) === receiver)return target[propertyKey];
|
||
if(desc = $.getDesc(target, propertyKey))return has(desc, 'value')
|
||
? desc.value
|
||
: desc.get !== undefined
|
||
? desc.get.call(receiver)
|
||
: undefined;
|
||
if(isObject(proto = $.getProto(target)))return get(proto, propertyKey, receiver);
|
||
}
|
||
|
||
$export($export.S, 'Reflect', {get: get});
|
||
},{"23":23,"31":31,"39":39,"47":47,"5":5}],148:[function(_dereq_,module,exports){
|
||
// 26.1.9 Reflect.has(target, propertyKey)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Reflect', {
|
||
has: function has(target, propertyKey){
|
||
return propertyKey in target;
|
||
}
|
||
});
|
||
},{"23":23}],149:[function(_dereq_,module,exports){
|
||
// 26.1.10 Reflect.isExtensible(target)
|
||
var $export = _dereq_(23)
|
||
, anObject = _dereq_(5)
|
||
, $isExtensible = Object.isExtensible;
|
||
|
||
$export($export.S, 'Reflect', {
|
||
isExtensible: function isExtensible(target){
|
||
anObject(target);
|
||
return $isExtensible ? $isExtensible(target) : true;
|
||
}
|
||
});
|
||
},{"23":23,"5":5}],150:[function(_dereq_,module,exports){
|
||
// 26.1.11 Reflect.ownKeys(target)
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.S, 'Reflect', {ownKeys: _dereq_(57)});
|
||
},{"23":23,"57":57}],151:[function(_dereq_,module,exports){
|
||
// 26.1.12 Reflect.preventExtensions(target)
|
||
var $export = _dereq_(23)
|
||
, anObject = _dereq_(5)
|
||
, $preventExtensions = Object.preventExtensions;
|
||
|
||
$export($export.S, 'Reflect', {
|
||
preventExtensions: function preventExtensions(target){
|
||
anObject(target);
|
||
try {
|
||
if($preventExtensions)$preventExtensions(target);
|
||
return true;
|
||
} catch(e){
|
||
return false;
|
||
}
|
||
}
|
||
});
|
||
},{"23":23,"5":5}],152:[function(_dereq_,module,exports){
|
||
// 26.1.14 Reflect.setPrototypeOf(target, proto)
|
||
var $export = _dereq_(23)
|
||
, setProto = _dereq_(65);
|
||
|
||
if(setProto)$export($export.S, 'Reflect', {
|
||
setPrototypeOf: function setPrototypeOf(target, proto){
|
||
setProto.check(target, proto);
|
||
try {
|
||
setProto.set(target, proto);
|
||
return true;
|
||
} catch(e){
|
||
return false;
|
||
}
|
||
}
|
||
});
|
||
},{"23":23,"65":65}],153:[function(_dereq_,module,exports){
|
||
// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
|
||
var $ = _dereq_(47)
|
||
, has = _dereq_(31)
|
||
, $export = _dereq_(23)
|
||
, createDesc = _dereq_(60)
|
||
, anObject = _dereq_(5)
|
||
, isObject = _dereq_(39);
|
||
|
||
function set(target, propertyKey, V/*, receiver*/){
|
||
var receiver = arguments.length < 4 ? target : arguments[3]
|
||
, ownDesc = $.getDesc(anObject(target), propertyKey)
|
||
, existingDescriptor, proto;
|
||
if(!ownDesc){
|
||
if(isObject(proto = $.getProto(target))){
|
||
return set(proto, propertyKey, V, receiver);
|
||
}
|
||
ownDesc = createDesc(0);
|
||
}
|
||
if(has(ownDesc, 'value')){
|
||
if(ownDesc.writable === false || !isObject(receiver))return false;
|
||
existingDescriptor = $.getDesc(receiver, propertyKey) || createDesc(0);
|
||
existingDescriptor.value = V;
|
||
$.setDesc(receiver, propertyKey, existingDescriptor);
|
||
return true;
|
||
}
|
||
return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
|
||
}
|
||
|
||
$export($export.S, 'Reflect', {set: set});
|
||
},{"23":23,"31":31,"39":39,"47":47,"5":5,"60":60}],154:[function(_dereq_,module,exports){
|
||
var $ = _dereq_(47)
|
||
, global = _dereq_(30)
|
||
, isRegExp = _dereq_(40)
|
||
, $flags = _dereq_(27)
|
||
, $RegExp = global.RegExp
|
||
, Base = $RegExp
|
||
, proto = $RegExp.prototype
|
||
, re1 = /a/g
|
||
, re2 = /a/g
|
||
// "new" creates a new object, old webkit buggy here
|
||
, CORRECT_NEW = new $RegExp(re1) !== re1;
|
||
|
||
if(_dereq_(20) && (!CORRECT_NEW || _dereq_(25)(function(){
|
||
re2[_dereq_(84)('match')] = false;
|
||
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
||
return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
|
||
}))){
|
||
$RegExp = function RegExp(p, f){
|
||
var piRE = isRegExp(p)
|
||
, fiU = f === undefined;
|
||
return !(this instanceof $RegExp) && piRE && p.constructor === $RegExp && fiU ? p
|
||
: CORRECT_NEW
|
||
? new Base(piRE && !fiU ? p.source : p, f)
|
||
: Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f);
|
||
};
|
||
$.each.call($.getNames(Base), function(key){
|
||
key in $RegExp || $.setDesc($RegExp, key, {
|
||
configurable: true,
|
||
get: function(){ return Base[key]; },
|
||
set: function(it){ Base[key] = it; }
|
||
});
|
||
});
|
||
proto.constructor = $RegExp;
|
||
$RegExp.prototype = proto;
|
||
_dereq_(62)(global, 'RegExp', $RegExp);
|
||
}
|
||
|
||
_dereq_(66)('RegExp');
|
||
},{"20":20,"25":25,"27":27,"30":30,"40":40,"47":47,"62":62,"66":66,"84":84}],155:[function(_dereq_,module,exports){
|
||
// 21.2.5.3 get RegExp.prototype.flags()
|
||
var $ = _dereq_(47);
|
||
if(_dereq_(20) && /./g.flags != 'g')$.setDesc(RegExp.prototype, 'flags', {
|
||
configurable: true,
|
||
get: _dereq_(27)
|
||
});
|
||
},{"20":20,"27":27,"47":47}],156:[function(_dereq_,module,exports){
|
||
// @@match logic
|
||
_dereq_(26)('match', 1, function(defined, MATCH){
|
||
// 21.1.3.11 String.prototype.match(regexp)
|
||
return function match(regexp){
|
||
'use strict';
|
||
var O = defined(this)
|
||
, fn = regexp == undefined ? undefined : regexp[MATCH];
|
||
return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
|
||
};
|
||
});
|
||
},{"26":26}],157:[function(_dereq_,module,exports){
|
||
// @@replace logic
|
||
_dereq_(26)('replace', 2, function(defined, REPLACE, $replace){
|
||
// 21.1.3.14 String.prototype.replace(searchValue, replaceValue)
|
||
return function replace(searchValue, replaceValue){
|
||
'use strict';
|
||
var O = defined(this)
|
||
, fn = searchValue == undefined ? undefined : searchValue[REPLACE];
|
||
return fn !== undefined
|
||
? fn.call(searchValue, O, replaceValue)
|
||
: $replace.call(String(O), searchValue, replaceValue);
|
||
};
|
||
});
|
||
},{"26":26}],158:[function(_dereq_,module,exports){
|
||
// @@search logic
|
||
_dereq_(26)('search', 1, function(defined, SEARCH){
|
||
// 21.1.3.15 String.prototype.search(regexp)
|
||
return function search(regexp){
|
||
'use strict';
|
||
var O = defined(this)
|
||
, fn = regexp == undefined ? undefined : regexp[SEARCH];
|
||
return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
|
||
};
|
||
});
|
||
},{"26":26}],159:[function(_dereq_,module,exports){
|
||
// @@split logic
|
||
_dereq_(26)('split', 2, function(defined, SPLIT, $split){
|
||
// 21.1.3.17 String.prototype.split(separator, limit)
|
||
return function split(separator, limit){
|
||
'use strict';
|
||
var O = defined(this)
|
||
, fn = separator == undefined ? undefined : separator[SPLIT];
|
||
return fn !== undefined
|
||
? fn.call(separator, O, limit)
|
||
: $split.call(String(O), separator, limit);
|
||
};
|
||
});
|
||
},{"26":26}],160:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var strong = _dereq_(13);
|
||
|
||
// 23.2 Set Objects
|
||
_dereq_(16)('Set', function(get){
|
||
return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };
|
||
}, {
|
||
// 23.2.3.1 Set.prototype.add(value)
|
||
add: function add(value){
|
||
return strong.def(this, value = value === 0 ? 0 : value, value);
|
||
}
|
||
}, strong);
|
||
},{"13":13,"16":16}],161:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $export = _dereq_(23)
|
||
, $at = _dereq_(71)(false);
|
||
$export($export.P, 'String', {
|
||
// 21.1.3.3 String.prototype.codePointAt(pos)
|
||
codePointAt: function codePointAt(pos){
|
||
return $at(this, pos);
|
||
}
|
||
});
|
||
},{"23":23,"71":71}],162:[function(_dereq_,module,exports){
|
||
// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])
|
||
'use strict';
|
||
var $export = _dereq_(23)
|
||
, toLength = _dereq_(80)
|
||
, context = _dereq_(72)
|
||
, ENDS_WITH = 'endsWith'
|
||
, $endsWith = ''[ENDS_WITH];
|
||
|
||
$export($export.P + $export.F * _dereq_(24)(ENDS_WITH), 'String', {
|
||
endsWith: function endsWith(searchString /*, endPosition = @length */){
|
||
var that = context(this, searchString, ENDS_WITH)
|
||
, $$ = arguments
|
||
, endPosition = $$.length > 1 ? $$[1] : undefined
|
||
, len = toLength(that.length)
|
||
, end = endPosition === undefined ? len : Math.min(toLength(endPosition), len)
|
||
, search = String(searchString);
|
||
return $endsWith
|
||
? $endsWith.call(that, search, end)
|
||
: that.slice(end - search.length, end) === search;
|
||
}
|
||
});
|
||
},{"23":23,"24":24,"72":72,"80":80}],163:[function(_dereq_,module,exports){
|
||
var $export = _dereq_(23)
|
||
, toIndex = _dereq_(77)
|
||
, fromCharCode = String.fromCharCode
|
||
, $fromCodePoint = String.fromCodePoint;
|
||
|
||
// length should be 1, old FF problem
|
||
$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {
|
||
// 21.1.2.2 String.fromCodePoint(...codePoints)
|
||
fromCodePoint: function fromCodePoint(x){ // eslint-disable-line no-unused-vars
|
||
var res = []
|
||
, $$ = arguments
|
||
, $$len = $$.length
|
||
, i = 0
|
||
, code;
|
||
while($$len > i){
|
||
code = +$$[i++];
|
||
if(toIndex(code, 0x10ffff) !== code)throw RangeError(code + ' is not a valid code point');
|
||
res.push(code < 0x10000
|
||
? fromCharCode(code)
|
||
: fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)
|
||
);
|
||
} return res.join('');
|
||
}
|
||
});
|
||
},{"23":23,"77":77}],164:[function(_dereq_,module,exports){
|
||
// 21.1.3.7 String.prototype.includes(searchString, position = 0)
|
||
'use strict';
|
||
var $export = _dereq_(23)
|
||
, context = _dereq_(72)
|
||
, INCLUDES = 'includes';
|
||
|
||
$export($export.P + $export.F * _dereq_(24)(INCLUDES), 'String', {
|
||
includes: function includes(searchString /*, position = 0 */){
|
||
return !!~context(this, searchString, INCLUDES)
|
||
.indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
|
||
}
|
||
});
|
||
},{"23":23,"24":24,"72":72}],165:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $at = _dereq_(71)(true);
|
||
|
||
// 21.1.3.27 String.prototype[@@iterator]()
|
||
_dereq_(43)(String, 'String', function(iterated){
|
||
this._t = String(iterated); // target
|
||
this._i = 0; // next index
|
||
// 21.1.5.2.1 %StringIteratorPrototype%.next()
|
||
}, function(){
|
||
var O = this._t
|
||
, index = this._i
|
||
, point;
|
||
if(index >= O.length)return {value: undefined, done: true};
|
||
point = $at(O, index);
|
||
this._i += point.length;
|
||
return {value: point, done: false};
|
||
});
|
||
},{"43":43,"71":71}],166:[function(_dereq_,module,exports){
|
||
var $export = _dereq_(23)
|
||
, toIObject = _dereq_(79)
|
||
, toLength = _dereq_(80);
|
||
|
||
$export($export.S, 'String', {
|
||
// 21.1.2.4 String.raw(callSite, ...substitutions)
|
||
raw: function raw(callSite){
|
||
var tpl = toIObject(callSite.raw)
|
||
, len = toLength(tpl.length)
|
||
, $$ = arguments
|
||
, $$len = $$.length
|
||
, res = []
|
||
, i = 0;
|
||
while(len > i){
|
||
res.push(String(tpl[i++]));
|
||
if(i < $$len)res.push(String($$[i]));
|
||
} return res.join('');
|
||
}
|
||
});
|
||
},{"23":23,"79":79,"80":80}],167:[function(_dereq_,module,exports){
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.P, 'String', {
|
||
// 21.1.3.13 String.prototype.repeat(count)
|
||
repeat: _dereq_(74)
|
||
});
|
||
},{"23":23,"74":74}],168:[function(_dereq_,module,exports){
|
||
// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
|
||
'use strict';
|
||
var $export = _dereq_(23)
|
||
, toLength = _dereq_(80)
|
||
, context = _dereq_(72)
|
||
, STARTS_WITH = 'startsWith'
|
||
, $startsWith = ''[STARTS_WITH];
|
||
|
||
$export($export.P + $export.F * _dereq_(24)(STARTS_WITH), 'String', {
|
||
startsWith: function startsWith(searchString /*, position = 0 */){
|
||
var that = context(this, searchString, STARTS_WITH)
|
||
, $$ = arguments
|
||
, index = toLength(Math.min($$.length > 1 ? $$[1] : undefined, that.length))
|
||
, search = String(searchString);
|
||
return $startsWith
|
||
? $startsWith.call(that, search, index)
|
||
: that.slice(index, index + search.length) === search;
|
||
}
|
||
});
|
||
},{"23":23,"24":24,"72":72,"80":80}],169:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
// 21.1.3.25 String.prototype.trim()
|
||
_dereq_(75)('trim', function($trim){
|
||
return function trim(){
|
||
return $trim(this, 3);
|
||
};
|
||
});
|
||
},{"75":75}],170:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
// ECMAScript 6 symbols shim
|
||
var $ = _dereq_(47)
|
||
, global = _dereq_(30)
|
||
, has = _dereq_(31)
|
||
, DESCRIPTORS = _dereq_(20)
|
||
, $export = _dereq_(23)
|
||
, redefine = _dereq_(62)
|
||
, $fails = _dereq_(25)
|
||
, shared = _dereq_(68)
|
||
, setToStringTag = _dereq_(67)
|
||
, uid = _dereq_(83)
|
||
, wks = _dereq_(84)
|
||
, keyOf = _dereq_(48)
|
||
, $names = _dereq_(29)
|
||
, enumKeys = _dereq_(22)
|
||
, isArray = _dereq_(37)
|
||
, anObject = _dereq_(5)
|
||
, toIObject = _dereq_(79)
|
||
, createDesc = _dereq_(60)
|
||
, getDesc = $.getDesc
|
||
, setDesc = $.setDesc
|
||
, _create = $.create
|
||
, getNames = $names.get
|
||
, $Symbol = global.Symbol
|
||
, $JSON = global.JSON
|
||
, _stringify = $JSON && $JSON.stringify
|
||
, setter = false
|
||
, HIDDEN = wks('_hidden')
|
||
, isEnum = $.isEnum
|
||
, SymbolRegistry = shared('symbol-registry')
|
||
, AllSymbols = shared('symbols')
|
||
, useNative = typeof $Symbol == 'function'
|
||
, ObjectProto = Object.prototype;
|
||
|
||
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
||
var setSymbolDesc = DESCRIPTORS && $fails(function(){
|
||
return _create(setDesc({}, 'a', {
|
||
get: function(){ return setDesc(this, 'a', {value: 7}).a; }
|
||
})).a != 7;
|
||
}) ? function(it, key, D){
|
||
var protoDesc = getDesc(ObjectProto, key);
|
||
if(protoDesc)delete ObjectProto[key];
|
||
setDesc(it, key, D);
|
||
if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);
|
||
} : setDesc;
|
||
|
||
var wrap = function(tag){
|
||
var sym = AllSymbols[tag] = _create($Symbol.prototype);
|
||
sym._k = tag;
|
||
DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {
|
||
configurable: true,
|
||
set: function(value){
|
||
if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;
|
||
setSymbolDesc(this, tag, createDesc(1, value));
|
||
}
|
||
});
|
||
return sym;
|
||
};
|
||
|
||
var isSymbol = function(it){
|
||
return typeof it == 'symbol';
|
||
};
|
||
|
||
var $defineProperty = function defineProperty(it, key, D){
|
||
if(D && has(AllSymbols, key)){
|
||
if(!D.enumerable){
|
||
if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));
|
||
it[HIDDEN][key] = true;
|
||
} else {
|
||
if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;
|
||
D = _create(D, {enumerable: createDesc(0, false)});
|
||
} return setSymbolDesc(it, key, D);
|
||
} return setDesc(it, key, D);
|
||
};
|
||
var $defineProperties = function defineProperties(it, P){
|
||
anObject(it);
|
||
var keys = enumKeys(P = toIObject(P))
|
||
, i = 0
|
||
, l = keys.length
|
||
, key;
|
||
while(l > i)$defineProperty(it, key = keys[i++], P[key]);
|
||
return it;
|
||
};
|
||
var $create = function create(it, P){
|
||
return P === undefined ? _create(it) : $defineProperties(_create(it), P);
|
||
};
|
||
var $propertyIsEnumerable = function propertyIsEnumerable(key){
|
||
var E = isEnum.call(this, key);
|
||
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]
|
||
? E : true;
|
||
};
|
||
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){
|
||
var D = getDesc(it = toIObject(it), key);
|
||
if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;
|
||
return D;
|
||
};
|
||
var $getOwnPropertyNames = function getOwnPropertyNames(it){
|
||
var names = getNames(toIObject(it))
|
||
, result = []
|
||
, i = 0
|
||
, key;
|
||
while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);
|
||
return result;
|
||
};
|
||
var $getOwnPropertySymbols = function getOwnPropertySymbols(it){
|
||
var names = getNames(toIObject(it))
|
||
, result = []
|
||
, i = 0
|
||
, key;
|
||
while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);
|
||
return result;
|
||
};
|
||
var $stringify = function stringify(it){
|
||
if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined
|
||
var args = [it]
|
||
, i = 1
|
||
, $$ = arguments
|
||
, replacer, $replacer;
|
||
while($$.length > i)args.push($$[i++]);
|
||
replacer = args[1];
|
||
if(typeof replacer == 'function')$replacer = replacer;
|
||
if($replacer || !isArray(replacer))replacer = function(key, value){
|
||
if($replacer)value = $replacer.call(this, key, value);
|
||
if(!isSymbol(value))return value;
|
||
};
|
||
args[1] = replacer;
|
||
return _stringify.apply($JSON, args);
|
||
};
|
||
var buggyJSON = $fails(function(){
|
||
var S = $Symbol();
|
||
// MS Edge converts symbol values to JSON as {}
|
||
// WebKit converts symbol values to JSON as null
|
||
// V8 throws on boxed symbols
|
||
return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';
|
||
});
|
||
|
||
// 19.4.1.1 Symbol([description])
|
||
if(!useNative){
|
||
$Symbol = function Symbol(){
|
||
if(isSymbol(this))throw TypeError('Symbol is not a constructor');
|
||
return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));
|
||
};
|
||
redefine($Symbol.prototype, 'toString', function toString(){
|
||
return this._k;
|
||
});
|
||
|
||
isSymbol = function(it){
|
||
return it instanceof $Symbol;
|
||
};
|
||
|
||
$.create = $create;
|
||
$.isEnum = $propertyIsEnumerable;
|
||
$.getDesc = $getOwnPropertyDescriptor;
|
||
$.setDesc = $defineProperty;
|
||
$.setDescs = $defineProperties;
|
||
$.getNames = $names.get = $getOwnPropertyNames;
|
||
$.getSymbols = $getOwnPropertySymbols;
|
||
|
||
if(DESCRIPTORS && !_dereq_(49)){
|
||
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
|
||
}
|
||
}
|
||
|
||
var symbolStatics = {
|
||
// 19.4.2.1 Symbol.for(key)
|
||
'for': function(key){
|
||
return has(SymbolRegistry, key += '')
|
||
? SymbolRegistry[key]
|
||
: SymbolRegistry[key] = $Symbol(key);
|
||
},
|
||
// 19.4.2.5 Symbol.keyFor(sym)
|
||
keyFor: function keyFor(key){
|
||
return keyOf(SymbolRegistry, key);
|
||
},
|
||
useSetter: function(){ setter = true; },
|
||
useSimple: function(){ setter = false; }
|
||
};
|
||
// 19.4.2.2 Symbol.hasInstance
|
||
// 19.4.2.3 Symbol.isConcatSpreadable
|
||
// 19.4.2.4 Symbol.iterator
|
||
// 19.4.2.6 Symbol.match
|
||
// 19.4.2.8 Symbol.replace
|
||
// 19.4.2.9 Symbol.search
|
||
// 19.4.2.10 Symbol.species
|
||
// 19.4.2.11 Symbol.split
|
||
// 19.4.2.12 Symbol.toPrimitive
|
||
// 19.4.2.13 Symbol.toStringTag
|
||
// 19.4.2.14 Symbol.unscopables
|
||
$.each.call((
|
||
'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +
|
||
'species,split,toPrimitive,toStringTag,unscopables'
|
||
).split(','), function(it){
|
||
var sym = wks(it);
|
||
symbolStatics[it] = useNative ? sym : wrap(sym);
|
||
});
|
||
|
||
setter = true;
|
||
|
||
$export($export.G + $export.W, {Symbol: $Symbol});
|
||
|
||
$export($export.S, 'Symbol', symbolStatics);
|
||
|
||
$export($export.S + $export.F * !useNative, 'Object', {
|
||
// 19.1.2.2 Object.create(O [, Properties])
|
||
create: $create,
|
||
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
|
||
defineProperty: $defineProperty,
|
||
// 19.1.2.3 Object.defineProperties(O, Properties)
|
||
defineProperties: $defineProperties,
|
||
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
|
||
getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
|
||
// 19.1.2.7 Object.getOwnPropertyNames(O)
|
||
getOwnPropertyNames: $getOwnPropertyNames,
|
||
// 19.1.2.8 Object.getOwnPropertySymbols(O)
|
||
getOwnPropertySymbols: $getOwnPropertySymbols
|
||
});
|
||
|
||
// 24.3.2 JSON.stringify(value [, replacer [, space]])
|
||
$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});
|
||
|
||
// 19.4.3.5 Symbol.prototype[@@toStringTag]
|
||
setToStringTag($Symbol, 'Symbol');
|
||
// 20.2.1.9 Math[@@toStringTag]
|
||
setToStringTag(Math, 'Math', true);
|
||
// 24.3.3 JSON[@@toStringTag]
|
||
setToStringTag(global.JSON, 'JSON', true);
|
||
},{"20":20,"22":22,"23":23,"25":25,"29":29,"30":30,"31":31,"37":37,"47":47,"48":48,"49":49,"5":5,"60":60,"62":62,"67":67,"68":68,"79":79,"83":83,"84":84}],171:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $ = _dereq_(47)
|
||
, redefine = _dereq_(62)
|
||
, weak = _dereq_(15)
|
||
, isObject = _dereq_(39)
|
||
, has = _dereq_(31)
|
||
, frozenStore = weak.frozenStore
|
||
, WEAK = weak.WEAK
|
||
, isExtensible = Object.isExtensible || isObject
|
||
, tmp = {};
|
||
|
||
// 23.3 WeakMap Objects
|
||
var $WeakMap = _dereq_(16)('WeakMap', function(get){
|
||
return function WeakMap(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };
|
||
}, {
|
||
// 23.3.3.3 WeakMap.prototype.get(key)
|
||
get: function get(key){
|
||
if(isObject(key)){
|
||
if(!isExtensible(key))return frozenStore(this).get(key);
|
||
if(has(key, WEAK))return key[WEAK][this._i];
|
||
}
|
||
},
|
||
// 23.3.3.5 WeakMap.prototype.set(key, value)
|
||
set: function set(key, value){
|
||
return weak.def(this, key, value);
|
||
}
|
||
}, weak, true, true);
|
||
|
||
// IE11 WeakMap frozen keys fix
|
||
if(new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){
|
||
$.each.call(['delete', 'has', 'get', 'set'], function(key){
|
||
var proto = $WeakMap.prototype
|
||
, method = proto[key];
|
||
redefine(proto, key, function(a, b){
|
||
// store frozen objects on leaky map
|
||
if(isObject(a) && !isExtensible(a)){
|
||
var result = frozenStore(this)[key](a, b);
|
||
return key == 'set' ? this : result;
|
||
// store all the rest on native weakmap
|
||
} return method.call(this, a, b);
|
||
});
|
||
});
|
||
}
|
||
},{"15":15,"16":16,"31":31,"39":39,"47":47,"62":62}],172:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var weak = _dereq_(15);
|
||
|
||
// 23.4 WeakSet Objects
|
||
_dereq_(16)('WeakSet', function(get){
|
||
return function WeakSet(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };
|
||
}, {
|
||
// 23.4.3.1 WeakSet.prototype.add(value)
|
||
add: function add(value){
|
||
return weak.def(this, value, true);
|
||
}
|
||
}, weak, false, true);
|
||
},{"15":15,"16":16}],173:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $export = _dereq_(23)
|
||
, $includes = _dereq_(8)(true);
|
||
|
||
$export($export.P, 'Array', {
|
||
// https://github.com/domenic/Array.prototype.includes
|
||
includes: function includes(el /*, fromIndex = 0 */){
|
||
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
||
}
|
||
});
|
||
|
||
_dereq_(4)('includes');
|
||
},{"23":23,"4":4,"8":8}],174:[function(_dereq_,module,exports){
|
||
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.P, 'Map', {toJSON: _dereq_(14)('Map')});
|
||
},{"14":14,"23":23}],175:[function(_dereq_,module,exports){
|
||
// http://goo.gl/XkBrjD
|
||
var $export = _dereq_(23)
|
||
, $entries = _dereq_(56)(true);
|
||
|
||
$export($export.S, 'Object', {
|
||
entries: function entries(it){
|
||
return $entries(it);
|
||
}
|
||
});
|
||
},{"23":23,"56":56}],176:[function(_dereq_,module,exports){
|
||
// https://gist.github.com/WebReflection/9353781
|
||
var $ = _dereq_(47)
|
||
, $export = _dereq_(23)
|
||
, ownKeys = _dereq_(57)
|
||
, toIObject = _dereq_(79)
|
||
, createDesc = _dereq_(60);
|
||
|
||
$export($export.S, 'Object', {
|
||
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object){
|
||
var O = toIObject(object)
|
||
, setDesc = $.setDesc
|
||
, getDesc = $.getDesc
|
||
, keys = ownKeys(O)
|
||
, result = {}
|
||
, i = 0
|
||
, key, D;
|
||
while(keys.length > i){
|
||
D = getDesc(O, key = keys[i++]);
|
||
if(key in result)setDesc(result, key, createDesc(0, D));
|
||
else result[key] = D;
|
||
} return result;
|
||
}
|
||
});
|
||
},{"23":23,"47":47,"57":57,"60":60,"79":79}],177:[function(_dereq_,module,exports){
|
||
// http://goo.gl/XkBrjD
|
||
var $export = _dereq_(23)
|
||
, $values = _dereq_(56)(false);
|
||
|
||
$export($export.S, 'Object', {
|
||
values: function values(it){
|
||
return $values(it);
|
||
}
|
||
});
|
||
},{"23":23,"56":56}],178:[function(_dereq_,module,exports){
|
||
// https://github.com/benjamingr/RexExp.escape
|
||
var $export = _dereq_(23)
|
||
, $re = _dereq_(63)(/[\\^$*+?.()|[\]{}]/g, '\\$&');
|
||
|
||
$export($export.S, 'RegExp', {escape: function escape(it){ return $re(it); }});
|
||
|
||
},{"23":23,"63":63}],179:[function(_dereq_,module,exports){
|
||
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
|
||
var $export = _dereq_(23);
|
||
|
||
$export($export.P, 'Set', {toJSON: _dereq_(14)('Set')});
|
||
},{"14":14,"23":23}],180:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
// https://github.com/mathiasbynens/String.prototype.at
|
||
var $export = _dereq_(23)
|
||
, $at = _dereq_(71)(true);
|
||
|
||
$export($export.P, 'String', {
|
||
at: function at(pos){
|
||
return $at(this, pos);
|
||
}
|
||
});
|
||
},{"23":23,"71":71}],181:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $export = _dereq_(23)
|
||
, $pad = _dereq_(73);
|
||
|
||
$export($export.P, 'String', {
|
||
padLeft: function padLeft(maxLength /*, fillString = ' ' */){
|
||
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
|
||
}
|
||
});
|
||
},{"23":23,"73":73}],182:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
var $export = _dereq_(23)
|
||
, $pad = _dereq_(73);
|
||
|
||
$export($export.P, 'String', {
|
||
padRight: function padRight(maxLength /*, fillString = ' ' */){
|
||
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
|
||
}
|
||
});
|
||
},{"23":23,"73":73}],183:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
|
||
_dereq_(75)('trimLeft', function($trim){
|
||
return function trimLeft(){
|
||
return $trim(this, 1);
|
||
};
|
||
});
|
||
},{"75":75}],184:[function(_dereq_,module,exports){
|
||
'use strict';
|
||
// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
|
||
_dereq_(75)('trimRight', function($trim){
|
||
return function trimRight(){
|
||
return $trim(this, 2);
|
||
};
|
||
});
|
||
},{"75":75}],185:[function(_dereq_,module,exports){
|
||
// JavaScript 1.6 / Strawman array statics shim
|
||
var $ = _dereq_(47)
|
||
, $export = _dereq_(23)
|
||
, $ctx = _dereq_(18)
|
||
, $Array = _dereq_(17).Array || Array
|
||
, statics = {};
|
||
var setStatics = function(keys, length){
|
||
$.each.call(keys.split(','), function(key){
|
||
if(length == undefined && key in $Array)statics[key] = $Array[key];
|
||
else if(key in [])statics[key] = $ctx(Function.call, [][key], length);
|
||
});
|
||
};
|
||
setStatics('pop,reverse,shift,keys,values,entries', 1);
|
||
setStatics('indexOf,every,some,forEach,map,filter,find,findIndex,includes', 3);
|
||
setStatics('join,slice,concat,push,splice,unshift,sort,lastIndexOf,' +
|
||
'reduce,reduceRight,copyWithin,fill');
|
||
$export($export.S, 'Array', statics);
|
||
},{"17":17,"18":18,"23":23,"47":47}],186:[function(_dereq_,module,exports){
|
||
_dereq_(92);
|
||
var global = _dereq_(30)
|
||
, hide = _dereq_(32)
|
||
, Iterators = _dereq_(46)
|
||
, ITERATOR = _dereq_(84)('iterator')
|
||
, NL = global.NodeList
|
||
, HTC = global.HTMLCollection
|
||
, NLProto = NL && NL.prototype
|
||
, HTCProto = HTC && HTC.prototype
|
||
, ArrayValues = Iterators.NodeList = Iterators.HTMLCollection = Iterators.Array;
|
||
if(NLProto && !NLProto[ITERATOR])hide(NLProto, ITERATOR, ArrayValues);
|
||
if(HTCProto && !HTCProto[ITERATOR])hide(HTCProto, ITERATOR, ArrayValues);
|
||
},{"30":30,"32":32,"46":46,"84":84,"92":92}],187:[function(_dereq_,module,exports){
|
||
var $export = _dereq_(23)
|
||
, $task = _dereq_(76);
|
||
$export($export.G + $export.B, {
|
||
setImmediate: $task.set,
|
||
clearImmediate: $task.clear
|
||
});
|
||
},{"23":23,"76":76}],188:[function(_dereq_,module,exports){
|
||
// ie9- setTimeout & setInterval additional parameters fix
|
||
var global = _dereq_(30)
|
||
, $export = _dereq_(23)
|
||
, invoke = _dereq_(34)
|
||
, partial = _dereq_(58)
|
||
, navigator = global.navigator
|
||
, MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check
|
||
var wrap = function(set){
|
||
return MSIE ? function(fn, time /*, ...args */){
|
||
return set(invoke(
|
||
partial,
|
||
[].slice.call(arguments, 2),
|
||
typeof fn == 'function' ? fn : Function(fn)
|
||
), time);
|
||
} : set;
|
||
};
|
||
$export($export.G + $export.B + $export.F * MSIE, {
|
||
setTimeout: wrap(global.setTimeout),
|
||
setInterval: wrap(global.setInterval)
|
||
});
|
||
},{"23":23,"30":30,"34":34,"58":58}],189:[function(_dereq_,module,exports){
|
||
_dereq_(86);
|
||
_dereq_(170);
|
||
_dereq_(125);
|
||
_dereq_(133);
|
||
_dereq_(137);
|
||
_dereq_(138);
|
||
_dereq_(126);
|
||
_dereq_(136);
|
||
_dereq_(135);
|
||
_dereq_(131);
|
||
_dereq_(132);
|
||
_dereq_(130);
|
||
_dereq_(127);
|
||
_dereq_(129);
|
||
_dereq_(134);
|
||
_dereq_(128);
|
||
_dereq_(96);
|
||
_dereq_(95);
|
||
_dereq_(115);
|
||
_dereq_(116);
|
||
_dereq_(117);
|
||
_dereq_(118);
|
||
_dereq_(119);
|
||
_dereq_(120);
|
||
_dereq_(121);
|
||
_dereq_(122);
|
||
_dereq_(123);
|
||
_dereq_(124);
|
||
_dereq_(98);
|
||
_dereq_(99);
|
||
_dereq_(100);
|
||
_dereq_(101);
|
||
_dereq_(102);
|
||
_dereq_(103);
|
||
_dereq_(104);
|
||
_dereq_(105);
|
||
_dereq_(106);
|
||
_dereq_(107);
|
||
_dereq_(108);
|
||
_dereq_(109);
|
||
_dereq_(110);
|
||
_dereq_(111);
|
||
_dereq_(112);
|
||
_dereq_(113);
|
||
_dereq_(114);
|
||
_dereq_(163);
|
||
_dereq_(166);
|
||
_dereq_(169);
|
||
_dereq_(165);
|
||
_dereq_(161);
|
||
_dereq_(162);
|
||
_dereq_(164);
|
||
_dereq_(167);
|
||
_dereq_(168);
|
||
_dereq_(91);
|
||
_dereq_(93);
|
||
_dereq_(92);
|
||
_dereq_(94);
|
||
_dereq_(87);
|
||
_dereq_(88);
|
||
_dereq_(90);
|
||
_dereq_(89);
|
||
_dereq_(154);
|
||
_dereq_(155);
|
||
_dereq_(156);
|
||
_dereq_(157);
|
||
_dereq_(158);
|
||
_dereq_(159);
|
||
_dereq_(139);
|
||
_dereq_(97);
|
||
_dereq_(160);
|
||
_dereq_(171);
|
||
_dereq_(172);
|
||
_dereq_(140);
|
||
_dereq_(141);
|
||
_dereq_(142);
|
||
_dereq_(143);
|
||
_dereq_(144);
|
||
_dereq_(147);
|
||
_dereq_(145);
|
||
_dereq_(146);
|
||
_dereq_(148);
|
||
_dereq_(149);
|
||
_dereq_(150);
|
||
_dereq_(151);
|
||
_dereq_(153);
|
||
_dereq_(152);
|
||
_dereq_(173);
|
||
_dereq_(180);
|
||
_dereq_(181);
|
||
_dereq_(182);
|
||
_dereq_(183);
|
||
_dereq_(184);
|
||
_dereq_(178);
|
||
_dereq_(176);
|
||
_dereq_(177);
|
||
_dereq_(175);
|
||
_dereq_(174);
|
||
_dereq_(179);
|
||
_dereq_(185);
|
||
_dereq_(188);
|
||
_dereq_(187);
|
||
_dereq_(186);
|
||
module.exports = _dereq_(17);
|
||
},{"100":100,"101":101,"102":102,"103":103,"104":104,"105":105,"106":106,"107":107,"108":108,"109":109,"110":110,"111":111,"112":112,"113":113,"114":114,"115":115,"116":116,"117":117,"118":118,"119":119,"120":120,"121":121,"122":122,"123":123,"124":124,"125":125,"126":126,"127":127,"128":128,"129":129,"130":130,"131":131,"132":132,"133":133,"134":134,"135":135,"136":136,"137":137,"138":138,"139":139,"140":140,"141":141,"142":142,"143":143,"144":144,"145":145,"146":146,"147":147,"148":148,"149":149,"150":150,"151":151,"152":152,"153":153,"154":154,"155":155,"156":156,"157":157,"158":158,"159":159,"160":160,"161":161,"162":162,"163":163,"164":164,"165":165,"166":166,"167":167,"168":168,"169":169,"17":17,"170":170,"171":171,"172":172,"173":173,"174":174,"175":175,"176":176,"177":177,"178":178,"179":179,"180":180,"181":181,"182":182,"183":183,"184":184,"185":185,"186":186,"187":187,"188":188,"86":86,"87":87,"88":88,"89":89,"90":90,"91":91,"92":92,"93":93,"94":94,"95":95,"96":96,"97":97,"98":98,"99":99}],190:[function(_dereq_,module,exports){
|
||
(function (global){
|
||
/**
|
||
* Copyright (c) 2014, Facebook, Inc.
|
||
* All rights reserved.
|
||
*
|
||
* This source code is licensed under the BSD-style license found in the
|
||
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
|
||
* additional grant of patent rights can be found in the PATENTS file in
|
||
* the same directory.
|
||
*/
|
||
|
||
!(function(global) {
|
||
"use strict";
|
||
|
||
var hasOwn = Object.prototype.hasOwnProperty;
|
||
var undefined; // More compressible than void 0.
|
||
var iteratorSymbol =
|
||
typeof Symbol === "function" && Symbol.iterator || "@@iterator";
|
||
|
||
var inModule = typeof module === "object";
|
||
var runtime = global.regeneratorRuntime;
|
||
if (runtime) {
|
||
if (inModule) {
|
||
// If regeneratorRuntime is defined globally and we're in a module,
|
||
// make the exports object identical to regeneratorRuntime.
|
||
module.exports = runtime;
|
||
}
|
||
// Don't bother evaluating the rest of this file if the runtime was
|
||
// already defined globally.
|
||
return;
|
||
}
|
||
|
||
// Define the runtime globally (as expected by generated code) as either
|
||
// module.exports (if we're in a module) or a new, empty object.
|
||
runtime = global.regeneratorRuntime = inModule ? module.exports : {};
|
||
|
||
function wrap(innerFn, outerFn, self, tryLocsList) {
|
||
// If outerFn provided, then outerFn.prototype instanceof Generator.
|
||
var generator = Object.create((outerFn || Generator).prototype);
|
||
var context = new Context(tryLocsList || []);
|
||
|
||
// The ._invoke method unifies the implementations of the .next,
|
||
// .throw, and .return methods.
|
||
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
||
|
||
return generator;
|
||
}
|
||
runtime.wrap = wrap;
|
||
|
||
// Try/catch helper to minimize deoptimizations. Returns a completion
|
||
// record like context.tryEntries[i].completion. This interface could
|
||
// have been (and was previously) designed to take a closure to be
|
||
// invoked without arguments, but in all the cases we care about we
|
||
// already have an existing method we want to call, so there's no need
|
||
// to create a new function object. We can even get away with assuming
|
||
// the method takes exactly one argument, since that happens to be true
|
||
// in every case, so we don't have to touch the arguments object. The
|
||
// only additional allocation required is the completion record, which
|
||
// has a stable shape and so hopefully should be cheap to allocate.
|
||
function tryCatch(fn, obj, arg) {
|
||
try {
|
||
return { type: "normal", arg: fn.call(obj, arg) };
|
||
} catch (err) {
|
||
return { type: "throw", arg: err };
|
||
}
|
||
}
|
||
|
||
var GenStateSuspendedStart = "suspendedStart";
|
||
var GenStateSuspendedYield = "suspendedYield";
|
||
var GenStateExecuting = "executing";
|
||
var GenStateCompleted = "completed";
|
||
|
||
// Returning this object from the innerFn has the same effect as
|
||
// breaking out of the dispatch switch statement.
|
||
var ContinueSentinel = {};
|
||
|
||
// Dummy constructor functions that we use as the .constructor and
|
||
// .constructor.prototype properties for functions that return Generator
|
||
// objects. For full spec compliance, you may wish to configure your
|
||
// minifier not to mangle the names of these two functions.
|
||
function Generator() {}
|
||
function GeneratorFunction() {}
|
||
function GeneratorFunctionPrototype() {}
|
||
|
||
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype;
|
||
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
||
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
||
GeneratorFunction.displayName = "GeneratorFunction";
|
||
|
||
// Helper for defining the .next, .throw, and .return methods of the
|
||
// Iterator interface in terms of a single ._invoke method.
|
||
function defineIteratorMethods(prototype) {
|
||
["next", "throw", "return"].forEach(function(method) {
|
||
prototype[method] = function(arg) {
|
||
return this._invoke(method, arg);
|
||
};
|
||
});
|
||
}
|
||
|
||
runtime.isGeneratorFunction = function(genFun) {
|
||
var ctor = typeof genFun === "function" && genFun.constructor;
|
||
return ctor
|
||
? ctor === GeneratorFunction ||
|
||
// For the native GeneratorFunction constructor, the best we can
|
||
// do is to check its .name property.
|
||
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
||
: false;
|
||
};
|
||
|
||
runtime.mark = function(genFun) {
|
||
if (Object.setPrototypeOf) {
|
||
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
||
} else {
|
||
genFun.__proto__ = GeneratorFunctionPrototype;
|
||
}
|
||
genFun.prototype = Object.create(Gp);
|
||
return genFun;
|
||
};
|
||
|
||
// Within the body of any async function, `await x` is transformed to
|
||
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
||
// `value instanceof AwaitArgument` to determine if the yielded value is
|
||
// meant to be awaited. Some may consider the name of this method too
|
||
// cutesy, but they are curmudgeons.
|
||
runtime.awrap = function(arg) {
|
||
return new AwaitArgument(arg);
|
||
};
|
||
|
||
function AwaitArgument(arg) {
|
||
this.arg = arg;
|
||
}
|
||
|
||
function AsyncIterator(generator) {
|
||
// This invoke function is written in a style that assumes some
|
||
// calling function (or Promise) will handle exceptions.
|
||
function invoke(method, arg) {
|
||
var result = generator[method](arg);
|
||
var value = result.value;
|
||
return value instanceof AwaitArgument
|
||
? Promise.resolve(value.arg).then(invokeNext, invokeThrow)
|
||
: Promise.resolve(value).then(function(unwrapped) {
|
||
// When a yielded Promise is resolved, its final value becomes
|
||
// the .value of the Promise<{value,done}> result for the
|
||
// current iteration. If the Promise is rejected, however, the
|
||
// result for this iteration will be rejected with the same
|
||
// reason. Note that rejections of yielded Promises are not
|
||
// thrown back into the generator function, as is the case
|
||
// when an awaited Promise is rejected. This difference in
|
||
// behavior between yield and await is important, because it
|
||
// allows the consumer to decide what to do with the yielded
|
||
// rejection (swallow it and continue, manually .throw it back
|
||
// into the generator, abandon iteration, whatever). With
|
||
// await, by contrast, there is no opportunity to examine the
|
||
// rejection reason outside the generator function, so the
|
||
// only option is to throw it from the await expression, and
|
||
// let the generator function handle the exception.
|
||
result.value = unwrapped;
|
||
return result;
|
||
});
|
||
}
|
||
|
||
if (typeof process === "object" && process.domain) {
|
||
invoke = process.domain.bind(invoke);
|
||
}
|
||
|
||
var invokeNext = invoke.bind(generator, "next");
|
||
var invokeThrow = invoke.bind(generator, "throw");
|
||
var invokeReturn = invoke.bind(generator, "return");
|
||
var previousPromise;
|
||
|
||
function enqueue(method, arg) {
|
||
function callInvokeWithMethodAndArg() {
|
||
return invoke(method, arg);
|
||
}
|
||
|
||
return previousPromise =
|
||
// If enqueue has been called before, then we want to wait until
|
||
// all previous Promises have been resolved before calling invoke,
|
||
// so that results are always delivered in the correct order. If
|
||
// enqueue has not been called before, then it is important to
|
||
// call invoke immediately, without waiting on a callback to fire,
|
||
// so that the async generator function has the opportunity to do
|
||
// any necessary setup in a predictable way. This predictability
|
||
// is why the Promise constructor synchronously invokes its
|
||
// executor callback, and why async functions synchronously
|
||
// execute code before the first await. Since we implement simple
|
||
// async functions in terms of async generators, it is especially
|
||
// important to get this right, even though it requires care.
|
||
previousPromise ? previousPromise.then(
|
||
callInvokeWithMethodAndArg,
|
||
// Avoid propagating failures to Promises returned by later
|
||
// invocations of the iterator.
|
||
callInvokeWithMethodAndArg
|
||
) : new Promise(function (resolve) {
|
||
resolve(callInvokeWithMethodAndArg());
|
||
});
|
||
}
|
||
|
||
// Define the unified helper method that is used to implement .next,
|
||
// .throw, and .return (see defineIteratorMethods).
|
||
this._invoke = enqueue;
|
||
}
|
||
|
||
defineIteratorMethods(AsyncIterator.prototype);
|
||
|
||
// Note that simple async functions are implemented on top of
|
||
// AsyncIterator objects; they just return a Promise for the value of
|
||
// the final result produced by the iterator.
|
||
runtime.async = function(innerFn, outerFn, self, tryLocsList) {
|
||
var iter = new AsyncIterator(
|
||
wrap(innerFn, outerFn, self, tryLocsList)
|
||
);
|
||
|
||
return runtime.isGeneratorFunction(outerFn)
|
||
? iter // If outerFn is a generator, return the full iterator.
|
||
: iter.next().then(function(result) {
|
||
return result.done ? result.value : iter.next();
|
||
});
|
||
};
|
||
|
||
function makeInvokeMethod(innerFn, self, context) {
|
||
var state = GenStateSuspendedStart;
|
||
|
||
return function invoke(method, arg) {
|
||
if (state === GenStateExecuting) {
|
||
throw new Error("Generator is already running");
|
||
}
|
||
|
||
if (state === GenStateCompleted) {
|
||
if (method === "throw") {
|
||
throw arg;
|
||
}
|
||
|
||
// Be forgiving, per 25.3.3.3.3 of the spec:
|
||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
||
return doneResult();
|
||
}
|
||
|
||
while (true) {
|
||
var delegate = context.delegate;
|
||
if (delegate) {
|
||
if (method === "return" ||
|
||
(method === "throw" && delegate.iterator[method] === undefined)) {
|
||
// A return or throw (when the delegate iterator has no throw
|
||
// method) always terminates the yield* loop.
|
||
context.delegate = null;
|
||
|
||
// If the delegate iterator has a return method, give it a
|
||
// chance to clean up.
|
||
var returnMethod = delegate.iterator["return"];
|
||
if (returnMethod) {
|
||
var record = tryCatch(returnMethod, delegate.iterator, arg);
|
||
if (record.type === "throw") {
|
||
// If the return method threw an exception, let that
|
||
// exception prevail over the original return or throw.
|
||
method = "throw";
|
||
arg = record.arg;
|
||
continue;
|
||
}
|
||
}
|
||
|
||
if (method === "return") {
|
||
// Continue with the outer return, now that the delegate
|
||
// iterator has been terminated.
|
||
continue;
|
||
}
|
||
}
|
||
|
||
var record = tryCatch(
|
||
delegate.iterator[method],
|
||
delegate.iterator,
|
||
arg
|
||
);
|
||
|
||
if (record.type === "throw") {
|
||
context.delegate = null;
|
||
|
||
// Like returning generator.throw(uncaught), but without the
|
||
// overhead of an extra function call.
|
||
method = "throw";
|
||
arg = record.arg;
|
||
continue;
|
||
}
|
||
|
||
// Delegate generator ran and handled its own exceptions so
|
||
// regardless of what the method was, we continue as if it is
|
||
// "next" with an undefined arg.
|
||
method = "next";
|
||
arg = undefined;
|
||
|
||
var info = record.arg;
|
||
if (info.done) {
|
||
context[delegate.resultName] = info.value;
|
||
context.next = delegate.nextLoc;
|
||
} else {
|
||
state = GenStateSuspendedYield;
|
||
return info;
|
||
}
|
||
|
||
context.delegate = null;
|
||
}
|
||
|
||
if (method === "next") {
|
||
context._sent = arg;
|
||
|
||
if (state === GenStateSuspendedYield) {
|
||
context.sent = arg;
|
||
} else {
|
||
context.sent = undefined;
|
||
}
|
||
} else if (method === "throw") {
|
||
if (state === GenStateSuspendedStart) {
|
||
state = GenStateCompleted;
|
||
throw arg;
|
||
}
|
||
|
||
if (context.dispatchException(arg)) {
|
||
// If the dispatched exception was caught by a catch block,
|
||
// then let that catch block handle the exception normally.
|
||
method = "next";
|
||
arg = undefined;
|
||
}
|
||
|
||
} else if (method === "return") {
|
||
context.abrupt("return", arg);
|
||
}
|
||
|
||
state = GenStateExecuting;
|
||
|
||
var record = tryCatch(innerFn, self, context);
|
||
if (record.type === "normal") {
|
||
// If an exception is thrown from innerFn, we leave state ===
|
||
// GenStateExecuting and loop back for another invocation.
|
||
state = context.done
|
||
? GenStateCompleted
|
||
: GenStateSuspendedYield;
|
||
|
||
var info = {
|
||
value: record.arg,
|
||
done: context.done
|
||
};
|
||
|
||
if (record.arg === ContinueSentinel) {
|
||
if (context.delegate && method === "next") {
|
||
// Deliberately forget the last sent value so that we don't
|
||
// accidentally pass it on to the delegate.
|
||
arg = undefined;
|
||
}
|
||
} else {
|
||
return info;
|
||
}
|
||
|
||
} else if (record.type === "throw") {
|
||
state = GenStateCompleted;
|
||
// Dispatch the exception by looping back around to the
|
||
// context.dispatchException(arg) call above.
|
||
method = "throw";
|
||
arg = record.arg;
|
||
}
|
||
}
|
||
};
|
||
}
|
||
|
||
// Define Generator.prototype.{next,throw,return} in terms of the
|
||
// unified ._invoke helper method.
|
||
defineIteratorMethods(Gp);
|
||
|
||
Gp[iteratorSymbol] = function() {
|
||
return this;
|
||
};
|
||
|
||
Gp.toString = function() {
|
||
return "[object Generator]";
|
||
};
|
||
|
||
function pushTryEntry(locs) {
|
||
var entry = { tryLoc: locs[0] };
|
||
|
||
if (1 in locs) {
|
||
entry.catchLoc = locs[1];
|
||
}
|
||
|
||
if (2 in locs) {
|
||
entry.finallyLoc = locs[2];
|
||
entry.afterLoc = locs[3];
|
||
}
|
||
|
||
this.tryEntries.push(entry);
|
||
}
|
||
|
||
function resetTryEntry(entry) {
|
||
var record = entry.completion || {};
|
||
record.type = "normal";
|
||
delete record.arg;
|
||
entry.completion = record;
|
||
}
|
||
|
||
function Context(tryLocsList) {
|
||
// The root entry object (effectively a try statement without a catch
|
||
// or a finally block) gives us a place to store values thrown from
|
||
// locations where there is no enclosing try statement.
|
||
this.tryEntries = [{ tryLoc: "root" }];
|
||
tryLocsList.forEach(pushTryEntry, this);
|
||
this.reset(true);
|
||
}
|
||
|
||
runtime.keys = function(object) {
|
||
var keys = [];
|
||
for (var key in object) {
|
||
keys.push(key);
|
||
}
|
||
keys.reverse();
|
||
|
||
// Rather than returning an object with a next method, we keep
|
||
// things simple and return the next function itself.
|
||
return function next() {
|
||
while (keys.length) {
|
||
var key = keys.pop();
|
||
if (key in object) {
|
||
next.value = key;
|
||
next.done = false;
|
||
return next;
|
||
}
|
||
}
|
||
|
||
// To avoid creating an additional object, we just hang the .value
|
||
// and .done properties off the next function object itself. This
|
||
// also ensures that the minifier will not anonymize the function.
|
||
next.done = true;
|
||
return next;
|
||
};
|
||
};
|
||
|
||
function values(iterable) {
|
||
if (iterable) {
|
||
var iteratorMethod = iterable[iteratorSymbol];
|
||
if (iteratorMethod) {
|
||
return iteratorMethod.call(iterable);
|
||
}
|
||
|
||
if (typeof iterable.next === "function") {
|
||
return iterable;
|
||
}
|
||
|
||
if (!isNaN(iterable.length)) {
|
||
var i = -1, next = function next() {
|
||
while (++i < iterable.length) {
|
||
if (hasOwn.call(iterable, i)) {
|
||
next.value = iterable[i];
|
||
next.done = false;
|
||
return next;
|
||
}
|
||
}
|
||
|
||
next.value = undefined;
|
||
next.done = true;
|
||
|
||
return next;
|
||
};
|
||
|
||
return next.next = next;
|
||
}
|
||
}
|
||
|
||
// Return an iterator with no values.
|
||
return { next: doneResult };
|
||
}
|
||
runtime.values = values;
|
||
|
||
function doneResult() {
|
||
return { value: undefined, done: true };
|
||
}
|
||
|
||
Context.prototype = {
|
||
constructor: Context,
|
||
|
||
reset: function(skipTempReset) {
|
||
this.prev = 0;
|
||
this.next = 0;
|
||
this.sent = undefined;
|
||
this.done = false;
|
||
this.delegate = null;
|
||
|
||
this.tryEntries.forEach(resetTryEntry);
|
||
|
||
if (!skipTempReset) {
|
||
for (var name in this) {
|
||
// Not sure about the optimal order of these conditions:
|
||
if (name.charAt(0) === "t" &&
|
||
hasOwn.call(this, name) &&
|
||
!isNaN(+name.slice(1))) {
|
||
this[name] = undefined;
|
||
}
|
||
}
|
||
}
|
||
},
|
||
|
||
stop: function() {
|
||
this.done = true;
|
||
|
||
var rootEntry = this.tryEntries[0];
|
||
var rootRecord = rootEntry.completion;
|
||
if (rootRecord.type === "throw") {
|
||
throw rootRecord.arg;
|
||
}
|
||
|
||
return this.rval;
|
||
},
|
||
|
||
dispatchException: function(exception) {
|
||
if (this.done) {
|
||
throw exception;
|
||
}
|
||
|
||
var context = this;
|
||
function handle(loc, caught) {
|
||
record.type = "throw";
|
||
record.arg = exception;
|
||
context.next = loc;
|
||
return !!caught;
|
||
}
|
||
|
||
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
||
var entry = this.tryEntries[i];
|
||
var record = entry.completion;
|
||
|
||
if (entry.tryLoc === "root") {
|
||
// Exception thrown outside of any try block that could handle
|
||
// it, so set the completion value of the entire function to
|
||
// throw the exception.
|
||
return handle("end");
|
||
}
|
||
|
||
if (entry.tryLoc <= this.prev) {
|
||
var hasCatch = hasOwn.call(entry, "catchLoc");
|
||
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
||
|
||
if (hasCatch && hasFinally) {
|
||
if (this.prev < entry.catchLoc) {
|
||
return handle(entry.catchLoc, true);
|
||
} else if (this.prev < entry.finallyLoc) {
|
||
return handle(entry.finallyLoc);
|
||
}
|
||
|
||
} else if (hasCatch) {
|
||
if (this.prev < entry.catchLoc) {
|
||
return handle(entry.catchLoc, true);
|
||
}
|
||
|
||
} else if (hasFinally) {
|
||
if (this.prev < entry.finallyLoc) {
|
||
return handle(entry.finallyLoc);
|
||
}
|
||
|
||
} else {
|
||
throw new Error("try statement without catch or finally");
|
||
}
|
||
}
|
||
}
|
||
},
|
||
|
||
abrupt: function(type, arg) {
|
||
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
||
var entry = this.tryEntries[i];
|
||
if (entry.tryLoc <= this.prev &&
|
||
hasOwn.call(entry, "finallyLoc") &&
|
||
this.prev < entry.finallyLoc) {
|
||
var finallyEntry = entry;
|
||
break;
|
||
}
|
||
}
|
||
|
||
if (finallyEntry &&
|
||
(type === "break" ||
|
||
type === "continue") &&
|
||
finallyEntry.tryLoc <= arg &&
|
||
arg <= finallyEntry.finallyLoc) {
|
||
// Ignore the finally entry if control is not jumping to a
|
||
// location outside the try/catch block.
|
||
finallyEntry = null;
|
||
}
|
||
|
||
var record = finallyEntry ? finallyEntry.completion : {};
|
||
record.type = type;
|
||
record.arg = arg;
|
||
|
||
if (finallyEntry) {
|
||
this.next = finallyEntry.finallyLoc;
|
||
} else {
|
||
this.complete(record);
|
||
}
|
||
|
||
return ContinueSentinel;
|
||
},
|
||
|
||
complete: function(record, afterLoc) {
|
||
if (record.type === "throw") {
|
||
throw record.arg;
|
||
}
|
||
|
||
if (record.type === "break" ||
|
||
record.type === "continue") {
|
||
this.next = record.arg;
|
||
} else if (record.type === "return") {
|
||
this.rval = record.arg;
|
||
this.next = "end";
|
||
} else if (record.type === "normal" && afterLoc) {
|
||
this.next = afterLoc;
|
||
}
|
||
},
|
||
|
||
finish: function(finallyLoc) {
|
||
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
||
var entry = this.tryEntries[i];
|
||
if (entry.finallyLoc === finallyLoc) {
|
||
this.complete(entry.completion, entry.afterLoc);
|
||
resetTryEntry(entry);
|
||
return ContinueSentinel;
|
||
}
|
||
}
|
||
},
|
||
|
||
"catch": function(tryLoc) {
|
||
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
||
var entry = this.tryEntries[i];
|
||
if (entry.tryLoc === tryLoc) {
|
||
var record = entry.completion;
|
||
if (record.type === "throw") {
|
||
var thrown = record.arg;
|
||
resetTryEntry(entry);
|
||
}
|
||
return thrown;
|
||
}
|
||
}
|
||
|
||
// The context.catch method must only be called with a location
|
||
// argument that corresponds to a known catch block.
|
||
throw new Error("illegal catch attempt");
|
||
},
|
||
|
||
delegateYield: function(iterable, resultName, nextLoc) {
|
||
this.delegate = {
|
||
iterator: values(iterable),
|
||
resultName: resultName,
|
||
nextLoc: nextLoc
|
||
};
|
||
|
||
return ContinueSentinel;
|
||
}
|
||
};
|
||
})(
|
||
// Among the various tricks for obtaining a reference to the global
|
||
// object, this seems to be the most reliable technique that does not
|
||
// use indirect eval (which violates Content Security Policy).
|
||
typeof global === "object" ? global :
|
||
typeof window === "object" ? window :
|
||
typeof self === "object" ? self : this
|
||
);
|
||
|
||
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
||
},{}]},{},[1]);
|
||
|
||
!function(a){function b(a,b,e){return 4===arguments.length?c.apply(this,arguments):void d(a,{declarative:!0,deps:b,declare:e})}function c(a,b,c,e){d(a,{declarative:!1,deps:b,executingRequire:c,execute:e})}function d(a,b){b.name=a,a in p||(p[a]=b),b.normalizedDeps=b.deps}function e(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==q.call(b[a.groupIndex],a)){b[a.groupIndex].push(a);for(var c=0,d=a.normalizedDeps.length;d>c;c++){var f=a.normalizedDeps[c],g=p[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex<h){if(void 0!==g.groupIndex&&(b[g.groupIndex].splice(q.call(b[g.groupIndex],g),1),0==b[g.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");g.groupIndex=h}e(g,b)}}}}function f(a){var b=p[a];b.groupIndex=0;var c=[];e(b,c);for(var d=!!b.declarative==c.length%2,f=c.length-1;f>=0;f--){for(var g=c[f],i=0;i<g.length;i++){var k=g[i];d?h(k):j(k)}d=!d}}function g(a){return u[a]||(u[a]={name:a,dependencies:[],exports:{},importers:[]})}function h(b){if(!b.module){var c=b.module=g(b.name),d=b.module.exports,e=b.declare.call(a,function(a,b){if(c.locked=!0,"object"==typeof a)for(var e in a)d[e]=a[e];else d[a]=b;for(var f=0,g=c.importers.length;g>f;f++){var h=c.importers[f];if(!h.locked)for(var i=0;i<h.dependencies.length;++i)h.dependencies[i]===c&&h.setters[i](d)}return c.locked=!1,b},b.name);c.setters=e.setters,c.execute=e.execute;for(var f=0,i=b.normalizedDeps.length;i>f;f++){var j,k=b.normalizedDeps[f],l=p[k],m=u[k];m?j=m.exports:l&&!l.declarative?j=l.esModule:l?(h(l),m=l.module,j=m.exports):j=o(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}function i(a){var b,c=p[a];if(c)c.declarative?n(a,[]):c.evaluated||j(c),b=c.module.exports;else if(b=o(a),!b)throw new Error("Unable to load dependency "+a+".");return(!c||c.declarative)&&b&&b.__useDefault?b["default"]:b}function j(b){if(!b.module){var c={},d=b.module={exports:c,id:b.name};if(!b.executingRequire)for(var e=0,f=b.normalizedDeps.length;f>e;e++){var g=b.normalizedDeps[e],h=p[g];h&&j(h)}b.evaluated=!0;var l=b.execute.call(a,function(a){for(var c=0,d=b.deps.length;d>c;c++)if(b.deps[c]==a)return i(b.normalizedDeps[c]);throw new TypeError("Module "+a+" not declared as a dependency.")},c,d);l&&(d.exports=l),c=d.exports,c&&c.__esModule?b.esModule=c:b.esModule=k(c)}}function k(a){var b={};if("object"==typeof a||"function"==typeof a){var c=a&&a.hasOwnProperty;if(r)for(var d in a)m(b,a,d)||l(b,a,d,c);else for(var d in a)l(b,a,d,c)}return b["default"]=a,t(b,"__useDefault",{value:!0}),b}function l(a,b,c,d){(!d||b.hasOwnProperty(c))&&(a[c]=b[c])}function m(a,b,c){try{var d;return(d=Object.getOwnPropertyDescriptor(b,c))&&t(a,c,d),!0}catch(e){return!1}}function n(b,c){var d=p[b];if(d&&!d.evaluated&&d.declarative){c.push(b);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==q.call(c,g)&&(p[g]?n(g,c):o(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}function o(a){if(w[a])return w[a];if("@node/"==a.substr(0,6))return v(a.substr(6));var b=p[a];if(!b)throw"Module "+a+" not present.";return f(a),n(a,[]),p[a]=void 0,b.declarative&&t(b.module.exports,"__esModule",{value:!0}),w[a]=b.declarative?b.module.exports:b.esModule}var p={},q=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},r=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(s){r=!1}var t;!function(){try{Object.defineProperty({},"a",{})&&(t=Object.defineProperty)}catch(a){t=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var u={},v="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,w={"@empty":{}};return function(a,d,e){return function(f){f(function(f){for(var g={_nodeRequire:v,register:b,registerDynamic:c,get:o,set:function(a,b){w[a]=b},newModule:function(a){return a}},h=0;h<d.length;h++)(function(a,b){b&&b.__esModule?w[a]=b:w[a]=k(b)})(d[h],arguments[h]);e(g);var i=o(a[0]);if(a.length>1)for(var h=1;h<a.length;h++)o(a[h]);return i.__useDefault?i["default"]:i})}}}("undefined"!=typeof self?self:global)(["1","2"],[],function(a){var b=this.require,c=this.exports,d=this.module;!function(b){function c(a,b){for(var c=a.split(".");c.length;)b=b[c.shift()];return b}function d(a){if("string"==typeof a)return c(a,b);if(!(a instanceof Array))throw new Error("Global exports must be a string or array.");for(var d={},e=!0,f=0;f<a.length;f++){var g=c(a[f],b);e&&(d["default"]=g,e=!1),d[a[f].split(".").pop()]=g}return d}function e(a){if(Object.keys)Object.keys(b).forEach(a);else for(var c in b)i.call(b,c)&&a(c)}function f(a){e(function(c){if(-1==j.call(k,c)){try{var d=b[c]}catch(e){k.push(c)}a(c,d)}})}var g,h=a,i=Object.prototype.hasOwnProperty,j=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},k=["_g","sessionStorage","localStorage","clipboardData","frames","frameElement","external","mozAnimationStartTime","webkitStorageInfo","webkitIndexedDB","mozInnerScreenY","mozInnerScreenX"];h.set("@@global-helpers",h.newModule({prepareGlobal:function(a,c,e){var h=b.define;b.define=void 0;var i;if(e){i={};for(var j in e)i[j]=b[j],b[j]=e[j]}return c||(g={},f(function(a,b){g[a]=b})),function(){var a;if(c)a=d(c);else{a={};var e,j;f(function(b,c){g[b]!==c&&"undefined"!=typeof c&&(a[b]=c,"undefined"!=typeof e?j||e===c||(j=!0):e=c)}),a=j?a:e}if(i)for(var k in i)b[k]=i[k];return b.define=h,a}}}))}("undefined"!=typeof self?self:global),a.registerDynamic("3",[],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(b){a.call(this,b)}return d(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),b}(Error);return b.BaseWrappedException=e,c.exports}),a.registerDynamic("4",["5"],!0,function(a,b,c){"use strict";function d(a,b){if(h.isPresent(a))for(var c=0;c<a.length;c++){var e=a[c];h.isArray(e)?d(e,b):b.push(e)}return b}function e(a){return h.isJsObject(a)?h.isArray(a)||!(a instanceof b.Map)&&h.getSymbolIterator()in a:!1}function f(a,b,c){for(var d=a[h.getSymbolIterator()](),e=b[h.getSymbolIterator()]();;){var f=d.next(),g=e.next();if(f.done&&g.done)return!0;if(f.done||g.done)return!1;if(!c(f.value,g.value))return!1}}function g(a,b){if(h.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(var d,e=a[h.getSymbolIterator()]();!(d=e.next()).done;)b(d.value)}var h=a("5");b.Map=h.global.Map,b.Set=h.global.Set;var i=function(){try{if(1===new b.Map([[1,2]]).size)return function(a){return new b.Map(a)}}catch(a){}return function(a){for(var c=new b.Map,d=0;d<a.length;d++){var e=a[d];c.set(e[0],e[1])}return c}}(),j=function(){try{if(new b.Map(new b.Map))return function(a){return new b.Map(a)}}catch(a){}return function(a){var c=new b.Map;return a.forEach(function(a,b){c.set(b,a)}),c}}(),k=function(){return(new b.Map).keys().next?function(a){for(var b,c=a.keys();!(b=c.next()).done;)a.set(b.value,null)}:function(a){a.forEach(function(b,c){a.set(c,null)})}}(),l=function(){try{if((new b.Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=o.createFixedSize(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),m=function(){function a(){}return a.clone=function(a){return j(a)},a.createFromStringMap=function(a){var c=new b.Map;for(var d in a)c.set(d,a[d]);return c},a.toStringMap=function(a){var b={};return a.forEach(function(a,c){return b[c]=a}),b},a.createFromPairs=function(a){return i(a)},a.clearValues=function(a){k(a)},a.iterable=function(a){return a},a.keys=function(a){return l(a,!1)},a.values=function(a){return l(a,!0)},a}();b.MapWrapper=m;var n=function(){function a(){}return a.create=function(){return{}},a.contains=function(a,b){return a.hasOwnProperty(b)},a.get=function(a,b){return a.hasOwnProperty(b)?a[b]:void 0},a.set=function(a,b,c){a[b]=c},a.keys=function(a){return Object.keys(a)},a.values=function(a){return Object.keys(a).reduce(function(b,c){return b.push(a[c]),b},[])},a.isEmpty=function(a){for(var b in a)return!1;return!0},a["delete"]=function(a,b){delete a[b]},a.forEach=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},a.merge=function(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f<c.length;f++)if(e=c[f],a[e]!==b[e])return!1;return!0},a}();b.StringMapWrapper=n;var o=function(){function a(){}return a.createFixedSize=function(a){return new Array(a)},a.createGrowableSize=function(a){return new Array(a)},a.clone=function(a){return a.slice(0)},a.forEachWithIndex=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)},a.first=function(a){return a?a[0]:null},a.last=function(a){return a&&0!=a.length?a[a.length-1]:null},a.indexOf=function(a,b,c){return void 0===c&&(c=0),a.indexOf(b,c)},a.contains=function(a,b){return-1!==a.indexOf(b)},a.reversed=function(b){var c=a.clone(b);return c.reverse()},a.concat=function(a,b){return a.concat(b)},a.insert=function(a,b,c){a.splice(b,0,c)},a.removeAt=function(a,b){var c=a[b];return a.splice(b,1),c},a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.splice=function(a,b,c){return a.splice(b,c)},a.sort=function(a,b){h.isPresent(b)?a.sort(b):a.sort()},a.toString=function(a){return a.toString()},a.toJSON=function(a){return JSON.stringify(a)},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(!h.isBlank(f)){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return d(a,b),b},a.addAll=function(a,b){for(var c=0;c<b.length;c++)a.push(b[c])},a}();b.ListWrapper=o,b.isListLikeIterable=e,b.areIterablesEqual=f,b.iterateListLike=g;var p=function(){var a=new b.Set([1,2,3]);return 3===a.size?function(a){return new b.Set(a)}:function(a){var c=new b.Set(a);if(c.size!==a.length)for(var d=0;d<a.length;d++)c.add(a[d]);return c}}(),q=function(){function a(){}return a.createFromList=function(a){return p(a)},a.has=function(a,b){return a.has(b)},a["delete"]=function(a,b){a["delete"](b)},a}();return b.SetWrapper=q,c.exports}),a.registerDynamic("6",["5","3","4"],!0,function(a,b,c){"use strict";var d=a("5"),e=a("3"),f=a("4"),g=function(){function a(){this.res=[]}return a.prototype.log=function(a){this.res.push(a)},a.prototype.logError=function(a){this.res.push(a)},a.prototype.logGroup=function(a){this.res.push(a)},a.prototype.logGroupEnd=function(){},a}(),h=function(){function a(a,b){void 0===b&&(b=!0),this._logger=a,this._rethrowException=b}return a.exceptionToString=function(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null);var e=new g,f=new a(e,!1);return f.call(b,c,d),e.res.join("\n")},a.prototype.call=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null);var e=this._findOriginalException(a),f=this._findOriginalStack(a),g=this._findContext(a);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(a)),d.isPresent(b)&&d.isBlank(f)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(b))),d.isPresent(c)&&this._logger.logError("REASON: "+c),d.isPresent(e)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(e)),d.isPresent(f)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(f))),d.isPresent(g)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(g)),this._logger.logGroupEnd(),this._rethrowException)throw a},a.prototype._extractMessage=function(a){return a instanceof e.BaseWrappedException?a.wrapperMessage:a.toString()},a.prototype._longStackTrace=function(a){return f.isListLikeIterable(a)?a.join("\n\n-----async gap-----\n"):a.toString()},a.prototype._findContext=function(a){try{return a instanceof e.BaseWrappedException?d.isPresent(a.context)?a.context:this._findContext(a.originalException):null}catch(b){return null}},a.prototype._findOriginalException=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a.originalException;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException;return b},a.prototype._findOriginalStack=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a,c=a.originalStack;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException,b instanceof e.BaseWrappedException&&d.isPresent(b.originalException)&&(c=b.originalStack);return c},a}();return b.ExceptionHandler=h,c.exports}),a.registerDynamic("7",["3","6"],!0,function(a,b,c){"use strict";function d(a){return new TypeError(a)}function e(){throw new j("unimplemented")}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("3"),h=a("6"),i=a("6");b.ExceptionHandler=i.ExceptionHandler;var j=function(a){function b(b){void 0===b&&(b="--"),a.call(this,b),this.message=b,this.stack=new Error(b).stack}return f(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.BaseException=j;var k=function(a){function b(b,c,d,e){a.call(this,b),this._wrapperMessage=b,this._originalException=c,this._originalStack=d,this._context=e,this._wrapperStack=new Error(b).stack}return f(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return h.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this.message},b}(g.BaseWrappedException);return b.WrappedException=k,b.makeTypeError=d,b.unimplemented=e,c.exports}),a.registerDynamic("8",["a","7","5","9"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("a"),f=a("7"),g=a("5"),h=a("9"),i=function(a){function b(){if(a.call(this),this._cache=g.global.$templateCache,null==this._cache)throw new f.BaseException("CachedXHR: Template cache was not found in $templateCache.")}return d(b,a),b.prototype.get=function(a){return this._cache.hasOwnProperty(a)?h.PromiseWrapper.resolve(this._cache[a]):h.PromiseWrapper.reject("CachedXHR: Did not find cached template for "+a,null)},b}(e.XHR);return b.CachedXHR=i,c.exports}),a.registerDynamic("b",["11","c","d","e","f","10"],!0,function(a,b,c){"use strict";function d(a){return a.dependencies.forEach(function(a){a.factoryPlaceholder.moduleUrl=f(a.comp)}),a.statements}function e(a,b){var c=i(a)[1];return b.dependencies.forEach(function(a){a.valuePlaceholder.moduleUrl=g(a.moduleUrl,a.isShimmed,c)}),b.statements}function f(a){var b=i(a.type.moduleUrl);return b[0]+".ngfactory"+b[1]}function g(a,b,c){return b?a+".shim"+c:""+a+c}function h(a){if(!a.isComponent)throw new l.BaseException("Could not compile '"+a.type.name+"' because it is not a component.")}function i(a){var b=a.lastIndexOf(".");return-1!==b?[a.substring(0,b),a.substring(b)]:[a,""]}var j=a("11"),k=a("c"),l=a("d"),m=a("e"),n=a("f"),o=a("10"),p=new k.CompileIdentifierMetadata({name:"ComponentFactory",runtime:j.ComponentFactory,moduleUrl:o.assetUrl("core","linker/component_factory")}),q=function(){function a(a,b){this.moduleUrl=a,this.source=b}return a}();b.SourceModule=q;var r=function(){function a(a,b){this.source=a,this.importedUrls=b}return a}();b.StyleSheetSourceWithImports=r;var s=function(){function a(a,b,c){this.component=a,this.directives=b,this.pipes=c}return a}();b.NormalizedComponentWithViewDirectives=s;var t=function(){function a(a,b,c,d,e,f){this._directiveNormalizer=a,this._templateParser=b,this._styleCompiler=c,this._viewCompiler=d,this._outputEmitter=e,this._xhr=f}return a.prototype.normalizeDirectiveMetadata=function(a){return this._directiveNormalizer.normalizeDirective(a)},a.prototype.compileTemplates=function(a){var b=this;if(0===a.length)throw new l.BaseException("No components given");var c=[],d=[],e=f(a[0].component);return a.forEach(function(a){var e=a.component;h(e);var f=b._compileComponent(e,a.directives,a.pipes,c);d.push(f);var g=k.createHostComponentMeta(e.type,e.selector),i=b._compileComponent(g,[e],[],c),j=e.type.name+"NgFactory";c.push(n.variable(j).set(n.importExpr(p,[n.importType(e.type)]).instantiate([n.literal(e.selector),n.variable(i),n.importExpr(e.type)],n.importType(p,[n.importType(e.type)],[n.TypeModifier.Const]))).toDeclStmt(null,[n.StmtModifier.Final])),d.push(j)}),this._codegenSourceModule(e,c,d)},a.prototype.loadAndCompileStylesheet=function(a,b,c){var d=this;return this._xhr.get(a).then(function(e){var f=d._styleCompiler.compileStylesheet(a,e,b),h=[];return f.dependencies.forEach(function(a){h.push(a.moduleUrl),a.valuePlaceholder.moduleUrl=g(a.moduleUrl,a.isShimmed,c)}),new r(d._codgenStyles(a,b,c,f),h)})},a.prototype._compileComponent=function(a,b,c,f){var g=this._styleCompiler.compileComponent(a),h=this._templateParser.parse(a,a.template.template,b,c,a.type.name),i=this._viewCompiler.compileComponent(a,h,n.variable(g.stylesVar),c);return m.ListWrapper.addAll(f,e(a.type.moduleUrl,g)),m.ListWrapper.addAll(f,d(i)),i.viewFactoryVar},a.prototype._codgenStyles=function(a,b,c,d){return this._codegenSourceModule(g(a,b,c),d.statements,[d.stylesVar])},a.prototype._codegenSourceModule=function(a,b,c){return new q(a,this._outputEmitter.emitStatements(a,b,c))},a}();return b.OfflineCompiler=t,c.exports}),a.registerDynamic("12",["13","e","14","c","15","16"],!0,function(a,b,c){"use strict";function d(a,b){var c=b.useExisting,d=b.useValue,e=b.deps;return new p.CompileProviderMetadata({token:a.token,useClass:a.useClass,useExisting:c,useFactory:a.useFactory,useValue:d,deps:e,multi:a.multi})}function e(a,b){var c=b.eager,d=b.providers;return new o.ProviderAst(a.token,a.multiProvider,a.eager||c,d,a.providerType,a.sourceSpan)}function f(a,b,c,d){return void 0===d&&(d=null),m.isBlank(d)&&(d=[]),m.isPresent(a)&&a.forEach(function(a){if(m.isArray(a))f(a,b,c,d);else{var e;a instanceof p.CompileProviderMetadata?e=a:a instanceof p.CompileTypeMetadata?e=new p.CompileProviderMetadata({token:new p.CompileTokenMetadata({identifier:a}),useClass:a}):c.push(new s("Unknown provider type "+a,b)),m.isPresent(e)&&d.push(e)}}),d}function g(a,b,c){var d=new p.CompileTokenMap;a.forEach(function(a){var e=new p.CompileProviderMetadata({token:new p.CompileTokenMetadata({identifier:a.type}),useClass:a.type});h([e],a.isComponent?o.ProviderAstType.Component:o.ProviderAstType.Directive,!0,b,c,d)});var e=a.filter(function(a){return a.isComponent}).concat(a.filter(function(a){return!a.isComponent}));return e.forEach(function(a){h(f(a.providers,b,c),o.ProviderAstType.PublicService,!1,b,c,d),h(f(a.viewProviders,b,c),o.ProviderAstType.PrivateService,!1,b,c,d)}),d}function h(a,b,c,d,e,f){a.forEach(function(a){var g=f.get(a.token);m.isPresent(g)&&g.multiProvider!==a.multi&&e.push(new s("Mixing multi and non multi provider is not possible for token "+g.token.name,d)),m.isBlank(g)?(g=new o.ProviderAst(a.token,a.multi,c,[a],b,d),f.add(a.token,g)):(a.multi||n.ListWrapper.clear(g.providers),g.providers.push(a))})}function i(a){var b=new p.CompileTokenMap;return m.isPresent(a.viewQueries)&&a.viewQueries.forEach(function(a){return k(b,a)}),a.type.diDeps.forEach(function(a){m.isPresent(a.viewQuery)&&k(b,a.viewQuery)}),b}function j(a){var b=new p.CompileTokenMap;return a.forEach(function(a){m.isPresent(a.queries)&&a.queries.forEach(function(a){return k(b,a)}),a.type.diDeps.forEach(function(a){m.isPresent(a.query)&&k(b,a.query)})}),b}function k(a,b){b.selectors.forEach(function(c){var d=a.get(c);m.isBlank(d)&&(d=[],a.add(c,d)),d.push(b)})}var l=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},m=a("13"),n=a("e"),o=a("14"),p=a("c"),q=a("15"),r=a("16"),s=function(a){function b(b,c){a.call(this,c,b)}return l(b,a),b}(r.ParseError);b.ProviderError=s;var t=function(){function a(a,b){var c=this;this.component=a,this.sourceSpan=b,this.errors=[],this.viewQueries=i(a),this.viewProviders=new p.CompileTokenMap,f(a.viewProviders,b,this.errors).forEach(function(a){m.isBlank(c.viewProviders.get(a.token))&&c.viewProviders.add(a.token,!0)})}return a}();b.ProviderViewContext=t;var u=function(){function a(a,b,c,d,e,f,h){var i=this;this._viewContext=a,this._parent=b,this._isViewRoot=c,this._directiveAsts=d,this._sourceSpan=h,this._transformedProviders=new p.CompileTokenMap,this._seenProviders=new p.CompileTokenMap,this._hasViewContainer=!1,this._attrs={},e.forEach(function(a){return i._attrs[a.name]=a.value});var k=d.map(function(a){return a.directive});this._allProviders=g(k,h,a.errors),this._contentQueries=j(k);var l=new p.CompileTokenMap;this._allProviders.values().forEach(function(a){i._addQueryReadsTo(a.token,l)}),f.forEach(function(a){i._addQueryReadsTo(new p.CompileTokenMetadata({value:a.name}),l)}),m.isPresent(l.get(q.identifierToken(q.Identifiers.ViewContainerRef)))&&(this._hasViewContainer=!0),this._allProviders.values().forEach(function(a){var b=a.eager||m.isPresent(l.get(a.token));b&&i._getOrCreateLocalProvider(a.providerType,a.token,!0)})}return a.prototype.afterElement=function(){var a=this;this._allProviders.values().forEach(function(b){a._getOrCreateLocalProvider(b.providerType,b.token,!1)})},Object.defineProperty(a.prototype,"transformProviders",{get:function(){return this._transformedProviders.values()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"transformedDirectiveAsts",{get:function(){var a=this._transformedProviders.values().map(function(a){return a.token.identifier}),b=n.ListWrapper.clone(this._directiveAsts);return n.ListWrapper.sort(b,function(b,c){return a.indexOf(b.directive.type)-a.indexOf(c.directive.type)}),b},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),a.prototype._addQueryReadsTo=function(a,b){this._getQueriesFor(a).forEach(function(c){var d=m.isPresent(c.read)?c.read:a;m.isBlank(b.get(d))&&b.add(d,!0)})},a.prototype._getQueriesFor=function(a){for(var b,c=[],d=this,e=0;null!==d;)b=d._contentQueries.get(a),m.isPresent(b)&&n.ListWrapper.addAll(c,b.filter(function(a){return a.descendants||1>=e})),d._directiveAsts.length>0&&e++,d=d._parent;return b=this._viewContext.viewQueries.get(a),m.isPresent(b)&&n.ListWrapper.addAll(c,b),c},a.prototype._getOrCreateLocalProvider=function(a,b,c){var f=this,g=this._allProviders.get(b);if(m.isBlank(g)||(a===o.ProviderAstType.Directive||a===o.ProviderAstType.PublicService)&&g.providerType===o.ProviderAstType.PrivateService||(a===o.ProviderAstType.PrivateService||a===o.ProviderAstType.PublicService)&&g.providerType===o.ProviderAstType.Builtin)return null;var h=this._transformedProviders.get(b);if(m.isPresent(h))return h;if(m.isPresent(this._seenProviders.get(b)))return this._viewContext.errors.push(new s("Cannot instantiate cyclic dependency! "+b.name,this._sourceSpan)),null;this._seenProviders.add(b,!0);var i=g.providers.map(function(a){var b,e=a.useValue,h=a.useExisting;if(m.isPresent(a.useExisting)){var i=f._getDependency(g.providerType,new p.CompileDiDependencyMetadata({token:a.useExisting}),c);m.isPresent(i.token)?h=i.token:(h=null,e=i.value)}else if(m.isPresent(a.useFactory)){var j=m.isPresent(a.deps)?a.deps:a.useFactory.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,c)})}else if(m.isPresent(a.useClass)){var j=m.isPresent(a.deps)?a.deps:a.useClass.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,c)})}return d(a,{useExisting:h,useValue:e,deps:b})});return h=e(g,{eager:c,providers:i}),this._transformedProviders.add(b,h),h},a.prototype._getLocalDependency=function(a,b,c){if(void 0===c&&(c=null),b.isAttribute){var d=this._attrs[b.token.value];return new p.CompileDiDependencyMetadata({isValue:!0,value:m.normalizeBlank(d)})}if(m.isPresent(b.query)||m.isPresent(b.viewQuery))return b;if(m.isPresent(b.token)){if(a===o.ProviderAstType.Directive||a===o.ProviderAstType.Component){if(b.token.equalsTo(q.identifierToken(q.Identifiers.Renderer))||b.token.equalsTo(q.identifierToken(q.Identifiers.ElementRef))||b.token.equalsTo(q.identifierToken(q.Identifiers.ChangeDetectorRef))||b.token.equalsTo(q.identifierToken(q.Identifiers.TemplateRef)))return b;b.token.equalsTo(q.identifierToken(q.Identifiers.ViewContainerRef))&&(this._hasViewContainer=!0)}if(b.token.equalsTo(q.identifierToken(q.Identifiers.Injector)))return b;if(m.isPresent(this._getOrCreateLocalProvider(a,b.token,c)))return b}return null},a.prototype._getDependency=function(a,b,c){void 0===c&&(c=null);var d=this,e=c,f=null;if(b.isSkipSelf||(f=this._getLocalDependency(a,b,c)),b.isSelf)m.isBlank(f)&&b.isOptional&&(f=new p.CompileDiDependencyMetadata({isValue:!0,value:null}));else{for(;m.isBlank(f)&&m.isPresent(d._parent);){var g=d;d=d._parent,g._isViewRoot&&(e=!1),f=d._getLocalDependency(o.ProviderAstType.PublicService,b,e)}m.isBlank(f)&&(f=!b.isHost||this._viewContext.component.type.isHost||q.identifierToken(this._viewContext.component.type).equalsTo(b.token)||m.isPresent(this._viewContext.viewProviders.get(b.token))?b:b.isOptional?f=new p.CompileDiDependencyMetadata({isValue:!0,value:null}):null)}return m.isBlank(f)&&this._viewContext.errors.push(new s("No provider for "+b.token.name,this._sourceSpan)),f},a}();return b.ProviderElementContext=u,c.exports}),a.registerDynamic("17",["11","18","e","13","d","19","1a","1b","1c","16","14","1d","1e","1f","20","21","10","15","12","22"],!0,function(a,b,c){return function(c){"use strict";function d(a){return k.StringWrapper.split(a.trim(),/\s+/g)}function e(a,b){var c=new s.CssSelector,e=p.splitNsName(a)[1];c.setElement(e);for(var f=0;f<b.length;f++){var g=b[f][0],h=p.splitNsName(g)[1],i=b[f][1];if(c.addAttribute(h,i),g.toLowerCase()==E){var j=d(i);j.forEach(function(a){return c.addClassName(a)})}}return c}function f(a){var b=[];return a.forEach(function(a){var c=b.filter(function(b){return b.type.name==a.type.name&&b.type.moduleUrl==a.type.moduleUrl&&b.type.runtime==a.type.runtime}).length>0;c||b.push(a)}),b}var g=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},h=a("11"),i=a("18"),j=a("e"),k=a("13"),l=a("d"),m=a("19"),n=a("1a"),o=a("1b"),p=a("1c"),q=a("16"),r=a("14"),s=a("1d"),t=a("1e"),u=a("1f"),v=a("20"),w=a("21"),x=a("10"),y=a("15"),z=a("12"),A=/^(?:(?:(?:(bind-)|(var-)|(let-)|(ref-|#)|(on-)|(bindon-))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,B="template",C="template",D="*",E="class",F=".",G="attr",H="class",I="style",J=s.CssSelector.parse("*")[0];b.TEMPLATE_TRANSFORMS=new h.OpaqueToken("TemplateTransforms");var K=function(a){function b(b,c,d){a.call(this,c,b,d)}return g(b,a),b}(q.ParseError);b.TemplateParseError=K;var L=function(){function a(a,b){this.templateAst=a,this.errors=b}return a}();b.TemplateParseResult=L;var M=function(){function a(a,b,c,d,e){this._exprParser=a,this._schemaRegistry=b,this._htmlParser=c,this._console=d,this.transforms=e}return a.prototype.parse=function(a,b,c,d,e){var f=this.tryParse(a,b,c,d,e),g=f.errors.filter(function(a){return a.level===q.ParseErrorLevel.WARNING}),h=f.errors.filter(function(a){return a.level===q.ParseErrorLevel.FATAL});if(g.length>0&&this._console.warn("Template parse warnings:\n"+g.join("\n")),h.length>0){var i=h.join("\n");throw new l.BaseException("Template parse errors:\n"+i)}return f.templateAst},a.prototype.tryParse=function(a,b,c,d,e){var g,h=this._htmlParser.parse(b,e),i=h.errors;if(h.rootNodes.length>0){var j=f(c),l=f(d),m=new z.ProviderViewContext(a,h.rootNodes[0].sourceSpan),n=new N(m,j,l,this._exprParser,this._schemaRegistry);g=w.htmlVisitAll(n,h.rootNodes,S),i=i.concat(n.errors).concat(m.errors)}else g=[];return i.length>0?new L(g,i):(k.isPresent(this.transforms)&&this.transforms.forEach(function(a){g=r.templateVisitAll(a,g)}),new L(g,i))},a.decorators=[{type:h.Injectable}],a.ctorParameters=[{type:n.Parser},{type:t.ElementSchemaRegistry},{type:o.HtmlParser},{type:i.Console},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[b.TEMPLATE_TRANSFORMS]}]}],a}();b.TemplateParser=M;var N=function(){function a(a,b,c,d,e){var f=this;this.providerViewContext=a,this._exprParser=d,this._schemaRegistry=e,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new s.SelectorMatcher,j.ListWrapper.forEachWithIndex(b,function(a,b){var c=s.CssSelector.parse(a.selector);f.selectorMatcher.addSelectables(c,a),f.directivesIndex.set(a,b)}),this.pipesByName=new Map,c.forEach(function(a){return f.pipesByName.set(a.name,a)})}return a.prototype._reportError=function(a,b,c){void 0===c&&(c=q.ParseErrorLevel.FATAL),this.errors.push(new K(a,b,c))},a.prototype._parseInterpolation=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseInterpolation(a,c);if(this._checkPipes(d,b),k.isPresent(d)&&d.ast.expressions.length>i.MAX_INTERPOLATION_VALUES)throw new l.BaseException("Only support at most "+i.MAX_INTERPOLATION_VALUES+" interpolation values!");return d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},a.prototype._parseAction=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseAction(a,c);return this._checkPipes(d,b),d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},a.prototype._parseBinding=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseBinding(a,c);return this._checkPipes(d,b),d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},a.prototype._parseTemplateBindings=function(a,b){var c=this,d=b.start.toString();try{var e=this._exprParser.parseTemplateBindings(a,d);return e.templateBindings.forEach(function(a){k.isPresent(a.expression)&&c._checkPipes(a.expression,b)}),e.warnings.forEach(function(a){
|
||
c._reportError(a,b,q.ParseErrorLevel.WARNING)}),e.templateBindings}catch(f){return this._reportError(""+f,b),[]}},a.prototype._checkPipes=function(a,b){var c=this;if(k.isPresent(a)){var d=new U;a.visit(d),d.pipes.forEach(function(a){c.pipesByName.has(a)||c._reportError("The pipe '"+a+"' could not be found",b)})}},a.prototype.visitExpansion=function(a,b){return null},a.prototype.visitExpansionCase=function(a,b){return null},a.prototype.visitText=function(a,b){var c=b.findNgContentIndex(J),d=this._parseInterpolation(a.value,a.sourceSpan);return k.isPresent(d)?new r.BoundTextAst(d,c,a.sourceSpan):new r.TextAst(a.value,c,a.sourceSpan)},a.prototype.visitAttr=function(a,b){return new r.AttrAst(a.name,a.value,a.sourceSpan)},a.prototype.visitComment=function(a,b){return null},a.prototype.visitElement=function(a,b){var c=this,d=a.name,f=u.preparseElement(a);if(f.type===u.PreparsedElementType.SCRIPT||f.type===u.PreparsedElementType.STYLE)return null;if(f.type===u.PreparsedElementType.STYLESHEET&&v.isStyleUrlResolvable(f.hrefAttr))return null;var g=[],h=[],i=[],j=[],l=[],m=[],n=[],o=[],q=!1,t=[],x=p.splitNsName(d.toLowerCase())[1],y=x==B;a.attrs.forEach(function(a){var b=c._parseAttr(y,a,g,h,l,i,j),d=c._parseInlineTemplateBinding(a,n,m,o);b||d||(t.push(c.visitAttr(a,null)),g.push([a.name,a.value])),d&&(q=!0)});var A=e(d,g),C=this._parseDirectives(this.selectorMatcher,A),D=[],E=this._createDirectiveAsts(y,a.name,C,h,i,a.sourceSpan,D),F=this._createElementPropertyAsts(a.name,h,E),G=b.isTemplateElement||q,H=new z.ProviderElementContext(this.providerViewContext,b.providerContext,G,E,t,D,a.sourceSpan),I=w.htmlVisitAll(f.nonBindable?T:this,a.children,R.create(y,E,y?b.providerContext:H));H.afterElement();var J,K=k.isPresent(f.projectAs)?s.CssSelector.parse(f.projectAs)[0]:A,L=b.findNgContentIndex(K);if(f.type===u.PreparsedElementType.NG_CONTENT)k.isPresent(a.children)&&a.children.length>0&&this._reportError("<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content>",a.sourceSpan),J=new r.NgContentAst(this.ngContentCount++,q?null:L,a.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,F,a.sourceSpan),J=new r.EmbeddedTemplateAst(t,l,D,j,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,I,q?null:L,a.sourceSpan);else{this._assertOnlyOneComponent(E,a.sourceSpan);var M=q?null:b.findNgContentIndex(K);J=new r.ElementAst(d,t,F,l,D,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,I,q?null:M,a.sourceSpan)}if(q){var N=e(B,n),O=this._parseDirectives(this.selectorMatcher,N),P=this._createDirectiveAsts(!0,a.name,O,m,[],a.sourceSpan,[]),Q=this._createElementPropertyAsts(a.name,m,P);this._assertNoComponentsNorElementBindingsOnTemplate(P,Q,a.sourceSpan);var S=new z.ProviderElementContext(this.providerViewContext,b.providerContext,b.isTemplateElement,P,[],[],a.sourceSpan);S.afterElement(),J=new r.EmbeddedTemplateAst([],[],[],o,S.transformedDirectiveAsts,S.transformProviders,S.transformedHasViewContainer,[J],L,a.sourceSpan)}return J},a.prototype._parseInlineTemplateBinding=function(a,b,c,d){var e=null;if(a.name==C)e=a.value;else if(a.name.startsWith(D)){var f=a.name.substring(D.length);e=0==a.value.length?f:f+" "+a.value}if(k.isPresent(e)){for(var g=this._parseTemplateBindings(e,a.sourceSpan),h=0;h<g.length;h++){var i=g[h];i.keyIsVar?d.push(new r.VariableAst(i.key,i.name,a.sourceSpan)):k.isPresent(i.expression)?this._parsePropertyAst(i.key,i.expression,a.sourceSpan,b,c):(b.push([i.key,""]),this._parseLiteralAttr(i.key,null,a.sourceSpan,c))}return!0}return!1},a.prototype._parseAttr=function(a,b,c,d,e,f,g){var h=this._normalizeAttributeName(b.name),i=b.value,j=k.RegExpWrapper.firstMatch(A,h),l=!1;if(k.isPresent(j))if(l=!0,k.isPresent(j[1]))this._parseProperty(j[7],i,b.sourceSpan,c,d);else if(k.isPresent(j[2])){var m=j[7];a?(this._reportError('"var-" on <template> elements is deprecated. Use "let-" instead!',b.sourceSpan,q.ParseErrorLevel.WARNING),this._parseVariable(m,i,b.sourceSpan,g)):(this._reportError('"var-" on non <template> elements is deprecated. Use "ref-" instead!',b.sourceSpan,q.ParseErrorLevel.WARNING),this._parseReference(m,i,b.sourceSpan,f))}else if(k.isPresent(j[3]))if(a){var m=j[7];this._parseVariable(m,i,b.sourceSpan,g)}else this._reportError('"let-" is only supported on template elements.',b.sourceSpan);else if(k.isPresent(j[4])){var m=j[7];this._parseReference(m,i,b.sourceSpan,f)}else k.isPresent(j[5])?this._parseEvent(j[7],i,b.sourceSpan,c,e):k.isPresent(j[6])?(this._parseProperty(j[7],i,b.sourceSpan,c,d),this._parseAssignmentEvent(j[7],i,b.sourceSpan,c,e)):k.isPresent(j[8])?(this._parseProperty(j[8],i,b.sourceSpan,c,d),this._parseAssignmentEvent(j[8],i,b.sourceSpan,c,e)):k.isPresent(j[9])?this._parseProperty(j[9],i,b.sourceSpan,c,d):k.isPresent(j[10])&&this._parseEvent(j[10],i,b.sourceSpan,c,e);else l=this._parsePropertyInterpolation(h,i,b.sourceSpan,c,d);return l||this._parseLiteralAttr(h,i,b.sourceSpan,d),l},a.prototype._normalizeAttributeName=function(a){return a.toLowerCase().startsWith("data-")?a.substring(5):a},a.prototype._parseVariable=function(a,b,c,d){a.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',c),d.push(new r.VariableAst(a,b,c))},a.prototype._parseReference=function(a,b,c,d){a.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',c),d.push(new Q(a,b,c))},a.prototype._parseProperty=function(a,b,c,d,e){this._parsePropertyAst(a,this._parseBinding(b,c),c,d,e)},a.prototype._parsePropertyInterpolation=function(a,b,c,d,e){var f=this._parseInterpolation(b,c);return k.isPresent(f)?(this._parsePropertyAst(a,f,c,d,e),!0):!1},a.prototype._parsePropertyAst=function(a,b,c,d,e){d.push([a,b.source]),e.push(new P(a,b,!1,c))},a.prototype._parseAssignmentEvent=function(a,b,c,d,e){this._parseEvent(a+"Change",b+"=$event",c,d,e)},a.prototype._parseEvent=function(a,b,c,d,e){var f=x.splitAtColon(a,[null,a]),g=f[0],h=f[1],i=this._parseAction(b,c);d.push([a,i.source]),e.push(new r.BoundEventAst(h,g,i,c))},a.prototype._parseLiteralAttr=function(a,b,c,d){d.push(new P(a,this._exprParser.wrapLiteralPrimitive(b,""),!0,c))},a.prototype._parseDirectives=function(a,b){var c=this,d=j.ListWrapper.createFixedSize(this.directivesIndex.size);return a.match(b,function(a,b){d[c.directivesIndex.get(b)]=b}),d.filter(function(a){return k.isPresent(a)})},a.prototype._createDirectiveAsts=function(a,b,c,d,e,f,g){var h=this,i=new Set,l=null,m=c.map(function(a){a.isComponent&&(l=a);var c=[],j=[],k=[];return h._createDirectiveHostPropertyAsts(b,a.hostProperties,f,c),h._createDirectiveHostEventAsts(a.hostListeners,f,j),h._createDirectivePropertyAsts(a.inputs,d,k),e.forEach(function(b){(0===b.value.length&&a.isComponent||a.exportAs==b.value)&&(g.push(new r.ReferenceAst(b.name,y.identifierToken(a.type),b.sourceSpan)),i.add(b.name))}),new r.DirectiveAst(a,k,c,j,f)});return e.forEach(function(b){if(b.value.length>0)j.SetWrapper.has(i,b.name)||h._reportError('There is no directive with "exportAs" set to "'+b.value+'"',b.sourceSpan);else if(k.isBlank(l)){var c=null;a&&(c=y.identifierToken(y.Identifiers.TemplateRef)),g.push(new r.ReferenceAst(b.name,c,b.sourceSpan))}}),m},a.prototype._createDirectiveHostPropertyAsts=function(a,b,c,d){var e=this;k.isPresent(b)&&j.StringMapWrapper.forEach(b,function(b,f){var g=e._parseBinding(b,c);d.push(e._createElementPropertyAst(a,f,g,c))})},a.prototype._createDirectiveHostEventAsts=function(a,b,c){var d=this;k.isPresent(a)&&j.StringMapWrapper.forEach(a,function(a,e){d._parseEvent(e,a,b,[],c)})},a.prototype._createDirectivePropertyAsts=function(a,b,c){if(k.isPresent(a)){var d=new Map;b.forEach(function(a){var b=d.get(a.name);(k.isBlank(b)||b.isLiteral)&&d.set(a.name,a)}),j.StringMapWrapper.forEach(a,function(a,b){var e=d.get(a);k.isPresent(e)&&c.push(new r.BoundDirectivePropertyAst(b,e.name,e.expression,e.sourceSpan))})}},a.prototype._createElementPropertyAsts=function(a,b,c){var d=this,e=[],f=new Map;return c.forEach(function(a){a.inputs.forEach(function(a){f.set(a.templateName,a)})}),b.forEach(function(b){!b.isLiteral&&k.isBlank(f.get(b.name))&&e.push(d._createElementPropertyAst(a,b.name,b.expression,b.sourceSpan))}),e},a.prototype._createElementPropertyAst=function(a,b,c,d){var e,f,g,h=null,j=b.split(F);if(1===j.length)f=this._schemaRegistry.getMappedPropName(j[0]),g=this._schemaRegistry.securityContext(a,f),e=r.PropertyBindingType.Property,this._schemaRegistry.hasProperty(a,f)||this._reportError("Can't bind to '"+f+"' since it isn't a known native property",d);else if(j[0]==G){f=j[1],f.toLowerCase().startsWith("on")&&this._reportError("Binding to event attribute '"+f+"' is disallowed "+("for security reasons, please use ("+f.slice(2)+")=..."),d),g=this._schemaRegistry.securityContext(a,this._schemaRegistry.getMappedPropName(f));var k=f.indexOf(":");if(k>-1){var l=f.substring(0,k),m=f.substring(k+1);f=p.mergeNsAndName(l,m)}e=r.PropertyBindingType.Attribute}else j[0]==H?(f=j[1],e=r.PropertyBindingType.Class,g=i.SecurityContext.NONE):j[0]==I?(h=j.length>2?j[2]:null,f=j[1],e=r.PropertyBindingType.Style,g=i.SecurityContext.STYLE):(this._reportError("Invalid property name '"+b+"'",d),e=null,g=null);return new r.BoundElementPropertyAst(f,e,g,c,h,d)},a.prototype._findComponentDirectiveNames=function(a){var b=[];return a.forEach(function(a){var c=a.directive.type.name;a.directive.isComponent&&b.push(c)}),b},a.prototype._assertOnlyOneComponent=function(a,b){var c=this._findComponentDirectiveNames(a);c.length>1&&this._reportError("More than one component: "+c.join(","),b)},a.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(a,b,c){var d=this,e=this._findComponentDirectiveNames(a);e.length>0&&this._reportError("Components on an embedded template: "+e.join(","),c),b.forEach(function(a){d._reportError("Property binding "+a.name+" not used by any directive on an embedded template",c)})},a.prototype._assertAllEventsPublishedByDirectives=function(a,b){var c=this,d=new Set;a.forEach(function(a){j.StringMapWrapper.forEach(a.directive.outputs,function(a,b){d.add(a)})}),b.forEach(function(a){!k.isPresent(a.target)&&j.SetWrapper.has(d,a.name)||c._reportError("Event binding "+a.fullName+" not emitted by any directive on an embedded template",a.sourceSpan)})},a}(),O=function(){function a(){}return a.prototype.visitElement=function(a,b){var c=u.preparseElement(a);if(c.type===u.PreparsedElementType.SCRIPT||c.type===u.PreparsedElementType.STYLE||c.type===u.PreparsedElementType.STYLESHEET)return null;var d=a.attrs.map(function(a){return[a.name,a.value]}),f=e(a.name,d),g=b.findNgContentIndex(f),h=w.htmlVisitAll(this,a.children,S);return new r.ElementAst(a.name,w.htmlVisitAll(this,a.attrs),[],[],[],[],[],!1,h,g,a.sourceSpan)},a.prototype.visitComment=function(a,b){return null},a.prototype.visitAttr=function(a,b){return new r.AttrAst(a.name,a.value,a.sourceSpan)},a.prototype.visitText=function(a,b){var c=b.findNgContentIndex(J);return new r.TextAst(a.value,c,a.sourceSpan)},a.prototype.visitExpansion=function(a,b){return a},a.prototype.visitExpansionCase=function(a,b){return a},a}(),P=function(){function a(a,b,c,d){this.name=a,this.expression=b,this.isLiteral=c,this.sourceSpan=d}return a}(),Q=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a}();b.splitClasses=d;var R=function(){function a(a,b,c,d){this.isTemplateElement=a,this._ngContentIndexMatcher=b,this._wildcardNgContentIndex=c,this.providerContext=d}return a.create=function(b,c,d){var e=new s.SelectorMatcher,f=null,g=c.find(function(a){return a.directive.isComponent});if(k.isPresent(g))for(var h=g.directive.template.ngContentSelectors,i=0;i<h.length;i++){var j=h[i];k.StringWrapper.equals(j,"*")?f=i:e.addSelectables(s.CssSelector.parse(h[i]),i)}return new a(b,e,f,d)},a.prototype.findNgContentIndex=function(a){var b=[];return this._ngContentIndexMatcher.match(a,function(a,c){b.push(c)}),j.ListWrapper.sort(b),k.isPresent(this._wildcardNgContentIndex)&&b.push(this._wildcardNgContentIndex),b.length>0?b[0]:null},a}(),S=new R(!0,new s.SelectorMatcher,null,null),T=new O,U=function(a){function b(){a.apply(this,arguments),this.pipes=new Set}return g(b,a),b.prototype.visitPipe=function(a,b){return this.pipes.add(a.name),a.exp.visit(this),this.visitAll(a.args,b),null},b}(m.RecursiveAstVisitor);b.PipeCollector=U}(a("22")),c.exports}),a.registerDynamic("23",["13","d","f","24"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("13"),f=a("d"),g=a("f"),h=a("24"),i=function(a){function b(){a.call(this,!1)}return d(b,a),b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),this._visitClassConstructor(a,b),e.isPresent(a.parent)&&(b.print(a.name+".prototype = Object.create("),a.parent.visitExpression(this,b),b.println(".prototype);")),a.getters.forEach(function(d){return c._visitClassGetter(a,d,b)}),a.methods.forEach(function(d){return c._visitClassMethod(a,d,b)}),b.popClass(),null},b.prototype._visitClassConstructor=function(a,b){b.print("function "+a.name+"("),e.isPresent(a.constructorMethod)&&this._visitParams(a.constructorMethod.params,b),b.println(") {"),b.incIndent(),e.isPresent(a.constructorMethod)&&a.constructorMethod.body.length>0&&(b.println("var self = this;"),this.visitAllStatements(a.constructorMethod.body,b)),b.decIndent(),b.println("}")},b.prototype._visitClassGetter=function(a,b,c){c.println("Object.defineProperty("+a.name+".prototype, '"+b.name+"', { get: function() {"),c.incIndent(),b.body.length>0&&(c.println("var self = this;"),this.visitAllStatements(b.body,c)),c.decIndent(),c.println("}});")},b.prototype._visitClassMethod=function(a,b,c){c.print(a.name+".prototype."+b.name+" = function("),this._visitParams(b.params,c),c.println(") {"),c.incIndent(),b.body.length>0&&(c.println("var self = this;"),this.visitAllStatements(b.body,c)),c.decIndent(),c.println("};")},b.prototype.visitReadVarExpr=function(b,c){if(b.builtin===g.BuiltinVar.This)c.print("self");else{if(b.builtin===g.BuiltinVar.Super)throw new f.BaseException("'super' needs to be handled at a parent ast node, not at the variable level!");a.prototype.visitReadVarExpr.call(this,b,c)}return null},b.prototype.visitDeclareVarStmt=function(a,b){return b.print("var "+a.name+" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return a.value.visitExpression(this,b),null},b.prototype.visitInvokeFunctionExpr=function(b,c){var d=b.fn;return d instanceof g.ReadVarExpr&&d.builtin===g.BuiltinVar.Super?(c.currentClass.parent.visitExpression(this,c),c.print(".call(this"),b.args.length>0&&(c.print(", "),this.visitAllExpressions(b.args,c,",")),c.print(")")):a.prototype.visitInvokeFunctionExpr.call(this,b,c),null},b.prototype.visitFunctionExpr=function(a,b){return b.print("function("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return b.print("function "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.visitTryCatchStmt=function(a,b){b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+h.CATCH_ERROR_VAR.name+") {"),b.incIndent();var c=[h.CATCH_STACK_VAR.set(h.CATCH_ERROR_VAR.prop("stack")).toDeclStmt(null,[g.StmtModifier.Final])].concat(a.catchStmts);return this.visitAllStatements(c,b),b.decIndent(),b.println("}"),null},b.prototype._visitParams=function(a,b){this.visitAllObjects(function(a){return b.print(a.name)},a,b,",")},b.prototype.getBuiltinMethodName=function(a){var b;switch(a){case g.BuiltinMethod.ConcatArray:b="concat";break;case g.BuiltinMethod.SubscribeObservable:b="subscribe";break;case g.BuiltinMethod.bind:b="bind";break;default:throw new f.BaseException("Unknown builtin method: "+a)}return b},b}(h.AbstractEmitterVisitor);return b.AbstractJsEmitterVisitor=i,c.exports}),a.registerDynamic("25",["13","24","23","10"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=new j,e=g.EmitterVisitorContext.createRoot([c]);return d.visitAllStatements(b,e),f.evalExpression(a,c,e.toSource(),d.getArgs())}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("13"),g=a("24"),h=a("23"),i=a("10");b.jitStatements=d;var j=function(a){function b(){a.apply(this,arguments),this._evalArgNames=[],this._evalArgValues=[]}return e(b,a),b.prototype.getArgs=function(){for(var a={},b=0;b<this._evalArgNames.length;b++)a[this._evalArgNames[b]]=this._evalArgValues[b];return a},b.prototype.visitExternalExpr=function(a,b){var c=a.value.runtime,d=this._evalArgValues.indexOf(c);if(-1===d){d=this._evalArgValues.length,this._evalArgValues.push(c);var e=f.isPresent(a.value.name)?i.sanitizeIdentifier(a.value.name):"val";this._evalArgNames.push(i.sanitizeIdentifier("jit_"+e+d))}return b.print(this._evalArgNames[d]),null},b}(h.AbstractJsEmitterVisitor);return c.exports}),a.registerDynamic("26",["13","d","f","24"],!0,function(a,b,c){"use strict";function d(a){var b,c=new n(l),d=k.EmitterVisitorContext.createRoot([]);return b=h.isArray(a)?a:[a],b.forEach(function(a){if(a instanceof j.Statement)a.visitStatement(c,d);else if(a instanceof j.Expression)a.visitExpression(c,d);else{if(!(a instanceof j.Type))throw new i.BaseException("Don't know how to print debug info for "+a);a.visitType(c,d)}}),d.toSource()}function e(a){if(a instanceof j.ExpressionStatement){var b=a.expr;if(b instanceof j.InvokeFunctionExpr){var c=b.fn;if(c instanceof j.ReadVarExpr&&c.builtin===j.BuiltinVar.Super)return b}}return null}function f(a){return h.isPresent(a)&&a.hasModifier(j.TypeModifier.Const)}var g=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},h=a("13"),i=a("d"),j=a("f"),k=a("24"),l="asset://debug/lib";b.debugOutputAstAsDart=d;var m=function(){function a(a){this._importGenerator=a}return a.prototype.emitStatements=function(a,b,c){var d=this,e=[],f=new n(a),g=k.EmitterVisitorContext.createRoot(c);return f.visitAllStatements(b,g),f.importsWithPrefixes.forEach(function(b,c){e.push("import '"+d._importGenerator.getImportPath(a,c)+"' as "+b+";")}),e.push(g.toSource()),e.join("\n")},a}();b.DartEmitter=m;var n=function(a){function b(b){a.call(this,!0),this._moduleUrl=b,this.importsWithPrefixes=new Map}return g(b,a),b.prototype.visitExternalExpr=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitDeclareVarStmt=function(a,b){return a.hasModifier(j.StmtModifier.Final)?f(a.type)?b.print("const "):b.print("final "):h.isBlank(a.type)&&b.print("var "),h.isPresent(a.type)&&(a.type.visitType(this,b),b.print(" ")),b.print(a.name+" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return b.print("("),a.value.visitExpression(this,b),b.print(" as "),a.type.visitType(this,b),b.print(")"),null},b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),b.print("class "+a.name),h.isPresent(a.parent)&&(b.print(" extends "),a.parent.visitExpression(this,b)),b.println(" {"),b.incIndent(),a.fields.forEach(function(a){return c._visitClassField(a,b)}),h.isPresent(a.constructorMethod)&&this._visitClassConstructor(a,b),a.getters.forEach(function(a){return c._visitClassGetter(a,b)}),a.methods.forEach(function(a){return c._visitClassMethod(a,b)}),b.decIndent(),b.println("}"),b.popClass(),null},b.prototype._visitClassField=function(a,b){a.hasModifier(j.StmtModifier.Final)?b.print("final "):h.isBlank(a.type)&&b.print("var "),h.isPresent(a.type)&&(a.type.visitType(this,b),b.print(" ")),b.println(a.name+";")},b.prototype._visitClassGetter=function(a,b){h.isPresent(a.type)&&(a.type.visitType(this,b),b.print(" ")),b.println("get "+a.name+" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassConstructor=function(a,b){b.print(a.name+"("),this._visitParams(a.constructorMethod.params,b),b.print(")");var c=a.constructorMethod.body,d=c.length>0?e(c[0]):null;h.isPresent(d)&&(b.print(": "),d.visitExpression(this,b),c=c.slice(1)),b.println(" {"),b.incIndent(),this.visitAllStatements(c,b),b.decIndent(),b.println("}")},b.prototype._visitClassMethod=function(a,b){h.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.print(" "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype.visitFunctionExpr=function(a,b){return b.print("("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return h.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.print(" "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.getBuiltinMethodName=function(a){var b;switch(a){case j.BuiltinMethod.ConcatArray:b=".addAll";break;case j.BuiltinMethod.SubscribeObservable:b="listen";break;case j.BuiltinMethod.bind:b=null;break;default:throw new i.BaseException("Unknown builtin method: "+a)}return b},b.prototype.visitTryCatchStmt=function(a,b){return b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+k.CATCH_ERROR_VAR.name+", "+k.CATCH_STACK_VAR.name+") {"),b.incIndent(),this.visitAllStatements(a.catchStmts,b),b.decIndent(),b.println("}"),null},b.prototype.visitBinaryOperatorExpr=function(b,c){switch(b.operator){case j.BinaryOperator.Identical:c.print("identical("),b.lhs.visitExpression(this,c),c.print(", "),b.rhs.visitExpression(this,c),c.print(")");break;case j.BinaryOperator.NotIdentical:c.print("!identical("),b.lhs.visitExpression(this,c),c.print(", "),b.rhs.visitExpression(this,c),c.print(")");break;default:a.prototype.visitBinaryOperatorExpr.call(this,b,c)}return null},b.prototype.visitLiteralArrayExpr=function(b,c){return f(b.type)&&c.print("const "),a.prototype.visitLiteralArrayExpr.call(this,b,c)},b.prototype.visitLiteralMapExpr=function(b,c){return f(b.type)&&c.print("const "),h.isPresent(b.valueType)&&(c.print("<String, "),b.valueType.visitType(this,c),c.print(">")),a.prototype.visitLiteralMapExpr.call(this,b,c)},b.prototype.visitInstantiateExpr=function(a,b){return b.print(f(a.type)?"const":"new"),b.print(" "),a.classExpr.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},b.prototype.visitBuiltintType=function(a,b){var c;switch(a.name){case j.BuiltinTypeName.Bool:c="bool";break;case j.BuiltinTypeName.Dynamic:c="dynamic";break;case j.BuiltinTypeName.Function:c="Function";break;case j.BuiltinTypeName.Number:c="num";break;case j.BuiltinTypeName.Int:c="int";break;case j.BuiltinTypeName.String:c="String";break;default:throw new i.BaseException("Unsupported builtin type "+a.name)}return b.print(c),null},b.prototype.visitExternalType=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitArrayType=function(a,b){return b.print("List<"),h.isPresent(a.of)?a.of.visitType(this,b):b.print("dynamic"),b.print(">"),null},b.prototype.visitMapType=function(a,b){return b.print("Map<String, "),h.isPresent(a.valueType)?a.valueType.visitType(this,b):b.print("dynamic"),b.print(">"),null},b.prototype._visitParams=function(a,b){var c=this;this.visitAllObjects(function(a){h.isPresent(a.type)&&(a.type.visitType(c,b),b.print(" ")),b.print(a.name)},a,b,",")},b.prototype._visitIdentifier=function(a,b,c){var d=this;if(h.isBlank(a.name))throw new i.BaseException("Internal error: unknown identifier "+a);if(h.isPresent(a.moduleUrl)&&a.moduleUrl!=this._moduleUrl){var e=this.importsWithPrefixes.get(a.moduleUrl);h.isBlank(e)&&(e="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(a.moduleUrl,e)),c.print(e+".")}c.print(a.name),h.isPresent(b)&&b.length>0&&(c.print("<"),this.visitAllObjects(function(a){return a.visitType(d,c)},b,c,","),c.print(">"))},b}(k.AbstractEmitterVisitor);return c.exports}),a.registerDynamic("24",["13","d","f"],!0,function(a,b,c){"use strict";function d(a,b){if(f.isBlank(a))return null;var c=f.StringWrapper.replaceAllMapped(a,i,function(a){return"$"==a[0]?b?"\\$":"$":"\n"==a[0]?"\\n":"\r"==a[0]?"\\r":"\\"+a[0]});return"'"+c+"'"}function e(a){for(var b="",c=0;a>c;c++)b+=" ";return b}var f=a("13"),g=a("d"),h=a("f"),i=/'|\\|\n|\r|\$/g;b.CATCH_ERROR_VAR=h.variable("error"),b.CATCH_STACK_VAR=h.variable("stack");var j=function(){function a(){}return a}();b.OutputEmitter=j;var k=function(){function a(a){this.indent=a,this.parts=[]}return a}(),l=function(){function a(a,b){this._exportedVars=a,this._indent=b,this._classes=[],this._lines=[new k(b)]}return a.createRoot=function(b){return new a(b,0)},Object.defineProperty(a.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),a.prototype.isExportedVar=function(a){return-1!==this._exportedVars.indexOf(a)},a.prototype.println=function(a){void 0===a&&(a=""),this.print(a,!0)},a.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},a.prototype.print=function(a,b){void 0===b&&(b=!1),a.length>0&&this._currentLine.parts.push(a),b&&this._lines.push(new k(this._indent))},a.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},a.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},a.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},a.prototype.pushClass=function(a){this._classes.push(a)},a.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(a.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),a.prototype.toSource=function(){var a=this._lines;return 0===a[a.length-1].parts.length&&(a=a.slice(0,a.length-1)),a.map(function(a){return a.parts.length>0?e(a.indent)+a.parts.join(""):""}).join("\n")},a}();b.EmitterVisitorContext=l;var m=function(){function a(a){this._escapeDollarInStrings=a}return a.prototype.visitExpressionStmt=function(a,b){return a.expr.visitExpression(this,b),b.println(";"),null},a.prototype.visitReturnStmt=function(a,b){return b.print("return "),a.value.visitExpression(this,b),b.println(";"),null},a.prototype.visitIfStmt=function(a,b){b.print("if ("),a.condition.visitExpression(this,b),b.print(") {");var c=f.isPresent(a.falseCase)&&a.falseCase.length>0;return a.trueCase.length<=1&&!c?(b.print(" "),this.visitAllStatements(a.trueCase,b),b.removeEmptyLastLine(),b.print(" ")):(b.println(),b.incIndent(),this.visitAllStatements(a.trueCase,b),b.decIndent(),c&&(b.println("} else {"),b.incIndent(),this.visitAllStatements(a.falseCase,b),b.decIndent())),b.println("}"),null},a.prototype.visitThrowStmt=function(a,b){return b.print("throw "),a.error.visitExpression(this,b),b.println(";"),null},a.prototype.visitCommentStmt=function(a,b){var c=a.comment.split("\n");return c.forEach(function(a){b.println("// "+a)}),null},a.prototype.visitWriteVarExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),b.print(a.name+" = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitWriteKeyExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),a.receiver.visitExpression(this,b),b.print("["),a.index.visitExpression(this,b),b.print("] = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitWritePropExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),a.receiver.visitExpression(this,b),b.print("."+a.name+" = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitInvokeMethodExpr=function(a,b){a.receiver.visitExpression(this,b);var c=a.name;return f.isPresent(a.builtin)&&(c=this.getBuiltinMethodName(a.builtin),f.isBlank(c))?null:(b.print("."+c+"("),this.visitAllExpressions(a.args,b,","),b.print(")"),null)},a.prototype.visitInvokeFunctionExpr=function(a,b){return a.fn.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},a.prototype.visitReadVarExpr=function(a,c){var d=a.name;if(f.isPresent(a.builtin))switch(a.builtin){case h.BuiltinVar.Super:d="super";break;case h.BuiltinVar.This:d="this";break;case h.BuiltinVar.CatchError:d=b.CATCH_ERROR_VAR.name;break;case h.BuiltinVar.CatchStack:d=b.CATCH_STACK_VAR.name;break;default:throw new g.BaseException("Unknown builtin variable "+a.builtin)}return c.print(d),null},a.prototype.visitInstantiateExpr=function(a,b){return b.print("new "),a.classExpr.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},a.prototype.visitLiteralExpr=function(a,b){var c=a.value;return f.isString(c)?b.print(d(c,this._escapeDollarInStrings)):f.isBlank(c)?b.print("null"):b.print(""+c),null},a.prototype.visitConditionalExpr=function(a,b){return b.print("("),a.condition.visitExpression(this,b),b.print("? "),a.trueCase.visitExpression(this,b),b.print(": "),a.falseCase.visitExpression(this,b),b.print(")"),null},a.prototype.visitNotExpr=function(a,b){return b.print("!"),a.condition.visitExpression(this,b),null},a.prototype.visitBinaryOperatorExpr=function(a,b){var c;switch(a.operator){case h.BinaryOperator.Equals:c="==";break;case h.BinaryOperator.Identical:c="===";break;case h.BinaryOperator.NotEquals:c="!=";break;case h.BinaryOperator.NotIdentical:c="!==";break;case h.BinaryOperator.And:c="&&";break;case h.BinaryOperator.Or:c="||";break;case h.BinaryOperator.Plus:c="+";break;case h.BinaryOperator.Minus:c="-";break;case h.BinaryOperator.Divide:c="/";break;case h.BinaryOperator.Multiply:c="*";break;case h.BinaryOperator.Modulo:c="%";break;case h.BinaryOperator.Lower:c="<";break;case h.BinaryOperator.LowerEquals:c="<=";break;case h.BinaryOperator.Bigger:c=">";break;case h.BinaryOperator.BiggerEquals:c=">=";break;default:throw new g.BaseException("Unknown operator "+a.operator)}return b.print("("),a.lhs.visitExpression(this,b),b.print(" "+c+" "),a.rhs.visitExpression(this,b),b.print(")"),null},a.prototype.visitReadPropExpr=function(a,b){return a.receiver.visitExpression(this,b),b.print("."),b.print(a.name),null},a.prototype.visitReadKeyExpr=function(a,b){return a.receiver.visitExpression(this,b),b.print("["),a.index.visitExpression(this,b),b.print("]"),null},a.prototype.visitLiteralArrayExpr=function(a,b){var c=a.entries.length>1;return b.print("[",c),b.incIndent(),this.visitAllExpressions(a.entries,b,",",c),b.decIndent(),b.print("]",c),null},a.prototype.visitLiteralMapExpr=function(a,b){var c=this,e=a.entries.length>1;return b.print("{",e),b.incIndent(),this.visitAllObjects(function(a){b.print(d(a[0],c._escapeDollarInStrings)+": "),a[1].visitExpression(c,b)},a.entries,b,",",e),b.decIndent(),b.print("}",e),null},a.prototype.visitAllExpressions=function(a,b,c,d){var e=this;void 0===d&&(d=!1),this.visitAllObjects(function(a){return a.visitExpression(e,b)},a,b,c,d)},a.prototype.visitAllObjects=function(a,b,c,d,e){void 0===e&&(e=!1);for(var f=0;f<b.length;f++)f>0&&c.print(d,e),a(b[f]);e&&c.println()},a.prototype.visitAllStatements=function(a,b){var c=this;a.forEach(function(a){return a.visitStatement(c,b)})},a}();return b.AbstractEmitterVisitor=m,b.escapeSingleQuoteString=d,c.exports}),a.registerDynamic("27",["f","13","d","24"],!0,function(a,b,c){"use strict";function d(a){var b,c=new l(j),d=i.EmitterVisitorContext.createRoot([]);return b=g.isArray(a)?a:[a],
|
||
b.forEach(function(a){if(a instanceof f.Statement)a.visitStatement(c,d);else if(a instanceof f.Expression)a.visitExpression(c,d);else{if(!(a instanceof f.Type))throw new h.BaseException("Don't know how to print debug info for "+a);a.visitType(c,d)}}),d.toSource()}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("f"),g=a("13"),h=a("d"),i=a("24"),j="asset://debug/lib";b.debugOutputAstAsTypeScript=d;var k=function(){function a(a){this._importGenerator=a}return a.prototype.emitStatements=function(a,b,c){var d=this,e=new l(a),f=i.EmitterVisitorContext.createRoot(c);e.visitAllStatements(b,f);var g=[];return e.importsWithPrefixes.forEach(function(b,c){g.push("imp"+("ort * as "+b+" from '"+d._importGenerator.getImportPath(a,c)+"';"))}),g.push(f.toSource()),g.join("\n")},a}();b.TypeScriptEmitter=k;var l=function(a){function b(b){a.call(this,!1),this._moduleUrl=b,this.importsWithPrefixes=new Map}return e(b,a),b.prototype.visitExternalExpr=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitDeclareVarStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),a.hasModifier(f.StmtModifier.Final)?b.print("const"):b.print("var"),b.print(" "+a.name),g.isPresent(a.type)&&(b.print(":"),a.type.visitType(this,b)),b.print(" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return b.print("(<"),a.type.visitType(this,b),b.print(">"),a.value.visitExpression(this,b),b.print(")"),null},b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),b.isExportedVar(a.name)&&b.print("export "),b.print("class "+a.name),g.isPresent(a.parent)&&(b.print(" extends "),a.parent.visitExpression(this,b)),b.println(" {"),b.incIndent(),a.fields.forEach(function(a){return c._visitClassField(a,b)}),g.isPresent(a.constructorMethod)&&this._visitClassConstructor(a,b),a.getters.forEach(function(a){return c._visitClassGetter(a,b)}),a.methods.forEach(function(a){return c._visitClassMethod(a,b)}),b.decIndent(),b.println("}"),b.popClass(),null},b.prototype._visitClassField=function(a,b){a.hasModifier(f.StmtModifier.Private)&&b.print("private "),b.print(a.name),g.isPresent(a.type)?(b.print(":"),a.type.visitType(this,b)):b.print(": any"),b.println(";")},b.prototype._visitClassGetter=function(a,b){a.hasModifier(f.StmtModifier.Private)&&b.print("private "),b.print("get "+a.name+"()"),g.isPresent(a.type)&&(b.print(":"),a.type.visitType(this,b)),b.println(" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassConstructor=function(a,b){b.print("constructor("),this._visitParams(a.constructorMethod.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.constructorMethod.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassMethod=function(a,b){a.hasModifier(f.StmtModifier.Private)&&b.print("private "),b.print(a.name+"("),this._visitParams(a.params,b),b.print("):"),g.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.println(" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype.visitFunctionExpr=function(a,b){return b.print("("),this._visitParams(a.params,b),b.print("):"),g.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.println(" => {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),b.print("function "+a.name+"("),this._visitParams(a.params,b),b.print("):"),g.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.println(" {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.visitTryCatchStmt=function(a,b){b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+i.CATCH_ERROR_VAR.name+") {"),b.incIndent();var c=[i.CATCH_STACK_VAR.set(i.CATCH_ERROR_VAR.prop("stack")).toDeclStmt(null,[f.StmtModifier.Final])].concat(a.catchStmts);return this.visitAllStatements(c,b),b.decIndent(),b.println("}"),null},b.prototype.visitBuiltintType=function(a,b){var c;switch(a.name){case f.BuiltinTypeName.Bool:c="boolean";break;case f.BuiltinTypeName.Dynamic:c="any";break;case f.BuiltinTypeName.Function:c="Function";break;case f.BuiltinTypeName.Number:c="number";break;case f.BuiltinTypeName.Int:c="number";break;case f.BuiltinTypeName.String:c="string";break;default:throw new h.BaseException("Unsupported builtin type "+a.name)}return b.print(c),null},b.prototype.visitExternalType=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitArrayType=function(a,b){return g.isPresent(a.of)?a.of.visitType(this,b):b.print("any"),b.print("[]"),null},b.prototype.visitMapType=function(a,b){return b.print("{[key: string]:"),g.isPresent(a.valueType)?a.valueType.visitType(this,b):b.print("any"),b.print("}"),null},b.prototype.getBuiltinMethodName=function(a){var b;switch(a){case f.BuiltinMethod.ConcatArray:b="concat";break;case f.BuiltinMethod.SubscribeObservable:b="subscribe";break;case f.BuiltinMethod.bind:b="bind";break;default:throw new h.BaseException("Unknown builtin method: "+a)}return b},b.prototype._visitParams=function(a,b){var c=this;this.visitAllObjects(function(a){b.print(a.name),g.isPresent(a.type)&&(b.print(":"),a.type.visitType(c,b))},a,b,",")},b.prototype._visitIdentifier=function(a,b,c){var d=this;if(g.isBlank(a.name))throw new h.BaseException("Internal error: unknown identifier "+a);if(g.isPresent(a.moduleUrl)&&a.moduleUrl!=this._moduleUrl){var e=this.importsWithPrefixes.get(a.moduleUrl);g.isBlank(e)&&(e="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(a.moduleUrl,e)),c.print(e+".")}c.print(a.name),g.isPresent(b)&&b.length>0&&(c.print("<"),this.visitAllObjects(function(a){return a.visitType(d,c)},b,c,","),c.print(">"))},b}(i.AbstractEmitterVisitor);return c.exports}),a.registerDynamic("28",["11","13","29","d","e","f","26","27"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=a.concat([new m.ReturnStatement(m.variable(b))]),e=new q(null,null,null,null,new Map,new Map,new Map,new Map,c),f=new t,g=f.visitAllStatements(d,e);return i.isPresent(g)?g.value:null}function e(a){return i.IS_DART?a instanceof p:i.isPresent(a)&&i.isPresent(a.props)&&i.isPresent(a.getters)&&i.isPresent(a.methods)}function f(a,b,c,d,e){for(var f=d.createChildWihtLocalVars(),g=0;g<a.length;g++)f.vars.set(a[g],b[g]);var h=e.visitAllStatements(c,f);return i.isPresent(h)?h.value:null}function g(a,b,c,d){switch(a.length){case 0:return function(){return f(a,[],b,c,d)};case 1:return function(e){return f(a,[e],b,c,d)};case 2:return function(e,g){return f(a,[e,g],b,c,d)};case 3:return function(e,g,h){return f(a,[e,g,h],b,c,d)};case 4:return function(e,g,h,i){return f(a,[e,g,h,i],b,c,d)};case 5:return function(e,g,h,i,j){return f(a,[e,g,h,i,j],b,c,d)};case 6:return function(e,g,h,i,j,k){return f(a,[e,g,h,i,j,k],b,c,d)};case 7:return function(e,g,h,i,j,k,l){return f(a,[e,g,h,i,j,k,l],b,c,d)};case 8:return function(e,g,h,i,j,k,l,m){return f(a,[e,g,h,i,j,k,l,m],b,c,d)};case 9:return function(e,g,h,i,j,k,l,m,n){return f(a,[e,g,h,i,j,k,l,m,n],b,c,d)};case 10:return function(e,g,h,i,j,k,l,m,n,o){return f(a,[e,g,h,i,j,k,l,m,n,o],b,c,d)};default:throw new k.BaseException("Declaring functions with more than 10 arguments is not supported right now")}}var h=a("11"),i=a("13"),j=a("29"),k=a("d"),l=a("e"),m=a("f"),n=a("26"),o=a("27");b.interpretStatements=d;var p=function(){function a(){}return Object.defineProperty(a.prototype,"props",{get:function(){return k.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"getters",{get:function(){return k.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"methods",{get:function(){return k.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"clazz",{get:function(){return k.unimplemented()},enumerable:!0,configurable:!0}),a}();b.DynamicInstance=p;var q=function(){function a(a,b,c,d,e,f,g,h,i){this.parent=a,this.superClass=b,this.superInstance=c,this.className=d,this.vars=e,this.props=f,this.getters=g,this.methods=h,this.instanceFactory=i}return a.prototype.createChildWihtLocalVars=function(){return new a(this,this.superClass,this.superInstance,this.className,new Map,this.props,this.getters,this.methods,this.instanceFactory)},a}(),r=function(){function a(a){this.value=a}return a}(),s=function(){function a(a,b,c){this._classStmt=a,this._ctx=b,this._visitor=c}return a.prototype.instantiate=function(a){var b=this,c=new Map,d=new Map,e=new Map,h=this._classStmt.parent.visitExpression(this._visitor,this._ctx),i=new q(this._ctx,h,null,this._classStmt.name,this._ctx.vars,c,d,e,this._ctx.instanceFactory);this._classStmt.fields.forEach(function(a){c.set(a.name,null)}),this._classStmt.getters.forEach(function(a){d.set(a.name,function(){return f([],[],a.body,i,b._visitor)})}),this._classStmt.methods.forEach(function(a){var c=a.params.map(function(a){return a.name});e.set(a.name,g(c,a.body,i,b._visitor))});var j=this._classStmt.constructorMethod.params.map(function(a){return a.name});return f(j,a,this._classStmt.constructorMethod.body,i,this._visitor),i.superInstance},a.prototype.debugAst=function(){return this._visitor.debugAst(this._classStmt)},a}(),t=function(){function a(){}return a.prototype.debugAst=function(a){return i.IS_DART?n.debugOutputAstAsDart(a):o.debugOutputAstAsTypeScript(a)},a.prototype.visitDeclareVarStmt=function(a,b){return b.vars.set(a.name,a.value.visitExpression(this,b)),null},a.prototype.visitWriteVarExpr=function(a,b){for(var c=a.value.visitExpression(this,b),d=b;null!=d;){if(d.vars.has(a.name))return d.vars.set(a.name,c),c;d=d.parent}throw new k.BaseException("Not declared variable "+a.name)},a.prototype.visitReadVarExpr=function(a,b){var c=a.name;if(i.isPresent(a.builtin))switch(a.builtin){case m.BuiltinVar.Super:case m.BuiltinVar.This:return b.superInstance;case m.BuiltinVar.CatchError:c=u;break;case m.BuiltinVar.CatchStack:c=v;break;default:throw new k.BaseException("Unknown builtin variable "+a.builtin)}for(var d=b;null!=d;){if(d.vars.has(c))return d.vars.get(c);d=d.parent}throw new k.BaseException("Not declared variable "+c)},a.prototype.visitWriteKeyExpr=function(a,b){var c=a.receiver.visitExpression(this,b),d=a.index.visitExpression(this,b),e=a.value.visitExpression(this,b);return c[d]=e,e},a.prototype.visitWritePropExpr=function(a,b){var c=a.receiver.visitExpression(this,b),d=a.value.visitExpression(this,b);if(e(c)){var f=c;f.props.has(a.name)?f.props.set(a.name,d):h.reflector.setter(a.name)(c,d)}else h.reflector.setter(a.name)(c,d);return d},a.prototype.visitInvokeMethodExpr=function(a,b){var c,d=a.receiver.visitExpression(this,b),f=this.visitAllExpressions(a.args,b);if(i.isPresent(a.builtin))switch(a.builtin){case m.BuiltinMethod.ConcatArray:c=l.ListWrapper.concat(d,f[0]);break;case m.BuiltinMethod.SubscribeObservable:c=j.ObservableWrapper.subscribe(d,f[0]);break;case m.BuiltinMethod.bind:c=i.IS_DART?d:d.bind(f[0]);break;default:throw new k.BaseException("Unknown builtin method "+a.builtin)}else if(e(d)){var g=d;c=g.methods.has(a.name)?i.FunctionWrapper.apply(g.methods.get(a.name),f):h.reflector.method(a.name)(d,f)}else c=h.reflector.method(a.name)(d,f);return c},a.prototype.visitInvokeFunctionExpr=function(a,b){var c=this.visitAllExpressions(a.args,b),d=a.fn;if(d instanceof m.ReadVarExpr&&d.builtin===m.BuiltinVar.Super)return b.superInstance=b.instanceFactory.createInstance(b.superClass,b.className,c,b.props,b.getters,b.methods),b.parent.superInstance=b.superInstance,null;var e=a.fn.visitExpression(this,b);return i.FunctionWrapper.apply(e,c)},a.prototype.visitReturnStmt=function(a,b){return new r(a.value.visitExpression(this,b))},a.prototype.visitDeclareClassStmt=function(a,b){var c=new s(a,b,this);return b.vars.set(a.name,c),null},a.prototype.visitExpressionStmt=function(a,b){return a.expr.visitExpression(this,b)},a.prototype.visitIfStmt=function(a,b){var c=a.condition.visitExpression(this,b);return c?this.visitAllStatements(a.trueCase,b):i.isPresent(a.falseCase)?this.visitAllStatements(a.falseCase,b):null},a.prototype.visitTryCatchStmt=function(a,b){try{return this.visitAllStatements(a.bodyStmts,b)}catch(c){var d=b.createChildWihtLocalVars();return d.vars.set(u,c),d.vars.set(v,c.stack),this.visitAllStatements(a.catchStmts,d)}},a.prototype.visitThrowStmt=function(a,b){throw a.error.visitExpression(this,b)},a.prototype.visitCommentStmt=function(a,b){return null},a.prototype.visitInstantiateExpr=function(a,b){var c=this.visitAllExpressions(a.args,b),d=a.classExpr.visitExpression(this,b);return d instanceof s?d.instantiate(c):i.FunctionWrapper.apply(h.reflector.factory(d),c)},a.prototype.visitLiteralExpr=function(a,b){return a.value},a.prototype.visitExternalExpr=function(a,b){return a.value.runtime},a.prototype.visitConditionalExpr=function(a,b){return a.condition.visitExpression(this,b)?a.trueCase.visitExpression(this,b):i.isPresent(a.falseCase)?a.falseCase.visitExpression(this,b):null},a.prototype.visitNotExpr=function(a,b){return!a.condition.visitExpression(this,b)},a.prototype.visitCastExpr=function(a,b){return a.value.visitExpression(this,b)},a.prototype.visitFunctionExpr=function(a,b){var c=a.params.map(function(a){return a.name});return g(c,a.statements,b,this)},a.prototype.visitDeclareFunctionStmt=function(a,b){var c=a.params.map(function(a){return a.name});return b.vars.set(a.name,g(c,a.statements,b,this)),null},a.prototype.visitBinaryOperatorExpr=function(a,b){var c=this,d=function(){return a.lhs.visitExpression(c,b)},e=function(){return a.rhs.visitExpression(c,b)};switch(a.operator){case m.BinaryOperator.Equals:return d()==e();case m.BinaryOperator.Identical:return d()===e();case m.BinaryOperator.NotEquals:return d()!=e();case m.BinaryOperator.NotIdentical:return d()!==e();case m.BinaryOperator.And:return d()&&e();case m.BinaryOperator.Or:return d()||e();case m.BinaryOperator.Plus:return d()+e();case m.BinaryOperator.Minus:return d()-e();case m.BinaryOperator.Divide:return d()/e();case m.BinaryOperator.Multiply:return d()*e();case m.BinaryOperator.Modulo:return d()%e();case m.BinaryOperator.Lower:return d()<e();case m.BinaryOperator.LowerEquals:return d()<=e();case m.BinaryOperator.Bigger:return d()>e();case m.BinaryOperator.BiggerEquals:return d()>=e();default:throw new k.BaseException("Unknown operator "+a.operator)}},a.prototype.visitReadPropExpr=function(a,b){var c,d=a.receiver.visitExpression(this,b);if(e(d)){var f=d;c=f.props.has(a.name)?f.props.get(a.name):f.getters.has(a.name)?f.getters.get(a.name)():f.methods.has(a.name)?f.methods.get(a.name):h.reflector.getter(a.name)(d)}else c=h.reflector.getter(a.name)(d);return c},a.prototype.visitReadKeyExpr=function(a,b){var c=a.receiver.visitExpression(this,b),d=a.index.visitExpression(this,b);return c[d]},a.prototype.visitLiteralArrayExpr=function(a,b){return this.visitAllExpressions(a.entries,b)},a.prototype.visitLiteralMapExpr=function(a,b){var c=this,d={};return a.entries.forEach(function(a){return d[a[0]]=a[1].visitExpression(c,b)}),d},a.prototype.visitAllExpressions=function(a,b){var c=this;return a.map(function(a){return a.visitExpression(c,b)})},a.prototype.visitAllStatements=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=d.visitStatement(this,b);if(e instanceof r)return e}return null},a}(),u="error",v="stack";return c.exports}),a.registerDynamic("2a",["18","13","d"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("18"),f=a("13"),g=a("d"),h=function(){function a(){}return a.prototype.createInstance=function(a,b,c,d,f,h){if(a===e.AppView)return c=c.concat([null]),new i(c,d,f,h);if(a===e.DebugAppView)return new i(c,d,f,h);throw new g.BaseException("Can't instantiate class "+a+" in interpretative mode")},a}();b.InterpretiveAppViewInstanceFactory=h;var i=function(a){function b(b,c,d,e){a.call(this,b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7]),this.props=c,this.getters=d,this.methods=e}return d(b,a),b.prototype.createInternal=function(b){var c=this.methods.get("createInternal");return f.isPresent(c)?c(b):a.prototype.createInternal.call(this,b)},b.prototype.injectorGetInternal=function(b,c,d){var e=this.methods.get("injectorGetInternal");return f.isPresent(e)?e(b,c,d):a.prototype.injectorGet.call(this,b,c,d)},b.prototype.destroyInternal=function(){var b=this.methods.get("destroyInternal");return f.isPresent(b)?b():a.prototype.destroyInternal.call(this)},b.prototype.dirtyParentQueriesInternal=function(){var b=this.methods.get("dirtyParentQueriesInternal");return f.isPresent(b)?b():a.prototype.dirtyParentQueriesInternal.call(this)},b.prototype.detectChangesInternal=function(b){var c=this.methods.get("detectChangesInternal");return f.isPresent(c)?c(b):a.prototype.detectChangesInternal.call(this,b)},b}(e.DebugAppView);return c.exports}),a.registerDynamic("2b",["11","13","d","e","29","c","2c","2d","17","2e","2f","30","f","25","28","2a","31"],!0,function(a,b,c){"use strict";function d(a){if(!a.isComponent)throw new g.BaseException("Could not compile '"+a.type.name+"' because it is not a component.")}var e=a("11"),f=a("13"),g=a("d"),h=a("e"),i=a("29"),j=a("c"),k=a("2c"),l=a("2d"),m=a("17"),n=a("2e"),o=a("2f"),p=a("30"),q=a("f"),r=a("25"),s=a("28"),t=a("2a"),u=a("31"),v=function(){function a(a,b,c,d,e,f,g){this._metadataResolver=a,this._templateNormalizer=b,this._templateParser=c,this._styleCompiler=d,this._viewCompiler=e,this._xhr=f,this._genConfig=g,this._styleCache=new Map,this._hostCacheKeys=new Map,this._compiledTemplateCache=new Map,this._compiledTemplateDone=new Map}return a.prototype.resolveComponent=function(a){var b=this._metadataResolver.getDirectiveMetadata(a),c=this._hostCacheKeys.get(a);if(f.isBlank(c)){c=new Object,this._hostCacheKeys.set(a,c),d(b);var g=j.createHostComponentMeta(b.type,b.selector);this._loadAndCompileComponent(c,g,[b],[],[])}return this._compiledTemplateDone.get(c).then(function(c){return new e.ComponentFactory(b.selector,c.viewFactory,a)})},a.prototype.clearCache=function(){this._styleCache.clear(),this._compiledTemplateCache.clear(),this._compiledTemplateDone.clear(),this._hostCacheKeys.clear()},a.prototype._loadAndCompileComponent=function(a,b,c,d,e){var g=this,h=this._compiledTemplateCache.get(a),j=this._compiledTemplateDone.get(a);return f.isBlank(h)&&(h=new w,this._compiledTemplateCache.set(a,h),j=i.PromiseWrapper.all([this._compileComponentStyles(b)].concat(c.map(function(a){return g._templateNormalizer.normalizeDirective(a)}))).then(function(a){var c=a.slice(1),f=a[0],j=g._templateParser.parse(b,b.template.template,c,d,b.type.name),k=[];return h.init(g._compileComponent(b,j,f,d,e,k)),i.PromiseWrapper.all(k).then(function(a){return h})}),this._compiledTemplateDone.set(a,j)),h},a.prototype._compileComponent=function(a,b,c,d,e,g){var i=this,k=this._viewCompiler.compileComponent(a,b,new q.ExternalExpr(new j.CompileIdentifierMetadata({runtime:c})),d);k.dependencies.forEach(function(a){var b=h.ListWrapper.clone(e),c=a.comp.type.runtime,d=i._metadataResolver.getViewDirectivesMetadata(a.comp.type.runtime),f=i._metadataResolver.getViewPipesMetadata(a.comp.type.runtime),j=h.ListWrapper.contains(b,c);b.push(c);var k=i._loadAndCompileComponent(a.comp.type.runtime,a.comp,d,f,b);a.factoryPlaceholder.runtime=k.proxyViewFactory,a.factoryPlaceholder.name="viewFactory_"+a.comp.type.name,j||g.push(i._compiledTemplateDone.get(c))});var l;return l=f.IS_DART||!this._genConfig.useJit?s.interpretStatements(k.statements,k.viewFactoryVar,new t.InterpretiveAppViewInstanceFactory):r.jitStatements(a.type.name+".template.js",k.statements,k.viewFactoryVar)},a.prototype._compileComponentStyles=function(a){var b=this._styleCompiler.compileComponent(a);return this._resolveStylesCompileResult(a.type.name,b)},a.prototype._resolveStylesCompileResult=function(a,b){var c=this,d=b.dependencies.map(function(a){return c._loadStylesheetDep(a)});return i.PromiseWrapper.all(d).then(function(a){for(var d=[],e=0;e<b.dependencies.length;e++){var f=b.dependencies[e],g=a[e],h=c._styleCompiler.compileStylesheet(f.moduleUrl,g,f.isShimmed);d.push(c._resolveStylesCompileResult(f.moduleUrl,h))}return i.PromiseWrapper.all(d)}).then(function(d){for(var e=0;e<b.dependencies.length;e++){var g=b.dependencies[e];g.valuePlaceholder.runtime=d[e],g.valuePlaceholder.name="importedStyles"+e}return f.IS_DART||!c._genConfig.useJit?s.interpretStatements(b.statements,b.stylesVar,new t.InterpretiveAppViewInstanceFactory):r.jitStatements(a+".css.js",b.statements,b.stylesVar)})},a.prototype._loadStylesheetDep=function(a){var b=""+a.moduleUrl+(a.isShimmed?".shim":""),c=this._styleCache.get(b);return f.isBlank(c)&&(c=this._xhr.get(a.moduleUrl),this._styleCache.set(b,c)),c},a.decorators=[{type:e.Injectable}],a.ctorParameters=[{type:o.CompileMetadataResolver},{type:n.DirectiveNormalizer},{type:m.TemplateParser},{type:k.StyleCompiler},{type:l.ViewCompiler},{type:u.XHR},{type:p.CompilerConfig}],a}();b.RuntimeCompiler=v;var w=function(){function a(){var a=this;this.viewFactory=null,this.proxyViewFactory=function(b,c,d){return a.viewFactory(b,c,d)}}return a.prototype.init=function(a){this.viewFactory=a},a}();return c.exports}),a.registerDynamic("32",[],!0,function(a,b,c){"use strict";var d=function(){function a(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b,a.reject=c})}return a}();b.PromiseCompleter=d;var e=function(){function a(){}return a.resolve=function(a){return Promise.resolve(a)},a.reject=function(a,b){return Promise.reject(a)},a.catchError=function(a,b){return a["catch"](b)},a.all=function(a){return 0==a.length?Promise.resolve([]):Promise.all(a)},a.then=function(a,b,c){return a.then(b,c)},a.wrap=function(a){return new Promise(function(b,c){try{b(a())}catch(d){c(d)}})},a.scheduleMicrotask=function(b){a.then(a.resolve(null),b,function(a){})},a.isPromise=function(a){return a instanceof Promise},a.completer=function(){return new d},a}();return b.PromiseWrapper=e,c.exports}),a.registerDynamic("29",["13","32","33","34","35","36"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("13"),f=a("32");b.PromiseWrapper=f.PromiseWrapper,b.PromiseCompleter=f.PromiseCompleter;var g=a("33"),h=a("34"),i=a("35"),j=a("36");b.Observable=j.Observable;var k=a("33");b.Subject=k.Subject;var l=function(){function a(){}return a.setTimeout=function(a,b){return e.global.setTimeout(a,b)},a.clearTimeout=function(a){e.global.clearTimeout(a)},a.setInterval=function(a,b){return e.global.setInterval(a,b)},a.clearInterval=function(a){e.global.clearInterval(a)},a}();b.TimerWrapper=l;var m=function(){function a(){}return a.subscribe=function(a,b,c,d){return void 0===d&&(d=function(){}),c="function"==typeof c&&c||e.noop,d="function"==typeof d&&d||e.noop,a.subscribe({next:b,error:c,complete:d})},a.isObservable=function(a){return!!a.subscribe},a.hasSubscribers=function(a){return a.observers.length>0},a.dispose=function(a){a.unsubscribe()},a.callNext=function(a,b){a.next(b)},a.callEmit=function(a,b){a.emit(b)},a.callError=function(a,b){a.error(b)},a.callComplete=function(a){a.complete()},a.fromPromise=function(a){return h.PromiseObservable.create(a)},a.toPromise=function(a){return i.toPromise.call(a)},a}();b.ObservableWrapper=m;var n=function(a){function b(b){void 0===b&&(b=!0),a.call(this),this._isAsync=b}return d(b,a),b.prototype.emit=function(b){a.prototype.next.call(this,b)},b.prototype.next=function(b){a.prototype.next.call(this,b)},b.prototype.subscribe=function(b,c,d){var e,f=function(a){return null},g=function(){return null};return b&&"object"==typeof b?(e=this._isAsync?function(a){setTimeout(function(){return b.next(a)})}:function(a){b.next(a)},b.error&&(f=this._isAsync?function(a){setTimeout(function(){return b.error(a)})}:function(a){b.error(a)}),b.complete&&(g=this._isAsync?function(){setTimeout(function(){return b.complete()})}:function(){b.complete()})):(e=this._isAsync?function(a){setTimeout(function(){return b(a)})}:function(a){b(a)},c&&(f=this._isAsync?function(a){setTimeout(function(){return c(a)})}:function(a){c(a)}),d&&(g=this._isAsync?function(){setTimeout(function(){return d()})}:function(){d()})),a.prototype.subscribe.call(this,e,f,g)},b}(g.Subject);return b.EventEmitter=n,c.exports}),a.registerDynamic("31",[],!0,function(a,b,c){"use strict";var d=function(){function a(){}return a.prototype.get=function(a){return null},a}();return b.XHR=d,c.exports}),a.registerDynamic("21",["13"],!0,function(a,b,c){"use strict";function d(a,b,c){void 0===c&&(c=null);var d=[];return b.forEach(function(b){var f=b.visit(a,c);e.isPresent(f)&&d.push(f)}),d}var e=a("13"),f=function(){function a(a,b){this.value=a,this.sourceSpan=b}return a.prototype.visit=function(a,b){return a.visitText(this,b)},a}();b.HtmlTextAst=f;var g=function(){function a(a,b,c,d,e){this.switchValue=a,this.type=b,this.cases=c,this.sourceSpan=d,this.switchValueSourceSpan=e}return a.prototype.visit=function(a,b){return a.visitExpansion(this,b)},a}();b.HtmlExpansionAst=g;var h=function(){function a(a,b,c,d,e){this.value=a,this.expression=b,this.sourceSpan=c,this.valueSourceSpan=d,this.expSourceSpan=e}return a.prototype.visit=function(a,b){return a.visitExpansionCase(this,b)},a}();b.HtmlExpansionCaseAst=h;var i=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitAttr(this,b)},a}();b.HtmlAttrAst=i;var j=function(){function a(a,b,c,d,e,f){this.name=a,this.attrs=b,this.children=c,this.sourceSpan=d,this.startSourceSpan=e,this.endSourceSpan=f}return a.prototype.visit=function(a,b){return a.visitElement(this,b)},a}();b.HtmlElementAst=j;var k=function(){function a(a,b){this.value=a,this.sourceSpan=b}return a.prototype.visit=function(a,b){return a.visitComment(this,b)},a}();return b.HtmlCommentAst=k,b.htmlVisitAll=d,c.exports}),a.registerDynamic("37",["13","e","16","1c","22"],!0,function(a,b,c){return function(c){"use strict";function d(a,b,c){return void 0===c&&(c=!1),new ia(new v.ParseSourceFile(a,b),c).tokenize()}function e(a){var b=a===B?"EOF":t.StringWrapper.fromCharCode(a);return'Unexpected character "'+b+'"'}function f(a){return'Unknown entity "'+a+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function g(a){return!h(a)||a===B}function h(a){return a>=C&&F>=a||a===fa}function i(a){return h(a)||a===T||a===M||a===K||a===H||a===S}function j(a){return(ba>a||a>da)&&(Z>a||a>aa)&&(N>a||a>P)}function k(a){return a==O||a==B||!o(a)}function l(a){return a==O||a==B||!n(a)}function m(a,b){return a===W&&b!=W}function n(a){return a>=ba&&da>=a||a>=Z&&aa>=a}function o(a){return a>=ba&&ca>=a||a>=Z&&$>=a||a>=N&&P>=a}function p(a,b){return q(a)==q(b)}function q(a){return a>=ba&&da>=a?a-ba+Z:a}function r(a){for(var b,c=[],d=0;d<a.length;d++){var e=a[d];t.isPresent(b)&&b.type==x.TEXT&&e.type==x.TEXT?(b.parts[0]+=e.parts[0],b.sourceSpan.end=e.sourceSpan.end):(b=e,c.push(b))}return c}var s=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},t=a("13"),u=a("e"),v=a("16"),w=a("1c");!function(a){a[a.TAG_OPEN_START=0]="TAG_OPEN_START",a[a.TAG_OPEN_END=1]="TAG_OPEN_END",a[a.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",a[a.TAG_CLOSE=3]="TAG_CLOSE",a[a.TEXT=4]="TEXT",a[a.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",a[a.RAW_TEXT=6]="RAW_TEXT",a[a.COMMENT_START=7]="COMMENT_START",a[a.COMMENT_END=8]="COMMENT_END",a[a.CDATA_START=9]="CDATA_START",a[a.CDATA_END=10]="CDATA_END",a[a.ATTR_NAME=11]="ATTR_NAME",a[a.ATTR_VALUE=12]="ATTR_VALUE",a[a.DOC_TYPE=13]="DOC_TYPE",a[a.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",a[a.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",a[a.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",a[a.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",a[a.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",a[a.EOF=19]="EOF"}(b.HtmlTokenType||(b.HtmlTokenType={}));var x=b.HtmlTokenType,y=function(){function a(a,b,c){this.type=a,this.parts=b,this.sourceSpan=c}return a}();b.HtmlToken=y;var z=function(a){function b(b,c,d){a.call(this,d,b),this.tokenType=c}return s(b,a),b}(v.ParseError);b.HtmlTokenError=z;var A=function(){function a(a,b){this.tokens=a,this.errors=b}return a}();b.HtmlTokenizeResult=A,b.tokenizeHtml=d;var B=0,C=9,D=10,E=13,F=32,G=33,H=34,I=35,J=38,K=39,L=45,M=47,N=48,O=59,P=57,Q=58,R=60,S=61,T=62,U=91,V=93,W=123,X=125,Y=44,Z=65,$=70,_=88,aa=90,ba=97,ca=102,da=122,ea=120,fa=160,ga=/\r\n?/g,ha=function(){function a(a){this.error=a}return a}(),ia=function(){function a(a,b){this.file=a,this.tokenizeExpansionForms=b,this.peek=-1,this.nextPeek=-1,this.index=-1,this.line=0,this.column=-1,this.expansionCaseStack=[],this.tokens=[],this.errors=[],this.input=a.content,this.length=a.content.length,this._advance()}return a.prototype._processCarriageReturns=function(a){return t.StringWrapper.replaceAll(a,ga,"\n")},a.prototype.tokenize=function(){for(;this.peek!==B;){var a=this._getLocation();try{this._attemptCharCode(R)?this._attemptCharCode(G)?this._attemptCharCode(U)?this._consumeCdata(a):this._attemptCharCode(L)?this._consumeComment(a):this._consumeDocType(a):this._attemptCharCode(M)?this._consumeTagClose(a):this._consumeTagOpen(a):m(this.peek,this.nextPeek)&&this.tokenizeExpansionForms?this._consumeExpansionFormStart():this.peek===S&&this.tokenizeExpansionForms?this._consumeExpansionCaseStart():this.peek===X&&this.isInExpansionCase()&&this.tokenizeExpansionForms?this._consumeExpansionCaseEnd():this.peek===X&&this.isInExpansionForm()&&this.tokenizeExpansionForms?this._consumeExpansionFormEnd():this._consumeText()}catch(b){if(!(b instanceof ha))throw b;this.errors.push(b.error)}}return this._beginToken(x.EOF),this._endToken([]),new A(r(this.tokens),this.errors)},a.prototype._getLocation=function(){return new v.ParseLocation(this.file,this.index,this.line,this.column)},a.prototype._getSpan=function(a,b){return t.isBlank(a)&&(a=this._getLocation()),t.isBlank(b)&&(b=this._getLocation()),new v.ParseSourceSpan(a,b)},a.prototype._beginToken=function(a,b){void 0===b&&(b=null),t.isBlank(b)&&(b=this._getLocation()),this.currentTokenStart=b,this.currentTokenType=a},a.prototype._endToken=function(a,b){void 0===b&&(b=null),t.isBlank(b)&&(b=this._getLocation());var c=new y(this.currentTokenType,a,new v.ParseSourceSpan(this.currentTokenStart,b));return this.tokens.push(c),this.currentTokenStart=null,this.currentTokenType=null,c},a.prototype._createError=function(a,b){var c=new z(a,this.currentTokenType,b);return this.currentTokenStart=null,this.currentTokenType=null,new ha(c)},a.prototype._advance=function(){if(this.index>=this.length)throw this._createError(e(B),this._getSpan());this.peek===D?(this.line++,this.column=0):this.peek!==D&&this.peek!==E&&this.column++,this.index++,this.peek=this.index>=this.length?B:t.StringWrapper.charCodeAt(this.input,this.index),this.nextPeek=this.index+1>=this.length?B:t.StringWrapper.charCodeAt(this.input,this.index+1)},a.prototype._attemptCharCode=function(a){return this.peek===a?(this._advance(),!0):!1},a.prototype._attemptCharCodeCaseInsensitive=function(a){return p(this.peek,a)?(this._advance(),!0):!1},a.prototype._requireCharCode=function(a){var b=this._getLocation();if(!this._attemptCharCode(a))throw this._createError(e(this.peek),this._getSpan(b,b))},a.prototype._attemptStr=function(a){for(var b=0;b<a.length;b++)if(!this._attemptCharCode(t.StringWrapper.charCodeAt(a,b)))return!1;return!0},a.prototype._attemptStrCaseInsensitive=function(a){
|
||
for(var b=0;b<a.length;b++)if(!this._attemptCharCodeCaseInsensitive(t.StringWrapper.charCodeAt(a,b)))return!1;return!0},a.prototype._requireStr=function(a){var b=this._getLocation();if(!this._attemptStr(a))throw this._createError(e(this.peek),this._getSpan(b))},a.prototype._attemptCharCodeUntilFn=function(a){for(;!a(this.peek);)this._advance()},a.prototype._requireCharCodeUntilFn=function(a,b){var c=this._getLocation();if(this._attemptCharCodeUntilFn(a),this.index-c.offset<b)throw this._createError(e(this.peek),this._getSpan(c,c))},a.prototype._attemptUntilChar=function(a){for(;this.peek!==a;)this._advance()},a.prototype._readChar=function(a){if(a&&this.peek===J)return this._decodeEntity();var b=this.index;return this._advance(),this.input[b]},a.prototype._decodeEntity=function(){var a=this._getLocation();if(this._advance(),!this._attemptCharCode(I)){var b=this._savePosition();if(this._attemptCharCodeUntilFn(l),this.peek!=O)return this._restorePosition(b),"&";this._advance();var c=this.input.substring(a.offset+1,this.index-1),d=w.NAMED_ENTITIES[c];if(t.isBlank(d))throw this._createError(f(c),this._getSpan(a));return d}var g=this._attemptCharCode(ea)||this._attemptCharCode(_),h=this._getLocation().offset;if(this._attemptCharCodeUntilFn(k),this.peek!=O)throw this._createError(e(this.peek),this._getSpan());this._advance();var i=this.input.substring(h,this.index-1);try{var j=t.NumberWrapper.parseInt(i,g?16:10);return t.StringWrapper.fromCharCode(j)}catch(m){var n=this.input.substring(a.offset+1,this.index-1);throw this._createError(f(n),this._getSpan(a))}},a.prototype._consumeRawText=function(a,b,c){var d,e=this._getLocation();this._beginToken(a?x.ESCAPABLE_RAW_TEXT:x.RAW_TEXT,e);for(var f=[];;){if(d=this._getLocation(),this._attemptCharCode(b)&&c())break;for(this.index>d.offset&&f.push(this.input.substring(d.offset,this.index));this.peek!==b;)f.push(this._readChar(a))}return this._endToken([this._processCarriageReturns(f.join(""))],d)},a.prototype._consumeComment=function(a){var b=this;this._beginToken(x.COMMENT_START,a),this._requireCharCode(L),this._endToken([]);var c=this._consumeRawText(!1,L,function(){return b._attemptStr("->")});this._beginToken(x.COMMENT_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeCdata=function(a){var b=this;this._beginToken(x.CDATA_START,a),this._requireStr("CDATA["),this._endToken([]);var c=this._consumeRawText(!1,V,function(){return b._attemptStr("]>")});this._beginToken(x.CDATA_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeDocType=function(a){this._beginToken(x.DOC_TYPE,a),this._attemptUntilChar(T),this._advance(),this._endToken([this.input.substring(a.offset+2,this.index-1)])},a.prototype._consumePrefixAndName=function(){for(var a=this.index,b=null;this.peek!==Q&&!j(this.peek);)this._advance();var c;this.peek===Q?(this._advance(),b=this.input.substring(a,this.index-1),c=this.index):c=a,this._requireCharCodeUntilFn(i,this.index===c?1:0);var d=this.input.substring(c,this.index);return[b,d]},a.prototype._consumeTagOpen=function(a){var b,c=this._savePosition();try{if(!n(this.peek))throw this._createError(e(this.peek),this._getSpan());var d=this.index;for(this._consumeTagOpenStart(a),b=this.input.substring(d,this.index).toLowerCase(),this._attemptCharCodeUntilFn(g);this.peek!==M&&this.peek!==T;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(g),this._attemptCharCode(S)&&(this._attemptCharCodeUntilFn(g),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(g);this._consumeTagOpenEnd()}catch(f){if(f instanceof ha)return this._restorePosition(c),this._beginToken(x.TEXT,a),void this._endToken(["<"]);throw f}var h=w.getHtmlTagDefinition(b).contentType;h===w.HtmlTagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(b,!1):h===w.HtmlTagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(b,!0)},a.prototype._consumeRawTextWithTagClose=function(a,b){var c=this,d=this._consumeRawText(b,R,function(){return c._attemptCharCode(M)?(c._attemptCharCodeUntilFn(g),c._attemptStrCaseInsensitive(a)?(c._attemptCharCodeUntilFn(g),!!c._attemptCharCode(T)):!1):!1});this._beginToken(x.TAG_CLOSE,d.sourceSpan.end),this._endToken([null,a])},a.prototype._consumeTagOpenStart=function(a){this._beginToken(x.TAG_OPEN_START,a);var b=this._consumePrefixAndName();this._endToken(b)},a.prototype._consumeAttributeName=function(){this._beginToken(x.ATTR_NAME);var a=this._consumePrefixAndName();this._endToken(a)},a.prototype._consumeAttributeValue=function(){this._beginToken(x.ATTR_VALUE);var a;if(this.peek===K||this.peek===H){var b=this.peek;this._advance();for(var c=[];this.peek!==b;)c.push(this._readChar(!0));a=c.join(""),this._advance()}else{var d=this.index;this._requireCharCodeUntilFn(i,1),a=this.input.substring(d,this.index)}this._endToken([this._processCarriageReturns(a)])},a.prototype._consumeTagOpenEnd=function(){var a=this._attemptCharCode(M)?x.TAG_OPEN_END_VOID:x.TAG_OPEN_END;this._beginToken(a),this._requireCharCode(T),this._endToken([])},a.prototype._consumeTagClose=function(a){this._beginToken(x.TAG_CLOSE,a),this._attemptCharCodeUntilFn(g);var b;b=this._consumePrefixAndName(),this._attemptCharCodeUntilFn(g),this._requireCharCode(T),this._endToken(b)},a.prototype._consumeExpansionFormStart=function(){this._beginToken(x.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(W),this._endToken([]),this._beginToken(x.RAW_TEXT,this._getLocation());var a=this._readUntil(Y);this._endToken([a],this._getLocation()),this._requireCharCode(Y),this._attemptCharCodeUntilFn(g),this._beginToken(x.RAW_TEXT,this._getLocation());var b=this._readUntil(Y);this._endToken([b],this._getLocation()),this._requireCharCode(Y),this._attemptCharCodeUntilFn(g),this.expansionCaseStack.push(x.EXPANSION_FORM_START)},a.prototype._consumeExpansionCaseStart=function(){this._requireCharCode(S),this._beginToken(x.EXPANSION_CASE_VALUE,this._getLocation());var a=this._readUntil(W).trim();this._endToken([a],this._getLocation()),this._attemptCharCodeUntilFn(g),this._beginToken(x.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(W),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(g),this.expansionCaseStack.push(x.EXPANSION_CASE_EXP_START)},a.prototype._consumeExpansionCaseEnd=function(){this._beginToken(x.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(X),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(g),this.expansionCaseStack.pop()},a.prototype._consumeExpansionFormEnd=function(){this._beginToken(x.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(X),this._endToken([]),this.expansionCaseStack.pop()},a.prototype._consumeText=function(){var a=this._getLocation();this._beginToken(x.TEXT,a);var b=[],c=!1;for(this.peek===W&&this.nextPeek===W?(b.push(this._readChar(!0)),b.push(this._readChar(!0)),c=!0):b.push(this._readChar(!0));!this.isTextEnd(c);)this.peek===W&&this.nextPeek===W?(b.push(this._readChar(!0)),b.push(this._readChar(!0)),c=!0):this.peek===X&&this.nextPeek===X&&c?(b.push(this._readChar(!0)),b.push(this._readChar(!0)),c=!1):b.push(this._readChar(!0));this._endToken([this._processCarriageReturns(b.join(""))])},a.prototype.isTextEnd=function(a){if(this.peek===R||this.peek===B)return!0;if(this.tokenizeExpansionForms){if(m(this.peek,this.nextPeek))return!0;if(this.peek===X&&!a&&(this.isInExpansionCase()||this.isInExpansionForm()))return!0}return!1},a.prototype._savePosition=function(){return[this.peek,this.index,this.column,this.line,this.tokens.length]},a.prototype._readUntil=function(a){var b=this.index;return this._attemptUntilChar(a),this.input.substring(b,this.index)},a.prototype._restorePosition=function(a){this.peek=a[0],this.index=a[1],this.column=a[2],this.line=a[3];var b=a[4];b<this.tokens.length&&(this.tokens=u.ListWrapper.slice(this.tokens,0,b))},a.prototype.isInExpansionCase=function(){return this.expansionCaseStack.length>0&&this.expansionCaseStack[this.expansionCaseStack.length-1]===x.EXPANSION_CASE_EXP_START},a.prototype.isInExpansionForm=function(){return this.expansionCaseStack.length>0&&this.expansionCaseStack[this.expansionCaseStack.length-1]===x.EXPANSION_FORM_START},a}()}(a("22")),c.exports}),a.registerDynamic("16",[],!0,function(a,b,c){"use strict";var d=function(){function a(a,b,c,d){this.file=a,this.offset=b,this.line=c,this.col=d}return a.prototype.toString=function(){return this.file.url+"@"+this.line+":"+this.col},a}();b.ParseLocation=d;var e=function(){function a(a,b){this.content=a,this.url=b}return a}();b.ParseSourceFile=e;var f=function(){function a(a,b){this.start=a,this.end=b}return a.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},a}();b.ParseSourceSpan=f,function(a){a[a.WARNING=0]="WARNING",a[a.FATAL=1]="FATAL"}(b.ParseErrorLevel||(b.ParseErrorLevel={}));var g=b.ParseErrorLevel,h=function(){function a(a,b,c){void 0===c&&(c=g.FATAL),this.span=a,this.msg=b,this.level=c}return a.prototype.toString=function(){var a=this.span.start.file.content,b=this.span.start.offset;b>a.length-1&&(b=a.length-1);for(var c=b,d=0,e=0;100>d&&b>0&&(b--,d++,"\n"!=a[b]||3!=++e););for(d=0,e=0;100>d&&c<a.length-1&&(c++,d++,"\n"!=a[c]||3!=++e););var f=a.substring(b,this.span.start.offset)+"[ERROR ->]"+a.substring(this.span.start.offset,c+1);return this.msg+' ("'+f+'"): '+this.span.start},a}();return b.ParseError=h,c.exports}),a.registerDynamic("1b",["11","13","e","21","37","16","1c"],!0,function(a,b,c){"use strict";function d(a,b,c){return h.isBlank(a)&&(a=m.getHtmlTagDefinition(b).implicitNamespacePrefix,h.isBlank(a)&&h.isPresent(c)&&(a=m.getNsPrefix(c.name))),m.mergeNsAndName(a,b)}function e(a,b){return a.length>0&&a[a.length-1]===b}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("11"),h=a("13"),i=a("e"),j=a("21"),k=a("37"),l=a("16"),m=a("1c"),n=function(a){function b(b,c,d){a.call(this,c,d),this.elementName=b}return f(b,a),b.create=function(a,c,d){return new b(a,c,d)},b}(l.ParseError);b.HtmlTreeError=n;var o=function(){function a(a,b){this.rootNodes=a,this.errors=b}return a}();b.HtmlParseTreeResult=o;var p=function(){function a(){}return a.prototype.parse=function(a,b,c){void 0===c&&(c=!1);var d=k.tokenizeHtml(a,b,c),e=new q(d.tokens).build();return new o(e.rootNodes,d.errors.concat(e.errors))},a.decorators=[{type:g.Injectable}],a}();b.HtmlParser=p;var q=function(){function a(a){this.tokens=a,this.index=-1,this.rootNodes=[],this.errors=[],this.elementStack=[],this._advance()}return a.prototype.build=function(){for(;this.peek.type!==k.HtmlTokenType.EOF;)this.peek.type===k.HtmlTokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this.peek.type===k.HtmlTokenType.TAG_CLOSE?this._consumeEndTag(this._advance()):this.peek.type===k.HtmlTokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this.peek.type===k.HtmlTokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this.peek.type===k.HtmlTokenType.TEXT||this.peek.type===k.HtmlTokenType.RAW_TEXT||this.peek.type===k.HtmlTokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this.peek.type===k.HtmlTokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new o(this.rootNodes,this.errors)},a.prototype._advance=function(){var a=this.peek;return this.index<this.tokens.length-1&&this.index++,this.peek=this.tokens[this.index],a},a.prototype._advanceIf=function(a){return this.peek.type===a?this._advance():null},a.prototype._consumeCdata=function(a){this._consumeText(this._advance()),this._advanceIf(k.HtmlTokenType.CDATA_END)},a.prototype._consumeComment=function(a){var b=this._advanceIf(k.HtmlTokenType.RAW_TEXT);this._advanceIf(k.HtmlTokenType.COMMENT_END);var c=h.isPresent(b)?b.parts[0].trim():null;this._addToParent(new j.HtmlCommentAst(c,a.sourceSpan))},a.prototype._consumeExpansion=function(a){for(var b=this._advance(),c=this._advance(),d=[];this.peek.type===k.HtmlTokenType.EXPANSION_CASE_VALUE;){var e=this._parseExpansionCase();if(h.isBlank(e))return;d.push(e)}if(this.peek.type!==k.HtmlTokenType.EXPANSION_FORM_END)return void this.errors.push(n.create(null,this.peek.sourceSpan,"Invalid expansion form. Missing '}'."));this._advance();var f=new l.ParseSourceSpan(a.sourceSpan.start,this.peek.sourceSpan.end);this._addToParent(new j.HtmlExpansionAst(b.parts[0],c.parts[0],d,f,b.sourceSpan))},a.prototype._parseExpansionCase=function(){var b=this._advance();if(this.peek.type!==k.HtmlTokenType.EXPANSION_CASE_EXP_START)return this.errors.push(n.create(null,this.peek.sourceSpan,"Invalid expansion form. Missing '{'.,")),null;var c=this._advance(),d=this._collectExpansionExpTokens(c);if(h.isBlank(d))return null;var e=this._advance();d.push(new k.HtmlToken(k.HtmlTokenType.EOF,[],e.sourceSpan));var f=new a(d).build();if(f.errors.length>0)return this.errors=this.errors.concat(f.errors),null;var g=new l.ParseSourceSpan(b.sourceSpan.start,e.sourceSpan.end),i=new l.ParseSourceSpan(c.sourceSpan.start,e.sourceSpan.end);return new j.HtmlExpansionCaseAst(b.parts[0],f.rootNodes,g,b.sourceSpan,i)},a.prototype._collectExpansionExpTokens=function(a){for(var b=[],c=[k.HtmlTokenType.EXPANSION_CASE_EXP_START];;){if(this.peek.type!==k.HtmlTokenType.EXPANSION_FORM_START&&this.peek.type!==k.HtmlTokenType.EXPANSION_CASE_EXP_START||c.push(this.peek.type),this.peek.type===k.HtmlTokenType.EXPANSION_CASE_EXP_END){if(!e(c,k.HtmlTokenType.EXPANSION_CASE_EXP_START))return this.errors.push(n.create(null,a.sourceSpan,"Invalid expansion form. Missing '}'.")),null;if(c.pop(),0==c.length)return b}if(this.peek.type===k.HtmlTokenType.EXPANSION_FORM_END){if(!e(c,k.HtmlTokenType.EXPANSION_FORM_START))return this.errors.push(n.create(null,a.sourceSpan,"Invalid expansion form. Missing '}'.")),null;c.pop()}if(this.peek.type===k.HtmlTokenType.EOF)return this.errors.push(n.create(null,a.sourceSpan,"Invalid expansion form. Missing '}'.")),null;b.push(this._advance())}},a.prototype._consumeText=function(a){var b=a.parts[0];if(b.length>0&&"\n"==b[0]){var c=this._getParentElement();h.isPresent(c)&&0==c.children.length&&m.getHtmlTagDefinition(c.name).ignoreFirstLf&&(b=b.substring(1))}b.length>0&&this._addToParent(new j.HtmlTextAst(b,a.sourceSpan))},a.prototype._closeVoidElement=function(){if(this.elementStack.length>0){var a=i.ListWrapper.last(this.elementStack);m.getHtmlTagDefinition(a.name).isVoid&&this.elementStack.pop()}},a.prototype._consumeStartTag=function(a){for(var b=a.parts[0],c=a.parts[1],e=[];this.peek.type===k.HtmlTokenType.ATTR_NAME;)e.push(this._consumeAttr(this._advance()));var f=d(b,c,this._getParentElement()),g=!1;this.peek.type===k.HtmlTokenType.TAG_OPEN_END_VOID?(this._advance(),g=!0,null!=m.getNsPrefix(f)||m.getHtmlTagDefinition(f).isVoid||this.errors.push(n.create(f,a.sourceSpan,'Only void and foreign elements can be self closed "'+a.parts[1]+'"'))):this.peek.type===k.HtmlTokenType.TAG_OPEN_END&&(this._advance(),g=!1);var h=this.peek.sourceSpan.start,i=new l.ParseSourceSpan(a.sourceSpan.start,h),o=new j.HtmlElementAst(f,e,[],i,i,null);this._pushElement(o),g&&(this._popElement(f),o.endSourceSpan=i)},a.prototype._pushElement=function(a){if(this.elementStack.length>0){var b=i.ListWrapper.last(this.elementStack);m.getHtmlTagDefinition(b.name).isClosedByChild(a.name)&&this.elementStack.pop()}var c=m.getHtmlTagDefinition(a.name),b=this._getParentElement();if(c.requireExtraParent(h.isPresent(b)?b.name:null)){var d=new j.HtmlElementAst(c.parentToAdd,[],[a],a.sourceSpan,a.startSourceSpan,a.endSourceSpan);this._addToParent(d),this.elementStack.push(d),this.elementStack.push(a)}else this._addToParent(a),this.elementStack.push(a)},a.prototype._consumeEndTag=function(a){var b=d(a.parts[0],a.parts[1],this._getParentElement());this._getParentElement().endSourceSpan=a.sourceSpan,m.getHtmlTagDefinition(b).isVoid?this.errors.push(n.create(b,a.sourceSpan,'Void elements do not have end tags "'+a.parts[1]+'"')):this._popElement(b)||this.errors.push(n.create(b,a.sourceSpan,'Unexpected closing tag "'+a.parts[1]+'"'))},a.prototype._popElement=function(a){for(var b=this.elementStack.length-1;b>=0;b--){var c=this.elementStack[b];if(c.name==a)return i.ListWrapper.splice(this.elementStack,b,this.elementStack.length-b),!0;if(!m.getHtmlTagDefinition(c.name).closedByParent)return!1}return!1},a.prototype._consumeAttr=function(a){var b=m.mergeNsAndName(a.parts[0],a.parts[1]),c=a.sourceSpan.end,d="";if(this.peek.type===k.HtmlTokenType.ATTR_VALUE){var e=this._advance();d=e.parts[0],c=e.sourceSpan.end}return new j.HtmlAttrAst(b,d,new l.ParseSourceSpan(a.sourceSpan.start,c))},a.prototype._getParentElement=function(){return this.elementStack.length>0?i.ListWrapper.last(this.elementStack):null},a.prototype._addToParent=function(a){var b=this._getParentElement();h.isPresent(b)?b.children.push(a):this.rootNodes.push(a)},a}();return c.exports}),a.registerDynamic("1c",["13"],!0,function(a,b,c){"use strict";function d(a){var b=k[a.toLowerCase()];return h.isPresent(b)?b:l}function e(a){if("@"!=a[0])return[null,a];var b=h.RegExpWrapper.firstMatch(m,a);return[b[1],b[2]]}function f(a){return e(a)[0]}function g(a,b){return h.isPresent(a)?"@"+a+":"+b:b}var h=a("13");b.NAMED_ENTITIES={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"",zwnj:""},function(a){a[a.RAW_TEXT=0]="RAW_TEXT",a[a.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",a[a.PARSABLE_DATA=2]="PARSABLE_DATA"}(b.HtmlTagContentType||(b.HtmlTagContentType={}));var i=b.HtmlTagContentType,j=function(){function a(a){var b=this,c=void 0===a?{}:a,d=c.closedByChildren,e=c.requiredParents,f=c.implicitNamespacePrefix,g=c.contentType,j=c.closedByParent,k=c.isVoid,l=c.ignoreFirstLf;this.closedByChildren={},this.closedByParent=!1,h.isPresent(d)&&d.length>0&&d.forEach(function(a){return b.closedByChildren[a]=!0}),this.isVoid=h.normalizeBool(k),this.closedByParent=h.normalizeBool(j)||this.isVoid,h.isPresent(e)&&e.length>0&&(this.requiredParents={},this.parentToAdd=e[0],e.forEach(function(a){return b.requiredParents[a]=!0})),this.implicitNamespacePrefix=f,this.contentType=h.isPresent(g)?g:i.PARSABLE_DATA,this.ignoreFirstLf=h.normalizeBool(l)}return a.prototype.requireExtraParent=function(a){if(h.isBlank(this.requiredParents))return!1;if(h.isBlank(a))return!0;var b=a.toLowerCase();return 1!=this.requiredParents[b]&&"template"!=b},a.prototype.isClosedByChild=function(a){return this.isVoid||h.normalizeBool(this.closedByChildren[a.toLowerCase()])},a}();b.HtmlTagDefinition=j;var k={base:new j({isVoid:!0}),meta:new j({isVoid:!0}),area:new j({isVoid:!0}),embed:new j({isVoid:!0}),link:new j({isVoid:!0}),img:new j({isVoid:!0}),input:new j({isVoid:!0}),param:new j({isVoid:!0}),hr:new j({isVoid:!0}),br:new j({isVoid:!0}),source:new j({isVoid:!0}),track:new j({isVoid:!0}),wbr:new j({isVoid:!0}),p:new j({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new j({closedByChildren:["tbody","tfoot"]}),tbody:new j({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new j({closedByChildren:["tbody"],closedByParent:!0}),tr:new j({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new j({closedByChildren:["td","th"],closedByParent:!0}),th:new j({closedByChildren:["td","th"],closedByParent:!0}),col:new j({requiredParents:["colgroup"],isVoid:!0}),svg:new j({implicitNamespacePrefix:"svg"}),math:new j({implicitNamespacePrefix:"math"}),li:new j({closedByChildren:["li"],closedByParent:!0}),dt:new j({closedByChildren:["dt","dd"]}),dd:new j({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new j({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new j({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new j({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new j({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new j({closedByChildren:["optgroup"],closedByParent:!0}),option:new j({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new j({ignoreFirstLf:!0}),listing:new j({ignoreFirstLf:!0}),style:new j({contentType:i.RAW_TEXT}),script:new j({contentType:i.RAW_TEXT}),title:new j({contentType:i.ESCAPABLE_RAW_TEXT}),textarea:new j({contentType:i.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},l=new j;b.getHtmlTagDefinition=d;var m=/^@([^:]+):(.+)/g;return b.splitNsName=e,b.getNsPrefix=f,b.mergeNsAndName=g,c.exports}),a.registerDynamic("1f",["13","1c"],!0,function(a,b,c){"use strict";function d(a){var b=null,c=null,d=null,f=!1,t=null;a.attrs.forEach(function(a){var e=a.name.toLowerCase();e==h?b=a.value:e==l?c=a.value:e==k?d=a.value:a.name==p?f=!0:a.name==q&&a.value.length>0&&(t=a.value)}),b=e(b);var u=a.name.toLowerCase(),v=r.OTHER;return g.splitNsName(u)[1]==i?v=r.NG_CONTENT:u==n?v=r.STYLE:u==o?v=r.SCRIPT:u==j&&d==m&&(v=r.STYLESHEET),new s(v,b,c,f,t)}function e(a){return f.isBlank(a)||0===a.length?"*":a}var f=a("13"),g=a("1c"),h="select",i="ng-content",j="link",k="rel",l="href",m="stylesheet",n="style",o="script",p="ngNonBindable",q="ngProjectAs";b.preparseElement=d,function(a){a[a.NG_CONTENT=0]="NG_CONTENT",a[a.STYLE=1]="STYLE",a[a.STYLESHEET=2]="STYLESHEET",a[a.SCRIPT=3]="SCRIPT",a[a.OTHER=4]="OTHER"}(b.PreparsedElementType||(b.PreparsedElementType={}));var r=b.PreparsedElementType,s=function(){function a(a,b,c,d,e){this.type=a,this.selectAttr=b,this.hrefAttr=c,this.nonBindable=d,this.projectAs=e}return a}();return b.PreparsedElement=s,c.exports}),a.registerDynamic("2e",["11","13","d","29","c","31","38","20","21","1b","1f"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("13"),f=a("d"),g=a("29"),h=a("c"),i=a("31"),j=a("38"),k=a("20"),l=a("21"),m=a("1b"),n=a("1f"),o=function(){function a(a,b,c){this._xhr=a,this._urlResolver=b,this._htmlParser=c}return a.prototype.normalizeDirective=function(a){return a.isComponent?this.normalizeTemplate(a.type,a.template).then(function(b){return new h.CompileDirectiveMetadata({type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,lifecycleHooks:a.lifecycleHooks,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,template:b})}):g.PromiseWrapper.resolve(a)},a.prototype.normalizeTemplate=function(a,b){var c=this;if(e.isPresent(b.template))return g.PromiseWrapper.resolve(this.normalizeLoadedTemplate(a,b,b.template,a.moduleUrl));if(e.isPresent(b.templateUrl)){var d=this._urlResolver.resolve(a.moduleUrl,b.templateUrl);return this._xhr.get(d).then(function(e){return c.normalizeLoadedTemplate(a,b,e,d)})}throw new f.BaseException("No template specified for component "+a.name)},a.prototype.normalizeLoadedTemplate=function(a,b,c,e){var g=this,i=this._htmlParser.parse(c,a.name);if(i.errors.length>0){var j=i.errors.join("\n");throw new f.BaseException("Template parse errors:\n"+j)}var m=new p;l.htmlVisitAll(m,i.rootNodes);var n=b.styles.concat(m.styles),o=m.styleUrls.filter(k.isStyleUrlResolvable).map(function(a){return g._urlResolver.resolve(e,a)}).concat(b.styleUrls.filter(k.isStyleUrlResolvable).map(function(b){return g._urlResolver.resolve(a.moduleUrl,b)})),q=n.map(function(a){var b=k.extractStyleUrls(g._urlResolver,e,a);return b.styleUrls.forEach(function(a){return o.push(a)}),b.style}),r=b.encapsulation;return r===d.ViewEncapsulation.Emulated&&0===q.length&&0===o.length&&(r=d.ViewEncapsulation.None),new h.CompileTemplateMetadata({encapsulation:r,template:c,templateUrl:e,styles:q,styleUrls:o,ngContentSelectors:m.ngContentSelectors})},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:i.XHR},{type:j.UrlResolver},{type:m.HtmlParser}],a}();b.DirectiveNormalizer=o;var p=function(){function a(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return a.prototype.visitElement=function(a,b){var c=n.preparseElement(a);switch(c.type){case n.PreparsedElementType.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(c.selectAttr);break;case n.PreparsedElementType.STYLE:var d="";a.children.forEach(function(a){a instanceof l.HtmlTextAst&&(d+=a.value)}),this.styles.push(d);break;case n.PreparsedElementType.STYLESHEET:this.styleUrls.push(c.hrefAttr)}return c.nonBindable&&this.ngNonBindableStackCount++,l.htmlVisitAll(this,a.children),c.nonBindable&&this.ngNonBindableStackCount--,null},a.prototype.visitComment=function(a,b){return null},a.prototype.visitAttr=function(a,b){return null},a.prototype.visitText=function(a,b){return null},a.prototype.visitExpansion=function(a,b){return null},a.prototype.visitExpansionCase=function(a,b){return null},a}();return c.exports}),a.registerDynamic("39",["11","18","13","d","e"],!0,function(a,b,c){"use strict";function d(a){return a instanceof e.DirectiveMetadata}var e=a("11"),f=a("18"),g=a("13"),h=a("d"),i=a("e"),j=function(){function a(a){g.isPresent(a)?this._reflector=a:this._reflector=e.reflector}return a.prototype.resolve=function(a){var b=this._reflector.annotations(e.resolveForwardRef(a));if(g.isPresent(b)){var c=b.find(d);if(g.isPresent(c)){var f=this._reflector.propMetadata(a);return this._mergeWithPropertyMetadata(c,f,a)}}throw new h.BaseException("No Directive annotation found on "+g.stringify(a))},a.prototype._mergeWithPropertyMetadata=function(a,b,c){var d=[],f=[],h={},j={};return i.StringMapWrapper.forEach(b,function(a,b){a.forEach(function(a){if(a instanceof e.InputMetadata&&(g.isPresent(a.bindingPropertyName)?d.push(b+": "+a.bindingPropertyName):d.push(b)),a instanceof e.OutputMetadata&&(g.isPresent(a.bindingPropertyName)?f.push(b+": "+a.bindingPropertyName):f.push(b)),a instanceof e.HostBindingMetadata&&(g.isPresent(a.hostPropertyName)?h["["+a.hostPropertyName+"]"]=b:h["["+b+"]"]=b),a instanceof e.HostListenerMetadata){var c=g.isPresent(a.args)?a.args.join(", "):"";h["("+a.eventName+")"]=b+"("+c+")"}a instanceof e.ContentChildrenMetadata&&(j[b]=a),a instanceof e.ViewChildrenMetadata&&(j[b]=a),a instanceof e.ContentChildMetadata&&(j[b]=a),a instanceof e.ViewChildMetadata&&(j[b]=a)})}),this._merge(a,d,f,h,j,c)},a.prototype._merge=function(a,b,c,d,f,j){var k,l=g.isPresent(a.inputs)?i.ListWrapper.concat(a.inputs,b):b;g.isPresent(a.outputs)?(a.outputs.forEach(function(a){if(i.ListWrapper.contains(c,a))throw new h.BaseException("Output event '"+a+"' defined multiple times in '"+g.stringify(j)+"'")}),k=i.ListWrapper.concat(a.outputs,c)):k=c;var m=g.isPresent(a.host)?i.StringMapWrapper.merge(a.host,d):d,n=g.isPresent(a.queries)?i.StringMapWrapper.merge(a.queries,f):f;return a instanceof e.ComponentMetadata?new e.ComponentMetadata({selector:a.selector,inputs:l,outputs:k,host:m,exportAs:a.exportAs,moduleId:a.moduleId,queries:n,changeDetection:a.changeDetection,providers:a.providers,viewProviders:a.viewProviders}):new e.DirectiveMetadata({selector:a.selector,inputs:l,outputs:k,host:m,exportAs:a.exportAs,queries:n,providers:a.providers})},a.decorators=[{type:e.Injectable}],a.ctorParameters=[{type:f.ReflectorReader}],a}();return b.DirectiveResolver=j,b.CODEGEN_DIRECTIVE_RESOLVER=new j(e.reflector),c.exports}),a.registerDynamic("3a",["11","18","13","d"],!0,function(a,b,c){"use strict";function d(a){return a instanceof e.PipeMetadata}var e=a("11"),f=a("18"),g=a("13"),h=a("d"),i=function(){function a(a){g.isPresent(a)?this._reflector=a:this._reflector=e.reflector}return a.prototype.resolve=function(a){var b=this._reflector.annotations(e.resolveForwardRef(a));if(g.isPresent(b)){var c=b.find(d);if(g.isPresent(c))return c}throw new h.BaseException("No Pipe decorator found on "+g.stringify(a))},a.decorators=[{type:e.Injectable}],a.ctorParameters=[{type:f.ReflectorReader}],a}();return b.PipeResolver=i,b.CODEGEN_PIPE_RESOLVER=new i(e.reflector),c.exports}),a.registerDynamic("3b",["11","18","13","d","e"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("18"),f=a("13"),g=a("d"),h=a("e"),i=function(){function a(a){this._cache=new h.Map,f.isPresent(a)?this._reflector=a:this._reflector=d.reflector}return a.prototype.resolve=function(a){var b=this._cache.get(a);return f.isBlank(b)&&(b=this._resolve(a),this._cache.set(a,b)),b},a.prototype._resolve=function(a){var b,c;if(this._reflector.annotations(a).forEach(function(a){a instanceof d.ViewMetadata&&(c=a),a instanceof d.ComponentMetadata&&(b=a)}),!f.isPresent(b)){if(f.isBlank(c))throw new g.BaseException("Could not compile '"+f.stringify(a)+"' because it is not a component.");return c}if(f.isBlank(b.template)&&f.isBlank(b.templateUrl)&&f.isBlank(c))throw new g.BaseException("Component '"+f.stringify(a)+"' must have either 'template' or 'templateUrl' set.");if(f.isPresent(b.template)&&f.isPresent(c))this._throwMixingViewAndComponent("template",a);else if(f.isPresent(b.templateUrl)&&f.isPresent(c))this._throwMixingViewAndComponent("templateUrl",a);else if(f.isPresent(b.directives)&&f.isPresent(c))this._throwMixingViewAndComponent("directives",a);else if(f.isPresent(b.pipes)&&f.isPresent(c))this._throwMixingViewAndComponent("pipes",a);else if(f.isPresent(b.encapsulation)&&f.isPresent(c))this._throwMixingViewAndComponent("encapsulation",a);else if(f.isPresent(b.styles)&&f.isPresent(c))this._throwMixingViewAndComponent("styles",a);else{if(!f.isPresent(b.styleUrls)||!f.isPresent(c))return f.isPresent(c)?c:new d.ViewMetadata({templateUrl:b.templateUrl,template:b.template,directives:b.directives,
|
||
pipes:b.pipes,encapsulation:b.encapsulation,styles:b.styles,styleUrls:b.styleUrls});this._throwMixingViewAndComponent("styleUrls",a)}return null},a.prototype._throwMixingViewAndComponent=function(a,b){throw new g.BaseException("Component '"+f.stringify(b)+"' cannot have both '"+a+"' and '@View' set at the same time\"")},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:e.ReflectorReader}],a}();return b.ViewResolver=i,c.exports}),a.registerDynamic("3c",["18","13"],!0,function(a,b,c){"use strict";function d(a,b){if(!(b instanceof f.Type))return!1;var c=b.prototype;switch(a){case e.LifecycleHooks.AfterContentInit:return!!c.ngAfterContentInit;case e.LifecycleHooks.AfterContentChecked:return!!c.ngAfterContentChecked;case e.LifecycleHooks.AfterViewInit:return!!c.ngAfterViewInit;case e.LifecycleHooks.AfterViewChecked:return!!c.ngAfterViewChecked;case e.LifecycleHooks.OnChanges:return!!c.ngOnChanges;case e.LifecycleHooks.DoCheck:return!!c.ngDoCheck;case e.LifecycleHooks.OnDestroy:return!!c.ngOnDestroy;case e.LifecycleHooks.OnInit:return!!c.ngOnInit;default:return!1}}var e=a("18"),f=a("13");return b.hasLifecycleHook=d,c.exports}),a.registerDynamic("3d",["13","d"],!0,function(a,b,c){"use strict";function d(a,b){if(e.assertionsEnabled()&&!e.isBlank(b)){if(!e.isArray(b))throw new f.BaseException("Expected '"+a+"' to be an array of strings.");for(var c=0;c<b.length;c+=1)if(!e.isString(b[c]))throw new f.BaseException("Expected '"+a+"' to be an array of strings.")}}var e=a("13"),f=a("d");return b.assertArrayOfStrings=d,c.exports}),a.registerDynamic("2f",["11","18","13","e","d","c","39","3a","3b","3c","10","3d","38"],!0,function(a,b,c){"use strict";function d(a,b){var c=[];return o.isPresent(b)&&f(b,c),o.isPresent(a.directives)&&f(a.directives,c),c}function e(a,b){var c=[];return o.isPresent(b)&&f(b,c),o.isPresent(a.pipes)&&f(a.pipes,c),c}function f(a,b){for(var c=0;c<a.length;c++){var d=m.resolveForwardRef(a[c]);o.isArray(d)?f(d,b):b.push(d)}}function g(a){return o.isStringMap(a)&&o.isPresent(a.name)&&o.isPresent(a.filePath)}function h(a){return g(a)||a instanceof o.Type}function i(a){return g(a)?a.filePath:null}function j(a,b,c){if(g(b))return i(b);if(o.isPresent(c.moduleId)){var d=c.moduleId,e=y.getUrlScheme(d);return o.isPresent(e)&&e.length>0?d:"package:"+d+w.MODULE_SUFFIX}return a.importUri(b)}function k(a){return w.visitValue(a,new B,null)}var l=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},m=a("11"),n=a("18"),o=a("13"),p=a("e"),q=a("d"),r=a("c"),s=a("39"),t=a("3a"),u=a("3b"),v=a("3c"),w=a("10"),x=a("3d"),y=a("38"),z=a("18"),A=function(){function a(a,b,c,d,e,f){this._directiveResolver=a,this._pipeResolver=b,this._viewResolver=c,this._platformDirectives=d,this._platformPipes=e,this._directiveCache=new Map,this._pipeCache=new Map,this._anonymousTypes=new Map,this._anonymousTypeIndex=0,o.isPresent(f)?this._reflector=f:this._reflector=m.reflector}return a.prototype.sanitizeTokenName=function(a){var b=o.stringify(a);if(b.indexOf("(")>=0){var c=this._anonymousTypes.get(a);o.isBlank(c)&&(this._anonymousTypes.set(a,this._anonymousTypeIndex++),c=this._anonymousTypes.get(a)),b="anonymous_token_"+c+"_"}return w.sanitizeIdentifier(b)},a.prototype.getDirectiveMetadata=function(a){var b=this._directiveCache.get(a);if(o.isBlank(b)){var c=this._directiveResolver.resolve(a),d=null,e=null,f=[],g=i(a);if(c instanceof m.ComponentMetadata){x.assertArrayOfStrings("styles",c.styles);var h=c,k=this._viewResolver.resolve(a);x.assertArrayOfStrings("styles",k.styles),d=new r.CompileTemplateMetadata({encapsulation:k.encapsulation,template:k.template,templateUrl:k.templateUrl,styles:k.styles,styleUrls:k.styleUrls}),e=h.changeDetection,o.isPresent(c.viewProviders)&&(f=this.getProvidersMetadata(c.viewProviders)),g=j(this._reflector,a,h)}var l=[];o.isPresent(c.providers)&&(l=this.getProvidersMetadata(c.providers));var p=[],q=[];o.isPresent(c.queries)&&(p=this.getQueriesMetadata(c.queries,!1),q=this.getQueriesMetadata(c.queries,!0)),b=r.CompileDirectiveMetadata.create({selector:c.selector,exportAs:c.exportAs,isComponent:o.isPresent(d),type:this.getTypeMetadata(a,g),template:d,changeDetection:e,inputs:c.inputs,outputs:c.outputs,host:c.host,lifecycleHooks:n.LIFECYCLE_HOOKS_VALUES.filter(function(b){return v.hasLifecycleHook(b,a)}),providers:l,viewProviders:f,queries:p,viewQueries:q}),this._directiveCache.set(a,b)}return b},a.prototype.maybeGetDirectiveMetadata=function(a){try{return this.getDirectiveMetadata(a)}catch(b){if(-1!==b.message.indexOf("No Directive annotation"))return null;throw b}},a.prototype.getTypeMetadata=function(a,b){return new r.CompileTypeMetadata({name:this.sanitizeTokenName(a),moduleUrl:b,runtime:a,diDeps:this.getDependenciesMetadata(a,null)})},a.prototype.getFactoryMetadata=function(a,b){return new r.CompileFactoryMetadata({name:this.sanitizeTokenName(a),moduleUrl:b,runtime:a,diDeps:this.getDependenciesMetadata(a,null)})},a.prototype.getPipeMetadata=function(a){var b=this._pipeCache.get(a);if(o.isBlank(b)){var c=this._pipeResolver.resolve(a);b=new r.CompilePipeMetadata({type:this.getTypeMetadata(a,i(a)),name:c.name,pure:c.pure,lifecycleHooks:n.LIFECYCLE_HOOKS_VALUES.filter(function(b){return v.hasLifecycleHook(b,a)})}),this._pipeCache.set(a,b)}return b},a.prototype.getViewDirectivesMetadata=function(a){for(var b=this,c=this._viewResolver.resolve(a),e=d(c,this._platformDirectives),f=0;f<e.length;f++)if(!h(e[f]))throw new q.BaseException("Unexpected directive value '"+o.stringify(e[f])+"' on the View of component '"+o.stringify(a)+"'");return e.map(function(a){return b.getDirectiveMetadata(a)})},a.prototype.getViewPipesMetadata=function(a){for(var b=this,c=this._viewResolver.resolve(a),d=e(c,this._platformPipes),f=0;f<d.length;f++)if(!h(d[f]))throw new q.BaseException("Unexpected piped value '"+o.stringify(d[f])+"' on the View of component '"+o.stringify(a)+"'");return d.map(function(a){return b.getPipeMetadata(a)})},a.prototype.getDependenciesMetadata=function(a,b){var c=this,d=o.isPresent(b)?b:this._reflector.parameters(a);return o.isBlank(d)&&(d=[]),d.map(function(a){if(o.isBlank(a))return null;var b=!1,d=!1,e=!1,f=!1,g=!1,i=null,j=null,k=null;return o.isArray(a)?a.forEach(function(a){a instanceof m.HostMetadata?d=!0:a instanceof m.SelfMetadata?e=!0:a instanceof m.SkipSelfMetadata?f=!0:a instanceof m.OptionalMetadata?g=!0:a instanceof m.AttributeMetadata?(b=!0,k=a.attributeName):a instanceof m.QueryMetadata?a.isViewQuery?j=a:i=a:a instanceof m.InjectMetadata?k=a.token:h(a)&&o.isBlank(k)&&(k=a)}):k=a,o.isBlank(k)?null:new r.CompileDiDependencyMetadata({isAttribute:b,isHost:d,isSelf:e,isSkipSelf:f,isOptional:g,query:o.isPresent(i)?c.getQueryMetadata(i,null):null,viewQuery:o.isPresent(j)?c.getQueryMetadata(j,null):null,token:c.getTokenMetadata(k)})})},a.prototype.getTokenMetadata=function(a){a=m.resolveForwardRef(a);var b;return b=o.isString(a)?new r.CompileTokenMetadata({value:a}):new r.CompileTokenMetadata({identifier:new r.CompileIdentifierMetadata({runtime:a,name:this.sanitizeTokenName(a),moduleUrl:i(a)})})},a.prototype.getProvidersMetadata=function(a){var b=this;return a.map(function(a){return a=m.resolveForwardRef(a),o.isArray(a)?b.getProvidersMetadata(a):a instanceof m.Provider?b.getProviderMetadata(a):z.isProviderLiteral(a)?b.getProviderMetadata(z.createProvider(a)):b.getTypeMetadata(a,i(a))})},a.prototype.getProviderMetadata=function(a){var b;return o.isPresent(a.useClass)?b=this.getDependenciesMetadata(a.useClass,a.dependencies):o.isPresent(a.useFactory)&&(b=this.getDependenciesMetadata(a.useFactory,a.dependencies)),new r.CompileProviderMetadata({token:this.getTokenMetadata(a.token),useClass:o.isPresent(a.useClass)?this.getTypeMetadata(a.useClass,i(a.useClass)):null,useValue:k(a.useValue),useFactory:o.isPresent(a.useFactory)?this.getFactoryMetadata(a.useFactory,i(a.useFactory)):null,useExisting:o.isPresent(a.useExisting)?this.getTokenMetadata(a.useExisting):null,deps:b,multi:a.multi})},a.prototype.getQueriesMetadata=function(a,b){var c=this,d=[];return p.StringMapWrapper.forEach(a,function(a,e){a.isViewQuery===b&&d.push(c.getQueryMetadata(a,e))}),d},a.prototype.getQueryMetadata=function(a,b){var c,d=this;return c=a.isVarBindingQuery?a.varBindings.map(function(a){return d.getTokenMetadata(a)}):[this.getTokenMetadata(a.selector)],new r.CompileQueryMetadata({selectors:c,first:a.first,descendants:a.descendants,propertyName:b,read:o.isPresent(a.read)?this.getTokenMetadata(a.read):null})},a.decorators=[{type:m.Injectable}],a.ctorParameters=[{type:s.DirectiveResolver},{type:t.PipeResolver},{type:u.ViewResolver},{type:void 0,decorators:[{type:m.Optional},{type:m.Inject,args:[m.PLATFORM_DIRECTIVES]}]},{type:void 0,decorators:[{type:m.Optional},{type:m.Inject,args:[m.PLATFORM_PIPES]}]},{type:n.ReflectorReader}],a}();b.CompileMetadataResolver=A;var B=function(a){function b(){a.apply(this,arguments)}return l(b,a),b.prototype.visitOther=function(a,b){return g(a)?new r.CompileIdentifierMetadata({name:a.name,moduleUrl:i(a)}):new r.CompileIdentifierMetadata({runtime:a})},b}(w.ValueTransformer);return c.exports}),a.registerDynamic("3e",["e","13","22"],!0,function(a,b,c){return function(c){"use strict";function d(a){return h.StringWrapper.replaceAllMapped(a,y,function(a){return""})}function e(a,b){var c=f(a),d=0;return h.StringWrapper.replaceAllMapped(c.escapedString,z,function(a){var e=a[2],f="",g=a[4],i="";h.isPresent(a[4])&&a[4].startsWith("{"+D)&&(f=c.blocks[d++],g=a[4].substring(D.length+1),i="{");var j=b(new E(e,f));return""+a[1]+j.selector+a[3]+i+j.content+g})}function f(a){for(var b=h.StringWrapper.split(a,A),c=[],d=[],e=0,f=[],g=0;g<b.length;g++){var i=b[g];i==C&&e--,e>0?f.push(i):(f.length>0&&(d.push(f.join("")),c.push(D),f=[]),c.push(i)),i==B&&e++}return f.length>0&&(d.push(f.join("")),c.push(D)),new F(c.join(""),d)}var g=a("e"),h=a("13"),i=function(){function a(){this.strictStyling=!0}return a.prototype.shimCssText=function(a,b,c){return void 0===c&&(c=""),a=d(a),a=this._insertDirectives(a),this._scopeCssText(a,b,c)},a.prototype._insertDirectives=function(a){return a=this._insertPolyfillDirectivesInCssText(a),this._insertPolyfillRulesInCssText(a)},a.prototype._insertPolyfillDirectivesInCssText=function(a){return h.StringWrapper.replaceAllMapped(a,j,function(a){return a[1]+"{"})},a.prototype._insertPolyfillRulesInCssText=function(a){return h.StringWrapper.replaceAllMapped(a,k,function(a){var b=a[0];return b=h.StringWrapper.replace(b,a[1],""),b=h.StringWrapper.replace(b,a[2],""),a[3]+b})},a.prototype._scopeCssText=function(a,b,c){var d=this._extractUnscopedRulesFromCssText(a);return a=this._insertPolyfillHostInCssText(a),a=this._convertColonHost(a),a=this._convertColonHostContext(a),a=this._convertShadowDOMSelectors(a),h.isPresent(b)&&(a=this._scopeSelectors(a,b,c)),a=a+"\n"+d,a.trim()},a.prototype._extractUnscopedRulesFromCssText=function(a){for(var b,c="",d=h.RegExpWrapper.matcher(l,a);h.isPresent(b=h.RegExpMatcherWrapper.next(d));){var e=b[0];e=h.StringWrapper.replace(e,b[2],""),e=h.StringWrapper.replace(e,b[1],b[3]),c+=e+"\n\n"}return c},a.prototype._convertColonHost=function(a){return this._convertColonRule(a,p,this._colonHostPartReplacer)},a.prototype._convertColonHostContext=function(a){return this._convertColonRule(a,q,this._colonHostContextPartReplacer)},a.prototype._convertColonRule=function(a,b,c){return h.StringWrapper.replaceAllMapped(a,b,function(a){if(h.isPresent(a[2])){for(var b=a[2].split(","),d=[],e=0;e<b.length;e++){var f=b[e];if(h.isBlank(f))break;f=f.trim(),d.push(c(r,f,a[3]))}return d.join(",")}return r+a[3]})},a.prototype._colonHostContextPartReplacer=function(a,b,c){return h.StringWrapper.contains(b,m)?this._colonHostPartReplacer(a,b,c):a+b+c+", "+b+" "+a+c},a.prototype._colonHostPartReplacer=function(a,b,c){return a+h.StringWrapper.replace(b,m,"")+c},a.prototype._convertShadowDOMSelectors=function(a){for(var b=0;b<s.length;b++)a=h.StringWrapper.replaceAll(a,s[b]," ");return a},a.prototype._scopeSelectors=function(a,b,c){var d=this;return e(a,function(a){var e=a.selector,f=a.content;return"@"!=a.selector[0]||a.selector.startsWith("@page")?e=d._scopeSelector(a.selector,b,c,d.strictStyling):a.selector.startsWith("@media")&&(f=d._scopeSelectors(a.content,b,c)),new E(e,f)})},a.prototype._scopeSelector=function(a,b,c,d){for(var e=[],f=a.split(","),g=0;g<f.length;g++){var i=f[g].trim(),j=h.StringWrapper.split(i,t),k=j[0];this._selectorNeedsScoping(k,b)&&(j[0]=d&&!h.StringWrapper.contains(k,r)?this._applyStrictSelectorScope(k,b):this._applySelectorScope(k,b,c)),e.push(j.join(" "))}return e.join(", ")},a.prototype._selectorNeedsScoping=function(a,b){var c=this._makeScopeMatcher(b);return!h.isPresent(h.RegExpWrapper.firstMatch(c,a))},a.prototype._makeScopeMatcher=function(a){var b=/\[/g,c=/\]/g;return a=h.StringWrapper.replaceAll(a,b,"\\["),a=h.StringWrapper.replaceAll(a,c,"\\]"),h.RegExpWrapper.create("^("+a+")"+u,"m")},a.prototype._applySelectorScope=function(a,b,c){return this._applySimpleSelectorScope(a,b,c)},a.prototype._applySimpleSelectorScope=function(a,b,c){if(h.isPresent(h.RegExpWrapper.firstMatch(v,a))){var d=this.strictStyling?"["+c+"]":b;return a=h.StringWrapper.replace(a,r,d),h.StringWrapper.replaceAll(a,v,d+" ")}return b+" "+a},a.prototype._applyStrictSelectorScope=function(a,b){var c=/\[is=([^\]]*)\]/g;b=h.StringWrapper.replaceAllMapped(b,c,function(a){return a[1]});for(var d=[" ",">","+","~"],e=a,f="["+b+"]",i=0;i<d.length;i++){var j=d[i],k=e.split(j);e=k.map(function(a){var b=h.StringWrapper.replaceAll(a.trim(),v,"");if(b.length>0&&!g.ListWrapper.contains(d,b)&&!h.StringWrapper.contains(b,f)){var c=/([^:]*)(:*)(.*)/g,e=h.RegExpWrapper.firstMatch(c,b);h.isPresent(e)&&(a=e[1]+f+e[2]+e[3])}return a}).join(j)}return e},a.prototype._insertPolyfillHostInCssText=function(a){return a=h.StringWrapper.replaceAll(a,x,n),a=h.StringWrapper.replaceAll(a,w,m)},a}();b.ShadowCss=i;var j=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,k=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,l=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,m="-shadowcsshost",n="-shadowcsscontext",o=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",p=h.RegExpWrapper.create("("+m+o,"im"),q=h.RegExpWrapper.create("("+n+o,"im"),r=m+"-no-combinator",s=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],t=/(?:>>>)|(?:\/deep\/)/g,u="([>\\s~+[.,{:][\\s\\S]*)?$",v=h.RegExpWrapper.create(m,"im"),w=/:host/gim,x=/:host-context/gim,y=/\/\*[\s\S]*?\*\//g,z=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,A=/([{}])/g,B="{",C="}",D="%BLOCK%",E=function(){function a(a,b){this.selector=a,this.content=b}return a}();b.CssRule=E,b.processRules=e;var F=function(){function a(a,b){this.escapedString=a,this.blocks=b}return a}()}(a("22")),c.exports}),a.registerDynamic("20",["13"],!0,function(a,b,c){"use strict";function d(a){if(f.isBlank(a)||0===a.length||"/"==a[0])return!1;var b=f.RegExpWrapper.firstMatch(i,a);return f.isBlank(b)||"package"==b[1]||"asset"==b[1]}function e(a,b,c){var e=[],i=f.StringWrapper.replaceAllMapped(c,h,function(c){var g=f.isPresent(c[1])?c[1]:c[2];return d(g)?(e.push(a.resolve(b,g)),""):c[0]});return new g(i,e)}var f=a("13"),g=function(){function a(a,b){this.style=a,this.styleUrls=b}return a}();b.StyleWithImports=g,b.isStyleUrlResolvable=d,b.extractStyleUrls=e;var h=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,i=/^([a-zA-Z\-\+\.]+):/g;return c.exports}),a.registerDynamic("2c",["11","c","f","3e","38","20","13"],!0,function(a,b,c){"use strict";function d(a){var b="styles";return k.isPresent(a)&&(b+="_"+a.type.name),b}var e=a("11"),f=a("c"),g=a("f"),h=a("3e"),i=a("38"),j=a("20"),k=a("13"),l="%COMP%",m="_nghost-"+l,n="_ngcontent-"+l,o=function(){function a(a,b,c){this.moduleUrl=a,this.isShimmed=b,this.valuePlaceholder=c}return a}();b.StylesCompileDependency=o;var p=function(){function a(a,b,c){this.statements=a,this.stylesVar=b,this.dependencies=c}return a}();b.StylesCompileResult=p;var q=function(){function a(a){this._urlResolver=a,this._shadowCss=new h.ShadowCss}return a.prototype.compileComponent=function(a){var b=a.template.encapsulation===e.ViewEncapsulation.Emulated;return this._compileStyles(d(a),a.template.styles,a.template.styleUrls,b)},a.prototype.compileStylesheet=function(a,b,c){var e=j.extractStyleUrls(this._urlResolver,a,b);return this._compileStyles(d(null),[e.style],e.styleUrls,c)},a.prototype._compileStyles=function(a,b,c,e){for(var h=this,i=b.map(function(a){return g.literal(h._shimIfNeeded(a,e))}),j=[],k=0;k<c.length;k++){var l=new f.CompileIdentifierMetadata({name:d(null)});j.push(new o(c[k],e,l)),i.push(new g.ExternalExpr(l))}var m=g.variable(a).set(g.literalArr(i,new g.ArrayType(g.DYNAMIC_TYPE,[g.TypeModifier.Const]))).toDeclStmt(null,[g.StmtModifier.Final]);return new p([m],a,j)},a.prototype._shimIfNeeded=function(a,b){return b?this._shadowCss.shimCssText(a,n,m):a},a.decorators=[{type:e.Injectable}],a.ctorParameters=[{type:i.UrlResolver}],a}();return b.StyleCompiler=q,c.exports}),a.registerDynamic("3f",["13","d","f","15","40"],!0,function(a,b,c){"use strict";function d(a,b){for(var c=null,d=a.pipeMetas.length-1;d>=0;d--){var g=a.pipeMetas[d];if(g.name==b){c=g;break}}if(e.isBlank(c))throw new f.BaseException("Illegal state: Could not find pipe "+b+" although the parser should have detected this error!");return c}var e=a("13"),f=a("d"),g=a("f"),h=a("15"),i=a("40"),j=function(){function a(a,b,c){this.view=a,this.instance=b,this.argCount=c}return a}(),k=function(){function a(a,b){this.view=a,this.meta=b,this._purePipeProxies=[],this.instance=g.THIS_EXPR.prop("_pipe_"+b.name+"_"+a.pipeCount++)}return a.call=function(b,c,f){var g,h=b.componentView,i=d(h,c);return i.pure?(g=h.purePipes.get(c),e.isBlank(g)&&(g=new a(h,i),h.purePipes.set(c,g),h.pipes.push(g))):(g=new a(b,i),b.pipes.push(g)),g._call(b,f)},Object.defineProperty(a.prototype,"pure",{get:function(){return this.meta.pure},enumerable:!0,configurable:!0}),a.prototype.create=function(){var a=this,b=this.meta.type.diDeps.map(function(b){return b.token.equalsTo(h.identifierToken(h.Identifiers.ChangeDetectorRef))?i.getPropertyInView(g.THIS_EXPR.prop("ref"),a.view,a.view.componentView):i.injectFromViewParentInjector(b.token,!1)});this.view.fields.push(new g.ClassField(this.instance.name,g.importType(this.meta.type))),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(g.THIS_EXPR.prop(this.instance.name).set(g.importExpr(this.meta.type).instantiate(b)).toStmt()),this._purePipeProxies.forEach(function(b){var c=i.getPropertyInView(a.instance,b.view,a.view);i.createPureProxy(c.prop("transform").callMethod(g.BuiltinMethod.bind,[c]),b.argCount,b.instance,b.view)})},a.prototype._call=function(a,b){if(this.meta.pure){var c=new j(a,g.THIS_EXPR.prop(this.instance.name+"_"+this._purePipeProxies.length),b.length);return this._purePipeProxies.push(c),g.importExpr(h.Identifiers.castByValue).callFn([c.instance,i.getPropertyInView(this.instance.prop("transform"),a,this.view)]).callFn(b)}return i.getPropertyInView(this.instance,a,this.view).callMethod("transform",b)},a}();return b.CompilePipe=k,c.exports}),a.registerDynamic("41",["18","13","e","f","42","43","44","3f","c","40","15"],!0,function(a,b,c){"use strict";function d(a,b){return b>0?e.ViewType.EMBEDDED:a.type.isHost?e.ViewType.HOST:e.ViewType.COMPONENT}var e=a("18"),f=a("13"),g=a("e"),h=a("f"),i=a("42"),j=a("43"),k=a("44"),l=a("3f"),m=a("c"),n=a("40"),o=a("15"),p=function(){function a(a,b,c,i,l,o,p){var q=this;this.component=a,this.genConfig=b,this.pipeMetas=c,this.styles=i,this.viewIndex=l,this.declarationElement=o,this.templateVariableBindings=p,this.nodes=[],this.rootNodesOrAppElements=[],this.bindings=[],this.classStatements=[],this.eventHandlerMethods=[],this.fields=[],this.getters=[],this.disposables=[],this.subscriptions=[],this.purePipes=new Map,this.pipes=[],this.locals=new Map,this.literalArrayCount=0,this.literalMapCount=0,this.pipeCount=0,this.createMethod=new k.CompileMethod(this),this.injectorGetMethod=new k.CompileMethod(this),this.updateContentQueriesMethod=new k.CompileMethod(this),this.dirtyParentQueriesMethod=new k.CompileMethod(this),this.updateViewQueriesMethod=new k.CompileMethod(this),this.detectChangesInInputsMethod=new k.CompileMethod(this),this.detectChangesRenderPropertiesMethod=new k.CompileMethod(this),this.afterContentLifecycleCallbacksMethod=new k.CompileMethod(this),this.afterViewLifecycleCallbacksMethod=new k.CompileMethod(this),this.destroyMethod=new k.CompileMethod(this),this.viewType=d(a,l),this.className="_View_"+a.type.name+l,this.classType=h.importType(new m.CompileIdentifierMetadata({name:this.className})),this.viewFactory=h.variable(n.getViewFactoryName(a,l)),this.viewType===e.ViewType.COMPONENT||this.viewType===e.ViewType.HOST?this.componentView=this:this.componentView=this.declarationElement.view.componentView,this.componentContext=n.getPropertyInView(h.THIS_EXPR.prop("context"),this,this.componentView);var r=new m.CompileTokenMap;if(this.viewType===e.ViewType.COMPONENT){var s=h.THIS_EXPR.prop("context");g.ListWrapper.forEachWithIndex(this.component.viewQueries,function(a,b){var c="_viewQuery_"+a.selectors[0].name+"_"+b,d=j.createQueryList(a,s,c,q),e=new j.CompileQuery(a,d,s,q);j.addQueryToTokenMap(r,e)});var t=0;this.component.type.diDeps.forEach(function(a){if(f.isPresent(a.viewQuery)){var b=h.THIS_EXPR.prop("declarationAppElement").prop("componentConstructorViewQueries").key(h.literal(t++)),c=new j.CompileQuery(a.viewQuery,b,null,q);j.addQueryToTokenMap(r,c)}})}this.viewQueries=r,p.forEach(function(a){q.locals.set(a[1],h.THIS_EXPR.prop("context").prop(a[0]))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return a.prototype.callPipe=function(a,b,c){return l.CompilePipe.call(this,a,[b].concat(c))},a.prototype.getLocal=function(a){if(a==i.EventHandlerVars.event.name)return i.EventHandlerVars.event;for(var b=this,c=b.locals.get(a);f.isBlank(c)&&f.isPresent(b.declarationElement.view);)b=b.declarationElement.view,c=b.locals.get(a);return f.isPresent(c)?n.getPropertyInView(c,this,b):null},a.prototype.createLiteralArray=function(a){if(0===a.length)return h.importExpr(o.Identifiers.EMPTY_ARRAY);for(var b=h.THIS_EXPR.prop("_arr_"+this.literalArrayCount++),c=[],d=[],e=0;e<a.length;e++){var f="p"+e;c.push(new h.FnParam(f)),d.push(h.variable(f))}return n.createPureProxy(h.fn(c,[new h.ReturnStatement(h.literalArr(d))]),a.length,b,this),b.callFn(a)},a.prototype.createLiteralMap=function(a){if(0===a.length)return h.importExpr(o.Identifiers.EMPTY_MAP);for(var b=h.THIS_EXPR.prop("_map_"+this.literalMapCount++),c=[],d=[],e=[],f=0;f<a.length;f++){var g="p"+f;c.push(new h.FnParam(g)),d.push([a[f][0],h.variable(g)]),e.push(a[f][1])}return n.createPureProxy(h.fn(c,[new h.ReturnStatement(h.literalMap(d))]),a.length,b,this),b.callFn(e)},a.prototype.afterNodes=function(){var a=this;this.pipes.forEach(function(a){return a.create()}),this.viewQueries.values().forEach(function(b){return b.forEach(function(b){return b.afterChildren(a.updateViewQueriesMethod)})})},a}();return b.CompileView=p,c.exports}),a.registerDynamic("43",["13","e","f","15","40"],!0,function(a,b,c){"use strict";function d(a){return i.ListWrapper.flatten(a.values.map(function(a){return a instanceof m?e(a.view.declarationElement.appElement,a.view,d(a)):a}))}function e(a,b,c){var d=c.map(function(a){return j.replaceVarInExpression(j.THIS_EXPR.name,j.variable("nestedView"),a)});return a.callMethod("mapNestedViews",[j.variable(b.className),j.fn([new j.FnParam("nestedView",b.classType)],[new j.ReturnStatement(j.literalArr(d))])])}function f(a,b,c,d){d.fields.push(new j.ClassField(c,j.importType(k.Identifiers.QueryList)));var e=j.THIS_EXPR.prop(c);return d.createMethod.addStmt(j.THIS_EXPR.prop(c).set(j.importExpr(k.Identifiers.QueryList).instantiate([])).toStmt()),e}function g(a,b){b.meta.selectors.forEach(function(c){var d=a.get(c);h.isBlank(d)&&(d=[],a.add(c,d)),d.push(b)})}var h=a("13"),i=a("e"),j=a("f"),k=a("15"),l=a("40"),m=function(){function a(a,b){this.view=a,this.values=b}return a}(),n=function(){function a(a,b,c,d){this.meta=a,this.queryList=b,this.ownerDirectiveExpression=c,this.view=d,this._values=new m(d,[])}return a.prototype.addValue=function(a,b){for(var c=b,d=[];h.isPresent(c)&&c!==this.view;){var e=c.declarationElement;d.unshift(e),c=e.view}var f=l.getPropertyInView(this.queryList,b,this.view),g=this._values;d.forEach(function(a){var b=g.values.length>0?g.values[g.values.length-1]:null;if(b instanceof m&&b.view===a.embeddedView)g=b;else{var c=new m(a.embeddedView,[]);g.values.push(c),g=c}}),g.values.push(a),d.length>0&&b.dirtyParentQueriesMethod.addStmt(f.callMethod("setDirty",[]).toStmt())},a.prototype.afterChildren=function(a){var b=d(this._values),c=[this.queryList.callMethod("reset",[j.literalArr(b)]).toStmt()];if(h.isPresent(this.ownerDirectiveExpression)){var e=this.meta.first?this.queryList.prop("first"):this.queryList;c.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(e).toStmt())}this.meta.first||c.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),a.addStmt(new j.IfStmt(this.queryList.prop("dirty"),c))},a}();return b.CompileQuery=n,b.createQueryList=f,b.addQueryToTokenMap=g,c.exports}),a.registerDynamic("45",["11","13","e","f","15","42","14","c","40","43","44","10"],!0,function(a,b,c){"use strict";function d(a,b,c,d){var e;return e=b>0?k.literal(a).lowerEquals(m.InjectMethodVars.requestNodeIndex).and(m.InjectMethodVars.requestNodeIndex.lowerEquals(k.literal(a+b))):k.literal(a).identical(m.InjectMethodVars.requestNodeIndex),new k.IfStmt(m.InjectMethodVars.token.identical(p.createDiTokenExpression(c.token)).and(e),[new k.ReturnStatement(d)])}function e(a,b,c,d,e,f){var g,h,j=f.view;if(d?(g=k.literalArr(c),h=new k.ArrayType(k.DYNAMIC_TYPE)):(g=c[0],h=c[0].type),i.isBlank(h)&&(h=k.DYNAMIC_TYPE),e)j.fields.push(new k.ClassField(a,h)),j.createMethod.addStmt(k.THIS_EXPR.prop(a).set(g).toStmt());else{var l="_"+a;j.fields.push(new k.ClassField(l,h));var m=new r.CompileMethod(j);m.resetDebugInfo(f.nodeIndex,f.sourceAst),m.addStmt(new k.IfStmt(k.THIS_EXPR.prop(l).isBlank(),[k.THIS_EXPR.prop(l).set(g).toStmt()])),m.addStmt(new k.ReturnStatement(k.THIS_EXPR.prop(l))),j.getters.push(new k.ClassGetter(a,m.finish(),h))}return k.THIS_EXPR.prop(a)}function f(a){return s.visitValue(a,new w,null)}var g=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},h=a("11"),i=a("13"),j=a("e"),k=a("f"),l=a("15"),m=a("42"),n=a("14"),o=a("c"),p=a("40"),q=a("43"),r=a("44"),s=a("10"),t=function(){function a(a,b,c,d,e){this.parent=a,this.view=b,this.nodeIndex=c,this.renderNode=d,this.sourceAst=e}return a.prototype.isNull=function(){return i.isBlank(this.renderNode)},a.prototype.isRootElement=function(){return this.view!=this.parent.view},a}();b.CompileNode=t;var u=function(a){function b(b,c,d,e,f,g,h,j,m,n,p){var q=this;a.call(this,b,c,d,e,f),this.component=g,this._directives=h,this._resolvedProvidersArray=j,this.hasViewContainer=m,this.hasEmbeddedView=n,this._compViewExpr=null,this._instances=new o.CompileTokenMap,this._queryCount=0,this._queries=new o.CompileTokenMap,this._componentConstructorViewQueryLists=[],this.contentNodesByNgContentIndex=null,this.referenceTokens={},p.forEach(function(a){return q.referenceTokens[a.name]=a.value}),this.elementRef=k.importExpr(l.Identifiers.ElementRef).instantiate([this.renderNode]),this._instances.add(l.identifierToken(l.Identifiers.ElementRef),this.elementRef),this.injector=k.THIS_EXPR.callMethod("injector",[k.literal(this.nodeIndex)]),this._instances.add(l.identifierToken(l.Identifiers.Injector),this.injector),this._instances.add(l.identifierToken(l.Identifiers.Renderer),k.THIS_EXPR.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView||i.isPresent(this.component))&&this._createAppElement()}return g(b,a),b.createNull=function(){return new b(null,null,null,null,null,null,[],[],!1,!1,[])},b.prototype._createAppElement=function(){var a="_appEl_"+this.nodeIndex,b=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new k.ClassField(a,k.importType(l.Identifiers.AppElement),[k.StmtModifier.Private]));var c=k.THIS_EXPR.prop(a).set(k.importExpr(l.Identifiers.AppElement).instantiate([k.literal(this.nodeIndex),k.literal(b),k.THIS_EXPR,this.renderNode])).toStmt();this.view.createMethod.addStmt(c),this.appElement=k.THIS_EXPR.prop(a),this._instances.add(l.identifierToken(l.Identifiers.AppElement),this.appElement)},b.prototype.setComponentView=function(a){this._compViewExpr=a,this.contentNodesByNgContentIndex=j.ListWrapper.createFixedSize(this.component.template.ngContentSelectors.length);for(var b=0;b<this.contentNodesByNgContentIndex.length;b++)this.contentNodesByNgContentIndex[b]=[]},b.prototype.setEmbeddedView=function(a){if(this.embeddedView=a,i.isPresent(a)){var b=k.importExpr(l.Identifiers.TemplateRef_).instantiate([this.appElement,this.embeddedView.viewFactory]),c=new o.CompileProviderMetadata({token:l.identifierToken(l.Identifiers.TemplateRef),useValue:b});this._resolvedProvidersArray.unshift(new n.ProviderAst(c.token,!1,!0,[c],n.ProviderAstType.Builtin,this.sourceAst.sourceSpan))}},b.prototype.beforeChildren=function(){var a=this;this.hasViewContainer&&this._instances.add(l.identifierToken(l.Identifiers.ViewContainerRef),this.appElement.prop("vcRef")),this._resolvedProviders=new o.CompileTokenMap,this._resolvedProvidersArray.forEach(function(b){return a._resolvedProviders.add(b.token,b)}),this._resolvedProviders.values().forEach(function(b){var c=b.providers.map(function(c){if(i.isPresent(c.useExisting))return a._getDependency(b.providerType,new o.CompileDiDependencyMetadata({token:c.useExisting}));if(i.isPresent(c.useFactory)){var d=i.isPresent(c.deps)?c.deps:c.useFactory.diDeps,e=d.map(function(c){return a._getDependency(b.providerType,c)});return k.importExpr(c.useFactory).callFn(e)}if(i.isPresent(c.useClass)){var d=i.isPresent(c.deps)?c.deps:c.useClass.diDeps,e=d.map(function(c){return a._getDependency(b.providerType,c)});return k.importExpr(c.useClass).instantiate(e,k.importType(c.useClass))}return f(c.useValue)}),d="_"+b.token.name+"_"+a.nodeIndex+"_"+a._instances.size,g=e(d,b,c,b.multiProvider,b.eager,a);a._instances.add(b.token,g)}),this.directiveInstances=this._directives.map(function(b){return a._instances.get(l.identifierToken(b.type))});for(var b=0;b<this.directiveInstances.length;b++){var c=this.directiveInstances[b],d=this._directives[b];d.queries.forEach(function(b){a._addQuery(b,c)})}var g=[];if(this._resolvedProviders.values().forEach(function(b){var c=a._getQueriesFor(b.token);j.ListWrapper.addAll(g,c.map(function(a){return new v(a,b.token)}))}),j.StringMapWrapper.forEach(this.referenceTokens,function(b,c){var d,e=a.referenceTokens[c];d=i.isPresent(e)?a._instances.get(e):a.renderNode,a.view.locals.set(c,d);var f=new o.CompileTokenMetadata({value:c});j.ListWrapper.addAll(g,a._getQueriesFor(f).map(function(a){return new v(a,f)}))}),g.forEach(function(b){var c;if(i.isPresent(b.read.identifier))c=a._instances.get(b.read);else{var d=a.referenceTokens[b.read.value];c=i.isPresent(d)?a._instances.get(d):a.elementRef}i.isPresent(c)&&b.query.addValue(c,a.view)}),i.isPresent(this.component)){var h=i.isPresent(this.component)?k.literalArr(this._componentConstructorViewQueryLists):k.NULL_EXPR,m=i.isPresent(this.getComponent())?this.getComponent():k.NULL_EXPR;this.view.createMethod.addStmt(this.appElement.callMethod("initComponent",[m,h,this._compViewExpr]).toStmt())}},b.prototype.afterChildren=function(a){var b=this;this._resolvedProviders.values().forEach(function(c){var e=b._instances.get(c.token),f=c.providerType===n.ProviderAstType.PrivateService?0:a;b.view.injectorGetMethod.addStmt(d(b.nodeIndex,f,c,e));
|
||
}),this._queries.values().forEach(function(a){return a.forEach(function(a){return a.afterChildren(b.view.updateContentQueriesMethod)})})},b.prototype.addContentNode=function(a,b){this.contentNodesByNgContentIndex[a].push(b)},b.prototype.getComponent=function(){return i.isPresent(this.component)?this._instances.get(l.identifierToken(this.component.type)):null},b.prototype.getProviderTokens=function(){return this._resolvedProviders.values().map(function(a){return p.createDiTokenExpression(a.token)})},b.prototype._getQueriesFor=function(a){for(var b,c=[],d=this,e=0;!d.isNull();)b=d._queries.get(a),i.isPresent(b)&&j.ListWrapper.addAll(c,b.filter(function(a){return a.meta.descendants||1>=e})),d._directives.length>0&&e++,d=d.parent;return b=this.view.componentView.viewQueries.get(a),i.isPresent(b)&&j.ListWrapper.addAll(c,b),c},b.prototype._addQuery=function(a,b){var c="_query_"+a.selectors[0].name+"_"+this.nodeIndex+"_"+this._queryCount++,d=q.createQueryList(a,b,c,this.view),e=new q.CompileQuery(a,d,b,this.view);return q.addQueryToTokenMap(this._queries,e),e},b.prototype._getLocalDependency=function(a,b){var c=null;if(i.isBlank(c)&&i.isPresent(b.query)&&(c=this._addQuery(b.query,null).queryList),i.isBlank(c)&&i.isPresent(b.viewQuery)&&(c=q.createQueryList(b.viewQuery,null,"_viewQuery_"+b.viewQuery.selectors[0].name+"_"+this.nodeIndex+"_"+this._componentConstructorViewQueryLists.length,this.view),this._componentConstructorViewQueryLists.push(c)),i.isPresent(b.token)){if(i.isBlank(c)&&b.token.equalsTo(l.identifierToken(l.Identifiers.ChangeDetectorRef)))return a===n.ProviderAstType.Component?this._compViewExpr.prop("ref"):p.getPropertyInView(k.THIS_EXPR.prop("ref"),this.view,this.view.componentView);i.isBlank(c)&&(c=this._instances.get(b.token))}return c},b.prototype._getDependency=function(a,b){var c=this,d=null;for(b.isValue&&(d=k.literal(b.value)),i.isBlank(d)&&!b.isSkipSelf&&(d=this._getLocalDependency(a,b));i.isBlank(d)&&!c.parent.isNull();)c=c.parent,d=c._getLocalDependency(n.ProviderAstType.PublicService,new o.CompileDiDependencyMetadata({token:b.token}));return i.isBlank(d)&&(d=p.injectFromViewParentInjector(b.token,b.isOptional)),i.isBlank(d)&&(d=k.NULL_EXPR),p.getPropertyInView(d,this.view,c.view)},b}(t);b.CompileElement=u;var v=function(){function a(a,b){this.query=a,this.read=i.isPresent(a.meta.read)?a.meta.read:b}return a}(),w=function(a){function b(){a.apply(this,arguments)}return g(b,a),b.prototype.visitArray=function(a,b){var c=this;return k.literalArr(a.map(function(a){return s.visitValue(a,c,b)}))},b.prototype.visitStringMap=function(a,b){var c=this,d=[];return j.StringMapWrapper.forEach(a,function(a,e){d.push([e,s.visitValue(a,c,b)])}),k.literalMap(d)},b.prototype.visitPrimitive=function(a,b){return k.literal(a)},b.prototype.visitOther=function(a,b){if(a instanceof o.CompileIdentifierMetadata)return k.importExpr(a);if(a instanceof k.Expression)return a;throw new h.BaseException("Illegal state: Don't now how to compile value "+a)},b}(s.ValueTransformer);return c.exports}),a.registerDynamic("40",["13","d","f","15"],!0,function(a,b,c){"use strict";function d(a,b,c){if(b===c)return a;for(var d=l.THIS_EXPR,e=b;e!==c&&j.isPresent(e.declarationElement.view);)e=e.declarationElement.view,d=d.prop("parent");if(e!==c)throw new k.BaseException("Internal error: Could not calculate a property in a parent view: "+a);if(a instanceof l.ReadPropExpr){var f=a;(c.fields.some(function(a){return a.name==f.name})||c.getters.some(function(a){return a.name==f.name}))&&(d=d.cast(c.classType))}return l.replaceVarInExpression(l.THIS_EXPR.name,d,a)}function e(a,b){var c=[g(a)];return b&&c.push(l.NULL_EXPR),l.THIS_EXPR.prop("parentInjector").callMethod("get",c)}function f(a,b){return"viewFactory_"+a.type.name+b}function g(a){return j.isPresent(a.value)?l.literal(a.value):a.identifierIsInstance?l.importExpr(a.identifier).instantiate([],l.importType(a.identifier,[],[l.TypeModifier.Const])):l.importExpr(a.identifier)}function h(a){for(var b=[],c=l.literalArr([]),d=0;d<a.length;d++){var e=a[d];e.type instanceof l.ArrayType?(b.length>0&&(c=c.callMethod(l.BuiltinMethod.ConcatArray,[l.literalArr(b)]),b=[]),c=c.callMethod(l.BuiltinMethod.ConcatArray,[e])):b.push(e)}return b.length>0&&(c=c.callMethod(l.BuiltinMethod.ConcatArray,[l.literalArr(b)])),c}function i(a,b,c,d){d.fields.push(new l.ClassField(c.name,null));var e=b<m.Identifiers.pureProxies.length?m.Identifiers.pureProxies[b]:null;if(j.isBlank(e))throw new k.BaseException("Unsupported number of argument for pure functions: "+b);d.createMethod.addStmt(l.THIS_EXPR.prop(c.name).set(l.importExpr(e).callFn([a])).toStmt())}var j=a("13"),k=a("d"),l=a("f"),m=a("15");return b.getPropertyInView=d,b.injectFromViewParentInjector=e,b.getViewFactoryName=f,b.createDiTokenExpression=g,b.createFlatArray=h,b.createPureProxy=i,c.exports}),a.registerDynamic("46",["11","18","13","e","f","15","42","41","45","14","40","c"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=new K(a,c);return B.templateVisitAll(d,b,a.declarationElement.isNull()?a.declarationElement:a.declarationElement.parent),d.nestedViewCount}function e(a,b){a.afterNodes(),j(a,b),a.nodes.forEach(function(a){a instanceof A.CompileElement&&a.hasEmbeddedView&&e(a.embeddedView,b)})}function f(a,b){var c={};return v.StringMapWrapper.forEach(a,function(a,b){c[b]=a}),b.forEach(function(a){v.StringMapWrapper.forEach(a.hostAttributes,function(a,b){var d=c[b];c[b]=u.isPresent(d)?h(b,d,a):a})}),i(c)}function g(a){var b={};return a.forEach(function(a){b[a.name]=a.value}),b}function h(a,b,c){return a==F||a==G?b+" "+c:c}function i(a){var b=[];v.StringMapWrapper.forEach(a,function(a,c){b.push([c,a])}),v.ListWrapper.sort(b,function(a,b){return u.StringWrapper.compare(a[0],b[0])});var c=[];return b.forEach(function(a){c.push([a[0],a[1]])}),c}function j(a,b){var c=w.NULL_EXPR;a.genConfig.genDebugInfo&&(c=w.variable("nodeDebugInfos_"+a.component.type.name+a.viewIndex),b.push(c.set(w.literalArr(a.nodes.map(k),new w.ArrayType(new w.ExternalType(x.Identifiers.StaticNodeDebugInfo),[w.TypeModifier.Const]))).toDeclStmt(null,[w.StmtModifier.Final])));var d=w.variable("renderType_"+a.component.type.name);0===a.viewIndex&&b.push(d.set(w.NULL_EXPR).toDeclStmt(w.importType(x.Identifiers.RenderComponentType)));var e=l(a,d,c);b.push(e),b.push(m(a,e,d))}function k(a){var b=a instanceof A.CompileElement?a:null,c=[],d=w.NULL_EXPR,e=[];return u.isPresent(b)&&(c=b.getProviderTokens(),u.isPresent(b.component)&&(d=C.createDiTokenExpression(x.identifierToken(b.component.type))),v.StringMapWrapper.forEach(b.referenceTokens,function(a,b){e.push([b,u.isPresent(a)?C.createDiTokenExpression(a):w.NULL_EXPR])})),w.importExpr(x.Identifiers.StaticNodeDebugInfo).instantiate([w.literalArr(c,new w.ArrayType(w.DYNAMIC_TYPE,[w.TypeModifier.Const])),d,w.literalMap(e,new w.MapType(w.DYNAMIC_TYPE,[w.TypeModifier.Const]))],w.importType(x.Identifiers.StaticNodeDebugInfo,null,[w.TypeModifier.Const]))}function l(a,b,c){var d=[new w.FnParam(y.ViewConstructorVars.viewUtils.name,w.importType(x.Identifiers.ViewUtils)),new w.FnParam(y.ViewConstructorVars.parentInjector.name,w.importType(x.Identifiers.Injector)),new w.FnParam(y.ViewConstructorVars.declarationEl.name,w.importType(x.Identifiers.AppElement))],e=[w.variable(a.className),b,y.ViewTypeEnum.fromValue(a.viewType),y.ViewConstructorVars.viewUtils,y.ViewConstructorVars.parentInjector,y.ViewConstructorVars.declarationEl,y.ChangeDetectionStrategyEnum.fromValue(r(a))];a.genConfig.genDebugInfo&&e.push(c);var f=new w.ClassMethod(null,d,[w.SUPER_EXPR.callFn(e).toStmt()]),g=[new w.ClassMethod("createInternal",[new w.FnParam(I.name,w.STRING_TYPE)],n(a),w.importType(x.Identifiers.AppElement)),new w.ClassMethod("injectorGetInternal",[new w.FnParam(y.InjectMethodVars.token.name,w.DYNAMIC_TYPE),new w.FnParam(y.InjectMethodVars.requestNodeIndex.name,w.NUMBER_TYPE),new w.FnParam(y.InjectMethodVars.notFoundResult.name,w.DYNAMIC_TYPE)],p(a.injectorGetMethod.finish(),y.InjectMethodVars.notFoundResult),w.DYNAMIC_TYPE),new w.ClassMethod("detectChangesInternal",[new w.FnParam(y.DetectChangesVars.throwOnChange.name,w.BOOL_TYPE)],o(a)),new w.ClassMethod("dirtyParentQueriesInternal",[],a.dirtyParentQueriesMethod.finish()),new w.ClassMethod("destroyInternal",[],a.destroyMethod.finish())].concat(a.eventHandlerMethods),h=a.genConfig.genDebugInfo?x.Identifiers.DebugAppView:x.Identifiers.AppView,i=new w.ClassStmt(a.className,w.importExpr(h,[q(a)]),a.fields,a.getters,f,g.filter(function(a){return a.body.length>0}));return i}function m(a,b,c){var d,e=[new w.FnParam(y.ViewConstructorVars.viewUtils.name,w.importType(x.Identifiers.ViewUtils)),new w.FnParam(y.ViewConstructorVars.parentInjector.name,w.importType(x.Identifiers.Injector)),new w.FnParam(y.ViewConstructorVars.declarationEl.name,w.importType(x.Identifiers.AppElement))],f=[];return d=a.component.template.templateUrl==a.component.type.moduleUrl?a.component.type.moduleUrl+" class "+a.component.type.name+" - inline template":a.component.template.templateUrl,0===a.viewIndex&&(f=[new w.IfStmt(c.identical(w.NULL_EXPR),[c.set(y.ViewConstructorVars.viewUtils.callMethod("createRenderComponentType",[w.literal(d),w.literal(a.component.template.ngContentSelectors.length),y.ViewEncapsulationEnum.fromValue(a.component.template.encapsulation),a.styles])).toStmt()])]),w.fn(e,f.concat([new w.ReturnStatement(w.variable(b.name).instantiate(b.constructorMethod.params.map(function(a){return w.variable(a.name)})))]),w.importType(x.Identifiers.AppView,[q(a)])).toDeclStmt(a.viewFactory.name,[w.StmtModifier.Final])}function n(a){var b=w.NULL_EXPR,c=[];a.viewType===t.ViewType.COMPONENT&&(b=y.ViewProperties.renderer.callMethod("createViewRoot",[w.THIS_EXPR.prop("declarationAppElement").prop("nativeElement")]),c=[H.set(b).toDeclStmt(w.importType(a.genConfig.renderTypes.renderNode),[w.StmtModifier.Final])]);var d;return d=a.viewType===t.ViewType.HOST?a.nodes[0].appElement:w.NULL_EXPR,c.concat(a.createMethod.finish()).concat([w.THIS_EXPR.callMethod("init",[C.createFlatArray(a.rootNodesOrAppElements),w.literalArr(a.nodes.map(function(a){return a.renderNode})),w.literalArr(a.disposables),w.literalArr(a.subscriptions)]).toStmt(),new w.ReturnStatement(d)])}function o(a){var b=[];if(a.detectChangesInInputsMethod.isEmpty()&&a.updateContentQueriesMethod.isEmpty()&&a.afterContentLifecycleCallbacksMethod.isEmpty()&&a.detectChangesRenderPropertiesMethod.isEmpty()&&a.updateViewQueriesMethod.isEmpty()&&a.afterViewLifecycleCallbacksMethod.isEmpty())return b;v.ListWrapper.addAll(b,a.detectChangesInInputsMethod.finish()),b.push(w.THIS_EXPR.callMethod("detectContentChildrenChanges",[y.DetectChangesVars.throwOnChange]).toStmt());var c=a.updateContentQueriesMethod.finish().concat(a.afterContentLifecycleCallbacksMethod.finish());c.length>0&&b.push(new w.IfStmt(w.not(y.DetectChangesVars.throwOnChange),c)),v.ListWrapper.addAll(b,a.detectChangesRenderPropertiesMethod.finish()),b.push(w.THIS_EXPR.callMethod("detectViewChildrenChanges",[y.DetectChangesVars.throwOnChange]).toStmt());var d=a.updateViewQueriesMethod.finish().concat(a.afterViewLifecycleCallbacksMethod.finish());d.length>0&&b.push(new w.IfStmt(w.not(y.DetectChangesVars.throwOnChange),d));var e=[],f=w.findReadVarNames(b);return v.SetWrapper.has(f,y.DetectChangesVars.changed.name)&&e.push(y.DetectChangesVars.changed.set(w.literal(!0)).toDeclStmt(w.BOOL_TYPE)),v.SetWrapper.has(f,y.DetectChangesVars.changes.name)&&e.push(y.DetectChangesVars.changes.set(w.NULL_EXPR).toDeclStmt(new w.MapType(w.importType(x.Identifiers.SimpleChange)))),v.SetWrapper.has(f,y.DetectChangesVars.valUnwrapper.name)&&e.push(y.DetectChangesVars.valUnwrapper.set(w.importExpr(x.Identifiers.ValueUnwrapper).instantiate([])).toDeclStmt(null,[w.StmtModifier.Final])),e.concat(b)}function p(a,b){return a.length>0?a.concat([new w.ReturnStatement(b)]):a}function q(a){return a.viewType===t.ViewType.COMPONENT?w.importType(a.component.type):w.DYNAMIC_TYPE}function r(a){var b;return b=a.viewType===t.ViewType.COMPONENT?t.isDefaultChangeDetectionStrategy(a.component.changeDetection)?s.ChangeDetectionStrategy.CheckAlways:s.ChangeDetectionStrategy.CheckOnce:s.ChangeDetectionStrategy.CheckAlways}var s=a("11"),t=a("18"),u=a("13"),v=a("e"),w=a("f"),x=a("15"),y=a("42"),z=a("41"),A=a("45"),B=a("14"),C=a("40"),D=a("c"),E="$implicit",F="class",G="style",H=w.variable("parentRenderNode"),I=w.variable("rootSelector"),J=function(){function a(a,b){this.comp=a,this.factoryPlaceholder=b}return a}();b.ViewCompileDependency=J,b.buildView=d,b.finishView=e;var K=function(){function a(a,b){this.view=a,this.targetDependencies=b,this.nestedViewCount=0}return a.prototype._isRootNode=function(a){return a.view!==this.view},a.prototype._addRootNodeAndProject=function(a,b,c){var d=a instanceof A.CompileElement&&a.hasViewContainer?a.appElement:null;this._isRootNode(c)?this.view.viewType!==t.ViewType.COMPONENT&&this.view.rootNodesOrAppElements.push(u.isPresent(d)?d:a.renderNode):u.isPresent(c.component)&&u.isPresent(b)&&c.addContentNode(b,u.isPresent(d)?d:a.renderNode)},a.prototype._getParentRenderNode=function(a){return this._isRootNode(a)?this.view.viewType===t.ViewType.COMPONENT?H:w.NULL_EXPR:u.isPresent(a.component)&&a.component.template.encapsulation!==s.ViewEncapsulation.Native?w.NULL_EXPR:a.renderNode},a.prototype.visitBoundText=function(a,b){return this._visitText(a,"",a.ngContentIndex,b)},a.prototype.visitText=function(a,b){return this._visitText(a,a.value,a.ngContentIndex,b)},a.prototype._visitText=function(a,b,c,d){var e="_text_"+this.view.nodes.length;this.view.fields.push(new w.ClassField(e,w.importType(this.view.genConfig.renderTypes.renderText)));var f=w.THIS_EXPR.prop(e),g=new A.CompileNode(d,this.view,this.view.nodes.length,f,a),h=w.THIS_EXPR.prop(e).set(y.ViewProperties.renderer.callMethod("createText",[this._getParentRenderNode(d),w.literal(b),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,a)])).toStmt();return this.view.nodes.push(g),this.view.createMethod.addStmt(h),this._addRootNodeAndProject(g,c,d),f},a.prototype.visitNgContent=function(a,b){this.view.createMethod.resetDebugInfo(null,a);var c=this._getParentRenderNode(b),d=y.ViewProperties.projectableNodes.key(w.literal(a.index),new w.ArrayType(w.importType(this.view.genConfig.renderTypes.renderNode)));return c!==w.NULL_EXPR?this.view.createMethod.addStmt(y.ViewProperties.renderer.callMethod("projectNodes",[c,w.importExpr(x.Identifiers.flattenNestedViewRenderNodes).callFn([d])]).toStmt()):this._isRootNode(b)?this.view.viewType!==t.ViewType.COMPONENT&&this.view.rootNodesOrAppElements.push(d):u.isPresent(b.component)&&u.isPresent(a.ngContentIndex)&&b.addContentNode(a.ngContentIndex,d),null},a.prototype.visitElement=function(a,b){var c,d=this.view.nodes.length,e=this.view.createMethod.resetDebugInfoExpr(d,a);c=0===d&&this.view.viewType===t.ViewType.HOST?w.THIS_EXPR.callMethod("selectOrCreateHostElement",[w.literal(a.name),I,e]):y.ViewProperties.renderer.callMethod("createElement",[this._getParentRenderNode(b),w.literal(a.name),e]);var h="_el_"+d;this.view.fields.push(new w.ClassField(h,w.importType(this.view.genConfig.renderTypes.renderElement))),this.view.createMethod.addStmt(w.THIS_EXPR.prop(h).set(c).toStmt());for(var i=w.THIS_EXPR.prop(h),j=a.directives.map(function(a){return a.directive}),k=j.find(function(a){return a.isComponent}),l=g(a.attrs),m=f(l,j),n=0;n<m.length;n++){var o=m[n][0],p=m[n][1];this.view.createMethod.addStmt(y.ViewProperties.renderer.callMethod("setElementAttribute",[i,w.literal(o),w.literal(p)]).toStmt())}var q=new A.CompileElement(b,this.view,d,i,a,k,j,a.providers,a.hasViewContainer,!1,a.references);this.view.nodes.push(q);var r=null;if(u.isPresent(k)){var s=new D.CompileIdentifierMetadata({name:C.getViewFactoryName(k,0)});this.targetDependencies.push(new J(k,s)),r=w.variable("compView_"+d),q.setComponentView(r),this.view.createMethod.addStmt(r.set(w.importExpr(s).callFn([y.ViewProperties.viewUtils,q.injector,q.appElement])).toDeclStmt())}if(q.beforeChildren(),this._addRootNodeAndProject(q,a.ngContentIndex,b),B.templateVisitAll(this,a.children,q),q.afterChildren(this.view.nodes.length-d-1),u.isPresent(r)){var v;v=this.view.component.type.isHost?y.ViewProperties.projectableNodes:w.literalArr(q.contentNodesByNgContentIndex.map(function(a){return C.createFlatArray(a)})),this.view.createMethod.addStmt(r.callMethod("create",[q.getComponent(),v,w.NULL_EXPR]).toStmt())}return null},a.prototype.visitEmbeddedTemplate=function(a,b){var c=this.view.nodes.length,e="_anchor_"+c;this.view.fields.push(new w.ClassField(e,w.importType(this.view.genConfig.renderTypes.renderComment))),this.view.createMethod.addStmt(w.THIS_EXPR.prop(e).set(y.ViewProperties.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(b),this.view.createMethod.resetDebugInfoExpr(c,a)])).toStmt());var f=w.THIS_EXPR.prop(e),g=a.variables.map(function(a){return[a.value.length>0?a.value:E,a.name]}),h=a.directives.map(function(a){return a.directive}),i=new A.CompileElement(b,this.view,c,f,a,null,h,a.providers,a.hasViewContainer,!0,a.references);this.view.nodes.push(i),this.nestedViewCount++;var j=new z.CompileView(this.view.component,this.view.genConfig,this.view.pipeMetas,w.NULL_EXPR,this.view.viewIndex+this.nestedViewCount,i,g);return this.nestedViewCount+=d(j,a.children,this.targetDependencies),i.beforeChildren(),this._addRootNodeAndProject(i,a.ngContentIndex,b),i.afterChildren(0),null},a.prototype.visitAttr=function(a,b){return null},a.prototype.visitDirective=function(a,b){return null},a.prototype.visitEvent=function(a,b){return null},a.prototype.visitReference=function(a,b){return null},a.prototype.visitVariable=function(a,b){return null},a.prototype.visitDirectiveProperty=function(a,b){return null},a.prototype.visitElementProperty=function(a,b){return null},a}();return c.exports}),a.registerDynamic("47",["18","13","f","15","42","14","10","48","49"],!0,function(a,b,c){"use strict";function d(a){return q.THIS_EXPR.prop("_expr_"+a)}function e(a){return q.variable("currVal_"+a)}function f(a,b,c,d,e,f,g){var h=v.convertCdExpressionToIr(a,e,d,s.DetectChangesVars.valUnwrapper);if(!p.isBlank(h.expression)){if(a.fields.push(new q.ClassField(c.name,null,[q.StmtModifier.Private])),a.createMethod.addStmt(q.THIS_EXPR.prop(c.name).set(q.importExpr(r.Identifiers.uninitialized)).toStmt()),h.needsValueUnwrapper){var i=s.DetectChangesVars.valUnwrapper.callMethod("reset",[]).toStmt();g.addStmt(i)}g.addStmt(b.set(h.expression).toDeclStmt(null,[q.StmtModifier.Final]));var j=q.importExpr(r.Identifiers.checkBinding).callFn([s.DetectChangesVars.throwOnChange,c,b]);h.needsValueUnwrapper&&(j=s.DetectChangesVars.valUnwrapper.prop("hasWrappedValue").or(j)),g.addStmt(new q.IfStmt(j,f.concat([q.THIS_EXPR.prop(c.name).set(b).toStmt()])))}}function g(a,b,c){var g=c.bindings.length;c.bindings.push(new w.CompileBinding(b,a));var h=e(g),i=d(g);c.detectChangesRenderPropertiesMethod.resetDebugInfo(b.nodeIndex,a),f(c,h,i,a.value,c.componentContext,[q.THIS_EXPR.prop("renderer").callMethod("setText",[b.renderNode,h]).toStmt()],c.detectChangesRenderPropertiesMethod)}function h(a,b,c){var g=c.view,h=c.renderNode;a.forEach(function(a){var j=g.bindings.length;g.bindings.push(new w.CompileBinding(c,a)),g.detectChangesRenderPropertiesMethod.resetDebugInfo(c.nodeIndex,a);var k,l=d(j),n=e(j),o=i(a,n),r=[];switch(a.type){case t.PropertyBindingType.Property:k="setElementProperty",g.genConfig.logBindingUpdate&&r.push(m(h,a.name,n));break;case t.PropertyBindingType.Attribute:k="setElementAttribute",o=o.isBlank().conditional(q.NULL_EXPR,o.callMethod("toString",[]));break;case t.PropertyBindingType.Class:k="setElementClass";break;case t.PropertyBindingType.Style:k="setElementStyle";var s=o.callMethod("toString",[]);p.isPresent(a.unit)&&(s=s.plus(q.literal(a.unit))),o=o.isBlank().conditional(q.NULL_EXPR,s)}r.push(q.THIS_EXPR.prop("renderer").callMethod(k,[h,q.literal(a.name),o]).toStmt()),f(g,n,l,a.value,b,r,g.detectChangesRenderPropertiesMethod)})}function i(a,b){var c;switch(a.securityContext){case n.SecurityContext.NONE:return b;case n.SecurityContext.HTML:c="HTML";break;case n.SecurityContext.STYLE:c="STYLE";break;case n.SecurityContext.SCRIPT:c="SCRIPT";break;case n.SecurityContext.URL:c="URL";break;case n.SecurityContext.RESOURCE_URL:c="RESOURCE_URL";break;default:throw new Error("internal error, unexpected SecurityContext "+a.securityContext+".")}var d=s.ViewProperties.viewUtils.prop("sanitizer"),e=[q.importExpr(r.Identifiers.SecurityContext).prop(c),b];return d.callMethod("sanitize",e)}function j(a,b){h(a,b.view.componentContext,b)}function k(a,b,c){h(a.hostProperties,b,c)}function l(a,b,c){if(0!==a.inputs.length){var g=c.view,h=g.detectChangesInInputsMethod;h.resetDebugInfo(c.nodeIndex,c.sourceAst);var i=a.directive.lifecycleHooks,j=-1!==i.indexOf(o.LifecycleHooks.OnChanges),k=a.directive.isComponent&&!o.isDefaultChangeDetectionStrategy(a.directive.changeDetection);j&&h.addStmt(s.DetectChangesVars.changes.set(q.NULL_EXPR).toStmt()),k&&h.addStmt(s.DetectChangesVars.changed.set(q.literal(!1)).toStmt()),a.inputs.forEach(function(a){var i=g.bindings.length;g.bindings.push(new w.CompileBinding(c,a)),h.resetDebugInfo(c.nodeIndex,a);var l=d(i),n=e(i),o=[b.prop(a.directiveName).set(n).toStmt()];j&&(o.push(new q.IfStmt(s.DetectChangesVars.changes.identical(q.NULL_EXPR),[s.DetectChangesVars.changes.set(q.literalMap([],new q.MapType(q.importType(r.Identifiers.SimpleChange)))).toStmt()])),o.push(s.DetectChangesVars.changes.key(q.literal(a.directiveName)).set(q.importExpr(r.Identifiers.SimpleChange).instantiate([l,n])).toStmt())),k&&o.push(s.DetectChangesVars.changed.set(q.literal(!0)).toStmt()),g.genConfig.logBindingUpdate&&o.push(m(c.renderNode,a.directiveName,n)),f(g,n,l,a.value,g.componentContext,o,h)}),k&&h.addStmt(new q.IfStmt(s.DetectChangesVars.changed,[c.appElement.prop("componentView").callMethod("markAsCheckOnce",[]).toStmt()]))}}function m(a,b,c){return q.THIS_EXPR.prop("renderer").callMethod("setBindingDebugInfo",[a,q.literal("ng-reflect-"+u.camelCaseToDashCase(b)),c.isBlank().conditional(q.NULL_EXPR,c.callMethod("toString",[]))]).toStmt()}var n=a("18"),o=a("18"),p=a("13"),q=a("f"),r=a("15"),s=a("42"),t=a("14"),u=a("10"),v=a("48"),w=a("49");return b.bindRenderText=g,b.bindRenderInputs=j,b.bindDirectiveHostProps=k,b.bindDirectiveInputs=l,c.exports}),a.registerDynamic("44",["13","e","f"],!0,function(a,b,c){"use strict";var d=a("13"),e=a("e"),f=a("f"),g=function(){function a(a,b){this.nodeIndex=a,this.sourceAst=b}return a}(),h=new g(null,null),i=function(){function a(a){this._view=a,this._newState=h,this._currState=h,this._bodyStatements=[],this._debugEnabled=this._view.genConfig.genDebugInfo}return a.prototype._updateDebugContextIfNeeded=function(){if(this._newState.nodeIndex!==this._currState.nodeIndex||this._newState.sourceAst!==this._currState.sourceAst){var a=this._updateDebugContext(this._newState);d.isPresent(a)&&this._bodyStatements.push(a.toStmt())}},a.prototype._updateDebugContext=function(a){if(this._currState=this._newState=a,this._debugEnabled){var b=d.isPresent(a.sourceAst)?a.sourceAst.sourceSpan.start:null;return f.THIS_EXPR.callMethod("debug",[f.literal(a.nodeIndex),d.isPresent(b)?f.literal(b.line):f.NULL_EXPR,d.isPresent(b)?f.literal(b.col):f.NULL_EXPR])}return null},a.prototype.resetDebugInfoExpr=function(a,b){var c=this._updateDebugContext(new g(a,b));return d.isPresent(c)?c:f.NULL_EXPR},a.prototype.resetDebugInfo=function(a,b){this._newState=new g(a,b)},a.prototype.addStmt=function(a){this._updateDebugContextIfNeeded(),this._bodyStatements.push(a)},a.prototype.addStmts=function(a){this._updateDebugContextIfNeeded(),e.ListWrapper.addAll(this._bodyStatements,a)},a.prototype.finish=function(){return this._bodyStatements},a.prototype.isEmpty=function(){return 0===this._bodyStatements.length},a}();return b.CompileMethod=i,c.exports}),a.registerDynamic("48",["d","13","f","15"],!0,function(a,b,c){"use strict";function d(a,b,c,d){var e=new q(a,b,d),f=c.visit(e,p.Expression);return new o(f,e.needsValueUnwrapper)}function e(a,b,c){var d=new q(a,b,null),e=[];return i(c.visit(d,p.Statement),e),e}function f(a,b){if(a!==p.Statement)throw new j.BaseException("Expected a statement, but saw "+b)}function g(a,b){if(a!==p.Expression)throw new j.BaseException("Expected an expression, but saw "+b)}function h(a,b){return a===p.Statement?b.toStmt():b}function i(a,b){k.isArray(a)?a.forEach(function(a){return i(a,b)}):b.push(a)}var j=a("d"),k=a("13"),l=a("f"),m=a("15"),n=l.variable("#implicit"),o=function(){function a(a,b){this.expression=a,this.needsValueUnwrapper=b}return a}();b.ExpressionWithWrappedValueInfo=o,b.convertCdExpressionToIr=d,b.convertCdStatementToIr=e;var p;!function(a){a[a.Statement=0]="Statement",a[a.Expression=1]="Expression"}(p||(p={}));var q=function(){function a(a,b,c){this._nameResolver=a,this._implicitReceiver=b,this._valueUnwrapper=c,this.needsValueUnwrapper=!1}return a.prototype.visitBinary=function(a,b){var c;switch(a.operation){case"+":c=l.BinaryOperator.Plus;break;case"-":c=l.BinaryOperator.Minus;break;case"*":c=l.BinaryOperator.Multiply;break;case"/":c=l.BinaryOperator.Divide;break;case"%":c=l.BinaryOperator.Modulo;break;case"&&":c=l.BinaryOperator.And;break;case"||":c=l.BinaryOperator.Or;break;case"==":c=l.BinaryOperator.Equals;break;case"!=":c=l.BinaryOperator.NotEquals;break;case"===":c=l.BinaryOperator.Identical;break;case"!==":c=l.BinaryOperator.NotIdentical;break;case"<":c=l.BinaryOperator.Lower;break;case">":c=l.BinaryOperator.Bigger;break;case"<=":c=l.BinaryOperator.LowerEquals;break;case">=":c=l.BinaryOperator.BiggerEquals;break;default:throw new j.BaseException("Unsupported operation "+a.operation)}return h(b,new l.BinaryOperatorExpr(c,a.left.visit(this,p.Expression),a.right.visit(this,p.Expression)))},a.prototype.visitChain=function(a,b){return f(b,a),this.visitAll(a.expressions,b)},a.prototype.visitConditional=function(a,b){var c=a.condition.visit(this,p.Expression);return h(b,c.conditional(a.trueExp.visit(this,p.Expression),a.falseExp.visit(this,p.Expression)))},a.prototype.visitPipe=function(a,b){var c=a.exp.visit(this,p.Expression),d=this.visitAll(a.args,p.Expression),e=this._nameResolver.callPipe(a.name,c,d);return this.needsValueUnwrapper=!0,h(b,this._valueUnwrapper.callMethod("unwrap",[e]))},a.prototype.visitFunctionCall=function(a,b){return h(b,a.target.visit(this,p.Expression).callFn(this.visitAll(a.args,p.Expression)))},a.prototype.visitImplicitReceiver=function(a,b){return g(b,a),n},a.prototype.visitInterpolation=function(a,b){g(b,a);for(var c=[l.literal(a.expressions.length)],d=0;d<a.strings.length-1;d++)c.push(l.literal(a.strings[d])),c.push(a.expressions[d].visit(this,p.Expression));return c.push(l.literal(a.strings[a.strings.length-1])),l.importExpr(m.Identifiers.interpolate).callFn(c)},a.prototype.visitKeyedRead=function(a,b){return h(b,a.obj.visit(this,p.Expression).key(a.key.visit(this,p.Expression)))},a.prototype.visitKeyedWrite=function(a,b){var c=a.obj.visit(this,p.Expression),d=a.key.visit(this,p.Expression),e=a.value.visit(this,p.Expression);return h(b,c.key(d).set(e))},a.prototype.visitLiteralArray=function(a,b){return h(b,this._nameResolver.createLiteralArray(this.visitAll(a.expressions,b)))},a.prototype.visitLiteralMap=function(a,b){for(var c=[],d=0;d<a.keys.length;d++)c.push([a.keys[d],a.values[d].visit(this,p.Expression)]);return h(b,this._nameResolver.createLiteralMap(c))},a.prototype.visitLiteralPrimitive=function(a,b){return h(b,l.literal(a.value))},a.prototype.visitMethodCall=function(a,b){var c=this.visitAll(a.args,p.Expression),d=null,e=a.receiver.visit(this,p.Expression);if(e===n){var f=this._nameResolver.getLocal(a.name);k.isPresent(f)?d=f.callFn(c):e=this._implicitReceiver}return k.isBlank(d)&&(d=e.callMethod(a.name,c)),h(b,d)},a.prototype.visitPrefixNot=function(a,b){return h(b,l.not(a.expression.visit(this,p.Expression)))},a.prototype.visitPropertyRead=function(a,b){var c=null,d=a.receiver.visit(this,p.Expression);return d===n&&(c=this._nameResolver.getLocal(a.name),k.isBlank(c)&&(d=this._implicitReceiver)),k.isBlank(c)&&(c=d.prop(a.name)),h(b,c)},a.prototype.visitPropertyWrite=function(a,b){var c=a.receiver.visit(this,p.Expression);if(c===n){var d=this._nameResolver.getLocal(a.name);if(k.isPresent(d))throw new j.BaseException("Cannot assign to a reference or variable!");c=this._implicitReceiver}return h(b,c.prop(a.name).set(a.value.visit(this,p.Expression)))},a.prototype.visitSafePropertyRead=function(a,b){var c=a.receiver.visit(this,p.Expression);return h(b,c.isBlank().conditional(l.NULL_EXPR,c.prop(a.name)))},a.prototype.visitSafeMethodCall=function(a,b){var c=a.receiver.visit(this,p.Expression),d=this.visitAll(a.args,p.Expression);return h(b,c.isBlank().conditional(l.NULL_EXPR,c.callMethod(a.name,d)))},a.prototype.visitAll=function(a,b){var c=this;return a.map(function(a){return a.visit(c,b)})},a.prototype.visitQuote=function(a,b){throw new j.BaseException("Quotes are not supported for evaluation!")},a}();return c.exports}),a.registerDynamic("49",[],!0,function(a,b,c){"use strict";var d=function(){function a(a,b){this.node=a,this.sourceAst=b}return a}();return b.CompileBinding=d,c.exports}),a.registerDynamic("4a",["13","e","42","f","44","48","49"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=[];return a.forEach(function(a){c.view.bindings.push(new o.CompileBinding(c,a));var b=p.getOrCreate(c,a.target,a.name,d);b.addAction(a,null,null)}),j.ListWrapper.forEachWithIndex(b,function(a,b){var e=c.directiveInstances[b];a.hostEvents.forEach(function(b){c.view.bindings.push(new o.CompileBinding(c,b));var f=p.getOrCreate(c,b.target,b.name,d);f.addAction(b,a.directive,e)})}),d.forEach(function(a){return a.finishMethod()}),d}function e(a,b,c){j.StringMapWrapper.forEach(a.directive.outputs,function(a,d){c.filter(function(b){return b.eventName==a}).forEach(function(a){a.listenToDirective(b,d)})})}function f(a){a.forEach(function(a){return a.listenToRenderer()})}function g(a){return a instanceof l.ExpressionStatement?a.expr:a instanceof l.ReturnStatement?a.value:null}function h(a){return i.StringWrapper.replaceAll(a,/[^a-zA-Z_]/g,"_")}var i=a("13"),j=a("e"),k=a("42"),l=a("f"),m=a("44"),n=a("48"),o=a("49"),p=function(){function a(a,b,c,d){this.compileElement=a,this.eventTarget=b,this.eventName=c,this._hasComponentHostListener=!1,this._actionResultExprs=[],this._method=new m.CompileMethod(a.view),this._methodName="_handle_"+h(c)+"_"+a.nodeIndex+"_"+d,this._eventParam=new l.FnParam(k.EventHandlerVars.event.name,l.importType(this.compileElement.view.genConfig.renderTypes.renderEvent))}return a.getOrCreate=function(b,c,d,e){var f=e.find(function(a){return a.eventTarget==c&&a.eventName==d});return i.isBlank(f)&&(f=new a(b,c,d,e.length),e.push(f)),f},a.prototype.addAction=function(a,b,c){i.isPresent(b)&&b.isComponent&&(this._hasComponentHostListener=!0),this._method.resetDebugInfo(this.compileElement.nodeIndex,a);var d=i.isPresent(c)?c:this.compileElement.view.componentContext,e=n.convertCdStatementToIr(this.compileElement.view,d,a.handler),f=e.length-1;if(f>=0){var h=e[f],j=g(h),k=l.variable("pd_"+this._actionResultExprs.length);this._actionResultExprs.push(k),i.isPresent(j)&&(e[f]=k.set(j.cast(l.DYNAMIC_TYPE).notIdentical(l.literal(!1))).toDeclStmt(null,[l.StmtModifier.Final]))}this._method.addStmts(e)},a.prototype.finishMethod=function(){var a=this._hasComponentHostListener?this.compileElement.appElement.prop("componentView"):l.THIS_EXPR,b=l.literal(!0);this._actionResultExprs.forEach(function(a){b=b.and(a)});var c=[a.callMethod("markPathToRootAsCheckOnce",[]).toStmt()].concat(this._method.finish()).concat([new l.ReturnStatement(b)]);this.compileElement.view.eventHandlerMethods.push(new l.ClassMethod(this._methodName,[this._eventParam],c,l.BOOL_TYPE,[l.StmtModifier.Private]))},a.prototype.listenToRenderer=function(){var a,b=l.THIS_EXPR.callMethod("eventHandler",[l.THIS_EXPR.prop(this._methodName).callMethod(l.BuiltinMethod.bind,[l.THIS_EXPR])]);a=i.isPresent(this.eventTarget)?k.ViewProperties.renderer.callMethod("listenGlobal",[l.literal(this.eventTarget),l.literal(this.eventName),b]):k.ViewProperties.renderer.callMethod("listen",[this.compileElement.renderNode,l.literal(this.eventName),b]);
|
||
var c=l.variable("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(c),this.compileElement.view.createMethod.addStmt(c.set(a).toDeclStmt(l.FUNCTION_TYPE,[l.StmtModifier.Private]))},a.prototype.listenToDirective=function(a,b){var c=l.variable("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(c);var d=l.THIS_EXPR.callMethod("eventHandler",[l.THIS_EXPR.prop(this._methodName).callMethod(l.BuiltinMethod.bind,[l.THIS_EXPR])]);this.compileElement.view.createMethod.addStmt(c.set(a.prop(b).callMethod(l.BuiltinMethod.SubscribeObservable,[d])).toDeclStmt(null,[l.StmtModifier.Final]))},a}();return b.CompileEventListener=p,b.collectEventListeners=d,b.bindDirectiveOutputs=e,b.bindRenderOutputs=f,c.exports}),a.registerDynamic("f",["13"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=new fa(a,b);return c.visitExpression(d,null)}function e(a){var b=new ga;return b.visitAllStatements(a,null),b.varNames}function f(a,b){return void 0===b&&(b=null),new y(a,b)}function g(a,b){return void 0===b&&(b=null),new G(a,null,b)}function h(a,b,c){return void 0===b&&(b=null),void 0===c&&(c=null),o.isPresent(a)?new s(a,b,c):null}function i(a,b){return void 0===b&&(b=null),new F(a,b)}function j(a,b){return void 0===b&&(b=null),new P(a,b)}function k(a,b){return void 0===b&&(b=null),new Q(a,b)}function l(a){return new I(a)}function m(a,b,c){return void 0===c&&(c=null),new L(a,b,c)}var n=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},o=a("13");!function(a){a[a.Const=0]="Const"}(b.TypeModifier||(b.TypeModifier={}));var p=(b.TypeModifier,function(){function a(a){void 0===a&&(a=null),this.modifiers=a,o.isBlank(a)&&(this.modifiers=[])}return a.prototype.hasModifier=function(a){return-1!==this.modifiers.indexOf(a)},a}());b.Type=p,function(a){a[a.Dynamic=0]="Dynamic",a[a.Bool=1]="Bool",a[a.String=2]="String",a[a.Int=3]="Int",a[a.Number=4]="Number",a[a.Function=5]="Function"}(b.BuiltinTypeName||(b.BuiltinTypeName={}));var q=b.BuiltinTypeName,r=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.name=b}return n(b,a),b.prototype.visitType=function(a,b){return a.visitBuiltintType(this,b)},b}(p);b.BuiltinType=r;var s=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,d),this.value=b,this.typeParams=c}return n(b,a),b.prototype.visitType=function(a,b){return a.visitExternalType(this,b)},b}(p);b.ExternalType=s;var t=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.of=b}return n(b,a),b.prototype.visitType=function(a,b){return a.visitArrayType(this,b)},b}(p);b.ArrayType=t;var u=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.valueType=b}return n(b,a),b.prototype.visitType=function(a,b){return a.visitMapType(this,b)},b}(p);b.MapType=u,b.DYNAMIC_TYPE=new r(q.Dynamic),b.BOOL_TYPE=new r(q.Bool),b.INT_TYPE=new r(q.Int),b.NUMBER_TYPE=new r(q.Number),b.STRING_TYPE=new r(q.String),b.FUNCTION_TYPE=new r(q.Function),function(a){a[a.Equals=0]="Equals",a[a.NotEquals=1]="NotEquals",a[a.Identical=2]="Identical",a[a.NotIdentical=3]="NotIdentical",a[a.Minus=4]="Minus",a[a.Plus=5]="Plus",a[a.Divide=6]="Divide",a[a.Multiply=7]="Multiply",a[a.Modulo=8]="Modulo",a[a.And=9]="And",a[a.Or=10]="Or",a[a.Lower=11]="Lower",a[a.LowerEquals=12]="LowerEquals",a[a.Bigger=13]="Bigger",a[a.BiggerEquals=14]="BiggerEquals"}(b.BinaryOperator||(b.BinaryOperator={}));var v=b.BinaryOperator,w=function(){function a(a){this.type=a}return a.prototype.prop=function(a){return new N(this,a)},a.prototype.key=function(a,b){return void 0===b&&(b=null),new O(this,a,b)},a.prototype.callMethod=function(a,b){return new C(this,a,b)},a.prototype.callFn=function(a){return new D(this,a)},a.prototype.instantiate=function(a,b){return void 0===b&&(b=null),new E(this,a,b)},a.prototype.conditional=function(a,b){return void 0===b&&(b=null),new H(this,a,b)},a.prototype.equals=function(a){return new M(v.Equals,this,a)},a.prototype.notEquals=function(a){return new M(v.NotEquals,this,a)},a.prototype.identical=function(a){return new M(v.Identical,this,a)},a.prototype.notIdentical=function(a){return new M(v.NotIdentical,this,a)},a.prototype.minus=function(a){return new M(v.Minus,this,a)},a.prototype.plus=function(a){return new M(v.Plus,this,a)},a.prototype.divide=function(a){return new M(v.Divide,this,a)},a.prototype.multiply=function(a){return new M(v.Multiply,this,a)},a.prototype.modulo=function(a){return new M(v.Modulo,this,a)},a.prototype.and=function(a){return new M(v.And,this,a)},a.prototype.or=function(a){return new M(v.Or,this,a)},a.prototype.lower=function(a){return new M(v.Lower,this,a)},a.prototype.lowerEquals=function(a){return new M(v.LowerEquals,this,a)},a.prototype.bigger=function(a){return new M(v.Bigger,this,a)},a.prototype.biggerEquals=function(a){return new M(v.BiggerEquals,this,a)},a.prototype.isBlank=function(){return this.equals(b.NULL_EXPR)},a.prototype.cast=function(a){return new J(this,a)},a.prototype.toStmt=function(){return new U(this)},a}();b.Expression=w,function(a){a[a.This=0]="This",a[a.Super=1]="Super",a[a.CatchError=2]="CatchError",a[a.CatchStack=3]="CatchStack"}(b.BuiltinVar||(b.BuiltinVar={}));var x=b.BuiltinVar,y=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),o.isString(b)?(this.name=b,this.builtin=null):(this.name=null,this.builtin=b)}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitReadVarExpr(this,b)},b.prototype.set=function(a){return new z(this.name,a)},b}(w);b.ReadVarExpr=y;var z=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,o.isPresent(d)?d:c.type),this.name=b,this.value=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitWriteVarExpr(this,b)},b.prototype.toDeclStmt=function(a,b){return void 0===a&&(a=null),void 0===b&&(b=null),new S(this.name,this.value,a,b)},b}(w);b.WriteVarExpr=z;var A=function(a){function b(b,c,d,e){void 0===e&&(e=null),a.call(this,o.isPresent(e)?e:d.type),this.receiver=b,this.index=c,this.value=d}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitWriteKeyExpr(this,b)},b}(w);b.WriteKeyExpr=A;var B=function(a){function b(b,c,d,e){void 0===e&&(e=null),a.call(this,o.isPresent(e)?e:d.type),this.receiver=b,this.name=c,this.value=d}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitWritePropExpr(this,b)},b}(w);b.WritePropExpr=B,function(a){a[a.ConcatArray=0]="ConcatArray",a[a.SubscribeObservable=1]="SubscribeObservable",a[a.bind=2]="bind"}(b.BuiltinMethod||(b.BuiltinMethod={}));var C=(b.BuiltinMethod,function(a){function b(b,c,d,e){void 0===e&&(e=null),a.call(this,e),this.receiver=b,this.args=d,o.isString(c)?(this.name=c,this.builtin=null):(this.name=null,this.builtin=c)}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitInvokeMethodExpr(this,b)},b}(w));b.InvokeMethodExpr=C;var D=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.fn=b,this.args=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitInvokeFunctionExpr(this,b)},b}(w);b.InvokeFunctionExpr=D;var E=function(a){function b(b,c,d){a.call(this,d),this.classExpr=b,this.args=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitInstantiateExpr(this,b)},b}(w);b.InstantiateExpr=E;var F=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.value=b}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralExpr(this,b)},b}(w);b.LiteralExpr=F;var G=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,c),this.value=b,this.typeParams=d}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitExternalExpr(this,b)},b}(w);b.ExternalExpr=G;var H=function(a){function b(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,o.isPresent(e)?e:c.type),this.condition=b,this.falseCase=d,this.trueCase=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitConditionalExpr(this,b)},b}(w);b.ConditionalExpr=H;var I=function(a){function c(c){a.call(this,b.BOOL_TYPE),this.condition=c}return n(c,a),c.prototype.visitExpression=function(a,b){return a.visitNotExpr(this,b)},c}(w);b.NotExpr=I;var J=function(a){function b(b,c){a.call(this,c),this.value=b}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitCastExpr(this,b)},b}(w);b.CastExpr=J;var K=function(){function a(a,b){void 0===b&&(b=null),this.name=a,this.type=b}return a}();b.FnParam=K;var L=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.params=b,this.statements=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitFunctionExpr(this,b)},b.prototype.toDeclStmt=function(a,b){return void 0===b&&(b=null),new T(a,this.params,this.statements,this.type,b)},b}(w);b.FunctionExpr=L;var M=function(a){function b(b,c,d,e){void 0===e&&(e=null),a.call(this,o.isPresent(e)?e:c.type),this.operator=b,this.rhs=d,this.lhs=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitBinaryOperatorExpr(this,b)},b}(w);b.BinaryOperatorExpr=M;var N=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.receiver=b,this.name=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitReadPropExpr(this,b)},b.prototype.set=function(a){return new B(this.receiver,this.name,a)},b}(w);b.ReadPropExpr=N;var O=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.receiver=b,this.index=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitReadKeyExpr(this,b)},b.prototype.set=function(a){return new A(this.receiver,this.index,a)},b}(w);b.ReadKeyExpr=O;var P=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.entries=b}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralArrayExpr(this,b)},b}(w);b.LiteralArrayExpr=P;var Q=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.entries=b,this.valueType=null,o.isPresent(c)&&(this.valueType=c.valueType)}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralMapExpr(this,b)},b}(w);b.LiteralMapExpr=Q,b.THIS_EXPR=new y(x.This),b.SUPER_EXPR=new y(x.Super),b.CATCH_ERROR_VAR=new y(x.CatchError),b.CATCH_STACK_VAR=new y(x.CatchStack),b.NULL_EXPR=new F(null,null),function(a){a[a.Final=0]="Final",a[a.Private=1]="Private"}(b.StmtModifier||(b.StmtModifier={}));var R=(b.StmtModifier,function(){function a(a){void 0===a&&(a=null),this.modifiers=a,o.isBlank(a)&&(this.modifiers=[])}return a.prototype.hasModifier=function(a){return-1!==this.modifiers.indexOf(a)},a}());b.Statement=R;var S=function(a){function b(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,e),this.name=b,this.value=c,this.type=o.isPresent(d)?d:c.type}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitDeclareVarStmt(this,b)},b}(R);b.DeclareVarStmt=S;var T=function(a){function b(b,c,d,e,f){void 0===e&&(e=null),void 0===f&&(f=null),a.call(this,f),this.name=b,this.params=c,this.statements=d,this.type=e}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitDeclareFunctionStmt(this,b)},b}(R);b.DeclareFunctionStmt=T;var U=function(a){function b(b){a.call(this),this.expr=b}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitExpressionStmt(this,b)},b}(R);b.ExpressionStatement=U;var V=function(a){function b(b){a.call(this),this.value=b}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitReturnStmt(this,b)},b}(R);b.ReturnStatement=V;var W=function(){function a(a,b){void 0===a&&(a=null),this.type=a,this.modifiers=b,o.isBlank(b)&&(this.modifiers=[])}return a.prototype.hasModifier=function(a){return-1!==this.modifiers.indexOf(a)},a}();b.AbstractClassPart=W;var X=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,c,d),this.name=b}return n(b,a),b}(W);b.ClassField=X;var Y=function(a){function b(b,c,d,e,f){void 0===e&&(e=null),void 0===f&&(f=null),a.call(this,e,f),this.name=b,this.params=c,this.body=d}return n(b,a),b}(W);b.ClassMethod=Y;var Z=function(a){function b(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,d,e),this.name=b,this.body=c}return n(b,a),b}(W);b.ClassGetter=Z;var $=function(a){function b(b,c,d,e,f,g,h){void 0===h&&(h=null),a.call(this,h),this.name=b,this.parent=c,this.fields=d,this.getters=e,this.constructorMethod=f,this.methods=g}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitDeclareClassStmt(this,b)},b}(R);b.ClassStmt=$;var _=function(a){function b(b,c,d){void 0===d&&(d=[]),a.call(this),this.condition=b,this.trueCase=c,this.falseCase=d}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitIfStmt(this,b)},b}(R);b.IfStmt=_;var aa=function(a){function b(b){a.call(this),this.comment=b}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitCommentStmt(this,b)},b}(R);b.CommentStmt=aa;var ba=function(a){function b(b,c){a.call(this),this.bodyStmts=b,this.catchStmts=c}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitTryCatchStmt(this,b)},b}(R);b.TryCatchStmt=ba;var ca=function(a){function b(b){a.call(this),this.error=b}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitThrowStmt(this,b)},b}(R);b.ThrowStmt=ca;var da=function(){function a(){}return a.prototype.visitReadVarExpr=function(a,b){return a},a.prototype.visitWriteVarExpr=function(a,b){return new z(a.name,a.value.visitExpression(this,b))},a.prototype.visitWriteKeyExpr=function(a,b){return new A(a.receiver.visitExpression(this,b),a.index.visitExpression(this,b),a.value.visitExpression(this,b))},a.prototype.visitWritePropExpr=function(a,b){return new B(a.receiver.visitExpression(this,b),a.name,a.value.visitExpression(this,b))},a.prototype.visitInvokeMethodExpr=function(a,b){var c=o.isPresent(a.builtin)?a.builtin:a.name;return new C(a.receiver.visitExpression(this,b),c,this.visitAllExpressions(a.args,b),a.type)},a.prototype.visitInvokeFunctionExpr=function(a,b){return new D(a.fn.visitExpression(this,b),this.visitAllExpressions(a.args,b),a.type)},a.prototype.visitInstantiateExpr=function(a,b){return new E(a.classExpr.visitExpression(this,b),this.visitAllExpressions(a.args,b),a.type)},a.prototype.visitLiteralExpr=function(a,b){return a},a.prototype.visitExternalExpr=function(a,b){return a},a.prototype.visitConditionalExpr=function(a,b){return new H(a.condition.visitExpression(this,b),a.trueCase.visitExpression(this,b),a.falseCase.visitExpression(this,b))},a.prototype.visitNotExpr=function(a,b){return new I(a.condition.visitExpression(this,b))},a.prototype.visitCastExpr=function(a,b){return new J(a.value.visitExpression(this,b),b)},a.prototype.visitFunctionExpr=function(a,b){return a},a.prototype.visitBinaryOperatorExpr=function(a,b){return new M(a.operator,a.lhs.visitExpression(this,b),a.rhs.visitExpression(this,b),a.type)},a.prototype.visitReadPropExpr=function(a,b){return new N(a.receiver.visitExpression(this,b),a.name,a.type)},a.prototype.visitReadKeyExpr=function(a,b){return new O(a.receiver.visitExpression(this,b),a.index.visitExpression(this,b),a.type)},a.prototype.visitLiteralArrayExpr=function(a,b){return new P(this.visitAllExpressions(a.entries,b))},a.prototype.visitLiteralMapExpr=function(a,b){var c=this;return new Q(a.entries.map(function(a){return[a[0],a[1].visitExpression(c,b)]}))},a.prototype.visitAllExpressions=function(a,b){var c=this;return a.map(function(a){return a.visitExpression(c,b)})},a.prototype.visitDeclareVarStmt=function(a,b){return new S(a.name,a.value.visitExpression(this,b),a.type,a.modifiers)},a.prototype.visitDeclareFunctionStmt=function(a,b){return a},a.prototype.visitExpressionStmt=function(a,b){return new U(a.expr.visitExpression(this,b))},a.prototype.visitReturnStmt=function(a,b){return new V(a.value.visitExpression(this,b))},a.prototype.visitDeclareClassStmt=function(a,b){return a},a.prototype.visitIfStmt=function(a,b){return new _(a.condition.visitExpression(this,b),this.visitAllStatements(a.trueCase,b),this.visitAllStatements(a.falseCase,b))},a.prototype.visitTryCatchStmt=function(a,b){return new ba(this.visitAllStatements(a.bodyStmts,b),this.visitAllStatements(a.catchStmts,b))},a.prototype.visitThrowStmt=function(a,b){return new ca(a.error.visitExpression(this,b))},a.prototype.visitCommentStmt=function(a,b){return a},a.prototype.visitAllStatements=function(a,b){var c=this;return a.map(function(a){return a.visitStatement(c,b)})},a}();b.ExpressionTransformer=da;var ea=function(){function a(){}return a.prototype.visitReadVarExpr=function(a,b){return a},a.prototype.visitWriteVarExpr=function(a,b){return a.value.visitExpression(this,b),a},a.prototype.visitWriteKeyExpr=function(a,b){return a.receiver.visitExpression(this,b),a.index.visitExpression(this,b),a.value.visitExpression(this,b),a},a.prototype.visitWritePropExpr=function(a,b){return a.receiver.visitExpression(this,b),a.value.visitExpression(this,b),a},a.prototype.visitInvokeMethodExpr=function(a,b){return a.receiver.visitExpression(this,b),this.visitAllExpressions(a.args,b),a},a.prototype.visitInvokeFunctionExpr=function(a,b){return a.fn.visitExpression(this,b),this.visitAllExpressions(a.args,b),a},a.prototype.visitInstantiateExpr=function(a,b){return a.classExpr.visitExpression(this,b),this.visitAllExpressions(a.args,b),a},a.prototype.visitLiteralExpr=function(a,b){return a},a.prototype.visitExternalExpr=function(a,b){return a},a.prototype.visitConditionalExpr=function(a,b){return a.condition.visitExpression(this,b),a.trueCase.visitExpression(this,b),a.falseCase.visitExpression(this,b),a},a.prototype.visitNotExpr=function(a,b){return a.condition.visitExpression(this,b),a},a.prototype.visitCastExpr=function(a,b){return a.value.visitExpression(this,b),a},a.prototype.visitFunctionExpr=function(a,b){return a},a.prototype.visitBinaryOperatorExpr=function(a,b){return a.lhs.visitExpression(this,b),a.rhs.visitExpression(this,b),a},a.prototype.visitReadPropExpr=function(a,b){return a.receiver.visitExpression(this,b),a},a.prototype.visitReadKeyExpr=function(a,b){return a.receiver.visitExpression(this,b),a.index.visitExpression(this,b),a},a.prototype.visitLiteralArrayExpr=function(a,b){return this.visitAllExpressions(a.entries,b),a},a.prototype.visitLiteralMapExpr=function(a,b){var c=this;return a.entries.forEach(function(a){return a[1].visitExpression(c,b)}),a},a.prototype.visitAllExpressions=function(a,b){var c=this;a.forEach(function(a){return a.visitExpression(c,b)})},a.prototype.visitDeclareVarStmt=function(a,b){return a.value.visitExpression(this,b),a},a.prototype.visitDeclareFunctionStmt=function(a,b){return a},a.prototype.visitExpressionStmt=function(a,b){return a.expr.visitExpression(this,b),a},a.prototype.visitReturnStmt=function(a,b){return a.value.visitExpression(this,b),a},a.prototype.visitDeclareClassStmt=function(a,b){return a},a.prototype.visitIfStmt=function(a,b){return a.condition.visitExpression(this,b),this.visitAllStatements(a.trueCase,b),this.visitAllStatements(a.falseCase,b),a},a.prototype.visitTryCatchStmt=function(a,b){return this.visitAllStatements(a.bodyStmts,b),this.visitAllStatements(a.catchStmts,b),a},a.prototype.visitThrowStmt=function(a,b){return a.error.visitExpression(this,b),a},a.prototype.visitCommentStmt=function(a,b){return a},a.prototype.visitAllStatements=function(a,b){var c=this;a.forEach(function(a){return a.visitStatement(c,b)})},a}();b.RecursiveExpressionVisitor=ea,b.replaceVarInExpression=d;var fa=function(a){function b(b,c){a.call(this),this._varName=b,this._newValue=c}return n(b,a),b.prototype.visitReadVarExpr=function(a,b){return a.name==this._varName?this._newValue:a},b}(da);b.findReadVarNames=e;var ga=function(a){function b(){a.apply(this,arguments),this.varNames=new Set}return n(b,a),b.prototype.visitReadVarExpr=function(a,b){return this.varNames.add(a.name),null},b}(ea);return b.variable=f,b.importExpr=g,b.importType=h,b.literal=i,b.literalArr=j,b.literalMap=k,b.not=l,b.fn=m,c.exports}),a.registerDynamic("42",["11","18","13","c","f","15"],!0,function(a,b,c){"use strict";function d(a,b){if(g.isBlank(b))return i.NULL_EXPR;var c=g.resolveEnumToken(a.runtime,b);return i.importExpr(new h.CompileIdentifierMetadata({name:a.name+"."+c,moduleUrl:a.moduleUrl,runtime:b}))}var e=a("11"),f=a("18"),g=a("13"),h=a("c"),i=a("f"),j=a("15"),k=function(){function a(){}return a.fromValue=function(a){return d(j.Identifiers.ViewType,a)},a.HOST=a.fromValue(f.ViewType.HOST),a.COMPONENT=a.fromValue(f.ViewType.COMPONENT),a.EMBEDDED=a.fromValue(f.ViewType.EMBEDDED),a}();b.ViewTypeEnum=k;var l=function(){function a(){}return a.fromValue=function(a){return d(j.Identifiers.ViewEncapsulation,a)},a.Emulated=a.fromValue(e.ViewEncapsulation.Emulated),a.Native=a.fromValue(e.ViewEncapsulation.Native),a.None=a.fromValue(e.ViewEncapsulation.None),a}();b.ViewEncapsulationEnum=l;var m=function(){function a(){}return a.fromValue=function(a){return d(j.Identifiers.ChangeDetectorState,a)},a.NeverChecked=a.fromValue(f.ChangeDetectorState.NeverChecked),a.CheckedBefore=a.fromValue(f.ChangeDetectorState.CheckedBefore),a.Errored=a.fromValue(f.ChangeDetectorState.Errored),a}();b.ChangeDetectorStateEnum=m;var n=function(){function a(){}return a.fromValue=function(a){return d(j.Identifiers.ChangeDetectionStrategy,a)},a.CheckOnce=a.fromValue(e.ChangeDetectionStrategy.CheckOnce),a.Checked=a.fromValue(e.ChangeDetectionStrategy.Checked),a.CheckAlways=a.fromValue(e.ChangeDetectionStrategy.CheckAlways),a.Detached=a.fromValue(e.ChangeDetectionStrategy.Detached),a.OnPush=a.fromValue(e.ChangeDetectionStrategy.OnPush),a.Default=a.fromValue(e.ChangeDetectionStrategy.Default),a}();b.ChangeDetectionStrategyEnum=n;var o=function(){function a(){}return a.viewUtils=i.variable("viewUtils"),a.parentInjector=i.variable("parentInjector"),a.declarationEl=i.variable("declarationEl"),a}();b.ViewConstructorVars=o;var p=function(){function a(){}return a.renderer=i.THIS_EXPR.prop("renderer"),a.projectableNodes=i.THIS_EXPR.prop("projectableNodes"),a.viewUtils=i.THIS_EXPR.prop("viewUtils"),a}();b.ViewProperties=p;var q=function(){function a(){}return a.event=i.variable("$event"),a}();b.EventHandlerVars=q;var r=function(){function a(){}return a.token=i.variable("token"),a.requestNodeIndex=i.variable("requestNodeIndex"),a.notFoundResult=i.variable("notFoundResult"),a}();b.InjectMethodVars=r;var s=function(){function a(){}return a.throwOnChange=i.variable("throwOnChange"),a.changes=i.variable("changes"),a.changed=i.variable("changed"),a.valUnwrapper=i.variable("valUnwrapper"),a}();return b.DetectChangesVars=s,c.exports}),a.registerDynamic("4b",["18","f","42"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=c.view,e=d.detectChangesInInputsMethod,f=a.directive.lifecycleHooks;-1!==f.indexOf(i.LifecycleHooks.OnChanges)&&a.inputs.length>0&&e.addStmt(new j.IfStmt(k.DetectChangesVars.changes.notIdentical(j.NULL_EXPR),[b.callMethod("ngOnChanges",[k.DetectChangesVars.changes]).toStmt()])),-1!==f.indexOf(i.LifecycleHooks.OnInit)&&e.addStmt(new j.IfStmt(l.and(m),[b.callMethod("ngOnInit",[]).toStmt()])),-1!==f.indexOf(i.LifecycleHooks.DoCheck)&&e.addStmt(new j.IfStmt(m,[b.callMethod("ngDoCheck",[]).toStmt()]))}function e(a,b,c){var d=c.view,e=a.lifecycleHooks,f=d.afterContentLifecycleCallbacksMethod;f.resetDebugInfo(c.nodeIndex,c.sourceAst),-1!==e.indexOf(i.LifecycleHooks.AfterContentInit)&&f.addStmt(new j.IfStmt(l,[b.callMethod("ngAfterContentInit",[]).toStmt()])),-1!==e.indexOf(i.LifecycleHooks.AfterContentChecked)&&f.addStmt(b.callMethod("ngAfterContentChecked",[]).toStmt())}function f(a,b,c){var d=c.view,e=a.lifecycleHooks,f=d.afterViewLifecycleCallbacksMethod;f.resetDebugInfo(c.nodeIndex,c.sourceAst),-1!==e.indexOf(i.LifecycleHooks.AfterViewInit)&&f.addStmt(new j.IfStmt(l,[b.callMethod("ngAfterViewInit",[]).toStmt()])),-1!==e.indexOf(i.LifecycleHooks.AfterViewChecked)&&f.addStmt(b.callMethod("ngAfterViewChecked",[]).toStmt())}function g(a,b,c){var d=c.view.destroyMethod;d.resetDebugInfo(c.nodeIndex,c.sourceAst),-1!==a.lifecycleHooks.indexOf(i.LifecycleHooks.OnDestroy)&&d.addStmt(b.callMethod("ngOnDestroy",[]).toStmt())}function h(a,b,c){var d=c.destroyMethod;-1!==a.lifecycleHooks.indexOf(i.LifecycleHooks.OnDestroy)&&d.addStmt(b.callMethod("ngOnDestroy",[]).toStmt())}var i=a("18"),j=a("f"),k=a("42"),l=j.THIS_EXPR.prop("cdState").identical(k.ChangeDetectorStateEnum.NeverChecked),m=j.not(k.DetectChangesVars.throwOnChange);return b.bindDirectiveDetectChangesLifecycleCallbacks=d,b.bindDirectiveAfterContentLifecycleCallbacks=e,b.bindDirectiveAfterViewLifecycleCallbacks=f,b.bindDirectiveDestroyLifecycleCallbacks=g,b.bindPipeDestroyLifecycleCallbacks=h,c.exports}),a.registerDynamic("4c",["e","14","47","4a","4b"],!0,function(a,b,c){"use strict";function d(a,b){var c=new j(a);f.templateVisitAll(c,b),a.pipes.forEach(function(a){i.bindPipeDestroyLifecycleCallbacks(a.meta,a.instance,a.view)})}var e=a("e"),f=a("14"),g=a("47"),h=a("4a"),i=a("4b");b.bindView=d;var j=function(){function a(a){this.view=a,this._nodeIndex=0}return a.prototype.visitBoundText=function(a,b){var c=this.view.nodes[this._nodeIndex++];return g.bindRenderText(a,c,this.view),null},a.prototype.visitText=function(a,b){return this._nodeIndex++,null},a.prototype.visitNgContent=function(a,b){return null},a.prototype.visitElement=function(a,b){var c=this.view.nodes[this._nodeIndex++],d=h.collectEventListeners(a.outputs,a.directives,c);return g.bindRenderInputs(a.inputs,c),h.bindRenderOutputs(d),e.ListWrapper.forEachWithIndex(a.directives,function(a,b){var e=c.directiveInstances[b];g.bindDirectiveInputs(a,e,c),i.bindDirectiveDetectChangesLifecycleCallbacks(a,e,c),g.bindDirectiveHostProps(a,e,c),h.bindDirectiveOutputs(a,e,d)}),f.templateVisitAll(this,a.children,c),e.ListWrapper.forEachWithIndex(a.directives,function(a,b){var d=c.directiveInstances[b];i.bindDirectiveAfterContentLifecycleCallbacks(a.directive,d,c),i.bindDirectiveAfterViewLifecycleCallbacks(a.directive,d,c),i.bindDirectiveDestroyLifecycleCallbacks(a.directive,d,c)}),null},a.prototype.visitEmbeddedTemplate=function(a,b){var c=this.view.nodes[this._nodeIndex++],f=h.collectEventListeners(a.outputs,a.directives,c);return e.ListWrapper.forEachWithIndex(a.directives,function(a,b){var d=c.directiveInstances[b];g.bindDirectiveInputs(a,d,c),i.bindDirectiveDetectChangesLifecycleCallbacks(a,d,c),h.bindDirectiveOutputs(a,d,f),i.bindDirectiveAfterContentLifecycleCallbacks(a.directive,d,c),i.bindDirectiveAfterViewLifecycleCallbacks(a.directive,d,c),i.bindDirectiveDestroyLifecycleCallbacks(a.directive,d,c)}),d(c.embeddedView,a.children),null},a.prototype.visitAttr=function(a,b){return null},a.prototype.visitDirective=function(a,b){return null},a.prototype.visitEvent=function(a,b){return null},a.prototype.visitReference=function(a,b){return null},a.prototype.visitVariable=function(a,b){return null},a.prototype.visitDirectiveProperty=function(a,b){return null},a.prototype.visitElementProperty=function(a,b){return null},a}();return c.exports}),a.registerDynamic("38",["11","13"],!0,function(a,b,c){"use strict";function d(){return new o}function e(){return new o(n)}function f(a){var b=h(a);return b&&b[p.Scheme]||""}function g(a,b,c,d,e,f,g){var h=[];return m.isPresent(a)&&h.push(a+":"),m.isPresent(c)&&(h.push("//"),m.isPresent(b)&&h.push(b+"@"),h.push(c),m.isPresent(d)&&h.push(":"+d)),m.isPresent(e)&&h.push(e),m.isPresent(f)&&h.push("?"+f),m.isPresent(g)&&h.push("#"+g),h.join("")}function h(a){return m.RegExpWrapper.firstMatch(q,a)}function i(a){if("/"==a)return"/";for(var b="/"==a[0]?"/":"",c="/"===a[a.length-1]?"/":"",d=a.split("/"),e=[],f=0,g=0;g<d.length;g++){var h=d[g];switch(h){case"":case".":break;case"..":e.length>0?e.pop():f++;break;default:e.push(h)}}if(""==b){for(;f-- >0;)e.unshift("..");0===e.length&&e.push(".")}return b+e.join("/")+c}function j(a){var b=a[p.Path];return b=m.isBlank(b)?"":i(b),a[p.Path]=b,g(a[p.Scheme],a[p.UserInfo],a[p.Domain],a[p.Port],b,a[p.QueryData],a[p.Fragment])}function k(a,b){var c=h(encodeURI(b)),d=h(a);if(m.isPresent(c[p.Scheme]))return j(c);c[p.Scheme]=d[p.Scheme];for(var e=p.Scheme;e<=p.Port;e++)m.isBlank(c[e])&&(c[e]=d[e]);if("/"==c[p.Path][0])return j(c);var f=d[p.Path];m.isBlank(f)&&(f="/");var g=f.lastIndexOf("/");return f=f.substring(0,g+1)+c[p.Path],c[p.Path]=f,j(c)}var l=a("11"),m=a("13"),n="asset:";b.createUrlResolverWithoutPackagePrefix=d,b.createOfflineCompileUrlResolver=e,b.DEFAULT_PACKAGE_URL_PROVIDER={provide:l.PACKAGE_ROOT_URL,useValue:"/"};var o=function(){function a(a){void 0===a&&(a=null),this._packagePrefix=a}return a.prototype.resolve=function(a,b){var c=b;m.isPresent(a)&&a.length>0&&(c=k(a,c));var d=h(c),e=this._packagePrefix;if(m.isPresent(e)&&m.isPresent(d)&&"package"==d[p.Scheme]){var f=d[p.Path];if(this._packagePrefix!==n)return e=m.StringWrapper.stripRight(e,"/"),f=m.StringWrapper.stripLeft(f,"/"),e+"/"+f;var g=f.split(/\//);c="asset:"+g[0]+"/lib/"+g.slice(1).join("/")}return c},a.decorators=[{type:l.Injectable}],a.ctorParameters=[{type:void 0,decorators:[{type:l.Inject,args:[l.PACKAGE_ROOT_URL]}]}],a}();b.UrlResolver=o,b.getUrlScheme=f;var p,q=m.RegExpWrapper.create("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");return function(a){a[a.Scheme=1]="Scheme",a[a.UserInfo=2]="UserInfo",a[a.Domain=3]="Domain",a[a.Port=4]="Port",a[a.Path=5]="Path",a[a.QueryData=6]="QueryData",a[a.Fragment=7]="Fragment"}(p||(p={})),c.exports}),a.registerDynamic("c",["11","18","13","d","e","1d","10","38"],!0,function(a,b,c){"use strict";function d(a){return H[a["class"]](a)}function e(a,b){var c=q.CssSelector.parse(b)[0].getMatchingElementTemplate();return F.create({type:new C({runtime:Object,name:a.name+"_Host",moduleUrl:a.moduleUrl,isHost:!0}),template:new E({template:c,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[]}),changeDetection:l.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},lifecycleHooks:[],isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function f(a,b){return n.isBlank(a)?null:a.map(function(a){return h(a,b)})}function g(a){return n.isBlank(a)?null:a.map(i)}function h(a,b){return n.isArray(a)?f(a,b):n.isString(a)||n.isBlank(a)||n.isBoolean(a)||n.isNumber(a)?a:b(a)}function i(a){return n.isArray(a)?g(a):n.isString(a)||n.isBlank(a)||n.isBoolean(a)||n.isNumber(a)?a:a.toJson()}function j(a){return n.isPresent(a)?a:[]}var k=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l=a("11"),m=a("18"),n=a("13"),o=a("d"),p=a("e"),q=a("1d"),r=a("10"),s=a("38"),t=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))$/g,u=function(){function a(){}return Object.defineProperty(a.prototype,"identifier",{get:function(){return o.unimplemented()},enumerable:!0,configurable:!0}),a}();b.CompileMetadataWithIdentifier=u;var v=function(a){function b(){a.apply(this,arguments)}return k(b,a),Object.defineProperty(b.prototype,"type",{get:function(){return o.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"identifier",{get:function(){return o.unimplemented()},enumerable:!0,configurable:!0}),b}(u);b.CompileMetadataWithType=v,b.metadataFromJson=d;var w=function(){function a(a){var b=void 0===a?{}:a,c=b.runtime,d=b.name,e=b.moduleUrl,f=b.prefix,g=b.value;this.runtime=c,this.name=d,this.prefix=f,this.moduleUrl=e,this.value=g}return a.fromJson=function(b){var c=n.isArray(b.value)?f(b.value,d):h(b.value,d);return new a({name:b.name,prefix:b.prefix,moduleUrl:b.moduleUrl,value:c})},a.prototype.toJson=function(){var a=n.isArray(this.value)?g(this.value):i(this.value);return{"class":"Identifier",name:this.name,moduleUrl:this.moduleUrl,prefix:this.prefix,value:a}},Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),a;
|
||
}();b.CompileIdentifierMetadata=w;var x=function(){function a(a){var b=void 0===a?{}:a,c=b.isAttribute,d=b.isSelf,e=b.isHost,f=b.isSkipSelf,g=b.isOptional,h=b.isValue,i=b.query,j=b.viewQuery,k=b.token,l=b.value;this.isAttribute=n.normalizeBool(c),this.isSelf=n.normalizeBool(d),this.isHost=n.normalizeBool(e),this.isSkipSelf=n.normalizeBool(f),this.isOptional=n.normalizeBool(g),this.isValue=n.normalizeBool(h),this.query=i,this.viewQuery=j,this.token=k,this.value=l}return a.fromJson=function(b){return new a({token:h(b.token,A.fromJson),query:h(b.query,D.fromJson),viewQuery:h(b.viewQuery,D.fromJson),value:b.value,isAttribute:b.isAttribute,isSelf:b.isSelf,isHost:b.isHost,isSkipSelf:b.isSkipSelf,isOptional:b.isOptional,isValue:b.isValue})},a.prototype.toJson=function(){return{token:i(this.token),query:i(this.query),viewQuery:i(this.viewQuery),value:this.value,isAttribute:this.isAttribute,isSelf:this.isSelf,isHost:this.isHost,isSkipSelf:this.isSkipSelf,isOptional:this.isOptional,isValue:this.isValue}},a}();b.CompileDiDependencyMetadata=x;var y=function(){function a(a){var b=a.token,c=a.useClass,d=a.useValue,e=a.useExisting,f=a.useFactory,g=a.deps,h=a.multi;this.token=b,this.useClass=c,this.useValue=d,this.useExisting=e,this.useFactory=f,this.deps=n.normalizeBlank(g),this.multi=n.normalizeBool(h)}return a.fromJson=function(b){return new a({token:h(b.token,A.fromJson),useClass:h(b.useClass,C.fromJson),useExisting:h(b.useExisting,A.fromJson),useValue:h(b.useValue,w.fromJson),useFactory:h(b.useFactory,z.fromJson),multi:b.multi,deps:f(b.deps,x.fromJson)})},a.prototype.toJson=function(){return{"class":"Provider",token:i(this.token),useClass:i(this.useClass),useExisting:i(this.useExisting),useValue:i(this.useValue),useFactory:i(this.useFactory),multi:this.multi,deps:g(this.deps)}},a}();b.CompileProviderMetadata=y;var z=function(){function a(a){var b=a.runtime,c=a.name,d=a.moduleUrl,e=a.prefix,f=a.diDeps,g=a.value;this.runtime=b,this.name=c,this.prefix=e,this.moduleUrl=d,this.diDeps=j(f),this.value=g}return Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),a.fromJson=function(b){return new a({name:b.name,prefix:b.prefix,moduleUrl:b.moduleUrl,value:b.value,diDeps:f(b.diDeps,x.fromJson)})},a.prototype.toJson=function(){return{"class":"Factory",name:this.name,prefix:this.prefix,moduleUrl:this.moduleUrl,value:this.value,diDeps:g(this.diDeps)}},a}();b.CompileFactoryMetadata=z;var A=function(){function a(a){var b=a.value,c=a.identifier,d=a.identifierIsInstance;this.value=b,this.identifier=c,this.identifierIsInstance=n.normalizeBool(d)}return a.fromJson=function(b){return new a({value:b.value,identifier:h(b.identifier,w.fromJson),identifierIsInstance:b.identifierIsInstance})},a.prototype.toJson=function(){return{value:this.value,identifier:i(this.identifier),identifierIsInstance:this.identifierIsInstance}},Object.defineProperty(a.prototype,"runtimeCacheKey",{get:function(){return n.isPresent(this.identifier)?this.identifier.runtime:this.value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"assetCacheKey",{get:function(){return n.isPresent(this.identifier)?n.isPresent(this.identifier.moduleUrl)&&n.isPresent(s.getUrlScheme(this.identifier.moduleUrl))?this.identifier.name+"|"+this.identifier.moduleUrl+"|"+this.identifierIsInstance:null:this.value},enumerable:!0,configurable:!0}),a.prototype.equalsTo=function(a){var b=this.runtimeCacheKey,c=this.assetCacheKey;return n.isPresent(b)&&b==a.runtimeCacheKey||n.isPresent(c)&&c==a.assetCacheKey},Object.defineProperty(a.prototype,"name",{get:function(){return n.isPresent(this.value)?r.sanitizeIdentifier(this.value):this.identifier.name},enumerable:!0,configurable:!0}),a}();b.CompileTokenMetadata=A;var B=function(){function a(){this._valueMap=new Map,this._values=[]}return a.prototype.add=function(a,b){var c=this.get(a);if(n.isPresent(c))throw new o.BaseException("Can only add to a TokenMap! Token: "+a.name);this._values.push(b);var d=a.runtimeCacheKey;n.isPresent(d)&&this._valueMap.set(d,b);var e=a.assetCacheKey;n.isPresent(e)&&this._valueMap.set(e,b)},a.prototype.get=function(a){var b,c=a.runtimeCacheKey,d=a.assetCacheKey;return n.isPresent(c)&&(b=this._valueMap.get(c)),n.isBlank(b)&&n.isPresent(d)&&(b=this._valueMap.get(d)),b},a.prototype.values=function(){return this._values},Object.defineProperty(a.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),a}();b.CompileTokenMap=B;var C=function(){function a(a){var b=void 0===a?{}:a,c=b.runtime,d=b.name,e=b.moduleUrl,f=b.prefix,g=b.isHost,h=b.value,i=b.diDeps;this.runtime=c,this.name=d,this.moduleUrl=e,this.prefix=f,this.isHost=n.normalizeBool(g),this.value=h,this.diDeps=j(i)}return a.fromJson=function(b){return new a({name:b.name,moduleUrl:b.moduleUrl,prefix:b.prefix,isHost:b.isHost,value:b.value,diDeps:f(b.diDeps,x.fromJson)})},Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"type",{get:function(){return this},enumerable:!0,configurable:!0}),a.prototype.toJson=function(){return{"class":"Type",name:this.name,moduleUrl:this.moduleUrl,prefix:this.prefix,isHost:this.isHost,value:this.value,diDeps:g(this.diDeps)}},a}();b.CompileTypeMetadata=C;var D=function(){function a(a){var b=void 0===a?{}:a,c=b.selectors,d=b.descendants,e=b.first,f=b.propertyName,g=b.read;this.selectors=c,this.descendants=n.normalizeBool(d),this.first=n.normalizeBool(e),this.propertyName=f,this.read=g}return a.fromJson=function(b){return new a({selectors:f(b.selectors,A.fromJson),descendants:b.descendants,first:b.first,propertyName:b.propertyName,read:h(b.read,A.fromJson)})},a.prototype.toJson=function(){return{selectors:g(this.selectors),descendants:this.descendants,first:this.first,propertyName:this.propertyName,read:i(this.read)}},a}();b.CompileQueryMetadata=D;var E=function(){function a(a){var b=void 0===a?{}:a,c=b.encapsulation,d=b.template,e=b.templateUrl,f=b.styles,g=b.styleUrls,h=b.ngContentSelectors;this.encapsulation=n.isPresent(c)?c:l.ViewEncapsulation.Emulated,this.template=d,this.templateUrl=e,this.styles=n.isPresent(f)?f:[],this.styleUrls=n.isPresent(g)?g:[],this.ngContentSelectors=n.isPresent(h)?h:[]}return a.fromJson=function(b){return new a({encapsulation:n.isPresent(b.encapsulation)?m.VIEW_ENCAPSULATION_VALUES[b.encapsulation]:b.encapsulation,template:b.template,templateUrl:b.templateUrl,styles:b.styles,styleUrls:b.styleUrls,ngContentSelectors:b.ngContentSelectors})},a.prototype.toJson=function(){return{encapsulation:n.isPresent(this.encapsulation)?n.serializeEnum(this.encapsulation):this.encapsulation,template:this.template,templateUrl:this.templateUrl,styles:this.styles,styleUrls:this.styleUrls,ngContentSelectors:this.ngContentSelectors}},a}();b.CompileTemplateMetadata=E;var F=function(){function a(a){var b=void 0===a?{}:a,c=b.type,d=b.isComponent,e=b.selector,f=b.exportAs,g=b.changeDetection,h=b.inputs,i=b.outputs,k=b.hostListeners,l=b.hostProperties,m=b.hostAttributes,n=b.lifecycleHooks,o=b.providers,p=b.viewProviders,q=b.queries,r=b.viewQueries,s=b.template;this.type=c,this.isComponent=d,this.selector=e,this.exportAs=f,this.changeDetection=g,this.inputs=h,this.outputs=i,this.hostListeners=k,this.hostProperties=l,this.hostAttributes=m,this.lifecycleHooks=j(n),this.providers=j(o),this.viewProviders=j(p),this.queries=j(q),this.viewQueries=j(r),this.template=s}return a.create=function(b){var c=void 0===b?{}:b,d=c.type,e=c.isComponent,f=c.selector,g=c.exportAs,h=c.changeDetection,i=c.inputs,j=c.outputs,k=c.host,l=c.lifecycleHooks,m=c.providers,o=c.viewProviders,q=c.queries,s=c.viewQueries,u=c.template,v={},w={},x={};n.isPresent(k)&&p.StringMapWrapper.forEach(k,function(a,b){var c=n.RegExpWrapper.firstMatch(t,b);n.isBlank(c)?x[b]=a:n.isPresent(c[1])?w[c[1]]=a:n.isPresent(c[2])&&(v[c[2]]=a)});var y={};n.isPresent(i)&&i.forEach(function(a){var b=r.splitAtColon(a,[a,a]);y[b[0]]=b[1]});var z={};return n.isPresent(j)&&j.forEach(function(a){var b=r.splitAtColon(a,[a,a]);z[b[0]]=b[1]}),new a({type:d,isComponent:n.normalizeBool(e),selector:f,exportAs:g,changeDetection:h,inputs:y,outputs:z,hostListeners:v,hostProperties:w,hostAttributes:x,lifecycleHooks:n.isPresent(l)?l:[],providers:m,viewProviders:o,queries:q,viewQueries:s,template:u})},Object.defineProperty(a.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),a.fromJson=function(b){return new a({isComponent:b.isComponent,selector:b.selector,exportAs:b.exportAs,type:n.isPresent(b.type)?C.fromJson(b.type):b.type,changeDetection:n.isPresent(b.changeDetection)?m.CHANGE_DETECTION_STRATEGY_VALUES[b.changeDetection]:b.changeDetection,inputs:b.inputs,outputs:b.outputs,hostListeners:b.hostListeners,hostProperties:b.hostProperties,hostAttributes:b.hostAttributes,lifecycleHooks:b.lifecycleHooks.map(function(a){return m.LIFECYCLE_HOOKS_VALUES[a]}),template:n.isPresent(b.template)?E.fromJson(b.template):b.template,providers:f(b.providers,d),viewProviders:f(b.viewProviders,d),queries:f(b.queries,D.fromJson),viewQueries:f(b.viewQueries,D.fromJson)})},a.prototype.toJson=function(){return{"class":"Directive",isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,type:n.isPresent(this.type)?this.type.toJson():this.type,changeDetection:n.isPresent(this.changeDetection)?n.serializeEnum(this.changeDetection):this.changeDetection,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,lifecycleHooks:this.lifecycleHooks.map(function(a){return n.serializeEnum(a)}),template:n.isPresent(this.template)?this.template.toJson():this.template,providers:g(this.providers),viewProviders:g(this.viewProviders),queries:g(this.queries),viewQueries:g(this.viewQueries)}},a}();b.CompileDirectiveMetadata=F,b.createHostComponentMeta=e;var G=function(){function a(a){var b=void 0===a?{}:a,c=b.type,d=b.name,e=b.pure,f=b.lifecycleHooks;this.type=c,this.name=d,this.pure=n.normalizeBool(e),this.lifecycleHooks=j(f)}return Object.defineProperty(a.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),a.fromJson=function(b){return new a({type:n.isPresent(b.type)?C.fromJson(b.type):b.type,name:b.name,pure:b.pure})},a.prototype.toJson=function(){return{"class":"Pipe",type:n.isPresent(this.type)?this.type.toJson():null,name:this.name,pure:this.pure}},a}();b.CompilePipeMetadata=G;var H={Directive:F.fromJson,Pipe:G.fromJson,Type:C.fromJson,Provider:y.fromJson,Identifier:w.fromJson,Factory:z.fromJson};return c.exports}),a.registerDynamic("10",["13","e"],!0,function(a,b,c){"use strict";function d(a){return j.StringWrapper.replaceAllMapped(a,l,function(a){return"-"+a[1].toLowerCase()})}function e(a){return j.StringWrapper.replaceAllMapped(a,m,function(a){return a[1].toUpperCase()})}function f(a,b){var c=j.StringWrapper.split(a.trim(),/\s*:\s*/g);return c.length>1?c:b}function g(a){return j.StringWrapper.replaceAll(a,/\W/g,"_")}function h(a,b,c){return j.isArray(a)?b.visitArray(a,c):j.isStrictStringMap(a)?b.visitStringMap(a,c):j.isBlank(a)||j.isPrimitive(a)?b.visitPrimitive(a,c):b.visitOther(a,c)}function i(a,b,c){return void 0===b&&(b=null),void 0===c&&(c="src"),j.IS_DART?null==b?"asset:angular2/"+a+"/"+a+".dart":"asset:angular2/lib/"+a+"/src/"+b+".dart":null==b?"asset:@angular/lib/"+a+"/index":"asset:@angular/lib/"+a+"/src/"+b}var j=a("13"),k=a("e");b.MODULE_SUFFIX=j.IS_DART?".dart":"";var l=/([A-Z])/g,m=/-([a-z])/g;b.camelCaseToDashCase=d,b.dashCaseToCamelCase=e,b.splitAtColon=f,b.sanitizeIdentifier=g,b.visitValue=h;var n=function(){function a(){}return a.prototype.visitArray=function(a,b){var c=this;return a.map(function(a){return h(a,c,b)})},a.prototype.visitStringMap=function(a,b){var c=this,d={};return k.StringMapWrapper.forEach(a,function(a,e){d[e]=h(a,c,b)}),d},a.prototype.visitPrimitive=function(a,b){return a},a.prototype.visitOther=function(a,b){return a},a}();return b.ValueTransformer=n,b.assetUrl=i,c.exports}),a.registerDynamic("15",["11","18","c","10"],!0,function(a,b,c){"use strict";function d(a){return new h.CompileTokenMetadata({identifier:a})}var e=a("11"),f=a("18"),g=a("18"),h=a("c"),i=a("10"),j=i.assetUrl("core","linker/view"),k=i.assetUrl("core","linker/view_utils"),l=i.assetUrl("core","change_detection/change_detection"),m=g.ViewUtils,n=g.AppView,o=g.DebugAppView,p=g.DebugContext,q=g.AppElement,r=e.ElementRef,s=e.ViewContainerRef,t=e.ChangeDetectorRef,u=e.RenderComponentType,v=e.QueryList,w=e.TemplateRef,x=g.TemplateRef_,y=g.ValueUnwrapper,z=e.Injector,A=e.ViewEncapsulation,B=g.ViewType,C=e.ChangeDetectionStrategy,D=g.StaticNodeDebugInfo,E=e.Renderer,F=e.SimpleChange,G=g.uninitialized,H=g.ChangeDetectorState,I=g.flattenNestedViewRenderNodes,J=g.devModeEqual,K=g.interpolate,L=g.checkBinding,M=g.castByValue,N=g.EMPTY_ARRAY,O=g.EMPTY_MAP,P=function(){function a(){}return a.ViewUtils=new h.CompileIdentifierMetadata({name:"ViewUtils",moduleUrl:i.assetUrl("core","linker/view_utils"),runtime:m}),a.AppView=new h.CompileIdentifierMetadata({name:"AppView",moduleUrl:j,runtime:n}),a.DebugAppView=new h.CompileIdentifierMetadata({name:"DebugAppView",moduleUrl:j,runtime:o}),a.AppElement=new h.CompileIdentifierMetadata({name:"AppElement",moduleUrl:i.assetUrl("core","linker/element"),runtime:q}),a.ElementRef=new h.CompileIdentifierMetadata({name:"ElementRef",moduleUrl:i.assetUrl("core","linker/element_ref"),runtime:r}),a.ViewContainerRef=new h.CompileIdentifierMetadata({name:"ViewContainerRef",moduleUrl:i.assetUrl("core","linker/view_container_ref"),runtime:s}),a.ChangeDetectorRef=new h.CompileIdentifierMetadata({name:"ChangeDetectorRef",moduleUrl:i.assetUrl("core","change_detection/change_detector_ref"),runtime:t}),a.RenderComponentType=new h.CompileIdentifierMetadata({name:"RenderComponentType",moduleUrl:i.assetUrl("core","render/api"),runtime:u}),a.QueryList=new h.CompileIdentifierMetadata({name:"QueryList",moduleUrl:i.assetUrl("core","linker/query_list"),runtime:v}),a.TemplateRef=new h.CompileIdentifierMetadata({name:"TemplateRef",moduleUrl:i.assetUrl("core","linker/template_ref"),runtime:w}),a.TemplateRef_=new h.CompileIdentifierMetadata({name:"TemplateRef_",moduleUrl:i.assetUrl("core","linker/template_ref"),runtime:x}),a.ValueUnwrapper=new h.CompileIdentifierMetadata({name:"ValueUnwrapper",moduleUrl:l,runtime:y}),a.Injector=new h.CompileIdentifierMetadata({name:"Injector",moduleUrl:i.assetUrl("core","di/injector"),runtime:z}),a.ViewEncapsulation=new h.CompileIdentifierMetadata({name:"ViewEncapsulation",moduleUrl:i.assetUrl("core","metadata/view"),runtime:A}),a.ViewType=new h.CompileIdentifierMetadata({name:"ViewType",moduleUrl:i.assetUrl("core","linker/view_type"),runtime:B}),a.ChangeDetectionStrategy=new h.CompileIdentifierMetadata({name:"ChangeDetectionStrategy",moduleUrl:l,runtime:C}),a.StaticNodeDebugInfo=new h.CompileIdentifierMetadata({name:"StaticNodeDebugInfo",moduleUrl:i.assetUrl("core","linker/debug_context"),runtime:D}),a.DebugContext=new h.CompileIdentifierMetadata({name:"DebugContext",moduleUrl:i.assetUrl("core","linker/debug_context"),runtime:p}),a.Renderer=new h.CompileIdentifierMetadata({name:"Renderer",moduleUrl:i.assetUrl("core","render/api"),runtime:E}),a.SimpleChange=new h.CompileIdentifierMetadata({name:"SimpleChange",moduleUrl:l,runtime:F}),a.uninitialized=new h.CompileIdentifierMetadata({name:"uninitialized",moduleUrl:l,runtime:G}),a.ChangeDetectorState=new h.CompileIdentifierMetadata({name:"ChangeDetectorState",moduleUrl:l,runtime:H}),a.checkBinding=new h.CompileIdentifierMetadata({name:"checkBinding",moduleUrl:k,runtime:L}),a.flattenNestedViewRenderNodes=new h.CompileIdentifierMetadata({name:"flattenNestedViewRenderNodes",moduleUrl:k,runtime:I}),a.devModeEqual=new h.CompileIdentifierMetadata({name:"devModeEqual",moduleUrl:l,runtime:J}),a.interpolate=new h.CompileIdentifierMetadata({name:"interpolate",moduleUrl:k,runtime:K}),a.castByValue=new h.CompileIdentifierMetadata({name:"castByValue",moduleUrl:k,runtime:M}),a.EMPTY_ARRAY=new h.CompileIdentifierMetadata({name:"EMPTY_ARRAY",moduleUrl:k,runtime:N}),a.EMPTY_MAP=new h.CompileIdentifierMetadata({name:"EMPTY_MAP",moduleUrl:k,runtime:O}),a.pureProxies=[null,new h.CompileIdentifierMetadata({name:"pureProxy1",moduleUrl:k,runtime:g.pureProxy1}),new h.CompileIdentifierMetadata({name:"pureProxy2",moduleUrl:k,runtime:g.pureProxy2}),new h.CompileIdentifierMetadata({name:"pureProxy3",moduleUrl:k,runtime:g.pureProxy3}),new h.CompileIdentifierMetadata({name:"pureProxy4",moduleUrl:k,runtime:g.pureProxy4}),new h.CompileIdentifierMetadata({name:"pureProxy5",moduleUrl:k,runtime:g.pureProxy5}),new h.CompileIdentifierMetadata({name:"pureProxy6",moduleUrl:k,runtime:g.pureProxy6}),new h.CompileIdentifierMetadata({name:"pureProxy7",moduleUrl:k,runtime:g.pureProxy7}),new h.CompileIdentifierMetadata({name:"pureProxy8",moduleUrl:k,runtime:g.pureProxy8}),new h.CompileIdentifierMetadata({name:"pureProxy9",moduleUrl:k,runtime:g.pureProxy9}),new h.CompileIdentifierMetadata({name:"pureProxy10",moduleUrl:k,runtime:g.pureProxy10})],a.SecurityContext=new h.CompileIdentifierMetadata({name:"SecurityContext",moduleUrl:i.assetUrl("core","security"),runtime:f.SecurityContext}),a}();return b.Identifiers=P,b.identifierToken=d,c.exports}),a.registerDynamic("30",["13","d","15"],!0,function(a,b,c){"use strict";var d=a("13"),e=a("d"),f=a("15"),g=function(){function a(a,b,c,e){void 0===e&&(e=null),this.genDebugInfo=a,this.logBindingUpdate=b,this.useJit=c,d.isBlank(e)&&(e=new i),this.renderTypes=e}return a}();b.CompilerConfig=g;var h=function(){function a(){}return Object.defineProperty(a.prototype,"renderer",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderText",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderElement",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderComment",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderNode",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderEvent",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),a}();b.RenderTypes=h;var i=function(){function a(){this.renderer=f.Identifiers.Renderer,this.renderText=null,this.renderElement=null,this.renderComment=null,this.renderNode=null,this.renderEvent=null}return a}();return b.DefaultRenderTypes=i,c.exports}),a.registerDynamic("2d",["11","45","41","46","4c","30"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("45"),f=a("41"),g=a("46"),h=a("4c"),i=a("30"),j=function(){function a(a,b,c){this.statements=a,this.viewFactoryVar=b,this.dependencies=c}return a}();b.ViewCompileResult=j;var k=function(){function a(a){this._genConfig=a}return a.prototype.compileComponent=function(a,b,c,d){var i=[],k=[],l=new f.CompileView(a,this._genConfig,d,c,0,e.CompileElement.createNull(),[]);return g.buildView(l,b,k),h.bindView(l,b),g.finishView(l,i),new j(i,l.viewFactory.name,k)},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:i.CompilerConfig}],a}();return b.ViewCompiler=k,c.exports}),a.registerDynamic("18",["11"],!0,function(a,b,c){"use strict";var d=a("11");return b.isDefaultChangeDetectionStrategy=d.__core_private__.isDefaultChangeDetectionStrategy,b.ChangeDetectorState=d.__core_private__.ChangeDetectorState,b.CHANGE_DETECTION_STRATEGY_VALUES=d.__core_private__.CHANGE_DETECTION_STRATEGY_VALUES,b.constructDependencies=d.__core_private__.constructDependencies,b.LifecycleHooks=d.__core_private__.LifecycleHooks,b.LIFECYCLE_HOOKS_VALUES=d.__core_private__.LIFECYCLE_HOOKS_VALUES,b.ReflectorReader=d.__core_private__.ReflectorReader,b.ReflectorComponentResolver=d.__core_private__.ReflectorComponentResolver,b.AppElement=d.__core_private__.AppElement,b.AppView=d.__core_private__.AppView,b.DebugAppView=d.__core_private__.DebugAppView,b.ViewType=d.__core_private__.ViewType,b.MAX_INTERPOLATION_VALUES=d.__core_private__.MAX_INTERPOLATION_VALUES,b.checkBinding=d.__core_private__.checkBinding,b.flattenNestedViewRenderNodes=d.__core_private__.flattenNestedViewRenderNodes,b.interpolate=d.__core_private__.interpolate,b.ViewUtils=d.__core_private__.ViewUtils,b.VIEW_ENCAPSULATION_VALUES=d.__core_private__.VIEW_ENCAPSULATION_VALUES,b.DebugContext=d.__core_private__.DebugContext,b.StaticNodeDebugInfo=d.__core_private__.StaticNodeDebugInfo,b.devModeEqual=d.__core_private__.devModeEqual,b.uninitialized=d.__core_private__.uninitialized,b.ValueUnwrapper=d.__core_private__.ValueUnwrapper,b.TemplateRef_=d.__core_private__.TemplateRef_,b.RenderDebugInfo=d.__core_private__.RenderDebugInfo,b.SecurityContext=d.__core_private__.SecurityContext,b.SanitizationService=d.__core_private__.SanitizationService,b.createProvider=d.__core_private__.createProvider,b.isProviderLiteral=d.__core_private__.isProviderLiteral,b.EMPTY_ARRAY=d.__core_private__.EMPTY_ARRAY,b.EMPTY_MAP=d.__core_private__.EMPTY_MAP,b.pureProxy1=d.__core_private__.pureProxy1,b.pureProxy2=d.__core_private__.pureProxy2,b.pureProxy3=d.__core_private__.pureProxy3,b.pureProxy4=d.__core_private__.pureProxy4,b.pureProxy5=d.__core_private__.pureProxy5,b.pureProxy6=d.__core_private__.pureProxy6,b.pureProxy7=d.__core_private__.pureProxy7,b.pureProxy8=d.__core_private__.pureProxy8,b.pureProxy9=d.__core_private__.pureProxy9,b.pureProxy10=d.__core_private__.pureProxy10,b.castByValue=d.__core_private__.castByValue,b.Console=d.__core_private__.Console,c.exports}),a.registerDynamic("1e",[],!0,function(a,b,c){"use strict";var d=function(){function a(){}return a}();return b.ElementSchemaRegistry=d,c.exports}),a.registerDynamic("4d",["11","18","13","e","1e"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("18"),g=a("13"),h=a("e"),i=a("1e"),j="boolean",k="number",l="string",m="object",n=["*|%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","^*|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*autocomplete,*autocompleteerror,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,#volume","@svg:^*|*abort,*autocomplete,*autocompleteerror,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex","@svg:graphics^@svg:|","@svg:animation^@svg:|*begin,*end,*repeat","@svg:geometry^@svg:|","@svg:componentTransferFunction^@svg:|","@svg:gradient^@svg:|","@svg:textContent^@svg:graphics|","@svg:textPositioning^@svg:textContent|","a|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,rel,rev,search,shape,target,text,type,username","area|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,search,shape,target,username","audio^media|","br|clear","base|href,target","body|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas|#height,#width","content|select","dl|!compact","datalist|","details|!open","dialog|!open,returnValue","dir|!compact","div|align","embed|align,height,name,src,type,width","fieldset|!disabled,name","font|color,face,size","form|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr|align,color,!noShade,size,width","head|","h1,h2,h3,h4,h5,h6|align","html|version","iframe|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,%sandbox,scrolling,src,srcdoc,width","img|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,sizes,src,srcset,useMap,#vspace,#width","input|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen|!autofocus,challenge,!disabled,keytype,name","li|type,#value","label|htmlFor","legend|align","link|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map|name","marquee|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu|!compact","meta|content,httpEquiv,name,scheme","meter|#high,#low,#max,#min,#optimum,#value","ins,del|cite,dateTime","ol|!compact,!reversed,#start,type","object|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup|!disabled,label","option|!defaultSelected,!disabled,label,!selected,text,value","output|defaultValue,%htmlFor,name,value","p|align","param|name,type,value,valueType","picture|","pre|#width","progress|#max,#value","q,blockquote,cite|","script|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow|","source|media,sizes,src,srcset,type","span|","style|!disabled,media,type","caption|align","th,td|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup|align,ch,chOff,#span,vAlign,width","table|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody|align,ch,chOff,vAlign","template|","textarea|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title|text","track|!default,kind,label,src,srclang","ul|!compact,type","unknown|","video^media|#height,poster,#width","@svg:a^@svg:graphics|","@svg:animate^@svg:animation|","@svg:animateMotion^@svg:animation|","@svg:animateTransform^@svg:animation|","@svg:circle^@svg:geometry|","@svg:clipPath^@svg:graphics|","@svg:cursor^@svg:|","@svg:defs^@svg:graphics|","@svg:desc^@svg:|","@svg:discard^@svg:|","@svg:ellipse^@svg:geometry|","@svg:feBlend^@svg:|","@svg:feColorMatrix^@svg:|","@svg:feComponentTransfer^@svg:|","@svg:feComposite^@svg:|","@svg:feConvolveMatrix^@svg:|","@svg:feDiffuseLighting^@svg:|","@svg:feDisplacementMap^@svg:|","@svg:feDistantLight^@svg:|","@svg:feDropShadow^@svg:|","@svg:feFlood^@svg:|","@svg:feFuncA^@svg:componentTransferFunction|","@svg:feFuncB^@svg:componentTransferFunction|","@svg:feFuncG^@svg:componentTransferFunction|","@svg:feFuncR^@svg:componentTransferFunction|","@svg:feGaussianBlur^@svg:|","@svg:feImage^@svg:|","@svg:feMerge^@svg:|","@svg:feMergeNode^@svg:|","@svg:feMorphology^@svg:|","@svg:feOffset^@svg:|","@svg:fePointLight^@svg:|","@svg:feSpecularLighting^@svg:|","@svg:feSpotLight^@svg:|","@svg:feTile^@svg:|","@svg:feTurbulence^@svg:|","@svg:filter^@svg:|","@svg:foreignObject^@svg:graphics|","@svg:g^@svg:graphics|","@svg:image^@svg:graphics|","@svg:line^@svg:geometry|","@svg:linearGradient^@svg:gradient|","@svg:mpath^@svg:|","@svg:marker^@svg:|","@svg:mask^@svg:|","@svg:metadata^@svg:|","@svg:path^@svg:geometry|","@svg:pattern^@svg:|","@svg:polygon^@svg:geometry|","@svg:polyline^@svg:geometry|","@svg:radialGradient^@svg:gradient|","@svg:rect^@svg:geometry|","@svg:svg^@svg:graphics|#currentScale,#zoomAndPan","@svg:script^@svg:|type","@svg:set^@svg:animation|","@svg:stop^@svg:|","@svg:style^@svg:|!disabled,media,title,type","@svg:switch^@svg:graphics|","@svg:symbol^@svg:|","@svg:tspan^@svg:textPositioning|","@svg:text^@svg:textPositioning|","@svg:textPath^@svg:textContent|","@svg:title^@svg:|","@svg:use^@svg:graphics|","@svg:view^@svg:|#zoomAndPan"],o={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},p=function(a){function b(){var b=this;a.call(this),this.schema={},n.forEach(function(a){var c=a.split("|"),d=c[1].split(","),e=(c[0]+"^").split("^"),f=e[0],i={};f.split(",").forEach(function(a){return b.schema[a]=i});var n=b.schema[e[1]];g.isPresent(n)&&h.StringMapWrapper.forEach(n,function(a,b){return i[b]=a}),d.forEach(function(a){""==a||a.startsWith("*")||(a.startsWith("!")?i[a.substring(1)]=j:a.startsWith("#")?i[a.substring(1)]=k:a.startsWith("%")?i[a.substring(1)]=m:i[a]=l)})})}return d(b,a),b.prototype.hasProperty=function(a,b){if(-1!==a.indexOf("-"))return!0;var c=this.schema[a.toLowerCase()];return g.isPresent(c)||(c=this.schema.unknown),g.isPresent(c[b])},b.prototype.securityContext=function(a,b){return"style"===b?f.SecurityContext.STYLE:"a"===a&&"href"===b?f.SecurityContext.URL:"innerHTML"===b?f.SecurityContext.HTML:f.SecurityContext.NONE},b.prototype.getMappedPropName=function(a){var b=h.StringMapWrapper.get(o,a);return g.isPresent(b)?b:a},b.decorators=[{type:e.Injectable}],b.ctorParameters=[],b}(i.ElementSchemaRegistry);return b.DomElementSchemaRegistry=p,c.exports}),a.registerDynamic("19",["e","22"],!0,function(a,b,c){return function(c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("e"),f=function(){function a(){}return a.prototype.visit=function(a,b){return void 0===b&&(b=null),null},a.prototype.toString=function(){return"AST"},a}();b.AST=f;var g=function(a){function b(b,c,d){a.call(this),this.prefix=b,this.uninterpretedExpression=c,this.location=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitQuote(this,b)},b.prototype.toString=function(){return"Quote"},b}(f);b.Quote=g;
|
||
var h=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.visit=function(a,b){void 0===b&&(b=null)},b}(f);b.EmptyExpr=h;var i=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitImplicitReceiver(this,b)},b}(f);b.ImplicitReceiver=i;var j=function(a){function b(b){a.call(this),this.expressions=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitChain(this,b)},b}(f);b.Chain=j;var k=function(a){function b(b,c,d){a.call(this),this.condition=b,this.trueExp=c,this.falseExp=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitConditional(this,b)},b}(f);b.Conditional=k;var l=function(a){function b(b,c){a.call(this),this.receiver=b,this.name=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPropertyRead(this,b)},b}(f);b.PropertyRead=l;var m=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.value=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPropertyWrite(this,b)},b}(f);b.PropertyWrite=m;var n=function(a){function b(b,c){a.call(this),this.receiver=b,this.name=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafePropertyRead(this,b)},b}(f);b.SafePropertyRead=n;var o=function(a){function b(b,c){a.call(this),this.obj=b,this.key=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedRead(this,b)},b}(f);b.KeyedRead=o;var p=function(a){function b(b,c,d){a.call(this),this.obj=b,this.key=c,this.value=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedWrite(this,b)},b}(f);b.KeyedWrite=p;var q=function(a){function b(b,c,d){a.call(this),this.exp=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPipe(this,b)},b}(f);b.BindingPipe=q;var r=function(a){function b(b){a.call(this),this.value=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralPrimitive(this,b)},b}(f);b.LiteralPrimitive=r;var s=function(a){function b(b){a.call(this),this.expressions=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralArray(this,b)},b}(f);b.LiteralArray=s;var t=function(a){function b(b,c){a.call(this),this.keys=b,this.values=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralMap(this,b)},b}(f);b.LiteralMap=t;var u=function(a){function b(b,c){a.call(this),this.strings=b,this.expressions=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitInterpolation(this,b)},b}(f);b.Interpolation=u;var v=function(a){function b(b,c,d){a.call(this),this.operation=b,this.left=c,this.right=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitBinary(this,b)},b}(f);b.Binary=v;var w=function(a){function b(b){a.call(this),this.expression=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPrefixNot(this,b)},b}(f);b.PrefixNot=w;var x=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitMethodCall(this,b)},b}(f);b.MethodCall=x;var y=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafeMethodCall(this,b)},b}(f);b.SafeMethodCall=y;var z=function(a){function b(b,c){a.call(this),this.target=b,this.args=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitFunctionCall(this,b)},b}(f);b.FunctionCall=z;var A=function(a){function b(b,c,d){a.call(this),this.ast=b,this.source=c,this.location=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),this.ast.visit(a,b)},b.prototype.toString=function(){return this.source+" in "+this.location},b}(f);b.ASTWithSource=A;var B=function(){function a(a,b,c,d){this.key=a,this.keyIsVar=b,this.name=c,this.expression=d}return a}();b.TemplateBinding=B;var C=function(){function a(){}return a.prototype.visitBinary=function(a,b){return a.left.visit(this),a.right.visit(this),null},a.prototype.visitChain=function(a,b){return this.visitAll(a.expressions,b)},a.prototype.visitConditional=function(a,b){return a.condition.visit(this),a.trueExp.visit(this),a.falseExp.visit(this),null},a.prototype.visitPipe=function(a,b){return a.exp.visit(this),this.visitAll(a.args,b),null},a.prototype.visitFunctionCall=function(a,b){return a.target.visit(this),this.visitAll(a.args,b),null},a.prototype.visitImplicitReceiver=function(a,b){return null},a.prototype.visitInterpolation=function(a,b){return this.visitAll(a.expressions,b)},a.prototype.visitKeyedRead=function(a,b){return a.obj.visit(this),a.key.visit(this),null},a.prototype.visitKeyedWrite=function(a,b){return a.obj.visit(this),a.key.visit(this),a.value.visit(this),null},a.prototype.visitLiteralArray=function(a,b){return this.visitAll(a.expressions,b)},a.prototype.visitLiteralMap=function(a,b){return this.visitAll(a.values,b)},a.prototype.visitLiteralPrimitive=function(a,b){return null},a.prototype.visitMethodCall=function(a,b){return a.receiver.visit(this),this.visitAll(a.args,b)},a.prototype.visitPrefixNot=function(a,b){return a.expression.visit(this),null},a.prototype.visitPropertyRead=function(a,b){return a.receiver.visit(this),null},a.prototype.visitPropertyWrite=function(a,b){return a.receiver.visit(this),a.value.visit(this),null},a.prototype.visitSafePropertyRead=function(a,b){return a.receiver.visit(this),null},a.prototype.visitSafeMethodCall=function(a,b){return a.receiver.visit(this),this.visitAll(a.args,b)},a.prototype.visitAll=function(a,b){var c=this;return a.forEach(function(a){return a.visit(c,b)}),null},a.prototype.visitQuote=function(a,b){return null},a}();b.RecursiveAstVisitor=C;var D=function(){function a(){}return a.prototype.visitImplicitReceiver=function(a,b){return a},a.prototype.visitInterpolation=function(a,b){return new u(a.strings,this.visitAll(a.expressions))},a.prototype.visitLiteralPrimitive=function(a,b){return new r(a.value)},a.prototype.visitPropertyRead=function(a,b){return new l(a.receiver.visit(this),a.name)},a.prototype.visitPropertyWrite=function(a,b){return new m(a.receiver.visit(this),a.name,a.value)},a.prototype.visitSafePropertyRead=function(a,b){return new n(a.receiver.visit(this),a.name)},a.prototype.visitMethodCall=function(a,b){return new x(a.receiver.visit(this),a.name,this.visitAll(a.args))},a.prototype.visitSafeMethodCall=function(a,b){return new y(a.receiver.visit(this),a.name,this.visitAll(a.args))},a.prototype.visitFunctionCall=function(a,b){return new z(a.target.visit(this),this.visitAll(a.args))},a.prototype.visitLiteralArray=function(a,b){return new s(this.visitAll(a.expressions))},a.prototype.visitLiteralMap=function(a,b){return new t(a.keys,this.visitAll(a.values))},a.prototype.visitBinary=function(a,b){return new v(a.operation,a.left.visit(this),a.right.visit(this))},a.prototype.visitPrefixNot=function(a,b){return new w(a.expression.visit(this))},a.prototype.visitConditional=function(a,b){return new k(a.condition.visit(this),a.trueExp.visit(this),a.falseExp.visit(this))},a.prototype.visitPipe=function(a,b){return new q(a.exp.visit(this),a.name,this.visitAll(a.args))},a.prototype.visitKeyedRead=function(a,b){return new o(a.obj.visit(this),a.key.visit(this))},a.prototype.visitKeyedWrite=function(a,b){return new p(a.obj.visit(this),a.key.visit(this),a.value.visit(this))},a.prototype.visitAll=function(a){for(var b=e.ListWrapper.createFixedSize(a.length),c=0;c<a.length;++c)b[c]=a[c].visit(this);return b},a.prototype.visitChain=function(a,b){return new j(this.visitAll(a.expressions))},a.prototype.visitQuote=function(a,b){return new g(a.prefix,a.uninterpretedExpression,a.location)},a}();b.AstTransformer=D}(a("22")),c.exports}),a.registerDynamic("1a",["11","13","d","e","4e","19"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("13"),g=a("d"),h=a("e"),i=a("4e"),j=a("19"),k=new j.ImplicitReceiver,l=/\{\{([\s\S]*?)\}\}/g,m=function(a){function b(b,c,d,e){a.call(this,"Parser Error: "+b+" "+d+" ["+c+"] in "+e)}return d(b,a),b}(g.BaseException),n=function(){function a(a,b){this.strings=a,this.expressions=b}return a}();b.SplitInterpolation=n;var o=function(){function a(a,b){this.templateBindings=a,this.warnings=b}return a}();b.TemplateBindingParseResult=o;var p=function(){function a(a){this._lexer=a}return a.prototype.parseAction=function(a,b){this._checkNoInterpolation(a,b);var c=this._lexer.tokenize(this._stripComments(a)),d=new q(a,b,c,!0).parseChain();return new j.ASTWithSource(d,a,b)},a.prototype.parseBinding=function(a,b){var c=this._parseBindingAst(a,b);return new j.ASTWithSource(c,a,b)},a.prototype.parseSimpleBinding=function(a,b){var c=this._parseBindingAst(a,b);if(!r.check(c))throw new m("Host binding expression can only contain field access and constants",a,b);return new j.ASTWithSource(c,a,b)},a.prototype._parseBindingAst=function(a,b){var c=this._parseQuote(a,b);if(f.isPresent(c))return c;this._checkNoInterpolation(a,b);var d=this._lexer.tokenize(this._stripComments(a));return new q(a,b,d,!1).parseChain()},a.prototype._parseQuote=function(a,b){if(f.isBlank(a))return null;var c=a.indexOf(":");if(-1==c)return null;var d=a.substring(0,c).trim();if(!i.isIdentifier(d))return null;var e=a.substring(c+1);return new j.Quote(d,e,b)},a.prototype.parseTemplateBindings=function(a,b){var c=this._lexer.tokenize(a);return new q(a,b,c,!1).parseTemplateBindings()},a.prototype.parseInterpolation=function(a,b){var c=this.splitInterpolation(a,b);if(null==c)return null;for(var d=[],e=0;e<c.expressions.length;++e){var f=this._lexer.tokenize(this._stripComments(c.expressions[e])),g=new q(a,b,f,!1).parseChain();d.push(g)}return new j.ASTWithSource(new j.Interpolation(c.strings,d),a,b)},a.prototype.splitInterpolation=function(a,b){var c=f.StringWrapper.split(a,l);if(c.length<=1)return null;for(var d=[],e=[],g=0;g<c.length;g++){var h=c[g];if(g%2===0)d.push(h);else{if(!(h.trim().length>0))throw new m("Blank expressions are not allowed in interpolated strings",a,"at column "+this._findInterpolationErrorColumn(c,g)+" in",b);e.push(h)}}return new n(d,e)},a.prototype.wrapLiteralPrimitive=function(a,b){return new j.ASTWithSource(new j.LiteralPrimitive(a),a,b)},a.prototype._stripComments=function(a){var b=this._commentStart(a);return f.isPresent(b)?a.substring(0,b).trim():a},a.prototype._commentStart=function(a){for(var b=null,c=0;c<a.length-1;c++){var d=f.StringWrapper.charCodeAt(a,c),e=f.StringWrapper.charCodeAt(a,c+1);if(d===i.$SLASH&&e==i.$SLASH&&f.isBlank(b))return c;b===d?b=null:f.isBlank(b)&&i.isQuote(d)&&(b=d)}return null},a.prototype._checkNoInterpolation=function(a,b){var c=f.StringWrapper.split(a,l);if(c.length>1)throw new m("Got interpolation ({{}}) where expression was expected",a,"at column "+this._findInterpolationErrorColumn(c,1)+" in",b)},a.prototype._findInterpolationErrorColumn=function(a,b){for(var c="",d=0;b>d;d++)c+=d%2===0?a[d]:"{{"+a[d]+"}}";return c.length},a.decorators=[{type:e.Injectable}],a.ctorParameters=[{type:i.Lexer}],a}();b.Parser=p;var q=function(){function a(a,b,c,d){this.input=a,this.location=b,this.tokens=c,this.parseAction=d,this.index=0}return a.prototype.peek=function(a){var b=this.index+a;return b<this.tokens.length?this.tokens[b]:i.EOF},Object.defineProperty(a.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index:this.input.length},enumerable:!0,configurable:!0}),a.prototype.advance=function(){this.index++},a.prototype.optionalCharacter=function(a){return this.next.isCharacter(a)?(this.advance(),!0):!1},a.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},a.prototype.peekDeprecatedKeywordVar=function(){return this.next.isKeywordDeprecatedVar()},a.prototype.peekDeprecatedOperatorHash=function(){return this.next.isOperator("#")},a.prototype.expectCharacter=function(a){this.optionalCharacter(a)||this.error("Missing expected "+f.StringWrapper.fromCharCode(a))},a.prototype.optionalOperator=function(a){return this.next.isOperator(a)?(this.advance(),!0):!1},a.prototype.expectOperator=function(a){this.optionalOperator(a)||this.error("Missing expected operator "+a)},a.prototype.expectIdentifierOrKeyword=function(){var a=this.next;return a.isIdentifier()||a.isKeyword()||this.error("Unexpected token "+a+", expected identifier or keyword"),this.advance(),a.toString()},a.prototype.expectIdentifierOrKeywordOrString=function(){var a=this.next;return a.isIdentifier()||a.isKeyword()||a.isString()||this.error("Unexpected token "+a+", expected identifier, keyword, or string"),this.advance(),a.toString()},a.prototype.parseChain=function(){for(var a=[];this.index<this.tokens.length;){var b=this.parsePipe();if(a.push(b),this.optionalCharacter(i.$SEMICOLON))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(i.$SEMICOLON););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==a.length?new j.EmptyExpr:1==a.length?a[0]:new j.Chain(a)},a.prototype.parsePipe=function(){var a=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var b=this.expectIdentifierOrKeyword(),c=[];this.optionalCharacter(i.$COLON);)c.push(this.parseExpression());a=new j.BindingPipe(a,b,c)}while(this.optionalOperator("|"))}return a},a.prototype.parseExpression=function(){return this.parseConditional()},a.prototype.parseConditional=function(){var a=this.inputIndex,b=this.parseLogicalOr();if(this.optionalOperator("?")){var c=this.parsePipe();if(!this.optionalCharacter(i.$COLON)){var d=this.inputIndex,e=this.input.substring(a,d);this.error("Conditional expression "+e+" requires all 3 expressions")}var f=this.parsePipe();return new j.Conditional(b,c,f)}return b},a.prototype.parseLogicalOr=function(){for(var a=this.parseLogicalAnd();this.optionalOperator("||");)a=new j.Binary("||",a,this.parseLogicalAnd());return a},a.prototype.parseLogicalAnd=function(){for(var a=this.parseEquality();this.optionalOperator("&&");)a=new j.Binary("&&",a,this.parseEquality());return a},a.prototype.parseEquality=function(){for(var a=this.parseRelational();;)if(this.optionalOperator("=="))a=new j.Binary("==",a,this.parseRelational());else if(this.optionalOperator("==="))a=new j.Binary("===",a,this.parseRelational());else if(this.optionalOperator("!="))a=new j.Binary("!=",a,this.parseRelational());else{if(!this.optionalOperator("!=="))return a;a=new j.Binary("!==",a,this.parseRelational())}},a.prototype.parseRelational=function(){for(var a=this.parseAdditive();;)if(this.optionalOperator("<"))a=new j.Binary("<",a,this.parseAdditive());else if(this.optionalOperator(">"))a=new j.Binary(">",a,this.parseAdditive());else if(this.optionalOperator("<="))a=new j.Binary("<=",a,this.parseAdditive());else{if(!this.optionalOperator(">="))return a;a=new j.Binary(">=",a,this.parseAdditive())}},a.prototype.parseAdditive=function(){for(var a=this.parseMultiplicative();;)if(this.optionalOperator("+"))a=new j.Binary("+",a,this.parseMultiplicative());else{if(!this.optionalOperator("-"))return a;a=new j.Binary("-",a,this.parseMultiplicative())}},a.prototype.parseMultiplicative=function(){for(var a=this.parsePrefix();;)if(this.optionalOperator("*"))a=new j.Binary("*",a,this.parsePrefix());else if(this.optionalOperator("%"))a=new j.Binary("%",a,this.parsePrefix());else{if(!this.optionalOperator("/"))return a;a=new j.Binary("/",a,this.parsePrefix())}},a.prototype.parsePrefix=function(){return this.optionalOperator("+")?this.parsePrefix():this.optionalOperator("-")?new j.Binary("-",new j.LiteralPrimitive(0),this.parsePrefix()):this.optionalOperator("!")?new j.PrefixNot(this.parsePrefix()):this.parseCallChain()},a.prototype.parseCallChain=function(){for(var a=this.parsePrimary();;)if(this.optionalCharacter(i.$PERIOD))a=this.parseAccessMemberOrMethodCall(a,!1);else if(this.optionalOperator("?."))a=this.parseAccessMemberOrMethodCall(a,!0);else if(this.optionalCharacter(i.$LBRACKET)){var b=this.parsePipe();if(this.expectCharacter(i.$RBRACKET),this.optionalOperator("=")){var c=this.parseConditional();a=new j.KeyedWrite(a,b,c)}else a=new j.KeyedRead(a,b)}else{if(!this.optionalCharacter(i.$LPAREN))return a;var d=this.parseCallArguments();this.expectCharacter(i.$RPAREN),a=new j.FunctionCall(a,d)}},a.prototype.parsePrimary=function(){if(this.optionalCharacter(i.$LPAREN)){var a=this.parsePipe();return this.expectCharacter(i.$RPAREN),a}if(this.next.isKeywordNull()||this.next.isKeywordUndefined())return this.advance(),new j.LiteralPrimitive(null);if(this.next.isKeywordTrue())return this.advance(),new j.LiteralPrimitive(!0);if(this.next.isKeywordFalse())return this.advance(),new j.LiteralPrimitive(!1);if(this.optionalCharacter(i.$LBRACKET)){var b=this.parseExpressionList(i.$RBRACKET);return this.expectCharacter(i.$RBRACKET),new j.LiteralArray(b)}if(this.next.isCharacter(i.$LBRACE))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(k,!1);if(this.next.isNumber()){var c=this.next.toNumber();return this.advance(),new j.LiteralPrimitive(c)}if(this.next.isString()){var d=this.next.toString();return this.advance(),new j.LiteralPrimitive(d)}throw this.index>=this.tokens.length?this.error("Unexpected end of expression: "+this.input):this.error("Unexpected token "+this.next),new g.BaseException("Fell through all cases in parsePrimary")},a.prototype.parseExpressionList=function(a){var b=[];if(!this.next.isCharacter(a))do b.push(this.parsePipe());while(this.optionalCharacter(i.$COMMA));return b},a.prototype.parseLiteralMap=function(){var a=[],b=[];if(this.expectCharacter(i.$LBRACE),!this.optionalCharacter(i.$RBRACE)){do{var c=this.expectIdentifierOrKeywordOrString();a.push(c),this.expectCharacter(i.$COLON),b.push(this.parsePipe())}while(this.optionalCharacter(i.$COMMA));this.expectCharacter(i.$RBRACE)}return new j.LiteralMap(a,b)},a.prototype.parseAccessMemberOrMethodCall=function(a,b){void 0===b&&(b=!1);var c=this.expectIdentifierOrKeyword();if(this.optionalCharacter(i.$LPAREN)){var d=this.parseCallArguments();return this.expectCharacter(i.$RPAREN),b?new j.SafeMethodCall(a,c,d):new j.MethodCall(a,c,d)}if(!b){if(this.optionalOperator("=")){this.parseAction||this.error("Bindings cannot contain assignments");var e=this.parseConditional();return new j.PropertyWrite(a,c,e)}return new j.PropertyRead(a,c)}return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),null):new j.SafePropertyRead(a,c)},a.prototype.parseCallArguments=function(){if(this.next.isCharacter(i.$RPAREN))return[];var a=[];do a.push(this.parsePipe());while(this.optionalCharacter(i.$COMMA));return a},a.prototype.parseBlockContent=function(){this.parseAction||this.error("Binding expression cannot contain chained expression");for(var a=[];this.index<this.tokens.length&&!this.next.isCharacter(i.$RBRACE);){var b=this.parseExpression();if(a.push(b),this.optionalCharacter(i.$SEMICOLON))for(;this.optionalCharacter(i.$SEMICOLON););}return 0==a.length?new j.EmptyExpr:1==a.length?a[0]:new j.Chain(a)},a.prototype.expectTemplateBindingKey=function(){var a="",b=!1;do a+=this.expectIdentifierOrKeywordOrString(),b=this.optionalOperator("-"),b&&(a+="-");while(b);return a.toString()},a.prototype.parseTemplateBindings=function(){for(var a=[],b=null,c=[];this.index<this.tokens.length;){var d=this.peekKeywordLet();!d&&this.peekDeprecatedKeywordVar()&&(d=!0,c.push('"var" inside of expressions is deprecated. Use "let" instead!')),!d&&this.peekDeprecatedOperatorHash()&&(d=!0,c.push('"#" inside of expressions is deprecated. Use "let" instead!')),d&&this.advance();var e=this.expectTemplateBindingKey();d||(null==b?b=e:e=b+e[0].toUpperCase()+e.substring(1)),this.optionalCharacter(i.$COLON);var f=null,g=null;if(d)f=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==i.EOF&&!this.peekKeywordLet()&&!this.peekDeprecatedKeywordVar()&&!this.peekDeprecatedOperatorHash()){var h=this.inputIndex,k=this.parsePipe(),l=this.input.substring(h,this.inputIndex);g=new j.ASTWithSource(k,l,this.location)}a.push(new j.TemplateBinding(e,d,f,g)),this.optionalCharacter(i.$SEMICOLON)||this.optionalCharacter(i.$COMMA)}return new o(a,c)},a.prototype.error=function(a,b){void 0===b&&(b=null),f.isBlank(b)&&(b=this.index);var c=b<this.tokens.length?"at column "+(this.tokens[b].index+1)+" in":"at the end of the expression";throw new m(a,this.input,c,this.location)},a}();b._ParseAST=q;var r=function(){function a(){this.simple=!0}return a.check=function(b){var c=new a;return b.visit(c),c.simple},a.prototype.visitImplicitReceiver=function(a,b){},a.prototype.visitInterpolation=function(a,b){this.simple=!1},a.prototype.visitLiteralPrimitive=function(a,b){},a.prototype.visitPropertyRead=function(a,b){},a.prototype.visitPropertyWrite=function(a,b){this.simple=!1},a.prototype.visitSafePropertyRead=function(a,b){this.simple=!1},a.prototype.visitMethodCall=function(a,b){this.simple=!1},a.prototype.visitSafeMethodCall=function(a,b){this.simple=!1},a.prototype.visitFunctionCall=function(a,b){this.simple=!1},a.prototype.visitLiteralArray=function(a,b){this.visitAll(a.expressions)},a.prototype.visitLiteralMap=function(a,b){this.visitAll(a.values)},a.prototype.visitBinary=function(a,b){this.simple=!1},a.prototype.visitPrefixNot=function(a,b){this.simple=!1},a.prototype.visitConditional=function(a,b){this.simple=!1},a.prototype.visitPipe=function(a,b){this.simple=!1},a.prototype.visitKeyedRead=function(a,b){this.simple=!1},a.prototype.visitKeyedWrite=function(a,b){this.simple=!1},a.prototype.visitAll=function(a){for(var b=h.ListWrapper.createFixedSize(a.length),c=0;c<a.length;++c)b[c]=a[c].visit(this);return b},a.prototype.visitChain=function(a,b){this.simple=!1},a.prototype.visitQuote=function(a,b){this.simple=!1},a}();return c.exports}),a.registerDynamic("4e",["11","e","13","d"],!0,function(a,b,c){"use strict";function d(a,b){return new z(a,x.Character,b,v.StringWrapper.fromCharCode(b))}function e(a,b){return new z(a,x.Identifier,0,b)}function f(a,b){return new z(a,x.Keyword,0,b)}function g(a,b){return new z(a,x.Operator,0,b)}function h(a,b){return new z(a,x.String,0,b)}function i(a,b){return new z(a,x.Number,b,"")}function j(a){return a>=b.$TAB&&a<=b.$SPACE||a==Q}function k(a){return a>=H&&P>=a||a>=C&&E>=a||a==G||a==b.$$}function l(a){if(0==a.length)return!1;var c=new S(a);if(!k(c.peek))return!1;for(c.advance();c.peek!==b.$EOF;){if(!m(c.peek))return!1;c.advance()}return!0}function m(a){return a>=H&&P>=a||a>=C&&E>=a||a>=A&&B>=a||a==G||a==b.$$}function n(a){return a>=A&&B>=a}function o(a){return a==I||a==D}function p(a){return a==b.$MINUS||a==b.$PLUS}function q(a){return a===b.$SQ||a===b.$DQ||a===b.$BT}function r(a){switch(a){case K:return b.$LF;case J:return b.$FF;case L:return b.$CR;case M:return b.$TAB;case O:return b.$VTAB;default:return a}}var s=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},t=a("11"),u=a("e"),v=a("13"),w=a("d");!function(a){a[a.Character=0]="Character",a[a.Identifier=1]="Identifier",a[a.Keyword=2]="Keyword",a[a.String=3]="String",a[a.Operator=4]="Operator",a[a.Number=5]="Number"}(b.TokenType||(b.TokenType={}));var x=b.TokenType,y=function(){function a(){}return a.prototype.tokenize=function(a){for(var b=new S(a),c=[],d=b.scanToken();null!=d;)c.push(d),d=b.scanToken();return c},a.decorators=[{type:t.Injectable}],a}();b.Lexer=y;var z=function(){function a(a,b,c,d){this.index=a,this.type=b,this.numValue=c,this.strValue=d}return a.prototype.isCharacter=function(a){return this.type==x.Character&&this.numValue==a},a.prototype.isNumber=function(){return this.type==x.Number},a.prototype.isString=function(){return this.type==x.String},a.prototype.isOperator=function(a){return this.type==x.Operator&&this.strValue==a},a.prototype.isIdentifier=function(){return this.type==x.Identifier},a.prototype.isKeyword=function(){return this.type==x.Keyword},a.prototype.isKeywordDeprecatedVar=function(){return this.type==x.Keyword&&"var"==this.strValue},a.prototype.isKeywordLet=function(){return this.type==x.Keyword&&"let"==this.strValue},a.prototype.isKeywordNull=function(){return this.type==x.Keyword&&"null"==this.strValue},a.prototype.isKeywordUndefined=function(){return this.type==x.Keyword&&"undefined"==this.strValue},a.prototype.isKeywordTrue=function(){return this.type==x.Keyword&&"true"==this.strValue},a.prototype.isKeywordFalse=function(){return this.type==x.Keyword&&"false"==this.strValue},a.prototype.toNumber=function(){return this.type==x.Number?this.numValue:-1},a.prototype.toString=function(){switch(this.type){case x.Character:case x.Identifier:case x.Keyword:case x.Operator:case x.String:return this.strValue;case x.Number:return this.numValue.toString();default:return null}},a}();b.Token=z,b.EOF=new z(-1,x.Character,0,""),b.$EOF=0,b.$TAB=9,b.$LF=10,b.$VTAB=11,b.$FF=12,b.$CR=13,b.$SPACE=32,b.$BANG=33,b.$DQ=34,b.$HASH=35,b.$$=36,b.$PERCENT=37,b.$AMPERSAND=38,b.$SQ=39,b.$LPAREN=40,b.$RPAREN=41,b.$STAR=42,b.$PLUS=43,b.$COMMA=44,b.$MINUS=45,b.$PERIOD=46,b.$SLASH=47,b.$COLON=58,b.$SEMICOLON=59,b.$LT=60,b.$EQ=61,b.$GT=62,b.$QUESTION=63;var A=48,B=57,C=65,D=69,E=90;b.$LBRACKET=91,b.$BACKSLASH=92,b.$RBRACKET=93;var F=94,G=95;b.$BT=96;var H=97,I=101,J=102,K=110,L=114,M=116,N=117,O=118,P=122;b.$LBRACE=123,b.$BAR=124,b.$RBRACE=125;var Q=160,R=function(a){function b(b){a.call(this),this.message=b}return s(b,a),b.prototype.toString=function(){return this.message},b}(w.BaseException);b.ScannerError=R;var S=function(){function a(a){this.input=a,this.peek=0,this.index=-1,this.length=a.length,this.advance()}return a.prototype.advance=function(){this.peek=++this.index>=this.length?b.$EOF:v.StringWrapper.charCodeAt(this.input,this.index)},a.prototype.scanToken=function(){for(var a=this.input,c=this.length,e=this.peek,f=this.index;e<=b.$SPACE;){if(++f>=c){e=b.$EOF;break}e=v.StringWrapper.charCodeAt(a,f)}if(this.peek=e,this.index=f,f>=c)return null;if(k(e))return this.scanIdentifier();if(n(e))return this.scanNumber(f);var g=f;switch(e){case b.$PERIOD:return this.advance(),n(this.peek)?this.scanNumber(g):d(g,b.$PERIOD);case b.$LPAREN:case b.$RPAREN:case b.$LBRACE:case b.$RBRACE:case b.$LBRACKET:case b.$RBRACKET:case b.$COMMA:case b.$COLON:case b.$SEMICOLON:return this.scanCharacter(g,e);case b.$SQ:case b.$DQ:return this.scanString();case b.$HASH:case b.$PLUS:case b.$MINUS:case b.$STAR:case b.$SLASH:case b.$PERCENT:case F:return this.scanOperator(g,v.StringWrapper.fromCharCode(e));case b.$QUESTION:return this.scanComplexOperator(g,"?",b.$PERIOD,".");case b.$LT:case b.$GT:return this.scanComplexOperator(g,v.StringWrapper.fromCharCode(e),b.$EQ,"=");case b.$BANG:case b.$EQ:return this.scanComplexOperator(g,v.StringWrapper.fromCharCode(e),b.$EQ,"=",b.$EQ,"=");case b.$AMPERSAND:return this.scanComplexOperator(g,"&",b.$AMPERSAND,"&");case b.$BAR:return this.scanComplexOperator(g,"|",b.$BAR,"|");case Q:for(;j(this.peek);)this.advance();return this.scanToken()}return this.error("Unexpected character ["+v.StringWrapper.fromCharCode(e)+"]",0),null},a.prototype.scanCharacter=function(a,b){return this.advance(),d(a,b)},a.prototype.scanOperator=function(a,b){return this.advance(),g(a,b)},a.prototype.scanComplexOperator=function(a,b,c,d,e,f){this.advance();var h=b;return this.peek==c&&(this.advance(),h+=d),v.isPresent(e)&&this.peek==e&&(this.advance(),h+=f),g(a,h)},a.prototype.scanIdentifier=function(){var a=this.index;for(this.advance();m(this.peek);)this.advance();var b=this.input.substring(a,this.index);return u.SetWrapper.has(T,b)?f(a,b):e(a,b)},a.prototype.scanNumber=function(a){var c=this.index===a;for(this.advance();;){if(n(this.peek));else if(this.peek==b.$PERIOD)c=!1;else{if(!o(this.peek))break;this.advance(),p(this.peek)&&this.advance(),n(this.peek)||this.error("Invalid exponent",-1),c=!1}this.advance()}var d=this.input.substring(a,this.index),e=c?v.NumberWrapper.parseIntAutoRadix(d):v.NumberWrapper.parseFloat(d);return i(a,e)},a.prototype.scanString=function(){var a=this.index,c=this.peek;this.advance();for(var d,e=this.index,f=this.input;this.peek!=c;)if(this.peek==b.$BACKSLASH){null==d&&(d=new v.StringJoiner),d.add(f.substring(e,this.index)),this.advance();var g;if(this.peek==N){var i=f.substring(this.index+1,this.index+5);try{g=v.NumberWrapper.parseInt(i,16)}catch(j){this.error("Invalid unicode escape [\\u"+i+"]",0)}for(var k=0;5>k;k++)this.advance()}else g=r(this.peek),this.advance();d.add(v.StringWrapper.fromCharCode(g)),e=this.index}else this.peek==b.$EOF?this.error("Unterminated quote",0):this.advance();var l=f.substring(e,this.index);this.advance();var m=l;return null!=d&&(d.add(l),m=d.toString()),h(a,m)},a.prototype.error=function(a,b){var c=this.index+b;throw new R("Lexer Error: "+a+" at column "+c+" in expression ["+this.input+"]")},a}();b.isIdentifier=l,b.isQuote=q;var T=(u.SetWrapper.createFromList(["+","-","*","/","%","^","=","==","!=","===","!==","<",">","<=",">=","&&","||","&","|","!","?","#","?."]),u.SetWrapper.createFromList(["var","let","null","undefined","true","false","if","else"]));return c.exports}),a.registerDynamic("4f",["11","13","14","17","30","c","b","2b","38","31","3b","39","3a","1b","2e","2f","2c","2d","1e","4d","1a","4e"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}function e(){return new t.CompilerConfig(g.assertionsEnabled(),!1,!0)}var f=a("11"),g=a("13");d(a("14"));var h=a("17");b.TEMPLATE_TRANSFORMS=h.TEMPLATE_TRANSFORMS;var i=a("30");b.CompilerConfig=i.CompilerConfig,b.RenderTypes=i.RenderTypes,d(a("c")),d(a("b"));var j=a("2b");b.RuntimeCompiler=j.RuntimeCompiler,d(a("38")),d(a("31"));var k=a("3b");b.ViewResolver=k.ViewResolver;var l=a("39");b.DirectiveResolver=l.DirectiveResolver;var m=a("3a");b.PipeResolver=m.PipeResolver;var n=a("17"),o=a("1b"),p=a("2e"),q=a("2f"),r=a("2c"),s=a("2d"),t=a("30"),u=a("2b"),v=a("1e"),w=a("4d"),x=a("38"),y=a("1a"),z=a("4e"),A=a("3b"),B=a("39"),C=a("3a");return b.COMPILER_PROVIDERS=[z.Lexer,y.Parser,o.HtmlParser,n.TemplateParser,p.DirectiveNormalizer,q.CompileMetadataResolver,x.DEFAULT_PACKAGE_URL_PROVIDER,r.StyleCompiler,s.ViewCompiler,{provide:t.CompilerConfig,useFactory:e,deps:[]},u.RuntimeCompiler,{provide:f.ComponentResolver,useExisting:u.RuntimeCompiler},w.DomElementSchemaRegistry,{provide:v.ElementSchemaRegistry,useExisting:w.DomElementSchemaRegistry},x.UrlResolver,A.ViewResolver,B.DirectiveResolver,C.PipeResolver],c.exports}),a.registerDynamic("14",["13"],!0,function(a,b,c){"use strict";function d(a,b,c){void 0===c&&(c=null);var d=[];return b.forEach(function(b){var f=b.visit(a,c);e.isPresent(f)&&d.push(f)}),d}var e=a("13"),f=function(){function a(a,b,c){this.value=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitText(this,b)},a}();b.TextAst=f;var g=function(){function a(a,b,c){this.value=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitBoundText(this,b)},a}();b.BoundTextAst=g;var h=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitAttr(this,b)},a}();b.AttrAst=h;var i=function(){function a(a,b,c,d,e,f){this.name=a,this.type=b,this.securityContext=c,this.value=d,this.unit=e,this.sourceSpan=f}return a.prototype.visit=function(a,b){
|
||
return a.visitElementProperty(this,b)},a}();b.BoundElementPropertyAst=i;var j=function(){function a(a,b,c,d){this.name=a,this.target=b,this.handler=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitEvent(this,b)},Object.defineProperty(a.prototype,"fullName",{get:function(){return e.isPresent(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),a}();b.BoundEventAst=j;var k=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitReference(this,b)},a}();b.ReferenceAst=k;var l=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitVariable(this,b)},a}();b.VariableAst=l;var m=function(){function a(a,b,c,d,e,f,g,h,i,j,k){this.name=a,this.attrs=b,this.inputs=c,this.outputs=d,this.references=e,this.directives=f,this.providers=g,this.hasViewContainer=h,this.children=i,this.ngContentIndex=j,this.sourceSpan=k}return a.prototype.visit=function(a,b){return a.visitElement(this,b)},a}();b.ElementAst=m;var n=function(){function a(a,b,c,d,e,f,g,h,i,j){this.attrs=a,this.outputs=b,this.references=c,this.variables=d,this.directives=e,this.providers=f,this.hasViewContainer=g,this.children=h,this.ngContentIndex=i,this.sourceSpan=j}return a.prototype.visit=function(a,b){return a.visitEmbeddedTemplate(this,b)},a}();b.EmbeddedTemplateAst=n;var o=function(){function a(a,b,c,d){this.directiveName=a,this.templateName=b,this.value=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitDirectiveProperty(this,b)},a}();b.BoundDirectivePropertyAst=o;var p=function(){function a(a,b,c,d,e){this.directive=a,this.inputs=b,this.hostProperties=c,this.hostEvents=d,this.sourceSpan=e}return a.prototype.visit=function(a,b){return a.visitDirective(this,b)},a}();b.DirectiveAst=p;var q=function(){function a(a,b,c,d,e,f){this.token=a,this.multiProvider=b,this.eager=c,this.providers=d,this.providerType=e,this.sourceSpan=f}return a.prototype.visit=function(a,b){return null},a}();b.ProviderAst=q,function(a){a[a.PublicService=0]="PublicService",a[a.PrivateService=1]="PrivateService",a[a.Component=2]="Component",a[a.Directive=3]="Directive",a[a.Builtin=4]="Builtin"}(b.ProviderAstType||(b.ProviderAstType={}));var r=(b.ProviderAstType,function(){function a(a,b,c){this.index=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitNgContent(this,b)},a}());b.NgContentAst=r,function(a){a[a.Property=0]="Property",a[a.Attribute=1]="Attribute",a[a.Class=2]="Class",a[a.Style=3]="Style"}(b.PropertyBindingType||(b.PropertyBindingType={}));b.PropertyBindingType;return b.templateVisitAll=d,c.exports}),a.registerDynamic("1d",["e","13","d","22"],!0,function(a,b,c){return function(c){"use strict";var d=a("e"),e=a("13"),f=a("d"),g="",h=e.RegExpWrapper.create("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)"),i=function(){function a(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return a.parse=function(b){for(var c,g=[],i=function(a,b){b.notSelectors.length>0&&e.isBlank(b.element)&&d.ListWrapper.isEmpty(b.classNames)&&d.ListWrapper.isEmpty(b.attrs)&&(b.element="*"),a.push(b)},j=new a,k=e.RegExpWrapper.matcher(h,b),l=j,m=!1;e.isPresent(c=e.RegExpMatcherWrapper.next(k));){if(e.isPresent(c[1])){if(m)throw new f.BaseException("Nesting :not is not allowed in a selector");m=!0,l=new a,j.notSelectors.push(l)}if(e.isPresent(c[2])&&l.setElement(c[2]),e.isPresent(c[3])&&l.addClassName(c[3]),e.isPresent(c[4])&&l.addAttribute(c[4],c[5]),e.isPresent(c[6])&&(m=!1,l=j),e.isPresent(c[7])){if(m)throw new f.BaseException("Multiple selectors in :not are not supported");i(g,j),j=l=new a}}return i(g,j),g},a.prototype.isElementSelector=function(){return e.isPresent(this.element)&&d.ListWrapper.isEmpty(this.classNames)&&d.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},a.prototype.setElement=function(a){void 0===a&&(a=null),this.element=a},a.prototype.getMatchingElementTemplate=function(){for(var a=e.isPresent(this.element)?this.element:"div",b=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",c="",d=0;d<this.attrs.length;d+=2){var f=this.attrs[d],g=""!==this.attrs[d+1]?'="'+this.attrs[d+1]+'"':"";c+=" "+f+g}return"<"+a+b+c+"></"+a+">"},a.prototype.addAttribute=function(a,b){void 0===b&&(b=g),this.attrs.push(a),b=e.isPresent(b)?b.toLowerCase():g,this.attrs.push(b)},a.prototype.addClassName=function(a){this.classNames.push(a.toLowerCase())},a.prototype.toString=function(){var a="";if(e.isPresent(this.element)&&(a+=this.element),e.isPresent(this.classNames))for(var b=0;b<this.classNames.length;b++)a+="."+this.classNames[b];if(e.isPresent(this.attrs))for(var b=0;b<this.attrs.length;){var c=this.attrs[b++],d=this.attrs[b++];a+="["+c,d.length>0&&(a+="="+d),a+="]"}return this.notSelectors.forEach(function(b){return a+=":not("+b+")"}),a},a}();b.CssSelector=i;var j=function(){function a(){this._elementMap=new d.Map,this._elementPartialMap=new d.Map,this._classMap=new d.Map,this._classPartialMap=new d.Map,this._attrValueMap=new d.Map,this._attrValuePartialMap=new d.Map,this._listContexts=[]}return a.createNotMatcher=function(b){var c=new a;return c.addSelectables(b,null),c},a.prototype.addSelectables=function(a,b){var c=null;a.length>1&&(c=new k(a),this._listContexts.push(c));for(var d=0;d<a.length;d++)this._addSelectable(a[d],b,c)},a.prototype._addSelectable=function(a,b,c){var f=this,g=a.element,h=a.classNames,i=a.attrs,j=new l(a,b,c);if(e.isPresent(g)){var k=0===i.length&&0===h.length;k?this._addTerminal(f._elementMap,g,j):f=this._addPartial(f._elementPartialMap,g)}if(e.isPresent(h))for(var m=0;m<h.length;m++){var k=0===i.length&&m===h.length-1,n=h[m];k?this._addTerminal(f._classMap,n,j):f=this._addPartial(f._classPartialMap,n)}if(e.isPresent(i))for(var m=0;m<i.length;){var k=m===i.length-2,o=i[m++],p=i[m++];if(k){var q=f._attrValueMap,r=q.get(o);e.isBlank(r)&&(r=new d.Map,q.set(o,r)),this._addTerminal(r,p,j)}else{var s=f._attrValuePartialMap,t=s.get(o);e.isBlank(t)&&(t=new d.Map,s.set(o,t)),f=this._addPartial(t,p)}}},a.prototype._addTerminal=function(a,b,c){var d=a.get(b);e.isBlank(d)&&(d=[],a.set(b,d)),d.push(c)},a.prototype._addPartial=function(b,c){var d=b.get(c);return e.isBlank(d)&&(d=new a,b.set(c,d)),d},a.prototype.match=function(a,b){for(var c=!1,d=a.element,f=a.classNames,h=a.attrs,i=0;i<this._listContexts.length;i++)this._listContexts[i].alreadyMatched=!1;if(c=this._matchTerminal(this._elementMap,d,a,b)||c,c=this._matchPartial(this._elementPartialMap,d,a,b)||c,e.isPresent(f))for(var j=0;j<f.length;j++){var k=f[j];c=this._matchTerminal(this._classMap,k,a,b)||c,c=this._matchPartial(this._classPartialMap,k,a,b)||c}if(e.isPresent(h))for(var j=0;j<h.length;){var l=h[j++],m=h[j++],n=this._attrValueMap.get(l);e.StringWrapper.equals(m,g)||(c=this._matchTerminal(n,g,a,b)||c),c=this._matchTerminal(n,m,a,b)||c;var o=this._attrValuePartialMap.get(l);e.StringWrapper.equals(m,g)||(c=this._matchPartial(o,g,a,b)||c),c=this._matchPartial(o,m,a,b)||c}return c},a.prototype._matchTerminal=function(a,b,c,d){if(e.isBlank(a)||e.isBlank(b))return!1;var f=a.get(b),g=a.get("*");if(e.isPresent(g)&&(f=f.concat(g)),e.isBlank(f))return!1;for(var h,i=!1,j=0;j<f.length;j++)h=f[j],i=h.finalize(c,d)||i;return i},a.prototype._matchPartial=function(a,b,c,d){if(e.isBlank(a)||e.isBlank(b))return!1;var f=a.get(b);return e.isBlank(f)?!1:f.match(c,d)},a}();b.SelectorMatcher=j;var k=function(){function a(a){this.selectors=a,this.alreadyMatched=!1}return a}();b.SelectorListContext=k;var l=function(){function a(a,b,c){this.selector=a,this.cbContext=b,this.listContext=c,this.notSelectors=a.notSelectors}return a.prototype.finalize=function(a,b){var c=!0;if(this.notSelectors.length>0&&(e.isBlank(this.listContext)||!this.listContext.alreadyMatched)){var d=j.createNotMatcher(this.notSelectors);c=!d.match(a,null)}return c&&e.isPresent(b)&&(e.isBlank(this.listContext)||!this.listContext.alreadyMatched)&&(e.isPresent(this.listContext)&&(this.listContext.alreadyMatched=!0),b(this.selector,this.cbContext)),c},a}();b.SelectorContext=l}(a("22")),c.exports}),a.registerDynamic("50",[],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(b){a.call(this,b)}return d(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),b}(Error);return b.BaseWrappedException=e,c.exports}),a.registerDynamic("e",["13"],!0,function(a,b,c){"use strict";function d(a,b){if(h.isPresent(a))for(var c=0;c<a.length;c++){var e=a[c];h.isArray(e)?d(e,b):b.push(e)}return b}function e(a){return h.isJsObject(a)?h.isArray(a)||!(a instanceof b.Map)&&h.getSymbolIterator()in a:!1}function f(a,b,c){for(var d=a[h.getSymbolIterator()](),e=b[h.getSymbolIterator()]();;){var f=d.next(),g=e.next();if(f.done&&g.done)return!0;if(f.done||g.done)return!1;if(!c(f.value,g.value))return!1}}function g(a,b){if(h.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(var d,e=a[h.getSymbolIterator()]();!(d=e.next()).done;)b(d.value)}var h=a("13");b.Map=h.global.Map,b.Set=h.global.Set;var i=function(){try{if(1===new b.Map([[1,2]]).size)return function(a){return new b.Map(a)}}catch(a){}return function(a){for(var c=new b.Map,d=0;d<a.length;d++){var e=a[d];c.set(e[0],e[1])}return c}}(),j=function(){try{if(new b.Map(new b.Map))return function(a){return new b.Map(a)}}catch(a){}return function(a){var c=new b.Map;return a.forEach(function(a,b){c.set(b,a)}),c}}(),k=function(){return(new b.Map).keys().next?function(a){for(var b,c=a.keys();!(b=c.next()).done;)a.set(b.value,null)}:function(a){a.forEach(function(b,c){a.set(c,null)})}}(),l=function(){try{if((new b.Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=o.createFixedSize(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),m=function(){function a(){}return a.clone=function(a){return j(a)},a.createFromStringMap=function(a){var c=new b.Map;for(var d in a)c.set(d,a[d]);return c},a.toStringMap=function(a){var b={};return a.forEach(function(a,c){return b[c]=a}),b},a.createFromPairs=function(a){return i(a)},a.clearValues=function(a){k(a)},a.iterable=function(a){return a},a.keys=function(a){return l(a,!1)},a.values=function(a){return l(a,!0)},a}();b.MapWrapper=m;var n=function(){function a(){}return a.create=function(){return{}},a.contains=function(a,b){return a.hasOwnProperty(b)},a.get=function(a,b){return a.hasOwnProperty(b)?a[b]:void 0},a.set=function(a,b,c){a[b]=c},a.keys=function(a){return Object.keys(a)},a.values=function(a){return Object.keys(a).reduce(function(b,c){return b.push(a[c]),b},[])},a.isEmpty=function(a){for(var b in a)return!1;return!0},a["delete"]=function(a,b){delete a[b]},a.forEach=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},a.merge=function(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f<c.length;f++)if(e=c[f],a[e]!==b[e])return!1;return!0},a}();b.StringMapWrapper=n;var o=function(){function a(){}return a.createFixedSize=function(a){return new Array(a)},a.createGrowableSize=function(a){return new Array(a)},a.clone=function(a){return a.slice(0)},a.forEachWithIndex=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)},a.first=function(a){return a?a[0]:null},a.last=function(a){return a&&0!=a.length?a[a.length-1]:null},a.indexOf=function(a,b,c){return void 0===c&&(c=0),a.indexOf(b,c)},a.contains=function(a,b){return-1!==a.indexOf(b)},a.reversed=function(b){var c=a.clone(b);return c.reverse()},a.concat=function(a,b){return a.concat(b)},a.insert=function(a,b,c){a.splice(b,0,c)},a.removeAt=function(a,b){var c=a[b];return a.splice(b,1),c},a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.splice=function(a,b,c){return a.splice(b,c)},a.sort=function(a,b){h.isPresent(b)?a.sort(b):a.sort()},a.toString=function(a){return a.toString()},a.toJSON=function(a){return JSON.stringify(a)},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(!h.isBlank(f)){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return d(a,b),b},a.addAll=function(a,b){for(var c=0;c<b.length;c++)a.push(b[c])},a}();b.ListWrapper=o,b.isListLikeIterable=e,b.areIterablesEqual=f,b.iterateListLike=g;var p=function(){var a=new b.Set([1,2,3]);return 3===a.size?function(a){return new b.Set(a)}:function(a){var c=new b.Set(a);if(c.size!==a.length)for(var d=0;d<a.length;d++)c.add(a[d]);return c}}(),q=function(){function a(){}return a.createFromList=function(a){return p(a)},a.has=function(a,b){return a.has(b)},a["delete"]=function(a,b){a["delete"](b)},a}();return b.SetWrapper=q,c.exports}),a.registerDynamic("51",["13","50","e"],!0,function(a,b,c){"use strict";var d=a("13"),e=a("50"),f=a("e"),g=function(){function a(){this.res=[]}return a.prototype.log=function(a){this.res.push(a)},a.prototype.logError=function(a){this.res.push(a)},a.prototype.logGroup=function(a){this.res.push(a)},a.prototype.logGroupEnd=function(){},a}(),h=function(){function a(a,b){void 0===b&&(b=!0),this._logger=a,this._rethrowException=b}return a.exceptionToString=function(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null);var e=new g,f=new a(e,!1);return f.call(b,c,d),e.res.join("\n")},a.prototype.call=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null);var e=this._findOriginalException(a),f=this._findOriginalStack(a),g=this._findContext(a);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(a)),d.isPresent(b)&&d.isBlank(f)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(b))),d.isPresent(c)&&this._logger.logError("REASON: "+c),d.isPresent(e)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(e)),d.isPresent(f)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(f))),d.isPresent(g)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(g)),this._logger.logGroupEnd(),this._rethrowException)throw a},a.prototype._extractMessage=function(a){return a instanceof e.BaseWrappedException?a.wrapperMessage:a.toString()},a.prototype._longStackTrace=function(a){return f.isListLikeIterable(a)?a.join("\n\n-----async gap-----\n"):a.toString()},a.prototype._findContext=function(a){try{return a instanceof e.BaseWrappedException?d.isPresent(a.context)?a.context:this._findContext(a.originalException):null}catch(b){return null}},a.prototype._findOriginalException=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a.originalException;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException;return b},a.prototype._findOriginalStack=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a,c=a.originalStack;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException,b instanceof e.BaseWrappedException&&d.isPresent(b.originalException)&&(c=b.originalStack);return c},a}();return b.ExceptionHandler=h,c.exports}),a.registerDynamic("d",["50","51"],!0,function(a,b,c){"use strict";function d(a){return new TypeError(a)}function e(){throw new j("unimplemented")}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("50"),h=a("51"),i=a("51");b.ExceptionHandler=i.ExceptionHandler;var j=function(a){function b(b){void 0===b&&(b="--"),a.call(this,b),this.message=b,this.stack=new Error(b).stack}return f(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.BaseException=j;var k=function(a){function b(b,c,d,e){a.call(this,b),this._wrapperMessage=b,this._originalException=c,this._originalStack=d,this._context=e,this._wrapperStack=new Error(b).stack}return f(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return h.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this.message},b}(g.BaseWrappedException);return b.WrappedException=k,b.makeTypeError=d,b.unimplemented=e,c.exports}),a.registerDynamic("13",[],!0,function(a,b,c){"use strict";function d(a){Zone.current.scheduleMicroTask("scheduleMicrotask",a)}function e(a){return a.name?a.name:typeof a}function f(){T=!0}function g(){if(T)throw"Cannot enable prod mode after platform setup.";S=!1}function h(){return S}function i(a){return void 0!==a&&null!==a}function j(a){return void 0===a||null===a}function k(a){return"boolean"==typeof a}function l(a){return"number"==typeof a}function m(a){return"string"==typeof a}function n(a){return"function"==typeof a}function o(a){return n(a)}function p(a){return"object"==typeof a&&null!==a}function q(a){return p(a)&&Object.getPrototypeOf(a)===U}function r(a){return a instanceof R.Promise}function s(a){return Array.isArray(a)}function t(a){return a instanceof b.Date&&!isNaN(a.valueOf())}function u(){}function v(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.name)return a.name;if(a.overriddenName)return a.overriddenName;var b=a.toString(),c=b.indexOf("\n");return-1===c?b:b.substring(0,c)}function w(a){return a}function x(a,b){return a}function y(a,b){return a[b]}function z(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function A(a){return a}function B(a){return j(a)?null:a}function C(a){return j(a)?!1:a}function D(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function E(a){console.log(a)}function F(a){console.warn(a)}function G(a,b,c){for(var d=b.split("."),e=a;d.length>1;){var f=d.shift();e=e.hasOwnProperty(f)&&i(e[f])?e[f]:e[f]={}}void 0!==e&&null!==e||(e={}),e[d.shift()]=c}function H(){if(j(ca))if(i(O.Symbol)&&i(Symbol.iterator))ca=Symbol.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(ca=c)}return ca}function I(a,b,c,d){var e=c+"\nreturn "+b+"\n//# sourceURL="+a,f=[],g=[];for(var h in d)f.push(h),g.push(d[h]);return(new(Function.bind.apply(Function,[void 0].concat(f.concat(e))))).apply(void 0,g)}function J(a){return!D(a)}function K(a,b){return a.constructor===b}function L(a){return a.reduce(function(a,b){return a|b})}function M(a){return a.reduce(function(a,b){return a&b})}function N(a){return R.encodeURI(a)}var O,P=this,Q=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};O="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:P:window,b.scheduleMicroTask=d,b.IS_DART=!1;var R=O;b.global=R,b.Type=Function,b.getTypeNameForDebugging=e,b.Math=R.Math,b.Date=R.Date;var S=!0,T=!1;b.lockMode=f,b.enableProdMode=g,b.assertionsEnabled=h,R.assert=function(a){},b.isPresent=i,b.isBlank=j,b.isBoolean=k,b.isNumber=l,b.isString=m,b.isFunction=n,b.isType=o,b.isStringMap=p;var U=Object.getPrototypeOf({});b.isStrictStringMap=q,b.isPromise=r,b.isArray=s,b.isDate=t,b.noop=u,b.stringify=v,b.serializeEnum=w,b.deserializeEnum=x,b.resolveEnumToken=y;var V=function(){function a(){}return a.fromCharCode=function(a){return String.fromCharCode(a)},a.charCodeAt=function(a,b){return a.charCodeAt(b)},a.split=function(a,b){return a.split(b)},a.equals=function(a,b){return a===b},a.stripLeft=function(a,b){if(a&&a.length){for(var c=0,d=0;d<a.length&&a[d]==b;d++)c++;a=a.substring(c)}return a},a.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,d=a.length-1;d>=0&&a[d]==b;d--)c--;a=a.substring(0,c)}return a},a.replace=function(a,b,c){return a.replace(b,c)},a.replaceAll=function(a,b,c){return a.replace(b,c)},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=V;var W=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=W;var X=function(a){function b(b){a.call(this),this.message=b}return Q(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=X;var Y=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new X("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new X("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}();b.NumberWrapper=Y,b.RegExp=R.RegExp;var Z=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new R.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=function(a,b){return a.lastIndex=0,a.test(b)},a.matcher=function(a,b){return a.lastIndex=0,{re:a,input:b}},a.replaceAll=function(a,b,c){var d=a.exec(b),e="";a.lastIndex=0;for(var f=0;d;)e+=b.substring(f,d.index),e+=c(d),f=d.index+d[0].length,a.lastIndex=f,d=a.exec(b);return e+=b.substring(f)},a}();b.RegExpWrapper=Z;var $=function(){function a(){}return a.next=function(a){return a.re.exec(a.input)},a}();b.RegExpMatcherWrapper=$;var _=function(){function a(){}return a.apply=function(a,b){return a.apply(null,b)},a}();b.FunctionWrapper=_,b.looseIdentical=z,b.getMapKey=A,b.normalizeBlank=B,b.normalizeBool=C,b.isJsObject=D,b.print=E,b.warn=F;var aa=function(){function a(){}return a.parse=function(a){return R.JSON.parse(a)},a.stringify=function(a){return R.JSON.stringify(a,null,2)},a}();b.Json=aa;var ba=function(){function a(){}return a.create=function(a,c,d,e,f,g,h){return void 0===c&&(c=1),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),void 0===g&&(g=0),void 0===h&&(h=0),new b.Date(a,c-1,d,e,f,g,h)},a.fromISOString=function(a){return new b.Date(a)},a.fromMillis=function(a){return new b.Date(a)},a.toMillis=function(a){return a.getTime()},a.now=function(){return new b.Date},a.toJson=function(a){return a.toJSON()},a}();b.DateWrapper=ba,b.setValueOnPath=G;var ca=null;return b.getSymbolIterator=H,b.evalExpression=I,b.isPrimitive=J,b.hasConstructor=K,b.bitWiseOr=L,b.bitWiseAnd=M,b.escape=N,c.exports}),a.registerDynamic("52",["d","13"],!0,function(a,b,c){"use strict";var d=a("d"),e=a("13"),f=/asset:([^\/]+)\/([^\/]+)\/(.+)/g,g=function(){function a(){}return a.parseAssetUrl=function(a){return h.parse(a)},a}();b.ImportGenerator=g;var h=function(){function a(a,b,c){this.packageName=a,this.firstLevelDir=b,this.modulePath=c}return a.parse=function(b,c){void 0===c&&(c=!0);var g=e.RegExpWrapper.firstMatch(f,b);if(e.isPresent(g))return new a(g[1],g[2],g[3]);if(c)return null;throw new d.BaseException("Url "+b+" is not a valid asset: url")},a}();return b.AssetUrl=h,c.exports}),a.registerDynamic("53",["1d","52"],!0,function(a,b,c){"use strict";var d,e=a("1d"),f=a("52");return function(a){a.SelectorMatcher=e.SelectorMatcher,a.CssSelector=e.CssSelector,a.AssetUrl=f.AssetUrl,a.ImportGenerator=f.ImportGenerator}(d=b.__compiler_private__||(b.__compiler_private__={})),c.exports}),a.registerDynamic("54",["1e","4f","14","53"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}var e=a("1e");b.ElementSchemaRegistry=e.ElementSchemaRegistry;var f=a("4f");return b.COMPILER_PROVIDERS=f.COMPILER_PROVIDERS,b.TEMPLATE_TRANSFORMS=f.TEMPLATE_TRANSFORMS,b.CompilerConfig=f.CompilerConfig,b.RenderTypes=f.RenderTypes,b.UrlResolver=f.UrlResolver,b.DEFAULT_PACKAGE_URL_PROVIDER=f.DEFAULT_PACKAGE_URL_PROVIDER,b.createOfflineCompileUrlResolver=f.createOfflineCompileUrlResolver,b.XHR=f.XHR,b.ViewResolver=f.ViewResolver,b.DirectiveResolver=f.DirectiveResolver,b.PipeResolver=f.PipeResolver,b.SourceModule=f.SourceModule,b.NormalizedComponentWithViewDirectives=f.NormalizedComponentWithViewDirectives,b.OfflineCompiler=f.OfflineCompiler,b.CompileMetadataWithIdentifier=f.CompileMetadataWithIdentifier,b.CompileMetadataWithType=f.CompileMetadataWithType,b.CompileIdentifierMetadata=f.CompileIdentifierMetadata,b.CompileDiDependencyMetadata=f.CompileDiDependencyMetadata,b.CompileProviderMetadata=f.CompileProviderMetadata,b.CompileFactoryMetadata=f.CompileFactoryMetadata,b.CompileTokenMetadata=f.CompileTokenMetadata,b.CompileTypeMetadata=f.CompileTypeMetadata,b.CompileQueryMetadata=f.CompileQueryMetadata,b.CompileTemplateMetadata=f.CompileTemplateMetadata,b.CompileDirectiveMetadata=f.CompileDirectiveMetadata,b.CompilePipeMetadata=f.CompilePipeMetadata,d(a("14")),d(a("53")),c.exports}),a.registerDynamic("55",["54"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}return d(a("54")),c.exports}),a.registerDynamic("a",["55"],!0,function(a,b,c){return c.exports=a("55"),c.exports}),a.registerDynamic("9",[],!0,function(a,b,c){"use strict";var d=function(){function a(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b,a.reject=c})}return a}();b.PromiseCompleter=d;var e=function(){function a(){}return a.resolve=function(a){return Promise.resolve(a)},a.reject=function(a,b){return Promise.reject(a)},a.catchError=function(a,b){return a["catch"](b)},a.all=function(a){return 0==a.length?Promise.resolve([]):Promise.all(a)},a.then=function(a,b,c){return a.then(b,c)},a.wrap=function(a){return new Promise(function(b,c){try{b(a())}catch(d){c(d)}})},a.scheduleMicrotask=function(b){a.then(a.resolve(null),b,function(a){})},a.isPromise=function(a){return a instanceof Promise},a.completer=function(){return new d},a}();return b.PromiseWrapper=e,c.exports}),a.registerDynamic("5",[],!0,function(a,b,c){"use strict";function d(a){Zone.current.scheduleMicroTask("scheduleMicrotask",a)}function e(a){return a.name?a.name:typeof a}function f(){T=!0}function g(){if(T)throw"Cannot enable prod mode after platform setup.";S=!1}function h(){return S}function i(a){return void 0!==a&&null!==a}function j(a){return void 0===a||null===a}function k(a){return"boolean"==typeof a}function l(a){return"number"==typeof a}function m(a){return"string"==typeof a}function n(a){return"function"==typeof a}function o(a){return n(a)}function p(a){return"object"==typeof a&&null!==a}function q(a){return p(a)&&Object.getPrototypeOf(a)===U}function r(a){return a instanceof R.Promise}function s(a){return Array.isArray(a)}function t(a){return a instanceof b.Date&&!isNaN(a.valueOf())}function u(){}function v(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.name)return a.name;if(a.overriddenName)return a.overriddenName;var b=a.toString(),c=b.indexOf("\n");return-1===c?b:b.substring(0,c)}function w(a){return a}function x(a,b){return a}function y(a,b){return a[b]}function z(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function A(a){return a}function B(a){return j(a)?null:a}function C(a){return j(a)?!1:a}function D(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function E(a){console.log(a)}function F(a){console.warn(a)}function G(a,b,c){for(var d=b.split("."),e=a;d.length>1;){var f=d.shift();e=e.hasOwnProperty(f)&&i(e[f])?e[f]:e[f]={}}void 0!==e&&null!==e||(e={}),e[d.shift()]=c}function H(){if(j(ca))if(i(O.Symbol)&&i(Symbol.iterator))ca=Symbol.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(ca=c)}return ca}function I(a,b,c,d){var e=c+"\nreturn "+b+"\n//# sourceURL="+a,f=[],g=[];for(var h in d)f.push(h),g.push(d[h]);return(new(Function.bind.apply(Function,[void 0].concat(f.concat(e))))).apply(void 0,g)}function J(a){return!D(a)}function K(a,b){return a.constructor===b}function L(a){return a.reduce(function(a,b){return a|b})}function M(a){return a.reduce(function(a,b){return a&b})}function N(a){return R.encodeURI(a)}var O,P=this,Q=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};O="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:P:window,b.scheduleMicroTask=d,b.IS_DART=!1;var R=O;b.global=R,b.Type=Function,b.getTypeNameForDebugging=e,b.Math=R.Math,b.Date=R.Date;var S=!0,T=!1;b.lockMode=f,b.enableProdMode=g,b.assertionsEnabled=h,R.assert=function(a){},b.isPresent=i,b.isBlank=j,b.isBoolean=k,b.isNumber=l,b.isString=m,b.isFunction=n,b.isType=o,b.isStringMap=p;var U=Object.getPrototypeOf({});b.isStrictStringMap=q,b.isPromise=r,b.isArray=s,b.isDate=t,b.noop=u,b.stringify=v,b.serializeEnum=w,b.deserializeEnum=x,b.resolveEnumToken=y;var V=function(){function a(){}return a.fromCharCode=function(a){return String.fromCharCode(a)},a.charCodeAt=function(a,b){return a.charCodeAt(b)},a.split=function(a,b){return a.split(b)},a.equals=function(a,b){return a===b},a.stripLeft=function(a,b){if(a&&a.length){for(var c=0,d=0;d<a.length&&a[d]==b;d++)c++;a=a.substring(c)}return a},a.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,d=a.length-1;d>=0&&a[d]==b;d--)c--;a=a.substring(0,c)}return a},a.replace=function(a,b,c){return a.replace(b,c)},a.replaceAll=function(a,b,c){return a.replace(b,c)},a.slice=function(a,b,c){return void 0===b&&(b=0),
|
||
void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=V;var W=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=W;var X=function(a){function b(b){a.call(this),this.message=b}return Q(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=X;var Y=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new X("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new X("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}();b.NumberWrapper=Y,b.RegExp=R.RegExp;var Z=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new R.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=function(a,b){return a.lastIndex=0,a.test(b)},a.matcher=function(a,b){return a.lastIndex=0,{re:a,input:b}},a.replaceAll=function(a,b,c){var d=a.exec(b),e="";a.lastIndex=0;for(var f=0;d;)e+=b.substring(f,d.index),e+=c(d),f=d.index+d[0].length,a.lastIndex=f,d=a.exec(b);return e+=b.substring(f)},a}();b.RegExpWrapper=Z;var $=function(){function a(){}return a.next=function(a){return a.re.exec(a.input)},a}();b.RegExpMatcherWrapper=$;var _=function(){function a(){}return a.apply=function(a,b){return a.apply(null,b)},a}();b.FunctionWrapper=_,b.looseIdentical=z,b.getMapKey=A,b.normalizeBlank=B,b.normalizeBool=C,b.isJsObject=D,b.print=E,b.warn=F;var aa=function(){function a(){}return a.parse=function(a){return R.JSON.parse(a)},a.stringify=function(a){return R.JSON.stringify(a,null,2)},a}();b.Json=aa;var ba=function(){function a(){}return a.create=function(a,c,d,e,f,g,h){return void 0===c&&(c=1),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),void 0===g&&(g=0),void 0===h&&(h=0),new b.Date(a,c-1,d,e,f,g,h)},a.fromISOString=function(a){return new b.Date(a)},a.fromMillis=function(a){return new b.Date(a)},a.toMillis=function(a){return a.getTime()},a.now=function(){return new b.Date},a.toJson=function(a){return a.toJSON()},a}();b.DateWrapper=ba,b.setValueOnPath=G;var ca=null;return b.getSymbolIterator=H,b.evalExpression=I,b.isPrimitive=J,b.hasConstructor=K,b.bitWiseOr=L,b.bitWiseAnd=M,b.escape=N,c.exports}),a.registerDynamic("56",["a","9","5"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("a"),f=a("9"),g=a("5"),h=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.get=function(a){var b=f.PromiseWrapper.completer(),c=new XMLHttpRequest;return c.open("GET",a,!0),c.responseType="text",c.onload=function(){var d=g.isPresent(c.response)?c.response:c.responseText,e=1223===c.status?204:c.status;0===e&&(e=d?200:0),e>=200&&300>=e?b.resolve(d):b.reject("Failed to load "+a,null)},c.onerror=function(){b.reject("Failed to load "+a,null)},c.send(),b.promise},b}(e.XHR);return b.XHRImpl=h,c.exports}),a.registerDynamic("57",["58","59","5a","5b","5c","5d","5e"],!0,function(a,b,c){"use strict";var d,e=a("58"),f=a("59"),g=a("5a"),h=a("5b"),i=a("5c"),j=a("5d"),k=a("5e");return function(a){function b(){return j.getDOM()}function c(a){return j.setDOM(a)}a.DomAdapter=j.DomAdapter,a.getDOM=b,a.setDOM=c,a.setRootDomAdapter=j.setRootDomAdapter,a.BrowserDomAdapter=k.BrowserDomAdapter,a.AnimationBuilder=e.AnimationBuilder,a.CssAnimationBuilder=f.CssAnimationBuilder,a.CssAnimationOptions=h.CssAnimationOptions,a.Animation=i.Animation,a.BrowserDetails=g.BrowserDetails}(d=b.__platform_browser_private__||(b.__platform_browser_private__={})),c.exports}),a.registerDynamic("5f",[],!0,function(a,b,c){"use strict";function d(a){return String(a).match(e)?a:"unsafe:"+a}var e=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi;return b.sanitizeUrl=d,c.exports}),a.registerDynamic("60",[],!0,function(a,b,c){"use strict";function d(a){for(var b=!0,c=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"===e&&c?b=!b:'"'===e&&b&&(c=!c)}return b&&c}function e(a){return String(a).match(f)&&d(a)?a:"unsafe"}var f=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;return b.sanitizeStyle=e,c.exports}),a.registerDynamic("61",["5f","60","62","11"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("5f"),f=a("60"),g=a("62");b.SecurityContext=g.SecurityContext;var h=a("11"),i=function(){function a(){}return a}();b.DomSanitizationService=i;var j=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.sanitize=function(a,b){if(null==b)return null;switch(a){case g.SecurityContext.NONE:return b;case g.SecurityContext.HTML:return b instanceof l?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"HTML"),this.sanitizeHtml(String(b)));case g.SecurityContext.STYLE:return b instanceof m?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"Style"),f.sanitizeStyle(b));case g.SecurityContext.SCRIPT:if(b instanceof n)return b.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(b,"Script"),new Error("unsafe value used in a script context");case g.SecurityContext.URL:return b instanceof o?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"URL"),e.sanitizeUrl(String(b)));case g.SecurityContext.RESOURCE_URL:if(b instanceof p)return b.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(b,"ResourceURL"),new Error("unsafe value used in a resource URL context");default:throw new Error("Unexpected SecurityContext "+a)}},b.prototype.checkNotSafeValue=function(a,b){if(a instanceof k)throw new Error("Required a safe "+b+", got a "+a.getTypeName())},b.prototype.sanitizeHtml=function(a){return a},b.prototype.bypassSecurityTrustHtml=function(a){return new l(a)},b.prototype.bypassSecurityTrustStyle=function(a){return new m(a)},b.prototype.bypassSecurityTrustScript=function(a){return new n(a)},b.prototype.bypassSecurityTrustUrl=function(a){return new o(a)},b.prototype.bypassSecurityTrustResourceUrl=function(a){return new p(a)},b.decorators=[{type:h.Injectable}],b}(i);b.DomSanitizationServiceImpl=j;var k=function(){function a(a){this.changingThisBreaksApplicationSecurity=a}return a}(),l=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.getTypeName=function(){return"HTML"},b}(k),m=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.getTypeName=function(){return"Style"},b}(k),n=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.getTypeName=function(){return"Script"},b}(k),o=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.getTypeName=function(){return"URL"},b}(k),p=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.getTypeName=function(){return"ResourceURL"},b}(k);return c.exports}),a.registerDynamic("63",["11","64","65","5d"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("64"),f=a("65"),g=a("5d"),h=function(){function a(a){this._testability=a}return a.prototype.isStable=function(){return this._testability.isStable()},a.prototype.whenStable=function(a){this._testability.whenStable(a)},a.prototype.findBindings=function(a,b,c){return this.findProviders(a,b,c)},a.prototype.findProviders=function(a,b,c){return this._testability.findBindings(a,b,c)},a}(),i=function(){function a(){}return a.init=function(){d.setTestabilityGetter(new a)},a.prototype.addToWindow=function(a){f.global.getAngularTestability=function(b,c){void 0===c&&(c=!0);var d=a.findTestabilityInTree(b,c);if(null==d)throw new Error("Could not find testability for element.");return new h(d)},f.global.getAllAngularTestabilities=function(){var b=a.getAllTestabilities();return b.map(function(a){return new h(a)})},f.global.getAllAngularRootElements=function(){return a.getAllRootElements()};var b=function(a){var b=f.global.getAllAngularTestabilities(),c=b.length,d=!1,e=function(b){d=d||b,c--,0==c&&a(d)};b.forEach(function(a){a.whenStable(e)})};f.global.frameworkStabilizers||(f.global.frameworkStabilizers=e.ListWrapper.createGrowableSize(0)),f.global.frameworkStabilizers.push(b)},a.prototype.findTestabilityInTree=function(a,b,c){if(null==b)return null;var d=a.getTestability(b);return f.isPresent(d)?d:c?g.getDOM().isShadowRoot(b)?this.findTestabilityInTree(a,g.getDOM().getHost(b),!0):this.findTestabilityInTree(a,g.getDOM().parentElement(b),!0):null},a}();return b.BrowserGetTestability=i,c.exports}),a.registerDynamic("66",["11","65","64","5d","67","22"],!0,function(a,b,c){return function(c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("65"),g=a("64"),h=a("5d"),i=a("67"),j=["alt","control","meta","shift"],k={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},l=function(a){function b(){a.call(this)}return d(b,a),b.prototype.supports=function(a){return f.isPresent(b.parseEventName(a))},b.prototype.addEventListener=function(a,c,d){var e=b.parseEventName(c),f=b.eventCallback(a,g.StringMapWrapper.get(e,"fullKey"),d,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return h.getDOM().onAndCancel(a,g.StringMapWrapper.get(e,"domEventName"),f)})},b.parseEventName=function(a){var c=a.toLowerCase().split("."),d=c.shift();if(0===c.length||!f.StringWrapper.equals(d,"keydown")&&!f.StringWrapper.equals(d,"keyup"))return null;var e=b._normalizeKey(c.pop()),h="";if(j.forEach(function(a){g.ListWrapper.contains(c,a)&&(g.ListWrapper.remove(c,a),h+=a+".")}),h+=e,0!=c.length||0===e.length)return null;var i=g.StringMapWrapper.create();return g.StringMapWrapper.set(i,"domEventName",d),g.StringMapWrapper.set(i,"fullKey",h),i},b.getEventFullKey=function(a){var b="",c=h.getDOM().getEventKey(a);return c=c.toLowerCase(),f.StringWrapper.equals(c," ")?c="space":f.StringWrapper.equals(c,".")&&(c="dot"),j.forEach(function(d){if(d!=c){var e=g.StringMapWrapper.get(k,d);e(a)&&(b+=d+".")}}),b+=c},b.eventCallback=function(a,c,d,e){return function(a){f.StringWrapper.equals(b.getEventFullKey(a),c)&&e.runGuarded(function(){return d(a)})}},b._normalizeKey=function(a){switch(a){case"esc":return"escape";default:return a}},b.decorators=[{type:e.Injectable}],b.ctorParameters=[],b}(i.EventManagerPlugin);b.KeyEventsPlugin=l}(a("22")),c.exports}),a.registerDynamic("68",["11","5d","67"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("5d"),g=a("67"),h=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.supports=function(a){return!0},b.prototype.addEventListener=function(a,b,c){var d=this.manager.getZone(),e=function(a){return d.runGuarded(function(){return c(a)})};return this.manager.getZone().runOutsideAngular(function(){return f.getDOM().onAndCancel(a,b,e)})},b.prototype.addGlobalEventListener=function(a,b,c){var d=f.getDOM().getGlobalEventTarget(a),e=this.manager.getZone(),g=function(a){return e.runGuarded(function(){return c(a)})};return this.manager.getZone().runOutsideAngular(function(){return f.getDOM().onAndCancel(d,b,g)})},b.decorators=[{type:e.Injectable}],b}(g.EventManagerPlugin);return b.DomEventsPlugin=h,c.exports}),a.registerDynamic("69",["67","64"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("67"),f=a("64"),g={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},h=function(a){function b(){a.call(this)}return d(b,a),b.prototype.supports=function(a){return a=a.toLowerCase(),f.StringMapWrapper.contains(g,a)},b}(e.EventManagerPlugin);return b.HammerGesturesPluginCommon=h,c.exports}),a.registerDynamic("6a",["11","65","6b","69"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("65"),g=a("6b"),h=a("69");b.HAMMER_GESTURE_CONFIG=new e.OpaqueToken("HammerGestureConfig");var i=function(){function a(){this.events=[],this.overrides={}}return a.prototype.buildHammer=function(a){var b=new Hammer(a);b.get("pinch").set({enable:!0}),b.get("rotate").set({enable:!0});for(var c in this.overrides)b.get(c).set(this.overrides[c]);return b},a.decorators=[{type:e.Injectable}],a}();b.HammerGestureConfig=i;var j=function(a){function c(b){a.call(this),this._config=b}return d(c,a),c.prototype.supports=function(b){if(!a.prototype.supports.call(this,b)&&!this.isCustomEvent(b))return!1;if(!f.isPresent(window.Hammer))throw new g.BaseException("Hammer.js is not loaded, can not bind "+b+" event");return!0},c.prototype.addEventListener=function(a,b,c){var d=this,e=this.manager.getZone();return b=b.toLowerCase(),e.runOutsideAngular(function(){var f=d._config.buildHammer(a),g=function(a){e.runGuarded(function(){c(a)})};return f.on(b,g),function(){f.off(b,g)}})},c.prototype.isCustomEvent=function(a){return this._config.events.indexOf(a)>-1},c.decorators=[{type:e.Injectable}],c.ctorParameters=[{type:i,decorators:[{type:e.Inject,args:[b.HAMMER_GESTURE_CONFIG]}]}],c}(h.HammerGesturesPluginCommon);return b.HammerGesturesPlugin=j,c.exports}),a.registerDynamic("6c",["5d"],!0,function(a,b,c){"use strict";var d=a("5d"),e=function(){function a(){}return a.prototype.getTitle=function(){return d.getDOM().getTitle()},a.prototype.setTitle=function(a){d.getDOM().setTitle(a)},a}();return b.Title=e,c.exports}),a.registerDynamic("6d",[],!0,function(a,b,c){"use strict";var d="undefined"!=typeof window&&window||{};return b.window=d,b.document=d.document,b.location=d.location,b.gc=d.gc?function(){return d.gc()}:function(){return null},b.performance=d.performance?d.performance:null,b.Event=d.Event,b.MouseEvent=d.MouseEvent,b.KeyboardEvent=d.KeyboardEvent,b.EventTarget=d.EventTarget,b.History=d.History,b.Location=d.Location,b.EventListener=d.EventListener,c.exports}),a.registerDynamic("6e",["11","65","6d","5d"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("65"),f=a("6d"),g=a("5d"),h=function(){function a(a,b){this.msPerTick=a,this.numTicks=b}return a}();b.ChangeDetectionPerfRecord=h;var i=function(){function a(a){this.profiler=new j(a)}return a}();b.AngularTools=i;var j=function(){function a(a){this.appRef=a.injector.get(d.ApplicationRef)}return a.prototype.timeChangeDetection=function(a){var b=e.isPresent(a)&&a.record,c="Change Detection",d=e.isPresent(f.window.console.profile);b&&d&&f.window.console.profile(c);for(var i=g.getDOM().performanceNow(),j=0;5>j||g.getDOM().performanceNow()-i<500;)this.appRef.tick(),j++;var k=g.getDOM().performanceNow();b&&d&&f.window.console.profileEnd(c);var l=(k-i)/j;return f.window.console.log("ran "+j+" change detection cycles"),f.window.console.log(e.NumberWrapper.toFixed(l,2)+" ms per check"),new h(l,j)},a}();return b.AngularProfiler=j,c.exports}),a.registerDynamic("6f",["65","6e"],!0,function(a,b,c){"use strict";function d(a){h.ng=new g.AngularTools(a)}function e(){delete h.ng}var f=a("65"),g=a("6e"),h=f.global;return b.enableDebugTools=d,b.disableDebugTools=e,c.exports}),a.registerDynamic("70",["65","5d"],!0,function(a,b,c){"use strict";var d=a("65"),e=a("5d"),f=function(){function a(){}return a.all=function(){return function(a){return!0}},a.css=function(a){return function(b){return d.isPresent(b.nativeElement)?e.getDOM().elementMatches(b.nativeElement,a):!1}},a.directive=function(a){return function(b){return-1!==b.providerTokens.indexOf(a)}},a}();return b.By=f,c.exports}),a.registerDynamic("71",["11","62","76","61","65","5e","63","5d","72","67","73","74","66","75","68","6a","58","5a","6c","6f","70"],!0,function(a,b,c){"use strict";function d(){return new g.ExceptionHandler(n.getDOM(),!k.IS_DART)}function e(){return n.getDOM().defaultDoc()}function f(){l.BrowserDomAdapter.makeCurrent(),h.wtfInit(),m.BrowserGetTestability.init()}var g=a("11"),h=a("62"),i=a("76"),j=a("61"),k=a("65"),l=a("5e"),m=a("63"),n=a("5d"),o=a("72"),p=a("67"),q=a("73"),r=a("74"),s=a("66"),t=a("75"),u=a("68"),v=a("6a"),w=a("74"),x=a("58"),y=a("5a"),z=a("6c");b.Title=z.Title;var A=a("5e");b.BrowserDomAdapter=A.BrowserDomAdapter;var B=a("6f");b.enableDebugTools=B.enableDebugTools,b.disableDebugTools=B.disableDebugTools;var C=a("70");b.By=C.By,b.BROWSER_PLATFORM_MARKER=new g.OpaqueToken("BrowserPlatformMarker"),b.BROWSER_PROVIDERS=[{provide:b.BROWSER_PLATFORM_MARKER,useValue:!0},g.PLATFORM_COMMON_PROVIDERS,{provide:g.PLATFORM_INITIALIZER,useValue:f,multi:!0}],b.BROWSER_SANITIZATION_PROVIDERS=[{provide:h.SanitizationService,useExisting:j.DomSanitizationService},{provide:j.DomSanitizationService,useClass:j.DomSanitizationServiceImpl}],b.BROWSER_APP_COMMON_PROVIDERS=[g.APPLICATION_COMMON_PROVIDERS,i.FORM_PROVIDERS,b.BROWSER_SANITIZATION_PROVIDERS,{provide:g.PLATFORM_PIPES,useValue:i.COMMON_PIPES,multi:!0},{provide:g.PLATFORM_DIRECTIVES,useValue:i.COMMON_DIRECTIVES,multi:!0},{provide:g.ExceptionHandler,useFactory:d,deps:[]},{provide:o.DOCUMENT,useFactory:e,deps:[]},{provide:p.EVENT_MANAGER_PLUGINS,useClass:u.DomEventsPlugin,multi:!0},{provide:p.EVENT_MANAGER_PLUGINS,useClass:s.KeyEventsPlugin,multi:!0},{provide:p.EVENT_MANAGER_PLUGINS,useClass:v.HammerGesturesPlugin,multi:!0},{provide:v.HAMMER_GESTURE_CONFIG,useClass:v.HammerGestureConfig},{provide:q.DomRootRenderer,useClass:q.DomRootRenderer_},{provide:g.RootRenderer,useExisting:q.DomRootRenderer},{provide:r.SharedStylesHost,useExisting:w.DomSharedStylesHost},w.DomSharedStylesHost,g.Testability,y.BrowserDetails,x.AnimationBuilder,p.EventManager,t.ELEMENT_PROBE_PROVIDERS];var D=a("6a");return b.HAMMER_GESTURE_CONFIG=D.HAMMER_GESTURE_CONFIG,b.HammerGestureConfig=D.HammerGestureConfig,b.initDomAdapter=f,c.exports}),a.registerDynamic("62",["11"],!0,function(a,b,c){"use strict";var d=a("11");return b.RenderDebugInfo=d.__core_private__.RenderDebugInfo,b.wtfInit=d.__core_private__.wtfInit,b.ReflectionCapabilities=d.__core_private__.ReflectionCapabilities,b.VIEW_ENCAPSULATION_VALUES=d.__core_private__.VIEW_ENCAPSULATION_VALUES,b.DebugDomRootRenderer=d.__core_private__.DebugDomRootRenderer,b.SecurityContext=d.__core_private__.SecurityContext,b.SanitizationService=d.__core_private__.SanitizationService,c.exports}),a.registerDynamic("5b",[],!0,function(a,b,c){"use strict";var d=function(){function a(){this.classesToAdd=[],this.classesToRemove=[],this.animationClasses=[]}return a}();return b.CssAnimationOptions=d,c.exports}),a.registerDynamic("5c",["65","77","64","78","5d"],!0,function(a,b,c){"use strict";var d=a("65"),e=a("77"),f=a("64"),g=a("78"),h=a("5d"),i=function(){function a(a,b,c){var e=this;this.element=a,this.data=b,this.browserDetails=c,this.callbacks=[],this.eventClearFunctions=[],this.completed=!1,this._stringPrefix="",this.startTime=d.DateWrapper.toMillis(d.DateWrapper.now()),this._stringPrefix=h.getDOM().getAnimationPrefix(),this.setup(),this.wait(function(a){return e.start()})}return Object.defineProperty(a.prototype,"totalTime",{get:function(){var a=null!=this.computedDelay?this.computedDelay:0,b=null!=this.computedDuration?this.computedDuration:0;return a+b},enumerable:!0,configurable:!0}),a.prototype.wait=function(a){this.browserDetails.raf(a,2)},a.prototype.setup=function(){null!=this.data.fromStyles&&this.applyStyles(this.data.fromStyles),null!=this.data.duration&&this.applyStyles({transitionDuration:this.data.duration.toString()+"ms"}),null!=this.data.delay&&this.applyStyles({transitionDelay:this.data.delay.toString()+"ms"})},a.prototype.start=function(){this.addClasses(this.data.classesToAdd),this.addClasses(this.data.animationClasses),this.removeClasses(this.data.classesToRemove),null!=this.data.toStyles&&this.applyStyles(this.data.toStyles);var a=h.getDOM().getComputedStyle(this.element);this.computedDelay=e.Math.max(this.parseDurationString(a.getPropertyValue(this._stringPrefix+"transition-delay")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-delay"))),this.computedDuration=e.Math.max(this.parseDurationString(a.getPropertyValue(this._stringPrefix+"transition-duration")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-duration"))),this.addEvents()},a.prototype.applyStyles=function(a){var b=this;f.StringMapWrapper.forEach(a,function(a,c){var e=g.camelCaseToDashCase(c);d.isPresent(h.getDOM().getStyle(b.element,e))?h.getDOM().setStyle(b.element,e,a.toString()):h.getDOM().setStyle(b.element,b._stringPrefix+e,a.toString())})},a.prototype.addClasses=function(a){for(var b=0,c=a.length;c>b;b++)h.getDOM().addClass(this.element,a[b])},a.prototype.removeClasses=function(a){for(var b=0,c=a.length;c>b;b++)h.getDOM().removeClass(this.element,a[b])},a.prototype.addEvents=function(){var a=this;this.totalTime>0?this.eventClearFunctions.push(h.getDOM().onAndCancel(this.element,h.getDOM().getTransitionEnd(),function(b){return a.handleAnimationEvent(b)})):this.handleAnimationCompleted()},a.prototype.handleAnimationEvent=function(a){var b=e.Math.round(1e3*a.elapsedTime);this.browserDetails.elapsedTimeIncludesDelay||(b+=this.computedDelay),a.stopPropagation(),b>=this.totalTime&&this.handleAnimationCompleted()},a.prototype.handleAnimationCompleted=function(){this.removeClasses(this.data.animationClasses),this.callbacks.forEach(function(a){return a()}),this.callbacks=[],this.eventClearFunctions.forEach(function(a){return a()}),this.eventClearFunctions=[],this.completed=!0},a.prototype.onComplete=function(a){return this.completed?a():this.callbacks.push(a),this},a.prototype.parseDurationString=function(a){var b=0;if(null==a||a.length<2)return b;if("ms"==a.substring(a.length-2)){var c=d.NumberWrapper.parseInt(this.stripLetters(a),10);c>b&&(b=c)}else if("s"==a.substring(a.length-1)){var f=1e3*d.NumberWrapper.parseFloat(this.stripLetters(a)),c=e.Math.floor(f);c>b&&(b=c)}return b},a.prototype.stripLetters=function(a){return d.StringWrapper.replaceAll(a,d.RegExpWrapper.create("[^0-9]+$",""),"")},a}();return b.Animation=i,c.exports}),a.registerDynamic("59",["5b","5c"],!0,function(a,b,c){"use strict";var d=a("5b"),e=a("5c"),f=function(){function a(a){this.browserDetails=a,this.data=new d.CssAnimationOptions}return a.prototype.addAnimationClass=function(a){return this.data.animationClasses.push(a),this},a.prototype.addClass=function(a){return this.data.classesToAdd.push(a),this},a.prototype.removeClass=function(a){return this.data.classesToRemove.push(a),this},a.prototype.setDuration=function(a){return this.data.duration=a,this},a.prototype.setDelay=function(a){return this.data.delay=a,this},a.prototype.setStyles=function(a,b){return this.setFromStyles(a).setToStyles(b)},a.prototype.setFromStyles=function(a){return this.data.fromStyles=a,this},a.prototype.setToStyles=function(a){return this.data.toStyles=a,this},a.prototype.start=function(a){return new e.Animation(a,this.data,this.browserDetails)},a}();return b.CssAnimationBuilder=f,c.exports}),a.registerDynamic("77",["65"],!0,function(a,b,c){"use strict";var d=a("65");return b.Math=d.global.Math,b.NaN=typeof b.NaN,c.exports}),a.registerDynamic("5a",["11","77","5d"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("77"),f=a("5d"),g=function(){function a(){this.elapsedTimeIncludesDelay=!1,this.doesElapsedTimeIncludesDelay()}return a.prototype.doesElapsedTimeIncludesDelay=function(){var a=this,b=f.getDOM().createElement("div");f.getDOM().setAttribute(b,"style","position: absolute; top: -9999px; left: -9999px; width: 1px;\n height: 1px; transition: all 1ms linear 1ms;"),this.raf(function(c){f.getDOM().on(b,"transitionend",function(c){var d=e.Math.round(1e3*c.elapsedTime);a.elapsedTimeIncludesDelay=2==d,f.getDOM().remove(b)}),f.getDOM().setStyle(b,"width","2px")},2)},a.prototype.raf=function(a,b){void 0===b&&(b=1);var c=new h(a,b);return function(){return c.cancel()}},a.decorators=[{type:d.Injectable}],a.ctorParameters=[],a}();b.BrowserDetails=g;var h=function(){function a(a,b){this.callback=a,this.frames=b,this._raf()}return a.prototype._raf=function(){var a=this;this.currentFrameId=f.getDOM().requestAnimationFrame(function(b){return a._nextFrame(b)})},a.prototype._nextFrame=function(a){this.frames--,this.frames>0?this._raf():this.callback(a)},a.prototype.cancel=function(){f.getDOM().cancelAnimationFrame(this.currentFrameId),this.currentFrameId=null},a}();return c.exports}),a.registerDynamic("58",["11","59","5a"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("59"),f=a("5a"),g=function(){function a(a){this.browserDetails=a}return a.prototype.css=function(){return new e.CssAnimationBuilder(this.browserDetails)},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:f.BrowserDetails}],a}();return b.AnimationBuilder=g,c.exports}),a.registerDynamic("74",["11","64","5d","72"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("64"),g=a("5d"),h=a("72"),i=function(){function a(){this._styles=[],this._stylesSet=new Set}return a.prototype.addStyles=function(a){var b=this,c=[];a.forEach(function(a){f.SetWrapper.has(b._stylesSet,a)||(b._stylesSet.add(a),b._styles.push(a),c.push(a))}),this.onStylesAdded(c)},a.prototype.onStylesAdded=function(a){},a.prototype.getAllStyles=function(){return this._styles},a.decorators=[{type:e.Injectable}],a.ctorParameters=[],a}();b.SharedStylesHost=i;var j=function(a){function b(b){a.call(this),this._hostNodes=new Set,this._hostNodes.add(b.head)}return d(b,a),b.prototype._addStylesToHost=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];g.getDOM().appendChild(b,g.getDOM().createStyleElement(d))}},b.prototype.addHost=function(a){this._addStylesToHost(this._styles,a),this._hostNodes.add(a)},b.prototype.removeHost=function(a){f.SetWrapper["delete"](this._hostNodes,a)},b.prototype.onStylesAdded=function(a){var b=this;this._hostNodes.forEach(function(c){b._addStylesToHost(a,c)})},b.decorators=[{type:e.Injectable}],b.ctorParameters=[{type:void 0,decorators:[{type:e.Inject,args:[h.DOCUMENT]}]}],b}(i);return b.DomSharedStylesHost=j,c.exports}),a.registerDynamic("79",[],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(b){a.call(this,b)}return d(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),b}(Error);return b.BaseWrappedException=e,c.exports}),a.registerDynamic("7a",["65","79","64"],!0,function(a,b,c){"use strict";var d=a("65"),e=a("79"),f=a("64"),g=function(){function a(){this.res=[]}return a.prototype.log=function(a){this.res.push(a)},a.prototype.logError=function(a){this.res.push(a)},a.prototype.logGroup=function(a){this.res.push(a)},a.prototype.logGroupEnd=function(){},a}(),h=function(){function a(a,b){void 0===b&&(b=!0),this._logger=a,this._rethrowException=b}return a.exceptionToString=function(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null);var e=new g,f=new a(e,!1);return f.call(b,c,d),e.res.join("\n")},a.prototype.call=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null);var e=this._findOriginalException(a),f=this._findOriginalStack(a),g=this._findContext(a);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(a)),d.isPresent(b)&&d.isBlank(f)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(b))),d.isPresent(c)&&this._logger.logError("REASON: "+c),d.isPresent(e)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(e)),d.isPresent(f)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(f))),d.isPresent(g)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(g)),this._logger.logGroupEnd(),this._rethrowException)throw a},a.prototype._extractMessage=function(a){return a instanceof e.BaseWrappedException?a.wrapperMessage:a.toString()},a.prototype._longStackTrace=function(a){return f.isListLikeIterable(a)?a.join("\n\n-----async gap-----\n"):a.toString()},a.prototype._findContext=function(a){try{return a instanceof e.BaseWrappedException?d.isPresent(a.context)?a.context:this._findContext(a.originalException):null}catch(b){return null}},a.prototype._findOriginalException=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a.originalException;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException;return b},a.prototype._findOriginalStack=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a,c=a.originalStack;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException,b instanceof e.BaseWrappedException&&d.isPresent(b.originalException)&&(c=b.originalStack);return c},a}();return b.ExceptionHandler=h,c.exports}),a.registerDynamic("6b",["79","7a"],!0,function(a,b,c){"use strict";function d(a){return new TypeError(a)}function e(){throw new j("unimplemented")}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("79"),h=a("7a"),i=a("7a");b.ExceptionHandler=i.ExceptionHandler;var j=function(a){function b(b){void 0===b&&(b="--"),a.call(this,b),this.message=b,this.stack=new Error(b).stack}return f(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.BaseException=j;var k=function(a){function b(b,c,d,e){a.call(this,b),this._wrapperMessage=b,this._originalException=c,this._originalStack=d,this._context=e,this._wrapperStack=new Error(b).stack}return f(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{
|
||
get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return h.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this.message},b}(g.BaseWrappedException);return b.WrappedException=k,b.makeTypeError=d,b.unimplemented=e,c.exports}),a.registerDynamic("67",["11","6b","64"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("6b"),f=a("64");b.EVENT_MANAGER_PLUGINS=new d.OpaqueToken("EventManagerPlugins");var g=function(){function a(a,b){var c=this;this._zone=b,a.forEach(function(a){return a.manager=c}),this._plugins=f.ListWrapper.reversed(a)}return a.prototype.addEventListener=function(a,b,c){var d=this._findPluginFor(b);return d.addEventListener(a,b,c)},a.prototype.addGlobalEventListener=function(a,b,c){var d=this._findPluginFor(b);return d.addGlobalEventListener(a,b,c)},a.prototype.getZone=function(){return this._zone},a.prototype._findPluginFor=function(a){for(var b=this._plugins,c=0;c<b.length;c++){var d=b[c];if(d.supports(a))return d}throw new e.BaseException("No event manager plugin found for event "+a)},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:void 0,decorators:[{type:d.Inject,args:[b.EVENT_MANAGER_PLUGINS]}]},{type:d.NgZone}],a}();b.EventManager=g;var h=function(){function a(){}return a.prototype.supports=function(a){return!1},a.prototype.addEventListener=function(a,b,c){throw"not implemented"},a.prototype.addGlobalEventListener=function(a,b,c){throw"not implemented"},a}();return b.EventManagerPlugin=h,c.exports}),a.registerDynamic("72",["11"],!0,function(a,b,c){"use strict";var d=a("11");return b.DOCUMENT=new d.OpaqueToken("DocumentToken"),c.exports}),a.registerDynamic("78",["65"],!0,function(a,b,c){"use strict";function d(a){return f.StringWrapper.replaceAllMapped(a,g,function(a){return"-"+a[1].toLowerCase()})}function e(a){return f.StringWrapper.replaceAllMapped(a,h,function(a){return a[1].toUpperCase()})}var f=a("65"),g=/([A-Z])/g,h=/-([a-z])/g;return b.camelCaseToDashCase=d,b.dashCaseToCamelCase=e,c.exports}),a.registerDynamic("73",["11","58","65","6b","74","67","72","5d","78"],!0,function(a,b,c){"use strict";function d(a,b){var c=s.getDOM().parentElement(a);if(b.length>0&&n.isPresent(c)){var d=s.getDOM().nextSibling(a);if(n.isPresent(d))for(var e=0;e<b.length;e++)s.getDOM().insertBefore(d,b[e]);else for(var e=0;e<b.length;e++)s.getDOM().appendChild(c,b[e])}}function e(a,b){for(var c=0;c<b.length;c++)s.getDOM().appendChild(a,b[c])}function f(a){return function(b){var c=a(b);c===!1&&s.getDOM().preventDefault(b)}}function g(a){return n.StringWrapper.replaceAll(b.CONTENT_ATTR,A,a)}function h(a){return n.StringWrapper.replaceAll(b.HOST_ATTR,A,a)}function i(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];n.isArray(e)?i(a,e,c):(e=n.StringWrapper.replaceAll(e,A,a),c.push(e))}return c}function j(a){if("@"!=a[0])return[null,a];var b=n.RegExpWrapper.firstMatch(B,a);return[b[1],b[2]]}var k=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l=a("11"),m=a("58"),n=a("65"),o=a("6b"),p=a("74"),q=a("67"),r=a("72"),s=a("5d"),t=a("78"),u={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"},v="template bindings={}",w=/^template bindings=(.*)$/g,x=function(){function a(a,b,c,d){this.document=a,this.eventManager=b,this.sharedStylesHost=c,this.animate=d,this._registeredComponents=new Map}return a.prototype.renderComponent=function(a){var b=this._registeredComponents.get(a.id);return n.isBlank(b)&&(b=new z(this,a),this._registeredComponents.set(a.id,b)),b},a}();b.DomRootRenderer=x;var y=function(a){function b(b,c,d,e){a.call(this,b,c,d,e)}return k(b,a),b.decorators=[{type:l.Injectable}],b.ctorParameters=[{type:void 0,decorators:[{type:l.Inject,args:[r.DOCUMENT]}]},{type:q.EventManager},{type:p.DomSharedStylesHost},{type:m.AnimationBuilder}],b}(x);b.DomRootRenderer_=y;var z=function(){function a(a,b){this._rootRenderer=a,this.componentProto=b,this._styles=i(b.id,b.styles,[]),b.encapsulation!==l.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===l.ViewEncapsulation.Emulated?(this._contentAttr=g(b.id),this._hostAttr=h(b.id)):(this._contentAttr=null,this._hostAttr=null)}return a.prototype.selectRootElement=function(a,b){var c;if(n.isString(a)){if(c=s.getDOM().querySelector(this._rootRenderer.document,a),n.isBlank(c))throw new o.BaseException('The selector "'+a+'" did not match any elements')}else c=a;return s.getDOM().clearNodes(c),c},a.prototype.createElement=function(a,b,c){var d=j(b),e=n.isPresent(d[0])?s.getDOM().createElementNS(u[d[0]],d[1]):s.getDOM().createElement(d[1]);return n.isPresent(this._contentAttr)&&s.getDOM().setAttribute(e,this._contentAttr,""),n.isPresent(a)&&s.getDOM().appendChild(a,e),e},a.prototype.createViewRoot=function(a){var b;if(this.componentProto.encapsulation===l.ViewEncapsulation.Native){b=s.getDOM().createShadowRoot(a),this._rootRenderer.sharedStylesHost.addHost(b);for(var c=0;c<this._styles.length;c++)s.getDOM().appendChild(b,s.getDOM().createStyleElement(this._styles[c]))}else n.isPresent(this._hostAttr)&&s.getDOM().setAttribute(a,this._hostAttr,""),b=a;return b},a.prototype.createTemplateAnchor=function(a,b){var c=s.getDOM().createComment(v);return n.isPresent(a)&&s.getDOM().appendChild(a,c),c},a.prototype.createText=function(a,b,c){var d=s.getDOM().createTextNode(b);return n.isPresent(a)&&s.getDOM().appendChild(a,d),d},a.prototype.projectNodes=function(a,b){n.isBlank(a)||e(a,b)},a.prototype.attachViewAfter=function(a,b){d(a,b);for(var c=0;c<b.length;c++)this.animateNodeEnter(b[c])},a.prototype.detachView=function(a){for(var b=0;b<a.length;b++){var c=a[b];s.getDOM().remove(c),this.animateNodeLeave(c)}},a.prototype.destroyView=function(a,b){this.componentProto.encapsulation===l.ViewEncapsulation.Native&&n.isPresent(a)&&this._rootRenderer.sharedStylesHost.removeHost(s.getDOM().getShadowRoot(a))},a.prototype.listen=function(a,b,c){return this._rootRenderer.eventManager.addEventListener(a,b,f(c))},a.prototype.listenGlobal=function(a,b,c){return this._rootRenderer.eventManager.addGlobalEventListener(a,b,f(c))},a.prototype.setElementProperty=function(a,b,c){s.getDOM().setProperty(a,b,c)},a.prototype.setElementAttribute=function(a,b,c){var d,e=j(b);n.isPresent(e[0])&&(b=e[0]+":"+e[1],d=u[e[0]]),n.isPresent(c)?n.isPresent(d)?s.getDOM().setAttributeNS(a,d,b,c):s.getDOM().setAttribute(a,b,c):n.isPresent(d)?s.getDOM().removeAttributeNS(a,d,e[1]):s.getDOM().removeAttribute(a,b)},a.prototype.setBindingDebugInfo=function(a,b,c){var d=t.camelCaseToDashCase(b);if(s.getDOM().isCommentNode(a)){var e=n.RegExpWrapper.firstMatch(w,n.StringWrapper.replaceAll(s.getDOM().getText(a),/\n/g,"")),f=n.Json.parse(e[1]);f[d]=c,s.getDOM().setText(a,n.StringWrapper.replace(v,"{}",n.Json.stringify(f)))}else this.setElementAttribute(a,b,c)},a.prototype.setElementClass=function(a,b,c){c?s.getDOM().addClass(a,b):s.getDOM().removeClass(a,b)},a.prototype.setElementStyle=function(a,b,c){n.isPresent(c)?s.getDOM().setStyle(a,b,n.stringify(c)):s.getDOM().removeStyle(a,b)},a.prototype.invokeElementMethod=function(a,b,c){s.getDOM().invoke(a,b,c)},a.prototype.setText=function(a,b){s.getDOM().setText(a,b)},a.prototype.animateNodeEnter=function(a){s.getDOM().isElementNode(a)&&s.getDOM().hasClass(a,"ng-animate")&&(s.getDOM().addClass(a,"ng-enter"),this._rootRenderer.animate.css().addAnimationClass("ng-enter-active").start(a).onComplete(function(){s.getDOM().removeClass(a,"ng-enter")}))},a.prototype.animateNodeLeave=function(a){s.getDOM().isElementNode(a)&&s.getDOM().hasClass(a,"ng-animate")?(s.getDOM().addClass(a,"ng-leave"),this._rootRenderer.animate.css().addAnimationClass("ng-leave-active").start(a).onComplete(function(){s.getDOM().removeClass(a,"ng-leave"),s.getDOM().remove(a)})):s.getDOM().remove(a)},a}();b.DomRenderer=z;var A=/%COMP%/g;b.COMPONENT_VARIABLE="%COMP%",b.HOST_ATTR="_nghost-"+b.COMPONENT_VARIABLE,b.CONTENT_ATTR="_ngcontent-"+b.COMPONENT_VARIABLE;var B=/^@([^:]+):(.+)/g;return c.exports}),a.registerDynamic("75",["11","62","65","5d","73"],!0,function(a,b,c){"use strict";function d(a){return g.getDebugNode(a)}function e(a){return i.assertionsEnabled()?f(a):a}function f(a){return j.getDOM().setGlobalVar(m,d),j.getDOM().setGlobalVar(n,l),new h.DebugDomRootRenderer(a)}var g=a("11"),h=a("62"),i=a("65"),j=a("5d"),k=a("73"),l={ApplicationRef:g.ApplicationRef,NgZone:g.NgZone},m="ng.probe",n="ng.coreTokens";return b.inspectNativeElement=d,b.ELEMENT_PROBE_PROVIDERS=[{provide:g.RootRenderer,useFactory:e,deps:[k.DomRootRenderer]}],b.ELEMENT_PROBE_PROVIDERS_PROD_MODE=[{provide:g.RootRenderer,useFactory:f,deps:[k.DomRootRenderer]}],c.exports}),a.registerDynamic("7b",["11","76","5d"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("76"),g=a("5d"),h=function(a){function b(){a.call(this),this._init()}return d(b,a),b.prototype._init=function(){this._location=g.getDOM().getLocation(),this._history=g.getDOM().getHistory()},Object.defineProperty(b.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),b.prototype.getBaseHrefFromDOM=function(){return g.getDOM().getBaseHref()},b.prototype.onPopState=function(a){g.getDOM().getGlobalEventTarget("window").addEventListener("popstate",a,!1)},b.prototype.onHashChange=function(a){g.getDOM().getGlobalEventTarget("window").addEventListener("hashchange",a,!1)},Object.defineProperty(b.prototype,"pathname",{get:function(){return this._location.pathname},set:function(a){this._location.pathname=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),b.prototype.pushState=function(a,b,c){this._history.pushState(a,b,c)},b.prototype.replaceState=function(a,b,c){this._history.replaceState(a,b,c)},b.prototype.forward=function(){this._history.forward()},b.prototype.back=function(){this._history.back()},b.decorators=[{type:e.Injectable}],b.ctorParameters=[],b}(f.PlatformLocation);return b.BrowserPlatformLocation=h,c.exports}),a.registerDynamic("7c",["11","65","71","75","7b"],!0,function(a,b,c){"use strict";function d(){return g.isBlank(f.getPlatform())&&f.createPlatform(f.ReflectiveInjector.resolveAndCreate(h.BROWSER_PROVIDERS)),f.assertPlatform(h.BROWSER_PLATFORM_MARKER)}function e(a,c,e){g.isPresent(e)&&e();var h=g.isPresent(c)?[b.BROWSER_APP_STATIC_PROVIDERS,c]:b.BROWSER_APP_STATIC_PROVIDERS,i=f.ReflectiveInjector.resolveAndCreate(h,d().injector);return f.coreLoadAndBootstrap(i,a)}var f=a("11"),g=a("65"),h=a("71"),i=a("75");b.ELEMENT_PROBE_PROVIDERS=i.ELEMENT_PROBE_PROVIDERS;var j=a("7b");b.BrowserPlatformLocation=j.BrowserPlatformLocation;var k=a("71");return b.BROWSER_PROVIDERS=k.BROWSER_PROVIDERS,b.By=k.By,b.Title=k.Title,b.enableDebugTools=k.enableDebugTools,b.disableDebugTools=k.disableDebugTools,b.BROWSER_APP_STATIC_PROVIDERS=h.BROWSER_APP_COMMON_PROVIDERS,b.browserStaticPlatform=d,b.bootstrapStatic=e,c.exports}),a.registerDynamic("7d",["11","65","71","68","67","75","57","72","61","7c"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}function e(){return g.isBlank(f.getPlatform())&&f.createPlatform(f.ReflectiveInjector.resolveAndCreate(h.BROWSER_PROVIDERS)),f.assertPlatform(h.BROWSER_PLATFORM_MARKER)}var f=a("11"),g=a("65"),h=a("71"),i=a("68");b.DomEventsPlugin=i.DomEventsPlugin;var j=a("67");b.EventManager=j.EventManager,b.EVENT_MANAGER_PLUGINS=j.EVENT_MANAGER_PLUGINS;var k=a("75");b.ELEMENT_PROBE_PROVIDERS=k.ELEMENT_PROBE_PROVIDERS;var l=a("71");b.BROWSER_APP_COMMON_PROVIDERS=l.BROWSER_APP_COMMON_PROVIDERS,b.BROWSER_SANITIZATION_PROVIDERS=l.BROWSER_SANITIZATION_PROVIDERS,b.BROWSER_PROVIDERS=l.BROWSER_PROVIDERS,b.By=l.By,b.Title=l.Title,b.enableDebugTools=l.enableDebugTools,b.disableDebugTools=l.disableDebugTools,b.HAMMER_GESTURE_CONFIG=l.HAMMER_GESTURE_CONFIG,b.HammerGestureConfig=l.HammerGestureConfig,d(a("57"));var m=a("72");b.DOCUMENT=m.DOCUMENT;var n=a("61");b.DomSanitizationService=n.DomSanitizationService,b.SecurityContext=n.SecurityContext;var o=a("7c");return b.bootstrapStatic=o.bootstrapStatic,b.browserStaticPlatform=o.browserStaticPlatform,b.BROWSER_APP_STATIC_PROVIDERS=o.BROWSER_APP_STATIC_PROVIDERS,b.BrowserPlatformLocation=o.BrowserPlatformLocation,b.browserPlatform=e,c.exports}),a.registerDynamic("7e",["7d"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}return d(a("7d")),c.exports}),a.registerDynamic("7f",["7e"],!0,function(a,b,c){return c.exports=a("7e"),c.exports}),a.registerDynamic("80",["11"],!0,function(a,b,c){"use strict";var d=a("11");return b.ReflectionCapabilities=d.__core_private__.ReflectionCapabilities,c.exports}),a.registerDynamic("81",["a","8","5","56","7f","11","80","22"],!0,function(a,b,c){return function(c){"use strict";function d(a,c){j.reflector.reflectionCapabilities=new k.ReflectionCapabilities;var d=j.ReflectiveInjector.resolveAndCreate([b.BROWSER_APP_DYNAMIC_PROVIDERS,g.isPresent(c)?c:[]],i.browserPlatform().injector);return j.coreLoadAndBootstrap(d,a)}var e=a("a"),f=a("8"),g=a("5"),h=a("56"),i=a("7f"),j=a("11"),k=a("80");b.CACHED_TEMPLATE_PROVIDER=[{provide:e.XHR,useClass:f.CachedXHR}],b.BROWSER_APP_DYNAMIC_PROVIDERS=[i.BROWSER_APP_COMMON_PROVIDERS,e.COMPILER_PROVIDERS,{provide:e.XHR,useClass:h.XHRImpl}],b.bootstrap=d}(a("22")),c.exports}),a.registerDynamic("82",["81"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}return d(a("81")),c.exports}),a.registerDynamic("83",["82"],!0,function(a,b,c){return c.exports=a("82"),c.exports}),a.register("84",["85","86","87","88","89","8a"],function(a){var b,c,d,e,f,g,h,i,j;return{setters:[function(a){b=a.SchemaManager,c=a.RedocComponent,d=a.BaseComponent},function(a){e=a.OptionsService},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]}],execute:function(){"use strict";j=function(a){function d(a,b){i(this,j),f(Object.getPrototypeOf(j.prototype),"constructor",this).call(this,a),this.optionsService=b}g(d,a),h(d,[{key:"prepareModel",value:function(){this.data=this.componentSchema.info,this.specUrl=this.optionsService.options.specUrl}}]);var j=d;return d=Reflect.metadata("parameters",[[b],[e]])(d)||d,d=c({selector:"api-info",styles:["\n .api-info-header{font-weight:normal}:host>div{width:60%}a.openapi-button{padding:3px 8px 4px 8px;color:#0033a0;border:1px solid #0033a0;margin-left:0.5em;font-weight:normal}\n "],template:'\n <div>\n <h1 class="api-info-header">{{data.title}} ({{data.version}})</h1>\n <p *ngIf="data.description" innerHtml="{{data.description | marked}}"> </p>\n <p>\n <!-- TODO: create separate components for contact and license ? -->\n <span *ngIf="data.contact"> Contact:\n <a *ngIf="data.contact.url" href="{{data.contact.url}}">\n {{data.contact.name || data.contact.url}}</a>\n <a *ngIf="data.contact.email" href="mailto:{{data.contact.email}}">\n {{data.contact.email}}</a>\n </span>\n <span *ngIf="data.license"> License:\n <a *ngIf="data.license.url" href="{{data.license.url}}"> {{data.license.name}} </a>\n <span *ngIf="!data.license.url"> {{data.license.name}} </span>\n </span>\n </p>\n <p>\n Download OpenAPI (fka Swagger) specification:\n <a class="openapi-button" target="_blank" attr.href=\'{{specUrl}}\'> Download </a>\n </p>\n </div>\n '})(d)||d}(d),a("ApiInfo",j)}}}),a.register("8b",["85","87","88","89","8a"],function(a){var b,c,d,e,f,g,h;return{setters:[function(a){b=a.RedocComponent,c=a.BaseComponent},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a["default"]}],execute:function(){"use strict";h=function(a){function c(a){g(this,h),d(Object.getPrototypeOf(h.prototype),"constructor",this).call(this,a)}e(c,a),f(c,[{key:"prepareModel",value:function(){this.data={};var a=this.componentSchema.info["x-logo"];a&&(this.data.imgUrl=a.url,this.data.bgColor=a.backgroundColor||"transparent")}}]);var h=c;return c=b({selector:"api-logo",styles:["\n img{max-height:150px;width:auto;display:inline-block;max-width:100%;box-sizing:border-box}\n "],template:'\n <img *ngIf="data.imgUrl" [attr.src]="data.imgUrl" [ngStyle]="{\'background-color\': data.bgColor}">\n '})(c)||c}(c),a("ApiLogo",h)}}}),a.register("8c",["85","87","88","89","8a","8f","8d","8e"],function(a){function b(a,b,c){a[b]||(a[b]=[]),a[b].push(c)}var c,d,e,f,g,h,i,j,k,l;return{setters:[function(a){c=a.RedocComponent,d=a.BaseComponent},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a.JsonSchema},function(a){k=a.JsonSchemaLazy}],execute:function(){"use strict";l=function(a){function d(a){h(this,l),e(Object.getPrototypeOf(l.prototype),"constructor",this).call(this,a)}f(d,a),g(d,[{key:"prepareModel",value:function(){var a=this;this.data={};var b=this.schemaMgr.getMethodParams(this.pointer,!0);b=b.map(function(b){var c=b._pointer;return"body"===b["in"]?b:j.injectPropertyData(b,b.name,c,a.pointer)});var c=this.orderParams(b);if(c.body&&c.body.length){var d=c.body[0];d.pointer=d._pointer,this.data.bodyParam=d,c.body=void 0}this.data.noParams=!(i(c).length||this.data.bodyParam);var e=["path","query","formData","header","body"],f={path:"Used together with Path Templating, where the parameter value is actually part\n of the operation's URL. This does not include the host or base path of the API.\n For example, in /items/{itemId}, the path parameter is itemId",query:"Parameters that are appended to the URL.\n For example, in /items?id=###, the query parameter is id",formData:"Parameters that are submitted through a form.\n application/x-www-form-urlencoded, multipart/form-data or both are usually\n used as the content type of the request",header:"Custom headers that are expected as part of the request"},g=[];e.forEach(function(a){c[a]&&c[a].length&&g.push({place:a,placeHint:f[a],params:c[a]})}),this.data.params=g}},{key:"orderParams",value:function(a){var c={};return a.forEach(function(a){return b(c,a["in"],a)}),c}}]);var l=d;return d=c({selector:"params-list",template:'\n <h5 class="param-list-header" *ngIf="data.params.length"> Parameters </h5>\n <template ngFor [ngForOf]="data.params" let-paramType="$implicit">\n <header class="paramType">\n {{paramType.place}} Parameters\n <span class="hint--top-right hint--large" [attr.data-hint]="paramType.placeHint">?</span>\n </header>\n <br>\n <div class="params-wrap">\n <div *ngFor="let param of paramType.params" class="param">\n <div class="param-name">\n <span class="param-name-content"> {{param.name}} </span>\n </div>\n <div class="param-info">\n <div>\n <span class="param-type {{param.type}}" [ngClass]="{\'with-hint\': param._displayTypeHint}"\n title="{{param._displayTypeHint}}"> {{param._displayType}} {{param._displayFormat}}</span>\n <span *ngIf="param.required" class="param-required">Required</span>\n <div class="default" *ngIf="param.default">Default: {{param.default | json}}</div>\n <div *ngIf="param.enum" class="param-enum">\n <span *ngFor="let enumItem of param.enum" class="enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>\n </div>\n </div>\n <div class="param-description" innerHtml="{{param.description | marked}}"></div>\n </div>\n </div>\n </div>\n </template>\n\n <div *ngIf="data.bodyParam">\n <h5 class="param-list-header" *ngIf="data.bodyParam"> Request Body </h5>\n\n <div class="body-param-description" innerHtml="{{data.bodyParam.description | marked}}"></div>\n <div>\n <br>\n <json-schema-lazy [isRequestSchema]="true" [auto]="true" pointer="{{data.bodyParam.pointer}}/schema">\n </json-schema-lazy>\n </div>\n </div>\n ',styles:['\n .param-list-header{border-bottom:1px solid rgba(38,50,56,0.3);padding:0.2em 0;margin:3.5em 0 .8em 0;color:rgba(38,50,56,0.5);font-weight:normal;text-transform:uppercase}.param-name{font-size:0.929em;padding:10px 0 10px 0;font-weight:400;box-sizing:border-box;line-height:20px;border-left:1px solid rgba(0,51,160,0.5);white-space:nowrap;position:relative;vertical-align:top}.param-name-content{padding-right:25px;display:inline-block;font-family:Montserrat,sans-serif}.param-info{padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;width:75%}.param-range{color:rgba(0,51,160,0.7);position:relative;top:1px;padding:0 4px;border-radius:2px;background-color:rgba(0,51,160,0.1);margin-left:6px}.param-description{font-size:13px}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:rgba(38,50,56,0.4);font-size:0.929em;line-height:20px;vertical-align:middle;font-weight:normal}.param-type.array:before{content:"Array of ";color:#263238;font-weight:300}.param-type.with-hint{display:inline-block;margin-bottom:0.4em;border-bottom:1px dotted rgba(38,50,56,0.4);padding:0;cursor:help}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:"";display:inline-block;width:1px;height:7px;background-color:#0033a0;margin:0 10px;vertical-align:middle}.param-name>span:after{content:"";position:absolute;border-top:1px solid rgba(0,51,160,0.5);width:10px;left:0;top:21px}.param:first-of-type>.param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:21px}.param:last-of-type>.param-name,.param.last>.param-name{position:relative}.param:last-of-type>.param-name:after,.param.last>.param-name:after{content:"";display:block;position:absolute;left:-2px;border-left:2px solid #fff;top:22px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-schema.last>td{border-left:0}.param-enum{color:#263238;font-size:13px}.param-enum:before{content:"Values: {"}.param-enum:after{content:"}"}.param-enum>.enum-value:after{content:", "}.param-enum>.enum-value:last-of-type:after{content:none}header.paramType{margin:10px 0;text-transform:capitalize}.params-wrap{display:table;width:100%}.param-name{display:table-cell;vertical-align:top}.param-info{display:table-cell;width:100%}.param{display:table-row}.param:last-of-type>.param-name{border-left:0}.param:last-of-type>.param-name:after{content:"";display:block;position:absolute;left:0;border-left:1px solid rgba(0,51,160,0.5);height:21px;background-color:white;top:0}.param:first-of-type .param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;height:20px;background-color:white;top:0}[data-hint]{width:1.2em;text-align:center;border-radius:50%;vertical-align:middle;color:#999;line-height:1.2;text-transform:none;cursor:help;border:1px solid #999;margin-left:0.5em}@media (max-width: 520px){[data-hint]{float:right}[data-hint]:after{margin-left:12px;transform:translateX(-100%) translateY(-8px);-moz-transform:translateX(-100%) translateY(-8px);-webkit-transform:translateX(-100%) translateY(-8px)}}\n '],directives:[j,k]})(d)||d}(d),a("ParamsList",l)}}}),a.register("8d",["11","85","87","88","89","90","91","92","8a","8f"],function(a){function b(a,b,c,d){for(var e in p){var f=p[e];f.check(b)&&f.inject(a,b,c,d)}}var c,d,e,f,g,h,i,j,k,l,m,n,o,p;return{setters:[function(a){c=a.ElementRef},function(a){d=a.RedocComponent,e=a.BaseComponent,f=a.SchemaManager},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a.DropDown},function(a){k=a["default"]},function(a){l=a["default"]},function(a){m=a["default"]},function(a){n=a["default"]}],execute:function(){"use strict";o=function(a){function o(a,b){m(this,p),g(Object.getPrototypeOf(p.prototype),"constructor",this).call(this,a),this.$element=b.nativeElement,this["final"]=!1}h(o,a),i(o,[{key:"selectDerived",value:function(a){var b=this.schema.derived[a];b&&!b.active&&(this.schema.derived.forEach(function(a){a.active=!1}),b.active=!0,this.derivedEmtpy=!1,b.empty&&(this.derivedEmtpy=!0))}},{key:"unwrapArray",value:function(a){var b=a;if(a&&"array"===a.type){var c=a.items._pointer||k.join(a._pointer||this.pointer,["items"]);b=a.items,b._isArray=!0,b._pointer=c,b=this.unwrapArray(b)}return b}},{key:"prepareModel",value:function(){if(!this.componentSchema)throw new Error("Can't load component schema at "+this.pointer);this.dereference();var a=this.componentSchema;e.joinAllOf(a,{omitParent:!0}),this.schema=a=this.unwrapArray(a),b(a,a,a._pointer||this.pointer,this.pointer),a.derived=a.derived||[],a.isTrivial||this.prepareObjectPropertiesData(a),this.initDerived()}},{key:"initDerived",value:function(){var a=this;if(this.schema.derived.length){var b=this.schema.properties[this.schema.properties.length-1]["enum"];b&&!function(){var c={};b.forEach(function(a,b){c[a.val]=b}),a.schema.derived.sort(function(a,b){return c[a.name]>c[b.name]})}(),this.selectDerived(0)}}},{key:"prepareObjectPropertiesData",value:function(a){var b=this,c={};a.required&&a.required.forEach(function(a){return c[a]=!0});var d=-1,e=a.properties&&n(a.properties).map(function(e,f){var g=a.properties[e],h=g._pointer||k.join(a._pointer||b.pointer,["properties",e]);return g=o.injectPropertyData(g,e,h),g._pointer===b.childFor&&(g._pointer=null),g.required=!!c[e],g.isDiscriminator=a.discriminator===e,g.isDiscriminator&&(d=f),g});if(e=e||[],a.additionalProperties&&a.additionalProperties!==!1){var f=this.prepareAdditionalProperties(a);f._additional=!0,e.push(f)}if(d>-1){var g=e.splice(d,1);e.push(g[0])}this.isRequestSchema&&(e=e.filter(function(a){return!a.readOnly})),a.properties=e}},{key:"prepareAdditionalProperties",value:function(a){var b=a.additionalProperties;return o.injectPropertyData(b,"<Additional Properties> *",k.join(b._pointer||a._pointer||this.pointer,["additionalProperties"]))}}],[{key:"injectPropertyData",value:function(a,c,d,e){return a=l({},a),a._name=c,b(a,a,d,e),a}}]);var p=o;return o=Reflect.metadata("parameters",[[f],[c]])(o)||o,o=d({selector:"json-schema",template:'\n <span *ngIf="schema.isFile" class="param-wrap">\n <span class="param-file">file</span>\n <div *ngIf="schema._produces && !isRequestSchema" class="file produces">\n Produces: {{ schema._produces | json }}\n </div>\n <div *ngIf="schema._consumes && isRequestSchema" class="file consume">\n Consumes: {{ schema._consumes | json }}\n </div>\n </span>\n <span *ngIf="schema.isTrivial && !schema.isFile" class="param-wrap">\n <span class="param-type param-type-trivial {{schema.type}}"\n [ngClass]="{\'with-hint\': schema._displayTypeHint}"\n title="{{schema._displayTypeHint}}">{{schema._displayType}} {{schema._displayFormat}}\n <span class="param-range" *ngIf="schema._range"> {{schema._range}} </span>\n </span>\n <div *ngIf="schema.enum" class="param-enum">\n <span *ngFor="let enumItem of schema.enum" class="enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>\n </div>\n </span>\n <table *ngIf="!schema.isTrivial" class="params-wrap" [ngClass]="{\'params-array\': schema._isArray}">\n <!-- <caption> {{_displayType}} </caption> -->\n <template ngFor [ngForOf]="schema.properties" let-prop="$implicit" let-last="last">\n <tr class="param" [ngClass]="{\'last\': last,\n \'discriminator\': prop.isDiscriminator && !derivedEmtpy,\n \'complex\': prop._pointer,\n \'additional\': prop._additional\n }">\n <td class="param-name">\n <span class="param-name-content">{{prop._name}}</span>\n </td>\n <td class="param-info">\n <div>\n <span class="param-type {{prop.type}}" [ngClass]="{\'with-hint\': prop._displayTypeHint}"\n title="{{prop._displayTypeHint}}"> {{prop._displayType}} {{prop._displayFormat}}\n <span class="param-range" *ngIf="prop._range"> {{prop._range}} </span>\n </span>\n <span *ngIf="prop.required" class="param-required">Required</span>\n <div *ngIf="prop.default">Default: {{prop.default | json}}</div>\n <div *ngIf="prop.enum && !prop.isDiscriminator" class="param-enum">\n <span *ngFor="let enumItem of prop.enum" class="enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>\n </div>\n </div>\n <div class="param-description" innerHtml="{{prop.description | marked}}"></div>\n <div class="discriminator-info" *ngIf="prop.isDiscriminator">\n <span>This field value determines the exact schema:</span>\n <dropdown (change)="selectDerived($event)">\n <option *ngFor="let derived of schema.derived; let i=index"\n [value]="i">{{derived.name}}</option>\n </dropdown>\n </div>\n </td>\n </tr>\n <tr class="param-schema" [ngClass]="{\'param-array\': prop._isArray, \'last\': last}" *ngIf="prop._pointer">\n <td colspan="2">\n <json-schema class="nested-schema" pointer="{{prop._pointer}}" [isArray]=\'prop._isArray\'\n [nestOdd]="!nestOdd" [isRequestSchema]="isRequestSchema" [attr.nesteven]="!nestOdd">\n </json-schema>\n </td>\n </tr>\n </template>\n <tr *ngIf="schema.derived.length" class="param-wrap discriminator-wrap" [ngClass]="{\'empty\': derivedEmtpy}">\n <td colspan="2">\n <div class="derived-schema" *ngFor="let derived of schema.derived" [ngClass]="{active: derived.active}">\n <json-schema class="discriminator-part" *ngIf="!derived.empty" [childFor]="pointer"\n pointer="{{derived.$ref}}" [final]="derived.final" [isRequestSchema]="isRequestSchema">\n </json-schema>\n </div>\n </td>\n </tr>\n </table>\n ',styles:['\n .param-name{font-size:0.929em;padding:10px 0 10px 0;font-weight:400;box-sizing:border-box;line-height:20px;border-left:1px solid rgba(0,51,160,0.5);white-space:nowrap;position:relative;vertical-align:top}.param-name-content{padding-right:25px;display:inline-block;font-family:Montserrat,sans-serif}.param-info{padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;width:75%}.param-range{color:rgba(0,51,160,0.7);position:relative;top:1px;padding:0 4px;border-radius:2px;background-color:rgba(0,51,160,0.1);margin-left:6px}.param-description{font-size:13px}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:rgba(38,50,56,0.4);font-size:0.929em;line-height:20px;vertical-align:middle;font-weight:normal}.param-type.array:before{content:"Array of ";color:#263238;font-weight:300}.param-type.with-hint{display:inline-block;margin-bottom:0.4em;border-bottom:1px dotted rgba(38,50,56,0.4);padding:0;cursor:help}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:"";display:inline-block;width:1px;height:7px;background-color:#0033a0;margin:0 10px;vertical-align:middle}.param-name>span:after{content:"";position:absolute;border-top:1px solid rgba(0,51,160,0.5);width:10px;left:0;top:21px}.param:first-of-type>.param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:21px}.param:last-of-type>.param-name,.param.last>.param-name{position:relative}.param:last-of-type>.param-name:after,.param.last>.param-name:after{content:"";display:block;position:absolute;left:-2px;border-left:2px solid #fff;top:22px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-schema.last>td{border-left:0}.param-enum{color:#263238;font-size:13px}.param-enum:before{content:"Values: {"}.param-enum:after{content:"}"}.param-enum>.enum-value:after{content:", "}.param-enum>.enum-value:last-of-type:after{content:none}:host{display:block}.param-schema>td{border-left:1px solid rgba(0,51,160,0.5);padding:0 10px}.derived-schema{display:none}.derived-schema.active{display:block}json-schema.nested-schema{background-color:white;padding:10px 20px;position:relative;border-radius:2px}json-schema.nested-schema:before,json-schema.nested-schema:after{content:"";width:0;height:0;position:absolute;top:0;border-style:solid;border-color:transparent;border-width:10px 15px 0;margin-left:-7.5px;border-top-color:#f0f0f0}json-schema.nested-schema:before{left:10%}json-schema.nested-schema:after{right:10%}json-schema.nested-schema .param:first-of-type>.param-name:before,json-schema.nested-schema .param:last-of-type>.param-name:after{border-color:white}json-schema[nesteven="true"]{background-color:#f0f0f0;border-radius:2px}json-schema[nesteven="true"]:before,json-schema[nesteven="true"]:after{border-top-color:white}json-schema[nesteven="true"]>.params-wrap>.param:first-of-type>.param-name:before,json-schema[nesteven="true"]>.params-wrap>.param:last-of-type>.param-name:after{border-color:#f0f0f0}json-schema[nesteven="true"]>.params-wrap>.param:last-of-type>.param-name:after,json-schema[nesteven="true"]>.params-wrap>.param.last>.param-name:after{border-color:#f0f0f0}.param.complex>.param-info{border-bottom:0}.param.additional>.param-name{color:rgba(38,50,56,0.4)}.params-wrap{border-collapse:collapse;width:100%}.params-wrap.params-array:before,.params-wrap.params-array:after{display:block;font-weight:300;color:#263238;font-size:13px;line-height:1.5}.params-wrap.params-array:after{content:"]"}.params-wrap.params-array:before{content:"Array [";padding-top:1em}.params-wrap.params-array{padding-left:10px}.param-schema.param-array:before{bottom:9.75px;width:10px;border-left-style:dashed;border-bottom:1px dashed rgba(0,51,160,0.5)}.params-wrap.params-array>.param-wrap:first-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.params-wrap>.param>.param-schema.param-array{border-left-color:transparent}.param.discriminator>.param-info{padding-bottom:0;border-bottom:0}.param.discriminator>.param-name:after{display:none}.discriminator-info{font-weight:400;margin-bottom:10px}.discriminator-info>span{font-size:0.9em;font-weight:300}.discriminator-wrap:not(.empty)>td{padding:0;position:relative}.discriminator-wrap:not(.empty)>td:before{content:"";display:block;position:absolute;left:0;top:0;border-left:1px solid rgba(0,51,160,0.5);height:21px;z-index:1}ul{text-align:left;margin:0;padding:0;display:block}li{margin:0.5em 0.3em 0.2em 0;font-family:Montserrat,sans-serif;font-size:.929em;line-height:.929em;border:0;color:white;padding:2px 8px 4px 8px;border-radius:2px;background-color:rgba(38,50,56,0.3);display:inline-block;cursor:pointer}li:last-of-type{margin-right:0}li.active{background-color:#0033a0}\n '],
|
||
directives:[o,j],inputs:["isArray","final","nestOdd","childFor","isRequestSchema"],detect:!0})(o)||o}(e),a("JsonSchema",o),p={general:{check:function(){return!0},inject:function(a,b,c){a._pointer=b._pointer||c,a._displayType=b.type,b.format&&(a._displayFormat="<"+b.format+">"),b["enum"]&&(a["enum"]=b["enum"].map(function(a){return{val:a,type:typeof a}}))}},discriminator:{check:function(a){return a.discriminator},inject:function(a,b,c){return void 0===b&&(b=a),function(){a.derived=f.instance().findDerivedDefinitions(c),a.discriminator=b.discriminator}()}},array:{check:function(a){return"array"===a.type},inject:function(a,c,d){return void 0===c&&(c=a),function(){a._isArray=!0,a._pointer=c.items._pointer||k.join(c._pointer||d,["items"]),b(a,c.items,d)}()}},object:{check:function(a){return"object"===a.type&&a.properties},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c=b._pointer&&k.baseName(b._pointer);a._displayType=b.title||c||"object"}()}},noType:{check:function(a){return!a.type},inject:function(a){a._displayType="< * >",a._displayTypeHint="This field may contain data of any type",a.isTrivial=!0}},simpleType:{check:function(a){return"object"===a.type?!(a.properties&&n(a.properties).length||"object"==typeof a.additionalProperties):"array"!==a.type&&a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){a.isTrivial=!0,a._pointer&&(a._pointer=void 0,a._displayType=b.title?b.title+" ("+b.type+")":b.type)}()}},integer:{check:function(a){return"integer"===a.type||"number"===a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c="";b.minimum&&b.maximum?(c+=b.exclusiveMinimum?"( ":"[ ",c+=b.minimum,c+=" .. ",c+=b.maximum,c+=b.exclusiveMaximum?" )":" ]"):b.maximum?(c+=b.exclusiveMaximum?"< ":"<= ",c+=b.maximum):b.minimum&&(c+=b.exclusiveMinimum?"> ":">= ",c+=b.minimum),c&&(a._range=c)}()}},string:{check:function(a){return"string"===a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c;b.minLength&&b.maxLength?c="[ "+b.minLength+" .. "+b.maxLength+" ]":b.maxLength?c="<= "+b.maxLength:b.minimum&&(c=">= "+b.minLength),c&&(a._range=c+" characters")}()}},file:{check:function(a){return"file"===a.type},inject:function(a,b,c,d){return void 0===b&&(b=a),function(){a.isFile=!0;var c=void 0;c="formData"===b["in"]?k.dirName(d,1):k.dirName(d,3);var e=f.instance().byPointer(c),g=f.instance().schema;a._produces=e&&e.produces||g.produces,a._consumes=e&&e.consumes||g.consumes}()}}}}}}),a.register("8e",["11","76","86","89","93","8a","8d"],function(a){function b(a,b){b.parentNode.insertBefore(a,b.nextSibling)}var c,d,e,f,g,h,i,j,k,l,m,n;return{setters:[function(a){c=a.Component,d=a.ElementRef,e=a.ViewContainerRef,f=a.DynamicComponentLoader},function(a){g=a.CORE_DIRECTIVES},function(a){h=a.OptionsService},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a.JsonSchema}],execute:function(){"use strict";m={},n=function(){function a(a,b,c,d,e){k(this,n),this.viewRef=b,this.elementRef=c,this.dcl=d,this.optionsService=e,this.schemaMgr=a}i(a,[{key:"normalizePointer",value:function(){var a=this.schemaMgr.byPointer(this.pointer);return a&&a.$ref||this.pointer}},{key:"load",value:function(){var a=this;this.optionsService.options.disableLazySchemas||this.loaded||(this.pointer&&this.dcl.loadNextToLocation(l,this.viewRef).then(function(b){a.initComponent(b),b.changeDetectorRef?b.changeDetectorRef.detectChanges():b.hostView.changeDetectorRef.detectChanges()}),this.loaded=!0)}},{key:"loadCached",value:function(){var a=this;this.pointer=this.normalizePointer(this.pointer),m[this.pointer]?m[this.pointer].then(function(c){setTimeout(function(){var d=c.location.nativeElement;return d.querySelector(".discriminator-wrap")?void a.dcl.loadNextToLocation(l,a.viewRef).then(function(b){a.initComponent(b),b.changeDetectorRef?b.changeDetectorRef.detectChanges():b.hostView.changeDetectorRef.detectChanges()}):void b(d.cloneNode(!0),a.elementRef.nativeElement)})}):m[this.pointer]=this.dcl.loadNextToLocation(l,this.viewRef).then(function(b){return a.initComponent(b),b.changeDetectorRef?b.changeDetectorRef.detectChanges():b.hostView.changeDetectorRef.detectChanges(),b})}},{key:"initComponent",value:function(a){a.instance.pointer=this.pointer,a.instance.isRequestSchema=this.isRequestSchema}},{key:"ngAfterViewInit",value:function(){this.auto&&this.loadCached()}},{key:"ngOnDestroy",value:function(){m={}}}]);var n=a;return a=Reflect.metadata("parameters",[[j],[e],[d],[f],[h]])(a)||a,a=c({selector:"json-schema-lazy",inputs:["pointer","auto","isRequestSchema"],template:"",directives:[g]})(a)||a}(),a("JsonSchemaLazy",n)}}}),a.register("94",["85","86","87","88","89","90","91","95","8a","8f","8d","8e"],function(a){function b(a){return!isNaN(parseFloat(a))&&isFinite(a)}var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;return{setters:[function(a){c=a.RedocComponent,d=a.BaseComponent,e=a.SchemaManager},function(a){f=a.OptionsService},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a.Zippy},function(a){k=a["default"]},function(a){l=a.statusCodeType},function(a){m=a["default"]},function(a){n=a["default"]},function(a){o=a.JsonSchema},function(a){p=a.JsonSchemaLazy}],execute:function(){"use strict";q=function(a){function d(a,b){m(this,q),g(Object.getPrototypeOf(q.prototype),"constructor",this).call(this,a),this.options=b.options}h(d,a),i(d,[{key:"prepareModel",value:function(){var a=this;this.data={},this.data.responses=[];var c=this.componentSchema;c&&(c=n(c).filter(function(a){return b(a)||"default"===a}).map(function(b){var d=c[b];if(d.pointer=k.join(a.pointer,b),d.$ref){var e=d.$ref;d=a.schemaMgr.byPointer(d.$ref),d.pointer=e}return d.empty=!d.schema,d.code=b,d.type=l(d.code),d.headers&&(d.headers=n(d.headers).map(function(a){var b=d.headers[a];return b.name=a,b}),d.empty=!1),d.extendable=d.headers||d.length,d}),this.data.responses=c)}}]);var q=d;return d=Reflect.metadata("parameters",[[e],[f]])(d)||d,d=c({selector:"responses-list",template:'\n <h2 class="responses-list-header" *ngIf="data.responses.length"> Responses </h2>\n <zippy *ngFor="let response of data.responses" title="{{response.code}} {{response.description}}"\n [type]="response.type" [empty]="response.empty" (open)="lazySchema.load()">\n <div *ngIf="response.headers" class="response-headers">\n <header>\n Headers\n </header>\n <div class="header" *ngFor="let header of response.headers">\n <div class="header-name"> {{header.name}} </div>\n <div class="header-type"> {{header.type}} </div>\n <div *ngIf="header.default" class="header-default"> Default: {{header.default}} </div>\n <div class="header-description" innerHtml="{{header.description | marked}}"> </div>\n </div>\n </div>\n <header *ngIf="response.headers">\n Response Schema\n </header>\n <json-schema *ngIf="response.schema && options.disableLazySchemas" class="schema type" pointer="{{response.pointer}}/schema">\n </json-schema>\n <json-schema-lazy #lazySchema pointer="{{response.schema ? response.pointer + \'/schema\' : null}}">\n </json-schema-lazy>\n </zippy>\n ',styles:["\n .responses-list-header{font-size:18px;padding:0.2em 0;margin:3em 0 1.1em 0;color:#253137;font-weight:normal}:host .zippy-title{font-family:Montserrat,sans-serif}.header-name{font-weight:bold;display:inline-block}.header-type{display:inline-block;font-weight:bold;color:#999}header{font-size:14px;font-weight:bold;text-transform:uppercase;margin-bottom:15px}header:not(:first-child){margin-top:15px;margin-bottom:0}.header{margin-bottom:10px}\n "],directives:[o,j,p],detect:!0})(d)||d}(d),a("ResponsesList",q)}}}),a.register("95",[],function(a){"use strict";function b(a){if(100>a||a>599)throw new Error("invalid HTTP code");var b="success";return a>=300&&400>a?b="redirect":a>=400?b="error":200>a&&(b="info"),b}return a("statusCodeType",b),{setters:[],execute:function(){}}}),a.register("96",["11","85","87","88","89","90","91","95","97","8a","8f"],function(a){function b(a){return!isNaN(parseFloat(a))&&isFinite(a)}function c(a){return a.examples&&a.examples["application/json"]||a.schema}var d,e,f,g,h,i,j,k,l,m,n,o,p,q;return{setters:[function(a){d=a.forwardRef},function(a){e=a.RedocComponent,f=a.BaseComponent},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a.Tabs,k=a.Tab},function(a){l=a["default"]},function(a){m=a.statusCodeType},function(a){n=a.SchemaSample},function(a){o=a["default"]},function(a){p=a["default"]}],execute:function(){"use strict";q=function(a){function f(a){o(this,q),g(Object.getPrototypeOf(q.prototype),"constructor",this).call(this,a)}h(f,a),i(f,[{key:"prepareModel",value:function(){var a=this;this.data={},this.data.responses=[];var d=this.componentSchema;d&&(d=p(d).filter(function(a){return b(a)||"default"===a}).map(function(b){var c=d[b];if(c.pointer=l.join(a.pointer,b),c.$ref){var e=c.$ref;c=a.schemaMgr.byPointer(c.$ref),c.pointer=e}return c.code=b,c.type=m(c.code),c}).filter(function(a){return c(a)}),this.data.responses=d)}}]);var q=f;return f=e({selector:"responses-samples",template:'\n <header *ngIf="data.responses.length"> Response samples </header>\n <tabs *ngIf="data.responses.length">\n <tab *ngFor="let response of data.responses" tabTitle="{{response.code}} {{response.description}}"\n [tabStatus]="response.type">\n <schema-sample [pointer]="response.pointer"></schema-sample>\n </tab>\n </tabs>\n ',styles:["\n tab,tabs{display:block}schema-sample{display:block}header{font-family:Montserrat;font-size:0.929em;text-transform:uppercase;margin:0;color:#9fb4be;text-transform:uppercase;font-weight:normal}:host>tabs>ul li{font-family:Montserrat;font-size:0.929em;border-radius:2px;margin:2px 0;padding:2px 8px 3px 8px;color:#9fb4be;line-height:1.25}:host>tabs>ul li:hover{color:#ffffff;background-color:rgba(255,255,255,0.1)}:host>tabs>ul li.active{background-color:white;color:#263238}:host tabs ul{padding-top:10px}\n "],directives:[d(function(){return n}),j,k]})(f)||f}(f),a("ResponsesSamples",q)}}}),a.registerDynamic("98",[],!0,function(a,b,c){"use strict";function d(a){var b=a.type;return void 0!==g[b]}function e(a){var b=a.type;return a["default"]?a["default"]:g[b]}function f(a){function b(a,c,f){if(a){var g,h=a.type;if("object"===h&&a.properties){f[c]=f[c]||{};for(var i in a.properties)a.properties.hasOwnProperty(i)&&b(a.properties[i],i,f[c])}else if(a.allOf)for(g=0;g<a.allOf.length;g++)b(a.allOf[g],c,f);else if("array"===h){f[c]=[];var j=1;for((a.minItems||0===a.minItems)&&(j=a.minItems),g=0;j>g;g++)b(a.items,g,f[c])}else d(a)&&(f[c]=e(a))}}var c={};return b(a,"kek",c),c.kek}var g={string:"",number:0,integer:0,"null":null,"boolean":!1,object:{}};return"undefined"!=typeof c&&(c.exports={instantiate:f}),c.exports}),a.registerDynamic("99",["98"],!0,function(a,b,c){return c.exports=a("98"),c.exports}),a.registerDynamic("9a",["99"],!0,function(a,b,c){return c.exports=a("99"),c.exports}),a.register("9b",["11","89","8a","8f","9c"],function(a){function b(a){return null!=a?a.toString().replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"):""}function c(a,c){return'<span class="'+c+'">'+b(a)+"</span>"}function d(a){var d=typeof a,g="";return null==a?g+=c("null","type-null"):a&&a.constructor===Array?(m++,g+=e(a),m--):"object"===d?(m++,g+=f(a),m--):"number"===d?g+=c(a,"type-number"):"string"===d?g+=/^(http|https):\/\/[^\\s]+$/.test(a)?c('"',"type-string")+'<a href="'+a+'">'+b(a)+"</a>"+c('"',"type-string"):c('"'+a+'"',"type-string"):"boolean"===d&&(g+=c(a,"type-boolean")),g}function e(a){var b,c,e=m>n?"collapsed":"",f='<div class="collapser"></div>[<span class="ellipsis"></span><ul class="array collapsible">',g=!1;for(b=0,c=a.length;c>b;b++)g=!0,f+='<li><div class="hoverable '+e+'">',f+=d(a[b]),c-1>b&&(f+=","),f+="</div></li>";return f+="</ul>]",g||(f="[ ]"),f}function f(a){var c,e,f,g=m>n?"collapsed":"",h=k(a),i='<div class="collapser"></div>{<span class="ellipsis"></span><ul class="obj collapsible">',j=!1;for(c=0,f=h.length;f>c;c++)e=h[c],j=!0,i+='<li><div class="hoverable '+g+'">',i+='<span class="property">'+b(e)+"</span>: ",i+=d(a[e]),f-1>c&&(i+=","),i+="</div></li>";return i+="</ul>}",j||(i="{ }"),i}function g(a){m=1;var b="";return b+='<div class="redoc-json">',b+=d(a),b+="</div>"}var h,i,j,k,l,m,n,o;return{setters:[function(a){h=a.Pipe},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a.isBlank}],execute:function(){"use strict";m=1,n=2,o=function(){function a(){j(this,b)}i(a,[{key:"transform",value:function(a){return l(a)?a:g(a)}}]);var b=a;return a=h({name:"jsonFormatter"})(a)||a}(),a("JsonFormatter",o)}}}),a.register("9d",["11","85","87","88","89","8a","9a","9b"],function(a){var b,c,d,e,f,g,h,i,j,k,l;return{setters:[function(a){b=a.ElementRef},function(a){c=a.RedocComponent,d=a.BaseComponent,e=a.SchemaManager},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a.JsonFormatter}],execute:function(){"use strict";l=function(a){function d(a,b){i(this,l),f(Object.getPrototypeOf(l.prototype),"constructor",this).call(this,a),this.element=b.nativeElement}g(d,a),h(d,[{key:"init",value:function(){this.data={};var a={},b=void 0;this.componentSchema.schema&&(a=this.componentSchema,this.componentSchema=this.componentSchema.schema),a.examples&&a.examples["application/json"]?b=a.examples["application/json"]:(this.dereference(this.componentSchema),b=j.instantiate(this.componentSchema)),this.data.sample=b,this.element.addEventListener("click",function(a){var b,c=a.target;"collapser"===a.target.className&&(b=c.parentNode.getElementsByClassName("collapsible")[0],b.parentNode.classList.contains("collapsed")?b.parentNode.classList.remove("collapsed"):b.parentNode.classList.add("collapsed"))})}}]);var l=d;return d=Reflect.metadata("parameters",[[e],[b]])(d)||d,d=c({selector:"schema-sample",template:'\n <div class="snippet">\n <!-- in case sample is not available for some reason -->\n <pre *ngIf="data.sample == null"> Sample unavailable </pre>\n <pre innerHtml="{{data.sample | jsonFormatter}}"></pre>\n </div>\n ',pipes:[k],styles:['\n pre{background-color:transparent;padding:0}:host .type-null{color:gray}:host .type-boolean{color:firebrick}:host .type-number{color:#4A8BB3}:host .type-string{color:#66B16E}:host .callback-function{color:gray}:host .collapser:after{content:"-";cursor:pointer}:host .collapsed>.collapser:after{content:"+";cursor:pointer}:host .ellipsis:after{content:" … "}:host .collapsible{margin-left:2em}:host .hoverable{padding-top:1px;padding-bottom:1px;padding-left:2px;padding-right:2px;border-radius:2px}:host .hovered{background-color:#ebeef9}:host .collapser{padding-right:6px;padding-left:6px}:host .redoc-json{padding:20px;border-radius:4px;background-color:#222d32;margin-bottom:36px}:host ul,:host .redoc-json ul{list-style-type:none;padding:0px;margin:0px 0px 0px 26px}:host li{position:relative}:host .hoverable{transition:background-color .2s ease-out 0s;-webkit-transition:background-color .2s ease-out 0s;display:inline-block}:host .hovered{transition-delay:.2s;-webkit-transition-delay:.2s}:host .selected{outline-style:solid;outline-width:1px;outline-style:dotted}:host .collapsed>.collapsible{display:none}:host .ellipsis{display:none}:host .collapsed>.ellipsis{display:inherit}:host .collapser{position:absolute;top:1px;left:-1.5em;cursor:default;user-select:none;-webkit-user-select:none}\n ']})(d)||d}(d),a("SchemaSample",l)}}}),a.register("9e",["11","85","86","87","88","89","90","91","8a","9d","9f"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;return{setters:[function(a){b=a.ViewChildren,c=a.QueryList},function(a){d=a.RedocComponent,e=a.BaseComponent,f=a.SchemaManager},function(a){g=a.RedocEventsService},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a.Tabs,l=a.Tab},function(a){m=a["default"]},function(a){n=a["default"]},function(a){o=a.SchemaSample},function(a){p=a.PrismPipe}],execute:function(){"use strict";q=function(a){function e(a,b,c){var d=this;n(this,q),h(Object.getPrototypeOf(q.prototype),"constructor",this).call(this,a),c.changes.subscribe(function(){d.childTabs=c.first}),this.events=b,this.selectedLang=this.events.samplesLanguageChanged}i(e,a),j(e,[{key:"changeLangNotify",value:function(a){this.events.samplesLanguageChanged.next(a)}},{key:"prepareModel",value:function(){this.data={},this.data.schemaPointer=m.join(this.schemaPointer,"schema"),this.data.samples=this.componentSchema["x-code-samples"]||[]}}]);var q=e;return e=Reflect.metadata("parameters",[[f],[g],[new b(k),c]])(e)||e,e=d({selector:"request-samples",template:'\n <header *ngIf="data.schemaPointer || data.samples.length"> Request samples </header>\n <schema-sample *ngIf="!data.samples.length" [pointer]="data.schemaPointer"> </schema-sample>\n <tabs *ngIf="data.samples.length" [selected] = "selectedLang" (change)=changeLangNotify($event)>\n <tab tabTitle="JSON">\n <schema-sample [pointer]="data.schemaPointer"> </schema-sample>\n </tab>\n <tab *ngFor="let sample of data.samples" [tabTitle]="sample.lang">\n <pre innerHtml="{{sample.source | prism:sample.lang}}"></pre>\n </tab>\n </tabs>\n ',styles:["\n header{font-family:Montserrat;font-size:0.929em;text-transform:uppercase;margin:0;color:#9fb4be;text-transform:uppercase;font-weight:normal}:host>tabs>ul li{font-family:Montserrat;font-size:.9em;border-radius:2px;margin:2px 0;padding:3px 10px 2px 10px;line-height:1.25;color:#9fb4be}:host>tabs>ul li:hover{background-color:rgba(255,255,255,0.1);color:#ffffff}:host>tabs>ul li.active{background-color:#ffffff;color:#263238}:host tabs ul{padding-top:10px}pre{overflow-x:auto;word-break:break-all;word-wrap:break-word;white-space:pre-wrap}\n "],directives:[o,k,l],inputs:["schemaPointer"],pipes:[p],detect:!0,onPushOnly:!1})(e)||e}(e),a("RequestSamples",q)}}}),a.register("2",["85","87","88","89","91","94","96","8a","8c","9d","9e"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n;return{setters:[function(a){b=a.RedocComponent,c=a.BaseComponent},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a.JsonPointer},function(a){h=a.ResponsesList},function(a){i=a.ResponsesSamples},function(a){j=a["default"]},function(a){k=a.ParamsList},function(a){l=a.SchemaSample},function(a){m=a.RequestSamples}],execute:function(){"use strict";n=function(a){function c(a){j(this,n),d(Object.getPrototypeOf(n.prototype),"constructor",this).call(this,a)}e(c,a),f(c,[{key:"prepareModel",value:function(){this.data={},this.data.apiUrl=this.schemaMgr.apiUrl,this.data.httpMethod=g.baseName(this.pointer),this.data.path=g.baseName(this.pointer,2),this.data.methodInfo=this.componentSchema,this.data.methodInfo.tags=this.filterMainTags(this.data.methodInfo.tags),this.data.bodyParam=this.findBodyParam(),this.componentSchema.operationId?this.data.methodAnchor="operation/"+encodeURIComponent(this.componentSchema.operationId):this.data.methodAnchor="tag/"+encodeURIComponent(this.tag+this.pointer)}},{key:"filterMainTags",value:function(a){var b=this.schemaMgr.getTagsMap();return a?a.filter(function(a){return b[a]&&b[a]["x-traitTag"]}):[]}},{key:"findBodyParam",value:function(){var a=this.schemaMgr.getMethodParams(this.pointer,!0),b=a.find(function(a){return"body"===a["in"]});return b}}]);var n=c;return c=b({selector:"method",template:'\n <div class="method">\n <div class="method-content">\n <h2 class="method-header sharable-header">\n <a class="share-link" href="#{{data.methodAnchor}}"></a>{{data.methodInfo.summary}}\n </h2>\n <div class="method-tags" *ngIf="data.methodInfo.tags.length">\n <a *ngFor="let tag of data.methodInfo.tags" attr.href="#{{tag}}"> {{tag}} </a>\n </div>\n <p *ngIf="data.methodInfo.description" class="method-description"\n innerHtml="{{data.methodInfo.description | marked}}">\n </p>\n <params-list pointer="{{pointer}}/parameters"> </params-list>\n <responses-list pointer="{{pointer}}/responses"> </responses-list>\n </div>\n <div class="method-samples">\n <h5>Definition</h5>\n <span class="method-endpoint">\n <h5 class="http-method" [ngClass]="data.httpMethod">{{data.httpMethod}}</h5>\n <span class="api-url">{{data.apiUrl}}</span><span class="path">{{data.path}}</span>\n </span>\n <div *ngIf="data.bodyParam">\n <br>\n <request-samples [pointer]="pointer" [schemaPointer]="data.bodyParam._pointer">\n </request-samples>\n </div>\n <div>\n <br>\n <responses-samples pointer="{{pointer}}/responses"> </responses-samples>\n </div>\n </div>\n <div>\n ',styles:['\n .share-link{cursor:pointer;margin-left:-15px;padding:0;line-height:1;width:15px;display:inline-block}.share-link:before{content:"";width:15px;height:15px;background-size:contain;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==");opacity:0.5;visibility:hidden;display:inline-block;vertical-align:middle}.sharable-header{color:#263238}.sharable-header:hover .share-link:before,.share-link:hover:before{visibility:visible}:host{padding-bottom:100px;display:block;border-bottom:1px solid rgba(127,127,127,0.25)}responses-list,params-list{display:block}.method-header{margin-bottom:.9em}.method-endpoint{margin:0 0 2em 0;padding:10px 20px;border-radius:4px;background-color:#222d32;display:block;font-weight:300;white-space:nowrap;overflow-x:auto}.method-endpoint>h5{padding-top:1px;padding-bottom:0;margin:0;font-size:.8em;color:#263238;vertical-align:middle;display:inline-block;border-radius:2px}.api-url{color:rgba(255,255,255,0.8);margin-left:10px;margin-top:2px;position:relative;top:1px;font-family:Montserrat,sans-serif;font-size:0.929em !important}.path{font-family:Montserrat,sans-serif;position:relative;top:1px;color:#ffffff;font-size:0.929em !important}.method-tags{margin-top:20px}.method-tags a{font-size:16px;color:#999;display:inline-block;padding:0 0.5em;text-decoration:none}.method-tags a:before{content:\'#\';margin-right:-0.4em}.method-tags a:first-of-type{padding:0}.method-content,.method-samples{display:block;box-sizing:border-box;float:left}.method-content{width:60%;padding:40px}.method-samples{color:#fafbfc;width:40%;padding:40px;background:#263238}responses-samples{display:block}.method-samples header,.method-samples>h5{color:#9fb4be;text-transform:uppercase}.method-samples>h5{margin-bottom:8px}.method-samples schema-sample{display:block}.method:after{content:"";display:table;clear:both}.method-description{padding:6px 0 10px 0;margin:0}.http-method{color:#263238;background:#ffffff;padding:3px 10px;text-transform:uppercase}@media (max-width: 1100px){.methods:before{display:none}.method-samples,.method-content{width:100%}.method-samples{margin-top:2em}:host{padding-bottom:0}}\n '],directives:[k,h,i,l,m],inputs:["tag"],detect:!0})(c)||c}(c),a("Method",n)}}}),a.register("a0",["2","11","85","87","88","89","8a","a1","a2","9f"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m;return{setters:[function(a){b=a.Method},function(a){c=a.forwardRef},function(a){d=a.RedocComponent,e=a.BaseComponent},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a.EncodeURIComponentPipe}],execute:function(){"use strict";m=function(a){function e(a){i(this,m),f(Object.getPrototypeOf(m.prototype),"constructor",this).call(this,a)}g(e,a),h(e,[{key:"prepareModel",value:function(){this.data={};var a=this.schemaMgr.buildMenuTree(),b=k(a.entries()).map(function(a){var b=j(a,2),c=b[0],d=b[1],e=d.description,f=d.methods;return f=f||[],f.forEach(function(a){a.tag=c}),{name:c,description:e,methods:f}});this.data.tags=b}}]);var m=e;return e=d({selector:"methods-list",template:'\n <div class="methods">\n <div class="tag" *ngFor="let tag of data.tags">\n <div class="tag-info" [attr.tag]="tag.name">\n <h1 class="sharable-header"> <a class="share-link" href="#tag/{{tag.name | encodeURIComponent}}"></a>{{tag.name}} </h1>\n <p *ngIf="tag.description" innerHtml="{{ tag.description | marked }}"> </p>\n </div>\n <method *ngFor="let method of tag.methods" [pointer]="method.pointer" [attr.pointer]="method.pointer"\n [attr.tag]="method.tag" [tag]="method.tag" [attr.operation-id]="method.operationId"></method>\n </div>\n </div>\n ',styles:['\n .share-link{cursor:pointer;margin-left:-15px;padding:0;line-height:1;width:15px;display:inline-block}.share-link:before{content:"";width:15px;height:15px;background-size:contain;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==");opacity:0.5;visibility:hidden;display:inline-block;vertical-align:middle}.sharable-header{color:#263238}.sharable-header:hover .share-link:before,.share-link:hover:before{visibility:visible}.tag-info{padding:40px;box-sizing:border-box;background-color:white;width:60%}@media (max-width: 1100px){.tag-info{width:100%}}.tag-info:after,.tag-info:before{content:"";display:table}.tag-info h1{color:#0033a0;text-transform:capitalize;font-weight:normal}.methods{display:block;position:relative}\n '],directives:[c(function(){return b})],pipes:[l],detect:!0})(e)||e}(e),a("MethodsList",m)}}}),a.registerDynamic("a3",["a2"],!0,function(a,b,c){"use strict";var d=a("a2")["default"];return b["default"]=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}return d(a)},b.__esModule=!0,c.exports}),a.registerDynamic("a4",[],!0,function(a,b,c){var d=this,e="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},f=function(){var a=/\blang(?:uage)?-(?!\*)(\w+)\b/i,b=e.Prism={util:{encode:function(a){return a instanceof c?new c(a.type,b.util.encode(a.content),a.alias):"Array"===b.util.type(a)?a.map(b.util.encode):a.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(a){return Object.prototype.toString.call(a).match(/\[object (\w+)\]/)[1]},clone:function(a){var c=b.util.type(a);switch(c){case"Object":var d={};for(var e in a)a.hasOwnProperty(e)&&(d[e]=b.util.clone(a[e]));return d;case"Array":return a.map&&a.map(function(a){return b.util.clone(a)})}return a}},languages:{extend:function(a,c){var d=b.util.clone(b.languages[a]);for(var e in c)d[e]=c[e];return d},insertBefore:function(a,c,d,e){e=e||b.languages;var f=e[a];if(2==arguments.length){d=arguments[1];for(var g in d)d.hasOwnProperty(g)&&(f[g]=d[g]);return f}var h={};for(var i in f)if(f.hasOwnProperty(i)){if(i==c)for(var g in d)d.hasOwnProperty(g)&&(h[g]=d[g]);h[i]=f[i]}return b.languages.DFS(b.languages,function(b,c){c===e[a]&&b!=a&&(this[b]=h)}),e[a]=h},DFS:function(a,c,d){for(var e in a)a.hasOwnProperty(e)&&(c.call(a,e,a[e],d||e),"Object"===b.util.type(a[e])?b.languages.DFS(a[e],c):"Array"===b.util.type(a[e])&&b.languages.DFS(a[e],c,e))}},plugins:{},highlightAll:function(a,c){for(var d,e=document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'),f=0;d=e[f++];)b.highlightElement(d,a===!0,c)},highlightElement:function(c,d,f){for(var g,h,i=c;i&&!a.test(i.className);)i=i.parentNode;i&&(g=(i.className.match(a)||[,""])[1],h=b.languages[g]),c.className=c.className.replace(a,"").replace(/\s+/g," ")+" language-"+g,i=c.parentNode,/pre/i.test(i.nodeName)&&(i.className=i.className.replace(a,"").replace(/\s+/g," ")+" language-"+g);var j=c.textContent,k={element:c,language:g,grammar:h,code:j};if(!j||!h)return void b.hooks.run("complete",k);if(b.hooks.run("before-highlight",k),d&&e.Worker){var l=new Worker(b.filename);l.onmessage=function(a){k.highlightedCode=a.data,b.hooks.run("before-insert",k),k.element.innerHTML=k.highlightedCode,f&&f.call(k.element),b.hooks.run("after-highlight",k),b.hooks.run("complete",k)},l.postMessage(JSON.stringify({language:k.language,code:k.code,immediateClose:!0}))}else k.highlightedCode=b.highlight(k.code,k.grammar,k.language),b.hooks.run("before-insert",k),k.element.innerHTML=k.highlightedCode,f&&f.call(c),b.hooks.run("after-highlight",k),b.hooks.run("complete",k)},highlight:function(a,d,e){var f=b.tokenize(a,d);return c.stringify(b.util.encode(f),e)},tokenize:function(a,c,d){var e=b.Token,f=[a],g=c.rest;if(g){for(var h in g)c[h]=g[h];delete c.rest}a:for(var h in c)if(c.hasOwnProperty(h)&&c[h]){var i=c[h];i="Array"===b.util.type(i)?i:[i];for(var j=0;j<i.length;++j){var k=i[j],l=k.inside,m=!!k.lookbehind,n=0,o=k.alias;k=k.pattern||k;for(var p=0;p<f.length;p++){var q=f[p];if(f.length>a.length)break a;if(!(q instanceof e)){k.lastIndex=0;var r=k.exec(q);if(r){m&&(n=r[1].length);var s=r.index-1+n,r=r[0].slice(n),t=r.length,u=s+t,v=q.slice(0,s+1),w=q.slice(u+1),x=[p,1];v&&x.push(v);var y=new e(h,l?b.tokenize(r,l):r,o);x.push(y),w&&x.push(w),Array.prototype.splice.apply(f,x)}}}}}return f},hooks:{all:{},add:function(a,c){var d=b.hooks.all;d[a]=d[a]||[],d[a].push(c)},run:function(a,c){var d=b.hooks.all[a];if(d&&d.length)for(var e,f=0;e=d[f++];)e(c)}}},c=b.Token=function(a,b,c){this.type=a,this.content=b,this.alias=c};if(c.stringify=function(a,d,e){if("string"==typeof a)return a;if("Array"===b.util.type(a))return a.map(function(b){return c.stringify(b,d,a);
|
||
}).join("");var f={type:a.type,content:c.stringify(a.content,d,e),tag:"span",classes:["token",a.type],attributes:{},language:d,parent:e};if("comment"==f.type&&(f.attributes.spellcheck="true"),a.alias){var g="Array"===b.util.type(a.alias)?a.alias:[a.alias];Array.prototype.push.apply(f.classes,g)}b.hooks.run("wrap",f);var h="";for(var i in f.attributes)h+=(h?" ":"")+i+'="'+(f.attributes[i]||"")+'"';return"<"+f.tag+' class="'+f.classes.join(" ")+'" '+h+">"+f.content+"</"+f.tag+">"},!e.document)return e.addEventListener?(e.addEventListener("message",function(a){var c=JSON.parse(a.data),d=c.language,f=c.code,g=c.immediateClose;e.postMessage(b.highlight(f,b.languages[d],d)),g&&e.close()},!1),e.Prism):e.Prism;var d=document.getElementsByTagName("script");return d=d[d.length-1],d&&(b.filename=d.src,document.addEventListener&&!d.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",b.highlightAll)),e.Prism}();return"undefined"!=typeof c&&c.exports&&(c.exports=f),"undefined"!=typeof d&&(d.Prism=f),f.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=.$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},f.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&/,"&"))}),f.languages.xml=f.languages.markup,f.languages.html=f.languages.markup,f.languages.mathml=f.languages.markup,f.languages.svg=f.languages.markup,f.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},f.languages.css.atrule.inside.rest=f.util.clone(f.languages.css),f.languages.markup&&(f.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:f.languages.css,alias:"language-css"}}),f.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:f.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:f.languages.css}},alias:"language-css"}},f.languages.markup.tag)),f.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},f.languages.javascript=f.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,"function":/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i}),f.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}}),f.languages.insertBefore("javascript","class-name",{"template-string":{pattern:/`(?:\\`|\\?[^`])*`/,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:f.languages.javascript}},string:/[\s\S]+/}}}),f.languages.markup&&f.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\w\W]*?>)[\w\W]*?(?=<\/script>)/i,lookbehind:!0,inside:f.languages.javascript,alias:"language-javascript"}}),f.languages.js=f.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var a={js:"javascript",html:"markup",svg:"markup",xml:"markup",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell"};Array.prototype.forEach&&Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(b){for(var c,d=b.getAttribute("data-src"),e=b,g=/\blang(?:uage)?-(?!\*)(\w+)\b/i;e&&!g.test(e.className);)e=e.parentNode;if(e&&(c=(b.className.match(g)||[,""])[1]),!c){var h=(d.match(/\.(\w+)$/)||[,""])[1];c=a[h]||h}var i=document.createElement("code");i.className="language-"+c,b.textContent="",i.textContent="Loading…",b.appendChild(i);var j=new XMLHttpRequest;j.open("GET",d,!0),j.onreadystatechange=function(){4==j.readyState&&(j.status<400&&j.responseText?(i.textContent=j.responseText,f.highlightElement(i)):j.status>=400?i.textContent="✖ Error "+j.status+" while fetching file: "+j.statusText:i.textContent="✖ Error: File does not exist or is empty")},j.send(null)})},self.Prism.fileHighlight())}(),f.languages.actionscript=f.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|native|override|set|static)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),f.languages.actionscript["class-name"].alias="function",f.languages.markup&&f.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\\1|\\?(?!\1)[\w\W])*\2)*\s*\/?>/,lookbehind:!0,inside:{rest:f.languages.markup}}}),f.languages.c=f.languages.extend("clike",{keyword:/\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,operator:/\-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*\/]/,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)[ful]*\b/i}),f.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+([^\r\n\\]|\\.|\\(?:\r\n?|\n))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(<.+?>|("|')(\\?.)+?\3)/,lookbehind:!0},directive:{pattern:/(#\s*)\b(define|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,lookbehind:!0,alias:"keyword"}}},constant:/\b(__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|stdin|stdout|stderr)\b/}),delete f.languages.c["class-name"],delete f.languages.c["boolean"],f.languages.cpp=f.languages.extend("c",{keyword:/\b(alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,"boolean":/\b(true|false)\b/,operator:/[-+]{1,2}|!=?|<{1,2}=?|>{1,2}=?|\->|:{1,2}|={1,2}|\^|~|%|&{1,2}|\|?\||\?|\*|\/|\b(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/}),f.languages.insertBefore("cpp","keyword",{"class-name":{pattern:/(class\s+)[a-z0-9_]+/i,lookbehind:!0}}),f.languages.csharp=f.languages.extend("clike",{keyword:/\b(abstract|as|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|volatile|while|add|alias|ascending|async|await|descending|dynamic|from|get|global|group|into|join|let|orderby|partial|remove|select|set|value|var|where|yield)\b/,string:[/@("|')(\1\1|\\\1|\\?(?!\1)[\s\S])*\1/,/("|')(\\?.)*?\1/],number:/\b-?(0x[\da-f]+|\d*\.?\d+f?)\b/i}),f.languages.insertBefore("csharp","keyword",{preprocessor:{pattern:/(^\s*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(\s*#)\b(define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}}),f.languages.php=f.languages.extend("clike",{keyword:/\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i,constant:/\b[A-Z0-9_]{2,}\b/,comment:{pattern:/(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/,lookbehind:!0}}),f.languages.insertBefore("php","class-name",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),f.languages.insertBefore("php","keyword",{delimiter:/\?>|<\?(?:php)?/i,variable:/\$\w+\b/i,"package":{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),f.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}}),f.languages.markup&&(f.hooks.add("before-highlight",function(a){"php"===a.language&&(a.tokenStack=[],a.backupCode=a.code,a.code=a.code.replace(/(?:<\?php|<\?)[\w\W]*?(?:\?>)/gi,function(b){return a.tokenStack.push(b),"{{{PHP"+a.tokenStack.length+"}}}"}))}),f.hooks.add("before-insert",function(a){"php"===a.language&&(a.code=a.backupCode,delete a.backupCode)}),f.hooks.add("after-highlight",function(a){if("php"===a.language){for(var b,c=0;b=a.tokenStack[c];c++)a.highlightedCode=a.highlightedCode.replace("{{{PHP"+(c+1)+"}}}",f.highlight(b,a.grammar,"php").replace(/\$/g,"$$$$"));a.element.innerHTML=a.highlightedCode}}),f.hooks.add("wrap",function(a){"php"===a.language&&"markup"===a.type&&(a.content=a.content.replace(/(\{\{\{PHP[0-9]+\}\}\})/g,'<span class="token php">$1</span>'))}),f.languages.insertBefore("php","comment",{markup:{pattern:/<[^?]\/?(.*?)>/,inside:f.languages.markup},php:/\{\{\{PHP[0-9]+\}\}\}/})),function(a){var b=/#(?!\{).+/,c={pattern:/#\{[^}]+\}/,alias:"variable"};a.languages.coffeescript=a.languages.extend("javascript",{comment:b,string:[/'(?:\\?[^\\])*?'/,{pattern:/"(?:\\?[^\\])*?"/,inside:{interpolation:c}}],keyword:/\b(and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),a.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:b,interpolation:c}}}),a.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\?[\s\S])*?`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},rest:a.languages.javascript}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,alias:"string"},{pattern:/"""[\s\S]*?"""/,alias:"string",inside:{interpolation:c}}]}),a.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/})}(f),f.languages.go=f.languages.extend("clike",{keyword:/\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,builtin:/\b(bool|byte|complex(64|128)|error|float(32|64)|rune|string|u?int(8|16|32|64|)|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(ln)?|real|recover)\b/,"boolean":/\b(_|iota|nil|true|false)\b/,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,number:/\b(-?(0x[a-f\d]+|(\d+\.?\d*|\.\d+)(e[-+]?\d+)?)i?)\b/i,string:/("|'|`)(\\?.|\r|\n)*?\1/}),delete f.languages.go["class-name"],f.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(--[^-!#$%*+=?&@|~.:<>^\\\/].*|{-[\w\W]*?-})/m,lookbehind:!0},"char":/'([^\\']|\\([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,string:/"([^\\"]|\\([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+)|\\\s+\\)*"/,keyword:/\b(case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,import_statement:{pattern:/(\r?\n|\r|^)\s*import\s+(qualified\s+)?([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*(\s+as\s+([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*)?(\s+hiding\b)?/m,inside:{keyword:/\b(import|qualified|as|hiding)\b/}},builtin:/\b(abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(\d+(\.\d+)?(e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[-!#$%*+=?&@|~.:<>^\\\/]*\.[-!#$%*+=?&@|~.:<>^\\\/]+|[-!#$%*+=?&@|~.:<>^\\\/]+\.[-!#$%*+=?&@|~.:<>^\\\/]*|[-!#$%*+=?&@|~:<>^\\\/]+|`([A-Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*`/,hvariable:/\b([A-Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*\b/,constant:/\b([A-Z][_a-zA-Z0-9']*\.)*[A-Z][_a-zA-Z0-9']*\b/,punctuation:/[{}[\];(),.:]/},f.languages.java=f.languages.extend("clike",{keyword:/\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/,number:/\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+(?:e[+-]?\d+)?[df]?\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,lookbehind:!0}}),f.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[\s\S]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,number:/\b0x[a-f\d]+\.?[a-f\d]*(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|\.?\d*(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,"function":/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},f.languages.matlab={string:/\B'(?:''|[^'\n])*'/,comment:[/%\{[\s\S]*?\}%/,/%.+/],number:/\b-?(?:\d*\.?\d+(?:[eE][+-]?\d+)?(?:[ij])?|[ij])\b/,keyword:/\b(?:break|case|catch|continue|else|elseif|end|for|function|if|inf|NaN|otherwise|parfor|pause|pi|return|switch|try|while)\b/,"function":/(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/},f.languages.perl={comment:[{pattern:/(^\s*)=\w+[\s\S]*?=cut.*/m,lookbehind:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0}],string:[/\b(?:q|qq|qx|qw)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/,/\b(?:q|qq|qx|qw)\s+([a-zA-Z0-9])(?:[^\\]|\\[\s\S])*?\1/,/\b(?:q|qq|qx|qw)\s*\((?:[^()\\]|\\[\s\S])*\)/,/\b(?:q|qq|qx|qw)\s*\{(?:[^{}\\]|\\[\s\S])*\}/,/\b(?:q|qq|qx|qw)\s*\[(?:[^[\]\\]|\\[\s\S])*\]/,/\b(?:q|qq|qx|qw)\s*<(?:[^<>\\]|\\[\s\S])*>/,/("|`)(?:[^\\]|\\[\s\S])*?\1/,/'(?:[^'\\\r\n]|\\.)*'/],regex:[/\b(?:m|qr)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[msixpodualngc]*/,/\b(?:m|qr)\s+([a-zA-Z0-9])(?:[^\\]|\\.)*?\1[msixpodualngc]*/,/\b(?:m|qr)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngc]*/,/\b(?:m|qr)\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngc]*/,/\b(?:m|qr)\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngc]*/,/\b(?:m|qr)\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngc]*/,{pattern:/(^|[^-]\b)(?:s|tr|y)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\2(?:[^\\]|\\[\s\S])*?\2[msixpodualngcer]*/,lookbehind:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s+([a-zA-Z0-9])(?:[^\\]|\\[\s\S])*?\2(?:[^\\]|\\[\s\S])*?\2[msixpodualngcer]*/,lookbehind:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s*\((?:[^()\\]|\\[\s\S])*\)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngcer]*/,lookbehind:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s*\{(?:[^{}\\]|\\[\s\S])*\}\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngcer]*/,lookbehind:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s*\[(?:[^[\]\\]|\\[\s\S])*\]\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngcer]*/,lookbehind:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s*<(?:[^<>\\]|\\[\s\S])*>\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngcer]*/,lookbehind:!0},/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor|x)\b))/],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?((::)*'?(?!\d)[\w$]+)+(::)*/i,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*>|\b_\b/,alias:"symbol"},vstring:{pattern:/v\d+(\.\d+)*|\d+(\.\d+){2,}/,alias:"string"},"function":{pattern:/sub [a-z0-9_]+/i,inside:{keyword:/sub/}},keyword:/\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b-?(0x[\dA-Fa-f](_?[\dA-Fa-f])*|0b[01](_?[01])*|(\d(_?\d)*)?\.?\d(_?\d)*([Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor)\b/,punctuation:/[{}[\];(),:]/},f.languages.python={"triple-quoted-string":{pattern:/"""[\s\S]+?"""|'''[\s\S]+?'''/,alias:"string"},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:/("|')(?:\\?.)*?\1/,"function":{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)[a-z0-9_]+/i,lookbehind:!0},keyword:/\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/,"boolean":/\b(?:True|False)\b/,number:/\b-?(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/,punctuation:/[{}[\];(),.:]/},f.languages.r={comment:/#.*/,string:/(['"])(?:\\?.)*?\1/,"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},"boolean":/\b(?:TRUE|FALSE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:NaN|Inf)\b/,/\b(?:0x[\dA-Fa-f]+(?:\.\d*)?|\d*\.?\d+)(?:[EePp][+-]?\d+)?[iL]?\b/],keyword:/\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},function(a){a.languages.ruby=a.languages.extend("clike",{comment:/#(?!\{[^\r\n]*?\}).*/,keyword:/\b(alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|false|for|if|in|module|new|next|nil|not|or|raise|redo|require|rescue|retry|return|self|super|then|throw|true|undef|unless|until|when|while|yield)\b/});var b={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:a.util.clone(a.languages.ruby)}};a.languages.insertBefore("ruby","keyword",{regex:[{pattern:/%r([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[gim]{0,3}/,inside:{interpolation:b}},{pattern:/%r\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/,inside:{interpolation:b}},{pattern:/%r\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/,inside:{interpolation:b}},{pattern:/%r\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/,inside:{interpolation:b}},{pattern:/%r<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/,inside:{interpolation:b}},{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}],variable:/[@$]+[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/,symbol:/:[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/}),a.languages.insertBefore("ruby","number",{builtin:/\b(Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|File|Fixnum|Fload|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z][a-zA-Z_0-9]*(?:[?!]|\b)/}),a.languages.ruby.string=[{pattern:/%[qQiIwWxs]?([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/,inside:{interpolation:b}},{pattern:/%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/,inside:{interpolation:b}},{pattern:/%[qQiIwWxs]?\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/,inside:{interpolation:b}},{pattern:/%[qQiIwWxs]?\[(?:[^\[\]\\]|\\[\s\S])*\]/,inside:{interpolation:b}},{pattern:/%[qQiIwWxs]?<(?:[^<>\\]|\\[\s\S])*>/,inside:{interpolation:b}},{pattern:/("|')(#\{[^}]+\}|\\(?:\r?\n|\r)|\\?.)*?\1/,inside:{interpolation:b}}]}(f),function(a){var b={variable:[{pattern:/\$?\(\([\w\W]+?\)\)/,inside:{variable:[{pattern:/(^\$\(\([\w\W]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+(?:[Ee]-?\d+)?)\b/,operator:/--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\([^)]+\)|`[^`]+`/,inside:{variable:/^\$\(|^`|\)$|`$/}},/\$(?:[a-z0-9_#\?\*!@]+|\{[^}]+\})/i]};a.languages.bash={shebang:{pattern:/^#!\s*\/bin\/bash|^#!\s*\/bin\/sh/,alias:"important"},comment:{pattern:/(^|[^"{\\])#.*/,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<\s*)(?:"|')?(\w+?)(?:"|')?\s*\r?\n(?:[\s\S])*?\r?\n\2/g,lookbehind:!0,inside:b},{pattern:/("|')(?:\\?[\s\S])*?\1/g,inside:b}],variable:b.variable,"function":{pattern:/(^|\s|;|\||&)(?:alias|apropos|apt-get|aptitude|aspell|awk|basename|bash|bc|bg|builtin|bzip2|cal|cat|cd|cfdisk|chgrp|chmod|chown|chroot|chkconfig|cksum|clear|cmp|comm|command|cp|cron|crontab|csplit|cut|date|dc|dd|ddrescue|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|enable|env|ethtool|eval|exec|expand|expect|export|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|getopts|git|grep|groupadd|groupdel|groupmod|groups|gzip|hash|head|help|hg|history|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|jobs|join|kill|killall|less|link|ln|locate|logname|logout|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|make|man|mkdir|mkfifo|mkisofs|mknod|more|most|mount|mtools|mtr|mv|mmv|nano|netstat|nice|nl|nohup|notify-send|nslookup|open|op|passwd|paste|pathchk|ping|pkill|popd|pr|printcap|printenv|printf|ps|pushd|pv|pwd|quota|quotacheck|quotactl|ram|rar|rcp|read|readarray|readonly|reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|units|unrar|unshar|uptime|useradd|userdel|usermod|users|uuencode|uudecode|v|vdir|vi|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yes|zip)(?=$|\s|;|\||&)/,lookbehind:!0},keyword:{pattern:/(^|\s|;|\||&)(?:let|:|\.|if|then|else|elif|fi|for|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)(?=$|\s|;|\||&)/,lookbehind:!0},"boolean":{pattern:/(^|\s|;|\||&)(?:true|false)(?=$|\s|;|\||&)/,lookbehind:!0},operator:/&&?|\|\|?|==?|!=?|<<<?|>>|<=?|>=?|=~/,punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];]/};var c=b.variable[1].inside;c["function"]=a.languages.bash["function"],c.keyword=a.languages.bash.keyword,c["boolean"]=a.languages.bash["boolean"],c.operator=a.languages.bash.operator,c.punctuation=a.languages.bash.punctuation}(f),f.languages.swift=f.languages.extend("clike",{string:{pattern:/("|')(\\(?:\((?:[^()]|\([^)]+\))+\)|\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,inside:{interpolation:{pattern:/\\\((?:[^()]|\([^)]+\))+\)/,inside:{delimiter:{pattern:/^\\\(|\)$/,alias:"variable"}}}}},keyword:/\b(as|associativity|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extension|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix|precedence|prefix|private|Protocol|public|repeat|required|rethrows|return|right|safe|self|Self|set|static|struct|subscript|super|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__|LINE__))\b/,number:/\b([\d_]+(\.[\de_]+)?|0x[a-f0-9_]+(\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,constant:/\b(nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,atrule:/@\b(IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\b/,builtin:/\b([A-Z]\S+|abs|advance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|distance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?|numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Value)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugString|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|Unsafe(?:MutablePointers?|Pointers?)|VaList))\b/}),f.languages.swift.string.inside.interpolation.inside.rest=f.util.clone(f.languages.swift),f.languages.objectivec=f.languages.extend("c",{keyword:/\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\b|(@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,string:/("|')(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|@"(\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),f.languages.scala=f.languages.extend("java",{keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,string:/"""[\W\w]*?"""|"(?:[^"\\\r\n]|\\.)*"|'(?:[^\\\r\n']|\\.[^\\']*)'/,builtin:/\b(?:String|Int|Long|Short|Byte|Boolean|Double|Float|Char|Any|AnyRef|AnyVal|Unit|Nothing)\b/,number:/\b(?:0x[\da-f]*\.?[\da-f]+|\d*\.?\d+e?\d*[dfl]?)\b/i,symbol:/'[^\d\s\\]\w*/}),delete f.languages.scala["class-name"],delete f.languages.scala["function"],c.exports}),a.register("a5",[],function(){return{setters:[],execute:function(){}}}),a.register("a6",[],function(){return{setters:[],execute:function(){}}}),a.registerDynamic("a7",[],!0,function(a,b,c){var d,e=this;return function(){function a(a){this.tokens=[],this.tokens.links={},this.options=a||m.defaults,this.rules=n.normal,this.options.gfm&&(this.options.tables?this.rules=n.tables:this.rules=n.gfm)}function e(a,b){if(this.options=b||m.defaults,this.links=a,this.rules=o.normal,this.renderer=this.options.renderer||new f,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=o.breaks:this.rules=o.gfm:this.options.pedantic&&(this.rules=o.pedantic)}function f(a){this.options=a||{}}function g(a){this.tokens=[],this.token=null,this.options=a||m.defaults,this.options.renderer=this.options.renderer||new f,this.renderer=this.options.renderer,this.renderer.options=this.options}function h(a,b){return a.replace(b?/&/g:/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(a){return a.replace(/&([#\w]+);/g,function(a,b){return b=b.toLowerCase(),"colon"===b?":":"#"===b.charAt(0)?"x"===b.charAt(1)?String.fromCharCode(parseInt(b.substring(2),16)):String.fromCharCode(+b.substring(1)):""})}function j(a,b){return a=a.source,b=b||"",function c(d,e){return d?(e=e.source||e,e=e.replace(/(^|[^\[])\^/g,"$1"),a=a.replace(d,e),c):new RegExp(a,b)}}function k(){}function l(a){for(var b,c,d=1;d<arguments.length;d++){b=arguments[d];for(c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])}return a}function m(b,c,d){if(d||"function"==typeof c){d||(d=c,c=null),c=l({},m.defaults,c||{});var e,f,i=c.highlight,j=0;try{e=a.lex(b,c)}catch(k){return d(k)}f=e.length;var n=function(a){if(a)return c.highlight=i,d(a);var b;try{b=g.parse(e,c)}catch(f){a=f}return c.highlight=i,a?d(a):d(null,b)};if(!i||i.length<3)return n();if(delete c.highlight,!f)return n();for(;j<e.length;j++)!function(a){return"code"!==a.type?--f||n():i(a.text,a.lang,function(b,c){return b?n(b):null==c||c===a.text?--f||n():(a.text=c,a.escaped=!0,void(--f||n()))})}(e[j])}else try{return c&&(c=l({},m.defaults,c)),g.parse(a.lex(b,c),c)}catch(k){if(k.message+="\nPlease report this to https://github.com/chjj/marked.",(c||m.defaults).silent)return"<p>An error occured:</p><pre>"+h(k.message+"",!0)+"</pre>";throw k}}var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:k,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:k,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
|
||
html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:k,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};n.bullet=/(?:[*+-]|\d+\.)/,n.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,n.item=j(n.item,"gm")(/bull/g,n.bullet)(),n.list=j(n.list)(/bull/g,n.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+n.def.source+")")(),n.blockquote=j(n.blockquote)("def",n.def)(),n._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",n.html=j(n.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,n._tag)(),n.paragraph=j(n.paragraph)("hr",n.hr)("heading",n.heading)("lheading",n.lheading)("blockquote",n.blockquote)("tag","<"+n._tag)("def",n.def)(),n.normal=l({},n),n.gfm=l({},n.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),n.gfm.paragraph=j(n.paragraph)("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|")(),n.tables=l({},n.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),a.rules=n,a.lex=function(b,c){var d=new a(c);return d.lex(b)},a.prototype.lex=function(a){return a=a.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(a,!0)},a.prototype.token=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,a=a.replace(/^ +$/gm,"");a;)if((f=this.rules.newline.exec(a))&&(a=a.substring(f[0].length),f[0].length>1&&this.tokens.push({type:"space"})),f=this.rules.code.exec(a))a=a.substring(f[0].length),f=f[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?f:f.replace(/\n+$/,"")});else if(f=this.rules.fences.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"code",lang:f[2],text:f[3]||""});else if(f=this.rules.heading.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"heading",depth:f[1].length,text:f[2]});else if(b&&(f=this.rules.nptable.exec(a))){for(a=a.substring(f[0].length),i={type:"table",header:f[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:f[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:f[3].replace(/\n$/,"").split("\n")},k=0;k<i.align.length;k++)/^ *-+: *$/.test(i.align[k])?i.align[k]="right":/^ *:-+: *$/.test(i.align[k])?i.align[k]="center":/^ *:-+ *$/.test(i.align[k])?i.align[k]="left":i.align[k]=null;for(k=0;k<i.cells.length;k++)i.cells[k]=i.cells[k].split(/ *\| */);this.tokens.push(i)}else if(f=this.rules.lheading.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"heading",depth:"="===f[2]?1:2,text:f[1]});else if(f=this.rules.hr.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"hr"});else if(f=this.rules.blockquote.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"blockquote_start"}),f=f[0].replace(/^ *> ?/gm,""),this.token(f,b,!0),this.tokens.push({type:"blockquote_end"});else if(f=this.rules.list.exec(a)){for(a=a.substring(f[0].length),g=f[2],this.tokens.push({type:"list_start",ordered:g.length>1}),f=f[0].match(this.rules.item),d=!1,l=f.length,k=0;l>k;k++)i=f[k],j=i.length,i=i.replace(/^ *([*+-]|\d+\.) +/,""),~i.indexOf("\n ")&&(j-=i.length,i=this.options.pedantic?i.replace(/^ {1,4}/gm,""):i.replace(new RegExp("^ {1,"+j+"}","gm"),"")),this.options.smartLists&&k!==l-1&&(h=n.bullet.exec(f[k+1])[0],g===h||g.length>1&&h.length>1||(a=f.slice(k+1).join("\n")+a,k=l-1)),e=d||/\n\n(?!\s*$)/.test(i),k!==l-1&&(d="\n"===i.charAt(i.length-1),e||(e=d)),this.tokens.push({type:e?"loose_item_start":"list_item_start"}),this.token(i,!1,c),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(f=this.rules.html.exec(a))a=a.substring(f[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===f[1]||"script"===f[1]||"style"===f[1]),text:f[0]});else if(!c&&b&&(f=this.rules.def.exec(a)))a=a.substring(f[0].length),this.tokens.links[f[1].toLowerCase()]={href:f[2],title:f[3]};else if(b&&(f=this.rules.table.exec(a))){for(a=a.substring(f[0].length),i={type:"table",header:f[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:f[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:f[3].replace(/(?: *\| *)?\n$/,"").split("\n")},k=0;k<i.align.length;k++)/^ *-+: *$/.test(i.align[k])?i.align[k]="right":/^ *:-+: *$/.test(i.align[k])?i.align[k]="center":/^ *:-+ *$/.test(i.align[k])?i.align[k]="left":i.align[k]=null;for(k=0;k<i.cells.length;k++)i.cells[k]=i.cells[k].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(i)}else if(b&&(f=this.rules.paragraph.exec(a)))a=a.substring(f[0].length),this.tokens.push({type:"paragraph",text:"\n"===f[1].charAt(f[1].length-1)?f[1].slice(0,-1):f[1]});else if(f=this.rules.text.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"text",text:f[0]});else if(a)throw new Error("Infinite loop on byte: "+a.charCodeAt(0));return this.tokens};var o={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:k,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:k,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};o._inside=/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,o._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,o.link=j(o.link)("inside",o._inside)("href",o._href)(),o.reflink=j(o.reflink)("inside",o._inside)(),o.normal=l({},o),o.pedantic=l({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),o.gfm=l({},o.normal,{escape:j(o.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:j(o.text)("]|","~]|")("|","|https?://|")()}),o.breaks=l({},o.gfm,{br:j(o.br)("{2,}","*")(),text:j(o.gfm.text)("{2,}","*")()}),e.rules=o,e.output=function(a,b,c){var d=new e(b,c);return d.output(a)},e.prototype.output=function(a){for(var b,c,d,e,f="";a;)if(e=this.rules.escape.exec(a))a=a.substring(e[0].length),f+=e[1];else if(e=this.rules.autolink.exec(a))a=a.substring(e[0].length),"@"===e[2]?(c=":"===e[1].charAt(6)?this.mangle(e[1].substring(7)):this.mangle(e[1]),d=this.mangle("mailto:")+c):(c=h(e[1]),d=c),f+=this.renderer.link(d,null,c);else if(this.inLink||!(e=this.rules.url.exec(a))){if(e=this.rules.tag.exec(a))!this.inLink&&/^<a /i.test(e[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(e[0])&&(this.inLink=!1),a=a.substring(e[0].length),f+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):h(e[0]):e[0];else if(e=this.rules.link.exec(a))a=a.substring(e[0].length),this.inLink=!0,f+=this.outputLink(e,{href:e[2],title:e[3]}),this.inLink=!1;else if((e=this.rules.reflink.exec(a))||(e=this.rules.nolink.exec(a))){if(a=a.substring(e[0].length),b=(e[2]||e[1]).replace(/\s+/g," "),b=this.links[b.toLowerCase()],!b||!b.href){f+=e[0].charAt(0),a=e[0].substring(1)+a;continue}this.inLink=!0,f+=this.outputLink(e,b),this.inLink=!1}else if(e=this.rules.strong.exec(a))a=a.substring(e[0].length),f+=this.renderer.strong(this.output(e[2]||e[1]));else if(e=this.rules.em.exec(a))a=a.substring(e[0].length),f+=this.renderer.em(this.output(e[2]||e[1]));else if(e=this.rules.code.exec(a))a=a.substring(e[0].length),f+=this.renderer.codespan(h(e[2],!0));else if(e=this.rules.br.exec(a))a=a.substring(e[0].length),f+=this.renderer.br();else if(e=this.rules.del.exec(a))a=a.substring(e[0].length),f+=this.renderer.del(this.output(e[1]));else if(e=this.rules.text.exec(a))a=a.substring(e[0].length),f+=this.renderer.text(h(this.smartypants(e[0])));else if(a)throw new Error("Infinite loop on byte: "+a.charCodeAt(0))}else a=a.substring(e[0].length),c=h(e[1]),d=c,f+=this.renderer.link(d,null,c);return f},e.prototype.outputLink=function(a,b){var c=h(b.href),d=b.title?h(b.title):null;return"!"!==a[0].charAt(0)?this.renderer.link(c,d,this.output(a[1])):this.renderer.image(c,d,h(a[1]))},e.prototype.smartypants=function(a){return this.options.smartypants?a.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):a},e.prototype.mangle=function(a){if(!this.options.mangle)return a;for(var b,c="",d=a.length,e=0;d>e;e++)b=a.charCodeAt(e),Math.random()>.5&&(b="x"+b.toString(16)),c+="&#"+b+";";return c},f.prototype.code=function(a,b,c){if(this.options.highlight){var d=this.options.highlight(a,b);null!=d&&d!==a&&(c=!0,a=d)}return b?'<pre><code class="'+this.options.langPrefix+h(b,!0)+'">'+(c?a:h(a,!0))+"\n</code></pre>\n":"<pre><code>"+(c?a:h(a,!0))+"\n</code></pre>"},f.prototype.blockquote=function(a){return"<blockquote>\n"+a+"</blockquote>\n"},f.prototype.html=function(a){return a},f.prototype.heading=function(a,b,c){return"<h"+b+' id="'+this.options.headerPrefix+c.toLowerCase().replace(/[^\w]+/g,"-")+'">'+a+"</h"+b+">\n"},f.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},f.prototype.list=function(a,b){var c=b?"ol":"ul";return"<"+c+">\n"+a+"</"+c+">\n"},f.prototype.listitem=function(a){return"<li>"+a+"</li>\n"},f.prototype.paragraph=function(a){return"<p>"+a+"</p>\n"},f.prototype.table=function(a,b){return"<table>\n<thead>\n"+a+"</thead>\n<tbody>\n"+b+"</tbody>\n</table>\n"},f.prototype.tablerow=function(a){return"<tr>\n"+a+"</tr>\n"},f.prototype.tablecell=function(a,b){var c=b.header?"th":"td",d=b.align?"<"+c+' style="text-align:'+b.align+'">':"<"+c+">";return d+a+"</"+c+">\n"},f.prototype.strong=function(a){return"<strong>"+a+"</strong>"},f.prototype.em=function(a){return"<em>"+a+"</em>"},f.prototype.codespan=function(a){return"<code>"+a+"</code>"},f.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},f.prototype.del=function(a){return"<del>"+a+"</del>"},f.prototype.link=function(a,b,c){if(this.options.sanitize){try{var d=decodeURIComponent(i(a)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===d.indexOf("javascript:")||0===d.indexOf("vbscript:"))return""}var f='<a href="'+a+'"';return b&&(f+=' title="'+b+'"'),f+=">"+c+"</a>"},f.prototype.image=function(a,b,c){var d='<img src="'+a+'" alt="'+c+'"';return b&&(d+=' title="'+b+'"'),d+=this.options.xhtml?"/>":">"},f.prototype.text=function(a){return a},g.parse=function(a,b,c){var d=new g(b,c);return d.parse(a)},g.prototype.parse=function(a){this.inline=new e(a.links,this.options,this.renderer),this.tokens=a.reverse();for(var b="";this.next();)b+=this.tok();return b},g.prototype.next=function(){return this.token=this.tokens.pop()},g.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},g.prototype.parseText=function(){for(var a=this.token.text;"text"===this.peek().type;)a+="\n"+this.next().text;return this.inline.output(a)},g.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var a,b,c,d,e,f="",g="";for(c="",a=0;a<this.token.header.length;a++)d={header:!0,align:this.token.align[a]},c+=this.renderer.tablecell(this.inline.output(this.token.header[a]),{header:!0,align:this.token.align[a]});for(f+=this.renderer.tablerow(c),a=0;a<this.token.cells.length;a++){for(b=this.token.cells[a],c="",e=0;e<b.length;e++)c+=this.renderer.tablecell(this.inline.output(b[e]),{header:!1,align:this.token.align[e]});g+=this.renderer.tablerow(c)}return this.renderer.table(f,g);case"blockquote_start":for(var g="";"blockquote_end"!==this.next().type;)g+=this.tok();return this.renderer.blockquote(g);case"list_start":for(var g="",h=this.token.ordered;"list_end"!==this.next().type;)g+=this.tok();return this.renderer.list(g,h);case"list_item_start":for(var g="";"list_item_end"!==this.next().type;)g+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(g);case"loose_item_start":for(var g="";"list_item_end"!==this.next().type;)g+=this.tok();return this.renderer.listitem(g);case"html":var i=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(i);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}},k.exec=k,m.options=m.setOptions=function(a){return l(m.defaults,a),m},m.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new f,xhtml:!1},m.Parser=g,m.parser=g.parse,m.Renderer=f,m.Lexer=a,m.lexer=a.lex,m.InlineLexer=e,m.inlineLexer=e.output,m.parse=m,"undefined"!=typeof c&&"object"==typeof b?c.exports=m:"function"==typeof d&&d.amd?d(function(){return m}):this.marked=m}.call(function(){return this||("undefined"!=typeof window?window:e)}()),c.exports}),a.registerDynamic("a8",["a7"],!0,function(a,b,c){return c.exports=a("a7"),c.exports}),a.register("9f",["11","87","88","89","91","8a","8f","9c","a9","a4","a5","a6","a8"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;return{setters:[function(a){b=a.Pipe},function(a){c=a["default"]},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a.JsonPointer},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a.isString,j=a.stringify,k=a.isBlank},function(a){l=a.BaseException},function(a){m=a["default"]},function(a){},function(a){},function(a){n=a["default"]}],execute:function(){"use strict";n.Lexer.rules.gfm.heading=n.Lexer.rules.normal.heading,n.Lexer.rules.tables.heading=n.Lexer.rules.normal.heading,n.setOptions({renderer:new n.Renderer,gfm:!0,tables:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1}),o=function(a){function b(a,d){g(this,b),c(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,"Invalid argument '"+d+"' for pipe '"+j(a)+"'")}return d(b,a),b}(l),p=function(){function a(){g(this,c)}e(a,[{key:"transform",value:function(a){if(k(a))return a;if("object"!=typeof a)throw new o(q,a);return h(a)}}]);var c=a;return a=b({name:"keys"})(a)||a}(),a("KeysPipe",p),q=function(){function a(){g(this,c)}e(a,[{key:"transform",value:function(b){if(k(b))return b;if("object"!=typeof b)throw new o(a,b);return h(b).map(function(a){return b[a]})}}]);var c=a;return a=b({name:"values"})(a)||a}(),a("ValuesPipe",q),r=function(){function a(){g(this,c)}e(a,[{key:"transform",value:function(b){if(k(b))return b;if(!i(b))throw new o(a,b);return f.escape(b)}}]);var c=a;return a=b({name:"jsonPointerEscape"})(a)||a}(),a("JsonPointerEscapePipe",r),s=function(){function a(){g(this,c)}e(a,[{key:"transform",value:function(a){if(k(a))return a;if(!i(a))throw new o(r,a);return'<span class="redoc-markdown-block">'+n(a)+"</span>"}}]);var c=a;return a=b({name:"marked"})(a)||a}(),a("MarkedPipe",s),t={"c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim"},u=function(){function a(){g(this,c)}e(a,[{key:"transform",value:function(a,b){if(k(b)||0===b.length)throw new l("Prism pipe requires one argument");if(k(a))return a;if(!i(a))throw new o(r,a);var c=b[0].toString().trim().toLowerCase();t[c]&&(c=t[c]);var d=m.languages[c];return d||(d=m.languages.clike),m.highlight(a,d)}}]);var c=a;return a=b({name:"prism"})(a)||a}(),a("PrismPipe",u),v=function(){function a(){g(this,c)}e(a,[{key:"transform",value:function(b){if(k(b))return b;if(!i(b))throw new o(a,b);return encodeURIComponent(b)}}]);var c=a;return a=b({name:"encodeURIComponent"})(a)||a}(),a("EncodeURIComponentPipe",v)}}}),a.register("85",["11","76","89","91","92","93","8a","a3","8f","aa","9f"],function(a){function b(a,b){var c=a&&a.slice()||[];return b=null==b?[]:b,c.concat(b)}function c(a,b){for(var c=q(b),d=-1,e=c.length;++d<e;){var f=c[d];void 0===a[f]&&(a[f]=b[f])}return a}function d(a){if(null==a||"object"!=typeof a)return a;var b=new a.constructor;for(var c in a)a.hasOwnProperty(c)&&(b[c]=d(a[c]));return b}function e(a){var c=b(a.inputs,u),d=b(a.directives,h),e=b(a.pipes,[t,s,i,j]);return void 0===a.onPushOnly&&(a.onPushOnly=!0),function(b){var h=f({selector:a.selector,inputs:c,outputs:a.outputs,providers:a.providers,changeDetection:a.detect?a.onPushOnly?g.OnPush:g.Default:g.Detached,templateUrl:a.templateUrl,template:a.template,styles:a.styles,directives:d,pipes:e});return console.log(a.selector,a.detect?a.onPushOnly?"OnPush":"Default":"Detached"),h(b)||b}}var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;return{setters:[function(a){f=a.Component,g=a.ChangeDetectionStrategy},function(a){h=a.CORE_DIRECTIVES,i=a.JsonPipe,j=a.AsyncPipe},function(a){k=a["default"]},function(a){l=a["default"]},function(a){m=a["default"]},function(a){n=a["default"]},function(a){o=a["default"]},function(a){p=a["default"]},function(a){q=a["default"]},function(a){r=a["default"]},function(a){s=a.MarkedPipe,t=a.JsonPointerEscapePipe}],execute:function(){"use strict";a("RedocComponent",e),a("SchemaManager",n),u=["pointer"],v=function(){function a(a){o(this,b),this.schemaMgr=a,this.componentSchema=null}k(a,[{key:"ngOnInit",value:function(){this.componentSchema=d(this.schemaMgr.byPointer(this.pointer||"")),this.prepareModel(),this.init()}},{key:"ngOnDestroy",value:function(){this.destroy()}},{key:"dereference",value:function(){var a=this,b=arguments.length<=0||void 0===arguments[0]?m({},this.componentSchema):arguments[0],c={},e=function f(b){var d=void 0;if(b&&b.$ref){d=b.$ref;var e=a.schemaMgr.byPointer(b.$ref),g=l.baseName(b.$ref);c[b.$ref]?e={title:e.title,type:e.type}:(e=m({},e),e._pointer=b.$ref),c[b.$ref]=c[b.$ref]?c[b.$ref]+1:1,e.title=e.title||g;var h=q(b).length;(h>2||2===h&&!b.description)&&console.warn("other properties defined at the same level as $ref at '"+a.pointer+"'.\n They are IGNORRED according to JsonSchema spec"),b=b.description?{description:b.description}:{},m(b,e)}return q(b).forEach(function(a){var c=b[a];c&&"object"==typeof c&&(b[a]=f(c))}),d&&(c[d]=c[d]?c[d]-1:0),b};this.componentSchema=d(e(b,1))}},{key:"prepareModel",value:function(){}},{key:"init",value:function(){}},{key:"destroy",value:function(){}}],[{key:"joinAllOf",value:function(a,b){function d(a,d){var e=!0,f=!1,g=void 0;try{for(var h,i=function(){var d=h.value;if(b&&b.omitParent&&d.discriminator)return"continue";if("object"!=typeof d){var e="Items of allOf should be Object: "+typeof d+" found\n "+d;throw new Error(e)}if(a.type&&d.type&&a.type!==d.type){var e="allOf merging error: schemas with different types can't be merged";throw new Error(e)}if("array"===a.type&&console.warn("allOf: subschemas with type array are not supported yet"),a.type=a.type||d.type,"object"===a.type&&d.properties&&(a.properties||(a.properties={}),m(a.properties,d.properties),q(d.properties).forEach(function(a){d.properties[a]._pointer||(d.properties[a]._pointer=d._pointer?l.join(d._pointer,["properties",a]):null)})),"object"===a.type&&d.required){var f;a.required||(a.required=[]),(f=a.required).push.apply(f,p(d.required))}d._pointer=null,c(a,d)},j=r(d);!(e=(h=j.next()).done);e=!0){i()}}catch(k){f=!0,g=k}finally{try{!e&&j["return"]&&j["return"]()}finally{if(f)throw g}}a.allOf=null}function e(a){if(null!==a&&"object"==typeof a){for(var b in a)a.hasOwnProperty(b)&&e(a[b]);a.allOf&&d(a,a.allOf)}}e(a)}}]);var b=a;return a=Reflect.metadata("parameters",[[n]])(a)||a}(),a("BaseComponent",v)}}}),a.register("ab",["11","85","86","87","88","89","8a","5e","9c"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;return{setters:[function(a){b=a.ElementRef,c=a.ChangeDetectorRef},function(a){d=a.RedocComponent,e=a.BaseComponent,f=a.SchemaManager},function(a){g=a.ScrollService,h=a.Hash,i=a.MenuService,j=a.OptionsService},function(a){k=a["default"]},function(a){l=a["default"]},function(a){m=a["default"]},function(a){n=a["default"]},function(a){o=a.BrowserDomAdapter},function(a){p=a.global}],execute:function(){"use strict";q=function(a){function e(a,b,c,d,e,f,g,h){var i=this;n(this,q),k(Object.getPrototypeOf(q.prototype),"constructor",this).call(this,a),this.$element=b.nativeElement,this.dom=c,this.scrollService=d,this.menuService=e,this.hash=f,this.activeCatCaption="",this.activeItemCaption="",this.options=g.options,this.detectorRef=h,this.menuService.changed.subscribe(function(a){return i.changed(a)})}l(e,a),m(e,[{key:"changed",value:function(a){var b=a.cat,c=a.item;this.activeCatCaption=b.name||"",this.activeItemCaption=c&&c.summary||"",this.detectorRef.detectChanges()}},{key:"activateAndScroll",value:function(a,b){this.mobileMode()&&this.toggleMobileNav(),this.menuService.activate(a,b),this.menuService.scrollToActive()}},{key:"init",value:function(){var a=this;this.$mobileNav=this.dom.querySelector(this.$element,".mobile-nav"),this.$resourcesNav=this.dom.querySelector(this.$element,"#resources-nav"),this.scrollService.scrollYOffset=function(){var b=a.$mobileNav.clientHeight;return a.options.scrollYOffset()+b}}},{key:"prepareModel",value:function(){this.data={},this.data.menu=this.menuService.categories}},{key:"mobileMode",value:function(){return this.$mobileNav.clientHeight>0}},{key:"toggleMobileNav",value:function(){var a=this.dom,b=this.options.$scrollParent===p?a.defaultDoc().body:this.$scrollParent.$scrollParent;if(a.hasStyle(this.$resourcesNav,"height"))a.removeStyle(this.$resourcesNav,"height"),a.removeStyle(b,"overflow-y");else{var c=this.options.$scrollParent.innerHeight||this.options.$scrollParent.clientHeight,d=c-this.$mobileNav.getBoundingClientRect().bottom;a.setStyle(b,"overflow-y","hidden"),a.setStyle(this.$resourcesNav,"height",d+"px")}}},{key:"destroy",value:function(){this.scrollService.unbind(),this.hash.unbind()}}]);var q=e;return e=Reflect.metadata("parameters",[[f],[b],[o],[g],[i],[h],[j],[c]])(e)||e,e=d({selector:"side-menu",template:'\n <div #mobile class="mobile-nav" (click)="toggleMobileNav()">\n <span class="menu-header"> API Reference: </span>\n <span class="selected-item-info">\n <span class="selected-tag"> {{activeCatCaption}} </span>\n <span class="selected-endpoint">{{activeItemCaption}}</span>\n </span>\n </div>\n <div #desktop id="resources-nav">\n <h5 class="menu-header"> API reference </h5>\n <div *ngFor="let cat of data.menu; let idx = index" class="menu-cat">\n\n <label class="menu-cat-header" (click)="activateAndScroll(idx, -1)" [ngClass]="{active: cat.active}"> {{cat.name}}</label>\n <ul class="menu-subitems" [ngClass]="{active: cat.active}">\n <li *ngFor="let method of cat.methods; let methIdx = index"\n [ngClass]="{active: method.active}"\n (click)="activateAndScroll(idx, methIdx)">\n {{method.summary}}\n </li>\n </ul>\n\n </div>\n </div>\n ',providers:[g,i,h],styles:['\n .menu-header{text-transform:uppercase;color:#0033a0;padding:0 20px;margin:10px 0}.menu-cat-header{font-size:0.929em;font-family:Montserrat,sans-serif;font-weight:300;cursor:pointer;color:rgba(38,50,56,0.6);text-transform:uppercase;background-color:#FAFAFA;-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-ms-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out;display:block;padding:12.5px 20px}.menu-cat-header:hover,.menu-cat-header.active{color:#0033a0;background-color:#f0f0f0}.menu-subitems{margin:0;font-size:0.929em;line-height:1.2em;font-weight:300;color:rgba(38,50,56,0.9);padding:0;height:0;overflow:hidden}.menu-subitems.active{height:auto}.menu-subitems li{-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-ms-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out;list-style:none inside none;cursor:pointer;background-color:#f0f0f0;padding:10px 40px;padding-left:40px;overflow:hidden;text-overflow:ellipsis}.menu-subitems li:hover,.menu-subitems li.active{background:#e1e1e1}.mobile-nav{display:none;height:3em;line-height:3em;box-sizing:border-box;border-bottom:1px solid #ccc;cursor:pointer}.mobile-nav:after{content:"";display:inline-block;width:3em;height:3em;background:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 100 100" xml:space="preserve"><polygon fill="#010101" points="23.1 34.1 51.5 61.7 80 34.1 81.5 35 51.5 64.1 21.5 35 23.1 34.1 "/></svg>\');background-size:70%;background-repeat:no-repeat;background-position:center;float:right;vertical-align:middle}.mobile-nav .menu-header{padding:0 10px 0 20px;font-size:0.95em}@media (max-width: 550px){.mobile-nav .menu-header{display:none}}@media (max-width: 1000px){.mobile-nav{display:block}#resources-nav{height:0;overflow-y:auto;transition:all 0.3s ease}#resources-nav .menu-header{display:none}.menu-subitems{height:auto}}.selected-tag{text-transform:capitalize}.selected-endpoint:before{content:"/";padding:0 2px;color:#ccc}.selected-endpoint:empty:before{display:none}.selected-item-info{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;max-width:350px}@media (max-width: 550px){.selected-item-info{display:inline-block;padding:0 20px;max-width:80%;max-width:calc(100% - 4em)}}\n '],detect:!0,onPushOnly:!1})(e)||e}(e),a("SideMenu",q)}}}),a.registerDynamic("ac",[],!1,function(e,f,g){var h=a.get("@@global-helpers").prepareGlobal(g.id,null,null);return function(){"format global";!function(a){var e;if("object"==typeof c){try{e=b("jquery")}catch(f){}d.exports=a(window,document,e)}else window.Dropkick=a(window,document,window.jQuery)}(function(a,b,c,d){var e,f=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),g=a.parent!==a.self&&location.host===parent.location.host,h=-1!==navigator.appVersion.indexOf("MSIE"),i=function(c,d){var e,f;if(this===a)return new i(c,d);for("string"==typeof c&&"#"===c[0]&&(c=b.getElementById(c.substr(1))),e=0;e<i.uid;e++)if(f=i.cache[e],f instanceof i&&f.data.select===c)return l.extend(f.data.settings,d),f;return c?"SELECT"===c.nodeName?this.init(c,d):void 0:(console.error("You must pass a select to DropKick"),!1)},j=function(){},k={initialize:j,change:j,open:j,close:j,search:"strict",bubble:!0},l={hasClass:function(a,b){var c=new RegExp("(^|\\s+)"+b+"(\\s+|$)");return a&&c.test(a.className)},addClass:function(a,b){a&&!l.hasClass(a,b)&&(a.className+=" "+b)},removeClass:function(a,b){var c=new RegExp("(^|\\s+)"+b+"(\\s+|$)");a&&(a.className=a.className.replace(c," "))},toggleClass:function(a,b){var c=l.hasClass(a,b)?"remove":"add";l[c+"Class"](a,b)},extend:function(a){return Array.prototype.slice.call(arguments,1).forEach(function(b){if(b)for(var c in b)a[c]=b[c]}),a},offset:function(c){var d=c.getBoundingClientRect()||{top:0,left:0},e=b.documentElement,f=h?e.scrollTop:a.pageYOffset,g=h?e.scrollLeft:a.pageXOffset;return{top:d.top+f-e.clientTop,left:d.left+g-e.clientLeft}},position:function(a,b){for(var c={top:0,left:0};a&&a!==b;)c.top+=a.offsetTop,c.left+=a.offsetLeft,a=a.parentNode;return c},closest:function(a,b){for(;a;){if(a===b)return a;a=a.parentNode}return!1},create:function(a,c){var d,e=b.createElement(a);c||(c={});for(d in c)c.hasOwnProperty(d)&&("innerHTML"===d?e.innerHTML=c[d]:e.setAttribute(d,c[d]));return e},deferred:function(b){return function(){var c=arguments,d=this;a.setTimeout(function(){b.apply(d,c)},1)}}};return i.cache={},i.uid=0,i.prototype={add:function(a,c){var d,e,f;"string"==typeof a&&(d=a,a=b.createElement("option"),a.text=d),"OPTION"===a.nodeName&&(e=l.create("li",{"class":"dk-option","data-value":a.value,innerHTML:a.text,role:"option","aria-selected":"false",id:"dk"+this.data.cacheID+"-"+(a.id||a.value.replace(" ","-"))}),l.addClass(e,a.className),this.length+=1,a.disabled&&(l.addClass(e,"dk-option-disabled"),e.setAttribute("aria-disabled","true")),this.data.select.add(a,c),"number"==typeof c&&(c=this.item(c)),this.options.indexOf(c)>-1?c.parentNode.insertBefore(e,c):this.data.elem.lastChild.appendChild(e),e.addEventListener("mouseover",this),f=this.options.indexOf(c),this.options.splice(f,0,e),a.selected&&this.select(f))},item:function(a){return a=0>a?this.options.length+a:a,this.options[a]||null},remove:function(a){var b=this.item(a);b.parentNode.removeChild(b),this.options.splice(a,1),this.data.select.remove(a),this.select(this.data.select.selectedIndex),this.length-=1},init:function(a,c){var d,h=i.build(a,"dk"+i.uid);if(this.data={},this.data.select=a,this.data.elem=h.elem,this.data.settings=l.extend({},k,c),this.disabled=a.disabled,this.form=a.form,this.length=a.length,this.multiple=a.multiple,this.options=h.options.slice(0),this.selectedIndex=a.selectedIndex,this.selectedOptions=h.selected.slice(0),this.value=a.value,this.data.cacheID=i.uid,i.cache[this.data.cacheID]=this,this.data.settings.initialize.call(this),i.uid+=1,this._changeListener||(a.addEventListener("change",this),this._changeListener=!0),!f||this.data.settings.mobile){if(a.parentNode.insertBefore(this.data.elem,a),a.setAttribute("data-dkCacheId",this.data.cacheID),this.data.elem.addEventListener("click",this),this.data.elem.addEventListener("keydown",this),this.data.elem.addEventListener("keypress",this),this.form&&this.form.addEventListener("reset",this),!this.multiple)for(d=0;d<this.options.length;d++)this.options[d].addEventListener("mouseover",this);e||(b.addEventListener("click",i.onDocClick),g&&parent.document.addEventListener("click",i.onDocClick),e=!0)}return this},close:function(){var a,b=this.data.elem;if(!this.isOpen||this.multiple)return!1;for(a=0;a<this.options.length;a++)l.removeClass(this.options[a],"dk-option-highlight");b.lastChild.setAttribute("aria-expanded","false"),l.removeClass(b.lastChild,"dk-select-options-highlight"),l.removeClass(b,"dk-select-open-(up|down)"),this.isOpen=!1,this.data.settings.close.call(this)},open:l.deferred(function(){var c,d,e,f,g,i,j=this.data.elem,k=j.lastChild;return g=h?l.offset(j).top-b.documentElement.scrollTop:l.offset(j).top-a.scrollY,i=a.innerHeight-(g+j.offsetHeight),this.isOpen||this.multiple?!1:(k.style.display="block",c=k.offsetHeight,k.style.display="",d=g>c,e=i>c,f=d&&!e?"-up":"-down",this.isOpen=!0,l.addClass(j,"dk-select-open"+f),k.setAttribute("aria-expanded","true"),this._scrollTo(this.options.length-1),this._scrollTo(this.selectedIndex),void this.data.settings.open.call(this))}),disable:function(a,b){var c="dk-option-disabled";0!==arguments.length&&"boolean"!=typeof a||(b=a===d,a=this.data.elem,c="dk-select-disabled",this.disabled=b),b===d&&(b=!0),"number"==typeof a&&(a=this.item(a)),l[b?"addClass":"removeClass"](a,c)},select:function(a,b){var c,d,e,f,g=this.data.select;if("number"==typeof a&&(a=this.item(a)),"string"==typeof a)for(c=0;c<this.length;c++)this.options[c].getAttribute("data-value")===a&&(a=this.options[c]);return!a||"string"==typeof a||!b&&l.hasClass(a,"dk-option-disabled")?!1:l.hasClass(a,"dk-option")?(d=this.options.indexOf(a),e=g.options[d],this.multiple?(l.toggleClass(a,"dk-option-selected"),e.selected=!e.selected,l.hasClass(a,"dk-option-selected")?(a.setAttribute("aria-selected","true"),this.selectedOptions.push(a)):(a.setAttribute("aria-selected","false"),d=this.selectedOptions.indexOf(a),this.selectedOptions.splice(d,1))):(f=this.data.elem.firstChild,this.selectedOptions.length&&(l.removeClass(this.selectedOptions[0],"dk-option-selected"),this.selectedOptions[0].setAttribute("aria-selected","false")),l.addClass(a,"dk-option-selected"),a.setAttribute("aria-selected","true"),f.setAttribute("aria-activedescendant",a.id),
|
||
f.className="dk-selected "+e.className,f.innerHTML=e.text,this.selectedOptions[0]=a,e.selected=!0),this.selectedIndex=g.selectedIndex,this.value=g.value,b||this.data.select.dispatchEvent(new CustomEvent("change",{bubbles:this.data.settings.bubble})),a):void 0},selectOne:function(a,b){return this.reset(!0),this._scrollTo(a),this.select(a,b)},search:function(a,b){var c,d,e,f,g,h,i,j,k=this.data.select.options,l=[];if(!a)return this.options;for(b=b?b.toLowerCase():"strict",b="fuzzy"===b?2:"partial"===b?1:0,j=new RegExp((b?"":"^")+a,"i"),c=0;c<k.length;c++)if(e=k[c].text.toLowerCase(),2==b){for(d=a.toLowerCase().split(""),f=g=h=i=0;g<e.length;)e[g]===d[f]?(h+=1+h,f++):h=0,i+=h,g++;f===d.length&&l.push({e:this.options[c],s:i,i:c})}else j.test(e)&&l.push(this.options[c]);return 2===b&&(l=l.sort(function(a,b){return b.s-a.s||a.i-b.i}).reduce(function(a,b){return a[a.length]=b.e,a},[])),l},focus:function(){this.disabled||(this.multiple?this.data.elem:this.data.elem.children[0]).focus()},reset:function(a){var b,c=this.data.select;for(this.selectedOptions.length=0,b=0;b<c.options.length;b++)c.options[b].selected=!1,l.removeClass(this.options[b],"dk-option-selected"),this.options[b].setAttribute("aria-selected","false"),!a&&c.options[b].defaultSelected&&this.select(b,!0);this.selectedOptions.length||this.multiple||this.select(0,!0)},refresh:function(){this.dispose().init(this.data.select,this.data.settings)},dispose:function(){return delete i.cache[this.data.cacheID],this.data.elem.parentNode.removeChild(this.data.elem),this.data.select.removeAttribute("data-dkCacheId"),this},handleEvent:function(a){if(!this.disabled)switch(a.type){case"click":this._delegate(a);break;case"keydown":this._keyHandler(a);break;case"keypress":this._searchOptions(a);break;case"mouseover":this._highlight(a);break;case"reset":this.reset();break;case"change":this.data.settings.change.call(this)}},_delegate:function(b){var c,d,e,f,g=b.target;if(l.hasClass(g,"dk-option-disabled"))return!1;if(this.multiple){if(l.hasClass(g,"dk-option"))if(c=a.getSelection(),"Range"===c.type&&c.collapseToStart(),b.shiftKey)if(e=this.options.indexOf(this.selectedOptions[0]),f=this.options.indexOf(this.selectedOptions[this.selectedOptions.length-1]),d=this.options.indexOf(g),d>e&&f>d&&(d=e),d>f&&f>e&&(f=e),this.reset(!0),f>d)for(;f+1>d;)this.select(d++);else for(;d>f-1;)this.select(d--);else b.ctrlKey||b.metaKey?this.select(g):(this.reset(!0),this.select(g))}else this[this.isOpen?"close":"open"](),l.hasClass(g,"dk-option")&&this.select(g)},_highlight:function(a){var b,c=a.target;if(!this.multiple){for(b=0;b<this.options.length;b++)l.removeClass(this.options[b],"dk-option-highlight");l.addClass(this.data.elem.lastChild,"dk-select-options-highlight"),l.addClass(c,"dk-option-highlight")}},_keyHandler:function(a){var b,c,d=this.selectedOptions,e=this.options,f=1,g={tab:9,enter:13,esc:27,space:32,up:38,down:40};switch(a.keyCode){case g.up:f=-1;case g.down:if(a.preventDefault(),b=d[d.length-1],l.hasClass(this.data.elem.lastChild,"dk-select-options-highlight"))for(l.removeClass(this.data.elem.lastChild,"dk-select-options-highlight"),c=0;c<e.length;c++)l.hasClass(e[c],"dk-option-highlight")&&(l.removeClass(e[c],"dk-option-highlight"),b=e[c]);f=e.indexOf(b)+f,f>e.length-1?f=e.length-1:0>f&&(f=0),this.data.select.options[f].disabled||(this.reset(!0),this.select(f),this._scrollTo(f));break;case g.space:if(!this.isOpen){a.preventDefault(),this.open();break}case g.tab:case g.enter:for(f=0;f<e.length;f++)l.hasClass(e[f],"dk-option-highlight")&&this.select(f);case g.esc:this.isOpen&&(a.preventDefault(),this.close())}},_searchOptions:function(a){var b,c=this,e=String.fromCharCode(a.keyCode||a.which),f=function(){c.data.searchTimeout&&clearTimeout(c.data.searchTimeout),c.data.searchTimeout=setTimeout(function(){c.data.searchString=""},1e3)};this.data.searchString===d&&(this.data.searchString=""),f(),this.data.searchString+=e,b=this.search(this.data.searchString,this.data.settings.search),b.length&&(l.hasClass(b[0],"dk-option-disabled")||this.selectOne(b[0]))},_scrollTo:function(a){var b,c,d,e=this.data.elem.lastChild;return-1===a||"number"!=typeof a&&!a||!this.isOpen&&!this.multiple?!1:("number"==typeof a&&(a=this.item(a)),b=l.position(a,e).top,c=b-e.scrollTop,d=c+a.offsetHeight,void(d>e.offsetHeight?(b+=a.offsetHeight,e.scrollTop=b-e.offsetHeight):0>c&&(e.scrollTop=b)))}},i.build=function(a,b){var c,d,e,f=[],g={elem:null,options:[],selected:[]},h=function(a){var c,d,e,f,i=[];switch(a.nodeName){case"OPTION":c=l.create("li",{"class":"dk-option ","data-value":a.value,innerHTML:a.text,role:"option","aria-selected":"false",id:b+"-"+(a.id||a.value.replace(" ","-"))}),l.addClass(c,a.className),a.disabled&&(l.addClass(c,"dk-option-disabled"),c.setAttribute("aria-disabled","true")),a.selected&&(l.addClass(c,"dk-option-selected"),c.setAttribute("aria-selected","true"),g.selected.push(c)),g.options.push(this.appendChild(c));break;case"OPTGROUP":for(d=l.create("li",{"class":"dk-optgroup"}),a.label&&d.appendChild(l.create("div",{"class":"dk-optgroup-label",innerHTML:a.label})),e=l.create("ul",{"class":"dk-optgroup-options"}),f=a.children.length;f--;i.unshift(a.children[f]));i.forEach(h,e),this.appendChild(d).appendChild(e)}};for(g.elem=l.create("div",{"class":"dk-select"+(a.multiple?"-multi":"")}),d=l.create("ul",{"class":"dk-select-options",id:b+"-listbox",role:"listbox"}),a.disabled&&l.addClass(g.elem,"dk-select-disabled"),g.elem.id=b+(a.id?"-"+a.id:""),l.addClass(g.elem,a.className),a.multiple?(g.elem.setAttribute("tabindex",a.getAttribute("tabindex")||"0"),d.setAttribute("aria-multiselectable","true")):(c=a.options[a.selectedIndex],g.elem.appendChild(l.create("div",{"class":"dk-selected "+c.className,tabindex:a.tabindex||0,innerHTML:c?c.text:" ",id:b+"-combobox","aria-live":"assertive","aria-owns":d.id,role:"combobox"})),d.setAttribute("aria-expanded","false")),e=a.children.length;e--;f.unshift(a.children[e]));return f.forEach(h,g.elem.appendChild(d)),g},i.onDocClick=function(a){var b,c;if(1!==a.target.nodeType)return!1;null!==(b=a.target.getAttribute("data-dkcacheid"))&&i.cache[b].focus();for(c in i.cache)l.closest(a.target,i.cache[c].data.elem)||c===b||i.cache[c].disabled||i.cache[c].close()},c!==d&&(c.fn.dropkick=function(){var a=Array.prototype.slice.call(arguments);return c(this).each(function(){a[0]&&"object"!=typeof a[0]?"string"==typeof a[0]&&i.prototype[a[0]].apply(new i(this),a.slice(1)):new i(this,a[0]||{})})}),i})}(),h()}),a.registerDynamic("ad",["ac"],!0,function(a,b,c){return c.exports=a("ac"),c.exports}),a.register("ae",[],function(){return{setters:[],execute:function(){}}}),a.register("af",["11","76","89","8a","ad","ae"],function(a){var b,c,d,e,f,g,h,i;return{setters:[function(a){b=a.Component,c=a.EventEmitter,d=a.ElementRef},function(a){e=a.CORE_DIRECTIVES},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a["default"]},function(a){}],execute:function(){"use strict";i=function(){function a(a){g(this,i),this.change=new c,this.elem=a.nativeElement}f(a,[{key:"ngAfterContentInit",value:function(){this.inst=new h(this.elem.firstElementChild,{autoWidth:!0})}},{key:"onChange",value:function(a){this.change.next(a)}},{key:"destroy",value:function(){this.inst.dispose()}}]);var i=a;return a=Reflect.metadata("parameters",[[d]])(a)||a,a=b({selector:"dropdown",events:["change"],template:"\n <select (change)=onChange($event.target.value)>\n <ng-content></ng-content>\n </select>\n ",directives:[e],styles:["\n :host .dk-select{max-width:100%;font-family:Montserrat,sans-serif;font-size:.929em;min-width:100px;width:auto}:host .dk-selected:after{display:none}:host .dk-selected{color:#263238;border-color:rgba(38,50,56,0.5);padding:0.15em 0.6em 0.2em 0.5em;border-radius:2px}:host .dk-select-open-down .dk-selected,:host .dk-selected:focus,:host .dk-selected:hover{border-color:#0033a0;color:#0033a0}:host .dk-selected:before{border-top-color:#263238;border-width:.35em .35em 0}:host .dk-select-open-down .dk-selected:before,:host .dk-select-open-up .dk-selected:before{border-bottom-color:#0033a0}:host .dk-select-multi:focus .dk-select-options,:host .dk-select-open-down .dk-select-options,:host .dk-select-open-up .dk-select-options{border-color:rgba(38,50,56,0.2)}:host .dk-select-options .dk-option-highlight{background:#ffffff}:host .dk-select-options{margin-top:0.2em;padding:0;border-radius:2px;box-shadow:0px 2px 4px 0px rgba(34,36,38,0.12),0px 2px 10px 0px rgba(34,36,38,0.08) !important}:host .dk-option{color:#263238;padding:0.16em 0.6em 0.2em 0.5em}:host .dk-option:hover{background-color:rgba(38,50,56,0.12)}:host .dk-option:focus{background-color:rgba(38,50,56,0.12)}:host .dk-option-selected{background-color:rgba(0,0,0,0.05) !important}\n "]})(a)||a}(),a("DropDown",i)}}}),a.register("b0",["11","89","8a","5e"],function(a){var b,c,d,e,f,g;return{setters:[function(a){b=a.Directive,c=a.ElementRef},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a.BrowserDomAdapter}],execute:function(){"use strict";g=function(){function a(a,b){e(this,g),this.$element=a.nativeElement,this.dom=b,this.dom.setStyle(this.$element,"position","absolute"),this.dom.setStyle(this.$element,"top","0"),this.dom.setStyle(this.$element,"bottom","0"),this.dom.setStyle(this.$element,"max-height","100%")}d(a,[{key:"bind",value:function(){var a=this;this.cancelScrollBinding=this.dom.onAndCancel(this.scrollParent,"scroll",function(){a.updatePosition()}),this.updatePosition()}},{key:"unbind",value:function(){this.cancelScrollBinding&&this.cancelScrollBinding()}},{key:"updatePosition",value:function(){this.scrollY+this.scrollYOffset()>=this.$redocEl.offsetTop?this.stick():this.unstick()}},{key:"stick",value:function(){this.dom.setStyle(this.$element,"position","fixed"),this.dom.setStyle(this.$element,"top",this.scrollYOffset()+"px")}},{key:"unstick",value:function(){this.dom.setStyle(this.$element,"position","absolute"),this.dom.setStyle(this.$element,"top",0)}},{key:"ngOnInit",value:function(){this.$redocEl=this.$element.offsetParent,this.bind()}},{key:"ngOnDestroy",value:function(){this.unbind()}},{key:"scrollY",get:function(){return null!=this.scrollParent.pageYOffset?this.scrollParent.pageYOffset:this.scrollParent.scrollTop}}]);var g=a;return a=Reflect.metadata("parameters",[[c],[f]])(a)||a,a=b({selector:"[sticky-sidebar]",inputs:["scrollParent","scrollYOffset"]})(a)||a}(),a("StickySidebar",g)}}}),a.register("b1",["11","76","89","8a"],function(a){var b,c,d,e,f,g,h,i,j;return{setters:[function(a){b=a.Component,c=a.EventEmitter,d=a.ChangeDetectorRef,e=a.ChangeDetectionStrategy},function(a){f=a.CORE_DIRECTIVES},function(a){g=a["default"]},function(a){h=a["default"]}],execute:function(){"use strict";i=function(){function a(a){h(this,i),this.tabs=[],this.change=new c,this.changeDetector=a}g(a,[{key:"selectTab",value:function(a){var b=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];a.active||(this.tabs.forEach(function(a){a.active=!1}),a.active=!0,b&&this.change.next(a.tabTitle))}},{key:"selectyByTitle",value:function(a){var b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],c=void 0,d=void 0;this.tabs.forEach(function(b){b.active&&(c=b),b.active=!1,b.tabTitle===a&&(d=b)}),d?d.active=!0:c.active=!0,b&&this.change.next(a),this.changeDetector.markForCheck()}},{key:"addTab",value:function(a){0===this.tabs.length&&(a.active=!0),this.tabs.push(a)}},{key:"ngOnInit",value:function(){var a=this;this.selected&&this.selected.subscribe(function(b){return a.selectyByTitle(b)})}}]);var i=a;return a=Reflect.metadata("parameters",[[d]])(a)||a,a=b({selector:"tabs",events:["change"],inputs:["selected"],template:'\n <ul>\n <li *ngFor="let tab of tabs" [ngClass]="{active: tab.active}" (click)="selectTab(tab)"\n class="tab-{{tab.tabStatus}}">{{tab.tabTitle}}</li>\n </ul>\n <ng-content></ng-content>\n ',directives:[f],styles:['\n ul{display:block;margin:0;padding:0}li{list-style:none;display:inline-block;cursor:pointer}.tab-success:before,.tab-error:before,.tab-redirect:before,.tab-info:before{content:"";display:inline-block;position:relative;top:-2px;height:4px;width:4px;border-radius:50%;margin-right:0.5em}.tab-success:before{box-shadow:0 0 3px 0 #00aa13;background-color:#00aa13}.tab-error:before{box-shadow:0 0 3px 0 #e53935;background-color:#e53935}.tab-redirect:before{box-shadow:0 0 3px 0 #f1c400;background-color:#f1c400}.tab-info:before{box-shadow:0 0 3px 0 #0033a0;background-color:#0033a0}\n '],changeDetection:e.OnPush})(a)||a}(),a("Tabs",i),j=function(){function a(a){h(this,c),this.active=!1,a.addTab(this)}var c=a;return a=Reflect.metadata("parameters",[[i]])(a)||a,a=b({selector:"tab",inputs:["tabTitle","tabStatus"],template:'\n <div class="tab-wrap" [ngClass]="{\'active\': active}">\n <ng-content></ng-content>\n </div>\n ',directives:[f],styles:["\n .tab-wrap {\n display: none;\n }\n\n .tab-wrap.active {\n display: block;\n }"]})(a)||a}(),a("Tab",j)}}}),a.registerDynamic("b2",["11","b3","b4","b5"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("b4"),g=a("b5"),h=function(){function a(){}return a.prototype.createSubscription=function(a,b){return f.ObservableWrapper.subscribe(a,b,function(a){throw a})},a.prototype.dispose=function(a){f.ObservableWrapper.dispose(a)},a.prototype.onDestroy=function(a){f.ObservableWrapper.dispose(a)},a}(),i=function(){function a(){}return a.prototype.createSubscription=function(a,b){return a.then(b)},a.prototype.dispose=function(a){},a.prototype.onDestroy=function(a){},a}(),j=new i,k=new h,l=function(){function a(a){this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=a}return a.prototype.ngOnDestroy=function(){e.isPresent(this._subscription)&&this._dispose()},a.prototype.transform=function(a){return e.isBlank(this._obj)?(e.isPresent(a)&&this._subscribe(a),this._latestReturnedValue=this._latestValue,this._latestValue):a!==this._obj?(this._dispose(),this.transform(a)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,d.WrappedValue.wrap(this._latestValue))},a.prototype._subscribe=function(a){var b=this;this._obj=a,this._strategy=this._selectStrategy(a),this._subscription=this._strategy.createSubscription(a,function(c){return b._updateLatestValue(a,c)})},a.prototype._selectStrategy=function(b){if(e.isPromise(b))return j;if(f.ObservableWrapper.isObservable(b))return k;throw new g.InvalidPipeArgumentException(a,b)},a.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},a.prototype._updateLatestValue=function(a,b){a===this._obj&&(this._latestValue=b,this._ref.markForCheck())},a.decorators=[{type:d.Pipe,args:[{name:"async",pure:!1}]},{type:d.Injectable}],a.ctorParameters=[{type:d.ChangeDetectorRef}],a}();return b.AsyncPipe=l,c.exports}),a.registerDynamic("b6",["11","b3","b5"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("b5"),g=function(){function a(){}return a.prototype.transform=function(b){if(e.isBlank(b))return b;if(!e.isString(b))throw new f.InvalidPipeArgumentException(a,b);return b.toUpperCase()},a.decorators=[{type:d.Pipe,args:[{name:"uppercase"}]},{type:d.Injectable}],a}();return b.UpperCasePipe=g,c.exports}),a.registerDynamic("b7",["11","b3","b5"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("b5"),g=function(){function a(){}return a.prototype.transform=function(b){if(e.isBlank(b))return b;if(!e.isString(b))throw new f.InvalidPipeArgumentException(a,b);return b.toLowerCase()},a.decorators=[{type:d.Pipe,args:[{name:"lowercase"}]},{type:d.Injectable}],a}();return b.LowerCasePipe=g,c.exports}),a.registerDynamic("b8",["11","b3"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=function(){function a(){}return a.prototype.transform=function(a){return e.Json.stringify(a)},a.decorators=[{type:d.Pipe,args:[{name:"json",pure:!1}]},{type:d.Injectable}],a}();return b.JsonPipe=f,c.exports}),a.registerDynamic("b9",["11","b3","ba","b5"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("ba"),g=a("b5"),h=function(){function a(){}return a.prototype.transform=function(b,c,d){if(void 0===d&&(d=null),!this.supports(b))throw new g.InvalidPipeArgumentException(a,b);return e.isBlank(b)?b:e.isString(b)?e.StringWrapper.slice(b,c,d):f.ListWrapper.slice(b,c,d)},a.prototype.supports=function(a){return e.isString(a)||e.isArray(a)},a.decorators=[{type:d.Pipe,args:[{name:"slice",pure:!1}]},{type:d.Injectable}],a}();return b.SlicePipe=h,c.exports}),a.registerDynamic("bb",["11","b3","bc","ba","b5"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("bc"),g=a("ba"),h=a("b5"),i="en-US",j=function(){function a(){}return a.prototype.transform=function(b,c){if(void 0===c&&(c="mediumDate"),e.isBlank(b))return null;if(!this.supports(b))throw new h.InvalidPipeArgumentException(a,b);return e.isNumber(b)&&(b=e.DateWrapper.fromMillis(b)),g.StringMapWrapper.contains(a._ALIASES,c)&&(c=g.StringMapWrapper.get(a._ALIASES,c)),f.DateFormatter.format(b,i,c)},a.prototype.supports=function(a){return e.isDate(a)||e.isNumber(a)},a._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},a.decorators=[{type:d.Pipe,args:[{name:"date",pure:!0}]},{type:d.Injectable}],a}();return b.DatePipe=j,c.exports}),a.registerDynamic("bc",[],!0,function(a,b,c){"use strict";function d(a){return 2==a?"2-digit":"numeric"}function e(a){return 4>a?"short":"long"}function f(a){for(var b,c={},f=0;f<a.length;){for(b=f;b<a.length&&a[b]==a[f];)b++;var g=b-f;switch(a[f]){case"G":c.era=e(g);break;case"y":c.year=d(g);break;case"M":g>=3?c.month=e(g):c.month=d(g);break;case"d":c.day=d(g);break;case"E":c.weekday=e(g);break;case"j":c.hour=d(g);break;case"h":c.hour=d(g),c.hour12=!0;break;case"H":c.hour=d(g),c.hour12=!1;break;case"m":c.minute=d(g);break;case"s":c.second=d(g);break;case"z":c.timeZoneName="long";break;case"Z":c.timeZoneName="short"}f=b}return c}!function(a){a[a.Decimal=0]="Decimal",a[a.Percent=1]="Percent",a[a.Currency=2]="Currency"}(b.NumberFormatStyle||(b.NumberFormatStyle={}));var g=b.NumberFormatStyle,h=function(){function a(){}return a.format=function(a,b,c,d){var e=void 0===d?{}:d,f=e.minimumIntegerDigits,h=void 0===f?1:f,i=e.minimumFractionDigits,j=void 0===i?0:i,k=e.maximumFractionDigits,l=void 0===k?3:k,m=e.currency,n=e.currencyAsSymbol,o=void 0===n?!1:n,p={minimumIntegerDigits:h,minimumFractionDigits:j,maximumFractionDigits:l};return p.style=g[c].toLowerCase(),c==g.Currency&&(p.currency=m,p.currencyDisplay=o?"symbol":"code"),new Intl.NumberFormat(b,p).format(a)},a}();b.NumberFormatter=h;var i=new Map,j=function(){function a(){}return a.format=function(a,b,c){var d=b+c;if(i.has(d))return i.get(d).format(a);var e=new Intl.DateTimeFormat(b,f(c));return i.set(d,e),e.format(a)},a}();return b.DateFormatter=j,c.exports}),a.registerDynamic("bd",["11","b3","be","bc","b5"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("b3"),g=a("be"),h=a("bc"),i=a("b5"),j="en-US",k=f.RegExpWrapper.create("^(\\d+)?\\.((\\d+)(\\-(\\d+))?)?$"),l=function(){function a(){}return a._format=function(b,c,d,e,l){if(void 0===e&&(e=null),void 0===l&&(l=!1),f.isBlank(b))return null;if(!f.isNumber(b))throw new i.InvalidPipeArgumentException(a,b);var m=1,n=0,o=3;if(f.isPresent(d)){var p=f.RegExpWrapper.firstMatch(k,d);if(f.isBlank(p))throw new g.BaseException(d+" is not a valid digit info for number pipes");f.isPresent(p[1])&&(m=f.NumberWrapper.parseIntAutoRadix(p[1])),f.isPresent(p[3])&&(n=f.NumberWrapper.parseIntAutoRadix(p[3])),f.isPresent(p[5])&&(o=f.NumberWrapper.parseIntAutoRadix(p[5]))}return h.NumberFormatter.format(b,j,c,{minimumIntegerDigits:m,minimumFractionDigits:n,maximumFractionDigits:o,currency:e,currencyAsSymbol:l})},a.decorators=[{type:e.Injectable}],a}();b.NumberPipe=l;var m=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.transform=function(a,b){return void 0===b&&(b=null),l._format(a,h.NumberFormatStyle.Decimal,b)},b.decorators=[{type:e.Pipe,args:[{name:"number"}]},{type:e.Injectable}],b}(l);b.DecimalPipe=m;var n=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.transform=function(a,b){return void 0===b&&(b=null),l._format(a,h.NumberFormatStyle.Percent,b)},b.decorators=[{type:e.Pipe,args:[{name:"percent"}]},{type:e.Injectable}],b}(l);b.PercentPipe=n;var o=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.transform=function(a,b,c,d){return void 0===b&&(b="USD"),void 0===c&&(c=!1),void 0===d&&(d=null),l._format(a,h.NumberFormatStyle.Currency,d,b,c)},b.decorators=[{type:e.Pipe,args:[{name:"currency"}]},{type:e.Injectable}],b}(l);return b.CurrencyPipe=o,c.exports}),a.registerDynamic("bf",["11","b3","b5"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("b5"),g=function(){function a(){}return a.prototype.transform=function(b,c,d){if(e.isBlank(b))return b;if(!this._supportedInput(b))throw new f.InvalidPipeArgumentException(a,b);var g=b.toString();if(!this._supportedPattern(c))throw new f.InvalidPipeArgumentException(a,c);if(!this._supportedReplacement(d))throw new f.InvalidPipeArgumentException(a,d);if(e.isFunction(d)){var h=e.isString(c)?e.RegExpWrapper.create(c):c;return e.StringWrapper.replaceAllMapped(g,h,d)}return c instanceof RegExp?e.StringWrapper.replaceAll(g,c,d):e.StringWrapper.replace(g,c,d)},a.prototype._supportedInput=function(a){return e.isString(a)||e.isNumber(a)},a.prototype._supportedPattern=function(a){return e.isString(a)||a instanceof RegExp},a.prototype._supportedReplacement=function(a){return e.isString(a)||e.isFunction(a)},a.decorators=[{type:d.Pipe,args:[{name:"replace"}]},{type:d.Injectable}],a}();return b.ReplacePipe=g,c.exports}),a.registerDynamic("c0",["11","b3","b5"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("b5"),g=e.RegExpWrapper.create("#"),h=function(){function a(){}return a.prototype.transform=function(b,c){var d,h;if(!e.isStringMap(c))throw new f.InvalidPipeArgumentException(a,c);return d=0===b||1===b?"="+b:"other",h=e.isPresent(b)?b.toString():"",e.StringWrapper.replaceAll(c[d],g,h)},a.decorators=[{type:d.Pipe,args:[{name:"i18nPlural",pure:!0}]},{type:d.Injectable}],a}();return b.I18nPluralPipe=h,c.exports}),a.registerDynamic("b5",["b3","be"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("b3"),f=a("be"),g=function(a){function b(b,c){a.call(this,"Invalid argument '"+c+"' for pipe '"+e.stringify(b)+"'")}return d(b,a),b}(f.BaseException);return b.InvalidPipeArgumentException=g,c.exports}),a.registerDynamic("c1",["11","b3","ba","b5"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("ba"),g=a("b5"),h=function(){function a(){}return a.prototype.transform=function(b,c){if(!e.isStringMap(c))throw new g.InvalidPipeArgumentException(a,c);return f.StringMapWrapper.contains(c,b)?c[b]:c.other},a.decorators=[{type:d.Pipe,args:[{name:"i18nSelect",pure:!0}]},{type:d.Injectable}],a}();return b.I18nSelectPipe=h,c.exports}),a.registerDynamic("c2",["b2","b6","b7","b8","b9","bb","bd","bf","c0","c1"],!0,function(a,b,c){"use strict";var d=a("b2"),e=a("b6"),f=a("b7"),g=a("b8"),h=a("b9"),i=a("bb"),j=a("bd"),k=a("bf"),l=a("c0"),m=a("c1");return b.COMMON_PIPES=[d.AsyncPipe,e.UpperCasePipe,f.LowerCasePipe,g.JsonPipe,h.SlicePipe,j.DecimalPipe,j.PercentPipe,j.CurrencyPipe,i.DatePipe,k.ReplacePipe,l.I18nPluralPipe,m.I18nSelectPipe],c.exports}),a.registerDynamic("c3",["b2","bb","b8","b9","b7","bd","b6","bf","c0","c1","c2"],!0,function(a,b,c){"use strict";var d=a("b2");b.AsyncPipe=d.AsyncPipe;var e=a("bb");b.DatePipe=e.DatePipe;var f=a("b8");b.JsonPipe=f.JsonPipe;var g=a("b9");b.SlicePipe=g.SlicePipe;var h=a("b7");b.LowerCasePipe=h.LowerCasePipe;var i=a("bd");b.NumberPipe=i.NumberPipe,b.DecimalPipe=i.DecimalPipe,b.PercentPipe=i.PercentPipe,b.CurrencyPipe=i.CurrencyPipe;var j=a("b6");b.UpperCasePipe=j.UpperCasePipe;var k=a("bf");b.ReplacePipe=k.ReplacePipe;var l=a("c0");b.I18nPluralPipe=l.I18nPluralPipe;var m=a("c1");b.I18nSelectPipe=m.I18nSelectPipe;var n=a("c2");return b.COMMON_PIPES=n.COMMON_PIPES,c.exports}),a.registerDynamic("c4",["11","b4","c5","c6","c7","c8","c9"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("b4"),g=a("c5"),h=a("c6"),i=a("c7"),j=a("c8"),k=a("c9");b.controlNameBinding={provide:h.NgControl,useExisting:e.forwardRef(function(){return l})};var l=function(a){function c(b,c,d,e){a.call(this),this._parent=b,this._validators=c,this._asyncValidators=d,this.update=new f.EventEmitter,this._added=!1,this.valueAccessor=j.selectValueAccessor(this,e)}return d(c,a),c.prototype.ngOnChanges=function(a){this._added||(this.formDirective.addControl(this),this._added=!0),j.isPropertyUpdated(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},c.prototype.ngOnDestroy=function(){this.formDirective.removeControl(this)},c.prototype.viewToModelUpdate=function(a){this.viewModel=a,f.ObservableWrapper.callEmit(this.update,a)},Object.defineProperty(c.prototype,"path",{get:function(){return j.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"validator",{get:function(){return j.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"asyncValidator",{get:function(){return j.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"control",{get:function(){return this.formDirective.getControl(this)},enumerable:!0,configurable:!0}),c.decorators=[{type:e.Directive,args:[{selector:"[ngControl]",bindings:[b.controlNameBinding],inputs:["name: ngControl","model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:g.ControlContainer,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[k.NG_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[k.NG_ASYNC_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[i.NG_VALUE_ACCESSOR]}]}],c}(h.NgControl);return b.NgControlName=l,c.exports}),a.registerDynamic("ca",["11","ba","b4","c6","c9","c7","c8"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("ba"),g=a("b4"),h=a("c6"),i=a("c9"),j=a("c7"),k=a("c8");b.formControlBinding={provide:h.NgControl,useExisting:e.forwardRef(function(){return l})};var l=function(a){function c(b,c,d){a.call(this),this._validators=b,this._asyncValidators=c,this.update=new g.EventEmitter,this.valueAccessor=k.selectValueAccessor(this,d)}return d(c,a),c.prototype.ngOnChanges=function(a){this._isControlChanged(a)&&(k.setUpControl(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})),k.isPropertyUpdated(a,this.viewModel)&&(this.form.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(c.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"validator",{get:function(){return k.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"asyncValidator",{get:function(){return k.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),c.prototype.viewToModelUpdate=function(a){this.viewModel=a,g.ObservableWrapper.callEmit(this.update,a)},c.prototype._isControlChanged=function(a){return f.StringMapWrapper.contains(a,"form")},c.decorators=[{type:e.Directive,args:[{selector:"[ngFormControl]",bindings:[b.formControlBinding],inputs:["form: ngFormControl","model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[i.NG_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[i.NG_ASYNC_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[j.NG_VALUE_ACCESSOR]}]}],c}(h.NgControl);return b.NgFormControl=l,c.exports}),a.registerDynamic("cb",["11","b4","c7","c6","cc","c9","c8"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("b4"),g=a("c7"),h=a("c6"),i=a("cc"),j=a("c9"),k=a("c8");b.formControlBinding={provide:h.NgControl,useExisting:e.forwardRef(function(){return l})};var l=function(a){function c(b,c,d){a.call(this),this._validators=b,this._asyncValidators=c,this._control=new i.Control,this._added=!1,this.update=new f.EventEmitter,this.valueAccessor=k.selectValueAccessor(this,d)}return d(c,a),c.prototype.ngOnChanges=function(a){this._added||(k.setUpControl(this._control,this),this._control.updateValueAndValidity({emitEvent:!1}),this._added=!0),k.isPropertyUpdated(a,this.viewModel)&&(this._control.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(c.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"validator",{get:function(){return k.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"asyncValidator",{get:function(){return k.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),c.prototype.viewToModelUpdate=function(a){this.viewModel=a,f.ObservableWrapper.callEmit(this.update,a)},c.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([ngControl]):not([ngFormControl])",bindings:[b.formControlBinding],inputs:["model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[j.NG_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[j.NG_ASYNC_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[g.NG_VALUE_ACCESSOR]}]}],c}(h.NgControl);return b.NgModel=l,c.exports}),a.registerDynamic("cd",["11","c5","c8","c9"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("c5"),g=a("c8"),h=a("c9");b.controlGroupProvider={provide:f.ControlContainer,useExisting:e.forwardRef(function(){return i})};var i=function(a){function c(b,c,d){a.call(this),this._validators=c,this._asyncValidators=d,this._parent=b}return d(c,a),c.prototype.ngOnInit=function(){this.formDirective.addControlGroup(this)},c.prototype.ngOnDestroy=function(){this.formDirective.removeControlGroup(this)},Object.defineProperty(c.prototype,"control",{
|
||
get:function(){return this.formDirective.getControlGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"path",{get:function(){return g.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"validator",{get:function(){return g.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"asyncValidator",{get:function(){return g.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),c.decorators=[{type:e.Directive,args:[{selector:"[ngControlGroup]",providers:[b.controlGroupProvider],inputs:["name: ngControlGroup"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:f.ControlContainer,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h.NG_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h.NG_ASYNC_VALIDATORS]}]}],c}(f.ControlContainer);return b.NgControlGroup=i,c.exports}),a.registerDynamic("ce",["11","b3","ba","be","b4","c5","c8","c9"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("b3"),g=a("ba"),h=a("be"),i=a("b4"),j=a("c5"),k=a("c8"),l=a("c9");b.formDirectiveProvider={provide:j.ControlContainer,useExisting:e.forwardRef(function(){return m})};var m=function(a){function c(b,c){a.call(this),this._validators=b,this._asyncValidators=c,this.form=null,this.directives=[],this.ngSubmit=new i.EventEmitter}return d(c,a),c.prototype.ngOnChanges=function(a){if(this._checkFormPresent(),g.StringMapWrapper.contains(a,"form")){var b=k.composeValidators(this._validators);this.form.validator=l.Validators.compose([this.form.validator,b]);var c=k.composeAsyncValidators(this._asyncValidators);this.form.asyncValidator=l.Validators.composeAsync([this.form.asyncValidator,c]),this.form.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}this._updateDomValue()},Object.defineProperty(c.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),c.prototype.addControl=function(a){var b=this.form.find(a.path);k.setUpControl(b,a),b.updateValueAndValidity({emitEvent:!1}),this.directives.push(a)},c.prototype.getControl=function(a){return this.form.find(a.path)},c.prototype.removeControl=function(a){g.ListWrapper.remove(this.directives,a)},c.prototype.addControlGroup=function(a){var b=this.form.find(a.path);k.setUpControlGroup(b,a),b.updateValueAndValidity({emitEvent:!1})},c.prototype.removeControlGroup=function(a){},c.prototype.getControlGroup=function(a){return this.form.find(a.path)},c.prototype.updateModel=function(a,b){var c=this.form.find(a.path);c.updateValue(b)},c.prototype.onSubmit=function(){return i.ObservableWrapper.callEmit(this.ngSubmit,null),!1},c.prototype._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=a.form.find(b.path);b.valueAccessor.writeValue(c.value)})},c.prototype._checkFormPresent=function(){if(f.isBlank(this.form))throw new h.BaseException('ngFormModel expects a form. Please pass one in. Example: <form [ngFormModel]="myCoolForm">')},c.decorators=[{type:e.Directive,args:[{selector:"[ngFormModel]",bindings:[b.formDirectiveProvider],inputs:["form: ngFormModel"],host:{"(submit)":"onSubmit()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[l.NG_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[l.NG_ASYNC_VALIDATORS]}]}],c}(j.ControlContainer);return b.NgFormModel=m,c.exports}),a.registerDynamic("c5",["cf"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("cf"),f=function(a){function b(){a.apply(this,arguments)}return d(b,a),Object.defineProperty(b.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),b}(e.AbstractControlDirective);return b.ControlContainer=f,c.exports}),a.registerDynamic("d0",[],!0,function(a,b,c){"use strict";function d(a){return void 0!==a.validate?function(b){return a.validate(b)}:a}function e(a){return void 0!==a.validate?function(b){return Promise.resolve(a.validate(b))}:a}return b.normalizeValidator=d,b.normalizeAsyncValidator=e,c.exports}),a.registerDynamic("c8",["ba","b3","be","c9","d1","d2","d3","d4","d5","d0"],!0,function(a,b,c){"use strict";function d(a,b){var c=l.ListWrapper.clone(b.path);return c.push(a),c}function e(a,b){m.isBlank(a)&&g(b,"Cannot find control"),m.isBlank(b.valueAccessor)&&g(b,"No value accessor for"),a.validator=o.Validators.compose([a.validator,b.validator]),a.asyncValidator=o.Validators.composeAsync([a.asyncValidator,b.asyncValidator]),b.valueAccessor.writeValue(a.value),b.valueAccessor.registerOnChange(function(c){b.viewToModelUpdate(c),a.updateValue(c,{emitModelToViewChange:!1}),a.markAsDirty()}),a.registerOnChange(function(a){return b.valueAccessor.writeValue(a)}),b.valueAccessor.registerOnTouched(function(){return a.markAsTouched()})}function f(a,b){m.isBlank(a)&&g(b,"Cannot find control"),a.validator=o.Validators.compose([a.validator,b.validator]),a.asyncValidator=o.Validators.composeAsync([a.asyncValidator,b.asyncValidator])}function g(a,b){var c=a.path.join(" -> ");throw new n.BaseException(b+" '"+c+"'")}function h(a){return m.isPresent(a)?o.Validators.compose(a.map(u.normalizeValidator)):null}function i(a){return m.isPresent(a)?o.Validators.composeAsync(a.map(u.normalizeAsyncValidator)):null}function j(a,b){if(!l.StringMapWrapper.contains(a,"model"))return!1;var c=a.model;return c.isFirstChange()?!0:!m.looseIdentical(b,c.currentValue)}function k(a,b){if(m.isBlank(b))return null;var c,d,e;return b.forEach(function(b){m.hasConstructor(b,p.DefaultValueAccessor)?c=b:m.hasConstructor(b,r.CheckboxControlValueAccessor)||m.hasConstructor(b,q.NumberValueAccessor)||m.hasConstructor(b,s.SelectControlValueAccessor)||m.hasConstructor(b,t.RadioControlValueAccessor)?(m.isPresent(d)&&g(a,"More than one built-in value accessor matches"),d=b):(m.isPresent(e)&&g(a,"More than one custom value accessor matches"),e=b)}),m.isPresent(e)?e:m.isPresent(d)?d:m.isPresent(c)?c:(g(a,"No valid value accessor for"),null)}var l=a("ba"),m=a("b3"),n=a("be"),o=a("c9"),p=a("d1"),q=a("d2"),r=a("d3"),s=a("d4"),t=a("d5"),u=a("d0");return b.controlPath=d,b.setUpControl=e,b.setUpControlGroup=f,b.composeValidators=h,b.composeAsyncValidators=i,b.isPropertyUpdated=j,b.selectValueAccessor=k,c.exports}),a.registerDynamic("d6",["11","b4","ba","b3","c5","cc","c8","c9"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("b4"),g=a("ba"),h=a("b3"),i=a("c5"),j=a("cc"),k=a("c8"),l=a("c9");b.formDirectiveProvider={provide:i.ControlContainer,useExisting:e.forwardRef(function(){return m})};var m=function(a){function c(b,c){a.call(this),this.ngSubmit=new f.EventEmitter,this.form=new j.ControlGroup({},null,k.composeValidators(b),k.composeAsyncValidators(c))}return d(c,a),Object.defineProperty(c.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),c.prototype.addControl=function(a){var b=this;f.PromiseWrapper.scheduleMicrotask(function(){var c=b._findContainer(a.path),d=new j.Control;k.setUpControl(d,a),c.addControl(a.name,d),d.updateValueAndValidity({emitEvent:!1})})},c.prototype.getControl=function(a){return this.form.find(a.path)},c.prototype.removeControl=function(a){var b=this;f.PromiseWrapper.scheduleMicrotask(function(){var c=b._findContainer(a.path);h.isPresent(c)&&(c.removeControl(a.name),c.updateValueAndValidity({emitEvent:!1}))})},c.prototype.addControlGroup=function(a){var b=this;f.PromiseWrapper.scheduleMicrotask(function(){var c=b._findContainer(a.path),d=new j.ControlGroup({});k.setUpControlGroup(d,a),c.addControl(a.name,d),d.updateValueAndValidity({emitEvent:!1})})},c.prototype.removeControlGroup=function(a){var b=this;f.PromiseWrapper.scheduleMicrotask(function(){var c=b._findContainer(a.path);h.isPresent(c)&&(c.removeControl(a.name),c.updateValueAndValidity({emitEvent:!1}))})},c.prototype.getControlGroup=function(a){return this.form.find(a.path)},c.prototype.updateModel=function(a,b){var c=this;f.PromiseWrapper.scheduleMicrotask(function(){var d=c.form.find(a.path);d.updateValue(b)})},c.prototype.onSubmit=function(){return f.ObservableWrapper.callEmit(this.ngSubmit,null),!1},c.prototype._findContainer=function(a){return a.pop(),g.ListWrapper.isEmpty(a)?this.form:this.form.find(a)},c.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngFormModel]),ngForm,[ngForm]",bindings:[b.formDirectiveProvider],host:{"(submit)":"onSubmit()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[l.NG_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[l.NG_ASYNC_VALIDATORS]}]}],c}(i.ControlContainer);return b.NgForm=m,c.exports}),a.registerDynamic("d1",["11","b3","c7"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("c7");b.DEFAULT_VALUE_ACCESSOR={provide:f.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return g}),multi:!0};var g=function(){function a(a,b){this._renderer=a,this._elementRef=b,this.onChange=function(a){},this.onTouched=function(){}}return a.prototype.writeValue=function(a){var b=e.isBlank(a)?"":a;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",b)},a.prototype.registerOnChange=function(a){this.onChange=a},a.prototype.registerOnTouched=function(a){this.onTouched=a},a.decorators=[{type:d.Directive,args:[{selector:"input:not([type=checkbox])[ngControl],textarea[ngControl],input:not([type=checkbox])[ngFormControl],textarea[ngFormControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},bindings:[b.DEFAULT_VALUE_ACCESSOR]}]}],a.ctorParameters=[{type:d.Renderer},{type:d.ElementRef}],a}();return b.DefaultValueAccessor=g,c.exports}),a.registerDynamic("d3",["11","c7"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("c7");b.CHECKBOX_VALUE_ACCESSOR={provide:e.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return f}),multi:!0};var f=function(){function a(a,b){this._renderer=a,this._elementRef=b,this.onChange=function(a){},this.onTouched=function(){}}return a.prototype.writeValue=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",a)},a.prototype.registerOnChange=function(a){this.onChange=a},a.prototype.registerOnTouched=function(a){this.onTouched=a},a.decorators=[{type:d.Directive,args:[{selector:"input[type=checkbox][ngControl],input[type=checkbox][ngFormControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[b.CHECKBOX_VALUE_ACCESSOR]}]}],a.ctorParameters=[{type:d.Renderer},{type:d.ElementRef}],a}();return b.CheckboxControlValueAccessor=f,c.exports}),a.registerDynamic("d2",["11","b3","c7"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("c7");b.NUMBER_VALUE_ACCESSOR={provide:f.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return g}),multi:!0};var g=function(){function a(a,b){this._renderer=a,this._elementRef=b,this.onChange=function(a){},this.onTouched=function(){}}return a.prototype.writeValue=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",a)},a.prototype.registerOnChange=function(a){this.onChange=function(b){a(""==b?null:e.NumberWrapper.parseFloat(b))}},a.prototype.registerOnTouched=function(a){this.onTouched=a},a.decorators=[{type:d.Directive,args:[{selector:"input[type=number][ngControl],input[type=number][ngFormControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},bindings:[b.NUMBER_VALUE_ACCESSOR]}]}],a.ctorParameters=[{type:d.Renderer},{type:d.ElementRef}],a}();return b.NumberValueAccessor=g,c.exports}),a.registerDynamic("d7",["11","c6","b3"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("c6"),f=a("b3"),g=function(){function a(a){this._cd=a}return Object.defineProperty(a.prototype,"ngClassUntouched",{get:function(){return f.isPresent(this._cd.control)?this._cd.control.untouched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngClassTouched",{get:function(){return f.isPresent(this._cd.control)?this._cd.control.touched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngClassPristine",{get:function(){return f.isPresent(this._cd.control)?this._cd.control.pristine:!1},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngClassDirty",{get:function(){return f.isPresent(this._cd.control)?this._cd.control.dirty:!1},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngClassValid",{get:function(){return f.isPresent(this._cd.control)?this._cd.control.valid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngClassInvalid",{get:function(){return f.isPresent(this._cd.control)?!this._cd.control.valid:!1},enumerable:!0,configurable:!0}),a.decorators=[{type:d.Directive,args:[{selector:"[ngControl],[ngModel],[ngFormControl]",host:{"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid"}}]}],a.ctorParameters=[{type:e.NgControl,decorators:[{type:d.Self}]}],a}();return b.NgControlStatus=g,c.exports}),a.registerDynamic("d4",["11","b3","ba","c7"],!0,function(a,b,c){"use strict";function d(a,b){return g.isBlank(a)?""+b:(g.isPrimitive(b)||(b="Object"),g.StringWrapper.slice(a+": "+b,0,50))}function e(a){return a.split(":")[0]}var f=a("11"),g=a("b3"),h=a("ba"),i=a("c7");b.SELECT_VALUE_ACCESSOR={provide:i.NG_VALUE_ACCESSOR,useExisting:f.forwardRef(function(){return j}),multi:!0};var j=function(){function a(a,b){this._renderer=a,this._elementRef=b,this._optionMap=new Map,this._idCounter=0,this.onChange=function(a){},this.onTouched=function(){}}return a.prototype.writeValue=function(a){this.value=a;var b=d(this._getOptionId(a),a);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",b)},a.prototype.registerOnChange=function(a){var b=this;this.onChange=function(c){a(b._getOptionValue(c))}},a.prototype.registerOnTouched=function(a){this.onTouched=a},a.prototype._registerOption=function(){return(this._idCounter++).toString()},a.prototype._getOptionId=function(a){for(var b=0,c=h.MapWrapper.keys(this._optionMap);b<c.length;b++){var d=c[b];if(g.looseIdentical(this._optionMap.get(d),a))return d}return null},a.prototype._getOptionValue=function(a){var b=this._optionMap.get(e(a));return g.isPresent(b)?b:a},a.decorators=[{type:f.Directive,args:[{selector:"select[ngControl],select[ngFormControl],select[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[b.SELECT_VALUE_ACCESSOR]}]}],a.ctorParameters=[{type:f.Renderer},{type:f.ElementRef}],a}();b.SelectControlValueAccessor=j;var k=function(){function a(a,b,c){this._element=a,this._renderer=b,this._select=c,g.isPresent(this._select)&&(this.id=this._select._registerOption())}return Object.defineProperty(a.prototype,"ngValue",{set:function(a){null!=this._select&&(this._select._optionMap.set(this.id,a),this._setElementValue(d(this.id,a)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"value",{set:function(a){this._setElementValue(a),g.isPresent(this._select)&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),a.prototype._setElementValue=function(a){this._renderer.setElementProperty(this._element.nativeElement,"value",a)},a.prototype.ngOnDestroy=function(){g.isPresent(this._select)&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},a.decorators=[{type:f.Directive,args:[{selector:"option"}]}],a.ctorParameters=[{type:f.ElementRef},{type:f.Renderer},{type:j,decorators:[{type:f.Optional},{type:f.Host}]}],a.propDecorators={ngValue:[{type:f.Input,args:["ngValue"]}],value:[{type:f.Input,args:["value"]}]},a}();return b.NgSelectOption=k,c.exports}),a.registerDynamic("d8",["c4","ca","cb","cd","ce","d6","d1","d3","d2","d5","d7","d4","d9","c6"],!0,function(a,b,c){"use strict";var d=a("c4"),e=a("ca"),f=a("cb"),g=a("cd"),h=a("ce"),i=a("d6"),j=a("d1"),k=a("d3"),l=a("d2"),m=a("d5"),n=a("d7"),o=a("d4"),p=a("d9"),q=a("c4");b.NgControlName=q.NgControlName;var r=a("ca");b.NgFormControl=r.NgFormControl;var s=a("cb");b.NgModel=s.NgModel;var t=a("cd");b.NgControlGroup=t.NgControlGroup;var u=a("ce");b.NgFormModel=u.NgFormModel;var v=a("d6");b.NgForm=v.NgForm;var w=a("d1");b.DefaultValueAccessor=w.DefaultValueAccessor;var x=a("d3");b.CheckboxControlValueAccessor=x.CheckboxControlValueAccessor;var y=a("d5");b.RadioControlValueAccessor=y.RadioControlValueAccessor,b.RadioButtonState=y.RadioButtonState;var z=a("d2");b.NumberValueAccessor=z.NumberValueAccessor;var A=a("d7");b.NgControlStatus=A.NgControlStatus;var B=a("d4");b.SelectControlValueAccessor=B.SelectControlValueAccessor,b.NgSelectOption=B.NgSelectOption;var C=a("d9");b.RequiredValidator=C.RequiredValidator,b.MinLengthValidator=C.MinLengthValidator,b.MaxLengthValidator=C.MaxLengthValidator,b.PatternValidator=C.PatternValidator;var D=a("c6");return b.NgControl=D.NgControl,b.FORM_DIRECTIVES=[d.NgControlName,g.NgControlGroup,e.NgFormControl,f.NgModel,h.NgFormModel,i.NgForm,o.NgSelectOption,j.DefaultValueAccessor,l.NumberValueAccessor,k.CheckboxControlValueAccessor,o.SelectControlValueAccessor,m.RadioControlValueAccessor,n.NgControlStatus,p.RequiredValidator,p.MinLengthValidator,p.MaxLengthValidator,p.PatternValidator],c.exports}),a.registerDynamic("c9",["11","b3","da","b4","ba","22"],!0,function(a,b,c){return function(c){"use strict";function d(a){return j.PromiseWrapper.isPromise(a)?a:k.ObservableWrapper.toPromise(a)}function e(a,b){return b.map(function(b){return b(a)})}function f(a,b){return b.map(function(b){return b(a)})}function g(a){var b=a.reduce(function(a,b){return i.isPresent(b)?l.StringMapWrapper.merge(a,b):a},{});return l.StringMapWrapper.isEmpty(b)?null:b}var h=a("11"),i=a("b3"),j=a("da"),k=a("b4"),l=a("ba");b.NG_VALIDATORS=new h.OpaqueToken("NgValidators"),b.NG_ASYNC_VALIDATORS=new h.OpaqueToken("NgAsyncValidators");var m=function(){function a(){}return a.required=function(a){return i.isBlank(a.value)||i.isString(a.value)&&""==a.value?{required:!0}:null},a.minLength=function(b){return function(c){if(i.isPresent(a.required(c)))return null;var d=c.value;return d.length<b?{minlength:{requiredLength:b,actualLength:d.length}}:null}},a.maxLength=function(b){return function(c){if(i.isPresent(a.required(c)))return null;var d=c.value;return d.length>b?{maxlength:{requiredLength:b,actualLength:d.length}}:null}},a.pattern=function(b){return function(c){if(i.isPresent(a.required(c)))return null;var d=new RegExp("^"+b+"$"),e=c.value;return d.test(e)?null:{pattern:{requiredPattern:"^"+b+"$",actualValue:e}}}},a.nullValidator=function(a){return null},a.compose=function(a){if(i.isBlank(a))return null;var b=a.filter(i.isPresent);return 0==b.length?null:function(a){return g(e(a,b))}},a.composeAsync=function(a){if(i.isBlank(a))return null;var b=a.filter(i.isPresent);return 0==b.length?null:function(a){var c=f(a,b).map(d);return j.PromiseWrapper.all(c).then(g)}},a}();b.Validators=m}(a("22")),c.exports}),a.registerDynamic("d9",["11","b3","c9"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("c9"),g=f.Validators.required;b.REQUIRED_VALIDATOR={provide:f.NG_VALIDATORS,useValue:g,multi:!0};var h=function(){function a(){}return a.decorators=[{type:d.Directive,args:[{selector:"[required][ngControl],[required][ngFormControl],[required][ngModel]",providers:[b.REQUIRED_VALIDATOR]}]}],a}();b.RequiredValidator=h,b.MIN_LENGTH_VALIDATOR={provide:f.NG_VALIDATORS,useExisting:d.forwardRef(function(){return i}),multi:!0};var i=function(){function a(a){this._validator=f.Validators.minLength(e.NumberWrapper.parseInt(a,10))}return a.prototype.validate=function(a){return this._validator(a)},a.decorators=[{type:d.Directive,args:[{selector:"[minlength][ngControl],[minlength][ngFormControl],[minlength][ngModel]",providers:[b.MIN_LENGTH_VALIDATOR]}]}],a.ctorParameters=[{type:void 0,decorators:[{type:d.Attribute,args:["minlength"]}]}],a}();b.MinLengthValidator=i,b.MAX_LENGTH_VALIDATOR={provide:f.NG_VALIDATORS,useExisting:d.forwardRef(function(){return j}),multi:!0};var j=function(){function a(a){this._validator=f.Validators.maxLength(e.NumberWrapper.parseInt(a,10))}return a.prototype.validate=function(a){return this._validator(a)},a.decorators=[{type:d.Directive,args:[{selector:"[maxlength][ngControl],[maxlength][ngFormControl],[maxlength][ngModel]",providers:[b.MAX_LENGTH_VALIDATOR]}]}],a.ctorParameters=[{type:void 0,decorators:[{type:d.Attribute,args:["maxlength"]}]}],a}();b.MaxLengthValidator=j,b.PATTERN_VALIDATOR={provide:f.NG_VALIDATORS,useExisting:d.forwardRef(function(){return k}),multi:!0};var k=function(){function a(a){this._validator=f.Validators.pattern(a)}return a.prototype.validate=function(a){return this._validator(a)},a.decorators=[{type:d.Directive,args:[{selector:"[pattern][ngControl],[pattern][ngFormControl],[pattern][ngModel]",providers:[b.PATTERN_VALIDATOR]}]}],a.ctorParameters=[{type:void 0,decorators:[{type:d.Attribute,args:["pattern"]}]}],a}();return b.PatternValidator=k,c.exports}),a.registerDynamic("cc",["b3","b4","da","ba"],!0,function(a,b,c){"use strict";function d(a){return a instanceof l}function e(a,b){return h.isBlank(b)?null:(b instanceof Array||(b=b.split("/")),b instanceof Array&&k.ListWrapper.isEmpty(b)?null:b.reduce(function(a,b){if(a instanceof n)return h.isPresent(a.controls[b])?a.controls[b]:null;if(a instanceof o){var c=b;return h.isPresent(a.at(c))?a.at(c):null}return null},a))}function f(a){return j.PromiseWrapper.isPromise(a)?i.ObservableWrapper.fromPromise(a):a}var g=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},h=a("b3"),i=a("b4"),j=a("da"),k=a("ba");b.VALID="VALID",b.INVALID="INVALID",b.PENDING="PENDING",b.isControl=d;var l=function(){function a(a,b){this.validator=a,this.asyncValidator=b,this._pristine=!0,this._touched=!1}return Object.defineProperty(a.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valid",{get:function(){return this._status===b.VALID},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pending",{get:function(){return this._status==b.PENDING},enumerable:!0,configurable:!0}),a.prototype.markAsTouched=function(){this._touched=!0},a.prototype.markAsDirty=function(a){var b=(void 0===a?{}:a).onlySelf;b=h.normalizeBool(b),this._pristine=!1,h.isPresent(this._parent)&&!b&&this._parent.markAsDirty({onlySelf:b})},a.prototype.markAsPending=function(a){var c=(void 0===a?{}:a).onlySelf;c=h.normalizeBool(c),this._status=b.PENDING,h.isPresent(this._parent)&&!c&&this._parent.markAsPending({onlySelf:c})},a.prototype.setParent=function(a){this._parent=a},a.prototype.updateValueAndValidity=function(a){var c=void 0===a?{}:a,d=c.onlySelf,e=c.emitEvent;d=h.normalizeBool(d),e=h.isPresent(e)?e:!0,this._updateValue(),this._errors=this._runValidator(),this._status=this._calculateStatus(),this._status!=b.VALID&&this._status!=b.PENDING||this._runAsyncValidator(e),e&&(i.ObservableWrapper.callEmit(this._valueChanges,this._value),i.ObservableWrapper.callEmit(this._statusChanges,this._status)),h.isPresent(this._parent)&&!d&&this._parent.updateValueAndValidity({onlySelf:d,emitEvent:e})},a.prototype._runValidator=function(){return h.isPresent(this.validator)?this.validator(this):null},a.prototype._runAsyncValidator=function(a){var c=this;if(h.isPresent(this.asyncValidator)){this._status=b.PENDING,this._cancelExistingSubscription();var d=f(this.asyncValidator(this));this._asyncValidationSubscription=i.ObservableWrapper.subscribe(d,function(b){return c.setErrors(b,{emitEvent:a})})}},a.prototype._cancelExistingSubscription=function(){h.isPresent(this._asyncValidationSubscription)&&i.ObservableWrapper.dispose(this._asyncValidationSubscription)},a.prototype.setErrors=function(a,b){var c=(void 0===b?{}:b).emitEvent;c=h.isPresent(c)?c:!0,this._errors=a,this._status=this._calculateStatus(),c&&i.ObservableWrapper.callEmit(this._statusChanges,this._status),h.isPresent(this._parent)&&this._parent._updateControlsErrors()},a.prototype.find=function(a){return e(this,a)},a.prototype.getError=function(a,b){void 0===b&&(b=null);var c=h.isPresent(b)&&!k.ListWrapper.isEmpty(b)?this.find(b):this;return h.isPresent(c)&&h.isPresent(c._errors)?k.StringMapWrapper.get(c._errors,a):null},a.prototype.hasError=function(a,b){return void 0===b&&(b=null),h.isPresent(this.getError(a,b))},Object.defineProperty(a.prototype,"root",{get:function(){for(var a=this;h.isPresent(a._parent);)a=a._parent;return a},enumerable:!0,configurable:!0}),a.prototype._updateControlsErrors=function(){this._status=this._calculateStatus(),h.isPresent(this._parent)&&this._parent._updateControlsErrors()},a.prototype._initObservables=function(){this._valueChanges=new i.EventEmitter,this._statusChanges=new i.EventEmitter},a.prototype._calculateStatus=function(){return h.isPresent(this._errors)?b.INVALID:this._anyControlsHaveStatus(b.PENDING)?b.PENDING:this._anyControlsHaveStatus(b.INVALID)?b.INVALID:b.VALID},a}();b.AbstractControl=l;var m=function(a){function b(b,c,d){void 0===b&&(b=null),void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,c,d),this._value=b,this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}return g(b,a),b.prototype.updateValue=function(a,b){var c=void 0===b?{}:b,d=c.onlySelf,e=c.emitEvent,f=c.emitModelToViewChange;f=h.isPresent(f)?f:!0,this._value=a,h.isPresent(this._onChange)&&f&&this._onChange(this._value),this.updateValueAndValidity({onlySelf:d,emitEvent:e})},b.prototype._updateValue=function(){},b.prototype._anyControlsHaveStatus=function(a){return!1},b.prototype.registerOnChange=function(a){this._onChange=a},b}(l);b.Control=m;var n=function(a){function b(b,c,d,e){void 0===c&&(c=null),void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,d,e),this.controls=b,this._optionals=h.isPresent(c)?c:{},this._initObservables(),this._setParentForControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return g(b,a),b.prototype.addControl=function(a,b){this.controls[a]=b,b.setParent(this)},b.prototype.removeControl=function(a){k.StringMapWrapper["delete"](this.controls,a)},b.prototype.include=function(a){k.StringMapWrapper.set(this._optionals,a,!0),this.updateValueAndValidity()},b.prototype.exclude=function(a){k.StringMapWrapper.set(this._optionals,a,!1),this.updateValueAndValidity()},b.prototype.contains=function(a){var b=k.StringMapWrapper.contains(this.controls,a);return b&&this._included(a)},b.prototype._setParentForControls=function(){var a=this;k.StringMapWrapper.forEach(this.controls,function(b,c){b.setParent(a)})},b.prototype._updateValue=function(){this._value=this._reduceValue()},b.prototype._anyControlsHaveStatus=function(a){var b=this,c=!1;return k.StringMapWrapper.forEach(this.controls,function(d,e){c=c||b.contains(e)&&d.status==a}),c},b.prototype._reduceValue=function(){return this._reduceChildren({},function(a,b,c){return a[c]=b.value,a})},b.prototype._reduceChildren=function(a,b){var c=this,d=a;return k.StringMapWrapper.forEach(this.controls,function(a,e){c._included(e)&&(d=b(d,a,e))}),d},b.prototype._included=function(a){var b=k.StringMapWrapper.contains(this._optionals,a);return!b||k.StringMapWrapper.get(this._optionals,a)},b}(l);b.ControlGroup=n;var o=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,c,d),this.controls=b,this._initObservables(),this._setParentForControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return g(b,a),b.prototype.at=function(a){return this.controls[a]},b.prototype.push=function(a){this.controls.push(a),a.setParent(this),this.updateValueAndValidity()},b.prototype.insert=function(a,b){k.ListWrapper.insert(this.controls,a,b),b.setParent(this),this.updateValueAndValidity()},b.prototype.removeAt=function(a){k.ListWrapper.removeAt(this.controls,a),this.updateValueAndValidity()},Object.defineProperty(b.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),b.prototype._updateValue=function(){this._value=this.controls.map(function(a){return a.value})},b.prototype._anyControlsHaveStatus=function(a){return this.controls.some(function(b){return b.status==a})},b.prototype._setParentForControls=function(){var a=this;this.controls.forEach(function(b){b.setParent(a)})},b}(l);return b.ControlArray=o,c.exports}),a.registerDynamic("db",["11","ba","b3","cc"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("ba"),f=a("b3"),g=a("cc"),h=function(){function a(){}return a.prototype.group=function(a,b){void 0===b&&(b=null);var c=this._reduceControls(a),d=f.isPresent(b)?e.StringMapWrapper.get(b,"optionals"):null,h=f.isPresent(b)?e.StringMapWrapper.get(b,"validator"):null,i=f.isPresent(b)?e.StringMapWrapper.get(b,"asyncValidator"):null;return new g.ControlGroup(c,d,h,i)},a.prototype.control=function(a,b,c){return void 0===b&&(b=null),void 0===c&&(c=null),new g.Control(a,b,c)},a.prototype.array=function(a,b,c){var d=this;void 0===b&&(b=null),void 0===c&&(c=null);var e=a.map(function(a){return d._createControl(a)});return new g.ControlArray(e,b,c)},a.prototype._reduceControls=function(a){var b=this,c={};return e.StringMapWrapper.forEach(a,function(a,d){c[d]=b._createControl(a)}),c},a.prototype._createControl=function(a){
|
||
if(a instanceof g.Control||a instanceof g.ControlGroup||a instanceof g.ControlArray)return a;if(f.isArray(a)){var b=a[0],c=a.length>1?a[1]:null,d=a.length>2?a[2]:null;return this.control(b,c,d)}return this.control(a)},a.decorators=[{type:d.Injectable}],a}();return b.FormBuilder=h,c.exports}),a.registerDynamic("c7",["11"],!0,function(a,b,c){"use strict";var d=a("11");return b.NG_VALUE_ACCESSOR=new d.OpaqueToken("NgValueAccessor"),c.exports}),a.registerDynamic("cf",["b3","be"],!0,function(a,b,c){"use strict";var d=a("b3"),e=a("be"),f=function(){function a(){}return Object.defineProperty(a.prototype,"control",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"value",{get:function(){return d.isPresent(this.control)?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valid",{get:function(){return d.isPresent(this.control)?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"errors",{get:function(){return d.isPresent(this.control)?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pristine",{get:function(){return d.isPresent(this.control)?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dirty",{get:function(){return d.isPresent(this.control)?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"touched",{get:function(){return d.isPresent(this.control)?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"untouched",{get:function(){return d.isPresent(this.control)?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),a}();return b.AbstractControlDirective=f,c.exports}),a.registerDynamic("c6",["be","cf"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("be"),f=a("cf"),g=function(a){function b(){a.apply(this,arguments),this.name=null,this.valueAccessor=null}return d(b,a),Object.defineProperty(b.prototype,"validator",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"asyncValidator",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),b}(f.AbstractControlDirective);return b.NgControl=g,c.exports}),a.registerDynamic("d5",["11","b3","ba","c7","c6"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("ba"),g=a("c7"),h=a("c6");b.RADIO_VALUE_ACCESSOR={provide:g.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return k}),multi:!0};var i=function(){function a(){this._accessors=[]}return a.prototype.add=function(a,b){this._accessors.push([a,b])},a.prototype.remove=function(a){for(var b=-1,c=0;c<this._accessors.length;++c)this._accessors[c][1]===a&&(b=c);f.ListWrapper.removeAt(this._accessors,b)},a.prototype.select=function(a){this._accessors.forEach(function(b){b[0].control.root===a._control.control.root&&b[1]!==a&&b[1].fireUncheck()})},a.decorators=[{type:d.Injectable}],a}();b.RadioControlRegistry=i;var j=function(){function a(a,b){this.checked=a,this.value=b}return a}();b.RadioButtonState=j;var k=function(){function a(a,b,c,d){this._renderer=a,this._elementRef=b,this._registry=c,this._injector=d,this.onChange=function(){},this.onTouched=function(){}}return a.prototype.ngOnInit=function(){this._control=this._injector.get(h.NgControl),this._registry.add(this._control,this)},a.prototype.ngOnDestroy=function(){this._registry.remove(this)},a.prototype.writeValue=function(a){this._state=a,e.isPresent(a)&&a.checked&&this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",!0)},a.prototype.registerOnChange=function(a){var b=this;this._fn=a,this.onChange=function(){a(new j(!0,b._state.value)),b._registry.select(b)}},a.prototype.fireUncheck=function(){this._fn(new j(!1,this._state.value))},a.prototype.registerOnTouched=function(a){this.onTouched=a},a.decorators=[{type:d.Directive,args:[{selector:"input[type=radio][ngControl],input[type=radio][ngFormControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[b.RADIO_VALUE_ACCESSOR]}]}],a.ctorParameters=[{type:d.Renderer},{type:d.ElementRef},{type:i},{type:d.Injector}],a.propDecorators={name:[{type:d.Input}]},a}();return b.RadioControlValueAccessor=k,c.exports}),a.registerDynamic("dc",["cc","cf","c5","c4","ca","cb","c6","cd","ce","d6","c7","d1","d7","d3","d4","d8","c9","d9","db","d5"],!0,function(a,b,c){"use strict";var d=a("cc");b.AbstractControl=d.AbstractControl,b.Control=d.Control,b.ControlGroup=d.ControlGroup,b.ControlArray=d.ControlArray;var e=a("cf");b.AbstractControlDirective=e.AbstractControlDirective;var f=a("c5");b.ControlContainer=f.ControlContainer;var g=a("c4");b.NgControlName=g.NgControlName;var h=a("ca");b.NgFormControl=h.NgFormControl;var i=a("cb");b.NgModel=i.NgModel;var j=a("c6");b.NgControl=j.NgControl;var k=a("cd");b.NgControlGroup=k.NgControlGroup;var l=a("ce");b.NgFormModel=l.NgFormModel;var m=a("d6");b.NgForm=m.NgForm;var n=a("c7");b.NG_VALUE_ACCESSOR=n.NG_VALUE_ACCESSOR;var o=a("d1");b.DefaultValueAccessor=o.DefaultValueAccessor;var p=a("d7");b.NgControlStatus=p.NgControlStatus;var q=a("d3");b.CheckboxControlValueAccessor=q.CheckboxControlValueAccessor;var r=a("d4");b.NgSelectOption=r.NgSelectOption,b.SelectControlValueAccessor=r.SelectControlValueAccessor;var s=a("d8");b.FORM_DIRECTIVES=s.FORM_DIRECTIVES,b.RadioButtonState=s.RadioButtonState;var t=a("c9");b.NG_VALIDATORS=t.NG_VALIDATORS,b.NG_ASYNC_VALIDATORS=t.NG_ASYNC_VALIDATORS,b.Validators=t.Validators;var u=a("d9");b.RequiredValidator=u.RequiredValidator,b.MinLengthValidator=u.MinLengthValidator,b.MaxLengthValidator=u.MaxLengthValidator,b.PatternValidator=u.PatternValidator;var v=a("db");b.FormBuilder=v.FormBuilder;var w=a("db"),x=a("d5");return b.FORM_PROVIDERS=[w.FormBuilder,x.RadioControlRegistry],b.FORM_BINDINGS=b.FORM_PROVIDERS,c.exports}),a.registerDynamic("dd",[],!0,function(a,b,c){"use strict";return c.exports}),a.registerDynamic("de",["11","b3","ba"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("ba"),g=function(){function a(a,b,c,d){this._iterableDiffers=a,this._keyValueDiffers=b,this._ngEl=c,this._renderer=d,this._initialClasses=[]}return Object.defineProperty(a.prototype,"initialClasses",{set:function(a){this._applyInitialClasses(!0),this._initialClasses=e.isPresent(a)&&e.isString(a)?a.split(" "):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rawClass",{set:function(a){this._cleanupClasses(this._rawClass),e.isString(a)&&(a=a.split(" ")),this._rawClass=a,this._iterableDiffer=null,this._keyValueDiffer=null,e.isPresent(a)&&(f.isListLikeIterable(a)?this._iterableDiffer=this._iterableDiffers.find(a).create(null):this._keyValueDiffer=this._keyValueDiffers.find(a).create(null))},enumerable:!0,configurable:!0}),a.prototype.ngDoCheck=function(){if(e.isPresent(this._iterableDiffer)){var a=this._iterableDiffer.diff(this._rawClass);e.isPresent(a)&&this._applyIterableChanges(a)}if(e.isPresent(this._keyValueDiffer)){var a=this._keyValueDiffer.diff(this._rawClass);e.isPresent(a)&&this._applyKeyValueChanges(a)}},a.prototype.ngOnDestroy=function(){this._cleanupClasses(this._rawClass)},a.prototype._cleanupClasses=function(a){this._applyClasses(a,!0),this._applyInitialClasses(!1)},a.prototype._applyKeyValueChanges=function(a){var b=this;a.forEachAddedItem(function(a){b._toggleClass(a.key,a.currentValue)}),a.forEachChangedItem(function(a){b._toggleClass(a.key,a.currentValue)}),a.forEachRemovedItem(function(a){a.previousValue&&b._toggleClass(a.key,!1)})},a.prototype._applyIterableChanges=function(a){var b=this;a.forEachAddedItem(function(a){b._toggleClass(a.item,!0)}),a.forEachRemovedItem(function(a){b._toggleClass(a.item,!1)})},a.prototype._applyInitialClasses=function(a){var b=this;this._initialClasses.forEach(function(c){return b._toggleClass(c,!a)})},a.prototype._applyClasses=function(a,b){var c=this;e.isPresent(a)&&(e.isArray(a)?a.forEach(function(a){return c._toggleClass(a,!b)}):a instanceof Set?a.forEach(function(a){return c._toggleClass(a,!b)}):f.StringMapWrapper.forEach(a,function(a,d){e.isPresent(a)&&c._toggleClass(d,!b)}))},a.prototype._toggleClass=function(a,b){if(a=a.trim(),a.length>0)if(a.indexOf(" ")>-1)for(var c=a.split(/\s+/g),d=0,e=c.length;e>d;d++)this._renderer.setElementClass(this._ngEl.nativeElement,c[d],b);else this._renderer.setElementClass(this._ngEl.nativeElement,a,b)},a.decorators=[{type:d.Directive,args:[{selector:"[ngClass]",inputs:["rawClass: ngClass","initialClasses: class"]}]}],a.ctorParameters=[{type:d.IterableDiffers},{type:d.KeyValueDiffers},{type:d.ElementRef},{type:d.Renderer}],a}();return b.NgClass=g,c.exports}),a.registerDynamic("df",["11","b3","be"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("be"),g=function(){function a(a,b,c){this.$implicit=a,this.index=b,this.count=c}return Object.defineProperty(a.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),a}();b.NgForRow=g;var h=function(){function a(a,b,c,d){this._viewContainer=a,this._templateRef=b,this._iterableDiffers=c,this._cdr=d}return Object.defineProperty(a.prototype,"ngForOf",{set:function(a){if(this._ngForOf=a,e.isBlank(this._differ)&&e.isPresent(a))try{this._differ=this._iterableDiffers.find(a).create(this._cdr,this._ngForTrackBy)}catch(b){throw new f.BaseException("Cannot find a differ supporting object '"+a+"' of type '"+e.getTypeNameForDebugging(a)+"'. NgFor only supports binding to Iterables such as Arrays.")}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngForTemplate",{set:function(a){e.isPresent(a)&&(this._templateRef=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngForTrackBy",{set:function(a){this._ngForTrackBy=a},enumerable:!0,configurable:!0}),a.prototype.ngDoCheck=function(){if(e.isPresent(this._differ)){var a=this._differ.diff(this._ngForOf);e.isPresent(a)&&this._applyChanges(a)}},a.prototype._applyChanges=function(a){var b=this,c=[];a.forEachRemovedItem(function(a){return c.push(new i(a,null))}),a.forEachMovedItem(function(a){return c.push(new i(a,null))});var d=this._bulkRemove(c);a.forEachAddedItem(function(a){return d.push(new i(a,null))}),this._bulkInsert(d);for(var e=0;e<d.length;e++)this._perViewChange(d[e].view,d[e].record);for(var e=0,f=this._viewContainer.length;f>e;e++){var g=this._viewContainer.get(e);g.context.index=e,g.context.count=f}a.forEachIdentityChange(function(a){var c=b._viewContainer.get(a.currentIndex);c.context.$implicit=a.item})},a.prototype._perViewChange=function(a,b){a.context.$implicit=b.item},a.prototype._bulkRemove=function(a){a.sort(function(a,b){return a.record.previousIndex-b.record.previousIndex});for(var b=[],c=a.length-1;c>=0;c--){var d=a[c];e.isPresent(d.record.currentIndex)?(d.view=this._viewContainer.detach(d.record.previousIndex),b.push(d)):this._viewContainer.remove(d.record.previousIndex)}return b},a.prototype._bulkInsert=function(a){a.sort(function(a,b){return a.record.currentIndex-b.record.currentIndex});for(var b=0;b<a.length;b++){var c=a[b];e.isPresent(c.view)?this._viewContainer.insert(c.view,c.record.currentIndex):c.view=this._viewContainer.createEmbeddedView(this._templateRef,new g(null,null,null),c.record.currentIndex)}return a},a.decorators=[{type:d.Directive,args:[{selector:"[ngFor][ngForOf]",inputs:["ngForTrackBy","ngForOf","ngForTemplate"]}]}],a.ctorParameters=[{type:d.ViewContainerRef},{type:d.TemplateRef},{type:d.IterableDiffers},{type:d.ChangeDetectorRef}],a}();b.NgFor=h;var i=function(){function a(a,b){this.record=a,this.view=b}return a}();return c.exports}),a.registerDynamic("e0",["11","b3"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=function(){function a(a,b){this._viewContainer=a,this._templateRef=b,this._prevCondition=null}return Object.defineProperty(a.prototype,"ngIf",{set:function(a){!a||!e.isBlank(this._prevCondition)&&this._prevCondition?a||!e.isBlank(this._prevCondition)&&!this._prevCondition||(this._prevCondition=!1,this._viewContainer.clear()):(this._prevCondition=!0,this._viewContainer.createEmbeddedView(this._templateRef))},enumerable:!0,configurable:!0}),a.decorators=[{type:d.Directive,args:[{selector:"[ngIf]",inputs:["ngIf"]}]}],a.ctorParameters=[{type:d.ViewContainerRef},{type:d.TemplateRef}],a}();return b.NgIf=f,c.exports}),a.registerDynamic("e1",["11","b3"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=function(){function a(a){this._viewContainerRef=a}return Object.defineProperty(a.prototype,"ngTemplateOutlet",{set:function(a){e.isPresent(this._insertedViewRef)&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._insertedViewRef)),e.isPresent(a)&&(this._insertedViewRef=this._viewContainerRef.createEmbeddedView(a))},enumerable:!0,configurable:!0}),a.decorators=[{type:d.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],a.ctorParameters=[{type:d.ViewContainerRef}],a.propDecorators={ngTemplateOutlet:[{type:d.Input}]},a}();return b.NgTemplateOutlet=f,c.exports}),a.registerDynamic("e2",["11","b3"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=function(){function a(a,b,c){this._differs=a,this._ngEl=b,this._renderer=c}return Object.defineProperty(a.prototype,"rawStyle",{set:function(a){this._rawStyle=a,e.isBlank(this._differ)&&e.isPresent(a)&&(this._differ=this._differs.find(this._rawStyle).create(null))},enumerable:!0,configurable:!0}),a.prototype.ngDoCheck=function(){if(e.isPresent(this._differ)){var a=this._differ.diff(this._rawStyle);e.isPresent(a)&&this._applyChanges(a)}},a.prototype._applyChanges=function(a){var b=this;a.forEachAddedItem(function(a){b._setStyle(a.key,a.currentValue)}),a.forEachChangedItem(function(a){b._setStyle(a.key,a.currentValue)}),a.forEachRemovedItem(function(a){b._setStyle(a.key,null)})},a.prototype._setStyle=function(a,b){this._renderer.setElementStyle(this._ngEl.nativeElement,a,b)},a.decorators=[{type:d.Directive,args:[{selector:"[ngStyle]",inputs:["rawStyle: ngStyle"]}]}],a.ctorParameters=[{type:d.KeyValueDiffers},{type:d.ElementRef},{type:d.Renderer}],a}();return b.NgStyle=f,c.exports}),a.registerDynamic("e3",["11","b3","ba"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("ba"),g=new Object,h=function(){function a(a,b){this._viewContainerRef=a,this._templateRef=b}return a.prototype.create=function(){this._viewContainerRef.createEmbeddedView(this._templateRef)},a.prototype.destroy=function(){this._viewContainerRef.clear()},a}();b.SwitchView=h;var i=function(){function a(){this._useDefault=!1,this._valueViews=new f.Map,this._activeViews=[]}return Object.defineProperty(a.prototype,"ngSwitch",{set:function(a){this._emptyAllActiveViews(),this._useDefault=!1;var b=this._valueViews.get(a);e.isBlank(b)&&(this._useDefault=!0,b=e.normalizeBlank(this._valueViews.get(g))),this._activateViews(b),this._switchValue=a},enumerable:!0,configurable:!0}),a.prototype._onWhenValueChanged=function(a,b,c){this._deregisterView(a,c),this._registerView(b,c),a===this._switchValue?(c.destroy(),f.ListWrapper.remove(this._activeViews,c)):b===this._switchValue&&(this._useDefault&&(this._useDefault=!1,this._emptyAllActiveViews()),c.create(),this._activeViews.push(c)),0!==this._activeViews.length||this._useDefault||(this._useDefault=!0,this._activateViews(this._valueViews.get(g)))},a.prototype._emptyAllActiveViews=function(){for(var a=this._activeViews,b=0;b<a.length;b++)a[b].destroy();this._activeViews=[]},a.prototype._activateViews=function(a){if(e.isPresent(a)){for(var b=0;b<a.length;b++)a[b].create();this._activeViews=a}},a.prototype._registerView=function(a,b){var c=this._valueViews.get(a);e.isBlank(c)&&(c=[],this._valueViews.set(a,c)),c.push(b)},a.prototype._deregisterView=function(a,b){if(a!==g){var c=this._valueViews.get(a);1==c.length?this._valueViews["delete"](a):f.ListWrapper.remove(c,b)}},a.decorators=[{type:d.Directive,args:[{selector:"[ngSwitch]",inputs:["ngSwitch"]}]}],a}();b.NgSwitch=i;var j=function(){function a(a,b,c){this._value=g,this._switch=c,this._view=new h(a,b)}return Object.defineProperty(a.prototype,"ngSwitchWhen",{set:function(a){this._switch._onWhenValueChanged(this._value,a,this._view),this._value=a},enumerable:!0,configurable:!0}),a.decorators=[{type:d.Directive,args:[{selector:"[ngSwitchWhen]",inputs:["ngSwitchWhen"]}]}],a.ctorParameters=[{type:d.ViewContainerRef},{type:d.TemplateRef},{type:i,decorators:[{type:d.Host}]}],a}();b.NgSwitchWhen=j;var k=function(){function a(a,b,c){c._registerView(g,new h(a,b))}return a.decorators=[{type:d.Directive,args:[{selector:"[ngSwitchDefault]"}]}],a.ctorParameters=[{type:d.ViewContainerRef},{type:d.TemplateRef},{type:i,decorators:[{type:d.Host}]}],a}();return b.NgSwitchDefault=k,c.exports}),a.registerDynamic("e4",["11","b3","ba","e3"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("ba"),g=a("e3"),h="other",i=function(){function a(){}return a}();b.NgLocalization=i;var j=function(){function a(a,b,c){this.value=a,this._view=new g.SwitchView(c,b)}return a.decorators=[{type:d.Directive,args:[{selector:"[ngPluralCase]"}]}],a.ctorParameters=[{type:void 0,decorators:[{type:d.Attribute,args:["ngPluralCase"]}]},{type:d.TemplateRef},{type:d.ViewContainerRef}],a}();b.NgPluralCase=j;var k=function(){function a(a){this._localization=a,this._caseViews=new f.Map,this.cases=null}return Object.defineProperty(a.prototype,"ngPlural",{set:function(a){this._switchValue=a,this._updateView()},enumerable:!0,configurable:!0}),a.prototype.ngAfterContentInit=function(){var a=this;this.cases.forEach(function(b){a._caseViews.set(a._formatValue(b),b._view)}),this._updateView()},a.prototype._updateView=function(){this._clearViews();var a=this._caseViews.get(this._switchValue);e.isPresent(a)||(a=this._getCategoryView(this._switchValue)),this._activateView(a)},a.prototype._clearViews=function(){e.isPresent(this._activeView)&&this._activeView.destroy()},a.prototype._activateView=function(a){e.isPresent(a)&&(this._activeView=a,this._activeView.create())},a.prototype._getCategoryView=function(a){var b=this._localization.getPluralCategory(a),c=this._caseViews.get(b);return e.isPresent(c)?c:this._caseViews.get(h)},a.prototype._isValueView=function(a){return"="===a.value[0]},a.prototype._formatValue=function(a){return this._isValueView(a)?this._stripValue(a.value):a.value},a.prototype._stripValue=function(a){return e.NumberWrapper.parseInt(a.substring(1),10)},a.decorators=[{type:d.Directive,args:[{selector:"[ngPlural]"}]}],a.ctorParameters=[{type:i}],a.propDecorators={cases:[{type:d.ContentChildren,args:[j]}],ngPlural:[{type:d.Input}]},a}();return b.NgPlural=k,c.exports}),a.registerDynamic("e5",["de","df","e0","e1","e2","e3","e4"],!0,function(a,b,c){"use strict";var d=a("de"),e=a("df"),f=a("e0"),g=a("e1"),h=a("e2"),i=a("e3"),j=a("e4");return b.CORE_DIRECTIVES=[d.NgClass,e.NgFor,f.NgIf,g.NgTemplateOutlet,h.NgStyle,i.NgSwitch,i.NgSwitchWhen,i.NgSwitchDefault,j.NgPlural,j.NgPluralCase],c.exports}),a.registerDynamic("e6",["de","df","e0","e1","e2","e3","e4","dd","e5"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}var e=a("de");b.NgClass=e.NgClass;var f=a("df");b.NgFor=f.NgFor;var g=a("e0");b.NgIf=g.NgIf;var h=a("e1");b.NgTemplateOutlet=h.NgTemplateOutlet;var i=a("e2");b.NgStyle=i.NgStyle;var j=a("e3");b.NgSwitch=j.NgSwitch,b.NgSwitchWhen=j.NgSwitchWhen,b.NgSwitchDefault=j.NgSwitchDefault;var k=a("e4");b.NgPlural=k.NgPlural,b.NgPluralCase=k.NgPluralCase,b.NgLocalization=k.NgLocalization,d(a("dd"));var l=a("e5");return b.CORE_DIRECTIVES=l.CORE_DIRECTIVES,c.exports}),a.registerDynamic("e7",["dc","e6"],!0,function(a,b,c){"use strict";var d=a("dc"),e=a("e6");return b.COMMON_DIRECTIVES=[e.CORE_DIRECTIVES,d.FORM_DIRECTIVES],c.exports}),a.registerDynamic("e8",["11","b3","e9","ea","eb"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("b3"),g=a("e9"),h=a("ea"),i=a("eb"),j=function(a){function b(b,c){a.call(this),this._platformLocation=b,this._baseHref="",f.isPresent(c)&&(this._baseHref=c)}return d(b,a),b.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},b.prototype.getBaseHref=function(){return this._baseHref},b.prototype.path=function(){var a=this._platformLocation.hash;return f.isPresent(a)||(a="#"),a.length>0?a.substring(1):a},b.prototype.prepareExternalUrl=function(a){var b=h.Location.joinWithSlash(this._baseHref,a);return b.length>0?"#"+b:b},b.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+h.Location.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.pushState(a,b,e)},b.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+h.Location.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.replaceState(a,b,e)},b.prototype.forward=function(){this._platformLocation.forward()},b.prototype.back=function(){this._platformLocation.back()},b.decorators=[{type:e.Injectable}],b.ctorParameters=[{type:i.PlatformLocation},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[g.APP_BASE_HREF]}]}],b}(g.LocationStrategy);return b.HashLocationStrategy=j,c.exports}),a.registerDynamic("ec",[],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(b){a.call(this,b)}return d(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),b}(Error);return b.BaseWrappedException=e,c.exports}),a.registerDynamic("ba",["b3"],!0,function(a,b,c){"use strict";function d(a,b){if(h.isPresent(a))for(var c=0;c<a.length;c++){var e=a[c];h.isArray(e)?d(e,b):b.push(e)}return b}function e(a){return h.isJsObject(a)?h.isArray(a)||!(a instanceof b.Map)&&h.getSymbolIterator()in a:!1}function f(a,b,c){for(var d=a[h.getSymbolIterator()](),e=b[h.getSymbolIterator()]();;){var f=d.next(),g=e.next();if(f.done&&g.done)return!0;if(f.done||g.done)return!1;if(!c(f.value,g.value))return!1}}function g(a,b){if(h.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(var d,e=a[h.getSymbolIterator()]();!(d=e.next()).done;)b(d.value)}var h=a("b3");b.Map=h.global.Map,b.Set=h.global.Set;var i=function(){try{if(1===new b.Map([[1,2]]).size)return function(a){return new b.Map(a)}}catch(a){}return function(a){for(var c=new b.Map,d=0;d<a.length;d++){var e=a[d];c.set(e[0],e[1])}return c}}(),j=function(){try{if(new b.Map(new b.Map))return function(a){return new b.Map(a)}}catch(a){}return function(a){var c=new b.Map;return a.forEach(function(a,b){c.set(b,a)}),c}}(),k=function(){return(new b.Map).keys().next?function(a){for(var b,c=a.keys();!(b=c.next()).done;)a.set(b.value,null)}:function(a){a.forEach(function(b,c){a.set(c,null)})}}(),l=function(){try{if((new b.Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=o.createFixedSize(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),m=function(){function a(){}return a.clone=function(a){return j(a)},a.createFromStringMap=function(a){var c=new b.Map;for(var d in a)c.set(d,a[d]);return c},a.toStringMap=function(a){var b={};return a.forEach(function(a,c){return b[c]=a}),b},a.createFromPairs=function(a){return i(a)},a.clearValues=function(a){k(a)},a.iterable=function(a){return a},a.keys=function(a){return l(a,!1)},a.values=function(a){return l(a,!0)},a}();b.MapWrapper=m;var n=function(){function a(){}return a.create=function(){return{}},a.contains=function(a,b){return a.hasOwnProperty(b)},a.get=function(a,b){return a.hasOwnProperty(b)?a[b]:void 0},a.set=function(a,b,c){a[b]=c},a.keys=function(a){return Object.keys(a)},a.values=function(a){return Object.keys(a).reduce(function(b,c){return b.push(a[c]),b},[])},a.isEmpty=function(a){for(var b in a)return!1;return!0},a["delete"]=function(a,b){delete a[b]},a.forEach=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},a.merge=function(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f<c.length;f++)if(e=c[f],a[e]!==b[e])return!1;return!0},a}();b.StringMapWrapper=n;var o=function(){function a(){}return a.createFixedSize=function(a){return new Array(a)},a.createGrowableSize=function(a){return new Array(a)},a.clone=function(a){return a.slice(0)},a.forEachWithIndex=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)},a.first=function(a){return a?a[0]:null},a.last=function(a){return a&&0!=a.length?a[a.length-1]:null},a.indexOf=function(a,b,c){return void 0===c&&(c=0),a.indexOf(b,c)},a.contains=function(a,b){return-1!==a.indexOf(b)},a.reversed=function(b){var c=a.clone(b);return c.reverse()},a.concat=function(a,b){return a.concat(b)},a.insert=function(a,b,c){a.splice(b,0,c)},a.removeAt=function(a,b){var c=a[b];return a.splice(b,1),c},a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.splice=function(a,b,c){return a.splice(b,c)},a.sort=function(a,b){h.isPresent(b)?a.sort(b):a.sort()},a.toString=function(a){return a.toString()},a.toJSON=function(a){return JSON.stringify(a)},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(!h.isBlank(f)){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return d(a,b),b},a.addAll=function(a,b){for(var c=0;c<b.length;c++)a.push(b[c])},a}();b.ListWrapper=o,b.isListLikeIterable=e,b.areIterablesEqual=f,b.iterateListLike=g;var p=function(){var a=new b.Set([1,2,3]);return 3===a.size?function(a){return new b.Set(a)}:function(a){var c=new b.Set(a);if(c.size!==a.length)for(var d=0;d<a.length;d++)c.add(a[d]);return c}}(),q=function(){function a(){}return a.createFromList=function(a){return p(a)},a.has=function(a,b){return a.has(b)},a["delete"]=function(a,b){a["delete"](b)},a}();return b.SetWrapper=q,c.exports}),a.registerDynamic("ed",["b3","ec","ba"],!0,function(a,b,c){"use strict";var d=a("b3"),e=a("ec"),f=a("ba"),g=function(){function a(){this.res=[]}return a.prototype.log=function(a){this.res.push(a)},a.prototype.logError=function(a){this.res.push(a)},a.prototype.logGroup=function(a){this.res.push(a)},a.prototype.logGroupEnd=function(){},a}(),h=function(){function a(a,b){void 0===b&&(b=!0),this._logger=a,this._rethrowException=b}return a.exceptionToString=function(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null);var e=new g,f=new a(e,!1);return f.call(b,c,d),e.res.join("\n")},a.prototype.call=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null);var e=this._findOriginalException(a),f=this._findOriginalStack(a),g=this._findContext(a);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(a)),d.isPresent(b)&&d.isBlank(f)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(b))),d.isPresent(c)&&this._logger.logError("REASON: "+c),d.isPresent(e)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(e)),d.isPresent(f)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(f))),d.isPresent(g)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(g)),this._logger.logGroupEnd(),this._rethrowException)throw a},a.prototype._extractMessage=function(a){return a instanceof e.BaseWrappedException?a.wrapperMessage:a.toString()},a.prototype._longStackTrace=function(a){return f.isListLikeIterable(a)?a.join("\n\n-----async gap-----\n"):a.toString()},a.prototype._findContext=function(a){try{return a instanceof e.BaseWrappedException?d.isPresent(a.context)?a.context:this._findContext(a.originalException):null}catch(b){return null}},a.prototype._findOriginalException=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a.originalException;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException;return b},a.prototype._findOriginalStack=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a,c=a.originalStack;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException,b instanceof e.BaseWrappedException&&d.isPresent(b.originalException)&&(c=b.originalStack);return c},a}();return b.ExceptionHandler=h,c.exports}),a.registerDynamic("be",["ec","ed"],!0,function(a,b,c){"use strict";function d(a){return new TypeError(a)}function e(){throw new j("unimplemented")}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("ec"),h=a("ed"),i=a("ed");b.ExceptionHandler=i.ExceptionHandler;var j=function(a){function b(b){void 0===b&&(b="--"),a.call(this,b),this.message=b,this.stack=new Error(b).stack}return f(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.BaseException=j;var k=function(a){function b(b,c,d,e){a.call(this,b),this._wrapperMessage=b,this._originalException=c,this._originalStack=d,this._context=e,this._wrapperStack=new Error(b).stack}return f(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return h.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this.message},b}(g.BaseWrappedException);return b.WrappedException=k,b.makeTypeError=d,
|
||
b.unimplemented=e,c.exports}),a.registerDynamic("eb",[],!0,function(a,b,c){"use strict";var d=function(){function a(){}return Object.defineProperty(a.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),a}();return b.PlatformLocation=d,c.exports}),a.registerDynamic("ee",["11","b3","be","eb","e9","ea"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("b3"),g=a("be"),h=a("eb"),i=a("e9"),j=a("ea"),k=function(a){function b(b,c){if(a.call(this),this._platformLocation=b,f.isBlank(c)&&(c=this._platformLocation.getBaseHrefFromDOM()),f.isBlank(c))throw new g.BaseException("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=c}return d(b,a),b.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},b.prototype.getBaseHref=function(){return this._baseHref},b.prototype.prepareExternalUrl=function(a){return j.Location.joinWithSlash(this._baseHref,a)},b.prototype.path=function(){return this._platformLocation.pathname+j.Location.normalizeQueryParams(this._platformLocation.search)},b.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+j.Location.normalizeQueryParams(d));this._platformLocation.pushState(a,b,e)},b.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+j.Location.normalizeQueryParams(d));this._platformLocation.replaceState(a,b,e)},b.prototype.forward=function(){this._platformLocation.forward()},b.prototype.back=function(){this._platformLocation.back()},b.decorators=[{type:e.Injectable}],b.ctorParameters=[{type:h.PlatformLocation},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[i.APP_BASE_HREF]}]}],b}(i.LocationStrategy);return b.PathLocationStrategy=k,c.exports}),a.registerDynamic("b3",[],!0,function(a,b,c){"use strict";function d(a){Zone.current.scheduleMicroTask("scheduleMicrotask",a)}function e(a){return a.name?a.name:typeof a}function f(){T=!0}function g(){if(T)throw"Cannot enable prod mode after platform setup.";S=!1}function h(){return S}function i(a){return void 0!==a&&null!==a}function j(a){return void 0===a||null===a}function k(a){return"boolean"==typeof a}function l(a){return"number"==typeof a}function m(a){return"string"==typeof a}function n(a){return"function"==typeof a}function o(a){return n(a)}function p(a){return"object"==typeof a&&null!==a}function q(a){return p(a)&&Object.getPrototypeOf(a)===U}function r(a){return a instanceof R.Promise}function s(a){return Array.isArray(a)}function t(a){return a instanceof b.Date&&!isNaN(a.valueOf())}function u(){}function v(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.name)return a.name;if(a.overriddenName)return a.overriddenName;var b=a.toString(),c=b.indexOf("\n");return-1===c?b:b.substring(0,c)}function w(a){return a}function x(a,b){return a}function y(a,b){return a[b]}function z(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function A(a){return a}function B(a){return j(a)?null:a}function C(a){return j(a)?!1:a}function D(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function E(a){console.log(a)}function F(a){console.warn(a)}function G(a,b,c){for(var d=b.split("."),e=a;d.length>1;){var f=d.shift();e=e.hasOwnProperty(f)&&i(e[f])?e[f]:e[f]={}}void 0!==e&&null!==e||(e={}),e[d.shift()]=c}function H(){if(j(ca))if(i(O.Symbol)&&i(Symbol.iterator))ca=Symbol.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(ca=c)}return ca}function I(a,b,c,d){var e=c+"\nreturn "+b+"\n//# sourceURL="+a,f=[],g=[];for(var h in d)f.push(h),g.push(d[h]);return(new(Function.bind.apply(Function,[void 0].concat(f.concat(e))))).apply(void 0,g)}function J(a){return!D(a)}function K(a,b){return a.constructor===b}function L(a){return a.reduce(function(a,b){return a|b})}function M(a){return a.reduce(function(a,b){return a&b})}function N(a){return R.encodeURI(a)}var O,P=this,Q=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};O="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:P:window,b.scheduleMicroTask=d,b.IS_DART=!1;var R=O;b.global=R,b.Type=Function,b.getTypeNameForDebugging=e,b.Math=R.Math,b.Date=R.Date;var S=!0,T=!1;b.lockMode=f,b.enableProdMode=g,b.assertionsEnabled=h,R.assert=function(a){},b.isPresent=i,b.isBlank=j,b.isBoolean=k,b.isNumber=l,b.isString=m,b.isFunction=n,b.isType=o,b.isStringMap=p;var U=Object.getPrototypeOf({});b.isStrictStringMap=q,b.isPromise=r,b.isArray=s,b.isDate=t,b.noop=u,b.stringify=v,b.serializeEnum=w,b.deserializeEnum=x,b.resolveEnumToken=y;var V=function(){function a(){}return a.fromCharCode=function(a){return String.fromCharCode(a)},a.charCodeAt=function(a,b){return a.charCodeAt(b)},a.split=function(a,b){return a.split(b)},a.equals=function(a,b){return a===b},a.stripLeft=function(a,b){if(a&&a.length){for(var c=0,d=0;d<a.length&&a[d]==b;d++)c++;a=a.substring(c)}return a},a.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,d=a.length-1;d>=0&&a[d]==b;d--)c--;a=a.substring(0,c)}return a},a.replace=function(a,b,c){return a.replace(b,c)},a.replaceAll=function(a,b,c){return a.replace(b,c)},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=V;var W=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=W;var X=function(a){function b(b){a.call(this),this.message=b}return Q(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=X;var Y=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new X("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new X("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}();b.NumberWrapper=Y,b.RegExp=R.RegExp;var Z=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new R.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=function(a,b){return a.lastIndex=0,a.test(b)},a.matcher=function(a,b){return a.lastIndex=0,{re:a,input:b}},a.replaceAll=function(a,b,c){var d=a.exec(b),e="";a.lastIndex=0;for(var f=0;d;)e+=b.substring(f,d.index),e+=c(d),f=d.index+d[0].length,a.lastIndex=f,d=a.exec(b);return e+=b.substring(f)},a}();b.RegExpWrapper=Z;var $=function(){function a(){}return a.next=function(a){return a.re.exec(a.input)},a}();b.RegExpMatcherWrapper=$;var _=function(){function a(){}return a.apply=function(a,b){return a.apply(null,b)},a}();b.FunctionWrapper=_,b.looseIdentical=z,b.getMapKey=A,b.normalizeBlank=B,b.normalizeBool=C,b.isJsObject=D,b.print=E,b.warn=F;var aa=function(){function a(){}return a.parse=function(a){return R.JSON.parse(a)},a.stringify=function(a){return R.JSON.stringify(a,null,2)},a}();b.Json=aa;var ba=function(){function a(){}return a.create=function(a,c,d,e,f,g,h){return void 0===c&&(c=1),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),void 0===g&&(g=0),void 0===h&&(h=0),new b.Date(a,c-1,d,e,f,g,h)},a.fromISOString=function(a){return new b.Date(a)},a.fromMillis=function(a){return new b.Date(a)},a.toMillis=function(a){return a.getTime()},a.now=function(){return new b.Date},a.toJson=function(a){return a.toJSON()},a}();b.DateWrapper=ba,b.setValueOnPath=G;var ca=null;return b.getSymbolIterator=H,b.evalExpression=I,b.isPrimitive=J,b.hasConstructor=K,b.bitWiseOr=L,b.bitWiseAnd=M,b.escape=N,c.exports}),a.registerDynamic("da",[],!0,function(a,b,c){"use strict";var d=function(){function a(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b,a.reject=c})}return a}();b.PromiseCompleter=d;var e=function(){function a(){}return a.resolve=function(a){return Promise.resolve(a)},a.reject=function(a,b){return Promise.reject(a)},a.catchError=function(a,b){return a["catch"](b)},a.all=function(a){return 0==a.length?Promise.resolve([]):Promise.all(a)},a.then=function(a,b,c){return a.then(b,c)},a.wrap=function(a){return new Promise(function(b,c){try{b(a())}catch(d){c(d)}})},a.scheduleMicrotask=function(b){a.then(a.resolve(null),b,function(a){})},a.isPromise=function(a){return a instanceof Promise},a.completer=function(){return new d},a}();return b.PromiseWrapper=e,c.exports}),a.registerDynamic("b4",["b3","da","33","34","35","36"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("b3"),f=a("da");b.PromiseWrapper=f.PromiseWrapper,b.PromiseCompleter=f.PromiseCompleter;var g=a("33"),h=a("34"),i=a("35"),j=a("36");b.Observable=j.Observable;var k=a("33");b.Subject=k.Subject;var l=function(){function a(){}return a.setTimeout=function(a,b){return e.global.setTimeout(a,b)},a.clearTimeout=function(a){e.global.clearTimeout(a)},a.setInterval=function(a,b){return e.global.setInterval(a,b)},a.clearInterval=function(a){e.global.clearInterval(a)},a}();b.TimerWrapper=l;var m=function(){function a(){}return a.subscribe=function(a,b,c,d){return void 0===d&&(d=function(){}),c="function"==typeof c&&c||e.noop,d="function"==typeof d&&d||e.noop,a.subscribe({next:b,error:c,complete:d})},a.isObservable=function(a){return!!a.subscribe},a.hasSubscribers=function(a){return a.observers.length>0},a.dispose=function(a){a.unsubscribe()},a.callNext=function(a,b){a.next(b)},a.callEmit=function(a,b){a.emit(b)},a.callError=function(a,b){a.error(b)},a.callComplete=function(a){a.complete()},a.fromPromise=function(a){return h.PromiseObservable.create(a)},a.toPromise=function(a){return i.toPromise.call(a)},a}();b.ObservableWrapper=m;var n=function(a){function b(b){void 0===b&&(b=!0),a.call(this),this._isAsync=b}return d(b,a),b.prototype.emit=function(b){a.prototype.next.call(this,b)},b.prototype.next=function(b){a.prototype.next.call(this,b)},b.prototype.subscribe=function(b,c,d){var e,f=function(a){return null},g=function(){return null};return b&&"object"==typeof b?(e=this._isAsync?function(a){setTimeout(function(){return b.next(a)})}:function(a){b.next(a)},b.error&&(f=this._isAsync?function(a){setTimeout(function(){return b.error(a)})}:function(a){b.error(a)}),b.complete&&(g=this._isAsync?function(){setTimeout(function(){return b.complete()})}:function(){b.complete()})):(e=this._isAsync?function(a){setTimeout(function(){return b(a)})}:function(a){b(a)},c&&(f=this._isAsync?function(a){setTimeout(function(){return c(a)})}:function(a){c(a)}),d&&(g=this._isAsync?function(){setTimeout(function(){return d()})}:function(){d()})),a.prototype.subscribe.call(this,e,f,g)},b}(g.Subject);return b.EventEmitter=n,c.exports}),a.registerDynamic("e9",["11"],!0,function(a,b,c){"use strict";var d=a("11"),e=function(){function a(){}return a}();return b.LocationStrategy=e,b.APP_BASE_HREF=new d.OpaqueToken("appBaseHref"),c.exports}),a.registerDynamic("ea",["11","b4","e9"],!0,function(a,b,c){"use strict";function d(a,b){return a.length>0&&b.startsWith(a)?b.substring(a.length):b}function e(a){return/\/index.html$/g.test(a)?a.substring(0,a.length-11):a}var f=a("11"),g=a("b4"),h=a("e9"),i=function(){function a(b){var c=this;this.platformStrategy=b,this._subject=new g.EventEmitter;var d=this.platformStrategy.getBaseHref();this._baseHref=a.stripTrailingSlash(e(d)),this.platformStrategy.onPopState(function(a){g.ObservableWrapper.callEmit(c._subject,{url:c.path(),pop:!0,type:a.type})})}return a.prototype.path=function(){return this.normalize(this.platformStrategy.path())},a.prototype.normalize=function(b){return a.stripTrailingSlash(d(this._baseHref,e(b)))},a.prototype.prepareExternalUrl=function(a){return a.length>0&&!a.startsWith("/")&&(a="/"+a),this.platformStrategy.prepareExternalUrl(a)},a.prototype.go=function(a,b){void 0===b&&(b=""),this.platformStrategy.pushState(null,"",a,b)},a.prototype.replaceState=function(a,b){void 0===b&&(b=""),this.platformStrategy.replaceState(null,"",a,b)},a.prototype.forward=function(){this.platformStrategy.forward()},a.prototype.back=function(){this.platformStrategy.back()},a.prototype.subscribe=function(a,b,c){return void 0===b&&(b=null),void 0===c&&(c=null),g.ObservableWrapper.subscribe(this._subject,a,b,c)},a.normalizeQueryParams=function(a){return a.length>0&&"?"!=a.substring(0,1)?"?"+a:a},a.joinWithSlash=function(a,b){if(0==a.length)return b;if(0==b.length)return a;var c=0;return a.endsWith("/")&&c++,b.startsWith("/")&&c++,2==c?a+b.substring(1):1==c?a+b:a+"/"+b},a.stripTrailingSlash=function(a){return/\/$/g.test(a)&&(a=a.substring(0,a.length-1)),a},a.decorators=[{type:f.Injectable}],a.ctorParameters=[{type:h.LocationStrategy}],a}();return b.Location=i,c.exports}),a.registerDynamic("ef",["eb","e9","e8","ee","ea"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}return d(a("eb")),d(a("e9")),d(a("e8")),d(a("ee")),d(a("ea")),c.exports}),a.registerDynamic("f0",["c3","e6","dc","e7","ef"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}return d(a("c3")),d(a("e6")),d(a("dc")),d(a("e7")),d(a("ef")),c.exports}),a.registerDynamic("76",["f0"],!0,function(a,b,c){return c.exports=a("f0"),c.exports}),a.register("f1",["11","76","89","8a"],function(a){var b,c,d,e,f,g;return{setters:[function(a){b=a.Component,c=a.EventEmitter},function(a){d=a.CORE_DIRECTIVES},function(a){e=a["default"]},function(a){f=a["default"]}],execute:function(){"use strict";g=function(){function a(){f(this,g),this.type="general",this.visible=!1,this.empty=!1,this.open=new c,this.close=new c}e(a,[{key:"toggle",value:function(){this.visible=!this.visible,this.empty||(this.visible?this.open.next():this.close.next())}}]);var g=a;return a=b({selector:"zippy",events:["open","close"],inputs:["title","visible","type","empty"],template:'\n <div class="zippy zippy-{{type}}" [ngClass]="{\'zippy-empty\': empty}">\n <div class="zippy-title" (click)="toggle()">\n <span class="zippy-indicator">{{ visible ? \'▾\' : \'▸\' }}</span>\n {{title}}\n </div>\n <div class="zippy-content" [ngClass]="{\'zippy-hidden\': !visible}">\n <ng-content></ng-content>\n </div>\n </div>\n ',styles:["\n .zippy-title{padding:10px;border-radius:2px;margin:2px 0;line-height:1.5em;background-color:#f2f2f2;cursor:pointer}.zippy-success>.zippy-title{color:#00aa13;background-color:rgba(0,170,19,0.08)}.zippy-error>.zippy-title{color:#e53935;background-color:rgba(229,57,53,0.06)}.zippy-redirect>.zippy-title{color:#263238;background-color:rgba(38,50,56,0.08)}.zippy-info>.zippy-title{color:#0033a0;background-color:rgba(0,51,160,0.08)}span.zippy-indicator{font-size:1.2em;margin-right:0.2em;position:relative;top:0}.zippy-content{padding:15px 0}.zippy-empty .zippy-title{cursor:default}.zippy-empty .zippy-indicator{display:none}.zippy-empty .zippy-content{display:none}.zippy-hidden{overflow:hidden;visibility:hidden;height:0;padding:0}\n "],directives:[d]})(a)||a}(),a("Zippy",g)}}}),a.register("90",["af","b0","b1","f1"],function(a){"use strict";return{setters:[function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)}],execute:function(){}}}),a.registerDynamic("f2",["f3","f4","f5","f6"],!0,function(a,b,c){var d=a("f3"),e=a("f4")("iterator"),f=a("f5");return c.exports=a("f6").isIterable=function(a){var b=Object(a);return void 0!==b[e]||"@@iterator"in b||f.hasOwnProperty(d(b))},c.exports}),a.registerDynamic("f7",["f8","f9","f2"],!0,function(a,b,c){return a("f8"),a("f9"),c.exports=a("f2"),c.exports}),a.registerDynamic("fa",["f7"],!0,function(a,b,c){return c.exports={"default":a("f7"),__esModule:!0},c.exports}),a.registerDynamic("a1",["aa","fa"],!0,function(a,b,c){"use strict";var d=a("aa")["default"],e=a("fa")["default"];return b["default"]=function(){function a(a,b){var c=[],e=!0,f=!1,g=void 0;try{for(var h,i=d(a);!(e=(h=i.next()).done)&&(c.push(h.value),!b||c.length!==b);e=!0);}catch(j){f=!0,g=j}finally{try{!e&&i["return"]&&i["return"]()}finally{if(f)throw g}}return c}return function(b,c){if(Array.isArray(b))return b;if(e(Object(b)))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b.__esModule=!0,c.exports}),a.registerDynamic("fb",[],!0,function(a,b,c){return c.exports=Object.is||function(a,b){return a===b?0!==a||1/a===1/b:a!=a&&b!=b},c.exports}),a.registerDynamic("fc",["fd","fe","f4"],!0,function(a,b,c){var d=a("fd"),e=a("fe"),f=a("f4")("species");return c.exports=function(a,b){var c,g=d(a).constructor;return void 0===g||void 0==(c=d(g)[f])?b:e(c)},c.exports}),a.registerDynamic("ff",[],!0,function(a,b,c){return c.exports=function(a,b,c){var d=void 0===c;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3])}return a.apply(c,b)},c.exports}),a.registerDynamic("100",["101"],!0,function(a,b,c){return c.exports=a("101").document&&document.documentElement,c.exports}),a.registerDynamic("102",["103","101"],!0,function(a,b,c){var d=a("103"),e=a("101").document,f=d(e)&&d(e.createElement);return c.exports=function(a){return f?e.createElement(a):{}},c.exports}),a.registerDynamic("104",["105","ff","100","102","101","106","22"],!0,function(a,b,c){return function(b){var d,e,f,g=a("105"),h=a("ff"),i=a("100"),j=a("102"),k=a("101"),b=k.process,l=k.setImmediate,m=k.clearImmediate,n=k.MessageChannel,o=0,p={},q="onreadystatechange",r=function(){var a=+this;if(p.hasOwnProperty(a)){var b=p[a];delete p[a],b()}},s=function(a){r.call(a.data)};l&&m||(l=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return p[++o]=function(){h("function"==typeof a?a:Function(a),b)},d(o),o},m=function(a){delete p[a]},"process"==a("106")(b)?d=function(a){b.nextTick(g(r,a,1))}:n?(e=new n,f=e.port2,e.port1.onmessage=s,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",s,!1)):d=q in j("script")?function(a){i.appendChild(j("script"))[q]=function(){i.removeChild(this),r.call(a)}}:function(a){setTimeout(g(r,a,1),0)}),c.exports={set:l,clear:m}}(a("22")),c.exports}),a.registerDynamic("107",["101","104","106","22"],!0,function(a,b,c){return function(b){var d,e,f,g=a("101"),h=a("104").set,i=g.MutationObserver||g.WebKitMutationObserver,b=g.process,j=g.Promise,k="process"==a("106")(b),l=function(){var a,c,f;for(k&&(a=b.domain)&&(b.domain=null,a.exit());d;)c=d.domain,f=d.fn,c&&c.enter(),f(),c&&c.exit(),d=d.next;e=void 0,a&&a.enter()};if(k)f=function(){b.nextTick(l)};else if(i){var m=1,n=document.createTextNode("");new i(l).observe(n,{characterData:!0}),f=function(){n.data=m=-m}}else f=j&&j.resolve?function(){j.resolve().then(l)}:function(){h.call(g,l)};c.exports=function(a){var c={fn:a,next:void 0,domain:k&&b.domain};e&&(e.next=c),d||(d=c,f()),e=c}}(a("22")),c.exports}),a.registerDynamic("108",["109","10a","101","105","f3","10b","103","fd","fe","10c","10d","10e","fb","f4","fc","107","10f","110","111","112","f6","113","22"],!0,function(a,b,c){return function(b){"use strict";var c,d=a("109"),e=a("10a"),f=a("101"),g=a("105"),h=a("f3"),i=a("10b"),j=a("103"),k=a("fd"),l=a("fe"),m=a("10c"),n=a("10d"),o=a("10e").set,p=a("fb"),q=a("f4")("species"),r=a("fc"),s=a("107"),t="Promise",b=f.process,u="process"==h(b),v=f[t],w=function(a){var b=new v(function(){});return a&&(b.constructor=Object),v.resolve(b)===b},x=function(){function b(a){var c=new v(a);return o(c,b.prototype),c}var c=!1;try{if(c=v&&v.resolve&&w(),o(b,v),b.prototype=d.create(v.prototype,{constructor:{value:b}}),b.resolve(5).then(function(){})instanceof b||(c=!1),c&&a("10f")){var e=!1;v.resolve(d.setDesc({},"then",{get:function(){e=!0}})),c=e}}catch(f){c=!1}return c}(),y=function(a,b){return e&&a===v&&b===c?!0:p(a,b)},z=function(a){var b=k(a)[q];return void 0!=b?b:a},A=function(a){var b;return j(a)&&"function"==typeof(b=a.then)?b:!1},B=function(a){var b,c;this.promise=new a(function(a,d){if(void 0!==b||void 0!==c)throw TypeError("Bad Promise constructor");b=a,c=d}),this.resolve=l(b),this.reject=l(c)},C=function(a){try{a()}catch(b){return{error:b}}},D=function(a,c){if(!a.n){a.n=!0;var d=a.c;s(function(){for(var e=a.v,g=1==a.s,h=0,i=function(b){var c,d,f=g?b.ok:b.fail,h=b.resolve,i=b.reject;try{f?(g||(a.h=!0),c=f===!0?e:f(e),c===b.promise?i(TypeError("Promise-chain cycle")):(d=A(c))?d.call(c,h,i):h(c)):i(e)}catch(j){i(j)}};d.length>h;)i(d[h++]);d.length=0,a.n=!1,c&&setTimeout(function(){var c,d,g=a.p;E(g)&&(u?b.emit("unhandledRejection",e,g):(c=f.onunhandledrejection)?c({promise:g,reason:e}):(d=f.console)&&d.error&&d.error("Unhandled promise rejection",e)),a.a=void 0},1)})}},E=function(a){var b,c=a._d,d=c.a||c.c,e=0;if(c.h)return!1;for(;d.length>e;)if(b=d[e++],b.fail||!E(b.promise))return!1;return!0},F=function(a){var b=this;b.d||(b.d=!0,b=b.r||b,b.v=a,b.s=2,b.a=b.c.slice(),D(b,!0))},G=function(a){var b,c=this;if(!c.d){c.d=!0,c=c.r||c;try{if(c.p===a)throw TypeError("Promise can't be resolved itself");(b=A(a))?s(function(){var d={r:c,d:!1};try{b.call(a,g(G,d,1),g(F,d,1))}catch(e){F.call(d,e)}}):(c.v=a,c.s=1,D(c,!1))}catch(d){F.call({r:c,d:!1},d)}}};x||(v=function(a){l(a);var b=this._d={p:m(this,v,t),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};try{a(g(G,b,1),g(F,b,1))}catch(c){F.call(b,c)}},a("110")(v.prototype,{then:function(a,b){var c=new B(r(this,v)),d=c.promise,e=this._d;return c.ok="function"==typeof a?a:!0,c.fail="function"==typeof b&&b,e.c.push(c),e.a&&e.a.push(c),e.s&&D(e,!1),d},"catch":function(a){return this.then(void 0,a)}})),i(i.G+i.W+i.F*!x,{Promise:v}),a("111")(v,t),a("112")(t),c=a("f6")[t],i(i.S+i.F*!x,t,{reject:function(a){var b=new B(this),c=b.reject;return c(a),b.promise}}),i(i.S+i.F*(!x||w(!0)),t,{resolve:function(a){if(a instanceof v&&y(a.constructor,this))return a;var b=new B(this),c=b.resolve;return c(a),b.promise}}),i(i.S+i.F*!(x&&a("113")(function(a){v.all(a)["catch"](function(){})})),t,{all:function(a){var b=z(this),c=new B(b),e=c.resolve,f=c.reject,g=[],h=C(function(){n(a,!1,g.push,g);var c=g.length,h=Array(c);c?d.each.call(g,function(a,d){var g=!1;b.resolve(a).then(function(a){g||(g=!0,h[d]=a,--c||e(h))},f)}):e(h)});return h&&f(h.error),c.promise},race:function(a){var b=z(this),c=new B(b),d=c.reject,e=C(function(){n(a,!1,function(a){b.resolve(a).then(c.resolve,d)})});return e&&d(e.error),c.promise}})}(a("22")),c.exports}),a.registerDynamic("114",["115","f9","f8","108","f6"],!0,function(a,b,c){return a("115"),a("f9"),a("f8"),a("108"),c.exports=a("f6").Promise,c.exports}),a.registerDynamic("116",["114"],!0,function(a,b,c){return c.exports={"default":a("114"),__esModule:!0},c.exports}),a.registerDynamic("117",["118","119"],!0,function(a,b,c){var d=a("118");return a("119")("keys",function(a){return function(b){return a(d(b))}}),c.exports}),a.registerDynamic("11a",["117","f6"],!0,function(a,b,c){return a("117"),c.exports=a("f6").Object.keys,c.exports}),a.registerDynamic("8f",["11a"],!0,function(a,b,c){return c.exports={"default":a("11a"),__esModule:!0},c.exports}),a.registerDynamic("11b",["fd","11c","f6"],!0,function(a,b,c){var d=a("fd"),e=a("11c");return c.exports=a("f6").getIterator=function(a){var b=e(a);if("function"!=typeof b)throw TypeError(a+" is not iterable!");return d(b.call(a))},c.exports}),a.registerDynamic("11d",["f8","f9","11b"],!0,function(a,b,c){return a("f8"),a("f9"),c.exports=a("11b"),c.exports}),a.registerDynamic("aa",["11d"],!0,function(a,b,c){return c.exports={"default":a("11d"),__esModule:!0},c.exports}),a.registerDynamic("11e",["11f","120"],!0,function(a,b,c){"use strict";var d=a("11f");return a("120")("Map",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{get:function(a){var b=d.getEntry(this,a);return b&&b.v},set:function(a,b){return d.def(this,0===a?0:a,b)}},d,!0),c.exports}),a.registerDynamic("121",["10b","122"],!0,function(a,b,c){var d=a("10b");return d(d.P,"Map",{toJSON:a("122")("Map")}),c.exports}),a.registerDynamic("123",["115","f9","f8","11e","121","f6"],!0,function(a,b,c){return a("115"),a("f9"),a("f8"),a("11e"),a("121"),c.exports=a("f6").Map,c.exports}),a.registerDynamic("124",["123"],!0,function(a,b,c){return c.exports={"default":a("123"),__esModule:!0},c.exports}),a.registerDynamic("125",[],!0,function(a,b,c){return"function"!=typeof Number.isFinite&&(Number.isFinite=function(a){return"number"!=typeof a?!1:a===a&&a!==1/0&&a!==-(1/0)}),c.exports}),a.registerDynamic("126",["127","128","129","12a","22"],!0,function(a,b,c){return function(c){"use strict";function d(a){return decodeURIComponent(a).replace(/~[0-1]/g,function(a){return"~1"===a?"/":"~"})}function e(a){var b=a.indexOf("#");return-1===b?a:a.slice(0,b)}function f(a){var b=a.indexOf("#"),c=-1===b?void 0:a.slice(b+1);return c}function g(a,b){if("object"==typeof a&&null!==a){if(!b)return a;if(a.id&&(a.id===b||"#"===a.id[0]&&a.id.substring(1)===b))return a;var c,d;if(Array.isArray(a)){for(c=a.length;c--;)if(d=g(a[c],b))return d}else{var e=Object.keys(a);for(c=e.length;c--;){var f=e[c];if(0!==f.indexOf("__$")&&(d=g(a[f],b)))return d}}}}var h=a("127"),i=a("128"),j=a("129"),k=a("12a");b.cacheSchemaByUri=function(a,b){var c=e(a);c&&(this.cache[c]=b)},b.removeFromCacheByUri=function(a){var b=e(a);b&&delete this.cache[b]},b.checkCacheForUri=function(a){var b=e(a);return b?null!=this.cache[b]:!1},b.getSchema=function(a,c){return"object"==typeof c&&(c=b.getSchemaByReference.call(this,a,c)),"string"==typeof c&&(c=b.getSchemaByUri.call(this,a,c)),c},b.getSchemaByReference=function(a,b){for(var c=this.referenceCache.length;c--;)if(this.referenceCache[c][0]===b)return this.referenceCache[c][1];var d=k.cloneDeep(b);return this.referenceCache.push([b,d]),d},b.getSchemaByUri=function(a,b,c){var k=e(b),l=f(b),m=k?this.cache[k]:c;if(m&&k){var n=m!==c;if(n){a.path.push(k);var o=new h(a);i.compileSchema.call(this,o,m)&&j.validateSchema.call(this,o,m);var p=o.isValid();if(p||a.addError("REMOTE_NOT_VALID",[b],o),a.path.pop(),!p)return}}if(m&&l)for(var q=l.split("/"),r=0,s=q.length;m&&s>r;r++){var t=d(q[r]);m=0===r?g(m,t):m[t]}return m},b.getRemotePath=e}(a("22")),c.exports}),a.registerDynamic("128",["127","126","12a"],!0,function(a,b,c){"use strict";function d(a,b){if(i.isAbsoluteUri(b))return b;var c,d=a.join(""),e=i.isAbsoluteUri(d),f=i.isRelativeUri(d),g=i.isRelativeUri(b);e&&g?(c=d.match(/\/[^\/]*$/),c&&(d=d.slice(0,c.index+1))):f&&g?d="":(c=d.match(/[^#\/]+$/),c&&(d=d.slice(0,c.index)));var h=d+b;return h=h.replace(/##/,"#")}function e(a,b,c,f){if(b=b||[],c=c||[],f=f||[],"object"!=typeof a||null===a)return b;"string"==typeof a.id&&c.push(a.id),"string"==typeof a.$ref&&"undefined"==typeof a.__$refResolved&&b.push({ref:d(c,a.$ref),key:"$ref",obj:a,path:f.slice(0)}),"string"==typeof a.$schema&&"undefined"==typeof a.__$schemaResolved&&b.push({ref:d(c,a.$schema),key:"$schema",obj:a,path:f.slice(0)});var g;if(Array.isArray(a))for(g=a.length;g--;)f.push(g.toString()),e(a[g],b,c,f),f.pop();else{var h=Object.keys(a);for(g=h.length;g--;)0!==h[g].indexOf("__$")&&(f.push(h[g]),e(a[h[g]],b,c,f),f.pop())}return"string"==typeof a.id&&c.pop(),b}function f(a,b){for(var c=a.length;c--;)if(a[c].id===b)return a[c];return null}var g=a("127"),h=a("126"),i=a("12a"),j=function(a,c){for(var d=c.length,e=0;d--;){var f=new g(a),h=b.compileSchema.call(this,f,c[d]);h&&e++,a.errors=a.errors.concat(f.errors)}return e},k=function(a,b){var c,d=0;do{for(var e=a.errors.length;e--;)"UNRESOLVABLE_REFERENCE"===a.errors[e].code&&a.errors.splice(e,1);for(c=d,d=j.call(this,a,b),e=b.length;e--;){var g=b[e];if(g.__$missingReferences){for(var h=g.__$missingReferences.length;h--;){var i=g.__$missingReferences[h],k=f(b,i.ref);k&&(i.obj["__"+i.key+"Resolved"]=k,g.__$missingReferences.splice(h,1))}0===g.__$missingReferences.length&&delete g.__$missingReferences}}}while(d!==b.length&&d!==c);return a.isValid()};return b.compileSchema=function(a,c){if(a.commonErrorMessage="SCHEMA_COMPILATION_FAILED","string"==typeof c){var d=h.getSchemaByUri.call(this,a,c);if(!d)return a.addError("SCHEMA_NOT_REACHABLE",[c]),!1;c=d}if(Array.isArray(c))return k.call(this,a,c);if(c.__$compiled&&c.id&&h.checkCacheForUri.call(this,c.id)===!1&&(c.__$compiled=void 0),c.__$compiled)return!0;c.id&&"string"==typeof c.id&&h.cacheSchemaByUri.call(this,c.id,c);var f=!1;a.rootSchema||(a.rootSchema=c,f=!0);var j=a.isValid();delete c.__$missingReferences;for(var l=e.call(this,c),m=l.length;m--;){var n=l[m],o=h.getSchemaByUri.call(this,a,n.ref,c);if(!o){var p=this.getSchemaReader();if(p){var q=p(n.ref);if(q){q.id=n.ref;var r=new g(a);b.compileSchema.call(this,r,q)?o=h.getSchemaByUri.call(this,a,n.ref,c):a.errors=a.errors.concat(r.errors)}}}if(!o){var s=a.hasError("REMOTE_NOT_VALID",[n.ref]),t=i.isAbsoluteUri(n.ref),u=!1,v=this.options.ignoreUnresolvableReferences===!0;t&&(u=h.checkCacheForUri.call(this,n.ref)),s||v&&t||u||(Array.prototype.push.apply(a.path,n.path),a.addError("UNRESOLVABLE_REFERENCE",[n.ref]),a.path=a.path.slice(0,-n.path.length),j&&(c.__$missingReferences=c.__$missingReferences||[],c.__$missingReferences.push(n)))}n.obj["__"+n.key+"Resolved"]=o}var w=a.isValid();return w?c.__$compiled=!0:c.id&&"string"==typeof c.id&&h.removeFromCacheByUri.call(this,c.id),f&&(a.rootSchema=void 0),w},c.exports}),a.registerDynamic("12b",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),parseInt(a,b||10)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("12d",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),b?"1"===a||"true"===a:"0"!==a&&"false"!==a&&""!==a}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("12e",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),a===b}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("12f",["12c","130"],!0,function(a,b,c){
|
||
"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),a.indexOf((0,i["default"])(b))>=0}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("130"),i=d(h);return c.exports=b["default"],c.exports}),a.registerDynamic("131",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b,c){return(0,g["default"])(a),"[object RegExp]"!==Object.prototype.toString.call(b)&&(b=new RegExp(b,c)),b.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("132",["12c","133","134","135"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if((0,g["default"])(a),!a||a.length>=2083||/\s/.test(a))return!1;if(0===a.indexOf("mailto:"))return!1;b=(0,m["default"])(b,n);var c=void 0,d=void 0,e=void 0,f=void 0,h=void 0,j=void 0,l=void 0;if(l=a.split("#"),a=l.shift(),l=a.split("?"),a=l.shift(),l=a.split("://"),l.length>1){if(c=l.shift(),b.require_valid_protocol&&-1===b.protocols.indexOf(c))return!1}else{if(b.require_protocol)return!1;b.allow_protocol_relative_urls&&"//"===a.substr(0,2)&&(l[0]=a.substr(2))}return a=l.join("://"),l=a.split("/"),a=l.shift(),l=a.split("@"),l.length>1&&(d=l.shift(),d.indexOf(":")>=0&&d.split(":").length>2)?!1:(f=l.join("@"),l=f.split(":"),e=l.shift(),l.length&&(j=l.join(":"),h=parseInt(j,10),!/^[0-9]+$/.test(j)||0>=h||h>65535)?!1:(0,k["default"])(e)||(0,i["default"])(e,b)||"localhost"===e?b.host_whitelist&&-1===b.host_whitelist.indexOf(e)?!1:!b.host_blacklist||-1===b.host_blacklist.indexOf(e):!1)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("133"),i=d(h),j=a("134"),k=d(j),l=a("135"),m=d(l),n={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1};return c.exports=b["default"],c.exports}),a.registerDynamic("136",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;return c.exports=b["default"],c.exports}),a.registerDynamic("134",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=arguments.length<=1||void 0===arguments[1]?"":arguments[1];if((0,g["default"])(a),b=String(b),!b)return e(a,4)||e(a,6);if("4"===b){if(!h.test(a))return!1;var c=a.split(".").sort(function(a,b){return a-b});return c[3]<=255}if("6"===b){var d=a.split(":"),f=!1,j=e(d[d.length-1],4),k=j?7:8;if(d.length>k)return!1;if("::"===a)return!0;"::"===a.substr(0,2)?(d.shift(),d.shift(),f=!0):"::"===a.substr(a.length-2)&&(d.pop(),d.pop(),f=!0);for(var l=0;l<d.length;++l)if(""===d[l]&&l>0&&l<d.length-1){if(f)return!1;f=!0}else if(j&&l===d.length-1);else if(!i.test(d[l]))return!1;return f?d.length>=1:d.length===k}return!1}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,i=/^[0-9A-F]{1,4}$/i;return c.exports=b["default"],c.exports}),a.registerDynamic("137",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),["true","false","1","0"].indexOf(a)>=0}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("138",["12c","139"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=arguments.length<=1||void 0===arguments[1]?"en-US":arguments[1];if((0,g["default"])(a),b in h.alpha)return h.alpha[b].test(a);throw new Error("Invalid locale '"+b+"'")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("139");return c.exports=b["default"],c.exports}),a.registerDynamic("139",[],!0,function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});for(var d,e=b.alpha={"en-US":/^[A-Z]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"nl-NL":/^[A-ZÉËÏÓÖÜ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁа-яё]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},f=b.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"nl-NL":/^[0-9A-ZÉËÏÓÖÜ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁа-яё]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},g=b.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],h=0;h<g.length;h++)d="en-"+g[h],e[d]=e["en-US"],f[d]=f["en-US"];for(var i,j=b.arabicLocales=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"],k=0;k<j.length;k++)i="ar-"+j[k],e[i]=e.ar,f[i]=f.ar;return c.exports}),a.registerDynamic("13a",["12c","139"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=arguments.length<=1||void 0===arguments[1]?"en-US":arguments[1];if((0,g["default"])(a),b in h.alphanumeric)return h.alphanumeric[b].test(a);throw new Error("Invalid locale '"+b+"'")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("139");return c.exports=b["default"],c.exports}),a.registerDynamic("13b",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^[-+]?[0-9]+$/;return c.exports=b["default"],c.exports}),a.registerDynamic("13c",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),a===a.toLowerCase()}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("13d",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),a===a.toUpperCase()}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("13e",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^[\x00-\x7F]+$/;return c.exports=b["default"],c.exports}),a.registerDynamic("13f",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b.fullWidth=void 0,b["default"]=e;var f=a("12c"),g=d(f),h=b.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;return c.exports}),a.registerDynamic("140",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b.halfWidth=void 0,b["default"]=e;var f=a("12c"),g=d(f),h=b.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;return c.exports}),a.registerDynamic("141",["12c","13f","140"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.fullWidth.test(a)&&i.halfWidth.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("13f"),i=a("140");return c.exports=b["default"],c.exports}),a.registerDynamic("142",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/[^\x00-\x7F]/;return c.exports=b["default"],c.exports}),a.registerDynamic("143",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;return c.exports=b["default"],c.exports}),a.registerDynamic("144",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),b=b||{},h.test(a)&&(!b.hasOwnProperty("min")||a>=b.min)&&(!b.hasOwnProperty("max")||a<=b.max)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^(?:[-+]?(?:0|[1-9][0-9]*))$/;return c.exports=b["default"],c.exports}),a.registerDynamic("145",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),b=b||{},""===a||"."===a?!1:h.test(a)&&(!b.hasOwnProperty("min")||a>=b.min)&&(!b.hasOwnProperty("max")||a<=b.max)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^(?:[-+]?(?:[0-9]+))?(?:\.[0-9]*)?(?:[eE][\+\-]?(?:[0-9]+))?$/;return c.exports=b["default"],c.exports}),a.registerDynamic("146",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),""!==a&&h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^[-+]?([0-9]+|\.[0-9]+|[0-9]+\.[0-9]+)$/;return c.exports=b["default"],c.exports}),a.registerDynamic("147",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),parseFloat(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("148",["12c","147"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),(0,i["default"])(a)%parseInt(b,10)===0}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("147"),i=d(h);return c.exports=b["default"],c.exports}),a.registerDynamic("149",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;return c.exports=b["default"],c.exports}),a.registerDynamic("14a",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){(0,h["default"])(a);try{var b=JSON.parse(a);return!!b&&"object"===("undefined"==typeof b?"undefined":f(b))}catch(c){}return!1}Object.defineProperty(b,"__esModule",{value:!0});var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a};b["default"]=e;var g=a("12c"),h=d(g);return c.exports=b["default"],c.exports}),a.registerDynamic("14b",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),0===a.length}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("14c",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){(0,h["default"])(a);var c=void 0,d=void 0;"object"===("undefined"==typeof b?"undefined":f(b))?(c=b.min||0,d=b.max):(c=arguments[1],d=arguments[2]);var e=a.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],g=a.length-e.length;return g>=c&&("undefined"==typeof d||d>=g)}Object.defineProperty(b,"__esModule",{value:!0});var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a};b["default"]=e;var g=a("12c"),h=d(g);return c.exports=b["default"],c.exports}),a.registerDynamic("14d",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=arguments.length<=1||void 0===arguments[1]?"all":arguments[1];(0,g["default"])(a);var c=h[b];return c&&c.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};return c.exports=b["default"],c.exports}),a.registerDynamic("14e",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^[0-9A-F]+$/i;return c.exports=b["default"],c.exports}),a.registerDynamic("14f",["12c","14e"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),(0,i["default"])(a)&&24===a.length}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("14e"),i=d(h);return c.exports=b["default"],c.exports}),a.registerDynamic("150",["12c","151"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=a.match(i.iso8601),c=void 0,d=void 0,e=void 0,f=void 0;if(b){if(c=b[21],!c)return b[12]?null:0;if("z"===c||"Z"===c)return 0;d=b[22],-1!==c.indexOf(":")?(e=parseInt(b[23],10),f=parseInt(b[24],10)):(e=0,f=parseInt(b[23],10))}else{if(a=a.toLowerCase(),c=a.match(/(?:\s|gmt\s*)(-|\+)(\d{1,4})(\s|$)/),!c)return-1!==a.indexOf("gmt")?0:null;d=c[1];var g=c[2];3===g.length&&(g="0"+g),g.length<=2?(e=0,f=parseInt(g,10)):(e=parseInt(g.slice(0,2),10),f=parseInt(g.slice(2,4),10))}return(60*e+f)*("-"===d?1:-1)}function f(a){(0,h["default"])(a);var b=new Date(Date.parse(a));if(isNaN(b))return!1;var c=e(a);if(null!==c){var d=b.getTimezoneOffset()-c;b=new Date(b.getTime()+6e4*d)}var f=String(b.getDate()),g=void 0,i=void 0,j=void 0;return(i=a.match(/(^|[^:\d])[23]\d([^:\d]|$)/g))?(g=i.map(function(a){return a.match(/\d+/g)[0]}).join("/"),j=String(b.getFullYear()).slice(-2),g===f||g===j?!0:g===""+f/j||g===""+j/f):!0}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=f;var g=a("12c"),h=d(g),i=a("151");return c.exports=b["default"],c.exports}),a.registerDynamic("152",["12c","153"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=arguments.length<=1||void 0===arguments[1]?String(new Date):arguments[1];(0,g["default"])(a);var c=(0,i["default"])(b),d=(0,i["default"])(a);return!!(d&&c&&d>c)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("153"),i=d(h);return c.exports=b["default"],c.exports}),a.registerDynamic("153",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),a=Date.parse(a),isNaN(a)?null:new Date(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("154",["12c","153"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=arguments.length<=1||void 0===arguments[1]?String(new Date):arguments[1];(0,g["default"])(a);var c=(0,i["default"])(b),d=(0,i["default"])(a);return!!(d&&c&&c>d)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("153"),i=d(h);return c.exports=b["default"],c.exports}),a.registerDynamic("155",["12c","130"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){(0,h["default"])(a);var c=void 0;if("[object Array]"===Object.prototype.toString.call(b)){var d=[];for(c in b)({}).hasOwnProperty.call(b,c)&&(d[c]=(0,j["default"])(b[c]));return d.indexOf(a)>=0}return"object"===("undefined"==typeof b?"undefined":f(b))?b.hasOwnProperty(a):b&&"function"==typeof b.indexOf?b.indexOf(a)>=0:!1}Object.defineProperty(b,"__esModule",{value:!0});var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a};b["default"]=e;var g=a("12c"),h=d(g),i=a("130"),j=d(i);return c.exports=b["default"],c.exports}),a.registerDynamic("156",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){(0,g["default"])(a);var b=a.replace(/[^0-9]+/g,"");if(!h.test(b))return!1;for(var c=0,d=void 0,e=void 0,f=void 0,i=b.length-1;i>=0;i--)d=b.substring(i,i+1),e=parseInt(d,10),f?(e*=2,c+=e>=10?e%10+1:e):c+=e,f=!f;return!!(c%10===0?b:!1)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/;return c.exports=b["default"],c.exports}),a.registerDynamic("157",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if((0,g["default"])(a),!h.test(a))return!1;for(var b=a.replace(/[A-Z]/g,function(a){return parseInt(a,36)}),c=0,d=void 0,e=void 0,f=!0,i=b.length-2;i>=0;i--)d=b.substring(i,i+1),e=parseInt(d,10),f?(e*=2,c+=e>=10?e+1:e):c+=e,f=!f;return parseInt(a.substr(a.length-1),10)===(1e4-c)%10}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;return c.exports=b["default"],c.exports}),a.registerDynamic("158",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=arguments.length<=1||void 0===arguments[1]?"":arguments[1];if((0,g["default"])(a),b=String(b),!b)return e(a,10)||e(a,13);var c=a.replace(/[\s-]+/g,""),d=0,f=void 0;if("10"===b){if(!h.test(c))return!1;for(f=0;9>f;f++)d+=(f+1)*c.charAt(f);if(d+="X"===c.charAt(9)?100:10*c.charAt(9),d%11===0)return!!c}else if("13"===b){if(!i.test(c))return!1;for(f=0;12>f;f++)d+=j[f%2]*c.charAt(f);if(c.charAt(12)-(10-d%10)%10===0)return!!c}return!1}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^(?:[0-9]{9}X|[0-9]{10})$/,i=/^(?:[0-9]{13})$/,j=[1,3];return c.exports=b["default"],c.exports}),a.registerDynamic("159",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),b in h?h[b].test(a):!1}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h={"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"en-US":/^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"de-DE":/^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,"el-GR":/^(\+?30)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-HK":/^(\+?852\-?)?[569]\d{3}\-?\d{4}$/,"en-IN":/^(\+?91|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)2\d{7,9}$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"es-ES":/^(\+?34)?(6\d{1}|7[1234])\d{7}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5)?|50)\s?(\d\s?){4,8}\d$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"ms-MY":/^(\+?6?01){1}(([145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pt-BR":/^(\+?55|0)\-?[1-9]{2}\-?[2-9]{1}\d{3,4}\-?\d{4}$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"vi-VN":/^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,"zh-CN":/^(\+?0?86\-?)?((13\d|14[57]|15[^4,\D]|17[678]|18\d)\d{8}|170[059]\d{7})$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/};return c.exports=b["default"],c.exports}),a.registerDynamic("15a",["135","12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b="(\\"+a.symbol.replace(/\./g,"\\.")+")"+(a.require_symbol?"":"?"),c="-?",d="[1-9]\\d*",e="[1-9]\\d{0,2}(\\"+a.thousands_separator+"\\d{3})*",f=["0",d,e],g="("+f.join("|")+")?",h="(\\"+a.decimal_separator+"\\d{2})?",i=g+h;return a.allow_negatives&&!a.parens_for_negatives&&(a.negative_sign_after_digits?i+=c:a.negative_sign_before_digits&&(i=c+i)),a.allow_negative_sign_placeholder?i="( (?!\\-))?"+i:a.allow_space_after_symbol?i=" ?"+i:a.allow_space_after_digits&&(i+="( (?!$))?"),a.symbol_after_digits?i+=b:i=b+i,a.allow_negatives&&(a.parens_for_negatives?i="(\\("+i+"\\)|"+i+")":a.negative_sign_before_digits||a.negative_sign_after_digits||(i=c+i)),new RegExp("^(?!-? )(?=.*\\d)"+i+"$")}function f(a,b){return(0,j["default"])(a),b=(0,h["default"])(b,k),e(b).test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=f;var g=a("135"),h=d(g),i=a("12c"),j=d(i),k={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_space_after_digits:!1};return c.exports=b["default"],c.exports}),a.registerDynamic("151",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(b,"__esModule",{value:!0}),b.iso8601=void 0,b["default"]=function(a){return(0,f["default"])(a),g.test(a)};var e=a("12c"),f=d(e),g=b.iso8601=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;return c.exports}),a.registerDynamic("15b",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){(0,g["default"])(a);var b=a.length;if(!b||b%4!==0||h.test(a))return!1;var c=a.indexOf("=");return-1===c||c===b-1||c===b-2&&"="===a[b-1]}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/[^A-Z0-9+\/=]/i;return c.exports=b["default"],c.exports}),a.registerDynamic("15c",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^\s*data:([a-z]+\/[a-z0-9\-\+]+(;[a-z\-]+\=[a-z0-9\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i;return c.exports=b["default"],c.exports}),a.registerDynamic("15d",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){(0,g["default"])(a);var c=b?new RegExp("^["+b+"]+","g"):/^\s+/g;return a.replace(c,"")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("15e",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){(0,g["default"])(a);var c=b?new RegExp("["+b+"]+$","g"):/\s+$/g;return a.replace(c,"")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("15f",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){(0,g["default"])(a);var c=b?new RegExp("^["+b+"]+|["+b+"]+$","g"):/^\s+|\s+$/g;return a.replace(c,"")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("160",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),a.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\`/g,"`")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("161",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),a.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/`/g,"`")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("162",["12c","163"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){(0,g["default"])(a);var c=b?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,i["default"])(a,c)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("163"),i=d(h);return c.exports=b["default"],c.exports}),a.registerDynamic("164",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),a.replace(new RegExp("[^"+b+"]+","g"),"")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("163",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),a.replace(new RegExp("["+b+"]+","g"),"")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("165",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){(0,g["default"])(a);for(var c=a.length-1;c>=0;c--)if(-1===b.indexOf(a[c]))return!1;return!0}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("166",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){(0,h["default"])(a);var c=void 0,d=void 0;"object"===("undefined"==typeof b?"undefined":f(b))?(c=b.min||0,d=b.max):(c=arguments[1],d=arguments[2]);var e=encodeURI(a).split(/%..|./).length-1;return e>=c&&("undefined"==typeof d||d>=e)}Object.defineProperty(b,"__esModule",{value:!0});var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a};b["default"]=e;var g=a("12c"),h=d(g);return c.exports=b["default"],c.exports}),a.registerDynamic("12c",[],!0,function(a,b,c){"use strict";function d(a){if("string"!=typeof a)throw new TypeError("This library (validator.js) validates strings only")}return Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=d,c.exports=b["default"],c.exports}),a.registerDynamic("133",["12c","135"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){(0,g["default"])(a),b=(0,i["default"])(b,j),b.allow_trailing_dot&&"."===a[a.length-1]&&(a=a.substring(0,a.length-1));var c=a.split(".");if(b.require_tld){var d=c.pop();if(!c.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(d))return!1}for(var e,f=0;f<c.length;f++){if(e=c[f],b.allow_underscores&&(e=e.replace(/_/g,"")),!/^[a-z\u00a1-\uffff0-9-]+$/i.test(e))return!1;if(/[\uff01-\uff5e]/.test(e))return!1;if("-"===e[0]||"-"===e[e.length-1])return!1}return!0}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("135"),i=d(h),j={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1};return c.exports=b["default"],c.exports}),a.registerDynamic("167",["12c","135","166","133"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if((0,g["default"])(a),b=(0,i["default"])(b,n),b.allow_display_name){var c=a.match(o);c&&(a=c[1])}var d=a.split("@"),e=d.pop(),f=d.join("@"),h=e.toLowerCase();if("gmail.com"!==h&&"googlemail.com"!==h||(f=f.replace(/\./g,"").toLowerCase()),!(0,k["default"])(f,{max:64})||!(0,k["default"])(e,{max:256}))return!1;if(!(0,m["default"])(e,{require_tld:b.require_tld}))return!1;if('"'===f[0])return f=f.slice(1,f.length-1),b.allow_utf8_local_part?s.test(f):q.test(f);for(var j=b.allow_utf8_local_part?r:p,l=f.split("."),t=0;t<l.length;t++)if(!j.test(l[t]))return!1;return!0}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("135"),i=d(h),j=a("166"),k=d(j),l=a("133"),m=d(l),n={allow_display_name:!1,allow_utf8_local_part:!0,require_tld:!0},o=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,q=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,r=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,s=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;return c.exports=b["default"],c.exports}),a.registerDynamic("135",[],!0,function(a,b,c){"use strict";function d(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=arguments[1];for(var c in b)"undefined"==typeof a[c]&&(a[c]=b[c]);return a}return Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=d,c.exports=b["default"],c.exports}),a.registerDynamic("168",["167","135"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(b=(0,i["default"])(b,j),!(0,g["default"])(a))return!1;var c=a.split("@",2);if(c[1]=c[1].toLowerCase(),"gmail.com"===c[1]||"googlemail.com"===c[1]){if(b.remove_extension&&(c[0]=c[0].split("+")[0]),b.remove_dots&&(c[0]=c[0].replace(/\./g,"")),!c[0].length)return!1;c[0]=c[0].toLowerCase(),c[1]="gmail.com"}else b.lowercase&&(c[0]=c[0].toLowerCase());return c.join("@")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("167"),g=d(f),h=a("135"),i=d(h),j={lowercase:!0,remove_dots:!0,remove_extension:!0};return c.exports=b["default"],c.exports}),a.registerDynamic("130",[],!0,function(a,b,c){"use strict";function d(a){return"object"===("undefined"==typeof a?"undefined":e(a))&&null!==a?a="function"==typeof a.toString?a.toString():"[object Object]":(null===a||"undefined"==typeof a||isNaN(a)&&!a.length)&&(a=""),String(a)}Object.defineProperty(b,"__esModule",{value:!0});var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a};return b["default"]=d,c.exports=b["default"],c.exports}),a.registerDynamic("169",["153","147","12b","12d","12e","12f","131","167","132","136","134","133","137","138","13a","13b","13c","13d","13e","13f","140","141","142","143","144","145","146","14e","148","149","14a","14b","14c","166","14d","14f","150","152","154","155","156","157","158","159","15a","151","15b","15c","15d","15e","15f","160","161","162","164","163","165","168","130"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(b,"__esModule",{
|
||
value:!0});var e=a("153"),f=d(e),g=a("147"),h=d(g),i=a("12b"),j=d(i),k=a("12d"),l=d(k),m=a("12e"),n=d(m),o=a("12f"),p=d(o),q=a("131"),r=d(q),s=a("167"),t=d(s),u=a("132"),v=d(u),w=a("136"),x=d(w),y=a("134"),z=d(y),A=a("133"),B=d(A),C=a("137"),D=d(C),E=a("138"),F=d(E),G=a("13a"),H=d(G),I=a("13b"),J=d(I),K=a("13c"),L=d(K),M=a("13d"),N=d(M),O=a("13e"),P=d(O),Q=a("13f"),R=d(Q),S=a("140"),T=d(S),U=a("141"),V=d(U),W=a("142"),X=d(W),Y=a("143"),Z=d(Y),$=a("144"),_=d($),aa=a("145"),ba=d(aa),ca=a("146"),da=d(ca),ea=a("14e"),fa=d(ea),ga=a("148"),ha=d(ga),ia=a("149"),ja=d(ia),ka=a("14a"),la=d(ka),ma=a("14b"),na=d(ma),oa=a("14c"),pa=d(oa),qa=a("166"),ra=d(qa),sa=a("14d"),ta=d(sa),ua=a("14f"),va=d(ua),wa=a("150"),xa=d(wa),ya=a("152"),za=d(ya),Aa=a("154"),Ba=d(Aa),Ca=a("155"),Da=d(Ca),Ea=a("156"),Fa=d(Ea),Ga=a("157"),Ha=d(Ga),Ia=a("158"),Ja=d(Ia),Ka=a("159"),La=d(Ka),Ma=a("15a"),Na=d(Ma),Oa=a("151"),Pa=d(Oa),Qa=a("15b"),Ra=d(Qa),Sa=a("15c"),Ta=d(Sa),Ua=a("15d"),Va=d(Ua),Wa=a("15e"),Xa=d(Wa),Ya=a("15f"),Za=d(Ya),$a=a("160"),_a=d($a),ab=a("161"),bb=d(ab),cb=a("162"),db=d(cb),eb=a("164"),fb=d(eb),gb=a("163"),hb=d(gb),ib=a("165"),jb=d(ib),kb=a("168"),lb=d(kb),mb=a("130"),nb=d(mb),ob="5.2.0",pb={version:ob,toDate:f["default"],toFloat:h["default"],toInt:j["default"],toBoolean:l["default"],equals:n["default"],contains:p["default"],matches:r["default"],isEmail:t["default"],isURL:v["default"],isMACAddress:x["default"],isIP:z["default"],isFQDN:B["default"],isBoolean:D["default"],isAlpha:F["default"],isAlphanumeric:H["default"],isNumeric:J["default"],isLowercase:L["default"],isUppercase:N["default"],isAscii:P["default"],isFullWidth:R["default"],isHalfWidth:T["default"],isVariableWidth:V["default"],isMultibyte:X["default"],isSurrogatePair:Z["default"],isInt:_["default"],isFloat:ba["default"],isDecimal:da["default"],isHexadecimal:fa["default"],isDivisibleBy:ha["default"],isHexColor:ja["default"],isJSON:la["default"],isNull:na["default"],isLength:pa["default"],isByteLength:ra["default"],isUUID:ta["default"],isMongoId:va["default"],isDate:xa["default"],isAfter:za["default"],isBefore:Ba["default"],isIn:Da["default"],isCreditCard:Fa["default"],isISIN:Ha["default"],isISBN:Ja["default"],isMobilePhone:La["default"],isCurrency:Na["default"],isISO8601:Pa["default"],isBase64:Ra["default"],isDataURI:Ta["default"],ltrim:Va["default"],rtrim:Xa["default"],trim:Za["default"],escape:_a["default"],unescape:bb["default"],stripLow:db["default"],whitelist:fb["default"],blacklist:hb["default"],isWhitelisted:jb["default"],normalizeEmail:lb["default"],toString:nb["default"]};return b["default"]=pb,c.exports=b["default"],c.exports}),a.registerDynamic("16a",["169"],!0,function(a,b,c){return c.exports=a("169"),c.exports}),a.registerDynamic("16b",["16a"],!0,function(a,b,c){var d=a("16a"),e={date:function(a){if("string"!=typeof a)return!0;var b=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(a);return null===b?!1:!(b[2]<"01"||b[2]>"12"||b[3]<"01"||b[3]>"31")},"date-time":function(a){if("string"!=typeof a)return!0;var b=a.toLowerCase().split("t");if(!e.date(b[0]))return!1;var c=/^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$/.exec(b[1]);return null===c?!1:!(c[1]>"23"||c[2]>"59"||c[3]>"59")},email:function(a){return"string"!=typeof a?!0:d.isEmail(a,{require_tld:!0})},hostname:function(a){if("string"!=typeof a)return!0;var b=/^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/.test(a);if(b){if(a.length>255)return!1;for(var c=a.split("."),d=0;d<c.length;d++)if(c[d].length>63)return!1}return b},"host-name":function(a){return e.hostname.call(this,a)},ipv4:function(a){return"string"!=typeof a?!0:d.isIP(a,4)},ipv6:function(a){return"string"!=typeof a?!0:d.isIP(a,6)},regex:function(a){try{return RegExp(a),!0}catch(b){return!1}},uri:function(a){return this.options.strictUris?e["strict-uri"].apply(this,arguments):"string"!=typeof a||RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?").test(a)},"strict-uri":function(a){return"string"!=typeof a||d.isURL(a)}};return c.exports=e,c.exports}),a.registerDynamic("16c",["16b","127","12a"],!0,function(a,b,c){"use strict";var d=a("16b"),e=a("127"),f=a("12a"),g={multipleOf:function(a,b,c){"number"==typeof c&&"integer"!==f.whatIs(c/b.multipleOf)&&a.addError("MULTIPLE_OF",[c,b.multipleOf],null,b.description)},maximum:function(a,b,c){"number"==typeof c&&(b.exclusiveMaximum!==!0?c>b.maximum&&a.addError("MAXIMUM",[c,b.maximum],null,b.description):c>=b.maximum&&a.addError("MAXIMUM_EXCLUSIVE",[c,b.maximum],null,b.description))},exclusiveMaximum:function(){},minimum:function(a,b,c){"number"==typeof c&&(b.exclusiveMinimum!==!0?c<b.minimum&&a.addError("MINIMUM",[c,b.minimum],null,b.description):c<=b.minimum&&a.addError("MINIMUM_EXCLUSIVE",[c,b.minimum],null,b.description))},exclusiveMinimum:function(){},maxLength:function(a,b,c){"string"==typeof c&&f.ucs2decode(c).length>b.maxLength&&a.addError("MAX_LENGTH",[c.length,b.maxLength],null,b.description)},minLength:function(a,b,c){"string"==typeof c&&f.ucs2decode(c).length<b.minLength&&a.addError("MIN_LENGTH",[c.length,b.minLength],null,b.description)},pattern:function(a,b,c){"string"==typeof c&&RegExp(b.pattern).test(c)===!1&&a.addError("PATTERN",[b.pattern,c],null,b.description)},additionalItems:function(a,b,c){Array.isArray(c)&&b.additionalItems===!1&&Array.isArray(b.items)&&c.length>b.items.length&&a.addError("ARRAY_ADDITIONAL_ITEMS",null,null,b.description)},items:function(){},maxItems:function(a,b,c){Array.isArray(c)&&c.length>b.maxItems&&a.addError("ARRAY_LENGTH_LONG",[c.length,b.maxItems],null,b.description)},minItems:function(a,b,c){Array.isArray(c)&&c.length<b.minItems&&a.addError("ARRAY_LENGTH_SHORT",[c.length,b.minItems],null,b.description)},uniqueItems:function(a,b,c){if(Array.isArray(c)&&b.uniqueItems===!0){var d=[];f.isUniqueArray(c,d)===!1&&a.addError("ARRAY_UNIQUE",d,null,b.description)}},maxProperties:function(a,b,c){if("object"===f.whatIs(c)){var d=Object.keys(c).length;d>b.maxProperties&&a.addError("OBJECT_PROPERTIES_MAXIMUM",[d,b.maxProperties],null,b.description)}},minProperties:function(a,b,c){if("object"===f.whatIs(c)){var d=Object.keys(c).length;d<b.minProperties&&a.addError("OBJECT_PROPERTIES_MINIMUM",[d,b.minProperties],null,b.description)}},required:function(a,b,c){if("object"===f.whatIs(c))for(var d=b.required.length;d--;){var e=b.required[d];void 0===c[e]&&a.addError("OBJECT_MISSING_REQUIRED_PROPERTY",[e],null,b.description)}},additionalProperties:function(a,b,c){return void 0===b.properties&&void 0===b.patternProperties?g.properties.call(this,a,b,c):void 0},patternProperties:function(a,b,c){return void 0===b.properties?g.properties.call(this,a,b,c):void 0},properties:function(a,b,c){if("object"===f.whatIs(c)){var d=void 0!==b.properties?b.properties:{},e=void 0!==b.patternProperties?b.patternProperties:{};if(b.additionalProperties===!1){var g=Object.keys(c),h=Object.keys(d),i=Object.keys(e);g=f.difference(g,h);for(var j=i.length;j--;)for(var k=RegExp(i[j]),l=g.length;l--;)k.test(g[l])===!0&&g.splice(l,1);if(g.length>0){var m=this.options.assumeAdditional.length;if(m)for(;m--;){var n=g.indexOf(this.options.assumeAdditional[m]);-1!==n&&g.splice(n,1)}g.length>0&&a.addError("OBJECT_ADDITIONAL_PROPERTIES",[g],null,b.description)}}}},dependencies:function(a,c,d){if("object"===f.whatIs(d))for(var e=Object.keys(c.dependencies),g=e.length;g--;){var h=e[g];if(d[h]){var i=c.dependencies[h];if("object"===f.whatIs(i))b.validate.call(this,a,i,d);else for(var j=i.length;j--;){var k=i[j];void 0===d[k]&&a.addError("OBJECT_DEPENDENCY_KEY",[k,h],null,c.description)}}}},"enum":function(a,b,c){for(var d=!1,e=b["enum"].length;e--;)if(f.areEqual(c,b["enum"][e])){d=!0;break}d===!1&&a.addError("ENUM_MISMATCH",[c],null,b.description)},allOf:function(a,c,d){for(var e=c.allOf.length;e--;){var f=b.validate.call(this,a,c.allOf[e],d);if(this.options.breakOnFirstError&&f===!1)break}},anyOf:function(a,c,d){for(var f=[],g=!1,h=c.anyOf.length;h--&&g===!1;){var i=new e(a);f.push(i),g=b.validate.call(this,i,c.anyOf[h],d)}g===!1&&a.addError("ANY_OF_MISSING",void 0,f,c.description)},oneOf:function(a,c,d){for(var f=0,g=[],h=c.oneOf.length;h--;){var i=new e(a,{maxErrors:1});g.push(i),b.validate.call(this,i,c.oneOf[h],d)===!0&&f++}0===f?a.addError("ONE_OF_MISSING",void 0,g,c.description):f>1&&a.addError("ONE_OF_MULTIPLE",null,null,c.description)},not:function(a,c,d){var f=new e(a);b.validate.call(this,f,c.not,d)===!0&&a.addError("NOT_PASSED",null,null,c.description)},definitions:function(){},format:function(a,b,c){var e=d[b.format];"function"==typeof e?2===e.length?a.addAsyncTask(e,[c],function(d){d!==!0&&a.addError("INVALID_FORMAT",[b.format,c],null,b.description)}):e.call(this,c)!==!0&&a.addError("INVALID_FORMAT",[b.format,c],null,b.description):this.options.ignoreUnknownFormats!==!0&&a.addError("UNKNOWN_FORMAT",[b.format],null,b.description)}},h=function(a,c,d){var e=d.length;if(Array.isArray(c.items))for(;e--;)e<c.items.length?(a.path.push(e.toString()),b.validate.call(this,a,c.items[e],d[e]),a.path.pop()):"object"==typeof c.additionalItems&&(a.path.push(e.toString()),b.validate.call(this,a,c.additionalItems,d[e]),a.path.pop());else if("object"==typeof c.items)for(;e--;)a.path.push(e.toString()),b.validate.call(this,a,c.items,d[e]),a.path.pop()},i=function(a,c,d){var e=c.additionalProperties;e!==!0&&void 0!==e||(e={});for(var f=c.properties?Object.keys(c.properties):[],g=c.patternProperties?Object.keys(c.patternProperties):[],h=Object.keys(d),i=h.length;i--;){var j=h[i],k=d[j],l=[];-1!==f.indexOf(j)&&l.push(c.properties[j]);for(var m=g.length;m--;){var n=g[m];RegExp(n).test(j)===!0&&l.push(c.patternProperties[n])}for(0===l.length&&e!==!1&&l.push(e),m=l.length;m--;)a.path.push(j),b.validate.call(this,a,l[m],k),a.path.pop()}};return b.validate=function(a,b,c){a.commonErrorMessage="JSON_OBJECT_VALIDATION_FAILED";var d=f.whatIs(b);if("object"!==d)return a.addError("SCHEMA_NOT_AN_OBJECT",[d],null,b.description),!1;var e=Object.keys(b);if(0===e.length)return!0;var j=!1;if(a.rootSchema||(a.rootSchema=b,j=!0),void 0!==b.$ref){for(var k=99;b.$ref&&k>0;){if(!b.__$refResolved){a.addError("REF_UNRESOLVED",[b.$ref],null,b.description);break}if(b.__$refResolved===b)break;b=b.__$refResolved,e=Object.keys(b),k--}if(0===k)throw new Error("Circular dependency by $ref references!")}var l=f.whatIs(c);if(b.type)if("string"==typeof b.type){if(l!==b.type&&("integer"!==l||"number"!==b.type)&&(a.addError("INVALID_TYPE",[b.type,l],null,b.description),this.options.breakOnFirstError))return!1}else if(-1===b.type.indexOf(l)&&("integer"!==l||-1===b.type.indexOf("number"))&&(a.addError("INVALID_TYPE",[b.type,l],null,b.description),this.options.breakOnFirstError))return!1;for(var m=e.length;m--&&!(g[e[m]]&&(g[e[m]].call(this,a,b,c),a.errors.length&&this.options.breakOnFirstError)););return 0!==a.errors.length&&this.options.breakOnFirstError!==!1||("array"===l?h.call(this,a,b,c):"object"===l&&i.call(this,a,b,c)),"function"==typeof this.options.customValidator&&this.options.customValidator(a,b,c),j&&(a.rootSchema=void 0),0===a.errors.length},c.exports}),a.registerDynamic("16d",["22"],!0,function(a,b,c){var d=this;return function(a){function e(a){return a&&a.Object===Object?a:null}function f(a){var b=!1;if(null!=a&&"function"!=typeof a.toString)try{b=!!(a+"")}catch(c){}return b}function g(){}function h(a,b){return j(a,b)&&delete a[b]}function i(a,b){if(ga){var c=a[b];return c===I?void 0:c}return aa.call(a,b)?a[b]:void 0}function j(a,b){return ga?void 0!==a[b]:aa.call(a,b)}function k(a,b,c){a[b]=ga&&void 0===c?I:c}function l(a){var b=-1,c=a?a.length:0;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}function m(){this.__data__={hash:new g,map:fa?new fa:[],string:new g}}function n(a){var b=this.__data__;return x(a)?h("string"==typeof a?b.string:b.hash,a):fa?b.map["delete"](a):r(b.map,a)}function o(a){var b=this.__data__;return x(a)?i("string"==typeof a?b.string:b.hash,a):fa?b.map.get(a):s(b.map,a)}function p(a){var b=this.__data__;return x(a)?j("string"==typeof a?b.string:b.hash,a):fa?b.map.has(a):t(b.map,a)}function q(a,b){var c=this.__data__;return x(a)?k("string"==typeof a?c.string:c.hash,a,b):fa?c.map.set(a,b):v(c.map,a,b),this}function r(a,b){var c=u(a,b);if(0>c)return!1;var d=a.length-1;return c==d?a.pop():ea.call(a,c,1),!0}function s(a,b){var c=u(a,b);return 0>c?void 0:a[c][1]}function t(a,b){return u(a,b)>-1}function u(a,b){for(var c=a.length;c--;)if(A(a[c][0],b))return c;return-1}function v(a,b,c){var d=u(a,b);0>d?a.push([b,c]):a[d][1]=c}function w(a,b){var c=a[b];return E(c)?c:void 0}function x(a){var b=typeof a;return"number"==b||"boolean"==b||"string"==b&&"__proto__"!=a||null==a}function y(a){if(null!=a){try{return _.call(a)}catch(b){}try{return a+""}catch(b){}}return""}function z(a,b){if("function"!=typeof a||b&&"function"!=typeof b)throw new TypeError(H);var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g),g};return c.cache=new(z.Cache||l),c}function A(a,b){return a===b||a!==a&&b!==b}function B(a){var b=C(a)?ba.call(a):"";return b==K||b==L}function C(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function D(a){return!!a&&"object"==typeof a}function E(a){if(!C(a))return!1;var b=B(a)||f(a)?ca:Q;return b.test(y(a))}function F(a){return"symbol"==typeof a||D(a)&&ba.call(a)==M}function G(a){if("string"==typeof a)return a;if(null==a)return"";if(F(a))return ia?ia.call(a):"";var b=a+"";return"0"==b&&1/a==-J?"-0":b}var H="Expected a function",I="__lodash_hash_undefined__",J=1/0,K="[object Function]",L="[object GeneratorFunction]",M="[object Symbol]",N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,O=/[\\^$.*+?()[\]{}|]/g,P=/\\(\\)?/g,Q=/^\[object .+?Constructor\]$/,R={"function":!0,object:!0},S=R[typeof b]&&b&&!b.nodeType?b:void 0,T=R[typeof c]&&c&&!c.nodeType?c:void 0,U=e(S&&T&&"object"==typeof d&&d),V=e(R[typeof self]&&self),W=e(R[typeof window]&&window),X=e(R[typeof this]&&this),Y=U||W!==(X&&X.window)&&W||V||X||Function("return this")(),Z=Array.prototype,$=Object.prototype,_=Function.prototype.toString,aa=$.hasOwnProperty,ba=$.toString,ca=RegExp("^"+_.call(aa).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),da=Y.Symbol,ea=Z.splice,fa=w(Y,"Map"),ga=w(Object,"create"),ha=da?da.prototype:void 0,ia=ha?ha.toString:void 0;g.prototype=ga?ga(null):$,l.prototype.clear=m,l.prototype["delete"]=n,l.prototype.get=o,l.prototype.has=p,l.prototype.set=q;var ja=z(function(a){var b=[];return G(a).replace(N,function(a,c,d,e){b.push(d?e.replace(P,"$1"):c||a)}),b});z.Cache=l,c.exports=ja}(a("22")),c.exports}),a.registerDynamic("16e",["16d"],!0,function(a,b,c){return c.exports=a("16d"),c.exports}),a.registerDynamic("16f",["16e"],!0,function(a,b,c){function d(a,b){b=f(b,a)?[b]:e(b);for(var c=0,d=b.length;null!=a&&d>c;)a=a[b[c++]];return c&&c==d?a:void 0}function e(a){return p(a)?a:j(a)}function f(a,b){var c=typeof a;return"number"==c||"symbol"==c?!0:!p(a)&&(h(a)||m.test(a)||!l.test(a)||null!=b&&a in Object(b))}function g(a){return!!a&&"object"==typeof a}function h(a){return"symbol"==typeof a||g(a)&&o.call(a)==k}function i(a,b,c){var e=null==a?void 0:d(a,b);return void 0===e?c:e}var j=a("16e"),k="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/,n=Object.prototype,o=n.toString,p=Array.isArray;return c.exports=i,c.exports}),a.registerDynamic("170",["16f"],!0,function(a,b,c){return c.exports=a("16f"),c.exports}),a.registerDynamic("171",[],!0,function(a,b,c){"use strict";return c.exports={INVALID_TYPE:"Expected type {0} but found type {1}",INVALID_FORMAT:"Object didn't pass validation for format {0}: {1}",ENUM_MISMATCH:"No enum match for: {0}",ANY_OF_MISSING:"Data does not match any schemas from 'anyOf'",ONE_OF_MISSING:"Data does not match any schemas from 'oneOf'",ONE_OF_MULTIPLE:"Data is valid against more than one schema from 'oneOf'",NOT_PASSED:"Data matches schema from 'not'",ARRAY_LENGTH_SHORT:"Array is too short ({0}), minimum {1}",ARRAY_LENGTH_LONG:"Array is too long ({0}), maximum {1}",ARRAY_UNIQUE:"Array items are not unique (indexes {0} and {1})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",MULTIPLE_OF:"Value {0} is not a multiple of {1}",MINIMUM:"Value {0} is less than minimum {1}",MINIMUM_EXCLUSIVE:"Value {0} is equal or less than exclusive minimum {1}",MAXIMUM:"Value {0} is greater than maximum {1}",MAXIMUM_EXCLUSIVE:"Value {0} is equal or greater than exclusive maximum {1}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({0}), minimum {1}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({0}), maximum {1}",OBJECT_MISSING_REQUIRED_PROPERTY:"Missing required property: {0}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed: {0}",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {0} (due to key: {1})",MIN_LENGTH:"String is too short ({0} chars), minimum {1}",MAX_LENGTH:"String is too long ({0} chars), maximum {1}",PATTERN:"String does not match pattern {0}: {1}",KEYWORD_TYPE_EXPECTED:"Keyword '{0}' is expected to be of type '{1}'",KEYWORD_UNDEFINED_STRICT:"Keyword '{0}' must be defined in strict mode",KEYWORD_UNEXPECTED:"Keyword '{0}' is not expected to appear in the schema",KEYWORD_MUST_BE:"Keyword '{0}' must be {1}",KEYWORD_DEPENDENCY:"Keyword '{0}' requires keyword '{1}'",KEYWORD_PATTERN:"Keyword '{0}' is not a valid RegExp pattern: {1}",KEYWORD_VALUE_TYPE:"Each element of keyword '{0}' array must be a '{1}'",UNKNOWN_FORMAT:"There is no validation function for format '{0}'",CUSTOM_MODE_FORCE_PROPERTIES:"{0} must define at least one property if present",REF_UNRESOLVED:"Reference has not been resolved during compilation: {0}",UNRESOLVABLE_REFERENCE:"Reference could not be resolved: {0}",SCHEMA_NOT_REACHABLE:"Validator was not able to read schema with uri: {0}",SCHEMA_TYPE_EXPECTED:"Schema is expected to be of type 'object'",SCHEMA_NOT_AN_OBJECT:"Schema is not an object: {0}",ASYNC_TIMEOUT:"{0} asynchronous task(s) have timed out after {1} ms",PARENT_SCHEMA_VALIDATION_FAILED:"Schema failed to validate against its parent schema, see inner errors for details.",REMOTE_NOT_VALID:"Remote reference didn't compile successfully: {0}"},c.exports}),a.registerDynamic("127",["170","171","12a","22"],!0,function(a,b,c){return function(b){"use strict";function d(a,b){this.parentReport=a instanceof d?a:void 0,this.options=a instanceof d?a.options:a||{},this.reportOptions=b||{},this.errors=[],this.path=[],this.asyncTasks=[]}var e=a("170"),f=a("171"),g=a("12a");d.prototype.isValid=function(){if(this.asyncTasks.length>0)throw new Error("Async tasks pending, can't answer isValid");return 0===this.errors.length},d.prototype.addAsyncTask=function(a,b,c){this.asyncTasks.push([a,b,c])},d.prototype.processAsyncTasks=function(a,c){function d(){b.nextTick(function(){var a=0===j.errors.length,b=a?void 0:j.errors;c(b,a)})}function e(a){return function(b){i||(a(b),0===--g&&d())}}var f=a||2e3,g=this.asyncTasks.length,h=g,i=!1,j=this;if(0===g||this.errors.length>0)return void d();for(;h--;){var k=this.asyncTasks[h];k[0].apply(null,k[1].concat(e(k[2])))}setTimeout(function(){g>0&&(i=!0,j.addError("ASYNC_TIMEOUT",[g,f]),c(j.errors,!1))},f)},d.prototype.getPath=function(a){var b=[];return this.parentReport&&(b=b.concat(this.parentReport.path)),b=b.concat(this.path),a!==!0&&(b="#/"+b.map(function(a){return g.isAbsoluteUri(a)?"uri("+a+")":a.replace(/\~/g,"~0").replace(/\//g,"~1")}).join("/")),b},d.prototype.getSchemaId=function(){if(!this.rootSchema)return null;var a=[];for(this.parentReport&&(a=a.concat(this.parentReport.path)),a=a.concat(this.path);a.length>0;){var b=e(this.rootSchema,a);if(b&&b.id)return b.id;a.pop()}return this.rootSchema.id},d.prototype.hasError=function(a,b){for(var c=this.errors.length;c--;)if(this.errors[c].code===a){for(var d=!0,e=this.errors[c].params.length;e--;)this.errors[c].params[e]!==b[e]&&(d=!1);if(d)return d}return!1},d.prototype.addError=function(a,b,c,d){if(!a)throw new Error("No errorCode passed into addError()");this.addCustomError(a,f[a],b,c,d)},d.prototype.addCustomError=function(a,b,c,d,e){if(!(this.errors.length>=this.reportOptions.maxErrors)){if(!b)throw new Error("No errorMessage known for code "+a);c=c||[];for(var f=c.length;f--;){var h=g.whatIs(c[f]),i="object"===h||"null"===h?JSON.stringify(c[f]):c[f];b=b.replace("{"+f+"}",i)}var j={code:a,params:c,message:b,path:this.getPath(this.options.reportPathAsArray),schemaId:this.getSchemaId()};if(e&&(j.description=e),null!=d){for(Array.isArray(d)||(d=[d]),j.inner=[],f=d.length;f--;)for(var k=d[f],l=k.errors.length;l--;)j.inner.push(k.errors[l]);0===j.inner.length&&(j.inner=void 0)}this.errors.push(j)}},c.exports=d}(a("22")),c.exports}),a.registerDynamic("129",["16b","16c","127","12a"],!0,function(a,b,c){"use strict";var d=a("16b"),e=a("16c"),f=a("127"),g=a("12a"),h={$ref:function(a,b){"string"!=typeof b.$ref&&a.addError("KEYWORD_TYPE_EXPECTED",["$ref","string"])},$schema:function(a,b){"string"!=typeof b.$schema&&a.addError("KEYWORD_TYPE_EXPECTED",["$schema","string"])},multipleOf:function(a,b){"number"!=typeof b.multipleOf?a.addError("KEYWORD_TYPE_EXPECTED",["multipleOf","number"]):b.multipleOf<=0&&a.addError("KEYWORD_MUST_BE",["multipleOf","strictly greater than 0"])},maximum:function(a,b){"number"!=typeof b.maximum&&a.addError("KEYWORD_TYPE_EXPECTED",["maximum","number"])},exclusiveMaximum:function(a,b){"boolean"!=typeof b.exclusiveMaximum?a.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMaximum","boolean"]):void 0===b.maximum&&a.addError("KEYWORD_DEPENDENCY",["exclusiveMaximum","maximum"])},minimum:function(a,b){"number"!=typeof b.minimum&&a.addError("KEYWORD_TYPE_EXPECTED",["minimum","number"])},exclusiveMinimum:function(a,b){"boolean"!=typeof b.exclusiveMinimum?a.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMinimum","boolean"]):void 0===b.minimum&&a.addError("KEYWORD_DEPENDENCY",["exclusiveMinimum","minimum"])},maxLength:function(a,b){"integer"!==g.whatIs(b.maxLength)?a.addError("KEYWORD_TYPE_EXPECTED",["maxLength","integer"]):b.maxLength<0&&a.addError("KEYWORD_MUST_BE",["maxLength","greater than, or equal to 0"])},minLength:function(a,b){"integer"!==g.whatIs(b.minLength)?a.addError("KEYWORD_TYPE_EXPECTED",["minLength","integer"]):b.minLength<0&&a.addError("KEYWORD_MUST_BE",["minLength","greater than, or equal to 0"])},pattern:function(a,b){if("string"!=typeof b.pattern)a.addError("KEYWORD_TYPE_EXPECTED",["pattern","string"]);else try{RegExp(b.pattern)}catch(c){a.addError("KEYWORD_PATTERN",["pattern",b.pattern])}},additionalItems:function(a,c){var d=g.whatIs(c.additionalItems);"boolean"!==d&&"object"!==d?a.addError("KEYWORD_TYPE_EXPECTED",["additionalItems",["boolean","object"]]):"object"===d&&(a.path.push("additionalItems"),b.validateSchema.call(this,a,c.additionalItems),a.path.pop())},items:function(a,c){var d=g.whatIs(c.items);if("object"===d)a.path.push("items"),b.validateSchema.call(this,a,c.items),a.path.pop();else if("array"===d)for(var e=c.items.length;e--;)a.path.push("items"),a.path.push(e.toString()),b.validateSchema.call(this,a,c.items[e]),a.path.pop(),a.path.pop();else a.addError("KEYWORD_TYPE_EXPECTED",["items",["array","object"]]);this.options.forceAdditional===!0&&void 0===c.additionalItems&&Array.isArray(c.items)&&a.addError("KEYWORD_UNDEFINED_STRICT",["additionalItems"]),this.options.assumeAdditional&&void 0===c.additionalItems&&Array.isArray(c.items)&&(c.additionalItems=!1)},maxItems:function(a,b){"number"!=typeof b.maxItems?a.addError("KEYWORD_TYPE_EXPECTED",["maxItems","integer"]):b.maxItems<0&&a.addError("KEYWORD_MUST_BE",["maxItems","greater than, or equal to 0"])},minItems:function(a,b){"integer"!==g.whatIs(b.minItems)?a.addError("KEYWORD_TYPE_EXPECTED",["minItems","integer"]):b.minItems<0&&a.addError("KEYWORD_MUST_BE",["minItems","greater than, or equal to 0"])},uniqueItems:function(a,b){"boolean"!=typeof b.uniqueItems&&a.addError("KEYWORD_TYPE_EXPECTED",["uniqueItems","boolean"])},maxProperties:function(a,b){"integer"!==g.whatIs(b.maxProperties)?a.addError("KEYWORD_TYPE_EXPECTED",["maxProperties","integer"]):b.maxProperties<0&&a.addError("KEYWORD_MUST_BE",["maxProperties","greater than, or equal to 0"])},minProperties:function(a,b){"integer"!==g.whatIs(b.minProperties)?a.addError("KEYWORD_TYPE_EXPECTED",["minProperties","integer"]):b.minProperties<0&&a.addError("KEYWORD_MUST_BE",["minProperties","greater than, or equal to 0"])},required:function(a,b){if("array"!==g.whatIs(b.required))a.addError("KEYWORD_TYPE_EXPECTED",["required","array"]);else if(0===b.required.length)a.addError("KEYWORD_MUST_BE",["required","an array with at least one element"]);else{for(var c=b.required.length;c--;)"string"!=typeof b.required[c]&&a.addError("KEYWORD_VALUE_TYPE",["required","string"]);g.isUniqueArray(b.required)===!1&&a.addError("KEYWORD_MUST_BE",["required","an array with unique items"])}},additionalProperties:function(a,c){var d=g.whatIs(c.additionalProperties);"boolean"!==d&&"object"!==d?a.addError("KEYWORD_TYPE_EXPECTED",["additionalProperties",["boolean","object"]]):"object"===d&&(a.path.push("additionalProperties"),b.validateSchema.call(this,a,c.additionalProperties),a.path.pop())},properties:function(a,c){if("object"!==g.whatIs(c.properties))return void a.addError("KEYWORD_TYPE_EXPECTED",["properties","object"]);for(var d=Object.keys(c.properties),e=d.length;e--;){var f=d[e],h=c.properties[f];a.path.push("properties"),a.path.push(f),b.validateSchema.call(this,a,h),a.path.pop(),a.path.pop()}this.options.forceAdditional===!0&&void 0===c.additionalProperties&&a.addError("KEYWORD_UNDEFINED_STRICT",["additionalProperties"]),this.options.assumeAdditional&&void 0===c.additionalProperties&&(c.additionalProperties=!1),this.options.forceProperties===!0&&0===d.length&&a.addError("CUSTOM_MODE_FORCE_PROPERTIES",["properties"])},patternProperties:function(a,c){if("object"!==g.whatIs(c.patternProperties))return void a.addError("KEYWORD_TYPE_EXPECTED",["patternProperties","object"]);for(var d=Object.keys(c.patternProperties),e=d.length;e--;){var f=d[e],h=c.patternProperties[f];try{RegExp(f)}catch(i){a.addError("KEYWORD_PATTERN",["patternProperties",f])}a.path.push("patternProperties"),a.path.push(f.toString()),b.validateSchema.call(this,a,h),a.path.pop(),a.path.pop()}this.options.forceProperties===!0&&0===d.length&&a.addError("CUSTOM_MODE_FORCE_PROPERTIES",["patternProperties"])},dependencies:function(a,c){if("object"!==g.whatIs(c.dependencies))a.addError("KEYWORD_TYPE_EXPECTED",["dependencies","object"]);else for(var d=Object.keys(c.dependencies),e=d.length;e--;){var f=d[e],h=c.dependencies[f],i=g.whatIs(h);if("object"===i)a.path.push("dependencies"),a.path.push(f),b.validateSchema.call(this,a,h),a.path.pop(),a.path.pop();else if("array"===i){var j=h.length;for(0===j&&a.addError("KEYWORD_MUST_BE",["dependencies","not empty array"]);j--;)"string"!=typeof h[j]&&a.addError("KEYWORD_VALUE_TYPE",["dependensices","string"]);g.isUniqueArray(h)===!1&&a.addError("KEYWORD_MUST_BE",["dependencies","an array with unique items"])}else a.addError("KEYWORD_VALUE_TYPE",["dependencies","object or array"])}},"enum":function(a,b){Array.isArray(b["enum"])===!1?a.addError("KEYWORD_TYPE_EXPECTED",["enum","array"]):0===b["enum"].length?a.addError("KEYWORD_MUST_BE",["enum","an array with at least one element"]):g.isUniqueArray(b["enum"])===!1&&a.addError("KEYWORD_MUST_BE",["enum","an array with unique elements"])},type:function(a,b){var c=["array","boolean","integer","number","null","object","string"],d=c.join(","),e=Array.isArray(b.type);if(e){for(var f=b.type.length;f--;)-1===c.indexOf(b.type[f])&&a.addError("KEYWORD_TYPE_EXPECTED",["type",d]);g.isUniqueArray(b.type)===!1&&a.addError("KEYWORD_MUST_BE",["type","an object with unique properties"])}else"string"==typeof b.type?-1===c.indexOf(b.type)&&a.addError("KEYWORD_TYPE_EXPECTED",["type",d]):a.addError("KEYWORD_TYPE_EXPECTED",["type",["string","array"]]);this.options.noEmptyStrings===!0&&("string"===b.type||e&&-1!==b.type.indexOf("string"))&&void 0===b.minLength&&void 0===b["enum"]&&void 0===b.format&&(b.minLength=1),this.options.noEmptyArrays===!0&&("array"===b.type||e&&-1!==b.type.indexOf("array"))&&void 0===b.minItems&&(b.minItems=1),this.options.forceProperties===!0&&("object"===b.type||e&&-1!==b.type.indexOf("object"))&&void 0===b.properties&&void 0===b.patternProperties&&a.addError("KEYWORD_UNDEFINED_STRICT",["properties"]),this.options.forceItems===!0&&("array"===b.type||e&&-1!==b.type.indexOf("array"))&&void 0===b.items&&a.addError("KEYWORD_UNDEFINED_STRICT",["items"]),this.options.forceMinItems===!0&&("array"===b.type||e&&-1!==b.type.indexOf("array"))&&void 0===b.minItems&&a.addError("KEYWORD_UNDEFINED_STRICT",["minItems"]),this.options.forceMaxItems===!0&&("array"===b.type||e&&-1!==b.type.indexOf("array"))&&void 0===b.maxItems&&a.addError("KEYWORD_UNDEFINED_STRICT",["maxItems"]),this.options.forceMinLength===!0&&("string"===b.type||e&&-1!==b.type.indexOf("string"))&&void 0===b.minLength&&void 0===b.format&&void 0===b["enum"]&&void 0===b.pattern&&a.addError("KEYWORD_UNDEFINED_STRICT",["minLength"]),this.options.forceMaxLength===!0&&("string"===b.type||e&&-1!==b.type.indexOf("string"))&&void 0===b.maxLength&&void 0===b.format&&void 0===b["enum"]&&void 0===b.pattern&&a.addError("KEYWORD_UNDEFINED_STRICT",["maxLength"])},allOf:function(a,c){if(Array.isArray(c.allOf)===!1)a.addError("KEYWORD_TYPE_EXPECTED",["allOf","array"]);else if(0===c.allOf.length)a.addError("KEYWORD_MUST_BE",["allOf","an array with at least one element"]);else for(var d=c.allOf.length;d--;)a.path.push("allOf"),a.path.push(d.toString()),b.validateSchema.call(this,a,c.allOf[d]),a.path.pop(),a.path.pop()},anyOf:function(a,c){if(Array.isArray(c.anyOf)===!1)a.addError("KEYWORD_TYPE_EXPECTED",["anyOf","array"]);else if(0===c.anyOf.length)a.addError("KEYWORD_MUST_BE",["anyOf","an array with at least one element"]);else for(var d=c.anyOf.length;d--;)a.path.push("anyOf"),a.path.push(d.toString()),b.validateSchema.call(this,a,c.anyOf[d]),a.path.pop(),a.path.pop()},oneOf:function(a,c){if(Array.isArray(c.oneOf)===!1)a.addError("KEYWORD_TYPE_EXPECTED",["oneOf","array"]);else if(0===c.oneOf.length)a.addError("KEYWORD_MUST_BE",["oneOf","an array with at least one element"]);else for(var d=c.oneOf.length;d--;)a.path.push("oneOf"),a.path.push(d.toString()),b.validateSchema.call(this,a,c.oneOf[d]),a.path.pop(),a.path.pop()},not:function(a,c){"object"!==g.whatIs(c.not)?a.addError("KEYWORD_TYPE_EXPECTED",["not","object"]):(a.path.push("not"),b.validateSchema.call(this,a,c.not),a.path.pop())},definitions:function(a,c){if("object"!==g.whatIs(c.definitions))a.addError("KEYWORD_TYPE_EXPECTED",["definitions","object"]);else for(var d=Object.keys(c.definitions),e=d.length;e--;){var f=d[e],h=c.definitions[f];a.path.push("definitions"),a.path.push(f),b.validateSchema.call(this,a,h),a.path.pop(),a.path.pop()}},format:function(a,b){"string"!=typeof b.format?a.addError("KEYWORD_TYPE_EXPECTED",["format","string"]):void 0===d[b.format]&&this.options.ignoreUnknownFormats!==!0&&a.addError("UNKNOWN_FORMAT",[b.format])},id:function(a,b){"string"!=typeof b.id&&a.addError("KEYWORD_TYPE_EXPECTED",["id","string"])},title:function(a,b){"string"!=typeof b.title&&a.addError("KEYWORD_TYPE_EXPECTED",["title","string"])},description:function(a,b){"string"!=typeof b.description&&a.addError("KEYWORD_TYPE_EXPECTED",["description","string"])},"default":function(){}},i=function(a,c){for(var d=c.length;d--;)b.validateSchema.call(this,a,c[d]);return a.isValid()};return b.validateSchema=function(a,b){if(a.commonErrorMessage="SCHEMA_VALIDATION_FAILED",Array.isArray(b))return i.call(this,a,b);if(b.__$validated)return!0;var c=b.$schema&&b.id!==b.$schema;if(c)if(b.__$schemaResolved&&b.__$schemaResolved!==b){var d=new f(a),j=e.validate.call(this,d,b.__$schemaResolved,b);j===!1&&a.addError("PARENT_SCHEMA_VALIDATION_FAILED",null,d)}else this.options.ignoreUnresolvableReferences!==!0&&a.addError("REF_UNRESOLVED",[b.$schema]);
|
||
if(this.options.noTypeless===!0){if(void 0!==b.type){var k=[];Array.isArray(b.anyOf)&&(k=k.concat(b.anyOf)),Array.isArray(b.oneOf)&&(k=k.concat(b.oneOf)),Array.isArray(b.allOf)&&(k=k.concat(b.allOf)),k.forEach(function(a){a.type||(a.type=b.type)})}void 0===b["enum"]&&void 0===b.type&&void 0===b.anyOf&&void 0===b.oneOf&&void 0===b.not&&void 0===b.$ref&&a.addError("KEYWORD_UNDEFINED_STRICT",["type"])}for(var l=Object.keys(b),m=l.length;m--;){var n=l[m];0!==n.indexOf("__")&&(void 0!==h[n]?h[n].call(this,a,b):c||this.options.noExtraKeywords===!0&&a.addError("KEYWORD_UNEXPECTED",[n]))}if(this.options.pedanticCheck===!0){if(b["enum"]){var o=g.clone(b);for(delete o["enum"],delete o["default"],a.path.push("enum"),m=b["enum"].length;m--;)a.path.push(m.toString()),e.validate.call(this,a,o,b["enum"][m]),a.path.pop();a.path.pop()}b["default"]&&(a.path.push("default"),e.validate.call(this,a,b,b["default"]),a.path.pop())}var p=a.isValid();return p&&(b.__$validated=!0),p},c.exports}),a.registerDynamic("12a",[],!0,function(a,b,c){"use strict";return b.isAbsoluteUri=function(a){return/^https?:\/\//.test(a)},b.isRelativeUri=function(a){return/.+#/.test(a)},b.whatIs=function(a){var b=typeof a;return"object"===b?null===a?"null":Array.isArray(a)?"array":"object":"number"===b?Number.isFinite(a)?a%1===0?"integer":"number":Number.isNaN(a)?"not-a-number":"unknown-number":b},b.areEqual=function d(a,c){if(a===c)return!0;var e,f;if(Array.isArray(a)&&Array.isArray(c)){if(a.length!==c.length)return!1;for(f=a.length,e=0;f>e;e++)if(!d(a[e],c[e]))return!1;return!0}if("object"===b.whatIs(a)&&"object"===b.whatIs(c)){var g=Object.keys(a),h=Object.keys(c);if(!d(g,h))return!1;for(f=g.length,e=0;f>e;e++)if(!d(a[g[e]],c[g[e]]))return!1;return!0}return!1},b.isUniqueArray=function(a,c){var d,e,f=a.length;for(d=0;f>d;d++)for(e=d+1;f>e;e++)if(b.areEqual(a[d],a[e]))return c&&c.push(d,e),!1;return!0},b.difference=function(a,b){for(var c=[],d=a.length;d--;)-1===b.indexOf(a[d])&&c.push(a[d]);return c},b.clone=function(a){if("undefined"!=typeof a){if("object"!=typeof a||null===a)return a;var b,c;if(Array.isArray(a))for(b=[],c=a.length;c--;)b[c]=a[c];else{b={};var d=Object.keys(a);for(c=d.length;c--;){var e=d[c];b[e]=a[e]}}return b}},b.cloneDeep=function(a){function b(a){if("object"!=typeof a||null===a)return a;var e,f,g;if(g=c.indexOf(a),-1!==g)return d[g];if(c.push(a),Array.isArray(a))for(e=[],d.push(e),f=a.length;f--;)e[f]=b(a[f]);else{e={},d.push(e);var h=Object.keys(a);for(f=h.length;f--;){var i=h[f];e[i]=b(a[i])}}return e}var c=[],d=[];return b(a)},b.ucs2decode=function(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d},c.exports}),a.registerDynamic("172",[],!0,function(a,b,c){return c.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{"default":0}]},simpleTypes:{"enum":["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},"default":{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean","default":!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean","default":!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],"default":{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],"default":{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean","default":!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],"default":{}},definitions:{type:"object",additionalProperties:{$ref:"#"},"default":{}},properties:{type:"object",additionalProperties:{$ref:"#"},"default":{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},"default":{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},"enum":{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},"default":{}},c.exports}),a.registerDynamic("173",[],!0,function(a,b,c){return c.exports={$schema:"http://json-schema.org/draft-04/hyper-schema#",id:"http://json-schema.org/draft-04/hyper-schema#",title:"JSON Hyper-Schema",allOf:[{$ref:"http://json-schema.org/draft-04/schema#"}],properties:{additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}]},dependencies:{additionalProperties:{anyOf:[{$ref:"#"},{type:"array"}]}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}]},definitions:{additionalProperties:{$ref:"#"}},patternProperties:{additionalProperties:{$ref:"#"}},properties:{additionalProperties:{$ref:"#"}},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"},links:{type:"array",items:{$ref:"#/definitions/linkDescription"}},fragmentResolution:{type:"string"},media:{type:"object",properties:{type:{description:"A media type, as described in RFC 2046",type:"string"},binaryEncoding:{description:"A content encoding scheme, as described in RFC 2045",type:"string"}}},pathStart:{description:"Instances' URIs must start with this value for this schema to apply to them",type:"string",format:"uri"}},definitions:{schemaArray:{type:"array",items:{$ref:"#"}},linkDescription:{title:"Link Description Object",type:"object",required:["href","rel"],properties:{href:{description:"a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",type:"string"},rel:{description:"relation to the target resource of the link",type:"string"},title:{description:"a title for the link",type:"string"},targetSchema:{description:"JSON Schema describing the link target",$ref:"#"},mediaType:{description:"media type (as defined by RFC 2046) describing the link target",type:"string"},method:{description:'method for requesting the target of the link (e.g. for HTTP this might be "GET" or "DELETE")',type:"string"},encType:{description:"The media type in which to submit data along with the request",type:"string","default":"application/json"},schema:{description:"Schema describing the data to submit along with the request",$ref:"#"}}}}},c.exports}),a.registerDynamic("174",["125","170","127","16b","16c","126","128","129","12a","172","173","22"],!0,function(a,b,c){return function(b){"use strict";function d(a){if(this.cache={},this.referenceCache=[],this.setRemoteReference("http://json-schema.org/draft-04/schema",m),this.setRemoteReference("http://json-schema.org/draft-04/hyper-schema",n),"object"==typeof a){for(var b,c=Object.keys(a),d=c.length;d--;)if(b=c[d],void 0===o[b])throw new Error("Unexpected option passed to constructor: "+b);for(c=Object.keys(o),d=c.length;d--;)b=c[d],void 0===a[b]&&(a[b]=l.clone(o[b]));this.options=a}else this.options=l.clone(o);this.options.strictMode===!0&&(this.options.forceAdditional=!0,this.options.forceItems=!0,this.options.forceMaxLength=!0,this.options.forceProperties=!0,this.options.noExtraKeywords=!0,this.options.noTypeless=!0,this.options.noEmptyStrings=!0,this.options.noEmptyArrays=!0)}a("125");var e=a("170"),f=a("127"),g=a("16b"),h=a("16c"),i=a("126"),j=a("128"),k=a("129"),l=a("12a"),m=a("172"),n=a("173"),o={asyncTimeout:2e3,forceAdditional:!1,assumeAdditional:!1,forceItems:!1,forceMinItems:!1,forceMaxItems:!1,forceMinLength:!1,forceMaxLength:!1,forceProperties:!1,ignoreUnresolvableReferences:!1,noExtraKeywords:!1,noTypeless:!1,noEmptyStrings:!1,noEmptyArrays:!1,strictUris:!1,strictMode:!1,reportPathAsArray:!1,breakOnFirstError:!0,pedanticCheck:!1,ignoreUnknownFormats:!1,customValidator:null};d.prototype.compileSchema=function(a){var b=new f(this.options);return a=i.getSchema.call(this,b,a),j.compileSchema.call(this,b,a),this.lastReport=b,b.isValid()},d.prototype.validateSchema=function(a){if(Array.isArray(a)&&0===a.length)throw new Error(".validateSchema was called with an empty array");var b=new f(this.options);a=i.getSchema.call(this,b,a);var c=j.compileSchema.call(this,b,a);return c&&k.validateSchema.call(this,b,a),this.lastReport=b,b.isValid()},d.prototype.validate=function(a,c,d,g){"function"===l.whatIs(d)&&(g=d,d={}),d||(d={});var m=l.whatIs(c);if("string"!==m&&"object"!==m){var n=new Error("Invalid .validate call - schema must be an string or object but "+m+" was passed!");if(g)return void b.nextTick(function(){g(n,!1)});throw n}var o=!1,p=new f(this.options);if("string"==typeof c){var q=c;if(c=i.getSchema.call(this,p,q),!c)throw new Error("Schema with id '"+q+"' wasn't found in the validator cache!")}else c=i.getSchema.call(this,p,c);var r=!1;o||(r=j.compileSchema.call(this,p,c)),r||(this.lastReport=p,o=!0);var s=!1;if(o||(s=k.validateSchema.call(this,p,c)),s||(this.lastReport=p,o=!0),d.schemaPath&&(p.rootSchema=c,c=e(c,d.schemaPath),!c))throw new Error("Schema path '"+d.schemaPath+"' wasn't found in the schema!");if(o||h.validate.call(this,p,c,a),g)return void p.processAsyncTasks(this.options.asyncTimeout,g);if(p.asyncTasks.length>0)throw new Error("This validation has async tasks and cannot be done in sync mode, please provide callback argument.");return this.lastReport=p,p.isValid()},d.prototype.getLastError=function(){if(0===this.lastReport.errors.length)return null;var a=new Error;return a.name="z-schema validation error",a.message=this.lastReport.commonErrorMessage,a.details=this.lastReport.errors,a},d.prototype.getLastErrors=function(){return this.lastReport&&this.lastReport.errors.length>0?this.lastReport.errors:void 0},d.prototype.getMissingReferences=function(a){a=a||this.lastReport.errors;for(var b=[],c=a.length;c--;){var d=a[c];if("UNRESOLVABLE_REFERENCE"===d.code){var e=d.params[0];-1===b.indexOf(e)&&b.push(e)}d.inner&&(b=b.concat(this.getMissingReferences(d.inner)))}return b},d.prototype.getMissingRemoteReferences=function(){for(var a=this.getMissingReferences(),b=[],c=a.length;c--;){var d=i.getRemotePath(a[c]);d&&-1===b.indexOf(d)&&b.push(d)}return b},d.prototype.setRemoteReference=function(a,b){b="string"==typeof b?JSON.parse(b):l.cloneDeep(b),i.cacheSchemaByUri.call(this,a,b)},d.prototype.getResolvedSchema=function(a){var b=new f(this.options);a=i.getSchema.call(this,b,a),a=l.cloneDeep(a);var c=[],d=function(a){var b,e=l.whatIs(a);if(("object"===e||"array"===e)&&!a.___$visited){if(a.___$visited=!0,c.push(a),a.$ref&&a.__$refResolved){var f=a.__$refResolved,g=a;delete a.$ref,delete a.__$refResolved;for(b in f)f.hasOwnProperty(b)&&(g[b]=f[b])}for(b in a)a.hasOwnProperty(b)&&(0===b.indexOf("__$")?delete a[b]:d(a[b]))}};if(d(a),c.forEach(function(a){delete a.___$visited}),this.lastReport=b,b.isValid())return a;throw this.getLastError()},d.prototype.setSchemaReader=function(a){return d.setSchemaReader(a)},d.prototype.getSchemaReader=function(){return d.schemaReader},d.setSchemaReader=function(a){d.schemaReader=a},d.registerFormat=function(a,b){g[a]=b},d.unregisterFormat=function(a){delete g[a]},d.getRegisteredFormats=function(){return Object.keys(g)},d.getDefaultOptions=function(){return l.cloneDeep(o)},c.exports=d}(a("22")),c.exports}),a.registerDynamic("175",["174"],!0,function(a,b,c){return c.exports=a("174"),c.exports}),a.registerDynamic("176",[],!0,function(a,b,c){return c.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string","enum":["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",$ref:"#/definitions/mediaTypeList"},produces:{description:"A list of MIME types the API can produce.",$ref:"#/definitions/mediaTypeList"},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for parameters"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",$ref:"#/definitions/mediaTypeList"},consumes:{description:"A list of MIME types the API can consume.",$ref:"#/definitions/mediaTypeList"},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean","default":!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},"delete":{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string","enum":["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},"in":{type:"string",description:"Determines the location of the parameter.","enum":["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.","default":!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.","default":!1},"in":{type:"string",description:"Determines the location of the parameter.","enum":["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string","enum":["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.","default":!1},"in":{type:"string",description:"Determines the location of the parameter.","enum":["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean","default":!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string","enum":["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.","default":!1},"in":{type:"string",description:"Determines the location of the parameter.","enum":["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean","default":!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string","enum":["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean","enum":[!0],description:"Determines whether or not this parameter is required or optional."},"in":{type:"string",description:"Determines the location of the parameter.","enum":["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string","enum":["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},"default":{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],"default":{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],"default":{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},"default":{}},discriminator:{type:"string"},readOnly:{type:"boolean","default":!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},"default":{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string","enum":["file"]},readOnly:{type:"boolean","default":!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string","enum":["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean","default":!1},wrapped:{type:"boolean","default":!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string","enum":["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string","enum":["apiKey"]},name:{type:"string"},"in":{type:"string","enum":["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{
|
||
type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string","enum":["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string","enum":["csv","ssv","tsv","pipes"],"default":"csv"},collectionFormatWithMulti:{type:"string","enum":["csv","ssv","tsv","pipes","multi"],"default":"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},"default":{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"enum":{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}},c.exports}),a.registerDynamic("177",["178","179","175","176"],!0,function(a,b,c){"use strict";function d(a){g.debug("Validating against the Swagger 2.0 schema");var b=i.validate(a,j);if(!b){var c=i.getLastError(),d="Swagger schema validation failed. \n"+f(c.details);throw h.syntax(c,{details:c.details},d)}g.debug(" Validated successfully")}function e(){i=new i({breakOnFirstError:!0,noExtraKeywords:!0,ignoreUnknownFormats:!1,reportPathAsArray:!0})}function f(a,b){b=b||" ";var c="";return a.forEach(function(a,d){c+=g.format("%s%s at #/%s\n",b,a.message,a.path.join("/")),a.inner&&(c+=f(a.inner,b+" "))}),c}var g=a("178"),h=a("179"),i=a("175"),j=a("176");return c.exports=d,e(),c.exports}),a.registerDynamic("17a",[],!0,function(a,b,c){return c.exports=["get","put","post","delete","options","head","patch"],c.exports}),a.registerDynamic("17b",["17a"],!0,function(a,b,c){return c.exports=a("17a"),c.exports}),a.registerDynamic("17c",["178","179","17b"],!0,function(a,b,c){"use strict";function d(a){m.debug("Validating against the Swagger 2.0 spec");var b=Object.keys(a.paths||{});b.forEach(function(b){var c=a.paths[b],d="/paths"+b;c&&0===b.indexOf("/")&&e(a,c,d)}),m.debug(" Validated successfully")}function e(a,b,c){o.forEach(function(d){var e=b[d],g=c+"/"+d;if(e){f(a,b,c,e,g);var h=Object.keys(e.responses||{});h.forEach(function(a){var b=e.responses[a],c=g+"/responses/"+a;k(a,b,c)})}})}function f(a,b,c,d,e){var f=b.parameters||[],k=d.parameters||[];try{j(f)}catch(l){throw n.syntax(l,"Validation failed. %s has duplicate parameters",c)}try{j(k)}catch(l){throw n.syntax(l,"Validation failed. %s has duplicate parameters",e)}var m=f.reduce(function(a,b){var c=a.some(function(a){return a["in"]===b["in"]&&a.name===b.name});return c||a.push(b),a},k.slice());g(m,e),h(m,c,e),i(m,a,d,e)}function g(a,b){var c=a.filter(function(a){return"body"===a["in"]}),d=a.filter(function(a){return"formData"===a["in"]});if(c.length>1)throw n.syntax("Validation failed. %s has %d body parameters. Only one is allowed.",b,c.length);if(c.length>0&&d.length>0)throw n.syntax("Validation failed. %s has body parameters and formData parameters. Only one or the other is allowed.",b)}function h(a,b,c){for(var d=b.match(m.swaggerParamRegExp)||[],e=0;e<d.length;e++)for(var f=e+1;f<d.length;f++)if(d[e]===d[f])throw n.syntax("Validation failed. %s has multiple path placeholders named %s",c,d[e]);if(a.filter(function(a){return"path"===a["in"]}).forEach(function(a){if(a.required!==!0)throw n.syntax('Validation failed. Path parameters cannot be optional. Set required=true for the "%s" parameter at %s',a.name,c);var b=d.indexOf("{"+a.name+"}");if(-1===b)throw n.syntax('Validation failed. %s has a path parameter named "%s", but there is no corresponding {%s} in the path string',c,a.name,a.name);d.splice(b,1)}),d.length>0)throw n.syntax("Validation failed. %s is missing path parameter(s) for %s",c,d)}function i(a,b,c,d){a.forEach(function(a){var e,f,g=d+"/parameters/"+a.name;switch(a["in"]){case"body":e=a.schema,f=q;break;case"formData":e=a,f=p.concat("file");break;default:e=a,f=p}if(l(e,g,f),"file"===e.type){var h=c.consumes||b.consumes||[];if(-1===h.indexOf("multipart/form-data")&&-1===h.indexOf("application/x-www-form-urlencoded"))throw n.syntax("Validation failed. %s has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded",d)}})}function j(a){for(var b=0;b<a.length-1;b++)for(var c=a[b],d=b+1;d<a.length;d++){var e=a[d];if(c.name===e.name&&c["in"]===e["in"])throw n.syntax('Validation failed. Found multiple %s parameters named "%s"',c["in"],c.name)}}function k(a,b,c){if("default"!==a&&(100>a||a>599))throw n.syntax("Validation failed. %s has an invalid response code (%s)",c,a);var d=Object.keys(b.headers||{});if(d.forEach(function(a){var d=b.headers[a],e=c+"/headers/"+a;l(d,e,p)}),b.schema){var e=q.concat("file");if(-1===e.indexOf(b.schema.type))throw n.syntax("Validation failed. %s has an invalid response schema type (%s)",c,b.schema.type)}}function l(a,b,c){if(-1===c.indexOf(a.type))throw n.syntax("Validation failed. %s has an invalid type (%s)",b,a.type);if("array"===a.type&&!a.items)throw n.syntax('Validation failed. %s is an array, so it must include an "items" schema',b)}var m=a("178"),n=a("179"),o=a("17b"),p=["array","boolean","integer","number","string"],q=["array","boolean","integer","number","string","object","null",void 0];return c.exports=d,c.exports}),a.registerDynamic("178",["17d","17e"],!0,function(a,b,c){"use strict";var d=a("17d"),e=a("17e");return b.format=e.format,b.inherits=e.inherits,b.debug=d("swagger:parser"),b.swaggerParamRegExp=/\{([^\/}]+)}/g,c.exports}),a.registerDynamic("17f",["180","17e"],!0,function(a,b,c){"use strict";function d(a){e.call(this,d.defaults),e.apply(this,arguments)}var e=a("180"),f=a("17e");return c.exports=d,d.defaults={validate:{schema:{order:1},spec:{order:2}}},f.inherits(d,e),c.exports}),a.registerDynamic("181",["182"],!0,function(a,b,c){"use strict";return c.exports="function"==typeof Promise?Promise:a("182").Promise,c.exports}),a.registerDynamic("183",["184","185"],!0,function(a,b,c){return function(b){"use strict";var d=a("184");c.exports={order:100,allowEmpty:!0,canParse:".json",parse:function(a){return new d(function(c,d){var e=a.data;b.isBuffer(e)&&(e=e.toString()),c("string"==typeof e?0===e.trim().length?void 0:JSON.parse(e):e)})}}}(a("185").Buffer),c.exports}),a.registerDynamic("186",["184","187","185"],!0,function(a,b,c){return function(b){"use strict";var d=a("184"),e=a("187");c.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],parse:function(a){return new d(function(c,d){var f=a.data;b.isBuffer(f)&&(f=f.toString()),c("string"==typeof f?e.parse(f):f)})}}}(a("185").Buffer),c.exports}),a.registerDynamic("188",["185"],!0,function(a,b,c){return function(a){"use strict";var b=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;c.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse:function(c){return("string"==typeof c.data||a.isBuffer(c.data))&&b.test(c.url)},parse:function(b){if("string"==typeof b.data)return b.data;if(a.isBuffer(b.data))return b.data.toString(this.encoding);throw new Error("data is not text")}}}(a("185").Buffer),c.exports}),a.registerDynamic("189",["185"],!0,function(a,b,c){return function(a){"use strict";var b=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;c.exports={order:400,allowEmpty:!0,canParse:function(c){return a.isBuffer(c.data)&&b.test(c.url)},parse:function(b){return a.isBuffer(b.data)?b.data:new a(b.data)}}}(a("185").Buffer),c.exports}),a.registerDynamic("18a",[],!0,function(b,c,d){return a._nodeRequire?d.exports=a._nodeRequire("fs"):c.readFileSync=function(a){var b,c=new XMLHttpRequest;return c.open("GET",a,!1),c.onreadystatechange=function(d){if(4==c.readyState){var e=c.status;if(e>399&&600>e||400==e)throw"File read error on "+a;b=c.responseText}},c.send(null),b},d.exports}),a.registerDynamic("18b",["18a"],!0,function(a,b,c){return c.exports=a("18a"),c.exports}),a.registerDynamic("18c",["18b","179","184","18d","18e","185"],!0,function(a,b,c){return function(b){"use strict";var d=a("18b"),e=a("179"),f=a("184"),g=a("18d"),h=a("18e");c.exports={order:100,canRead:function(a){return g.isFileSystemPath(a.url)},read:function(a){return new f(function(b,c){var f;try{f=g.toFileSystemPath(a.url)}catch(i){c(e.uri(i,"Malformed URI: %s",a.url))}h("Opening file: %s",f);try{d.readFile(f,function(a,d){a?c(e(a,'Error opening file "%s"',f)):b(d)})}catch(i){c(e(i,'Error opening file "%s"',f))}})}}}(a("185").Buffer),c.exports}),a.registerDynamic("18f",[],!0,function(a,b,c){function d(a){try{return h.responseType=a,h.responseType===a}catch(b){}return!1}function e(a){return"function"==typeof a}var f=this;b.fetch=e(f.fetch)&&e(f.ReadableByteStream),b.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),b.blobConstructor=!0}catch(g){}var h=new f.XMLHttpRequest;h.open("GET",f.location.host?"/":"https://example.com");var i="undefined"!=typeof f.ArrayBuffer,j=i&&e(f.ArrayBuffer.prototype.slice);return b.arraybuffer=i&&d("arraybuffer"),b.msstream=!b.fetch&&j&&d("ms-stream"),b.mozchunkedarraybuffer=!b.fetch&&i&&d("moz-chunked-arraybuffer"),b.overrideMimeType=e(h.overrideMimeType),b.vbArray=e(f.VBArray),h=null,c.exports}),a.registerDynamic("190",["18f","191","192","185","22"],!0,function(a,b,c){var d=this;return function(c,e){var f=a("18f"),g=a("191"),h=a("192"),i=b.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},j=b.IncomingMessage=function(a,b,d){function g(){m.read().then(function(a){if(!i._destroyed){if(a.done)return void i.push(null);i.push(new c(a.value)),g()}})}var i=this;if(h.Readable.call(i),i._mode=d,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){e.nextTick(function(){i.emit("close")})}),"fetch"===d){i._fetchResponse=b,i.url=b.url,i.statusCode=b.status,i.statusMessage=b.statusText;for(var j,k,l=b.headers[Symbol.iterator]();j=(k=l.next()).value,!k.done;)i.headers[j[0].toLowerCase()]=j[1],i.rawHeaders.push(j[0],j[1]);var m=b.body.getReader();g()}else{i._xhr=a,i._pos=0,i.url=a.responseURL,i.statusCode=a.status,i.statusMessage=a.statusText;var n=a.getAllResponseHeaders().split(/\r?\n/);if(n.forEach(function(a){var b=a.match(/^([^:]+):\s*(.*)/);if(b){var c=b[1].toLowerCase();"set-cookie"===c?(void 0===i.headers[c]&&(i.headers[c]=[]),i.headers[c].push(b[2])):void 0!==i.headers[c]?i.headers[c]+=", "+b[2]:i.headers[c]=b[2],i.rawHeaders.push(b[1],b[2])}}),i._charset="x-user-defined",!f.overrideMimeType){var o=i.rawHeaders["mime-type"];if(o){var p=o.match(/;\s*charset=([^;])(;|$)/);p&&(i._charset=p[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};g(j,h.Readable),j.prototype._read=function(){},j.prototype._onXHRProgress=function(){var a=this,b=a._xhr,e=null;switch(a._mode){case"text:vbarray":if(b.readyState!==i.DONE)break;try{e=new d.VBArray(b.responseBody).toArray()}catch(f){}if(null!==e){a.push(new c(e));break}case"text":try{e=b.responseText}catch(f){a._mode="text:vbarray";break}if(e.length>a._pos){var g=e.substr(a._pos);if("x-user-defined"===a._charset){for(var h=new c(g.length),j=0;j<g.length;j++)h[j]=255&g.charCodeAt(j);a.push(h)}else a.push(g,a._charset);a._pos=e.length}break;case"arraybuffer":if(b.readyState!==i.DONE)break;e=b.response,a.push(new c(new Uint8Array(e)));break;case"moz-chunked-arraybuffer":if(e=b.response,b.readyState!==i.LOADING||!e)break;a.push(new c(new Uint8Array(e)));break;case"ms-stream":if(e=b.response,b.readyState!==i.LOADING)break;var k=new d.MSStreamReader;k.onprogress=function(){k.result.byteLength>a._pos&&(a.push(new c(new Uint8Array(k.result.slice(a._pos)))),a._pos=k.result.byteLength)},k.onload=function(){a.push(null)},k.readAsArrayBuffer(e)}a._xhr.readyState===i.DONE&&"ms-stream"!==a._mode&&a.push(null)}}(a("185").Buffer,a("22")),c.exports}),a.registerDynamic("193",["195","196","185","197","198","191","@empty","194","199","22"],!0,function(a,b,c){return function(b,d){"use strict";function e(b,c){I=I||a("194"),b=b||{},this.objectMode=!!b.objectMode,c instanceof I&&(this.objectMode=this.objectMode||!!b.readableObjectMode);var d=b.highWaterMark,e=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:e,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(H||(H=a("199").StringDecoder),this.decoder=new H(b.encoding),this.encoding=b.encoding)}function f(b){return I=I||a("194"),this instanceof f?(this._readableState=new e(b,this),this.readable=!0,b&&"function"==typeof b.read&&(this._read=b.read),void C.call(this)):new f(b)}function g(a,b,c,d,e){var f=k(b,c);if(f)a.emit("error",f);else if(null===c)b.reading=!1,l(a,b);else if(b.objectMode||c&&c.length>0)if(b.ended&&!e){var g=new Error("stream.push() after EOF");a.emit("error",g)}else if(b.endEmitted&&e){var g=new Error("stream.unshift() after end event");a.emit("error",g)}else{var i;!b.decoder||e||d||(c=b.decoder.write(c),i=!b.objectMode&&0===c.length),e||(b.reading=!1),i||(b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&m(a))),o(a,b)}else e||(b.reading=!1);return h(b)}function h(a){return!a.ended&&(a.needReadable||a.length<a.highWaterMark||0===a.length)}function i(a){return a>=J?a=J:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function j(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:null===a||isNaN(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:0>=a?0:(a>b.highWaterMark&&(b.highWaterMark=i(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}function k(a,c){var d=null;return b.isBuffer(c)||"string"==typeof c||null===c||void 0===c||a.objectMode||(d=new TypeError("Invalid non-string/buffer chunk")),d}function l(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,m(a)}}function m(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(G("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?A(n,a):n(a))}function n(a){G("emit readable"),a.emit("readable"),u(a)}function o(a,b){b.readingMore||(b.readingMore=!0,A(p,a,b))}function p(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length<b.highWaterMark&&(G("maybeReadMore read 0"),a.read(0),c!==b.length);)c=b.length;b.readingMore=!1}function q(a){return function(){var b=a._readableState;G("pipeOnDrain",b.awaitDrain),b.awaitDrain&&b.awaitDrain--,0===b.awaitDrain&&D(a,"data")&&(b.flowing=!0,u(a))}}function r(a){G("readable nexttick read 0"),a.read(0)}function s(a,b){b.resumeScheduled||(b.resumeScheduled=!0,A(t,a,b))}function t(a,b){b.reading||(G("resume read 0"),a.read(0)),b.resumeScheduled=!1,a.emit("resume"),u(a),b.flowing&&!b.reading&&a.read(0)}function u(a){var b=a._readableState;if(G("flow",b.flowing),b.flowing)do var c=a.read();while(null!==c&&b.flowing)}function v(a,c){var d,e=c.buffer,f=c.length,g=!!c.decoder,h=!!c.objectMode;if(0===e.length)return null;if(0===f)d=null;else if(h)d=e.shift();else if(!a||a>=f)d=g?e.join(""):1===e.length?e[0]:b.concat(e,f),e.length=0;else if(a<e[0].length){var i=e[0];d=i.slice(0,a),e[0]=i.slice(a)}else if(a===e[0].length)d=e.shift();else{d=g?"":new b(a);for(var j=0,k=0,l=e.length;l>k&&a>j;k++){var i=e[0],m=Math.min(a-j,i.length);g?d+=i.slice(0,m):i.copy(d,j,0,m),m<i.length?e[0]=i.slice(m):e.shift(),j+=m}}return d}function w(a){var b=a._readableState;if(b.length>0)throw new Error("endReadable called on non-empty stream");b.endEmitted||(b.ended=!0,A(x,b,a))}function x(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function y(a,b){for(var c=0,d=a.length;d>c;c++)b(a[c],c)}function z(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1}c.exports=f;var A=a("195"),B=a("196"),b=a("185").Buffer;f.ReadableState=e;var C,D=(a("197"),function(a,b){return a.listeners(b).length});!function(){try{C=a("stream")}catch(b){}finally{C||(C=a("197").EventEmitter)}}();var b=a("185").Buffer,E=a("198");E.inherits=a("191");var F=a("@empty"),G=void 0;G=F&&F.debuglog?F.debuglog("stream"):function(){};var H;E.inherits(f,C);var I,I;f.prototype.push=function(a,c){var d=this._readableState;return d.objectMode||"string"!=typeof a||(c=c||d.defaultEncoding,c!==d.encoding&&(a=new b(a,c),c="")),g(this,d,a,c,!1)},f.prototype.unshift=function(a){var b=this._readableState;return g(this,b,a,"",!0)},f.prototype.isPaused=function(){return this._readableState.flowing===!1},f.prototype.setEncoding=function(b){return H||(H=a("199").StringDecoder),this._readableState.decoder=new H(b),this._readableState.encoding=b,this};var J=8388608;f.prototype.read=function(a){G("read",a);var b=this._readableState,c=a;if(("number"!=typeof a||a>0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return G("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?w(this):m(this),null;if(a=j(a,b),0===a&&b.ended)return 0===b.length&&w(this),null;var d=b.needReadable;G("need readable",d),(0===b.length||b.length-a<b.highWaterMark)&&(d=!0,G("length less than watermark",d)),(b.ended||b.reading)&&(d=!1,G("reading or ended",d)),d&&(G("do read"),b.reading=!0,b.sync=!0,0===b.length&&(b.needReadable=!0),this._read(b.highWaterMark),b.sync=!1),d&&!b.reading&&(a=j(c,b));var e;return e=a>0?v(a,b):null,null===e&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),c!==a&&b.ended&&0===b.length&&w(this),null!==e&&this.emit("data",e),e},f.prototype._read=function(a){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(a,b){function c(a){G("onunpipe"),a===l&&f()}function e(){G("onend"),a.end()}function f(){G("cleanup"),a.removeListener("close",i),a.removeListener("finish",j),a.removeListener("drain",p),a.removeListener("error",h),a.removeListener("unpipe",c),l.removeListener("end",e),l.removeListener("end",f),l.removeListener("data",g),r=!0,!m.awaitDrain||a._writableState&&!a._writableState.needDrain||p()}function g(b){G("ondata");var c=a.write(b);!1===c&&(1!==m.pipesCount||m.pipes[0]!==a||1!==l.listenerCount("data")||r||(G("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++),l.pause())}function h(b){G("onerror",b),k(),a.removeListener("error",h),0===D(a,"error")&&a.emit("error",b)}function i(){a.removeListener("finish",j),k()}function j(){G("onfinish"),a.removeListener("close",i),k()}function k(){G("unpipe"),l.unpipe(a)}var l=this,m=this._readableState;switch(m.pipesCount){case 0:m.pipes=a;break;case 1:m.pipes=[m.pipes,a];break;default:m.pipes.push(a)}m.pipesCount+=1,G("pipe count=%d opts=%j",m.pipesCount,b);var n=(!b||b.end!==!1)&&a!==d.stdout&&a!==d.stderr,o=n?e:f;m.endEmitted?A(o):l.once("end",o),a.on("unpipe",c);var p=q(l);a.on("drain",p);var r=!1;return l.on("data",g),a._events&&a._events.error?B(a._events.error)?a._events.error.unshift(h):a._events.error=[h,a._events.error]:a.on("error",h),a.once("close",i),a.once("finish",j),a.emit("pipe",l),m.flowing||(G("pipe resume"),l.resume()),a},f.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var f=z(b.pipes,a);return-1===f?this:(b.pipes.splice(f,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},f.prototype.on=function(a,b){var c=C.prototype.on.call(this,a,b);if("data"===a&&!1!==this._readableState.flowing&&this.resume(),"readable"===a&&!this._readableState.endEmitted){var d=this._readableState;d.readableListening||(d.readableListening=!0,d.emittedReadable=!1,d.needReadable=!0,d.reading?d.length&&m(this,d):A(r,this))}return c},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){var a=this._readableState;return a.flowing||(G("resume"),a.flowing=!0,s(this,a)),this},f.prototype.pause=function(){return G("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(G("pause"),this._readableState.flowing=!1,this.emit("pause")),this},f.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(G("wrapped end"),b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(G("wrapped data"),b.decoder&&(e=b.decoder.write(e)),(!b.objectMode||null!==e&&void 0!==e)&&(b.objectMode||e&&e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return y(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){G("wrapped _read",b),c&&(c=!1,a.resume())},d},f._fromList=v}(a("185").Buffer,a("22")),c.exports}),a.registerDynamic("19a",["22"],!0,function(a,b,c){return function(a){"use strict";function b(b){for(var c=new Array(arguments.length-1),d=0;d<c.length;)c[d++]=arguments[d];a.nextTick(function(){b.apply(null,c)})}!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?c.exports=b:c.exports=a.nextTick}(a("22")),c.exports}),a.registerDynamic("195",["19a"],!0,function(a,b,c){return c.exports=a("19a"),c.exports}),a.registerDynamic("19b",[],!0,function(a,b,c){function d(a,b){function c(){if(!d){if(e("throwDeprecation"))throw new Error(b);e("traceDeprecation")?console.trace(b):console.warn(b),d=!0}return a.apply(this,arguments)}if(e("noDeprecation"))return a;var d=!1;return c}function e(a){try{if(!f.localStorage)return!1}catch(b){return!1}var c=f.localStorage[a];return null==c?!1:"true"===String(c).toLowerCase()}var f=this;return c.exports=d,c.exports}),a.registerDynamic("19c",["19b"],!0,function(a,b,c){return c.exports=a("19b"),c.exports}),a.registerDynamic("19d",["195","185","198","191","19c","197","194","22"],!0,function(a,b,c){return function(b,d){"use strict";function e(){}function f(a,b,c){this.chunk=a,this.encoding=b,this.callback=c,this.next=null}function g(b,c){D=D||a("194"),b=b||{},this.objectMode=!!b.objectMode,c instanceof D&&(this.objectMode=this.objectMode||!!b.writableObjectMode);var d=b.highWaterMark,e=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:e,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var f=b.decodeStrings===!1;this.decodeStrings=!f,this.defaultEncoding=b.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){p(c,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new x(this),this.corkedRequestsFree.next=new x(this)}function h(b){return D=D||a("194"),this instanceof h||this instanceof D?(this._writableState=new g(b,this),this.writable=!0,b&&("function"==typeof b.write&&(this._write=b.write),"function"==typeof b.writev&&(this._writev=b.writev)),void B.call(this)):new h(b)}function i(a,b){var c=new Error("write after end");a.emit("error",c),y(b,c)}function j(a,c,d,e){var f=!0;if(!b.isBuffer(d)&&"string"!=typeof d&&null!==d&&void 0!==d&&!c.objectMode){var g=new TypeError("Invalid non-string/buffer chunk");a.emit("error",g),y(e,g),f=!1}return f}function k(a,c,d){return a.objectMode||a.decodeStrings===!1||"string"!=typeof c||(c=new b(c,d)),c}function l(a,c,d,e,g){d=k(c,d,e),b.isBuffer(d)&&(e="buffer");var h=c.objectMode?1:d.length;c.length+=h;var i=c.length<c.highWaterMark;if(i||(c.needDrain=!0),c.writing||c.corked){var j=c.lastBufferedRequest;c.lastBufferedRequest=new f(d,e,g),j?j.next=c.lastBufferedRequest:c.bufferedRequest=c.lastBufferedRequest,c.bufferedRequestCount+=1}else m(a,c,!1,h,d,e,g);return i}function m(a,b,c,d,e,f,g){b.writelen=d,b.writecb=g,b.writing=!0,b.sync=!0,c?a._writev(e,b.onwrite):a._write(e,f,b.onwrite),b.sync=!1}function n(a,b,c,d,e){--b.pendingcb,c?y(e,d):e(d),a._writableState.errorEmitted=!0,a.emit("error",d)}function o(a){a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0}function p(a,b){var c=a._writableState,d=c.sync,e=c.writecb;if(o(c),b)n(a,c,d,b,e);else{var f=t(c);f||c.corked||c.bufferProcessing||!c.bufferedRequest||s(a,c),d?z(q,a,c,f,e):q(a,c,f,e)}}function q(a,b,c,d){c||r(a,b),b.pendingcb--,d(),v(a,b)}function r(a,b){0===b.length&&b.needDrain&&(b.needDrain=!1,a.emit("drain"))}function s(a,b){b.bufferProcessing=!0;var c=b.bufferedRequest;if(a._writev&&c&&c.next){var d=b.bufferedRequestCount,e=new Array(d),f=b.corkedRequestsFree;f.entry=c;for(var g=0;c;)e[g]=c,c=c.next,g+=1;m(a,b,!0,b.length,e,"",f.finish),b.pendingcb++,b.lastBufferedRequest=null,b.corkedRequestsFree=f.next,f.next=null}else{for(;c;){var h=c.chunk,i=c.encoding,j=c.callback,k=b.objectMode?1:h.length;if(m(a,b,!1,k,h,i,j),c=c.next,b.writing)break}null===c&&(b.lastBufferedRequest=null)}b.bufferedRequestCount=0,b.bufferedRequest=c,b.bufferProcessing=!1}function t(a){return a.ending&&0===a.length&&null===a.bufferedRequest&&!a.finished&&!a.writing}function u(a,b){b.prefinished||(b.prefinished=!0,a.emit("prefinish"))}function v(a,b){var c=t(b);return c&&(0===b.pendingcb?(u(a,b),b.finished=!0,a.emit("finish")):u(a,b)),c}function w(a,b,c){b.ending=!0,v(a,b),c&&(b.finished?y(c):a.once("finish",c)),b.ended=!0,a.writable=!1}function x(a){var b=this;this.next=null,this.entry=null,this.finish=function(c){var d=b.entry;for(b.entry=null;d;){var e=d.callback;a.pendingcb--,e(c),d=d.next}a.corkedRequestsFree?a.corkedRequestsFree.next=b:a.corkedRequestsFree=b}}c.exports=h;var y=a("195"),z=!d.browser&&["v0.10","v0.9."].indexOf(d.version.slice(0,5))>-1?setImmediate:y,b=a("185").Buffer;h.WritableState=g;var A=a("198");A.inherits=a("191");var B,C={deprecate:a("19c")};!function(){try{B=a("stream")}catch(b){}finally{B||(B=a("197").EventEmitter)}}();var b=a("185").Buffer;A.inherits(h,B);var D;g.prototype.getBuffer=function(){for(var a=this.bufferedRequest,b=[];a;)b.push(a),a=a.next;return b},function(){try{Object.defineProperty(g.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(a){}}();var D;h.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},h.prototype.write=function(a,c,d){var f=this._writableState,g=!1;return"function"==typeof c&&(d=c,c=null),b.isBuffer(a)?c="buffer":c||(c=f.defaultEncoding),"function"!=typeof d&&(d=e),f.ended?i(this,d):j(this,f,a,d)&&(f.pendingcb++,g=l(this,f,a,c,d)),g},h.prototype.cork=function(){var a=this._writableState;a.corked++},h.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.finished||a.bufferProcessing||!a.bufferedRequest||s(this,a))},h.prototype.setDefaultEncoding=function(a){if("string"==typeof a&&(a=a.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((a+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+a);this._writableState.defaultEncoding=a},h.prototype._write=function(a,b,c){c(new Error("not implemented"))},h.prototype._writev=null,h.prototype.end=function(a,b,c){var d=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!==a&&void 0!==a&&this.write(a,b),d.corked&&(d.corked=1,this.uncork()),d.ending||d.finished||w(this,d,c)}}(a("185").Buffer,a("22")),c.exports}),a.registerDynamic("194",["195","198","191","193","19d","22"],!0,function(a,b,c){return function(b){"use strict";function d(a){return this instanceof d?(j.call(this,a),k.call(this,a),a&&a.readable===!1&&(this.readable=!1),a&&a.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,a&&a.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",e)):new d(a)}function e(){this.allowHalfOpen||this._writableState.ended||h(f,this)}function f(a){a.end()}var g=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b};c.exports=d;var h=a("195"),i=a("198");i.inherits=a("191");var j=a("193"),k=a("19d");i.inherits(d,j);for(var l=g(k.prototype),m=0;m<l.length;m++){var n=l[m];d.prototype[n]||(d.prototype[n]=k.prototype[n])}}(a("22")),c.exports}),a.registerDynamic("19e",["194","198","191","22"],!0,function(a,b,c){return function(b){"use strict";function d(a){this.afterTransform=function(b,c){return e(a,b,c)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function e(a,b,c){var d=a._transformState;d.transforming=!1;var e=d.writecb;if(!e)return a.emit("error",new Error("no writecb in Transform class"));d.writechunk=null,d.writecb=null,null!==c&&void 0!==c&&a.push(c),e(b);var f=a._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&a._read(f.highWaterMark)}function f(a){if(!(this instanceof f))return new f(a);h.call(this,a),this._transformState=new d(this);var b=this;this._readableState.needReadable=!0,this._readableState.sync=!1,a&&("function"==typeof a.transform&&(this._transform=a.transform),"function"==typeof a.flush&&(this._flush=a.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(a){g(b,a)}):g(b)})}function g(a,b){if(b)return a.emit("error",b);var c=a._writableState,d=a._transformState;
|
||
if(c.length)throw new Error("calling transform done when ws.length != 0");if(d.transforming)throw new Error("calling transform done when still transforming");return a.push(null)}c.exports=f;var h=a("194"),i=a("198");i.inherits=a("191"),i.inherits(f,h),f.prototype.push=function(a,b){return this._transformState.needTransform=!1,h.prototype.push.call(this,a,b)},f.prototype._transform=function(a,b,c){throw new Error("not implemented")},f.prototype._write=function(a,b,c){var d=this._transformState;if(d.writecb=c,d.writechunk=a,d.writeencoding=b,!d.transforming){var e=this._readableState;(d.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}},f.prototype._read=function(a){var b=this._transformState;null!==b.writechunk&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0}}(a("22")),c.exports}),a.registerDynamic("19f",["19e","198","191"],!0,function(a,b,c){"use strict";function d(a){return this instanceof d?void e.call(this,a):new d(a)}c.exports=d;var e=a("19e"),f=a("198");return f.inherits=a("191"),f.inherits(d,e),d.prototype._transform=function(a,b,c){c(null,a)},c.exports}),a.registerDynamic("1a0",["193","19d","194","19e","19f","22"],!0,function(a,b,c){return function(d){var e=function(){try{return a("stream")}catch(b){}}();b=c.exports=a("193"),b.Stream=e||b,b.Readable=b,b.Writable=a("19d"),b.Duplex=a("194"),b.Transform=a("19e"),b.PassThrough=a("19f"),!d.browser&&"disable"===d.env.READABLE_STREAM&&e&&(c.exports=e)}(a("22")),c.exports}),a.registerDynamic("192",["1a0"],!0,function(a,b,c){return c.exports=a("1a0"),c.exports}),a.registerDynamic("1a1",["185"],!0,function(a,b,c){return function(b){var b=a("185").Buffer;c.exports=function(a){if(a instanceof Uint8Array){if(0===a.byteOffset&&a.byteLength===a.buffer.byteLength)return a.buffer;if("function"==typeof a.buffer.slice)return a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}if(b.isBuffer(a)){for(var c=new Uint8Array(a.length),d=a.length,e=0;d>e;e++)c[e]=a[e];return c.buffer}throw new Error("Argument must be a Buffer")}}(a("185").Buffer),c.exports}),a.registerDynamic("1a2",["1a1"],!0,function(a,b,c){return c.exports=a("1a1"),c.exports}),a.registerDynamic("1a3",["18f","191","190","192","1a2","185","22"],!0,function(a,b,c){var d=this;return function(b,e){function f(a){return h.fetch?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&a?"arraybuffer":h.vbArray&&a?"text:vbarray":"text"}function g(a){try{var b=a.status;return null!==b&&0!==b}catch(c){return!1}}var h=a("18f"),i=a("191"),j=a("190"),k=a("192"),l=a("1a2"),m=j.IncomingMessage,n=j.readyStates,o=c.exports=function(a){var c=this;k.Writable.call(c),c._opts=a,c._body=[],c._headers={},a.auth&&c.setHeader("Authorization","Basic "+new b(a.auth).toString("base64")),Object.keys(a.headers).forEach(function(b){c.setHeader(b,a.headers[b])});var d;if("prefer-streaming"===a.mode)d=!1;else if("allow-wrong-content-type"===a.mode)d=!h.overrideMimeType;else{if(a.mode&&"default"!==a.mode&&"prefer-fast"!==a.mode)throw new Error("Invalid value for opts.mode");d=!0}c._mode=f(d),c.on("finish",function(){c._onFinish()})};i(o,k.Writable),o.prototype.setHeader=function(a,b){var c=this,d=a.toLowerCase();-1===p.indexOf(d)&&(c._headers[d]={name:a,value:b})},o.prototype.getHeader=function(a){var b=this;return b._headers[a.toLowerCase()].value},o.prototype.removeHeader=function(a){var b=this;delete b._headers[a.toLowerCase()]},o.prototype._onFinish=function(){var a=this;if(!a._destroyed){var c,f=a._opts,g=a._headers;if("POST"!==f.method&&"PUT"!==f.method&&"PATCH"!==f.method||(c=h.blobConstructor?new d.Blob(a._body.map(function(a){return l(a)}),{type:(g["content-type"]||{}).value||""}):b.concat(a._body).toString()),"fetch"===a._mode){var i=Object.keys(g).map(function(a){return[g[a].name,g[a].value]});d.fetch(a._opts.url,{method:a._opts.method,headers:i,body:c,mode:"cors",credentials:f.withCredentials?"include":"same-origin"}).then(function(b){a._fetchResponse=b,a._connect()},function(b){a.emit("error",b)})}else{var j=a._xhr=new d.XMLHttpRequest;try{j.open(a._opts.method,a._opts.url,!0)}catch(k){return void e.nextTick(function(){a.emit("error",k)})}"responseType"in j&&(j.responseType=a._mode.split(":")[0]),"withCredentials"in j&&(j.withCredentials=!!f.withCredentials),"text"===a._mode&&"overrideMimeType"in j&&j.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(g).forEach(function(a){j.setRequestHeader(g[a].name,g[a].value)}),a._response=null,j.onreadystatechange=function(){switch(j.readyState){case n.LOADING:case n.DONE:a._onXHRProgress()}},"moz-chunked-arraybuffer"===a._mode&&(j.onprogress=function(){a._onXHRProgress()}),j.onerror=function(){a._destroyed||a.emit("error",new Error("XHR error"))};try{j.send(c)}catch(k){return void e.nextTick(function(){a.emit("error",k)})}}}},o.prototype._onXHRProgress=function(){var a=this;g(a._xhr)&&!a._destroyed&&(a._response||a._connect(),a._response._onXHRProgress())},o.prototype._connect=function(){var a=this;a._destroyed||(a._response=new m(a._xhr,a._fetchResponse,a._mode),a.emit("response",a._response))},o.prototype._write=function(a,b,c){var d=this;d._body.push(a),c()},o.prototype.abort=o.prototype.destroy=function(){var a=this;a._destroyed=!0,a._response&&(a._response._destroyed=!0),a._xhr&&a._xhr.abort()},o.prototype.end=function(a,b,c){var d=this;"function"==typeof a&&(c=a,a=void 0),k.Writable.prototype.end.call(d,a,b,c)},o.prototype.flushHeaders=function(){},o.prototype.setTimeout=function(){},o.prototype.setNoDelay=function(){},o.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}(a("185").Buffer,a("22")),c.exports}),a.registerDynamic("1a4",[],!0,function(a,b,c){function d(){for(var a={},b=0;b<arguments.length;b++){var c=arguments[b];for(var d in c)e.call(c,d)&&(a[d]=c[d])}return a}c.exports=d;var e=Object.prototype.hasOwnProperty;return c.exports}),a.registerDynamic("1a5",["1a4"],!0,function(a,b,c){return c.exports=a("1a4"),c.exports}),a.registerDynamic("1a6",[],!0,function(a,b,c){return c.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},c.exports}),a.registerDynamic("1a7",["1a6"],!0,function(a,b,c){return c.exports=a("1a6"),c.exports}),a.registerDynamic("1a8",["1a3","1a5","1a7","1a9"],!0,function(a,b,c){var d=this,e=a("1a3"),f=a("1a5"),g=a("1a7"),h=a("1a9"),i=b;return i.request=function(a,b){a="string"==typeof a?h.parse(a):f(a);var c=-1===d.location.protocol.search(/^https?:$/)?"http:":"",g=a.protocol||c,i=a.hostname||a.host,j=a.port,k=a.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),a.url=(i?g+"//"+i:"")+(j?":"+j:"")+k,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var l=new e(a);return b&&l.on("response",b),l},i.get=function(a,b){var c=i.request(a,b);return c.end(),c},i.Agent=function(){},i.Agent.defaultMaxSockets=4,i.STATUS_CODES=g,i.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],c.exports}),a.registerDynamic("1aa",["1a8"],!0,function(a,b,c){return c.exports=a("1a8"),c.exports}),a.registerDynamic("1ab",["1ac","1b1","1ad","1ae","1af","1b0","22"],!0,function(a,b,c){return function(d){b=c.exports=a("1ac"),b.Stream=a("1b1"),b.Readable=b,b.Writable=a("1ad"),b.Duplex=a("1ae"),b.Transform=a("1af"),b.PassThrough=a("1b0"),d.browser||"disable"!==d.env.READABLE_STREAM||(c.exports=a("1b1"))}(a("22")),c.exports}),a.registerDynamic("1b2",["1ad"],!0,function(a,b,c){return c.exports=a("1ad"),c.exports}),a.registerDynamic("1b3",["1ae"],!0,function(a,b,c){return c.exports=a("1ae"),c.exports}),a.registerDynamic("1b4",["1af"],!0,function(a,b,c){return c.exports=a("1af"),c.exports}),a.registerDynamic("1b5",[],!0,function(a,b,c){return c.exports=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)},c.exports}),a.registerDynamic("1b6",["1b5"],!0,function(a,b,c){return c.exports=a("1b5"),c.exports}),a.registerDynamic("1b7",[],!0,function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}return c.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||0>a||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];c.apply(this,f)}else if(g(c)){for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];for(j=c.slice(),d=j.length,i=0;d>i;i++)j[i].apply(this,f)}return!0},d.prototype.addListener=function(a,b){var c;if(!e(b))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,e(b.listener)?b.listener:b),this._events[a]?g(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,g(this._events[a])&&!this._events[a].warned){var c;c=h(this._maxListeners)?d.defaultMaxListeners:this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())}return this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function c(){this.removeListener(a,c),d||(d=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var d=!1;return c.listener=b,this.on(a,c),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(0>d)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.listenerCount=function(a,b){var c;return c=a._events&&a._events[b]?e(a._events[b])?1:a._events[b].length:0},c.exports}),a.registerDynamic("1b8",["1b7"],!0,function(a,b,c){return c.exports=a("1b7"),c.exports}),a.registerDynamic("1b9",["1b8"],!0,function(b,c,d){return d.exports=a._nodeRequire?a._nodeRequire("events"):b("1b8"),d.exports}),a.registerDynamic("197",["1b9"],!0,function(a,b,c){return c.exports=a("1b9"),c.exports}),a.registerDynamic("1ba",["185"],!0,function(a,b,c){return function(c){function d(a){if(a&&!h(a))throw new Error("Unknown encoding: "+a)}function e(a){return a.toString(this.encoding)}function f(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function g(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var c=a("185").Buffer,h=c.isEncoding||function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},i=b.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),d(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=g;break;default:return void(this.write=e)}this.charBuffer=new c(6),this.charReceived=0,this.charLength=0};i.prototype.write=function(a){for(var b="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived<this.charLength)return"";a=a.slice(c,a.length),b=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var d=b.charCodeAt(b.length-1);if(!(d>=55296&&56319>=d)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&56319>=d){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},i.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(2>=b&&c>>4==14){this.charLength=3;break}if(3>=b&&c>>3==30){this.charLength=4;break}}this.charReceived=b},i.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}}(a("185").Buffer),c.exports}),a.registerDynamic("199",["1ba"],!0,function(a,b,c){return c.exports=a("1ba"),c.exports}),a.registerDynamic("1ac",["1b6","185","197","1b1","198","191","@empty","1ae","199","22"],!0,function(a,b,c){return function(b,d){function e(b,c){var d=a("1ae");b=b||{};var e=b.highWaterMark,f=b.objectMode?16:16384;this.highWaterMark=e||0===e?e:f,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!b.objectMode,c instanceof d&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.defaultEncoding=b.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(C||(C=a("199").StringDecoder),this.decoder=new C(b.encoding),this.encoding=b.encoding)}function f(b){a("1ae");return this instanceof f?(this._readableState=new e(b,this),this.readable=!0,void A.call(this)):new f(b)}function g(a,b,c,d,e){var f=k(b,c);if(f)a.emit("error",f);else if(B.isNullOrUndefined(c))b.reading=!1,b.ended||l(a,b);else if(b.objectMode||c&&c.length>0)if(b.ended&&!e){var g=new Error("stream.push() after EOF");a.emit("error",g)}else if(b.endEmitted&&e){var g=new Error("stream.unshift() after end event");a.emit("error",g)}else!b.decoder||e||d||(c=b.decoder.write(c)),e||(b.reading=!1),b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&m(a)),o(a,b);else e||(b.reading=!1);return h(b)}function h(a){return!a.ended&&(a.needReadable||a.length<a.highWaterMark||0===a.length)}function i(a){if(a>=E)a=E;else{a--;for(var b=1;32>b;b<<=1)a|=a>>b;a++}return a}function j(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:isNaN(a)||B.isNull(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:0>=a?0:(a>b.highWaterMark&&(b.highWaterMark=i(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}function k(a,b){var c=null;return B.isBuffer(b)||B.isString(b)||B.isNullOrUndefined(b)||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function l(a,b){if(b.decoder&&!b.ended){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,m(a)}function m(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(D("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?d.nextTick(function(){n(a)}):n(a))}function n(a){D("emit readable"),a.emit("readable"),t(a)}function o(a,b){b.readingMore||(b.readingMore=!0,d.nextTick(function(){p(a,b)}))}function p(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length<b.highWaterMark&&(D("maybeReadMore read 0"),a.read(0),c!==b.length);)c=b.length;b.readingMore=!1}function q(a){return function(){var b=a._readableState;D("pipeOnDrain",b.awaitDrain),b.awaitDrain&&b.awaitDrain--,0===b.awaitDrain&&z.listenerCount(a,"data")&&(b.flowing=!0,t(a))}}function r(a,b){b.resumeScheduled||(b.resumeScheduled=!0,d.nextTick(function(){s(a,b)}))}function s(a,b){b.resumeScheduled=!1,a.emit("resume"),t(a),b.flowing&&!b.reading&&a.read(0)}function t(a){var b=a._readableState;if(D("flow",b.flowing),b.flowing)do var c=a.read();while(null!==c&&b.flowing)}function u(a,c){var d,e=c.buffer,f=c.length,g=!!c.decoder,h=!!c.objectMode;if(0===e.length)return null;if(0===f)d=null;else if(h)d=e.shift();else if(!a||a>=f)d=g?e.join(""):b.concat(e,f),e.length=0;else if(a<e[0].length){var i=e[0];d=i.slice(0,a),e[0]=i.slice(a)}else if(a===e[0].length)d=e.shift();else{d=g?"":new b(a);for(var j=0,k=0,l=e.length;l>k&&a>j;k++){var i=e[0],m=Math.min(a-j,i.length);g?d+=i.slice(0,m):i.copy(d,j,0,m),m<i.length?e[0]=i.slice(m):e.shift(),j+=m}}return d}function v(a){var b=a._readableState;if(b.length>0)throw new Error("endReadable called on non-empty stream");b.endEmitted||(b.ended=!0,d.nextTick(function(){b.endEmitted||0!==b.length||(b.endEmitted=!0,a.readable=!1,a.emit("end"))}))}function w(a,b){for(var c=0,d=a.length;d>c;c++)b(a[c],c)}function x(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1}c.exports=f;var y=a("1b6"),b=a("185").Buffer;f.ReadableState=e;var z=a("197").EventEmitter;z.listenerCount||(z.listenerCount=function(a,b){return a.listeners(b).length});var A=a("1b1"),B=a("198");B.inherits=a("191");var C,D=a("@empty");D=D&&D.debuglog?D.debuglog("stream"):function(){},B.inherits(f,A),f.prototype.push=function(a,c){var d=this._readableState;return B.isString(a)&&!d.objectMode&&(c=c||d.defaultEncoding,c!==d.encoding&&(a=new b(a,c),c="")),g(this,d,a,c,!1)},f.prototype.unshift=function(a){var b=this._readableState;return g(this,b,a,"",!0)},f.prototype.setEncoding=function(b){return C||(C=a("199").StringDecoder),this._readableState.decoder=new C(b),this._readableState.encoding=b,this};var E=8388608;f.prototype.read=function(a){D("read",a);var b=this._readableState,c=a;if((!B.isNumber(a)||a>0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return D("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?v(this):m(this),null;if(a=j(a,b),0===a&&b.ended)return 0===b.length&&v(this),null;var d=b.needReadable;D("need readable",d),(0===b.length||b.length-a<b.highWaterMark)&&(d=!0,D("length less than watermark",d)),(b.ended||b.reading)&&(d=!1,D("reading or ended",d)),d&&(D("do read"),b.reading=!0,b.sync=!0,0===b.length&&(b.needReadable=!0),this._read(b.highWaterMark),b.sync=!1),d&&!b.reading&&(a=j(c,b));var e;return e=a>0?u(a,b):null,B.isNull(e)&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),c!==a&&b.ended&&0===b.length&&v(this),B.isNull(e)||this.emit("data",e),e},f.prototype._read=function(a){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(a,b){function c(a){D("onunpipe"),a===l&&f()}function e(){D("onend"),a.end()}function f(){D("cleanup"),a.removeListener("close",i),a.removeListener("finish",j),a.removeListener("drain",p),a.removeListener("error",h),a.removeListener("unpipe",c),l.removeListener("end",e),l.removeListener("end",f),l.removeListener("data",g),!m.awaitDrain||a._writableState&&!a._writableState.needDrain||p()}function g(b){D("ondata");var c=a.write(b);!1===c&&(D("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++,l.pause())}function h(b){D("onerror",b),k(),a.removeListener("error",h),0===z.listenerCount(a,"error")&&a.emit("error",b)}function i(){a.removeListener("finish",j),k()}function j(){D("onfinish"),a.removeListener("close",i),k()}function k(){D("unpipe"),l.unpipe(a)}var l=this,m=this._readableState;switch(m.pipesCount){case 0:m.pipes=a;break;case 1:m.pipes=[m.pipes,a];break;default:m.pipes.push(a)}m.pipesCount+=1,D("pipe count=%d opts=%j",m.pipesCount,b);var n=(!b||b.end!==!1)&&a!==d.stdout&&a!==d.stderr,o=n?e:f;m.endEmitted?d.nextTick(o):l.once("end",o),a.on("unpipe",c);var p=q(l);return a.on("drain",p),l.on("data",g),a._events&&a._events.error?y(a._events.error)?a._events.error.unshift(h):a._events.error=[h,a._events.error]:a.on("error",h),a.once("close",i),a.once("finish",j),a.emit("pipe",l),m.flowing||(D("pipe resume"),l.resume()),a},f.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var e=x(b.pipes,a);return-1===e?this:(b.pipes.splice(e,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},f.prototype.on=function(a,b){var c=A.prototype.on.call(this,a,b);if("data"===a&&!1!==this._readableState.flowing&&this.resume(),"readable"===a&&this.readable){var e=this._readableState;if(!e.readableListening)if(e.readableListening=!0,e.emittedReadable=!1,e.needReadable=!0,e.reading)e.length&&m(this,e);else{var f=this;d.nextTick(function(){D("readable nexttick read 0"),f.read(0)})}}return c},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){var a=this._readableState;return a.flowing||(D("resume"),a.flowing=!0,a.reading||(D("resume read 0"),this.read(0)),r(this,a)),this},f.prototype.pause=function(){return D("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(D("pause"),this._readableState.flowing=!1,this.emit("pause")),this},f.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(D("wrapped end"),b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(D("wrapped data"),b.decoder&&(e=b.decoder.write(e)),e&&(b.objectMode||e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)B.isFunction(a[e])&&B.isUndefined(this[e])&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return w(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){D("wrapped _read",b),c&&(c=!1,a.resume())},d},f._fromList=u}(a("185").Buffer,a("22")),c.exports}),a.registerDynamic("1ad",["185","198","191","1b1","1ae","22"],!0,function(a,b,c){return function(b,d){function e(a,b,c){this.chunk=a,this.encoding=b,this.callback=c}function f(b,c){var d=a("1ae");b=b||{};var e=b.highWaterMark,f=b.objectMode?16:16384;this.highWaterMark=e||0===e?e:f,this.objectMode=!!b.objectMode,c instanceof d&&(this.objectMode=this.objectMode||!!b.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var g=b.decodeStrings===!1;this.decodeStrings=!g,this.defaultEncoding=b.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){o(c,a)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function g(b){var c=a("1ae");return this instanceof g||this instanceof c?(this._writableState=new f(b,this),this.writable=!0,void x.call(this)):new g(b)}function h(a,b,c){var e=new Error("write after end");a.emit("error",e),d.nextTick(function(){c(e)})}function i(a,b,c,e){var f=!0;if(!(w.isBuffer(c)||w.isString(c)||w.isNullOrUndefined(c)||b.objectMode)){var g=new TypeError("Invalid non-string/buffer chunk");a.emit("error",g),d.nextTick(function(){e(g)}),f=!1}return f}function j(a,c,d){return!a.objectMode&&a.decodeStrings!==!1&&w.isString(c)&&(c=new b(c,d)),c}function k(a,b,c,d,f){c=j(b,c,d),w.isBuffer(c)&&(d="buffer");var g=b.objectMode?1:c.length;b.length+=g;var h=b.length<b.highWaterMark;return h||(b.needDrain=!0),b.writing||b.corked?b.buffer.push(new e(c,d,f)):l(a,b,!1,g,c,d,f),h}function l(a,b,c,d,e,f,g){b.writelen=d,b.writecb=g,b.writing=!0,b.sync=!0,c?a._writev(e,b.onwrite):a._write(e,f,b.onwrite),b.sync=!1}function m(a,b,c,e,f){c?d.nextTick(function(){b.pendingcb--,f(e)}):(b.pendingcb--,f(e)),a._writableState.errorEmitted=!0,a.emit("error",e)}function n(a){a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0}function o(a,b){var c=a._writableState,e=c.sync,f=c.writecb;if(n(c),b)m(a,c,e,b,f);else{var g=s(a,c);g||c.corked||c.bufferProcessing||!c.buffer.length||r(a,c),e?d.nextTick(function(){p(a,c,g,f)}):p(a,c,g,f)}}function p(a,b,c,d){c||q(a,b),b.pendingcb--,d(),u(a,b)}function q(a,b){0===b.length&&b.needDrain&&(b.needDrain=!1,a.emit("drain"))}function r(a,b){if(b.bufferProcessing=!0,a._writev&&b.buffer.length>1){for(var c=[],d=0;d<b.buffer.length;d++)c.push(b.buffer[d].callback);b.pendingcb++,l(a,b,!0,b.length,b.buffer,"",function(a){for(var d=0;d<c.length;d++)b.pendingcb--,c[d](a)}),b.buffer=[]}else{for(var d=0;d<b.buffer.length;d++){var e=b.buffer[d],f=e.chunk,g=e.encoding,h=e.callback,i=b.objectMode?1:f.length;if(l(a,b,!1,i,f,g,h),b.writing){d++;break}}d<b.buffer.length?b.buffer=b.buffer.slice(d):b.buffer.length=0}b.bufferProcessing=!1}function s(a,b){return b.ending&&0===b.length&&!b.finished&&!b.writing}function t(a,b){b.prefinished||(b.prefinished=!0,a.emit("prefinish"))}function u(a,b){var c=s(a,b);return c&&(0===b.pendingcb?(t(a,b),b.finished=!0,a.emit("finish")):t(a,b)),c}function v(a,b,c){b.ending=!0,u(a,b),c&&(b.finished?d.nextTick(c):a.once("finish",c)),b.ended=!0}c.exports=g;var b=a("185").Buffer;g.WritableState=f;var w=a("198");w.inherits=a("191");var x=a("1b1");w.inherits(g,x),g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},g.prototype.write=function(a,b,c){var d=this._writableState,e=!1;return w.isFunction(b)&&(c=b,b=null),w.isBuffer(a)?b="buffer":b||(b=d.defaultEncoding),w.isFunction(c)||(c=function(){}),d.ended?h(this,d,c):i(this,d,a,c)&&(d.pendingcb++,e=k(this,d,a,b,c)),e},g.prototype.cork=function(){var a=this._writableState;a.corked++},g.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.finished||a.bufferProcessing||!a.buffer.length||r(this,a))},g.prototype._write=function(a,b,c){c(new Error("not implemented"))},g.prototype._writev=null,g.prototype.end=function(a,b,c){var d=this._writableState;w.isFunction(a)?(c=a,a=null,b=null):w.isFunction(b)&&(c=b,b=null),w.isNullOrUndefined(a)||this.write(a,b),d.corked&&(d.corked=1,this.uncork()),d.ending||d.finished||v(this,d,c)}}(a("185").Buffer,a("22")),c.exports}),a.registerDynamic("1ae",["198","191","1ac","1ad","22"],!0,function(a,b,c){return function(b){function d(a){return this instanceof d?(i.call(this,a),j.call(this,a),a&&a.readable===!1&&(this.readable=!1),a&&a.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,a&&a.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",e)):new d(a)}function e(){this.allowHalfOpen||this._writableState.ended||b.nextTick(this.end.bind(this))}function f(a,b){for(var c=0,d=a.length;d>c;c++)b(a[c],c)}c.exports=d;var g=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b},h=a("198");h.inherits=a("191");var i=a("1ac"),j=a("1ad");h.inherits(d,i),f(g(j.prototype),function(a){d.prototype[a]||(d.prototype[a]=j.prototype[a])})}(a("22")),c.exports}),a.registerDynamic("1af",["1ae","198","191","22"],!0,function(a,b,c){return function(b){function d(a,b){this.afterTransform=function(a,c){return e(b,a,c)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function e(a,b,c){var d=a._transformState;d.transforming=!1;var e=d.writecb;if(!e)return a.emit("error",new Error("no writecb in Transform class"));d.writechunk=null,d.writecb=null,i.isNullOrUndefined(c)||a.push(c),e&&e(b);var f=a._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&a._read(f.highWaterMark)}function f(a){if(!(this instanceof f))return new f(a);h.call(this,a),this._transformState=new d(a,this);var b=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",function(){i.isFunction(this._flush)?this._flush(function(a){g(b,a)}):g(b)})}function g(a,b){if(b)return a.emit("error",b);var c=a._writableState,d=a._transformState;if(c.length)throw new Error("calling transform done when ws.length != 0");if(d.transforming)throw new Error("calling transform done when still transforming");return a.push(null)}c.exports=f;var h=a("1ae"),i=a("198");i.inherits=a("191"),i.inherits(f,h),f.prototype.push=function(a,b){return this._transformState.needTransform=!1,h.prototype.push.call(this,a,b)},f.prototype._transform=function(a,b,c){throw new Error("not implemented")},f.prototype._write=function(a,b,c){var d=this._transformState;if(d.writecb=c,d.writechunk=a,d.writeencoding=b,!d.transforming){var e=this._readableState;(d.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}},f.prototype._read=function(a){var b=this._transformState;i.isNull(b.writechunk)||!b.writecb||b.transforming?b.needTransform=!0:(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform))}}(a("22")),c.exports}),a.registerDynamic("1bb",["185"],!0,function(a,b,c){return function(a){
|
||
function c(a){return Array.isArray?Array.isArray(a):"[object Array]"===q(a)}function d(a){return"boolean"==typeof a}function e(a){return null===a}function f(a){return null==a}function g(a){return"number"==typeof a}function h(a){return"string"==typeof a}function i(a){return"symbol"==typeof a}function j(a){return void 0===a}function k(a){return"[object RegExp]"===q(a)}function l(a){return"object"==typeof a&&null!==a}function m(a){return"[object Date]"===q(a)}function n(a){return"[object Error]"===q(a)||a instanceof Error}function o(a){return"function"==typeof a}function p(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function q(a){return Object.prototype.toString.call(a)}b.isArray=c,b.isBoolean=d,b.isNull=e,b.isNullOrUndefined=f,b.isNumber=g,b.isString=h,b.isSymbol=i,b.isUndefined=j,b.isRegExp=k,b.isObject=l,b.isDate=m,b.isError=n,b.isFunction=o,b.isPrimitive=p,b.isBuffer=a.isBuffer}(a("185").Buffer),c.exports}),a.registerDynamic("198",["1bb"],!0,function(a,b,c){return c.exports=a("1bb"),c.exports}),a.registerDynamic("1b0",["1af","198","191"],!0,function(a,b,c){function d(a){return this instanceof d?void e.call(this,a):new d(a)}c.exports=d;var e=a("1af"),f=a("198");return f.inherits=a("191"),f.inherits(d,e),d.prototype._transform=function(a,b,c){c(null,a)},c.exports}),a.registerDynamic("1bc",["1b0"],!0,function(a,b,c){return c.exports=a("1b0"),c.exports}),a.registerDynamic("1b1",["197","191","1ab","1b2","1b3","1b4","1bc"],!0,function(a,b,c){function d(){e.call(this)}c.exports=d;var e=a("197").EventEmitter,f=a("191");return f(d,e),d.Readable=a("1ab"),d.Writable=a("1b2"),d.Duplex=a("1b3"),d.Transform=a("1b4"),d.PassThrough=a("1bc"),d.Stream=d,d.prototype.pipe=function(a,b){function c(b){a.writable&&!1===a.write(b)&&j.pause&&j.pause()}function d(){j.readable&&j.resume&&j.resume()}function f(){k||(k=!0,a.end())}function g(){k||(k=!0,"function"==typeof a.destroy&&a.destroy())}function h(a){if(i(),0===e.listenerCount(this,"error"))throw a}function i(){j.removeListener("data",c),a.removeListener("drain",d),j.removeListener("end",f),j.removeListener("close",g),j.removeListener("error",h),a.removeListener("error",h),j.removeListener("end",i),j.removeListener("close",i),a.removeListener("close",i)}var j=this;j.on("data",c),a.on("drain",d),a._isStdio||b&&b.end===!1||(j.on("end",f),j.on("close",g));var k=!1;return j.on("error",h),a.on("error",h),j.on("end",i),j.on("close",i),a.on("close",i),a.emit("pipe",j),a},c.exports}),a.registerDynamic("1bd",["1b1"],!0,function(a,b,c){return c.exports=a("1b1"),c.exports}),a.registerDynamic("1be",["1bd"],!0,function(b,c,d){return d.exports=a._nodeRequire?a._nodeRequire("stream"):b("1bd"),d.exports}),a.registerDynamic("1bf",["1be"],!0,function(a,b,c){return c.exports=a("1be"),c.exports}),a.registerDynamic("1c0",["1bf","17e"],!0,function(a,b,c){function d(a){for(var b=a.getAllResponseHeaders().split(/\r?\n/),c={},d=0;d<b.length;d++){var e=b[d];if(""!==e){var f=e.match(/^([^:]+):\s*(.*)/);if(f){var g=f[1].toLowerCase(),h=f[2];void 0!==c[g]?i(c[g])?c[g].push(h):c[g]=[c[g],h]:c[g]=h}else c[e]=!0}}return c}var e=a("1bf"),f=a("17e"),g=c.exports=function(a){this.offset=0,this.readable=!0};f.inherits(g,e);var h={streaming:!0,status2:!0};g.prototype.getResponse=function(a){var b=String(a.responseType).toLowerCase();return"blob"===b?a.responseBlob||a.response:"arraybuffer"===b?a.response:a.responseText},g.prototype.getHeader=function(a){return this.headers[a.toLowerCase()]},g.prototype.handle=function(a){if(2===a.readyState&&h.status2){try{this.statusCode=a.status,this.headers=d(a)}catch(b){h.status2=!1}h.status2&&this.emit("ready")}else if(h.streaming&&3===a.readyState){try{this.statusCode||(this.statusCode=a.status,this.headers=d(a),this.emit("ready"))}catch(b){}try{this._emitData(a)}catch(b){h.streaming=!1}}else 4===a.readyState&&(this.statusCode||(this.statusCode=a.status,this.emit("ready")),this._emitData(a),a.error?this.emit("error",this.getResponse(a)):this.emit("end"),this.emit("close"))},g.prototype._emitData=function(a){var b=this.getResponse(a);return b.toString().match(/ArrayBuffer/)?(this.emit("data",new Uint8Array(b,this.offset)),void(this.offset=b.byteLength)):void(b.length>this.offset&&(this.emit("data",b.slice(this.offset)),this.offset=b.length))};var i=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return c.exports}),a.registerDynamic("1c1",[],!0,function(a,b,c){return function(){function a(a){this.message=a}var c="undefined"!=typeof b?b:this,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.prototype=new Error,a.prototype.name="InvalidCharacterError",c.btoa||(c.btoa=function(b){for(var c,e,f=0,g=d,h="";b.charAt(0|f)||(g="=",f%1);h+=g.charAt(63&c>>8-f%1*8)){if(e=b.charCodeAt(f+=.75),e>255)throw new a("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");c=c<<8|e}return h}),c.atob||(c.atob=function(b){if(b=b.replace(/=+$/,""),b.length%4==1)throw new a("'atob' failed: The string to be decoded is not correctly encoded.");for(var c,e,f=0,g=0,h="";e=b.charAt(g++);~e&&(c=f%4?64*c+e:e,f++%4)?h+=String.fromCharCode(255&c>>(-2*f&6)):0)e=d.indexOf(e);return h})}(),c.exports}),a.registerDynamic("1c2",["1c1"],!0,function(a,b,c){return c.exports=a("1c1"),c.exports}),a.registerDynamic("1c3",["1bf","1c0","1c2","191"],!0,function(a,b,c){var d=a("1bf"),e=a("1c0"),f=a("1c2"),g=a("191"),h=c.exports=function(a,b){var c=this;c.writable=!0,c.xhr=a,c.body=[],c.uri=(b.protocol||"http:")+"//"+b.host+(b.port?":"+b.port:"")+(b.path||"/"),"undefined"==typeof b.withCredentials&&(b.withCredentials=!0);try{a.withCredentials=b.withCredentials}catch(d){}if(b.responseType)try{a.responseType=b.responseType}catch(d){}if(a.open(b.method||"GET",c.uri,!0),a.onerror=function(a){c.emit("error",new Error("Network error"))},c._headers={},b.headers)for(var g=i(b.headers),h=0;h<g.length;h++){var j=g[h];if(c.isSafeRequestHeader(j)){var k=b.headers[j];c.setHeader(j,k)}}b.auth&&this.setHeader("Authorization","Basic "+f.btoa(b.auth));var l=new e;l.on("close",function(){c.emit("close")}),l.on("ready",function(){c.emit("response",l)}),l.on("error",function(a){c.emit("error",a)}),a.onreadystatechange=function(){a.__aborted||l.handle(a)}};g(h,d),h.prototype.setHeader=function(a,b){this._headers[a.toLowerCase()]=b},h.prototype.getHeader=function(a){return this._headers[a.toLowerCase()]},h.prototype.removeHeader=function(a){delete this._headers[a.toLowerCase()]},h.prototype.write=function(a){this.body.push(a)},h.prototype.destroy=function(a){this.xhr.__aborted=!0,this.xhr.abort(),this.emit("close")},h.prototype.end=function(a){void 0!==a&&this.body.push(a);for(var b=i(this._headers),c=0;c<b.length;c++){var d=b[c],e=this._headers[d];if(j(e))for(var f=0;f<e.length;f++)this.xhr.setRequestHeader(d,e[f]);else this.xhr.setRequestHeader(d,e)}if(0===this.body.length)this.xhr.send("");else if("string"==typeof this.body[0])this.xhr.send(this.body.join(""));else if(j(this.body[0])){for(var g=[],c=0;c<this.body.length;c++)g.push.apply(g,this.body[c]);this.xhr.send(g)}else if(/Array/.test(Object.prototype.toString.call(this.body[0]))){for(var h=0,c=0;c<this.body.length;c++)h+=this.body[c].length;for(var g=new this.body[0].constructor(h),k=0,c=0;c<this.body.length;c++)for(var m=this.body[c],f=0;f<m.length;f++)g[k++]=m[f];this.xhr.send(g)}else if(l(this.body[0]))this.xhr.send(this.body[0]);else{for(var g="",c=0;c<this.body.length;c++)g+=this.body[c].toString();this.xhr.send(g)}},h.unsafeHeaders=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","content-transfer-encoding","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"],h.prototype.isSafeRequestHeader=function(a){return a?-1===k(h.unsafeHeaders,a.toLowerCase()):!1};var i=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b},j=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},k=function(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0;c<a.length;c++)if(a[c]===b)return c;return-1},l=function(a){return"undefined"!=typeof Blob&&a instanceof Blob?!0:"undefined"!=typeof ArrayBuffer&&a instanceof ArrayBuffer?!0:"undefined"!=typeof FormData&&a instanceof FormData?!0:void 0};return c.exports}),a.registerDynamic("1c4",["197","1c3","1a9"],!0,function(b,c,d){if(a._nodeRequire)d.exports=a._nodeRequire("http");else{var e=d.exports,f=(b("197").EventEmitter,b("1c3")),g=b("1a9");e.request=function(a,b){"string"==typeof a&&(a=g.parse(a)),a||(a={}),a.host||a.port||(a.port=parseInt(window.location.port,10)),!a.host&&a.hostname&&(a.host=a.hostname),a.protocol||(a.scheme?a.protocol=a.scheme+":":a.protocol=window.location.protocol),a.host||(a.host=window.location.hostname||window.location.host),/:/.test(a.host)&&(a.port||(a.port=a.host.split(":")[1]),a.host=a.host.split(":")[0]),a.port||(a.port="https:"==a.protocol?443:80);var c=new f(new h,a);return b&&c.on("response",b),c},e.get=function(a,b){a.method="GET";var c=e.request(a,b);return c.end(),c},e.Agent=function(){},e.Agent.defaultMaxSockets=4;var h=function(){if("undefined"==typeof window)throw new Error("no window object present");if(window.XMLHttpRequest)return window.XMLHttpRequest;if(window.ActiveXObject){for(var a=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"],b=0;b<a.length;b++)try{var c=new window.ActiveXObject(a[b]);return function(){if(c){var d=c;return c=null,d}return new window.ActiveXObject(a[b])}}catch(d){}throw new Error("ajax not supported in this browser")}throw new Error("ajax not supported in this browser")}();e.STATUS_CODES={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}}return d.exports}),a.registerDynamic("1c5",["1c4"],!0,function(a,b,c){return c.exports=a("1c4"),c.exports}),a.registerDynamic("1c6",["1c5"],!0,function(a,b,c){var d=a("1c5"),e=c.exports;for(var f in d)d.hasOwnProperty(f)&&(e[f]=d[f]);return e.request=function(a,b){return a||(a={}),a.scheme="https",d.request.call(this,a,b)},c.exports}),a.registerDynamic("1c7",["1c6"],!0,function(a,b,c){return c.exports=a("1c6"),c.exports}),a.registerDynamic("1c8",["1c7"],!0,function(b,c,d){return d.exports=a._nodeRequire?a._nodeRequire("https"):b("1c7"),d.exports}),a.registerDynamic("1c9",["1c8"],!0,function(a,b,c){return c.exports=a("1c8"),c.exports}),a.registerDynamic("1ca",["1aa","1c9","179","18d","18e","184","185","22"],!0,function(a,b,c){return function(b,d){"use strict";function e(a,c,d){return new l(function(g,h){a=j.parse(a),d=d||[],d.push(a.href),f(a,c).then(function(f){if(f.statusCode>=400)throw i({status:f.statusCode},"HTTP ERROR %d",f.statusCode);if(f.statusCode>=300)if(d.length>c.redirects)h(i({status:f.statusCode},"Error downloading %s. \nToo many redirects: \n %s",d[0],d.join(" \n ")));else{if(!f.headers.location)throw i({status:f.statusCode},"HTTP %d redirect with no location header",f.statusCode);k("HTTP %d redirect %s -> %s",f.statusCode,a.href,f.headers.location);var l=j.resolve(a,f.headers.location);e(l,c,d).then(g,h)}else g(f.body||new b(0))})["catch"](function(b){h(i(b,"Error downloading",a.href))})})}function f(a,c){return new l(function(d,e){k("GET",a.href);var f="https:"===a.protocol?h:g,i=f.get({hostname:a.hostname,port:a.port,path:a.path,auth:a.auth,headers:c.headers||{},withCredentials:c.withCredentials});"function"==typeof i.setTimeout&&i.setTimeout(c.timeout),i.on("timeout",function(){i.abort()}),i.on("error",e),i.once("response",function(a){a.body=new b(0),a.on("data",function(c){a.body=b.concat([a.body,new b(c)])}),a.on("error",e),a.on("end",function(){d(a)})})})}var g=a("1aa"),h=a("1c9"),i=a("179"),j=a("18d"),k=a("18e"),l=a("184");c.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead:function(a){return j.isHttp(a.url)},read:function(a){var b=j.parse(a.url);return d.browser&&!b.protocol&&(b.protocol=j.parse(location.href).protocol),e(b,this)}}}(a("185").Buffer,a("22")),c.exports}),a.registerDynamic("1cb",["185","22"],!0,function(a,b,c){return function(a,b){"use strict";c.exports={order:100,canValidate:function(a){return!!a.resolved},validate:function(a){}}}(a("185").Buffer,a("22")),c.exports}),a.registerDynamic("180",["183","186","188","189","18c","1ca","1cb"],!0,function(a,b,c){"use strict";function d(a){e(this,d.defaults),e(this,a)}function e(a,b){if(f(b))for(var c=Object.keys(b),d=0;d<c.length;d++){var g=c[d],h=b[g],i=a[g];f(h)?a[g]=e(i||{},h):void 0!==h&&(a[g]=h)}return a}function f(a){return a&&"object"==typeof a&&!Array.isArray(a)&&!(a instanceof RegExp)&&!(a instanceof Date)}var g=a("183"),h=a("186"),i=a("188"),j=a("189"),k=a("18c"),l=a("1ca"),m=a("1cb");return c.exports=d,d.defaults={parse:{json:g,yaml:h,text:i,binary:j},resolve:{file:k,http:l,external:!0},dereference:{circular:!0},validate:{zschema:m}},c.exports}),a.registerDynamic("1cc",["179","1cd","18d"],!0,function(a,b,c){"use strict";function d(){this.circular=!1,this._$refs={},this._root$Ref=null}function e(a,b){var c=Object.keys(a);return b=Array.isArray(b[0])?b[0]:Array.prototype.slice.call(b),b.length>0&&b[0]&&(c=c.filter(function(c){return-1!==b.indexOf(a[c].pathType)})),c.map(function(b){return{encoded:b,decoded:"file"===a[b].pathType?h.toFileSystemPath(b,!0):b}})}var f=a("179"),g=a("1cd"),h=a("18d");return c.exports=d,d.prototype.paths=function(a){var b=e(this._$refs,arguments);return b.map(function(a){return a.decoded})},d.prototype.values=function(a){var b=this._$refs,c=e(b,arguments);return c.reduce(function(a,c){return a[c.decoded]=b[c.encoded].value,a},{})},d.prototype.toJSON=d.prototype.values,d.prototype.exists=function(a,b){try{return this._resolve(a,b),!0}catch(c){return!1}},d.prototype.get=function(a,b){return this._resolve(a,b).value},d.prototype.set=function(a,b){a=h.resolve(this._root$Ref.path,a);var c=h.stripHash(a),d=this._$refs[c];if(!d)throw f('Error resolving $ref pointer "%s". \n"%s" not found.',a,c);d.set(a,b)},d.prototype._add=function(a,b){var c=h.stripHash(a),d=new g;return d.path=c,d.value=b,d.$refs=this,this._$refs[c]=d,this._root$Ref=this._root$Ref||d,d},d.prototype._resolve=function(a,b){a=h.resolve(this._root$Ref.path,a);var c=h.stripHash(a),d=this._$refs[c];if(!d)throw f('Error resolving $ref pointer "%s". \n"%s" not found.',a,c);return d.resolve(a,b)},d.prototype._get$Ref=function(a){a=h.resolve(this._root$Ref.path,a);var b=h.stripHash(a);return this._$refs[b]},c.exports}),a.registerDynamic("1ce",["184","18e"],!0,function(a,b,c){"use strict";function d(a,b,c,d){var e=a[b];if("function"==typeof e)return e.apply(a,[c,d]);if(!d){if(e instanceof RegExp)return e.test(c.url);if("string"==typeof e)return e===c.extension;if(Array.isArray(e))return-1!==e.indexOf(c.extension)}return e}var e=a("184"),f=a("18e");return b.all=function(a){return Object.keys(a).filter(function(b){return"object"==typeof a[b]}).map(function(b){return a[b].name=b,a[b]})},b.filter=function(a,b,c){return a.filter(function(a){return!!d(a,b,c)})},b.sort=function(a){return a.forEach(function(a){a.order=a.order||Number.MAX_SAFE_INTEGER}),a.sort(function(a,b){return a.order-b.order})},b.run=function(a,b,c){var g,h,i=0;return new e(function(e,j){function k(){if(g=a[i++],!g)return j(h);try{f(" %s",g.name);var e=d(g,b,c,l);e&&"function"==typeof e.then?e.then(m,n):void 0!==e&&m(e)}catch(k){n(k)}}function l(a,b){a?n(a):m(b)}function m(a){f(" success"),e({plugin:g,result:a})}function n(a){f(" %s",a.message||a),h=a,k()}k()})},c.exports}),a.registerDynamic("1cf",["22"],!0,function(a,b,c){var d,e=this;return function(b){(function(){"use strict";function f(a){return"function"==typeof a||"object"==typeof a&&null!==a}function g(a){return"function"==typeof a}function h(a){U=a}function i(a){Y=a}function j(){return function(){b.nextTick(o)}}function k(){return function(){T(o)}}function l(){var a=0,b=new _(o),c=document.createTextNode("");return b.observe(c,{characterData:!0}),function(){c.data=a=++a%2}}function m(){var a=new MessageChannel;return a.port1.onmessage=o,function(){a.port2.postMessage(0)}}function n(){return function(){setTimeout(o,1)}}function o(){for(var a=0;X>a;a+=2){var b=ca[a],c=ca[a+1];b(c),ca[a]=void 0,ca[a+1]=void 0}X=0}function p(){try{var b=a,c=b("vertx");return T=c.runOnLoop||c.runOnContext,k()}catch(d){return n()}}function q(a,b){var c=this,d=c._state;if(d===ga&&!a||d===ha&&!b)return this;var e=new this.constructor(s),f=c._result;if(d){var g=arguments[d-1];Y(function(){I(d,e,g,f)})}else E(c,e,a,b);return e}function r(a){var b=this;if(a&&"object"==typeof a&&a.constructor===b)return a;var c=new b(s);return A(c,a),c}function s(){}function t(){return new TypeError("You cannot resolve a promise with itself")}function u(){return new TypeError("A promises callback cannot return that same promise.")}function v(a){try{return a.then}catch(b){return ia.error=b,ia}}function w(a,b,c,d){try{a.call(b,c,d)}catch(e){return e}}function x(a,b,c){Y(function(a){var d=!1,e=w(c,b,function(c){d||(d=!0,b!==c?A(a,c):C(a,c))},function(b){d||(d=!0,D(a,b))},"Settle: "+(a._label||" unknown promise"));!d&&e&&(d=!0,D(a,e))},a)}function y(a,b){b._state===ga?C(a,b._result):b._state===ha?D(a,b._result):E(b,void 0,function(b){A(a,b)},function(b){D(a,b)})}function z(a,b,c){b.constructor===a.constructor&&c===da&&constructor.resolve===ea?y(a,b):c===ia?D(a,ia.error):void 0===c?C(a,b):g(c)?x(a,b,c):C(a,b)}function A(a,b){a===b?D(a,t()):f(b)?z(a,b,v(b)):C(a,b)}function B(a){a._onerror&&a._onerror(a._result),F(a)}function C(a,b){a._state===fa&&(a._result=b,a._state=ga,0!==a._subscribers.length&&Y(F,a))}function D(a,b){a._state===fa&&(a._state=ha,a._result=b,Y(B,a))}function E(a,b,c,d){var e=a._subscribers,f=e.length;a._onerror=null,e[f]=b,e[f+ga]=c,e[f+ha]=d,0===f&&a._state&&Y(F,a)}function F(a){var b=a._subscribers,c=a._state;if(0!==b.length){for(var d,e,f=a._result,g=0;g<b.length;g+=3)d=b[g],e=b[g+c],d?I(c,d,e,f):e(f);a._subscribers.length=0}}function G(){this.error=null}function H(a,b){try{return a(b)}catch(c){return ja.error=c,ja}}function I(a,b,c,d){var e,f,h,i,j=g(c);if(j){if(e=H(c,d),e===ja?(i=!0,f=e.error,e=null):h=!0,b===e)return void D(b,u())}else e=d,h=!0;b._state!==fa||(j&&h?A(b,e):i?D(b,f):a===ga?C(b,e):a===ha&&D(b,e))}function J(a,b){try{b(function(b){A(a,b)},function(b){D(a,b)})}catch(c){D(a,c)}}function K(a){return new pa(this,a).promise}function L(a){function b(a){A(e,a)}function c(a){D(e,a)}var d=this,e=new d(s);if(!W(a))return D(e,new TypeError("You must pass an array to race.")),e;for(var f=a.length,g=0;e._state===fa&&f>g;g++)E(d.resolve(a[g]),void 0,b,c);return e}function M(a){var b=this,c=new b(s);return D(c,a),c}function N(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function O(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function P(a){this._id=na++,this._state=void 0,this._result=void 0,this._subscribers=[],s!==a&&("function"!=typeof a&&N(),this instanceof P?J(this,a):O())}function Q(a,b){this._instanceConstructor=a,this.promise=new a(s),Array.isArray(b)?(this._input=b,this.length=b.length,this._remaining=b.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&C(this.promise,this._result))):D(this.promise,this._validationError())}function R(){var a;if("undefined"!=typeof e)a=e;else if("undefined"!=typeof self)a=self;else try{a=Function("return this")()}catch(b){throw new Error("polyfill failed because global object is unavailable in this environment")}var c=a.Promise;c&&"[object Promise]"===Object.prototype.toString.call(c.resolve())&&!c.cast||(a.Promise=oa)}var S;S=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)};var T,U,V,W=S,X=0,Y=function(a,b){ca[X]=a,ca[X+1]=b,X+=2,2===X&&(U?U(o):V())},Z="undefined"!=typeof window?window:void 0,$=Z||{},_=$.MutationObserver||$.WebKitMutationObserver,aa="undefined"!=typeof b&&"[object process]"==={}.toString.call(b),ba="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,ca=new Array(1e3);V=aa?j():_?l():ba?m():void 0===Z&&"function"==typeof a?p():n();var da=q,ea=r,fa=void 0,ga=1,ha=2,ia=new G,ja=new G,ka=K,la=L,ma=M,na=0,oa=P;P.all=ka,P.race=la,P.resolve=ea,P.reject=ma,P._setScheduler=h,P._setAsap=i,P._asap=Y,P.prototype={constructor:P,then:da,"catch":function(a){return this.then(null,a)}};var pa=Q;Q.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},Q.prototype._enumerate=function(){for(var a=this.length,b=this._input,c=0;this._state===fa&&a>c;c++)this._eachEntry(b[c],c)},Q.prototype._eachEntry=function(a,b){var c=this._instanceConstructor,d=c.resolve;if(d===ea){var e=v(a);if(e===da&&a._state!==fa)this._settledAt(a._state,b,a._result);else if("function"!=typeof e)this._remaining--,this._result[b]=a;else if(c===oa){var f=new c(s);z(f,a,e),this._willSettleAt(f,b)}else this._willSettleAt(new c(function(b){b(a)}),b)}else this._willSettleAt(d(a),b)},Q.prototype._settledAt=function(a,b,c){var d=this.promise;d._state===fa&&(this._remaining--,a===ha?D(d,c):this._result[b]=c),0===this._remaining&&C(d,this._result)},Q.prototype._willSettleAt=function(a,b){var c=this;E(a,void 0,function(a){c._settledAt(ga,b,a)},function(a){c._settledAt(ha,b,a)})};var qa=R,ra={Promise:oa,polyfill:qa};"function"==typeof d&&d.amd?d(function(){return ra}):"undefined"!=typeof c&&c.exports?c.exports=ra:"undefined"!=typeof this&&(this.ES6Promise=ra),qa()}).call(this)}(a("22")),c.exports}),a.registerDynamic("182",["1cf"],!0,function(a,b,c){return c.exports=a("1cf"),c.exports}),a.registerDynamic("184",["182"],!0,function(a,b,c){"use strict";return c.exports="function"==typeof Promise?Promise:a("182").Promise,c.exports}),a.registerDynamic("1d0",["179","18e","18d","1ce","184","185"],!0,function(a,b,c){return function(b){"use strict";function d(a,b,c){try{a=j.stripHash(a);var d=b._add(a),g={url:a,extension:j.getExtension(a)};return e(g,c).then(function(a){return d.pathType=a.plugin.name,g.data=a.result,f(g,c)}).then(function(a){return d.value=a.result,a.result})}catch(h){return l.reject(h)}}function e(a,b){return new l(function(c,d){function e(b){d(!b||b instanceof SyntaxError?h.syntax('Unable to resolve $ref pointer "%s"',a.url):b)}i("Reading %s",a.url);var f=k.all(b.resolve);f=k.filter(f,"canRead",a),k.sort(f),k.run(f,"read",a).then(c,e)})}function f(a,b){return new l(function(c,d){function e(b){!b.plugin.allowEmpty&&g(b.result)?d(h.syntax('Error parsing "%s" as %s. \nParsed value is empty',a.url,b.plugin.name)):c(b)}function f(b){b?(b=b instanceof Error?b:new Error(b),d(h.syntax(b,"Error parsing %s",a.url))):d(h.syntax("Unable to parse %s",a.url))}i("Parsing %s",a.url);var j=k.all(b.parse),l=k.filter(j,"canParse",a),m=l.length>0?l:j;k.sort(m),k.run(m,"parse",a).then(e,f)})}function g(a){return void 0===a||"object"==typeof a&&0===Object.keys(a).length||"string"==typeof a&&0===a.trim().length||b.isBuffer(a)&&0===a.length}var h=a("179"),i=a("18e"),j=a("18d"),k=a("1ce"),l=a("184");c.exports=d}(a("185").Buffer),c.exports}),a.registerDynamic("1d1",["184","1cd","1d2","1d0","18e","18d"],!0,function(a,b,c){"use strict";function d(a,b){if(!b.resolve.external)return g.resolve();try{k("Resolving $ref pointers in %s",a.$refs._root$Ref.path);var c=e(a.schema,a.$refs._root$Ref.path+"#",a.$refs,b);return g.all(c)}catch(d){return g.reject(d)}}function e(a,b,c,d){var g=[];return a&&"object"==typeof a&&(h.isExternal$Ref(a)?g.push(f(a,b,c,d)):Object.keys(a).forEach(function(j){var k=i.join(b,j),l=a[j];h.isExternal$Ref(l)?g.push(f(l,k,c,d)):g=g.concat(e(l,k,c,d))})),g}function f(a,b,c,d){k('Resolving $ref pointer "%s" at %s',a.$ref,b);var f=l.resolve(b,a.$ref),h=l.stripHash(f);return a=c._$refs[h],a?g.resolve(a.value):j(f,c,d).then(function(a){k("Resolving $ref pointers in %s",h);var b=e(a,h+"#",c,d);return g.all(b)})}var g=a("184"),h=a("1cd"),i=a("1d2"),j=a("1d0"),k=a("18e"),l=a("18d");return c.exports=d,c.exports}),a.registerDynamic("1d3",["1cd","1d2","18e","18d","22"],!0,function(a,b,c){return function(b){"use strict";function d(a,b){j("Bundling $ref pointers in %s",a.$refs._root$Ref.path);var c=[];e(a,"schema",a.$refs._root$Ref.path+"#","#",c,a.$refs,b),g(c)}function e(a,b,c,d,g,j,k){var l=null===b?a:a[b];if(l&&"object"==typeof l)if(h.is$Ref(l))f(a,b,c,d,g,j,k);else{var m=Object.keys(l),n=m.indexOf("definitions");n>0&&m.splice(0,0,m.splice(n,1)[0]),m.forEach(function(a){var b=i.join(c,a),m=i.join(d,a),n=l[a];h.is$Ref(n)?f(l,a,c,m,g,j,k):e(l,a,b,m,g,j,k)})}}function f(a,b,c,d,f,g,j){if(!f.some(function(c){return c.parent===a&&c.key===b})){var l=null===b?a:a[b],m=k.resolve(c,l.$ref),n=g._resolve(m,j),o=i.parse(d).length,p=k.stripHash(n.path),q=k.getHash(n.path),r=p!==g._root$Ref.path,s=h.isExtended$Ref(l);f.push({$ref:l,parent:a,key:b,pathFromRoot:d,depth:o,file:p,hash:q,value:n.value,circular:n.circular,extended:s,external:r}),e(n.value,null,n.path,d,f,g,j)}}function g(a){a.sort(function(a,b){return a.file!==b.file?a.file<b.file?-1:1:a.hash!==b.hash?a.hash<b.hash?-1:1:a.circular!==b.circular?a.circular?-1:1:a.extended!==b.extended?a.extended?1:-1:a.depth!==b.depth?a.depth-b.depth:b.pathFromRoot.lastIndexOf("/definitions")-a.pathFromRoot.lastIndexOf("/definitions")});var b,c,d;a.forEach(function(a){j('Re-mapping $ref pointer "%s" at %s',a.$ref.$ref,a.pathFromRoot),a.external?a.file===b&&a.hash===c?a.$ref.$ref=d:a.file===b&&0===a.hash.indexOf(c+"/")?a.$ref.$ref=i.join(d,i.parse(a.hash)):(b=a.file,c=a.hash,d=a.pathFromRoot,a.$ref=a.parent[a.key]=h.dereference(a.$ref,a.value),a.circular&&(a.$ref.$ref=a.pathFromRoot)):a.$ref.$ref=a.hash,j(" new value: %s",a.$ref&&a.$ref.$ref?a.$ref.$ref:"[object Object]")})}var h=a("1cd"),i=a("1d2"),j=a("18e"),k=a("18d");c.exports=d}(a("22")),c.exports}),a.registerDynamic("1d4",["22"],!0,function(a,b,c){var d=this;return function(a){"use strict";var b=d.process&&a.nextTick||d.setImmediate||function(a){setTimeout(a,0)};c.exports=function(a,c){return a?void c.then(function(c){b(function(){a(null,c)})},function(c){b(function(){a(c)})}):c}}(a("22")),c.exports}),a.registerDynamic("1d5",["1d4"],!0,function(a,b,c){return c.exports=a("1d4"),c.exports}),a.registerDynamic("1d6",["1d7"],!0,function(a,b,c){"use strict";function d(a,b,c,d,e){this.name=a,this.buffer=b,this.position=c,this.line=d,this.column=e}var e=a("1d7");return d.prototype.getSnippet=function(a,b){var c,d,f,g,h;if(!this.buffer)return null;for(a=a||4,b=b||75,c="",d=this.position;d>0&&-1==="\x00\r\n
\u2028\u2029".indexOf(this.buffer.charAt(d-1));)if(d-=1,this.position-d>b/2-1){c=" ... ",d+=5;break}for(f="",g=this.position;g<this.buffer.length&&-1==="\x00\r\n
\u2028\u2029".indexOf(this.buffer.charAt(g));)if(g+=1,g-this.position>b/2-1){f=" ... ",g-=5;break}return h=this.buffer.slice(d,g),e.repeat(" ",a)+c+h+f+"\n"+e.repeat(" ",a+this.position-d+c.length)+"^"},d.prototype.toString=function(a){var b,c="";return this.name&&(c+='in "'+this.name+'" '),c+="at line "+(this.line+1)+", column "+(this.column+1),a||(b=this.getSnippet(),b&&(c+=":\n"+b)),c},c.exports=d,c.exports}),a.registerDynamic("1d8",["1d7","1d9","1d6","1da","1db"],!0,function(a,b,c){"use strict";function d(a){return 10===a||13===a}function e(a){return 9===a||32===a}function f(a){return 9===a||32===a||10===a||13===a}function g(a){return 44===a||91===a||93===a||123===a||125===a}function h(a){var b;return a>=48&&57>=a?a-48:(b=32|a,b>=97&&102>=b?b-97+10:-1)}function i(a){return 120===a?2:117===a?4:85===a?8:0}function j(a){return a>=48&&57>=a?a-48:-1}function k(a){return 48===a?"\x00":97===a?"":98===a?"\b":116===a?" ":9===a?" ":110===a?"\n":118===a?"\x0B":102===a?"\f":114===a?"\r":101===a?"":32===a?" ":34===a?'"':47===a?"/":92===a?"\\":78===a?"
":95===a?" ":76===a?"\u2028":80===a?"\u2029":""}function l(a){return 65535>=a?String.fromCharCode(a):String.fromCharCode((a-65536>>10)+55296,(a-65536&1023)+56320)}function m(a,b){this.input=a,this.filename=b.filename||null,this.schema=b.schema||S,this.onWarning=b.onWarning||null,this.legacy=b.legacy||!1,this.json=b.json||!1,this.listener=b.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=a.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function n(a,b){return new P(b,new Q(a.filename,a.input,a.position,a.line,a.position-a.lineStart))}function o(a,b){throw n(a,b)}function p(a,b){a.onWarning&&a.onWarning.call(null,n(a,b))}function q(a,b,c,d){var e,f,g,h;if(c>b){if(h=a.input.slice(b,c),d)for(e=0,f=h.length;f>e;e+=1)g=h.charCodeAt(e),9===g||g>=32&&1114111>=g||o(a,"expected valid JSON character");else _.test(h)&&o(a,"the stream contains non-printable characters");a.result+=h}}function r(a,b,c,d){var e,f,g,h;for(O.isObject(c)||o(a,"cannot merge mappings; the provided source object is unacceptable"),e=Object.keys(c),g=0,h=e.length;h>g;g+=1)f=e[g],T.call(b,f)||(b[f]=c[f],d[f]=!0)}function s(a,b,c,d,e,f){var g,h;if(e=String(e),null===b&&(b={}),"tag:yaml.org,2002:merge"===d)if(Array.isArray(f))for(g=0,h=f.length;h>g;g+=1)r(a,b,f[g],c);else r(a,b,f,c);else a.json||T.call(c,e)||!T.call(b,e)||o(a,"duplicated mapping key"),b[e]=f,delete c[e];return b}function t(a){var b;b=a.input.charCodeAt(a.position),10===b?a.position++:13===b?(a.position++,10===a.input.charCodeAt(a.position)&&a.position++):o(a,"a line break is expected"),a.line+=1,a.lineStart=a.position}function u(a,b,c){for(var f=0,g=a.input.charCodeAt(a.position);0!==g;){for(;e(g);)g=a.input.charCodeAt(++a.position);if(b&&35===g)do g=a.input.charCodeAt(++a.position);while(10!==g&&13!==g&&0!==g);if(!d(g))break;for(t(a),g=a.input.charCodeAt(a.position),f++,a.lineIndent=0;32===g;)a.lineIndent++,g=a.input.charCodeAt(++a.position)}return-1!==c&&0!==f&&a.lineIndent<c&&p(a,"deficient indentation"),f}function v(a){var b,c=a.position;return b=a.input.charCodeAt(c),(45===b||46===b)&&b===a.input.charCodeAt(c+1)&&b===a.input.charCodeAt(c+2)&&(c+=3,b=a.input.charCodeAt(c),0===b||f(b))}function w(a,b){1===b?a.result+=" ":b>1&&(a.result+=O.repeat("\n",b-1))}function x(a,b,c){var h,i,j,k,l,m,n,o,p,r=a.kind,s=a.result;if(p=a.input.charCodeAt(a.position),f(p)||g(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(i=a.input.charCodeAt(a.position+1),f(i)||c&&g(i)))return!1;for(a.kind="scalar",a.result="",j=k=a.position,l=!1;0!==p;){if(58===p){if(i=a.input.charCodeAt(a.position+1),f(i)||c&&g(i))break}else if(35===p){if(h=a.input.charCodeAt(a.position-1),
|
||
f(h))break}else{if(a.position===a.lineStart&&v(a)||c&&g(p))break;if(d(p)){if(m=a.line,n=a.lineStart,o=a.lineIndent,u(a,!1,-1),a.lineIndent>=b){l=!0,p=a.input.charCodeAt(a.position);continue}a.position=k,a.line=m,a.lineStart=n,a.lineIndent=o;break}}l&&(q(a,j,k,!1),w(a,a.line-m),j=k=a.position,l=!1),e(p)||(k=a.position+1),p=a.input.charCodeAt(++a.position)}return q(a,j,k,!1),a.result?!0:(a.kind=r,a.result=s,!1)}function y(a,b){var c,e,f;if(c=a.input.charCodeAt(a.position),39!==c)return!1;for(a.kind="scalar",a.result="",a.position++,e=f=a.position;0!==(c=a.input.charCodeAt(a.position));)if(39===c){if(q(a,e,a.position,!0),c=a.input.charCodeAt(++a.position),39!==c)return!0;e=f=a.position,a.position++}else d(c)?(q(a,e,f,!0),w(a,u(a,!1,b)),e=f=a.position):a.position===a.lineStart&&v(a)?o(a,"unexpected end of the document within a single quoted scalar"):(a.position++,f=a.position);o(a,"unexpected end of the stream within a single quoted scalar")}function z(a,b){var c,e,f,g,j,k;if(k=a.input.charCodeAt(a.position),34!==k)return!1;for(a.kind="scalar",a.result="",a.position++,c=e=a.position;0!==(k=a.input.charCodeAt(a.position));){if(34===k)return q(a,c,a.position,!0),a.position++,!0;if(92===k){if(q(a,c,a.position,!0),k=a.input.charCodeAt(++a.position),d(k))u(a,!1,b);else if(256>k&&ea[k])a.result+=fa[k],a.position++;else if((j=i(k))>0){for(f=j,g=0;f>0;f--)k=a.input.charCodeAt(++a.position),(j=h(k))>=0?g=(g<<4)+j:o(a,"expected hexadecimal character");a.result+=l(g),a.position++}else o(a,"unknown escape sequence");c=e=a.position}else d(k)?(q(a,c,e,!0),w(a,u(a,!1,b)),c=e=a.position):a.position===a.lineStart&&v(a)?o(a,"unexpected end of the document within a double quoted scalar"):(a.position++,e=a.position)}o(a,"unexpected end of the stream within a double quoted scalar")}function A(a,b){var c,d,e,g,h,i,j,k,l,m,n,p=!0,q=a.tag,r=a.anchor,t={};if(n=a.input.charCodeAt(a.position),91===n)g=93,j=!1,d=[];else{if(123!==n)return!1;g=125,j=!0,d={}}for(null!==a.anchor&&(a.anchorMap[a.anchor]=d),n=a.input.charCodeAt(++a.position);0!==n;){if(u(a,!0,b),n=a.input.charCodeAt(a.position),n===g)return a.position++,a.tag=q,a.anchor=r,a.kind=j?"mapping":"sequence",a.result=d,!0;p||o(a,"missed comma between flow collection entries"),l=k=m=null,h=i=!1,63===n&&(e=a.input.charCodeAt(a.position+1),f(e)&&(h=i=!0,a.position++,u(a,!0,b))),c=a.line,H(a,b,U,!1,!0),l=a.tag,k=a.result,u(a,!0,b),n=a.input.charCodeAt(a.position),!i&&a.line!==c||58!==n||(h=!0,n=a.input.charCodeAt(++a.position),u(a,!0,b),H(a,b,U,!1,!0),m=a.result),j?s(a,d,t,l,k,m):h?d.push(s(a,null,t,l,k,m)):d.push(k),u(a,!0,b),n=a.input.charCodeAt(a.position),44===n?(p=!0,n=a.input.charCodeAt(++a.position)):p=!1}o(a,"unexpected end of the stream within a flow collection")}function B(a,b){var c,f,g,h,i=Y,k=!1,l=!1,m=b,n=0,p=!1;if(h=a.input.charCodeAt(a.position),124===h)f=!1;else{if(62!==h)return!1;f=!0}for(a.kind="scalar",a.result="";0!==h;)if(h=a.input.charCodeAt(++a.position),43===h||45===h)Y===i?i=43===h?$:Z:o(a,"repeat of a chomping mode identifier");else{if(!((g=j(h))>=0))break;0===g?o(a,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?o(a,"repeat of an indentation width identifier"):(m=b+g-1,l=!0)}if(e(h)){do h=a.input.charCodeAt(++a.position);while(e(h));if(35===h)do h=a.input.charCodeAt(++a.position);while(!d(h)&&0!==h)}for(;0!==h;){for(t(a),a.lineIndent=0,h=a.input.charCodeAt(a.position);(!l||a.lineIndent<m)&&32===h;)a.lineIndent++,h=a.input.charCodeAt(++a.position);if(!l&&a.lineIndent>m&&(m=a.lineIndent),d(h))n++;else{if(a.lineIndent<m){i===$?a.result+=O.repeat("\n",k?1+n:n):i===Y&&k&&(a.result+="\n");break}for(f?e(h)?(p=!0,a.result+=O.repeat("\n",k?1+n:n)):p?(p=!1,a.result+=O.repeat("\n",n+1)):0===n?k&&(a.result+=" "):a.result+=O.repeat("\n",n):a.result+=O.repeat("\n",k?1+n:n),k=!0,l=!0,n=0,c=a.position;!d(h)&&0!==h;)h=a.input.charCodeAt(++a.position);q(a,c,a.position,!1)}}return!0}function C(a,b){var c,d,e,g=a.tag,h=a.anchor,i=[],j=!1;for(null!==a.anchor&&(a.anchorMap[a.anchor]=i),e=a.input.charCodeAt(a.position);0!==e&&45===e&&(d=a.input.charCodeAt(a.position+1),f(d));)if(j=!0,a.position++,u(a,!0,-1)&&a.lineIndent<=b)i.push(null),e=a.input.charCodeAt(a.position);else if(c=a.line,H(a,b,W,!1,!0),i.push(a.result),u(a,!0,-1),e=a.input.charCodeAt(a.position),(a.line===c||a.lineIndent>b)&&0!==e)o(a,"bad indentation of a sequence entry");else if(a.lineIndent<b)break;return j?(a.tag=g,a.anchor=h,a.kind="sequence",a.result=i,!0):!1}function D(a,b,c){var d,g,h,i,j=a.tag,k=a.anchor,l={},m={},n=null,p=null,q=null,r=!1,t=!1;for(null!==a.anchor&&(a.anchorMap[a.anchor]=l),i=a.input.charCodeAt(a.position);0!==i;){if(d=a.input.charCodeAt(a.position+1),h=a.line,63!==i&&58!==i||!f(d)){if(!H(a,c,V,!1,!0))break;if(a.line===h){for(i=a.input.charCodeAt(a.position);e(i);)i=a.input.charCodeAt(++a.position);if(58===i)i=a.input.charCodeAt(++a.position),f(i)||o(a,"a whitespace character is expected after the key-value separator within a block mapping"),r&&(s(a,l,m,n,p,null),n=p=q=null),t=!0,r=!1,g=!1,n=a.tag,p=a.result;else{if(!t)return a.tag=j,a.anchor=k,!0;o(a,"can not read an implicit mapping pair; a colon is missed")}}else{if(!t)return a.tag=j,a.anchor=k,!0;o(a,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===i?(r&&(s(a,l,m,n,p,null),n=p=q=null),t=!0,r=!0,g=!0):r?(r=!1,g=!0):o(a,"incomplete explicit mapping pair; a key node is missed"),a.position+=1,i=d;if((a.line===h||a.lineIndent>b)&&(H(a,b,X,!0,g)&&(r?p=a.result:q=a.result),r||(s(a,l,m,n,p,q),n=p=q=null),u(a,!0,-1),i=a.input.charCodeAt(a.position)),a.lineIndent>b&&0!==i)o(a,"bad indentation of a mapping entry");else if(a.lineIndent<b)break}return r&&s(a,l,m,n,p,null),t&&(a.tag=j,a.anchor=k,a.kind="mapping",a.result=l),t}function E(a){var b,c,d,e,g=!1,h=!1;if(e=a.input.charCodeAt(a.position),33!==e)return!1;if(null!==a.tag&&o(a,"duplication of a tag property"),e=a.input.charCodeAt(++a.position),60===e?(g=!0,e=a.input.charCodeAt(++a.position)):33===e?(h=!0,c="!!",e=a.input.charCodeAt(++a.position)):c="!",b=a.position,g){do e=a.input.charCodeAt(++a.position);while(0!==e&&62!==e);a.position<a.length?(d=a.input.slice(b,a.position),e=a.input.charCodeAt(++a.position)):o(a,"unexpected end of the stream within a verbatim tag")}else{for(;0!==e&&!f(e);)33===e&&(h?o(a,"tag suffix cannot contain exclamation marks"):(c=a.input.slice(b-1,a.position+1),ca.test(c)||o(a,"named tag handle cannot contain such characters"),h=!0,b=a.position+1)),e=a.input.charCodeAt(++a.position);d=a.input.slice(b,a.position),ba.test(d)&&o(a,"tag suffix cannot contain flow indicator characters")}return d&&!da.test(d)&&o(a,"tag name cannot contain such characters: "+d),g?a.tag=d:T.call(a.tagMap,c)?a.tag=a.tagMap[c]+d:"!"===c?a.tag="!"+d:"!!"===c?a.tag="tag:yaml.org,2002:"+d:o(a,'undeclared tag handle "'+c+'"'),!0}function F(a){var b,c;if(c=a.input.charCodeAt(a.position),38!==c)return!1;for(null!==a.anchor&&o(a,"duplication of an anchor property"),c=a.input.charCodeAt(++a.position),b=a.position;0!==c&&!f(c)&&!g(c);)c=a.input.charCodeAt(++a.position);return a.position===b&&o(a,"name of an anchor node must contain at least one character"),a.anchor=a.input.slice(b,a.position),!0}function G(a){var b,c,d;if(d=a.input.charCodeAt(a.position),42!==d)return!1;for(d=a.input.charCodeAt(++a.position),b=a.position;0!==d&&!f(d)&&!g(d);)d=a.input.charCodeAt(++a.position);return a.position===b&&o(a,"name of an alias node must contain at least one character"),c=a.input.slice(b,a.position),a.anchorMap.hasOwnProperty(c)||o(a,'unidentified alias "'+c+'"'),a.result=a.anchorMap[c],u(a,!0,-1),!0}function H(a,b,c,d,e){var f,g,h,i,j,k,l,m,n=1,p=!1,q=!1;if(null!==a.listener&&a.listener("open",a),a.tag=null,a.anchor=null,a.kind=null,a.result=null,f=g=h=X===c||W===c,d&&u(a,!0,-1)&&(p=!0,a.lineIndent>b?n=1:a.lineIndent===b?n=0:a.lineIndent<b&&(n=-1)),1===n)for(;E(a)||F(a);)u(a,!0,-1)?(p=!0,h=f,a.lineIndent>b?n=1:a.lineIndent===b?n=0:a.lineIndent<b&&(n=-1)):h=!1;if(h&&(h=p||e),1!==n&&X!==c||(l=U===c||V===c?b:b+1,m=a.position-a.lineStart,1===n?h&&(C(a,m)||D(a,m,l))||A(a,l)?q=!0:(g&&B(a,l)||y(a,l)||z(a,l)?q=!0:G(a)?(q=!0,null===a.tag&&null===a.anchor||o(a,"alias node should not have any properties")):x(a,l,U===c)&&(q=!0,null===a.tag&&(a.tag="?")),null!==a.anchor&&(a.anchorMap[a.anchor]=a.result)):0===n&&(q=h&&C(a,m))),null!==a.tag&&"!"!==a.tag)if("?"===a.tag){for(i=0,j=a.implicitTypes.length;j>i;i+=1)if(k=a.implicitTypes[i],k.resolve(a.result)){a.result=k.construct(a.result),a.tag=k.tag,null!==a.anchor&&(a.anchorMap[a.anchor]=a.result);break}}else T.call(a.typeMap,a.tag)?(k=a.typeMap[a.tag],null!==a.result&&k.kind!==a.kind&&o(a,"unacceptable node kind for !<"+a.tag+'> tag; it should be "'+k.kind+'", not "'+a.kind+'"'),k.resolve(a.result)?(a.result=k.construct(a.result),null!==a.anchor&&(a.anchorMap[a.anchor]=a.result)):o(a,"cannot resolve a node with !<"+a.tag+"> explicit tag")):o(a,"unknown tag !<"+a.tag+">");return null!==a.listener&&a.listener("close",a),null!==a.tag||null!==a.anchor||q}function I(a){var b,c,g,h,i=a.position,j=!1;for(a.version=null,a.checkLineBreaks=a.legacy,a.tagMap={},a.anchorMap={};0!==(h=a.input.charCodeAt(a.position))&&(u(a,!0,-1),h=a.input.charCodeAt(a.position),!(a.lineIndent>0||37!==h));){for(j=!0,h=a.input.charCodeAt(++a.position),b=a.position;0!==h&&!f(h);)h=a.input.charCodeAt(++a.position);for(c=a.input.slice(b,a.position),g=[],c.length<1&&o(a,"directive name must not be less than one character in length");0!==h;){for(;e(h);)h=a.input.charCodeAt(++a.position);if(35===h){do h=a.input.charCodeAt(++a.position);while(0!==h&&!d(h));break}if(d(h))break;for(b=a.position;0!==h&&!f(h);)h=a.input.charCodeAt(++a.position);g.push(a.input.slice(b,a.position))}0!==h&&t(a),T.call(ha,c)?ha[c](a,c,g):p(a,'unknown document directive "'+c+'"')}return u(a,!0,-1),0===a.lineIndent&&45===a.input.charCodeAt(a.position)&&45===a.input.charCodeAt(a.position+1)&&45===a.input.charCodeAt(a.position+2)?(a.position+=3,u(a,!0,-1)):j&&o(a,"directives end mark is expected"),H(a,a.lineIndent-1,X,!1,!0),u(a,!0,-1),a.checkLineBreaks&&aa.test(a.input.slice(i,a.position))&&p(a,"non-ASCII line breaks are interpreted as content"),a.documents.push(a.result),a.position===a.lineStart&&v(a)?void(46===a.input.charCodeAt(a.position)&&(a.position+=3,u(a,!0,-1))):void(a.position<a.length-1&&o(a,"end of the stream or a document separator is expected"))}function J(a,b){a=String(a),b=b||{},0!==a.length&&(10!==a.charCodeAt(a.length-1)&&13!==a.charCodeAt(a.length-1)&&(a+="\n"),65279===a.charCodeAt(0)&&(a=a.slice(1)));var c=new m(a,b);for(c.input+="\x00";32===c.input.charCodeAt(c.position);)c.lineIndent+=1,c.position+=1;for(;c.position<c.length-1;)I(c);return c.documents}function K(a,b,c){var d,e,f=J(a,c);for(d=0,e=f.length;e>d;d+=1)b(f[d])}function L(a,b){var c=J(a,b);if(0!==c.length){if(1===c.length)return c[0];throw new P("expected a single document in the stream, but found more")}}function M(a,b,c){K(a,b,O.extend({schema:R},c))}function N(a,b){return L(a,O.extend({schema:R},b))}for(var O=a("1d7"),P=a("1d9"),Q=a("1d6"),R=a("1da"),S=a("1db"),T=Object.prototype.hasOwnProperty,U=1,V=2,W=3,X=4,Y=1,Z=2,$=3,_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,aa=/[\x85\u2028\u2029]/,ba=/[,\[\]\{\}]/,ca=/^(?:!|!!|![a-z\-]+!)$/i,da=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,ea=new Array(256),fa=new Array(256),ga=0;256>ga;ga++)ea[ga]=k(ga)?1:0,fa[ga]=k(ga);var ha={YAML:function(a,b,c){var d,e,f;null!==a.version&&o(a,"duplication of %YAML directive"),1!==c.length&&o(a,"YAML directive accepts exactly one argument"),d=/^([0-9]+)\.([0-9]+)$/.exec(c[0]),null===d&&o(a,"ill-formed argument of the YAML directive"),e=parseInt(d[1],10),f=parseInt(d[2],10),1!==e&&o(a,"unacceptable YAML version of the document"),a.version=c[0],a.checkLineBreaks=2>f,1!==f&&2!==f&&p(a,"unsupported YAML version of the document")},TAG:function(a,b,c){var d,e;2!==c.length&&o(a,"TAG directive accepts exactly two arguments"),d=c[0],e=c[1],ca.test(d)||o(a,"ill-formed tag handle (first argument) of the TAG directive"),T.call(a.tagMap,d)&&o(a,'there is a previously declared suffix for "'+d+'" tag handle'),da.test(e)||o(a,"ill-formed tag prefix (second argument) of the TAG directive"),a.tagMap[d]=e}};return c.exports.loadAll=K,c.exports.load=L,c.exports.safeLoadAll=M,c.exports.safeLoad=N,c.exports}),a.registerDynamic("1dc",["1d7","1d9","1db","1da"],!0,function(a,b,c){"use strict";function d(a,b){var c,d,e,f,g,h,i;if(null===b)return{};for(c={},d=Object.keys(b),e=0,f=d.length;f>e;e+=1)g=d[e],h=String(b[g]),"!!"===g.slice(0,2)&&(g="tag:yaml.org,2002:"+g.slice(2)),i=a.compiledTypeMap[g],i&&J.call(i.styleAliases,h)&&(h=i.styleAliases[h]),c[g]=h;return c}function e(a){var b,c,d;if(b=a.toString(16).toUpperCase(),255>=a)c="x",d=2;else if(65535>=a)c="u",d=4;else{if(!(4294967295>=a))throw new F("code point within a string may not be greater than 0xFFFFFFFF");c="U",d=8}return"\\"+c+E.repeat("0",d-b.length)+b}function f(a){this.schema=a.schema||G,this.indent=Math.max(1,a.indent||2),this.skipInvalid=a.skipInvalid||!1,this.flowLevel=E.isNothing(a.flowLevel)?-1:a.flowLevel,this.styleMap=d(this.schema,a.styles||null),this.sortKeys=a.sortKeys||!1,this.lineWidth=a.lineWidth||80,this.noRefs=a.noRefs||!1,this.noCompatMode=a.noCompatMode||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function g(a,b){for(var c,d=E.repeat(" ",b),e=0,f=-1,g="",h=a.length;h>e;)f=a.indexOf("\n",e),-1===f?(c=a.slice(e),e=h):(c=a.slice(e,f+1),e=f+1),c.length&&"\n"!==c&&(g+=d),g+=c;return g}function h(a,b){return"\n"+E.repeat(" ",a.indent*b)}function i(a,b){var c,d,e;for(c=0,d=a.implicitTypes.length;d>c;c+=1)if(e=a.implicitTypes[c],e.resolve(b))return!0;return!1}function j(a){return a===M||a===K}function k(a){return a>=32&&126>=a||a>=161&&55295>=a&&8232!==a&&8233!==a||a>=57344&&65533>=a&&65279!==a||a>=65536&&1114111>=a}function l(a){return k(a)&&65279!==a&&a!==U&&a!==$&&a!==_&&a!==ba&&a!==da&&a!==W&&a!==P}function m(a){return k(a)&&65279!==a&&!j(a)&&a!==V&&a!==Y&&a!==W&&a!==U&&a!==$&&a!==_&&a!==ba&&a!==da&&a!==P&&a!==R&&a!==T&&a!==N&&a!==ca&&a!==X&&a!==S&&a!==O&&a!==Q&&a!==Z&&a!==aa}function n(a,b,c,d,e){var f,g,h=!1,i=!1,n=-1!==d,o=-1,p=m(a.charCodeAt(0))&&!j(a.charCodeAt(a.length-1));if(b)for(f=0;f<a.length;f++){if(g=a.charCodeAt(f),!k(g))return ka;p=p&&l(g)}else{for(f=0;f<a.length;f++){if(g=a.charCodeAt(f),g===L)h=!0,n&&(i=i||f-o-1>d&&" "!==a[o+1],o=f);else if(!k(g))return ka;p=p&&l(g)}i=i||n&&f-o-1>d&&" "!==a[o+1]}return h||i?" "===a[0]&&c>9?ka:i?ja:ia:p&&!e(a)?ga:ha}function o(a,b,c,d){a.dump=function(){function e(b){return i(a,b)}if(0===b.length)return"''";if(!a.noCompatMode&&-1!==fa.indexOf(b))return"'"+b+"'";var f=a.indent*Math.max(1,c),h=-1===a.lineWidth?-1:Math.max(Math.min(a.lineWidth,40),a.lineWidth-f),j=d||a.flowLevel>-1&&c>=a.flowLevel;switch(n(b,j,a.indent,h,e)){case ga:return b;case ha:return"'"+b.replace(/'/g,"''")+"'";case ia:return"|"+p(b,a.indent)+q(g(b,f));case ja:return">"+p(b,a.indent)+q(g(r(b,h),f));case ka:return'"'+t(b,h)+'"';default:throw new F("impossible error: invalid scalar style")}}()}function p(a,b){var c=" "===a[0]?String(b):"",d="\n"===a[a.length-1],e=d&&("\n"===a[a.length-2]||"\n"===a),f=e?"+":d?"":"-";return c+f+"\n"}function q(a){return"\n"===a[a.length-1]?a.slice(0,-1):a}function r(a,b){for(var c,d,e=/(\n+)([^\n]*)/g,f=function(){var c=a.indexOf("\n");return c=-1!==c?c:a.length,e.lastIndex=c,s(a.slice(0,c),b)}(),g="\n"===a[0]||" "===a[0];d=e.exec(a);){var h=d[1],i=d[2];c=" "===i[0],f+=h+(g||c||""===i?"":"\n")+s(i,b),g=c}return f}function s(a,b){if(""===a||" "===a[0])return a;for(var c,d,e=/ [^ ]/g,f=0,g=0,h=0,i="";c=e.exec(a);)h=c.index,h-f>b&&(d=g>f?g:h,i+="\n"+a.slice(f,d),f=d+1),g=h;return i+="\n",i+=a.length-f>b&&g>f?a.slice(f,g)+"\n"+a.slice(g+1):a.slice(f),i.slice(1)}function t(a){for(var b,c,d="",f=0;f<a.length;f++)b=a.charCodeAt(f),c=ea[b],d+=!c&&k(b)?a[f]:c||e(b);return d}function u(a,b,c){var d,e,f="",g=a.tag;for(d=0,e=c.length;e>d;d+=1)z(a,b,c[d],!1,!1)&&(0!==d&&(f+=", "),f+=a.dump);a.tag=g,a.dump="["+f+"]"}function v(a,b,c,d){var e,f,g="",i=a.tag;for(e=0,f=c.length;f>e;e+=1)z(a,b+1,c[e],!0,!0)&&(d&&0===e||(g+=h(a,b)),g+="- "+a.dump);a.tag=i,a.dump=g||"[]"}function w(a,b,c){var d,e,f,g,h,i="",j=a.tag,k=Object.keys(c);for(d=0,e=k.length;e>d;d+=1)h="",0!==d&&(h+=", "),f=k[d],g=c[f],z(a,b,f,!1,!1)&&(a.dump.length>1024&&(h+="? "),h+=a.dump+": ",z(a,b,g,!1,!1)&&(h+=a.dump,i+=h));a.tag=j,a.dump="{"+i+"}"}function x(a,b,c,d){var e,f,g,i,j,k,l="",m=a.tag,n=Object.keys(c);if(a.sortKeys===!0)n.sort();else if("function"==typeof a.sortKeys)n.sort(a.sortKeys);else if(a.sortKeys)throw new F("sortKeys must be a boolean or a function");for(e=0,f=n.length;f>e;e+=1)k="",d&&0===e||(k+=h(a,b)),g=n[e],i=c[g],z(a,b+1,g,!0,!0,!0)&&(j=null!==a.tag&&"?"!==a.tag||a.dump&&a.dump.length>1024,j&&(k+=a.dump&&L===a.dump.charCodeAt(0)?"?":"? "),k+=a.dump,j&&(k+=h(a,b)),z(a,b+1,i,!0,j)&&(k+=a.dump&&L===a.dump.charCodeAt(0)?":":": ",k+=a.dump,l+=k));a.tag=m,a.dump=l||"{}"}function y(a,b,c){var d,e,f,g,h,i;for(e=c?a.explicitTypes:a.implicitTypes,f=0,g=e.length;g>f;f+=1)if(h=e[f],(h.instanceOf||h.predicate)&&(!h.instanceOf||"object"==typeof b&&b instanceof h.instanceOf)&&(!h.predicate||h.predicate(b))){if(a.tag=c?h.tag:"?",h.represent){if(i=a.styleMap[h.tag]||h.defaultStyle,"[object Function]"===I.call(h.represent))d=h.represent(b,i);else{if(!J.call(h.represent,i))throw new F("!<"+h.tag+'> tag resolver accepts not "'+i+'" style');d=h.represent[i](b,i)}a.dump=d}return!0}return!1}function z(a,b,c,d,e,f){a.tag=null,a.dump=c,y(a,c,!1)||y(a,c,!0);var g=I.call(a.dump);d&&(d=a.flowLevel<0||a.flowLevel>b);var h,i,j="[object Object]"===g||"[object Array]"===g;if(j&&(h=a.duplicates.indexOf(c),i=-1!==h),(null!==a.tag&&"?"!==a.tag||i||2!==a.indent&&b>0)&&(e=!1),i&&a.usedDuplicates[h])a.dump="*ref_"+h;else{if(j&&i&&!a.usedDuplicates[h]&&(a.usedDuplicates[h]=!0),"[object Object]"===g)d&&0!==Object.keys(a.dump).length?(x(a,b,a.dump,e),i&&(a.dump="&ref_"+h+a.dump)):(w(a,b,a.dump),i&&(a.dump="&ref_"+h+" "+a.dump));else if("[object Array]"===g)d&&0!==a.dump.length?(v(a,b,a.dump,e),i&&(a.dump="&ref_"+h+a.dump)):(u(a,b,a.dump),i&&(a.dump="&ref_"+h+" "+a.dump));else{if("[object String]"!==g){if(a.skipInvalid)return!1;throw new F("unacceptable kind of an object to dump "+g)}"?"!==a.tag&&o(a,a.dump,b,f)}null!==a.tag&&"?"!==a.tag&&(a.dump="!<"+a.tag+"> "+a.dump)}return!0}function A(a,b){var c,d,e=[],f=[];for(B(a,e,f),c=0,d=f.length;d>c;c+=1)b.duplicates.push(e[f[c]]);b.usedDuplicates=new Array(d)}function B(a,b,c){var d,e,f;if(null!==a&&"object"==typeof a)if(e=b.indexOf(a),-1!==e)-1===c.indexOf(e)&&c.push(e);else if(b.push(a),Array.isArray(a))for(e=0,f=a.length;f>e;e+=1)B(a[e],b,c);else for(d=Object.keys(a),e=0,f=d.length;f>e;e+=1)B(a[d[e]],b,c)}function C(a,b){b=b||{};var c=new f(b);return c.noRefs||A(a,c),z(c,0,a,!0,!0)?c.dump+"\n":""}function D(a,b){return C(a,E.extend({schema:H},b))}var E=a("1d7"),F=a("1d9"),G=a("1db"),H=a("1da"),I=Object.prototype.toString,J=Object.prototype.hasOwnProperty,K=9,L=10,M=32,N=33,O=34,P=35,Q=37,R=38,S=39,T=42,U=44,V=45,W=58,X=62,Y=63,Z=64,$=91,_=93,aa=96,ba=123,ca=124,da=125,ea={};ea[0]="\\0",ea[7]="\\a",ea[8]="\\b",ea[9]="\\t",ea[10]="\\n",ea[11]="\\v",ea[12]="\\f",ea[13]="\\r",ea[27]="\\e",ea[34]='\\"',ea[92]="\\\\",ea[133]="\\N",ea[160]="\\_",ea[8232]="\\L",ea[8233]="\\P";var fa=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ga=1,ha=2,ia=3,ja=4,ka=5;return c.exports.dump=C,c.exports.safeDump=D,c.exports}),a.registerDynamic("1dd",["1d7","1d9","1de"],!0,function(a,b,c){"use strict";function d(a,b,c){var e=[];return a.include.forEach(function(a){c=d(a,b,c)}),a[b].forEach(function(a){c.forEach(function(b,c){b.tag===a.tag&&e.push(c)}),c.push(a)}),c.filter(function(a,b){return-1===e.indexOf(b)})}function e(){function a(a){d[a.tag]=a}var b,c,d={};for(b=0,c=arguments.length;c>b;b+=1)arguments[b].forEach(a);return d}function f(a){this.include=a.include||[],this.implicit=a.implicit||[],this.explicit=a.explicit||[],this.implicit.forEach(function(a){if(a.loadKind&&"scalar"!==a.loadKind)throw new h("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=d(this,"implicit",[]),this.compiledExplicit=d(this,"explicit",[]),this.compiledTypeMap=e(this.compiledImplicit,this.compiledExplicit)}var g=a("1d7"),h=a("1d9"),i=a("1de");return f.DEFAULT=null,f.create=function(){var a,b;switch(arguments.length){case 1:a=f.DEFAULT,b=arguments[0];break;case 2:a=arguments[0],b=arguments[1];break;default:throw new h("Wrong number of arguments for Schema.create function")}if(a=g.toArray(a),b=g.toArray(b),!a.every(function(a){return a instanceof f}))throw new h("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!b.every(function(a){return a instanceof i}))throw new h("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new f({include:a,explicit:b})},c.exports=f,c.exports}),a.registerDynamic("1df",["1de"],!0,function(a,b,c){"use strict";var d=a("1de");return c.exports=new d("tag:yaml.org,2002:str",{kind:"scalar",construct:function(a){return null!==a?a:""}}),c.exports}),a.registerDynamic("1e0",["1de"],!0,function(a,b,c){"use strict";var d=a("1de");return c.exports=new d("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(a){return null!==a?a:[]}}),c.exports}),a.registerDynamic("1e1",["1de"],!0,function(a,b,c){"use strict";var d=a("1de");return c.exports=new d("tag:yaml.org,2002:map",{kind:"mapping",construct:function(a){return null!==a?a:{}}}),c.exports}),a.registerDynamic("1e2",["1dd","1df","1e0","1e1"],!0,function(a,b,c){"use strict";var d=a("1dd");return c.exports=new d({explicit:[a("1df"),a("1e0"),a("1e1")]}),c.exports}),a.registerDynamic("1e3",["1de"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!0;var b=a.length;return 1===b&&"~"===a||4===b&&("null"===a||"Null"===a||"NULL"===a)}function e(){return null}function f(a){return null===a}var g=a("1de");return c.exports=new g("tag:yaml.org,2002:null",{kind:"scalar",resolve:d,construct:e,predicate:f,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),c.exports}),a.registerDynamic("1e4",["1de"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!1;var b=a.length;return 4===b&&("true"===a||"True"===a||"TRUE"===a)||5===b&&("false"===a||"False"===a||"FALSE"===a)}function e(a){return"true"===a||"True"===a||"TRUE"===a}function f(a){return"[object Boolean]"===Object.prototype.toString.call(a)}var g=a("1de");return c.exports=new g("tag:yaml.org,2002:bool",{kind:"scalar",resolve:d,construct:e,predicate:f,represent:{lowercase:function(a){return a?"true":"false"},uppercase:function(a){return a?"TRUE":"FALSE"},camelcase:function(a){return a?"True":"False"}},defaultStyle:"lowercase"}),c.exports}),a.registerDynamic("1e5",["1d7","1de"],!0,function(a,b,c){"use strict";function d(a){return a>=48&&57>=a||a>=65&&70>=a||a>=97&&102>=a}function e(a){return a>=48&&55>=a}function f(a){return a>=48&&57>=a}function g(a){if(null===a)return!1;var b,c=a.length,g=0,h=!1;if(!c)return!1;if(b=a[g],"-"!==b&&"+"!==b||(b=a[++g]),"0"===b){if(g+1===c)return!0;if(b=a[++g],"b"===b){for(g++;c>g;g++)if(b=a[g],"_"!==b){if("0"!==b&&"1"!==b)return!1;h=!0}return h}if("x"===b){for(g++;c>g;g++)if(b=a[g],"_"!==b){if(!d(a.charCodeAt(g)))return!1;h=!0}return h}for(;c>g;g++)if(b=a[g],"_"!==b){if(!e(a.charCodeAt(g)))return!1;h=!0}return h}for(;c>g;g++)if(b=a[g],"_"!==b){if(":"===b)break;if(!f(a.charCodeAt(g)))return!1;h=!0}return h?":"!==b?!0:/^(:[0-5]?[0-9])+$/.test(a.slice(g)):!1}function h(a){var b,c,d=a,e=1,f=[];return-1!==d.indexOf("_")&&(d=d.replace(/_/g,"")),b=d[0],"-"!==b&&"+"!==b||("-"===b&&(e=-1),d=d.slice(1),b=d[0]),"0"===d?0:"0"===b?"b"===d[1]?e*parseInt(d.slice(2),2):"x"===d[1]?e*parseInt(d,16):e*parseInt(d,8):-1!==d.indexOf(":")?(d.split(":").forEach(function(a){f.unshift(parseInt(a,10))}),d=0,c=1,f.forEach(function(a){d+=a*c,c*=60}),e*d):e*parseInt(d,10)}function i(a){return"[object Number]"===Object.prototype.toString.call(a)&&a%1===0&&!j.isNegativeZero(a)}var j=a("1d7"),k=a("1de");return c.exports=new k("tag:yaml.org,2002:int",{kind:"scalar",resolve:g,construct:h,predicate:i,represent:{binary:function(a){return"0b"+a.toString(2)},octal:function(a){return"0"+a.toString(8)},decimal:function(a){return a.toString(10)},hexadecimal:function(a){return"0x"+a.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),c.exports}),a.registerDynamic("1d7",[],!0,function(a,b,c){"use strict";function d(a){return"undefined"==typeof a||null===a}function e(a){return"object"==typeof a&&null!==a}function f(a){return Array.isArray(a)?a:d(a)?[]:[a]}function g(a,b){var c,d,e,f;if(b)for(f=Object.keys(b),c=0,d=f.length;d>c;c+=1)e=f[c],a[e]=b[e];return a}function h(a,b){var c,d="";for(c=0;b>c;c+=1)d+=a;return d}function i(a){return 0===a&&Number.NEGATIVE_INFINITY===1/a}return c.exports.isNothing=d,c.exports.isObject=e,c.exports.toArray=f,c.exports.repeat=h,c.exports.isNegativeZero=i,c.exports.extend=g,c.exports}),a.registerDynamic("1e6",["1d7","1de"],!0,function(a,b,c){"use strict";function d(a){return null===a?!1:!!j.test(a)}function e(a){var b,c,d,e;return b=a.replace(/_/g,"").toLowerCase(),c="-"===b[0]?-1:1,e=[],"+-".indexOf(b[0])>=0&&(b=b.slice(1)),".inf"===b?1===c?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===b?NaN:b.indexOf(":")>=0?(b.split(":").forEach(function(a){e.unshift(parseFloat(a,10))}),b=0,d=1,e.forEach(function(a){b+=a*d,d*=60}),c*b):c*parseFloat(b,10)}function f(a,b){var c;if(isNaN(a))switch(b){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===a)switch(b){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===a)switch(b){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(h.isNegativeZero(a))return"-0.0";return c=a.toString(10),k.test(c)?c.replace("e",".e"):c}function g(a){return"[object Number]"===Object.prototype.toString.call(a)&&(a%1!==0||h.isNegativeZero(a))}var h=a("1d7"),i=a("1de"),j=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),k=/^[-+]?[0-9]+e/;return c.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:e,predicate:g,represent:f,defaultStyle:"lowercase"}),c.exports}),a.registerDynamic("1e7",["1dd","1e2","1e3","1e4","1e5","1e6"],!0,function(a,b,c){"use strict";var d=a("1dd");return c.exports=new d({include:[a("1e2")],implicit:[a("1e3"),a("1e4"),a("1e5"),a("1e6")]}),c.exports}),a.registerDynamic("1e8",["1dd","1e7"],!0,function(a,b,c){"use strict";var d=a("1dd");return c.exports=new d({include:[a("1e7")]}),c.exports}),a.registerDynamic("1e9",["1de"],!0,function(a,b,c){"use strict";function d(a){return null===a?!1:null!==h.exec(a)?!0:null!==i.exec(a)}function e(a){var b,c,d,e,f,g,j,k,l,m,n=0,o=null;if(b=h.exec(a),null===b&&(b=i.exec(a)),null===b)throw new Error("Date resolve error");if(c=+b[1],d=+b[2]-1,e=+b[3],!b[4])return new Date(Date.UTC(c,d,e));if(f=+b[4],g=+b[5],j=+b[6],b[7]){for(n=b[7].slice(0,3);n.length<3;)n+="0";n=+n}return b[9]&&(k=+b[10],l=+(b[11]||0),o=6e4*(60*k+l),"-"===b[9]&&(o=-o)),m=new Date(Date.UTC(c,d,e,f,g,j,n)),o&&m.setTime(m.getTime()-o),m}function f(a){return a.toISOString()}var g=a("1de"),h=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return c.exports=new g("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:e,instanceOf:Date,represent:f}),c.exports}),a.registerDynamic("1ea",["1de"],!0,function(a,b,c){"use strict";function d(a){return"<<"===a||null===a}var e=a("1de");return c.exports=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:d}),c.exports}),a.registerDynamic("1eb",["1de","185"],!0,function(a,b,c){return function(b){"use strict";function d(a){if(null===a)return!1;var b,c,d=0,e=a.length,f=l;for(c=0;e>c;c++)if(b=f.indexOf(a.charAt(c)),!(b>64)){if(0>b)return!1;d+=6}return d%8===0}function e(a){var b,c,d=a.replace(/[\r\n=]/g,""),e=d.length,f=l,g=0,i=[];for(b=0;e>b;b++)b%4===0&&b&&(i.push(g>>16&255),i.push(g>>8&255),i.push(255&g)),g=g<<6|f.indexOf(d.charAt(b));return c=e%4*6,0===c?(i.push(g>>16&255),i.push(g>>8&255),i.push(255&g)):18===c?(i.push(g>>10&255),i.push(g>>2&255)):12===c&&i.push(g>>4&255),h?new h(i):i}function f(a){var b,c,d="",e=0,f=a.length,g=l;for(b=0;f>b;b++)b%3===0&&b&&(d+=g[e>>18&63],d+=g[e>>12&63],d+=g[e>>6&63],d+=g[63&e]),e=(e<<8)+a[b];return c=f%3,0===c?(d+=g[e>>18&63],d+=g[e>>12&63],d+=g[e>>6&63],d+=g[63&e]):2===c?(d+=g[e>>10&63],d+=g[e>>4&63],d+=g[e<<2&63],d+=g[64]):1===c&&(d+=g[e>>2&63],d+=g[e<<4&63],d+=g[64],d+=g[64]),d}function g(a){return h&&h.isBuffer(a)}var h;try{var i=a;h=i("buffer").Buffer}catch(j){}var k=a("1de"),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";c.exports=new k("tag:yaml.org,2002:binary",{kind:"scalar",resolve:d,construct:e,predicate:g,represent:f})}(a("185").Buffer),c.exports}),a.registerDynamic("1ec",["1de"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!0;var b,c,d,e,f,i=[],j=a;for(b=0,c=j.length;c>b;b+=1){if(d=j[b],f=!1,"[object Object]"!==h.call(d))return!1;for(e in d)if(g.call(d,e)){if(f)return!1;f=!0}if(!f)return!1;if(-1!==i.indexOf(e))return!1;i.push(e)}return!0}function e(a){return null!==a?a:[]}var f=a("1de"),g=Object.prototype.hasOwnProperty,h=Object.prototype.toString;return c.exports=new f("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:e}),c.exports}),a.registerDynamic("1ed",["1de"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!0;var b,c,d,e,f,h=a;for(f=new Array(h.length),b=0,c=h.length;c>b;b+=1){if(d=h[b],"[object Object]"!==g.call(d))return!1;if(e=Object.keys(d),1!==e.length)return!1;f[b]=[e[0],d[e[0]]]}return!0}function e(a){if(null===a)return[];var b,c,d,e,f,g=a;for(f=new Array(g.length),b=0,c=g.length;c>b;b+=1)d=g[b],e=Object.keys(d),f[b]=[e[0],d[e[0]]];return f}var f=a("1de"),g=Object.prototype.toString;return c.exports=new f("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:d,construct:e}),c.exports}),a.registerDynamic("1ee",["1de"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!0;var b,c=a;for(b in c)if(g.call(c,b)&&null!==c[b])return!1;return!0}function e(a){return null!==a?a:{}}var f=a("1de"),g=Object.prototype.hasOwnProperty;return c.exports=new f("tag:yaml.org,2002:set",{kind:"mapping",resolve:d,construct:e}),c.exports}),a.registerDynamic("1da",["1dd","1e8","1e9","1ea","1eb","1ec","1ed","1ee"],!0,function(a,b,c){"use strict";var d=a("1dd");return c.exports=new d({include:[a("1e8")],implicit:[a("1e9"),a("1ea")],explicit:[a("1eb"),a("1ec"),a("1ed"),a("1ee")]}),c.exports}),a.registerDynamic("1ef",["1de"],!0,function(a,b,c){"use strict";function d(){return!0}function e(){}function f(){return""}function g(a){return"undefined"==typeof a}var h=a("1de");return c.exports=new h("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:d,construct:e,predicate:g,represent:f}),c.exports}),a.registerDynamic("1f0",["1de"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!1;if(0===a.length)return!1;var b=a,c=/\/([gim]*)$/.exec(a),d="";if("/"===b[0]){if(c&&(d=c[1]),d.length>3)return!1;
|
||
if("/"!==b[b.length-d.length-1])return!1}return!0}function e(a){var b=a,c=/\/([gim]*)$/.exec(a),d="";return"/"===b[0]&&(c&&(d=c[1]),b=b.slice(1,b.length-d.length-1)),new RegExp(b,d)}function f(a){var b="/"+a.source+"/";return a.global&&(b+="g"),a.multiline&&(b+="m"),a.ignoreCase&&(b+="i"),b}function g(a){return"[object RegExp]"===Object.prototype.toString.call(a)}var h=a("1de");return c.exports=new h("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:d,construct:e,predicate:g,represent:f}),c.exports}),a.registerDynamic("1de",["1d9"],!0,function(a,b,c){"use strict";function d(a){var b={};return null!==a&&Object.keys(a).forEach(function(c){a[c].forEach(function(a){b[String(a)]=c})}),b}function e(a,b){if(b=b||{},Object.keys(b).forEach(function(b){if(-1===g.indexOf(b))throw new f('Unknown option "'+b+'" is met in definition of "'+a+'" YAML type.')}),this.tag=a,this.kind=b.kind||null,this.resolve=b.resolve||function(){return!0},this.construct=b.construct||function(a){return a},this.instanceOf=b.instanceOf||null,this.predicate=b.predicate||null,this.represent=b.represent||null,this.defaultStyle=b.defaultStyle||null,this.styleAliases=d(b.styleAliases||null),-1===h.indexOf(this.kind))throw new f('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}var f=a("1d9"),g=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],h=["scalar","sequence","mapping"];return c.exports=e,c.exports}),a.registerDynamic("1f1",["1de"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!1;try{var b="("+a+")",c=h.parse(b,{range:!0});return"Program"===c.type&&1===c.body.length&&"ExpressionStatement"===c.body[0].type&&"FunctionExpression"===c.body[0].expression.type}catch(d){return!1}}function e(a){var b,c="("+a+")",d=h.parse(c,{range:!0}),e=[];if("Program"!==d.type||1!==d.body.length||"ExpressionStatement"!==d.body[0].type||"FunctionExpression"!==d.body[0].expression.type)throw new Error("Failed to resolve function");return d.body[0].expression.params.forEach(function(a){e.push(a.name)}),b=d.body[0].expression.body.range,new Function(e,c.slice(b[0]+1,b[1]-1))}function f(a){return a.toString()}function g(a){return"[object Function]"===Object.prototype.toString.call(a)}var h;try{var i=a;h=i("esprima")}catch(j){"undefined"!=typeof window&&(h=window.esprima)}var k=a("1de");return c.exports=new k("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:e,predicate:g,represent:f}),c.exports}),a.registerDynamic("1db",["1dd","1da","1ef","1f0","1f1"],!0,function(a,b,c){"use strict";var d=a("1dd");return c.exports=d.DEFAULT=new d({include:[a("1da")],explicit:[a("1ef"),a("1f0"),a("1f1")]}),c.exports}),a.registerDynamic("1d9",[],!0,function(a,b,c){"use strict";function d(a,b){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=a,this.mark=b,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}return d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.toString=function(a){var b=this.name+": ";return b+=this.reason||"(unknown reason)",!a&&this.mark&&(b+=" "+this.mark.toString()),b},c.exports=d,c.exports}),a.registerDynamic("1f2",["1d8","1dc","1de","1dd","1e2","1e7","1e8","1da","1db","1d9"],!0,function(a,b,c){"use strict";function d(a){return function(){throw new Error("Function "+a+" is deprecated and cannot be used.")}}var e=a("1d8"),f=a("1dc");return c.exports.Type=a("1de"),c.exports.Schema=a("1dd"),c.exports.FAILSAFE_SCHEMA=a("1e2"),c.exports.JSON_SCHEMA=a("1e7"),c.exports.CORE_SCHEMA=a("1e8"),c.exports.DEFAULT_SAFE_SCHEMA=a("1da"),c.exports.DEFAULT_FULL_SCHEMA=a("1db"),c.exports.load=e.load,c.exports.loadAll=e.loadAll,c.exports.safeLoad=e.safeLoad,c.exports.safeLoadAll=e.safeLoadAll,c.exports.dump=f.dump,c.exports.safeDump=f.safeDump,c.exports.YAMLException=a("1d9"),c.exports.MINIMAL_SCHEMA=a("1e2"),c.exports.SAFE_SCHEMA=a("1da"),c.exports.DEFAULT_SCHEMA=a("1db"),c.exports.scan=d("scan"),c.exports.parse=d("parse"),c.exports.compose=d("compose"),c.exports.addConstructor=d("addConstructor"),c.exports}),a.registerDynamic("1f3",["1f2"],!0,function(a,b,c){"use strict";var d=a("1f2");return c.exports=d,c.exports}),a.registerDynamic("1f4",["1f3"],!0,function(a,b,c){return c.exports=a("1f3"),c.exports}),a.registerDynamic("187",["1f4","179"],!0,function(a,b,c){"use strict";var d=a("1f4"),e=a("179");return c.exports={parse:function(a,b){try{return d.safeLoad(a)}catch(c){throw c instanceof Error?c:e(c,c.message)}},stringify:function(a,b,c){try{var f=("string"==typeof c?c.length:c)||2;return d.safeDump(a,{indent:f})}catch(g){throw g instanceof Error?g:e(g,g.message)}}},c.exports}),a.registerDynamic("1f5",["184","180","1cc","1d0","1d1","1d3","1f6","18d","1d5","179","187","185"],!0,function(a,b,c){return function(b){"use strict";function d(){this.schema=null,this.$refs=new h}function e(a){var b,c,d,e;return a=Array.prototype.slice.call(a),"function"==typeof a[a.length-1]&&(e=a.pop()),"string"==typeof a[0]?(b=a[0],"object"==typeof a[2]?(c=a[1],d=a[2]):(c=void 0,d=a[1])):(b="",c=a[0],d=a[1]),d instanceof g||(d=new g(d)),{path:b,schema:c,options:d,callback:e}}var f=a("184"),g=a("180"),h=a("1cc"),i=a("1d0"),j=a("1d1"),k=a("1d3"),l=a("1f6"),m=a("18d"),n=a("1d5"),o=a("179");c.exports=d,c.exports.YAML=a("187"),d.parse=function(a,b,c){var d=this,e=new d;return e.parse.apply(e,arguments)},d.prototype.parse=function(a,c,d){var g,j=e(arguments);if(!j.path&&!j.schema){var k=o("Expected a file path, URL, or object. Got %s",j.path||j.schema);return n(j.callback,f.reject(k))}this.schema=null,this.$refs=new h,m.isFileSystemPath(j.path)&&(j.path=m.fromFileSystemPath(j.path)),j.path=m.resolve(m.cwd(),j.path),j.schema&&"object"==typeof j.schema?(this.$refs._add(j.path,j.schema),g=f.resolve(j.schema)):g=i(j.path,this.$refs,j.options);var l=this;return g.then(function(a){if(!a||"object"!=typeof a||b.isBuffer(a))throw o.syntax('"%s" is not a valid JSON Schema',l.$refs._root$Ref.path||a);return l.schema=a,n(j.callback,f.resolve(l.schema))})["catch"](function(a){return n(j.callback,f.reject(a))})},d.resolve=function(a,b,c){var d=this,e=new d;return e.resolve.apply(e,arguments)},d.prototype.resolve=function(a,b,c){var d=this,g=e(arguments);return this.parse(g.path,g.schema,g.options).then(function(){return j(d,g.options)}).then(function(){return n(g.callback,f.resolve(d.$refs))})["catch"](function(a){return n(g.callback,f.reject(a))})},d.bundle=function(a,b,c){var d=this,e=new d;return e.bundle.apply(e,arguments)},d.prototype.bundle=function(a,b,c){var d=this,g=e(arguments);return this.resolve(g.path,g.schema,g.options).then(function(){return k(d,g.options),n(g.callback,f.resolve(d.schema))})["catch"](function(a){return n(g.callback,f.reject(a))})},d.dereference=function(a,b,c){var d=this,e=new d;return e.dereference.apply(e,arguments)},d.prototype.dereference=function(a,b,c){var d=this,g=e(arguments);return this.resolve(g.path,g.schema,g.options).then(function(){return l(d,g.options),n(g.callback,f.resolve(d.schema))})["catch"](function(a){return n(g.callback,f.reject(a))})}}(a("185").Buffer),c.exports}),a.registerDynamic("1f7",["1f5"],!0,function(a,b,c){return c.exports=a("1f5"),c.exports}),a.registerDynamic("1cd",["1d2","185"],!0,function(a,b,c){return function(b){"use strict";function d(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0}c.exports=d;var e=a("1d2");d.prototype.exists=function(a,b){try{return this.resolve(a,b),!0}catch(c){return!1}},d.prototype.get=function(a,b){return this.resolve(a,b).value},d.prototype.resolve=function(a,b){var c=new e(this,a);return c.resolve(this.value,b)},d.prototype.set=function(a,b){var c=new e(this,a);this.value=c.set(this.value,b)},d.is$Ref=function(a){return a&&"object"==typeof a&&"string"==typeof a.$ref&&a.$ref.length>0},d.isExternal$Ref=function(a){return d.is$Ref(a)&&"#"!==a.$ref[0]},d.isAllowed$Ref=function(a,b){return!d.is$Ref(a)||"#"!==a.$ref[0]&&b&&!b.resolve.external?void 0:!0},d.isExtended$Ref=function(a){return d.is$Ref(a)&&Object.keys(a).length>1},d.dereference=function(a,b){if(b&&"object"==typeof b&&d.isExtended$Ref(a)){var c={};return Object.keys(a).forEach(function(b){"$ref"!==b&&(c[b]=a[b])}),Object.keys(b).forEach(function(a){a in c||(c[a]=b[a])}),c}return b}}(a("185").Buffer),c.exports}),a.registerDynamic("1f8",[],!0,function(a,b,c){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return function(a){"use strict";function b(a){var b=a.charCodeAt(0);return b===g||b===l?62:b===h||b===m?63:i>b?-1:i+10>b?b-i+26+26:k+26>b?b-k:j+26>b?b-j+26:void 0}function c(a){function c(a){j[l++]=a}var d,e,g,h,i,j;if(a.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=a.length;i="="===a.charAt(k-2)?2:"="===a.charAt(k-1)?1:0,j=new f(3*a.length/4-i),g=i>0?a.length-4:a.length;var l=0;for(d=0,e=0;g>d;d+=4,e+=3)h=b(a.charAt(d))<<18|b(a.charAt(d+1))<<12|b(a.charAt(d+2))<<6|b(a.charAt(d+3)),c((16711680&h)>>16),c((65280&h)>>8),c(255&h);return 2===i?(h=b(a.charAt(d))<<2|b(a.charAt(d+1))>>4,c(255&h)):1===i&&(h=b(a.charAt(d))<<10|b(a.charAt(d+1))<<4|b(a.charAt(d+2))>>2,c(h>>8&255),c(255&h)),j}function e(a){function b(a){return d.charAt(a)}function c(a){return b(a>>18&63)+b(a>>12&63)+b(a>>6&63)+b(63&a)}var e,f,g,h=a.length%3,i="";for(e=0,g=a.length-h;g>e;e+=3)f=(a[e]<<16)+(a[e+1]<<8)+a[e+2],i+=c(f);switch(h){case 1:f=a[a.length-1],i+=b(f>>2),i+=b(f<<4&63),i+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],i+=b(f>>10),i+=b(f>>4&63),i+=b(f<<2&63),i+="="}return i}var f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="+".charCodeAt(0),h="/".charCodeAt(0),i="0".charCodeAt(0),j="a".charCodeAt(0),k="A".charCodeAt(0),l="-".charCodeAt(0),m="_".charCodeAt(0);a.toByteArray=c,a.fromByteArray=e}("undefined"==typeof b?this.base64js={}:b),c.exports}),a.registerDynamic("1f9",["1f8"],!0,function(a,b,c){return c.exports=a("1f8"),c.exports}),a.registerDynamic("1fa",[],!0,function(a,b,c){return b.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<<h)-1,j=i>>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},b.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<<j)-1,l=k>>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=0>b||0===b&&0>1/b?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<<e|h,j+=e;j>0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p},c.exports}),a.registerDynamic("1fb",["1fa"],!0,function(a,b,c){return c.exports=a("1fa"),c.exports}),a.registerDynamic("1fc",[],!0,function(a,b,c){var d={}.toString;return c.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)},c.exports}),a.registerDynamic("196",["1fc"],!0,function(a,b,c){return c.exports=a("1fc"),c.exports}),a.registerDynamic("1fd",["1f9","1fb","196"],!0,function(a,b,c){"use strict";function d(){function a(){}try{var b=new Uint8Array(1);return b.foo=function(){return 42},b.constructor=a,42===b.foo()&&b.constructor===a&&"function"==typeof b.subarray&&0===b.subarray(1,1).byteLength}catch(c){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,0>b?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function h(a,b,c){"string"==typeof c&&""!==c||(c="utf8");var d=0|s(b,c);return a=p(a,d),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Z(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){return f.TYPED_ARRAY_SUPPORT?(b.byteLength,a=f._augment(new Uint8Array(b))):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Z(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=f._augment(new Uint8Array(b)),a.__proto__=f.prototype):(a.length=b,a._isBuffer=!0);var c=0!==b&&b<=f.poolSize>>>1;return c&&(a.parent=$),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b=0|b,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}function A(a,b,c){return 0===b&&c===a.length?X.fromByteArray(a):X.fromByteArray(a.slice(b,c))}function B(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;c>e;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(c>=e+h){var i,j,k,l;switch(h){case 1:128>f&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(55296>l||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&1114112>l&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return C(d)}function C(a){var b=a.length;if(_>=b)return String.fromCharCode.apply(String,a);for(var c="",d=0;b>d;)c+=String.fromCharCode.apply(String,a.slice(d,d+=_));return c}function D(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(127&a[e]);return d}function E(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function F(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=Q(a[f]);return e}function G(a,b,c){for(var d=a.slice(b,c),e="",f=0;f<d.length;f+=2)e+=String.fromCharCode(d[f]+256*d[f+1]);return e}function H(a,b,c){if(a%1!==0||0>a)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function I(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>e||g>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range")}function J(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);f>e;e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function K(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);f>e;e++)a[c+e]=b>>>8*(d?e:3-e)&255}function L(a,b,c,d,e,f){if(b>e||f>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range")}function M(a,b,c,d,e){return e||L(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),Y.write(a,b,c,d,23,4),c+4}function N(a,b,c,d,e){return e||L(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),Y.write(a,b,c,d,52,8),c+8}function O(a){if(a=P(a).replace(ba,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function P(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function Q(a){return 16>a?"0"+a.toString(16):a.toString(16)}function R(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;d>g;g++){if(c=a.charCodeAt(g),c>55295&&57344>c){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(56320>c){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,128>c){if((b-=1)<0)break;f.push(c)}else if(2048>c){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(65536>c){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(1114112>c))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function S(a){for(var b=[],c=0;c<a.length;c++)b.push(255&a.charCodeAt(c));return b}function T(a,b){for(var c,d,e,f=[],g=0;g<a.length&&!((b-=2)<0);g++)c=a.charCodeAt(g),d=c>>8,e=c%256,f.push(e),f.push(d);return f}function U(a){return X.toByteArray(O(a))}function V(a,b,c,d){for(var e=0;d>e&&!(e+c>=b.length||e>=a.length);e++)b[e+c]=a[e];return e}var W=this,X=a("1f9"),Y=a("1fb"),Z=a("196");b.Buffer=f,b.SlowBuffer=r,b.INSPECT_MAX_BYTES=50,f.poolSize=8192;var $={};f.TYPED_ARRAY_SUPPORT=void 0!==W.TYPED_ARRAY_SUPPORT?W.TYPED_ARRAY_SUPPORT:d(),f.TYPED_ARRAY_SUPPORT?(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array):(f.prototype.length=void 0,f.prototype.parent=void 0),f.isBuffer=function(a){return!(null==a||!a._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);g>e&&a[e]===b[e];)++e;return e!==g&&(c=a[e],d=b[e]),d>c?-1:c>d?1:0},f.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(a,b){if(!Z(a))throw new TypeError("list argument must be an Array of Buffers.");if(0===a.length)return new f(0);var c;if(void 0===b)for(b=0,c=0;c<a.length;c++)b+=a[c].length;var d=new f(b),e=0;for(c=0;c<a.length;c++){var g=a[c];g.copy(d,e),e+=g.length}return d},f.byteLength=s,f.prototype.toString=function(){var a=0|this.length;return 0===a?"":0===arguments.length?B(this,0,a):t.apply(this,arguments)},f.prototype.equals=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:0===f.compare(this,a)},f.prototype.inspect=function(){var a="",c=b.INSPECT_MAX_BYTES;return this.length>0&&(a=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(a+=" ... ")),"<Buffer "+a+">"},f.prototype.compare=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?0:f.compare(this,a)},f.prototype.indexOf=function(a,b){function c(a,b,c){for(var d=-1,e=0;c+e<a.length;e++)if(a[c+e]===b[-1===d?0:e-d]){if(-1===d&&(d=e),e-d+1===b.length)return c+d}else d=-1;return-1}if(b>2147483647?b=2147483647:-2147483648>b&&(b=-2147483648),b>>=0,0===this.length)return-1;if(b>=this.length)return-1;if(0>b&&(b=Math.max(this.length+b,0)),"string"==typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,b);if(f.isBuffer(a))return c(this,a,b);if("number"==typeof a)return f.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,a,b):c(this,[a],b);throw new TypeError("val must be string, number or Buffer")},f.prototype.get=function(a){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(a)},f.prototype.set=function(a,b){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(a,b)},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(0>c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return u(this,a,b,c);case"utf8":case"utf-8":return v(this,a,b,c);case"ascii":return w(this,a,b,c);case"binary":return x(this,a,b,c);case"base64":return y(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a);var d;if(f.TYPED_ARRAY_SUPPORT)d=f._augment(this.subarray(a,b));else{var e=b-a;d=new f(e,void 0);for(var g=0;e>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return d},f.prototype.readUIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a+--b],e=1;b>0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUInt8=function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return e*=128,d>=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),Y.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),Y.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),Y.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),Y.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f<c&&(e*=256);)this[b+f]=a/e&255;return b+c},f.prototype.writeUIntBE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=c-1,f=1;for(this[b+e]=255&a;--e>=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f<c&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c);var e,g=d-c;if(this===a&&b>c&&d>b)for(e=g-1;e>=0;e--)a[e+b]=this[e+c];else if(1e3>g||!f.TYPED_ARRAY_SUPPORT)for(e=0;g>e;e++)a[e+b]=this[e+c];else a._set(this.subarray(c,c+g),b);return g},f.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new RangeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new RangeError("start out of bounds");if(0>c||c>this.length)throw new RangeError("end out of bounds");var d;if("number"==typeof a)for(d=b;c>d;d++)this[d]=a;else{var e=R(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}},f.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(f.TYPED_ARRAY_SUPPORT)return new f(this).buffer;for(var a=new Uint8Array(this.length),b=0,c=a.length;c>b;b+=1)a[b]=this[b];return a.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var aa=f.prototype;f._augment=function(a){return a.constructor=f,a._isBuffer=!0,a._set=a.set,a.get=aa.get,a.set=aa.set,a.write=aa.write,a.toString=aa.toString,a.toLocaleString=aa.toString,a.toJSON=aa.toJSON,a.equals=aa.equals,a.compare=aa.compare,a.indexOf=aa.indexOf,a.copy=aa.copy,a.slice=aa.slice,a.readUIntLE=aa.readUIntLE,a.readUIntBE=aa.readUIntBE,a.readUInt8=aa.readUInt8,a.readUInt16LE=aa.readUInt16LE,a.readUInt16BE=aa.readUInt16BE,a.readUInt32LE=aa.readUInt32LE,a.readUInt32BE=aa.readUInt32BE,a.readIntLE=aa.readIntLE,a.readIntBE=aa.readIntBE,a.readInt8=aa.readInt8,a.readInt16LE=aa.readInt16LE,a.readInt16BE=aa.readInt16BE,a.readInt32LE=aa.readInt32LE,a.readInt32BE=aa.readInt32BE,a.readFloatLE=aa.readFloatLE,a.readFloatBE=aa.readFloatBE,a.readDoubleLE=aa.readDoubleLE,a.readDoubleBE=aa.readDoubleBE,a.writeUInt8=aa.writeUInt8,a.writeUIntLE=aa.writeUIntLE,a.writeUIntBE=aa.writeUIntBE,a.writeUInt16LE=aa.writeUInt16LE,a.writeUInt16BE=aa.writeUInt16BE,a.writeUInt32LE=aa.writeUInt32LE,a.writeUInt32BE=aa.writeUInt32BE,a.writeIntLE=aa.writeIntLE,a.writeIntBE=aa.writeIntBE,a.writeInt8=aa.writeInt8,a.writeInt16LE=aa.writeInt16LE,a.writeInt16BE=aa.writeInt16BE,a.writeInt32LE=aa.writeInt32LE,a.writeInt32BE=aa.writeInt32BE,a.writeFloatLE=aa.writeFloatLE,a.writeFloatBE=aa.writeFloatBE,a.writeDoubleLE=aa.writeDoubleLE,a.writeDoubleBE=aa.writeDoubleBE,a.fill=aa.fill,a.inspect=aa.inspect,a.toArrayBuffer=aa.toArrayBuffer,a};var ba=/[^+\/0-9A-Za-z-_]/g;return c.exports}),a.registerDynamic("1fe",["1fd"],!0,function(a,b,c){return c.exports=a("1fd"),c.exports}),a.registerDynamic("1ff",["1fe"],!0,function(b,c,d){return d.exports=a._nodeRequire?a._nodeRequire("buffer"):b("1fe"),d.exports}),a.registerDynamic("185",["1ff"],!0,function(a,b,c){return c.exports=a("1ff"),c.exports}),a.registerDynamic("1d2",["1cd","18d","179","185"],!0,function(a,b,c){return function(b){"use strict";function d(a,b){this.$ref=a,this.path=b,this.value=void 0,this.circular=!1}function e(a,b){if(g.isAllowed$Ref(a.value,b)){var c=h.resolve(a.path,a.value.$ref);if(c!==a.path){var d=a.$ref.$refs._resolve(c,b);return g.isExtended$Ref(a.value)?a.value=g.dereference(a.value,d.value):(a.$ref=d.$ref,a.path=d.path,a.value=d.value),!0}a.circular=!0}}function f(a,b,c){if(!a.value||"object"!=typeof a.value)throw i.syntax('Error assigning $ref pointer "%s". \nCannot set "%s" of a non-object.',a.path,b);return"-"===b&&Array.isArray(a.value)?a.value.push(c):a.value[b]=c,c}c.exports=d;var g=a("1cd"),h=a("18d"),i=a("179"),j=/\//g,k=/~/g,l=/~1/g,m=/~0/g;d.prototype.resolve=function(a,b){var c=d.parse(this.path);this.value=a;for(var f=0;f<c.length;f++){e(this,b)&&(this.path=d.join(this.path,c.slice(f)));var g=c[f];if(void 0===this.value[g])throw i.syntax('Error resolving $ref pointer "%s". \nToken "%s" does not exist.',this.path,g);this.value=this.value[g]}return e(this,b),this},d.prototype.set=function(a,b,c){var g,h=d.parse(this.path);if(0===h.length)return this.value=b,b;this.value=a;for(var i=0;i<h.length-1;i++)e(this,c),g=h[i],this.value&&void 0!==this.value[g]?this.value=this.value[g]:this.value=f(this,g,{});return e(this,c),g=h[h.length-1],f(this,g,b),a},d.parse=function(a){var b=h.getHash(a).substr(1);if(!b)return[];b=b.split("/");for(var c=0;c<b.length;c++)b[c]=decodeURI(b[c].replace(l,"/").replace(m,"~"));if(""!==b[0])throw i.syntax('Invalid $ref pointer "%s". Pointers must begin with "#/"',b);return b.slice(1)},d.join=function(a,b){-1===a.indexOf("#")&&(a+="#"),b=Array.isArray(b)?b:[b];for(var c=0;c<b.length;c++){var d=b[c];a+="/"+encodeURI(d.replace(k,"~0").replace(j,"~1"));
|
||
}return a}}(a("185").Buffer),c.exports}),a.registerDynamic("200",[],!0,function(a,b,c){return c.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8},c.exports}),a.registerDynamic("201",[],!0,function(a,b,c){return"function"==typeof Object.create?c.exports=function(a,b){a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:c.exports=function(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a},c.exports}),a.registerDynamic("191",["201"],!0,function(a,b,c){return c.exports=a("201"),c.exports}),a.registerDynamic("202",["200","191","22"],!0,function(a,b,c){var d=this;return function(c){function e(a,c){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(c)?d.showHidden=c:c&&b._extend(d,c),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,c,d){if(a.customInspect&&c&&A(c.inspect)&&c.inspect!==b.inspect&&(!c.constructor||c.constructor.prototype!==c)){var e=c.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,c);if(f)return f;var g=Object.keys(c),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(c)),z(c)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(c);if(0===g.length){if(A(c)){var q=c.name?": "+c.name:"";return a.stylize("[Function"+q+"]","special")}if(w(c))return a.stylize(RegExp.prototype.toString.call(c),"regexp");if(y(c))return a.stylize(Date.prototype.toString.call(c),"date");if(z(c))return k(c)}var r="",s=!1,u=["{","}"];if(o(c)&&(s=!0,u=["[","]"]),A(c)){var v=c.name?": "+c.name:"";r=" [Function"+v+"]"}if(w(c)&&(r=" "+RegExp.prototype.toString.call(c)),y(c)&&(r=" "+Date.prototype.toUTCString.call(c)),z(c)&&(r=" "+k(c)),0===g.length&&(!s||0==c.length))return u[0]+r+u[1];if(0>d)return w(c)?a.stylize(RegExp.prototype.toString.call(c),"regexp"):a.stylize("[Object]","special");a.seen.push(c);var x;return x=s?l(a,c,d,p,g):g.map(function(b){return m(a,c,d,p,b,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;h>g;++g)F(b,String(g))?f.push(m(a,b,c,d,String(g),!0)):f.push("");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return 10>a?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;b.format=function(a){if(!t(a)){for(var b=[],c=0;c<arguments.length;c++)b.push(e(arguments[c]));return b.join(" ")}for(var c=1,d=arguments,f=d.length,g=String(a).replace(G,function(a){if("%%"===a)return"%";if(c>=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},b.deprecate=function(a,e){function f(){if(!g){if(c.throwDeprecation)throw new Error(e);c.traceDeprecation?console.trace(e):console.error(e),g=!0}return a.apply(this,arguments)}if(v(d.process))return function(){return b.deprecate(a,e).apply(this,arguments)};if(c.noDeprecation===!0)return a;var g=!1;return f};var H,I={};b.debuglog=function(a){if(v(H)&&(H=c.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var d=c.pid;I[a]=function(){var c=b.format.apply(b,arguments);console.error("%s %d: %s",a,d,c)}}else I[a]=function(){};return I[a]},b.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},b.isArray=o,b.isBoolean=p,b.isNull=q,b.isNullOrUndefined=r,b.isNumber=s,b.isString=t,b.isSymbol=u,b.isUndefined=v,b.isRegExp=w,b.isObject=x,b.isDate=y,b.isError=z,b.isFunction=A,b.isPrimitive=B,b.isBuffer=a("200");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];b.log=function(){console.log("%s - %s",E(),b.format.apply(b,arguments))},b.inherits=a("191"),b._extend=function(a,b){if(!b||!x(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}(a("22")),c.exports}),a.registerDynamic("203",["202"],!0,function(a,b,c){return c.exports=a("202"),c.exports}),a.registerDynamic("204",["203"],!0,function(b,c,d){return d.exports=a._nodeRequire?a._nodeRequire("util"):b("203"),d.exports}),a.registerDynamic("17e",["204"],!0,function(a,b,c){return c.exports=a("204"),c.exports}),a.registerDynamic("205",["17e"],!0,function(a,b,c){"use strict";function d(a){return function(b,d,h,i){var j,k=c.exports.formatter;"string"==typeof b?(j=k.apply(null,arguments),b=d=void 0):j="string"==typeof d?k.apply(null,n.call(arguments,1)):k.apply(null,n.call(arguments,2)),b instanceof Error||(d=b,b=void 0),b&&(j+=(j?" \n":"")+b.message);var l=new a(j);return e(l,b),f(l),g(l,d),l}}function e(a,b){b&&(j(a,b),g(a,b,!0))}function f(a){a.toJSON=h,a.inspect=i}function g(a,b,c){if(b&&"object"==typeof b)for(var d=Object.keys(b),e=0;e<d.length;e++){var f=d[e];if(!(c&&o.indexOf(f)>=0))try{a[f]=b[f]}catch(g){}}}function h(){var a={},b=Object.keys(this);b=b.concat(o);for(var c=0;c<b.length;c++){var d=b[c],e=this[d],f=typeof e;"undefined"!==f&&"function"!==f&&(a[d]=e)}return a}function i(){return JSON.stringify(this,null,2).replace(/\\n/g,"\n")}function j(a,b){if(k(b))l(a,b);else{var c=b.stack;c&&(a.stack+=" \n\n"+b.stack)}}function k(a){if(!p)return!1;var b=Object.getOwnPropertyDescriptor(a,"stack");return b?"function"==typeof b.get:!1}function l(a,b){var c=Object.getOwnPropertyDescriptor(b,"stack");if(c){var d=Object.getOwnPropertyDescriptor(a,"stack");Object.defineProperty(a,"stack",{get:function(){return d.get.apply(a)+" \n\n"+b.stack},enumerable:!1,configurable:!0})}}var m=a("17e"),n=Array.prototype.slice,o=["name","message","description","number","fileName","lineNumber","columnNumber","sourceURL","line","column","stack"];c.exports=d(Error),c.exports.error=d(Error),c.exports.eval=d(EvalError),c.exports.range=d(RangeError),c.exports.reference=d(ReferenceError),c.exports.syntax=d(SyntaxError),c.exports.type=d(TypeError),c.exports.uri=d(URIError),c.exports.formatter=m.format;var p=function(){return!(!Object.getOwnPropertyDescriptor||!Object.defineProperty||"undefined"!=typeof navigator&&/Android/.test(navigator.userAgent))}();return c.exports}),a.registerDynamic("179",["205"],!0,function(a,b,c){return c.exports=a("205"),c.exports}),a.registerDynamic("206",[],!0,function(a,b,c){function d(a){if(a=""+a,!(a.length>1e4)){var b=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(b){var c=parseFloat(b[1]),d=(b[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return c*l;case"days":case"day":case"d":return c*k;case"hours":case"hour":case"hrs":case"hr":case"h":return c*j;case"minutes":case"minute":case"mins":case"min":case"m":return c*i;case"seconds":case"second":case"secs":case"sec":case"s":return c*h;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c}}}}function e(a){return a>=k?Math.round(a/k)+"d":a>=j?Math.round(a/j)+"h":a>=i?Math.round(a/i)+"m":a>=h?Math.round(a/h)+"s":a+"ms"}function f(a){return g(a,k,"day")||g(a,j,"hour")||g(a,i,"minute")||g(a,h,"second")||a+" ms"}function g(a,b,c){return b>a?void 0:1.5*b>a?Math.floor(a/b)+" "+c:Math.ceil(a/b)+" "+c+"s"}var h=1e3,i=60*h,j=60*i,k=24*j,l=365.25*k;return c.exports=function(a,b){return b=b||{},"string"==typeof a?d(a):b["long"]?f(a):e(a)},c.exports}),a.registerDynamic("207",["206"],!0,function(a,b,c){return c.exports=a("206"),c.exports}),a.registerDynamic("208",["207"],!0,function(a,b,c){function d(){return b.colors[k++%b.colors.length]}function e(a){function c(){}function e(){var a=e,c=+new Date,f=c-(j||c);a.diff=f,a.prev=j,a.curr=c,j=c,null==a.useColors&&(a.useColors=b.useColors()),null==a.color&&a.useColors&&(a.color=d());var g=Array.prototype.slice.call(arguments);g[0]=b.coerce(g[0]),"string"!=typeof g[0]&&(g=["%o"].concat(g));var h=0;g[0]=g[0].replace(/%([a-z%])/g,function(c,d){if("%%"===c)return c;h++;var e=b.formatters[d];if("function"==typeof e){var f=g[h];c=e.call(a,f),g.splice(h,1),h--}return c}),"function"==typeof b.formatArgs&&(g=b.formatArgs.apply(a,g));var i=e.log||b.log||console.log.bind(console);i.apply(a,g)}c.enabled=!1,e.enabled=!0;var f=b.enabled(a)?e:c;return f.namespace=a,f}function f(a){b.save(a);for(var c=(a||"").split(/[\s,]+/),d=c.length,e=0;d>e;e++)c[e]&&(a=c[e].replace(/\*/g,".*?"),"-"===a[0]?b.skips.push(new RegExp("^"+a.substr(1)+"$")):b.names.push(new RegExp("^"+a+"$")))}function g(){b.enable("")}function h(a){var c,d;for(c=0,d=b.skips.length;d>c;c++)if(b.skips[c].test(a))return!1;for(c=0,d=b.names.length;d>c;c++)if(b.names[c].test(a))return!0;return!1}function i(a){return a instanceof Error?a.stack||a.message:a}b=c.exports=e,b.coerce=i,b.disable=g,b.enable=f,b.enabled=h,b.humanize=a("207"),b.names=[],b.skips=[],b.formatters={};var j,k=0;return c.exports}),a.registerDynamic("209",["208"],!0,function(a,b,c){function d(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function e(){var a=arguments,c=this.useColors;if(a[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+a[0]+(c?"%c ":" ")+"+"+b.humanize(this.diff),!c)return a;var d="color: "+this.color;a=[a[0],d,"color: inherit"].concat(Array.prototype.slice.call(a,1));var e=0,f=0;return a[0].replace(/%[a-z%]/g,function(a){"%%"!==a&&(e++,"%c"===a&&(f=e))}),a.splice(f,0,d),a}function f(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function g(a){try{null==a?b.storage.removeItem("debug"):b.storage.debug=a}catch(c){}}function h(){var a;try{a=b.storage.debug}catch(c){}return a}function i(){try{return window.localStorage}catch(a){}}return b=c.exports=a("208"),b.log=f,b.formatArgs=e,b.save=g,b.load=h,b.useColors=d,b.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:i(),b.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],b.formatters.j=function(a){return JSON.stringify(a)},b.enable(h()),c.exports}),a.registerDynamic("17d",["209"],!0,function(a,b,c){return c.exports=a("209"),c.exports}),a.registerDynamic("18e",["17d"],!0,function(a,b,c){"use strict";var d=a("17d");return c.exports=d("json-schema-ref-parser"),c.exports}),a.registerDynamic("20a",["22"],!0,function(a,b,c){var d,e=this;return function(a){!function(a){function f(a){throw RangeError(I[a])}function g(a,b){for(var c=a.length,d=[];c--;)d[c]=b(a[c]);return d}function h(a,b){var c=a.split("@"),d="";c.length>1&&(d=c[0]+"@",a=c[1]),a=a.replace(H,".");var e=a.split("."),f=g(e,b).join(".");return d+f}function i(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function j(a){return g(a,function(a){var b="";return a>65535&&(a-=65536,b+=L(a>>>10&1023|55296),a=56320|1023&a),b+=L(a)}).join("")}function k(a){return 10>a-48?a-22:26>a-65?a-65:26>a-97?a-97:x}function l(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function m(a,b,c){var d=0;for(a=c?K(a/B):a>>1,a+=K(a/b);a>J*z>>1;d+=x)a=K(a/J);return K(d+(J+1)*a/(a+A))}function n(a){var b,c,d,e,g,h,i,l,n,o,p=[],q=a.length,r=0,s=D,t=C;for(c=a.lastIndexOf(E),0>c&&(c=0),d=0;c>d;++d)a.charCodeAt(d)>=128&&f("not-basic"),p.push(a.charCodeAt(d));for(e=c>0?c+1:0;q>e;){for(g=r,h=1,i=x;e>=q&&f("invalid-input"),l=k(a.charCodeAt(e++)),(l>=x||l>K((w-r)/h))&&f("overflow"),r+=l*h,n=t>=i?y:i>=t+z?z:i-t,!(n>l);i+=x)o=x-n,h>K(w/o)&&f("overflow"),h*=o;b=p.length+1,t=m(r-g,b,0==g),K(r/b)>w-s&&f("overflow"),s+=K(r/b),r%=b,p.splice(r++,0,s)}return j(p)}function o(a){var b,c,d,e,g,h,j,k,n,o,p,q,r,s,t,u=[];for(a=i(a),q=a.length,b=D,c=0,g=C,h=0;q>h;++h)p=a[h],128>p&&u.push(L(p));for(d=e=u.length,e&&u.push(E);q>d;){for(j=w,h=0;q>h;++h)p=a[h],p>=b&&j>p&&(j=p);for(r=d+1,j-b>K((w-c)/r)&&f("overflow"),c+=(j-b)*r,b=j,h=0;q>h;++h)if(p=a[h],b>p&&++c>w&&f("overflow"),p==b){for(k=c,n=x;o=g>=n?y:n>=g+z?z:n-g,!(o>k);n+=x)t=k-o,s=x-o,u.push(L(l(o+t%s,0))),k=K(t/s);u.push(L(l(k,0))),g=m(c,r,d==e),c=0,++d}++c,++b}return u.join("")}function p(a){return h(a,function(a){return F.test(a)?n(a.slice(4).toLowerCase()):a})}function q(a){return h(a,function(a){return G.test(a)?"xn--"+o(a):a})}var r="object"==typeof b&&b&&!b.nodeType&&b,s="object"==typeof c&&c&&!c.nodeType&&c,t="object"==typeof e&&e;t.global!==t&&t.window!==t&&t.self!==t||(a=t);var u,v,w=2147483647,x=36,y=1,z=26,A=38,B=700,C=72,D=128,E="-",F=/^xn--/,G=/[^\x20-\x7E]/,H=/[\x2E\u3002\uFF0E\uFF61]/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},J=x-y,K=Math.floor,L=String.fromCharCode;if(u={version:"1.3.2",ucs2:{decode:i,encode:j},decode:n,encode:o,toASCII:q,toUnicode:p},"function"==typeof d&&"object"==typeof d.amd&&d.amd)d("punycode",function(){return u});else if(r&&s)if(c.exports==r)s.exports=u;else for(v in u)u.hasOwnProperty(v)&&(r[v]=u[v]);else a.punycode=u}(this)}(a("22")),c.exports}),a.registerDynamic("20b",["20a"],!0,function(a,b,c){return c.exports=a("20a"),c.exports}),a.registerDynamic("20c",[],!0,function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}return c.exports=function(a,b,c,e){b=b||"&",c=c||"=";var f={};if("string"!=typeof a||0===a.length)return f;var g=/\+/g;a=a.split(b);var h=1e3;e&&"number"==typeof e.maxKeys&&(h=e.maxKeys);var i=a.length;h>0&&i>h&&(i=h);for(var j=0;i>j;++j){var k,l,m,n,o=a[j].replace(g,"%20"),p=o.indexOf(c);p>=0?(k=o.substr(0,p),l=o.substr(p+1)):(k=o,l=""),m=decodeURIComponent(k),n=decodeURIComponent(l),d(f,m)?Array.isArray(f[m])?f[m].push(n):f[m]=[f[m],n]:f[m]=n}return f},c.exports}),a.registerDynamic("20d",[],!0,function(a,b,c){"use strict";var d=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};return c.exports=function(a,b,c,e){return b=b||"&",c=c||"=",null===a&&(a=void 0),"object"==typeof a?Object.keys(a).map(function(e){var f=encodeURIComponent(d(e))+c;return Array.isArray(a[e])?a[e].map(function(a){return f+encodeURIComponent(d(a))}).join(b):f+encodeURIComponent(d(a[e]))}).join(b):e?encodeURIComponent(d(e))+c+encodeURIComponent(d(a)):""},c.exports}),a.registerDynamic("20e",["20c","20d"],!0,function(a,b,c){"use strict";return b.decode=b.parse=a("20c"),b.encode=b.stringify=a("20d"),c.exports}),a.registerDynamic("20f",["20e"],!0,function(a,b,c){return c.exports=a("20e"),c.exports}),a.registerDynamic("210",["20b","20f"],!0,function(a,b,c){function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return i(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}function i(a){return"string"==typeof a}function j(a){return"object"==typeof a&&null!==a}function k(a){return null===a}function l(a){return null==a}var m=a("20b");b.parse=e,b.resolve=g,b.resolveObject=h,b.format=f,b.Url=d;var n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,p=["<",">",'"',"`"," ","\r","\n"," "],q=["{","}","|","\\","^","`"].concat(p),r=["'"].concat(q),s=["%","/","?",";","#"].concat(r),t=["/","?","#"],u=255,v=/^[a-z0-9A-Z_-]{0,63}$/,w=/^([a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=a("20f");return d.prototype.parse=function(a,b,c){if(!i(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a;d=d.trim();var e=n.exec(d);if(e){e=e[0];var f=e.toLowerCase();this.protocol=f,d=d.substr(e.length)}if(c||e||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===d.substr(0,2);!g||e&&y[e]||(d=d.substr(2),this.slashes=!0)}if(!y[e]&&(g||e&&!z[e])){for(var h=-1,j=0;j<t.length;j++){var k=d.indexOf(t[j]);-1!==k&&(-1===h||h>k)&&(h=k)}var l,o;o=-1===h?d.lastIndexOf("@"):d.lastIndexOf("@",h),-1!==o&&(l=d.slice(0,o),d=d.slice(o+1),this.auth=decodeURIComponent(l)),h=-1;for(var j=0;j<s.length;j++){var k=d.indexOf(s[j]);-1!==k&&(-1===h||h>k)&&(h=k)}-1===h&&(h=d.length),this.host=d.slice(0,h),d=d.slice(h),this.parseHost(),this.hostname=this.hostname||"";var p="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!p)for(var q=this.hostname.split(/\./),j=0,B=q.length;B>j;j++){var C=q[j];if(C&&!C.match(v)){for(var D="",E=0,F=C.length;F>E;E++)D+=C.charCodeAt(E)>127?"x":C[E];if(!D.match(v)){var G=q.slice(0,j),H=q.slice(j+1),I=C.match(w);I&&(G.push(I[1]),H.unshift(I[2])),H.length&&(d="/"+H.join(".")+d),this.hostname=G.join(".");break}}}if(this.hostname.length>u?this.hostname="":this.hostname=this.hostname.toLowerCase(),!p){for(var J=this.hostname.split("."),K=[],j=0;j<J.length;++j){var L=J[j];K.push(L.match(/[^A-Za-z0-9_-]/)?"xn--"+m.encode(L):L)}this.hostname=K.join(".")}var M=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+M,this.href+=this.host,p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==d[0]&&(d="/"+d))}if(!x[f])for(var j=0,B=r.length;B>j;j++){var O=r[j],P=encodeURIComponent(O);P===O&&(P=escape(O)),d=d.split(O).join(P)}var Q=d.indexOf("#");-1!==Q&&(this.hash=d.substr(Q),d=d.slice(0,Q));var R=d.indexOf("?");if(-1!==R?(this.search=d.substr(R),this.query=d.substr(R+1),b&&(this.query=A.parse(this.query)),d=d.slice(0,R)):b&&(this.search="",this.query={}),d&&(this.pathname=d),z[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var M=this.pathname||"",L=this.search||"";this.path=M+L}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j(this.query)&&Object.keys(this.query).length&&(f=A.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||z[b])&&e!==!1?(e="//"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(i(a)){var b=new d;b.parse(a,!1,!0),a=b}var c=new d;if(Object.keys(this).forEach(function(a){c[a]=this[a]},this),c.hash=a.hash,""===a.href)return c.href=c.format(),c;if(a.slashes&&!a.protocol)return Object.keys(a).forEach(function(b){"protocol"!==b&&(c[b]=a[b])}),z[c.protocol]&&c.hostname&&!c.pathname&&(c.path=c.pathname="/"),c.href=c.format(),c;if(a.protocol&&a.protocol!==c.protocol){if(!z[a.protocol])return Object.keys(a).forEach(function(b){c[b]=a[b]}),c.href=c.format(),c;if(c.protocol=a.protocol,a.host||y[a.protocol])c.pathname=a.pathname;else{for(var e=(a.pathname||"").split("/");e.length&&!(a.host=e.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),""!==e[0]&&e.unshift(""),e.length<2&&e.unshift(""),c.pathname=e.join("/")}if(c.search=a.search,c.query=a.query,c.host=a.host||"",c.auth=a.auth,c.hostname=a.hostname||a.host,c.port=a.port,c.pathname||c.search){var f=c.pathname||"",g=c.search||"";c.path=f+g}return c.slashes=c.slashes||a.slashes,c.href=c.format(),c}var h=c.pathname&&"/"===c.pathname.charAt(0),j=a.host||a.pathname&&"/"===a.pathname.charAt(0),m=j||h||c.host&&a.pathname,n=m,o=c.pathname&&c.pathname.split("/")||[],e=a.pathname&&a.pathname.split("/")||[],p=c.protocol&&!z[c.protocol];if(p&&(c.hostname="",c.port=null,c.host&&(""===o[0]?o[0]=c.host:o.unshift(c.host)),c.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(""===e[0]?e[0]=a.host:e.unshift(a.host)),a.host=null),m=m&&(""===e[0]||""===o[0])),j)c.host=a.host||""===a.host?a.host:c.host,c.hostname=a.hostname||""===a.hostname?a.hostname:c.hostname,c.search=a.search,c.query=a.query,o=e;else if(e.length)o||(o=[]),o.pop(),o=o.concat(e),c.search=a.search,c.query=a.query;else if(!l(a.search)){if(p){c.hostname=c.host=o.shift();var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return c.search=a.search,c.query=a.query,k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!o.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var r=o.slice(-1)[0],s=(c.host||a.host)&&("."===r||".."===r)||""===r,t=0,u=o.length;u>=0;u--)r=o[u],"."==r?o.splice(u,1):".."===r?(o.splice(u,1),t++):t&&(o.splice(u,1),t--);if(!m&&!n)for(;t--;t)o.unshift("..");!m||""===o[0]||o[0]&&"/"===o[0].charAt(0)||o.unshift(""),s&&"/"!==o.join("/").substr(-1)&&o.push("");var v=""===o[0]||o[0]&&"/"===o[0].charAt(0);if(p){c.hostname=c.host=v?"":o.length?o.shift():"";var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return m=m||c.host&&o.length,m&&!v&&o.unshift(""),o.length?c.pathname=o.join("/"):(c.pathname=null,c.path=null),k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=o.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)},c.exports}),a.registerDynamic("211",["210"],!0,function(a,b,c){return c.exports=a("210"),c.exports}),a.registerDynamic("212",["211"],!0,function(b,c,d){return d.exports=a._nodeRequire?a._nodeRequire("url"):b("211"),d.exports}),a.registerDynamic("1a9",["212"],!0,function(a,b,c){return c.exports=a("212"),c.exports}),a.registerDynamic("18d",["1a9","22"],!0,function(a,b,c){return function(d){"use strict";var e=/^win/.test(d.platform),f=/\//g,g=/^([a-z0-9.+-]+):\/\//i,h=c.exports,i=[/\?/g,"%3F",/\#/g,"%23",e?/\\/g:/\//,"/"],j=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];b.parse=a("1a9").parse,b.resolve=a("1a9").resolve,b.cwd=function(){return d.browser?location.href:d.cwd()+"/"},b.getProtocol=function(a){var b=g.exec(a);return b?b[1].toLowerCase():void 0},b.getExtension=function(a){var b=a.lastIndexOf(".");return b>=0?a.substr(b).toLowerCase():""},b.getHash=function(a){var b=a.indexOf("#");return b>=0?a.substr(b):"#"},b.stripHash=function(a){var b=a.indexOf("#");return b>=0&&(a=a.substr(0,b)),a},b.isHttp=function(a){var b=h.getProtocol(a);return"http"===b||"https"===b?!0:void 0===b?d.browser:!1},b.isFileSystemPath=function(a){if(d.browser)return!1;var b=h.getProtocol(a);return void 0===b||"file"===b},b.fromFileSystemPath=function(a){for(var b=0;b<i.length;b+=2)a=a.replace(i[b],i[b+1]);return encodeURI(a)},b.toFileSystemPath=function(a,b){a=decodeURI(a);for(var c=0;c<j.length;c+=2)a=a.replace(j[c],j[c+1]);var d="file://"===a.substr(0,7).toLowerCase();return d&&(a="/"===a[7]?a.substr(8):a.substr(7),e&&"/"===a[1]&&(a=a[0]+":"+a.substr(1)),b?a="file:///"+a:(d=!1,a=e?a:"/"+a)),e&&!d&&(a=a.replace(f,"\\")),a}}(a("22")),c.exports}),a.registerDynamic("1f6",["1cd","1d2","179","18e","18d"],!0,function(a,b,c){"use strict";function d(a,b){k("Dereferencing $ref pointers in %s",a.$refs._root$Ref.path);var c=e(a.schema,a.$refs._root$Ref.path,"#",[],a.$refs,b);a.$refs.circular=c.circular,a.schema=c.value}function e(a,b,c,d,j,k){var l,m={value:a,circular:!1};return a&&"object"==typeof a&&(d.push(a),h.isAllowed$Ref(a,k)?(l=f(a,b,c,d,j,k),m.circular=l.circular,m.value=l.value):Object.keys(a).forEach(function(n){var o=i.join(b,n),p=i.join(c,n),q=a[n],r=!1;h.isAllowed$Ref(q,k)?(l=f(q,o,p,d,j,k),r=l.circular,a[n]=l.value):-1===d.indexOf(q)?(l=e(q,o,p,d,j,k),r=l.circular,a[n]=l.value):r=g(o,j,k),m.circular=m.circular||r}),d.pop()),m}function f(a,b,c,d,f,i){k('Dereferencing $ref pointer "%s" at %s',a.$ref,b);var j=l.resolve(b,a.$ref),m=f._resolve(j,i),n=m.circular,o=n||-1!==d.indexOf(m.value);o&&g(b,f,i);var p=h.dereference(a,m.value);if(!o){var q=e(p,m.path,c,d,f,i);o=q.circular,p=q.value}return o&&!n&&"ignore"===i.dereference.circular&&(p=a),n&&(p.$ref=c),{circular:o,value:p}}function g(a,b,c){if(b.circular=!0,!c.dereference.circular)throw j.reference("Circular $ref pointer found at %s",a);return!0}var h=a("1cd"),i=a("1d2"),j=a("179"),k=a("18e"),l=a("18d");return c.exports=d,c.exports}),a.registerDynamic("213",["177","17c","178","17f","181","1d5","179","1f7","1f6"],!0,function(a,b,c){"use strict";function d(){m.apply(this,arguments)}function e(a){var b,c,d,e;return a=Array.prototype.slice.call(a),"function"==typeof a[a.length-1]&&(e=a.pop()),"string"==typeof a[0]?(b=a[0],"object"==typeof a[2]?(c=a[1],d=a[2]):(c=void 0,d=a[1])):(b="",c=a[0],d=a[1]),d instanceof i||(d=new i(d)),{path:b,api:c,options:d,callback:e}}var f=a("177"),g=a("17c"),h=a("178"),i=a("17f"),j=a("181"),k=a("1d5"),l=a("179"),m=a("1f7"),n=a("1f6");return c.exports=d,h.inherits(d,m),d.YAML=m.YAML,d.parse=m.parse,d.resolve=m.resolve,d.bundle=m.bundle,d.dereference=m.dereference,Object.defineProperty(d.prototype,"api",{configurable:!0,enumerable:!0,get:function(){return this.schema}}),d.prototype.parse=function(a,b,c){var d=e(arguments);return m.prototype.parse.call(this,d.path,d.api,d.options).then(function(a){var b=["2.0"];if(void 0===a.swagger||void 0===a.info||void 0===a.paths)throw l.syntax("%s is not a valid Swagger API definition",d.path||d.api);if("number"==typeof a.swagger)throw l.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if("number"==typeof a.info.version)throw l.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(-1===b.indexOf(a.swagger))throw l.syntax("Unsupported Swagger version: %d. Swagger Parser only supports version %s",a.swagger,b.join(", "));return k(d.callback,j.resolve(a))})["catch"](function(a){return k(d.callback,j.reject(a))})},d.validate=function(a,b,c){var d=this,e=new d;return e.validate.apply(e,arguments)},d.prototype.validate=function(a,b,c){var d=this,h=e(arguments),i=h.options.dereference.circular;return h.options.validate.schema&&(h.options.dereference.circular="ignore"),this.dereference(h.path,h.api,h.options).then(function(){if(h.options.dereference.circular=i,h.options.validate.schema&&(f(d.api),d.$refs.circular))if(i===!0)n(d,h.options);else if(i===!1)throw l.reference("The API contains circular references");return h.options.validate.spec&&g(d.api),k(h.callback,j.resolve(d.schema))})["catch"](function(a){return k(h.callback,j.reject(a))})},c.exports}),a.registerDynamic("214",["213"],!0,function(a,b,c){return c.exports=a("213"),c.exports}),a.registerDynamic("119",["10b","f6","215"],!0,function(a,b,c){var d=a("10b"),e=a("f6"),f=a("215");return c.exports=function(a,b){var c=(e.Object||{})[a]||Object[a],g={};g[a]=b(c),d(d.S+d.F*f(function(){c(1)}),"Object",g)},c.exports}),a.registerDynamic("216",["217","119"],!0,function(a,b,c){var d=a("217");return a("119")("getOwnPropertyDescriptor",function(a){return function(b,c){return a(d(b),c)}}),c.exports}),a.registerDynamic("218",["109","216"],!0,function(a,b,c){var d=a("109");return a("216"),c.exports=function(a,b){return d.getDesc(a,b)},c.exports}),a.registerDynamic("219",["218"],!0,function(a,b,c){return c.exports={"default":a("218"),__esModule:!0},c.exports}),a.registerDynamic("87",["219"],!0,function(a,b,c){"use strict";var d=a("219")["default"];return b["default"]=function(a,b,c){for(var e=!0;e;){var f=a,g=b,h=c;e=!1,null===f&&(f=Function.prototype);var i=d(f,g);if(void 0!==i){if("value"in i)return i.value;var j=i.get;if(void 0===j)return;return j.call(h)}var k=Object.getPrototypeOf(f);if(null===k)return;a=k,b=g,c=h,e=!0,i=k=void 0}},b.__esModule=!0,c.exports}),a.registerDynamic("21a",["109"],!0,function(a,b,c){var d=a("109");return c.exports=function(a,b){return d.create(a,b)},c.exports}),a.registerDynamic("21b",["21a"],!0,function(a,b,c){return c.exports={"default":a("21a"),__esModule:!0},c.exports}),a.registerDynamic("10e",["109","103","fd","105"],!0,function(a,b,c){var d=a("109").getDesc,e=a("103"),f=a("fd"),g=function(a,b){if(f(a),!e(b)&&null!==b)throw TypeError(b+": can't set as prototype!")};return c.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,c,e){try{e=a("105")(Function.call,d(Object.prototype,"__proto__").set,2),e(b,[]),c=!(b instanceof Array)}catch(f){c=!0}return function(a,b){return g(a,b),c?a.__proto__=b:e(a,b),a}}({},!1):void 0),check:g},c.exports}),a.registerDynamic("21c",["10b","10e"],!0,function(a,b,c){var d=a("10b");return d(d.S,"Object",{setPrototypeOf:a("10e").set}),c.exports}),a.registerDynamic("21d",["21c","f6"],!0,function(a,b,c){return a("21c"),c.exports=a("f6").Object.setPrototypeOf,c.exports;
|
||
}),a.registerDynamic("21e",["21d"],!0,function(a,b,c){return c.exports={"default":a("21d"),__esModule:!0},c.exports}),a.registerDynamic("88",["21b","21e"],!0,function(a,b,c){"use strict";var d=a("21b")["default"],e=a("21e")["default"];return b["default"]=function(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=d(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(e?e(a,b):a.__proto__=b)},b.__esModule=!0,c.exports}),a.registerDynamic("21f",[],!0,function(a,b,c){var d=Object.prototype.hasOwnProperty,e=Object.prototype.toString;return c.exports=function(a,b,c){if("[object Function]"!==e.call(b))throw new TypeError("iterator must be a function");var f=a.length;if(f===+f)for(var g=0;f>g;g++)b.call(c,a[g],g,a);else for(var h in a)d.call(a,h)&&b.call(c,a[h],h,a)},c.exports}),a.registerDynamic("220",["21f"],!0,function(a,b,c){return c.exports=a("21f"),c.exports}),a.registerDynamic("221",["220"],!0,function(a,b,c){"use strict";function d(a,b,c){if(3===arguments.length)return d.set(a,b,c);if(2===arguments.length)return d.get(a,b);var e=d.bind(d,a);for(var f in d)d.hasOwnProperty(f)&&(e[f]=d[f].bind(e,a));return e}var e=a("220");return c.exports=d,d.get=function(a,b){for(var c,e=d.parse(b);e.length;){if(c=e.shift(),!(c in a))throw new Error("Invalid reference token: "+c);a=a[c]}return a},d.set=function(a,b,c){for(var e,f=d.parse(b),g=f[0];f.length>1;)e=f.shift(),"-"===e&&Array.isArray(a)&&(e=a.length),g=f[0],e in a||(g.match(/^(\d+|-)$/)?a[e]=[]:a[e]={}),a=a[e];return"-"===g&&Array.isArray(a)&&(g=a.length),a[g]=c,this},d.remove=function(a,b){var c=d.parse(b),e=c.pop();if(void 0===e)throw new Error('Invalid JSON pointer for remove: "'+b+'"');delete d.get(a,d.compile(c))[e]},d.dict=function(a,b){var c={};return d.walk(a,function(a,b){c[b]=a},b),c},d.walk=function(a,b,c){var f=[];c=c||function(a){var b=Object.prototype.toString.call(a);return"[object Object]"===b||"[object Array]"===b},function g(a){e(a,function(a,e){f.push(String(e)),c(a)?g(a):b(a,d.compile(f)),f.pop()})}(a)},d.has=function(a,b){try{d.get(a,b)}catch(c){return!1}return!0},d.escape=function(a){return a.toString().replace(/~/g,"~0").replace(/\//g,"~1")},d.unescape=function(a){return a.replace(/~1/g,"/").replace(/~0/g,"~")},d.parse=function(a){if(""===a)return[];if("/"!==a.charAt(0))throw new Error("Invalid JSON pointer: "+a);return a.substring(1).split(/\//).map(d.unescape)},d.compile=function(a){return 0===a.length?"":"/"+a.map(d.escape).join("/")},c.exports}),a.registerDynamic("222",["221"],!0,function(a,b,c){return c.exports=a("221"),c.exports}),a.register("91",["87","88","89","92","222","8a"],function(a){var b,c,d,e,f,g,h;return{setters:[function(a){b=a["default"]},function(a){c=a["default"]},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a["default"]}],execute:function(){"use strict";h=function(a){function e(){g(this,e),b(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,arguments)}return c(e,a),d(e,null,[{key:"baseName",value:function(a){var b=arguments.length<=1||void 0===arguments[1]?1:arguments[1],c=e.parse(a);return c[c.length-b]}},{key:"dirName",value:function(a){var b=arguments.length<=1||void 0===arguments[1]?1:arguments[1],c=e.parse(a);return e.compile(c.slice(0,c.length-b))}},{key:"parse",value:function(a){var b=a;return"#"===b.charAt(0)&&(b=b.substring(1)),f._origParse(b)}},{key:"join",value:function(a,b){var c=e.parse(a),d=c.concat(b);return e.compile(d)}}]),e}(f),a("JsonPointer",h),f._origParse=f.parse,f.parse=h.parse,e(h,f),a("default",h)}}}),a.register("223",["224"],function(a){var b,c;return{setters:[function(a){b=a["default"]}],execute:function(){"use strict";c=new b(["get","put","post","delete","options","head","patch"]),a("methods",c)}}}),a.register("93",["89","91","116","124","214","223","8a","8f","aa"],function(a){var b,c,d,e,f,g,h,i,j,k;return{setters:[function(a){b=a["default"]},function(a){c=a["default"]},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a.methods},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]}],execute:function(){"use strict";k=function(){function a(){return h(this,a),a.prototype._instance?a.prototype._instance:(a.prototype._instance=this,void(this._schema={}))}return b(a,[{key:"load",value:function(a){var b=this,c=new d(function(c,d){b._schema={},f.bundle(a,{http:{withCredentials:!1}}).then(function(a){b._schema=a,c(b._schema),b.init()},function(a){return d(a)})});return c}},{key:"init",value:function(){this._schema&&this._schema.schemes&&(this.apiUrl=this._schema.schemes[0]+"://"+this._schema.host+this._schema.basePath,this.apiUrl.endsWith("/")&&(this.apiUrl=this.apiUrl.substr(0,this.apiUrl.length-1)))}},{key:"byPointer",value:function(a){var b=null;try{b=c.get(this._schema,decodeURIComponent(a))}catch(d){}return b}},{key:"resolveRefs",value:function(a){var b=this;return i(a).forEach(function(c){if(a[c].$ref){var d=b.byPointer(a[c].$ref);d._pointer=a[c].$ref,a[c]=d}}),a}},{key:"getMethodParams",value:function(a,b){function d(a,b){if(!Array.isArray(a))throw new Error("parameters must be an array. Got "+typeof a+" at "+b);return a.map(function(a,d){return a._pointer=c.join(b,d),a})}"parameters"===c.baseName(a)&&(a=c.dirName(a));var e=c.join(c.dirName(a),["parameters"]),f=this.byPointer(e)||[],g=c.join(a,["parameters"]),h=this.byPointer(g)||[];return f=d(f,e),h=d(h,g),b&&(h=this.resolveRefs(h),f=this.resolveRefs(f)),h.concat(f)}},{key:"getTagsMap",value:function(){var a=this._schema.tags||[],b={},c=!0,d=!1,e=void 0;try{for(var f,g=j(a);!(c=(f=g.next()).done);c=!0){var h=f.value;b[h.name]={description:h.description,"x-traitTag":h["x-traitTag"]||!1}}}catch(i){d=!0,e=i}finally{try{!c&&g["return"]&&g["return"]()}finally{if(d)throw e}}return b}},{key:"buildMenuTree",value:function(){var a=new e,b=this._schema.tags||[],d=!0,f=!1,h=void 0;try{for(var k,l=j(b);!(d=(k=l.next()).done);d=!0){var m=k.value;a.set(m.name,{description:m.description,"x-traitTag":m["x-traitTag"],methods:[]})}}catch(n){f=!0,h=n}finally{try{!d&&l["return"]&&l["return"]()}finally{if(f)throw h}}var o=this._schema.paths,p=!0,q=!1,r=void 0;try{for(var s,t=j(i(o));!(p=(s=t.next()).done);p=!0){var u=s.value,v=i(o[u]).filter(function(a){return g.has(a)}),w=!0,x=!1,y=void 0;try{for(var z,A=j(v);!(w=(z=A.next()).done);w=!0){var B=z.value,C=o[u][B],D=C.tags;D&&D.length||(D=["[Other]"]);var E=c.compile(["paths",u,B]),F=C.summary,G=!0,H=!1,I=void 0;try{for(var J,K=j(D);!(G=(J=K.next()).done);G=!0){var m=J.value,L=a.get(m);L||(L={},a.set(m,L)),L["x-traitTag"]||(L.methods||(L.methods=[]),L.methods.push({pointer:E,summary:F,operationId:C.operationId}))}}catch(n){H=!0,I=n}finally{try{!G&&K["return"]&&K["return"]()}finally{if(H)throw I}}}}catch(n){x=!0,y=n}finally{try{!w&&A["return"]&&A["return"]()}finally{if(x)throw y}}}}catch(n){q=!0,r=n}finally{try{!p&&t["return"]&&t["return"]()}finally{if(q)throw r}}return a}},{key:"findDerivedDefinitions",value:function(a){var b=this.byPointer(a);if(!b)throw new Error("Can't load schema at "+a);if(!b.discriminator)return[];var c=this._schema.definitions||{},d=[],e=!0,f=!1,g=void 0;try{for(var h,k=j(i(c));!(e=(h=k.next()).done);e=!0){var l=h.value;if(c[l].allOf){var m=c[l].allOf,n=m.findIndex(function(b){return b.$ref===a});if(!(0>n)){var o=!1;1===m.length&&(o=!0),d.push({name:l,$ref:"#/definitions/"+l,empty:o})}}}}catch(p){f=!0,g=p}finally{try{!e&&k["return"]&&k["return"]()}finally{if(f)throw g}}return d}},{key:"schema",get:function(){return this._schema}}],[{key:"instance",value:function(){return new a}}]),a}(),a("default",k)}}}),a.register("225",["11","89","93","226","227","8a","a1","a2"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m;return{setters:[function(a){b=a.Injectable,c=a.EventEmitter},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a.ScrollService,g=a.INVIEW_POSITION},function(a){h=a.Hash},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]}],execute:function(){"use strict";l={NEXT:1,BACK:-1,INITIAL:0},m=function(){function a(a,b,d){var e=this;i(this,m),this.hash=a,this.scrollService=b,this.activeCatIdx=0,this.activeMethodIdx=-1,this.changed=new c,this.categories=k(d.buildMenuTree().entries()).map(function(a){return{name:a[0],description:a[1].description,methods:a[1].methods}}),b.scroll.subscribe(function(a){e.scrollUpdate(a.isScrolledDown)}),this.changeActive(l.INITIAL),this.hash.changed.subscribe(function(a){e.hashScroll(a)})}d(a,[{key:"scrollUpdate",value:function(a){for(var b=!1;!b;){var c=this.getCurrentMethodEl();if(!c)return;var d=this.scrollService.getElementPos(c);b=a&&d===g.BELLOW?this.changeActive(l.NEXT):a||d!==g.ABOVE?!0:this.changeActive(l.BACK)}}},{key:"getCurrentMethodEl",value:function(){return this.getMethodElByPtr(this.activeMethodPtr,this.categories[this.activeCatIdx].name)}},{key:"getMethodElByPtr",value:function(a,b){var c=a?'[pointer="'+a+'"][tag="'+b+'"]':'[tag="'+b+'"]';return document.querySelector(c)}},{key:"getMethodElByOperId",value:function(a){var b='[operation-id="'+a+'"]';return document.querySelector(b)}},{key:"activate",value:function(a,b){var c=this.categories;c[this.activeCatIdx].active=!1,c[this.activeCatIdx].methods.length&&this.activeMethodIdx>=0&&(c[this.activeCatIdx].methods[this.activeMethodIdx].active=!1),this.activeCatIdx=a,this.activeMethodIdx=b,c[a].active=!0,this.activeMethodPtr=null;var d=void 0;c[a].methods.length&&b>-1&&(d=c[a].methods[b],d.active=!0,this.activeMethodPtr=d.pointer),this.changed.next({cat:c[a],item:d})}},{key:"_calcActiveIndexes",value:function(a){var b=this.categories,c=b.length,d=b[this.activeCatIdx].methods.length,e=this.activeMethodIdx+a,f=this.activeCatIdx;if(e>d-1&&(f++,e=-1),-1>e){var g=--f;d=b[Math.max(g,0)].methods.length,e=d-1}return f>c-1&&(f=c-1,e=d-1),0>f&&(f=0,e=0),[f,e]}},{key:"changeActive",value:function(){var a=arguments.length<=0||void 0===arguments[0]?1:arguments[0],b=this._calcActiveIndexes(a),c=j(b,2),d=c[0],e=c[1];return this.activate(d,e),0===e&&0===d}},{key:"scrollToActive",value:function(){this.scrollService.scrollTo(this.getCurrentMethodEl())}},{key:"hashScroll",value:function(a){if(a){var b=void 0;a=a.substr(1);var c=a.split("/")[0],d=decodeURIComponent(a.substr(c.length+1));if("operation"===c)b=this.getMethodElByOperId(d);else if("tag"===c){var e=d.split("/")[0];d=d.substr(e.length),b=this.getMethodElByPtr(d,e)}b&&this.scrollService.scrollTo(b)}}}]);var m=a;return a=b()(a)||a,a=Reflect.metadata("parameters",[[h],[f],[e]])(a)||a}(),a("MenuService",m)}}}),a.registerDynamic("115",[],!0,function(a,b,c){return c.exports}),a.registerDynamic("228",[],!0,function(a,b,c){return c.exports=function(){},c.exports}),a.registerDynamic("217",["229","22a"],!0,function(a,b,c){var d=a("229"),e=a("22a");return c.exports=function(a){return d(e(a))},c.exports}),a.registerDynamic("22b",["228","22c","f5","217","22d"],!0,function(a,b,c){"use strict";var d=a("228"),e=a("22c"),f=a("f5"),g=a("217");return c.exports=a("22d")(Array,"Array",function(a,b){this._t=g(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,e(1)):"keys"==b?e(0,c):"values"==b?e(0,a[c]):e(0,[c,a[c]])},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries"),c.exports}),a.registerDynamic("f8",["22b","f5"],!0,function(a,b,c){a("22b");var d=a("f5");return d.NodeList=d.HTMLCollection=d.Array,c.exports}),a.registerDynamic("22c",[],!0,function(a,b,c){return c.exports=function(a,b){return{value:b,done:!!a}},c.exports}),a.registerDynamic("112",["f6","109","10f","f4"],!0,function(a,b,c){"use strict";var d=a("f6"),e=a("109"),f=a("10f"),g=a("f4")("species");return c.exports=function(a){var b=d[a];f&&b&&!b[g]&&e.setDesc(b,g,{configurable:!0,get:function(){return this}})},c.exports}),a.registerDynamic("11f",["109","22e","110","105","10c","22a","10d","22d","22c","22f","230","103","112","10f"],!0,function(a,b,c){"use strict";var d=a("109"),e=a("22e"),f=a("110"),g=a("105"),h=a("10c"),i=a("22a"),j=a("10d"),k=a("22d"),l=a("22c"),m=a("22f")("id"),n=a("230"),o=a("103"),p=a("112"),q=a("10f"),r=Object.isExtensible||o,s=q?"_s":"size",t=0,u=function(a,b){if(!o(a))return"symbol"==typeof a?a:("string"==typeof a?"S":"P")+a;if(!n(a,m)){if(!r(a))return"F";if(!b)return"E";e(a,m,++t)}return"O"+a[m]},v=function(a,b){var c,d=u(b);if("F"!==d)return a._i[d];for(c=a._f;c;c=c.n)if(c.k==b)return c};return c.exports={getConstructor:function(a,b,c,e){var k=a(function(a,f){h(a,k,b),a._i=d.create(null),a._f=void 0,a._l=void 0,a[s]=0,void 0!=f&&j(f,c,a[e],a)});return f(k.prototype,{clear:function(){for(var a=this,b=a._i,c=a._f;c;c=c.n)c.r=!0,c.p&&(c.p=c.p.n=void 0),delete b[c.i];a._f=a._l=void 0,a[s]=0},"delete":function(a){var b=this,c=v(b,a);if(c){var d=c.n,e=c.p;delete b._i[c.i],c.r=!0,e&&(e.n=d),d&&(d.p=e),b._f==c&&(b._f=d),b._l==c&&(b._l=e),b[s]--}return!!c},forEach:function(a){for(var b,c=g(a,arguments.length>1?arguments[1]:void 0,3);b=b?b.n:this._f;)for(c(b.v,b.k,this);b&&b.r;)b=b.p},has:function(a){return!!v(this,a)}}),q&&d.setDesc(k.prototype,"size",{get:function(){return i(this[s])}}),k},def:function(a,b,c){var d,e,f=v(a,b);return f?f.v=c:(a._l=f={i:e=u(b,!0),k:b,v:c,p:d=a._l,n:void 0,r:!1},a._f||(a._f=f),d&&(d.n=f),a[s]++,"F"!==e&&(a._i[e]=f)),a},getEntry:v,setStrong:function(a,b,c){k(a,b,function(a,b){this._t=a,this._k=b,this._l=void 0},function(){for(var a=this,b=a._k,c=a._l;c&&c.r;)c=c.p;return a._t&&(a._l=c=c?c.n:a._t._f)?"keys"==b?l(0,c.k):"values"==b?l(0,c.v):l(0,[c.k,c.v]):(a._t=void 0,l(1))},c?"entries":"values",!c,!0),p(b)}},c.exports}),a.registerDynamic("110",["231"],!0,function(a,b,c){var d=a("231");return c.exports=function(a,b){for(var c in b)d(a,c,b[c]);return a},c.exports}),a.registerDynamic("10c",[],!0,function(a,b,c){return c.exports=function(a,b,c){if(!(a instanceof b))throw TypeError(c+": use the 'new' operator!");return a},c.exports}),a.registerDynamic("120",["109","101","10b","215","22e","110","10d","10c","103","111","10f"],!0,function(a,b,c){"use strict";var d=this,e=a("109"),d=a("101"),f=a("10b"),g=a("215"),h=a("22e"),i=a("110"),j=a("10d"),k=a("10c"),l=a("103"),m=a("111"),n=a("10f");return c.exports=function(a,b,c,o,p,q){var r=d[a],s=r,t=p?"set":"add",u=s&&s.prototype,v={};return n&&"function"==typeof s&&(q||u.forEach&&!g(function(){(new s).entries().next()}))?(s=b(function(b,c){k(b,s,a),b._c=new r,void 0!=c&&j(c,p,b[t],b)}),e.each.call("add,clear,delete,forEach,get,has,set,keys,values,entries".split(","),function(a){var b="add"==a||"set"==a;a in u&&(!q||"clear"!=a)&&h(s.prototype,a,function(c,d){if(!b&&q&&!l(c))return"get"==a?void 0:!1;var e=this._c[a](0===c?0:c,d);return b?this:e})}),"size"in u&&e.setDesc(s.prototype,"size",{get:function(){return this._c.size}})):(s=o.getConstructor(b,a,p,t),i(s.prototype,c)),m(s,a),v[a]=s,f(f.G+f.W+f.F,v),q||o.setStrong(s,a,p),s},c.exports}),a.registerDynamic("232",["11f","120"],!0,function(a,b,c){"use strict";var d=a("11f");return a("120")("Set",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a=0===a?0:a,a)}},d),c.exports}),a.registerDynamic("10d",["105","233","234","fd","235","11c"],!0,function(a,b,c){var d=a("105"),e=a("233"),f=a("234"),g=a("fd"),h=a("235"),i=a("11c");return c.exports=function(a,b,c,j){var k,l,m,n=i(a),o=d(c,j,b?2:1),p=0;if("function"!=typeof n)throw TypeError(a+" is not iterable!");if(f(n))for(k=h(a.length);k>p;p++)b?o(g(l=a[p])[0],l[1]):o(a[p]);else for(m=n.call(a);!(l=m.next()).done;)e(m,o,l.value,b)},c.exports}),a.registerDynamic("122",["10d","f3"],!0,function(a,b,c){var d=a("10d"),e=a("f3");return c.exports=function(a){return function(){if(e(this)!=a)throw TypeError(a+"#toJSON isn't generic");var b=[];return d(this,!1,b.push,b),b}},c.exports}),a.registerDynamic("236",["10b","122"],!0,function(a,b,c){var d=a("10b");return d(d.P,"Set",{toJSON:a("122")("Set")}),c.exports}),a.registerDynamic("237",["115","f9","f8","232","236","f6"],!0,function(a,b,c){return a("115"),a("f9"),a("f8"),a("232"),a("236"),c.exports=a("f6").Set,c.exports}),a.registerDynamic("224",["237"],!0,function(a,b,c){return c.exports={"default":a("237"),__esModule:!0},c.exports}),a.registerDynamic("238",["239","22a"],!0,function(a,b,c){var d=a("239"),e=a("22a");return c.exports=function(a){return function(b,c){var f,g,h=String(e(b)),i=d(c),j=h.length;return 0>i||i>=j?a?"":void 0:(f=h.charCodeAt(i),55296>f||f>56319||i+1===j||(g=h.charCodeAt(i+1))<56320||g>57343?a?h.charAt(i):f:a?h.slice(i,i+2):(f-55296<<10)+(g-56320)+65536)}},c.exports}),a.registerDynamic("10a",[],!0,function(a,b,c){return c.exports=!0,c.exports}),a.registerDynamic("231",["22e"],!0,function(a,b,c){return c.exports=a("22e"),c.exports}),a.registerDynamic("23a",[],!0,function(a,b,c){return c.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}},c.exports}),a.registerDynamic("10f",["215"],!0,function(a,b,c){return c.exports=!a("215")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),c.exports}),a.registerDynamic("22e",["109","23a","10f"],!0,function(a,b,c){var d=a("109"),e=a("23a");return c.exports=a("10f")?function(a,b,c){return d.setDesc(a,b,e(1,c))}:function(a,b,c){return a[b]=c,a},c.exports}),a.registerDynamic("23b",["109","23a","111","22e","f4"],!0,function(a,b,c){"use strict";var d=a("109"),e=a("23a"),f=a("111"),g={};return a("22e")(g,a("f4")("iterator"),function(){return this}),c.exports=function(a,b,c){a.prototype=d.create(g,{next:e(1,c)}),f(a,b+" Iterator")},c.exports}),a.registerDynamic("230",[],!0,function(a,b,c){var d={}.hasOwnProperty;return c.exports=function(a,b){return d.call(a,b)},c.exports}),a.registerDynamic("111",["109","230","f4"],!0,function(a,b,c){var d=a("109").setDesc,e=a("230"),f=a("f4")("toStringTag");return c.exports=function(a,b,c){a&&!e(a=c?a:a.prototype,f)&&d(a,f,{configurable:!0,value:b})},c.exports}),a.registerDynamic("22d",["10a","10b","231","22e","230","f5","23b","111","109","f4"],!0,function(a,b,c){"use strict";var d=a("10a"),e=a("10b"),f=a("231"),g=a("22e"),h=a("230"),i=a("f5"),j=a("23b"),k=a("111"),l=a("109").getProto,m=a("f4")("iterator"),n=!([].keys&&"next"in[].keys()),o="@@iterator",p="keys",q="values",r=function(){return this};return c.exports=function(a,b,c,s,t,u,v){j(c,b,s);var w,x,y=function(a){if(!n&&a in C)return C[a];switch(a){case p:return function(){return new c(this,a)};case q:return function(){return new c(this,a)}}return function(){return new c(this,a)}},z=b+" Iterator",A=t==q,B=!1,C=a.prototype,D=C[m]||C[o]||t&&C[t],E=D||y(t);if(D){var F=l(E.call(new a));k(F,z,!0),!d&&h(C,o)&&g(F,m,r),A&&D.name!==q&&(B=!0,E=function(){return D.call(this)})}if(d&&!v||!n&&!B&&C[m]||g(C,m,E),i[b]=E,i[z]=r,t)if(w={values:A?E:y(q),keys:u?E:y(p),entries:A?y("entries"):E},v)for(x in w)x in C||f(C,x,w[x]);else e(e.P+e.F*(n||B),b,w);return w},c.exports}),a.registerDynamic("f9",["238","22d"],!0,function(a,b,c){"use strict";var d=a("238")(!0);return a("22d")(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,b=this._t,c=this._i;return c>=b.length?{value:void 0,done:!0}:(a=d(b,c),this._i+=a.length,{value:a,done:!1})}),c.exports}),a.registerDynamic("103",[],!0,function(a,b,c){return c.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a},c.exports}),a.registerDynamic("fd",["103"],!0,function(a,b,c){var d=a("103");return c.exports=function(a){if(!d(a))throw TypeError(a+" is not an object!");return a},c.exports}),a.registerDynamic("233",["fd"],!0,function(a,b,c){var d=a("fd");return c.exports=function(a,b,c,e){try{return e?b(d(c)[0],c[1]):b(c)}catch(f){var g=a["return"];throw void 0!==g&&d(g.call(a)),f}},c.exports}),a.registerDynamic("234",["f5","f4"],!0,function(a,b,c){var d=a("f5"),e=a("f4")("iterator"),f=Array.prototype;return c.exports=function(a){return void 0!==a&&(d.Array===a||f[e]===a)},c.exports}),a.registerDynamic("239",[],!0,function(a,b,c){var d=Math.ceil,e=Math.floor;return c.exports=function(a){return isNaN(a=+a)?0:(a>0?e:d)(a)},c.exports}),a.registerDynamic("235",["239"],!0,function(a,b,c){var d=a("239"),e=Math.min;return c.exports=function(a){return a>0?e(d(a),9007199254740991):0},c.exports}),a.registerDynamic("f3",["106","f4"],!0,function(a,b,c){var d=a("106"),e=a("f4")("toStringTag"),f="Arguments"==d(function(){return arguments}());return c.exports=function(a){var b,c,g;return void 0===a?"Undefined":null===a?"Null":"string"==typeof(c=(b=Object(a))[e])?c:f?d(b):"Object"==(g=d(b))&&"function"==typeof b.callee?"Arguments":g},c.exports}),a.registerDynamic("f5",[],!0,function(a,b,c){return c.exports={},c.exports}),a.registerDynamic("11c",["f3","f4","f5","f6"],!0,function(a,b,c){var d=a("f3"),e=a("f4")("iterator"),f=a("f5");return c.exports=a("f6").getIteratorMethod=function(a){return void 0!=a?a[e]||a["@@iterator"]||f[d(a)]:void 0},c.exports}),a.registerDynamic("23c",["101"],!0,function(a,b,c){var d=this,d=a("101"),e="__core-js_shared__",f=d[e]||(d[e]={});return c.exports=function(a){return f[a]||(f[a]={})},c.exports}),a.registerDynamic("22f",[],!0,function(a,b,c){var d=0,e=Math.random();return c.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++d+e).toString(36))},c.exports}),a.registerDynamic("f4",["23c","22f","101"],!0,function(a,b,c){var d=a("23c")("wks"),e=a("22f"),f=a("101").Symbol;return c.exports=function(a){return d[a]||(d[a]=f&&f[a]||(f||e)("Symbol."+a))},c.exports}),a.registerDynamic("113",["f4"],!0,function(a,b,c){var d=a("f4")("iterator"),e=!1;try{var f=[7][d]();f["return"]=function(){e=!0},Array.from(f,function(){throw 2})}catch(g){}return c.exports=function(a,b){if(!b&&!e)return!1;var c=!1;try{var f=[7],g=f[d]();g.next=function(){c=!0},f[d]=function(){return g},a(f)}catch(h){}return c},c.exports}),a.registerDynamic("23d",["105","10b","118","233","234","235","11c","113"],!0,function(a,b,c){"use strict";var d=a("105"),e=a("10b"),f=a("118"),g=a("233"),h=a("234"),i=a("235"),j=a("11c");return e(e.S+e.F*!a("113")(function(a){Array.from(a)}),"Array",{from:function(a){var b,c,e,k,l=f(a),m="function"==typeof this?this:Array,n=arguments,o=n.length,p=o>1?n[1]:void 0,q=void 0!==p,r=0,s=j(l);if(q&&(p=d(p,o>2?n[2]:void 0,2)),void 0==s||m==Array&&h(s))for(b=i(l.length),c=new m(b);b>r;r++)c[r]=q?p(l[r],r):l[r];else for(k=s.call(l),c=new m;!(e=k.next()).done;r++)c[r]=q?g(k,p,[e.value,r],!0):e.value;return c.length=r,c}}),c.exports}),a.registerDynamic("23e",["f9","23d","f6"],!0,function(a,b,c){return a("f9"),a("23d"),c.exports=a("f6").Array.from,c.exports}),a.registerDynamic("a2",["23e"],!0,function(a,b,c){return c.exports={"default":a("23e"),__esModule:!0},c.exports}),a.registerDynamic("101",[],!0,function(a,b,c){var d=this,d=c.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();return"number"==typeof __g&&(__g=d),c.exports}),a.registerDynamic("fe",[],!0,function(a,b,c){return c.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a},c.exports}),a.registerDynamic("105",["fe"],!0,function(a,b,c){var d=a("fe");return c.exports=function(a,b,c){if(d(a),void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}},c.exports}),a.registerDynamic("10b",["101","f6","105"],!0,function(a,b,c){var d=this,d=a("101"),e=a("f6"),f=a("105"),g="prototype",h=function(a,b,c){var i,j,k,l=a&h.F,m=a&h.G,n=a&h.S,o=a&h.P,p=a&h.B,q=a&h.W,r=m?e:e[b]||(e[b]={}),s=m?d:n?d[b]:(d[b]||{})[g];m&&(c=b);for(i in c)j=!l&&s&&i in s,j&&i in r||(k=j?s[i]:c[i],r[i]=m&&"function"!=typeof s[i]?c[i]:p&&j?f(k,d):q&&s[i]==k?function(a){var b=function(b){return this instanceof a?new a(b):a(b)};return b[g]=a[g],b}(k):o&&"function"==typeof k?f(Function.call,k):k,o&&((r[g]||(r[g]={}))[i]=k))};return h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,c.exports=h,c.exports}),a.registerDynamic("22a",[],!0,function(a,b,c){return c.exports=function(a){if(void 0==a)throw TypeError("Can't call method on "+a);return a},c.exports}),a.registerDynamic("118",["22a"],!0,function(a,b,c){var d=a("22a");return c.exports=function(a){return Object(d(a))},c.exports}),a.registerDynamic("106",[],!0,function(a,b,c){var d={}.toString;return c.exports=function(a){return d.call(a).slice(8,-1)},c.exports}),a.registerDynamic("229",["106"],!0,function(a,b,c){var d=a("106");return c.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return"String"==d(a)?a.split(""):Object(a)},c.exports}),a.registerDynamic("215",[],!0,function(a,b,c){return c.exports=function(a){try{return!!a()}catch(b){return!0}},c.exports}),a.registerDynamic("23f",["109","118","229","215"],!0,function(a,b,c){var d=a("109"),e=a("118"),f=a("229");return c.exports=a("215")(function(){var a=Object.assign,b={},c={},d=Symbol(),e="abcdefghijklmnopqrst";return b[d]=7,e.split("").forEach(function(a){c[a]=a}),7!=a({},b)[d]||Object.keys(a({},c)).join("")!=e})?function(a,b){for(var c=e(a),g=arguments,h=g.length,i=1,j=d.getKeys,k=d.getSymbols,l=d.isEnum;h>i;)for(var m,n=f(g[i++]),o=k?j(n).concat(k(n)):j(n),p=o.length,q=0;p>q;)l.call(n,m=o[q++])&&(c[m]=n[m]);return c}:Object.assign,c.exports}),a.registerDynamic("240",["10b","23f"],!0,function(a,b,c){var d=a("10b");return d(d.S+d.F,"Object",{assign:a("23f")}),c.exports}),a.registerDynamic("f6",[],!0,function(a,b,c){var d=c.exports={version:"1.2.6"};return"number"==typeof __e&&(__e=d),c.exports}),a.registerDynamic("241",["240","f6"],!0,function(a,b,c){return a("240"),c.exports=a("f6").Object.assign,c.exports}),a.registerDynamic("92",["241"],!0,function(a,b,c){return c.exports={"default":a("241"),__esModule:!0},c.exports}),a.register("242",["11","89","92","224","8a","a2","9c","5e"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n;return{setters:[function(a){b=a.Injectable},function(a){c=a["default"]},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a.isFunction,i=a.isString,j=a.global},function(a){k=a.BrowserDomAdapter}],execute:function(){"use strict";l={scrollYOffset:0,disableLazySchemas:!1,debugMode:j&&j.redocDebugMode},m=new e(["scrollYOffset","disableLazySchemas","specUrl"]),n=function(){function a(a){f(this,e),this._options=l,this.dom=a}c(a,[{key:"parseOptions",value:function(a){var b=void 0,c=this.dom.attributeMap(a);b={},g(c.keys()).map(function(a){return{attrName:a,name:a.replace(/-(.)/g,function(a,b){return b.toUpperCase()})}}).filter(function(a){return m.has(a.name)}).forEach(function(a){b[a.name]=c.get(a.attrName)}),this.options=b,this._normalizeOptions()}},{key:"_normalizeOptions",value:function(){var a=this;h(this._options.scrollYOffset)||(isFinite(this._options.scrollYOffset)?!function(){var b=parseFloat(a._options.scrollYOffset);a.options.scrollYOffset=function(){return b}}():!function(){var b=a._options.scrollYOffset;b instanceof Node||(b=a.dom.query(b)),b?a._options.scrollYOffset=function(){return b.offsetTop+b.offsetHeight}:a._options.scrollYOffset=function(){return 0}}()),i(this._options.disableLazySchemas)&&(this._options.disableLazySchemas=!0)}},{key:"options",get:function(){return this._options},set:function(a){this._options=d(this._options,a)}}]);var e=a;return a=Reflect.metadata("parameters",[[k]])(a)||a,a=b()(a)||a}(),a("OptionsService",n)}}}),a.register("226",["11","89","242","8a","5e"],function(a){var b,c,d,e,f,g,h,i;return{setters:[function(a){b=a.Injectable,c=a.EventEmitter},function(a){d=a["default"]},function(a){e=a.OptionsService},function(a){f=a["default"]},function(a){g=a.BrowserDomAdapter}],execute:function(){"use strict";h={ABOVE:1,BELLOW:-1,INVIEW:0},a("INVIEW_POSITION",h),i=function(){function a(a,b){f(this,i),this.scrollYOffset=function(){return b.options.scrollYOffset()},this.$scrollParent=b.options.$scrollParent,this.scroll=new c,this.dom=a,this.bind()}d(a,[{key:"scrollY",value:function(){return null!=this.$scrollParent.pageYOffset?this.$scrollParent.pageYOffset:this.$scrollParent.scrollTop}},{key:"getElementPos",value:function(a){return Math.floor(a.getBoundingClientRect().top)>this.scrollYOffset()?h.ABOVE:a.getBoundingClientRect().bottom<=this.scrollYOffset()?h.BELLOW:h.INVIEW}},{key:"scrollTo",value:function(a){var b=a.getBoundingClientRect(),c=this.scrollY()+b.top-this.scrollYOffset()+1;this.$scrollParent.scrollTo?this.$scrollParent.scrollTo(0,c):this.$scrollParent.scrollTop=c}},{key:"scrollHandler",value:function(a){var b=this.scrollY()-this.prevOffsetY>0;this.prevOffsetY=this.scrollY(),this.scroll.next({isScrolledDown:b,evt:a})}},{key:"bind",value:function(){var a=this;this.prevOffsetY=this.scrollY(),this._cancel=this.dom.onAndCancel(this.$scrollParent,"scroll",function(b){a.scrollHandler(b)})}},{key:"unbind",value:function(){this._cancel()}}]);var i=a;return a=b()(a)||a,a=Reflect.metadata("parameters",[[g],[e]])(a)||a}(),a("ScrollService",i)}}}),a.registerDynamic("109",[],!0,function(a,b,c){var d=Object;return c.exports={create:d.create,getProto:d.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:d.getOwnPropertyDescriptor,setDesc:d.defineProperty,setDescs:d.defineProperties,getKeys:d.keys,getNames:d.getOwnPropertyNames,getSymbols:d.getOwnPropertySymbols,each:[].forEach},c.exports}),a.registerDynamic("243",["109"],!0,function(a,b,c){var d=a("109");return c.exports=function(a,b,c){return d.setDesc(a,b,c)},c.exports}),a.registerDynamic("244",["243"],!0,function(a,b,c){return c.exports={"default":a("243"),__esModule:!0},c.exports}),a.registerDynamic("89",["244"],!0,function(a,b,c){"use strict";var d=a("244")["default"];return b["default"]=function(){function a(a,b){for(var c=0;c<b.length;c++){var e=b[c];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),d(a,e.key,e)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),b.__esModule=!0,c.exports}),a.registerDynamic("64",["65"],!0,function(a,b,c){"use strict";function d(a,b){if(h.isPresent(a))for(var c=0;c<a.length;c++){var e=a[c];h.isArray(e)?d(e,b):b.push(e)}return b}function e(a){return h.isJsObject(a)?h.isArray(a)||!(a instanceof b.Map)&&h.getSymbolIterator()in a:!1}function f(a,b,c){for(var d=a[h.getSymbolIterator()](),e=b[h.getSymbolIterator()]();;){var f=d.next(),g=e.next();if(f.done&&g.done)return!0;if(f.done||g.done)return!1;if(!c(f.value,g.value))return!1}}function g(a,b){if(h.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(var d,e=a[h.getSymbolIterator()]();!(d=e.next()).done;)b(d.value)}var h=a("65");b.Map=h.global.Map,b.Set=h.global.Set;var i=function(){try{if(1===new b.Map([[1,2]]).size)return function(a){return new b.Map(a)}}catch(a){}return function(a){for(var c=new b.Map,d=0;d<a.length;d++){var e=a[d];c.set(e[0],e[1])}return c}}(),j=function(){try{if(new b.Map(new b.Map))return function(a){return new b.Map(a)}}catch(a){}return function(a){var c=new b.Map;return a.forEach(function(a,b){c.set(b,a)}),c}}(),k=function(){return(new b.Map).keys().next?function(a){for(var b,c=a.keys();!(b=c.next()).done;)a.set(b.value,null)}:function(a){a.forEach(function(b,c){a.set(c,null)})}}(),l=function(){try{if((new b.Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=o.createFixedSize(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),m=function(){function a(){}return a.clone=function(a){return j(a)},a.createFromStringMap=function(a){var c=new b.Map;for(var d in a)c.set(d,a[d]);return c},a.toStringMap=function(a){var b={};return a.forEach(function(a,c){return b[c]=a}),b},a.createFromPairs=function(a){return i(a)},a.clearValues=function(a){k(a)},a.iterable=function(a){return a},a.keys=function(a){return l(a,!1)},a.values=function(a){return l(a,!0)},a}();b.MapWrapper=m;var n=function(){function a(){}return a.create=function(){return{}},a.contains=function(a,b){
|
||
return a.hasOwnProperty(b)},a.get=function(a,b){return a.hasOwnProperty(b)?a[b]:void 0},a.set=function(a,b,c){a[b]=c},a.keys=function(a){return Object.keys(a)},a.values=function(a){return Object.keys(a).reduce(function(b,c){return b.push(a[c]),b},[])},a.isEmpty=function(a){for(var b in a)return!1;return!0},a["delete"]=function(a,b){delete a[b]},a.forEach=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},a.merge=function(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f<c.length;f++)if(e=c[f],a[e]!==b[e])return!1;return!0},a}();b.StringMapWrapper=n;var o=function(){function a(){}return a.createFixedSize=function(a){return new Array(a)},a.createGrowableSize=function(a){return new Array(a)},a.clone=function(a){return a.slice(0)},a.forEachWithIndex=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)},a.first=function(a){return a?a[0]:null},a.last=function(a){return a&&0!=a.length?a[a.length-1]:null},a.indexOf=function(a,b,c){return void 0===c&&(c=0),a.indexOf(b,c)},a.contains=function(a,b){return-1!==a.indexOf(b)},a.reversed=function(b){var c=a.clone(b);return c.reverse()},a.concat=function(a,b){return a.concat(b)},a.insert=function(a,b,c){a.splice(b,0,c)},a.removeAt=function(a,b){var c=a[b];return a.splice(b,1),c},a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.splice=function(a,b,c){return a.splice(b,c)},a.sort=function(a,b){h.isPresent(b)?a.sort(b):a.sort()},a.toString=function(a){return a.toString()},a.toJSON=function(a){return JSON.stringify(a)},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(!h.isBlank(f)){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return d(a,b),b},a.addAll=function(a,b){for(var c=0;c<b.length;c++)a.push(b[c])},a}();b.ListWrapper=o,b.isListLikeIterable=e,b.areIterablesEqual=f,b.iterateListLike=g;var p=function(){var a=new b.Set([1,2,3]);return 3===a.size?function(a){return new b.Set(a)}:function(a){var c=new b.Set(a);if(c.size!==a.length)for(var d=0;d<a.length;d++)c.add(a[d]);return c}}(),q=function(){function a(){}return a.createFromList=function(a){return p(a)},a.has=function(a,b){return a.has(b)},a["delete"]=function(a,b){a["delete"](b)},a}();return b.SetWrapper=q,c.exports}),a.registerDynamic("245",["64","65","5d"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("64"),f=a("65"),g=a("5d"),h=function(a){function b(){var b=this;a.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var c=this.createElement("div",this.defaultDoc());if(f.isPresent(this.getStyle(c,"animationName")))this._animationPrefix="";else for(var d=["Webkit","Moz","O","ms"],g=0;g<d.length;g++)if(f.isPresent(this.getStyle(c,d[g]+"AnimationName"))){this._animationPrefix="-"+d[g].toLowerCase()+"-";break}var h={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};e.StringMapWrapper.forEach(h,function(a,d){f.isPresent(b.getStyle(c,d))&&(b._transitionEnd=a)})}catch(i){this._animationPrefix=null,this._transitionEnd=null}}return d(b,a),b.prototype.getDistributedNodes=function(a){return a.getDistributedNodes()},b.prototype.resolveAndSetHref=function(a,b,c){a.href=null==c?b:b+"/../"+c},b.prototype.supportsDOMEvents=function(){return!0},b.prototype.supportsNativeShadowDOM=function(){return f.isFunction(this.defaultDoc().body.createShadowRoot)},b.prototype.getAnimationPrefix=function(){return f.isPresent(this._animationPrefix)?this._animationPrefix:""},b.prototype.getTransitionEnd=function(){return f.isPresent(this._transitionEnd)?this._transitionEnd:""},b.prototype.supportsAnimation=function(){return f.isPresent(this._animationPrefix)&&f.isPresent(this._transitionEnd)},b}(g.DomAdapter);return b.GenericBrowserDomAdapter=h,c.exports}),a.registerDynamic("65",[],!0,function(a,b,c){"use strict";function d(a){Zone.current.scheduleMicroTask("scheduleMicrotask",a)}function e(a){return a.name?a.name:typeof a}function f(){T=!0}function g(){if(T)throw"Cannot enable prod mode after platform setup.";S=!1}function h(){return S}function i(a){return void 0!==a&&null!==a}function j(a){return void 0===a||null===a}function k(a){return"boolean"==typeof a}function l(a){return"number"==typeof a}function m(a){return"string"==typeof a}function n(a){return"function"==typeof a}function o(a){return n(a)}function p(a){return"object"==typeof a&&null!==a}function q(a){return p(a)&&Object.getPrototypeOf(a)===U}function r(a){return a instanceof R.Promise}function s(a){return Array.isArray(a)}function t(a){return a instanceof b.Date&&!isNaN(a.valueOf())}function u(){}function v(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.name)return a.name;if(a.overriddenName)return a.overriddenName;var b=a.toString(),c=b.indexOf("\n");return-1===c?b:b.substring(0,c)}function w(a){return a}function x(a,b){return a}function y(a,b){return a[b]}function z(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function A(a){return a}function B(a){return j(a)?null:a}function C(a){return j(a)?!1:a}function D(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function E(a){console.log(a)}function F(a){console.warn(a)}function G(a,b,c){for(var d=b.split("."),e=a;d.length>1;){var f=d.shift();e=e.hasOwnProperty(f)&&i(e[f])?e[f]:e[f]={}}void 0!==e&&null!==e||(e={}),e[d.shift()]=c}function H(){if(j(ca))if(i(O.Symbol)&&i(Symbol.iterator))ca=Symbol.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(ca=c)}return ca}function I(a,b,c,d){var e=c+"\nreturn "+b+"\n//# sourceURL="+a,f=[],g=[];for(var h in d)f.push(h),g.push(d[h]);return(new(Function.bind.apply(Function,[void 0].concat(f.concat(e))))).apply(void 0,g)}function J(a){return!D(a)}function K(a,b){return a.constructor===b}function L(a){return a.reduce(function(a,b){return a|b})}function M(a){return a.reduce(function(a,b){return a&b})}function N(a){return R.encodeURI(a)}var O,P=this,Q=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};O="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:P:window,b.scheduleMicroTask=d,b.IS_DART=!1;var R=O;b.global=R,b.Type=Function,b.getTypeNameForDebugging=e,b.Math=R.Math,b.Date=R.Date;var S=!0,T=!1;b.lockMode=f,b.enableProdMode=g,b.assertionsEnabled=h,R.assert=function(a){},b.isPresent=i,b.isBlank=j,b.isBoolean=k,b.isNumber=l,b.isString=m,b.isFunction=n,b.isType=o,b.isStringMap=p;var U=Object.getPrototypeOf({});b.isStrictStringMap=q,b.isPromise=r,b.isArray=s,b.isDate=t,b.noop=u,b.stringify=v,b.serializeEnum=w,b.deserializeEnum=x,b.resolveEnumToken=y;var V=function(){function a(){}return a.fromCharCode=function(a){return String.fromCharCode(a)},a.charCodeAt=function(a,b){return a.charCodeAt(b)},a.split=function(a,b){return a.split(b)},a.equals=function(a,b){return a===b},a.stripLeft=function(a,b){if(a&&a.length){for(var c=0,d=0;d<a.length&&a[d]==b;d++)c++;a=a.substring(c)}return a},a.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,d=a.length-1;d>=0&&a[d]==b;d--)c--;a=a.substring(0,c)}return a},a.replace=function(a,b,c){return a.replace(b,c)},a.replaceAll=function(a,b,c){return a.replace(b,c)},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=V;var W=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=W;var X=function(a){function b(b){a.call(this),this.message=b}return Q(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=X;var Y=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new X("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new X("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}();b.NumberWrapper=Y,b.RegExp=R.RegExp;var Z=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new R.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=function(a,b){return a.lastIndex=0,a.test(b)},a.matcher=function(a,b){return a.lastIndex=0,{re:a,input:b}},a.replaceAll=function(a,b,c){var d=a.exec(b),e="";a.lastIndex=0;for(var f=0;d;)e+=b.substring(f,d.index),e+=c(d),f=d.index+d[0].length,a.lastIndex=f,d=a.exec(b);return e+=b.substring(f)},a}();b.RegExpWrapper=Z;var $=function(){function a(){}return a.next=function(a){return a.re.exec(a.input)},a}();b.RegExpMatcherWrapper=$;var _=function(){function a(){}return a.apply=function(a,b){return a.apply(null,b)},a}();b.FunctionWrapper=_,b.looseIdentical=z,b.getMapKey=A,b.normalizeBlank=B,b.normalizeBool=C,b.isJsObject=D,b.print=E,b.warn=F;var aa=function(){function a(){}return a.parse=function(a){return R.JSON.parse(a)},a.stringify=function(a){return R.JSON.stringify(a,null,2)},a}();b.Json=aa;var ba=function(){function a(){}return a.create=function(a,c,d,e,f,g,h){return void 0===c&&(c=1),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),void 0===g&&(g=0),void 0===h&&(h=0),new b.Date(a,c-1,d,e,f,g,h)},a.fromISOString=function(a){return new b.Date(a)},a.fromMillis=function(a){return new b.Date(a)},a.toMillis=function(a){return a.getTime()},a.now=function(){return new b.Date},a.toJson=function(a){return a.toJSON()},a}();b.DateWrapper=ba,b.setValueOnPath=G;var ca=null;return b.getSymbolIterator=H,b.evalExpression=I,b.isPrimitive=J,b.hasConstructor=K,b.bitWiseOr=L,b.bitWiseAnd=M,b.escape=N,c.exports}),a.registerDynamic("5d",["65"],!0,function(a,b,c){"use strict";function d(){return h}function e(a){h=a}function f(a){g.isBlank(h)&&(h=a)}var g=a("65"),h=null;b.getDOM=d,b.setDOM=e,b.setRootDomAdapter=f;var i=function(){function a(){this.xhrType=null}return a.prototype.getXHR=function(){return this.xhrType},Object.defineProperty(a.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(a){this._attrToPropMap=a},enumerable:!0,configurable:!0}),a}();return b.DomAdapter=i,c.exports}),a.registerDynamic("5e",["64","65","245","5d"],!0,function(a,b,c){"use strict";function d(){return h.isBlank(p)&&(p=document.querySelector("base"),h.isBlank(p))?null:p.getAttribute("href")}function e(a){return h.isBlank(q)&&(q=document.createElement("a")),q.setAttribute("href",a),"/"===q.pathname.charAt(0)?q.pathname:"/"+q.pathname}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("64"),h=a("65"),i=a("245"),j=a("5d"),k={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},l=3,m={"\b":"Backspace"," ":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},n={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},o=function(a){function b(){a.apply(this,arguments)}return f(b,a),b.prototype.parse=function(a){throw new Error("parse not implemented")},b.makeCurrent=function(){j.setRootDomAdapter(new b)},b.prototype.hasProperty=function(a,b){return b in a},b.prototype.setProperty=function(a,b,c){a[b]=c},b.prototype.getProperty=function(a,b){return a[b]},b.prototype.invoke=function(a,b,c){a[b].apply(a,c)},b.prototype.logError=function(a){window.console.error?window.console.error(a):window.console.log(a)},b.prototype.log=function(a){window.console.log(a)},b.prototype.logGroup=function(a){window.console.group?(window.console.group(a),this.logError(a)):window.console.log(a)},b.prototype.logGroupEnd=function(){window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(b.prototype,"attrToPropMap",{get:function(){return k},enumerable:!0,configurable:!0}),b.prototype.query=function(a){return document.querySelector(a)},b.prototype.querySelector=function(a,b){return a.querySelector(b)},b.prototype.querySelectorAll=function(a,b){return a.querySelectorAll(b)},b.prototype.on=function(a,b,c){a.addEventListener(b,c,!1)},b.prototype.onAndCancel=function(a,b,c){return a.addEventListener(b,c,!1),function(){a.removeEventListener(b,c,!1)}},b.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)},b.prototype.createMouseEvent=function(a){var b=document.createEvent("MouseEvent");return b.initEvent(a,!0,!0),b},b.prototype.createEvent=function(a){var b=document.createEvent("Event");return b.initEvent(a,!0,!0),b},b.prototype.preventDefault=function(a){a.preventDefault(),a.returnValue=!1},b.prototype.isPrevented=function(a){return a.defaultPrevented||h.isPresent(a.returnValue)&&!a.returnValue},b.prototype.getInnerHTML=function(a){return a.innerHTML},b.prototype.getOuterHTML=function(a){return a.outerHTML},b.prototype.nodeName=function(a){return a.nodeName},b.prototype.nodeValue=function(a){return a.nodeValue},b.prototype.type=function(a){return a.type},b.prototype.content=function(a){return this.hasProperty(a,"content")?a.content:a},b.prototype.firstChild=function(a){return a.firstChild},b.prototype.nextSibling=function(a){return a.nextSibling},b.prototype.parentElement=function(a){return a.parentNode},b.prototype.childNodes=function(a){return a.childNodes},b.prototype.childNodesAsList=function(a){for(var b=a.childNodes,c=g.ListWrapper.createFixedSize(b.length),d=0;d<b.length;d++)c[d]=b[d];return c},b.prototype.clearNodes=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},b.prototype.appendChild=function(a,b){a.appendChild(b)},b.prototype.removeChild=function(a,b){a.removeChild(b)},b.prototype.replaceChild=function(a,b,c){a.replaceChild(b,c)},b.prototype.remove=function(a){return a.parentNode&&a.parentNode.removeChild(a),a},b.prototype.insertBefore=function(a,b){a.parentNode.insertBefore(b,a)},b.prototype.insertAllBefore=function(a,b){b.forEach(function(b){return a.parentNode.insertBefore(b,a)})},b.prototype.insertAfter=function(a,b){a.parentNode.insertBefore(b,a.nextSibling)},b.prototype.setInnerHTML=function(a,b){a.innerHTML=b},b.prototype.getText=function(a){return a.textContent},b.prototype.setText=function(a,b){a.textContent=b},b.prototype.getValue=function(a){return a.value},b.prototype.setValue=function(a,b){a.value=b},b.prototype.getChecked=function(a){return a.checked},b.prototype.setChecked=function(a,b){a.checked=b},b.prototype.createComment=function(a){return document.createComment(a)},b.prototype.createTemplate=function(a){var b=document.createElement("template");return b.innerHTML=a,b},b.prototype.createElement=function(a,b){return void 0===b&&(b=document),b.createElement(a)},b.prototype.createElementNS=function(a,b,c){return void 0===c&&(c=document),c.createElementNS(a,b)},b.prototype.createTextNode=function(a,b){return void 0===b&&(b=document),b.createTextNode(a)},b.prototype.createScriptTag=function(a,b,c){void 0===c&&(c=document);var d=c.createElement("SCRIPT");return d.setAttribute(a,b),d},b.prototype.createStyleElement=function(a,b){void 0===b&&(b=document);var c=b.createElement("style");return this.appendChild(c,this.createTextNode(a)),c},b.prototype.createShadowRoot=function(a){return a.createShadowRoot()},b.prototype.getShadowRoot=function(a){return a.shadowRoot},b.prototype.getHost=function(a){return a.host},b.prototype.clone=function(a){return a.cloneNode(!0)},b.prototype.getElementsByClassName=function(a,b){return a.getElementsByClassName(b)},b.prototype.getElementsByTagName=function(a,b){return a.getElementsByTagName(b)},b.prototype.classList=function(a){return Array.prototype.slice.call(a.classList,0)},b.prototype.addClass=function(a,b){a.classList.add(b)},b.prototype.removeClass=function(a,b){a.classList.remove(b)},b.prototype.hasClass=function(a,b){return a.classList.contains(b)},b.prototype.setStyle=function(a,b,c){a.style[b]=c},b.prototype.removeStyle=function(a,b){a.style[b]=null},b.prototype.getStyle=function(a,b){return a.style[b]},b.prototype.hasStyle=function(a,b,c){void 0===c&&(c=null);var d=this.getStyle(a,b)||"";return c?d==c:d.length>0},b.prototype.tagName=function(a){return a.tagName},b.prototype.attributeMap=function(a){for(var b=new Map,c=a.attributes,d=0;d<c.length;d++){var e=c[d];b.set(e.name,e.value)}return b},b.prototype.hasAttribute=function(a,b){return a.hasAttribute(b)},b.prototype.hasAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)},b.prototype.getAttribute=function(a,b){return a.getAttribute(b)},b.prototype.getAttributeNS=function(a,b,c){return a.getAttributeNS(b,c)},b.prototype.setAttribute=function(a,b,c){a.setAttribute(b,c)},b.prototype.setAttributeNS=function(a,b,c,d){a.setAttributeNS(b,c,d)},b.prototype.removeAttribute=function(a,b){a.removeAttribute(b)},b.prototype.removeAttributeNS=function(a,b,c){a.removeAttributeNS(b,c)},b.prototype.templateAwareRoot=function(a){return this.isTemplateElement(a)?this.content(a):a},b.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},b.prototype.defaultDoc=function(){return document},b.prototype.getBoundingClientRect=function(a){try{return a.getBoundingClientRect()}catch(b){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},b.prototype.getTitle=function(){return document.title},b.prototype.setTitle=function(a){document.title=a||""},b.prototype.elementMatches=function(a,b){var c=!1;return a instanceof HTMLElement&&(a.matches?c=a.matches(b):a.msMatchesSelector?c=a.msMatchesSelector(b):a.webkitMatchesSelector&&(c=a.webkitMatchesSelector(b))),c},b.prototype.isTemplateElement=function(a){return a instanceof HTMLElement&&"TEMPLATE"==a.nodeName},b.prototype.isTextNode=function(a){return a.nodeType===Node.TEXT_NODE},b.prototype.isCommentNode=function(a){return a.nodeType===Node.COMMENT_NODE},b.prototype.isElementNode=function(a){return a.nodeType===Node.ELEMENT_NODE},b.prototype.hasShadowRoot=function(a){return a instanceof HTMLElement&&h.isPresent(a.shadowRoot)},b.prototype.isShadowRoot=function(a){return a instanceof DocumentFragment},b.prototype.importIntoDoc=function(a){var b=a;return this.isTemplateElement(a)&&(b=this.content(a)),document.importNode(b,!0)},b.prototype.adoptNode=function(a){return document.adoptNode(a)},b.prototype.getHref=function(a){return a.href},b.prototype.getEventKey=function(a){var b=a.key;if(h.isBlank(b)){if(b=a.keyIdentifier,h.isBlank(b))return"Unidentified";b.startsWith("U+")&&(b=String.fromCharCode(parseInt(b.substring(2),16)),a.location===l&&n.hasOwnProperty(b)&&(b=n[b]))}return m.hasOwnProperty(b)&&(b=m[b]),b},b.prototype.getGlobalEventTarget=function(a){return"window"==a?window:"document"==a?document:"body"==a?document.body:void 0},b.prototype.getHistory=function(){return window.history},b.prototype.getLocation=function(){return window.location},b.prototype.getBaseHref=function(){var a=d();return h.isBlank(a)?null:e(a)},b.prototype.resetBaseElement=function(){p=null},b.prototype.getUserAgent=function(){return window.navigator.userAgent},b.prototype.setData=function(a,b,c){this.setAttribute(a,"data-"+b,c)},b.prototype.getData=function(a,b){return this.getAttribute(a,"data-"+b)},b.prototype.getComputedStyle=function(a){return getComputedStyle(a)},b.prototype.setGlobalVar=function(a,b){h.setValueOnPath(h.global,a,b)},b.prototype.requestAnimationFrame=function(a){return window.requestAnimationFrame(a)},b.prototype.cancelAnimationFrame=function(a){window.cancelAnimationFrame(a)},b.prototype.performanceNow=function(){return h.isPresent(window.performance)&&h.isPresent(window.performance.now)?window.performance.now():h.DateWrapper.toMillis(h.DateWrapper.now())},b}(i.GenericBrowserDomAdapter);b.BrowserDomAdapter=o;var p=null,q=null;return c.exports}),a.registerDynamic("8a",[],!0,function(a,b,c){"use strict";return b["default"]=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},b.__esModule=!0,c.exports}),a.registerDynamic("246",["9c","247","248"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9c"),f=a("247"),g=a("248"),h=function(a){function b(b){a.call(this),this.attributeName=b}return d(b,a),Object.defineProperty(b.prototype,"token",{get:function(){return this},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return"@Attribute("+e.stringify(this.attributeName)+")"},b}(f.DependencyMetadata);b.AttributeMetadata=h;var i=function(a){function b(b,c){var d=void 0===c?{}:c,e=d.descendants,f=void 0===e?!1:e,g=d.first,h=void 0===g?!1:g,i=d.read,j=void 0===i?null:i;a.call(this),this._selector=b,this.descendants=f,this.first=h,this.read=j}return d(b,a),Object.defineProperty(b.prototype,"isViewQuery",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"selector",{get:function(){return g.resolveForwardRef(this._selector)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isVarBindingQuery",{get:function(){return e.isString(this.selector)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"varBindings",{get:function(){return this.selector.split(",")},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return"@Query("+e.stringify(this.selector)+")"},b}(f.DependencyMetadata);b.QueryMetadata=i;var j=function(a){function b(b,c){var d=void 0===c?{}:c,e=d.descendants,f=void 0===e?!1:e,g=d.read,h=void 0===g?null:g;a.call(this,b,{descendants:f,read:h})}return d(b,a),b}(i);b.ContentChildrenMetadata=j;var k=function(a){function b(b,c){var d=(void 0===c?{}:c).read,e=void 0===d?null:d;a.call(this,b,{descendants:!0,first:!0,read:e})}return d(b,a),b}(i);b.ContentChildMetadata=k;var l=function(a){function b(b,c){var d=void 0===c?{}:c,e=d.descendants,f=void 0===e?!1:e,g=d.first,h=void 0===g?!1:g,i=d.read,j=void 0===i?null:i;a.call(this,b,{descendants:f,first:h,read:j})}return d(b,a),Object.defineProperty(b.prototype,"isViewQuery",{get:function(){return!0},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return"@ViewQuery("+e.stringify(this.selector)+")"},b}(i);b.ViewQueryMetadata=l;var m=function(a){function b(b,c){var d=(void 0===c?{}:c).read,e=void 0===d?null:d;a.call(this,b,{descendants:!0,read:e})}return d(b,a),b}(l);b.ViewChildrenMetadata=m;var n=function(a){function b(b,c){var d=(void 0===c?{}:c).read,e=void 0===d?null:d;a.call(this,b,{descendants:!0,first:!0,read:e})}return d(b,a),b}(l);return b.ViewChildMetadata=n,c.exports}),a.registerDynamic("249",["9c","247","24a"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9c"),f=a("247"),g=a("24a"),h=function(a){function b(b){var c=void 0===b?{}:b,d=c.selector,e=c.inputs,f=c.outputs,g=c.properties,h=c.events,i=c.host,j=c.bindings,k=c.providers,l=c.exportAs,m=c.queries;a.call(this),this.selector=d,this._inputs=e,this._properties=g,this._outputs=f,this._events=h,this.host=i,this.exportAs=l,this.queries=m,this._providers=k,this._bindings=j}return d(b,a),Object.defineProperty(b.prototype,"inputs",{get:function(){return e.isPresent(this._properties)&&this._properties.length>0?this._properties:this._inputs},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"properties",{get:function(){return this.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"outputs",{get:function(){return e.isPresent(this._events)&&this._events.length>0?this._events:this._outputs},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"events",{get:function(){return this.outputs},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"providers",{get:function(){return e.isPresent(this._bindings)&&this._bindings.length>0?this._bindings:this._providers},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"bindings",{get:function(){return this.providers},enumerable:!0,configurable:!0}),b}(f.InjectableMetadata);b.DirectiveMetadata=h;var i=function(a){function b(b){var c=void 0===b?{}:b,d=c.selector,e=c.inputs,f=c.outputs,h=c.properties,i=c.events,j=c.host,k=c.exportAs,l=c.moduleId,m=c.bindings,n=c.providers,o=c.viewBindings,p=c.viewProviders,q=c.changeDetection,r=void 0===q?g.ChangeDetectionStrategy.Default:q,s=c.queries,t=c.templateUrl,u=c.template,v=c.styleUrls,w=c.styles,x=c.directives,y=c.pipes,z=c.encapsulation;a.call(this,{selector:d,inputs:e,outputs:f,properties:h,events:i,host:j,exportAs:k,bindings:m,providers:n,queries:s}),this.changeDetection=r,this._viewProviders=p,this._viewBindings=o,this.templateUrl=t,this.template=u,this.styleUrls=v,this.styles=w,this.directives=x,this.pipes=y,this.encapsulation=z,this.moduleId=l}return d(b,a),Object.defineProperty(b.prototype,"viewProviders",{get:function(){return e.isPresent(this._viewBindings)&&this._viewBindings.length>0?this._viewBindings:this._viewProviders},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"viewBindings",{get:function(){return this.viewProviders},enumerable:!0,configurable:!0}),b}(h);b.ComponentMetadata=i;var j=function(a){function b(b){var c=b.name,d=b.pure;a.call(this),this.name=c,this._pure=d}return d(b,a),Object.defineProperty(b.prototype,"pure",{get:function(){return e.isPresent(this._pure)?this._pure:!0},enumerable:!0,configurable:!0}),b}(f.InjectableMetadata);b.PipeMetadata=j;var k=function(){function a(a){this.bindingPropertyName=a}return a}();b.InputMetadata=k;var l=function(){function a(a){this.bindingPropertyName=a}return a}();b.OutputMetadata=l;var m=function(){function a(a){this.hostPropertyName=a}return a}();b.HostBindingMetadata=m;var n=function(){function a(a,b){this.eventName=a,this.args=b}return a}();return b.HostListenerMetadata=n,c.exports}),a.registerDynamic("24b",["246","249","24c","24d"],!0,function(a,b,c){"use strict";var d=a("246");b.QueryMetadata=d.QueryMetadata,b.ContentChildrenMetadata=d.ContentChildrenMetadata,b.ContentChildMetadata=d.ContentChildMetadata,b.ViewChildrenMetadata=d.ViewChildrenMetadata,b.ViewQueryMetadata=d.ViewQueryMetadata,b.ViewChildMetadata=d.ViewChildMetadata,b.AttributeMetadata=d.AttributeMetadata;var e=a("249");b.ComponentMetadata=e.ComponentMetadata,b.DirectiveMetadata=e.DirectiveMetadata,b.PipeMetadata=e.PipeMetadata,b.InputMetadata=e.InputMetadata,b.OutputMetadata=e.OutputMetadata,b.HostBindingMetadata=e.HostBindingMetadata,b.HostListenerMetadata=e.HostListenerMetadata;var f=a("24c");b.ViewMetadata=f.ViewMetadata,b.ViewEncapsulation=f.ViewEncapsulation;var g=a("246"),h=a("249"),i=a("24c"),j=a("24d");b.Component=j.makeDecorator(h.ComponentMetadata,function(a){return a.View=k}),b.Directive=j.makeDecorator(h.DirectiveMetadata);var k=j.makeDecorator(i.ViewMetadata,function(a){return a.View=k});return b.Attribute=j.makeParamDecorator(g.AttributeMetadata),b.Query=j.makeParamDecorator(g.QueryMetadata),b.ContentChildren=j.makePropDecorator(g.ContentChildrenMetadata),b.ContentChild=j.makePropDecorator(g.ContentChildMetadata),b.ViewChildren=j.makePropDecorator(g.ViewChildrenMetadata),b.ViewChild=j.makePropDecorator(g.ViewChildMetadata),b.ViewQuery=j.makeParamDecorator(g.ViewQueryMetadata),b.Pipe=j.makeDecorator(h.PipeMetadata),b.Input=j.makePropDecorator(h.InputMetadata),b.Output=j.makePropDecorator(h.OutputMetadata),b.HostBinding=j.makePropDecorator(h.HostBindingMetadata),b.HostListener=j.makePropDecorator(h.HostListenerMetadata),c.exports}),a.registerDynamic("24e",["24d"],!0,function(a,b,c){"use strict";var d=a("24d");return b.Class=d.Class,c.exports}),a.registerDynamic("24f",["250"],!0,function(a,b,c){"use strict";var d=a("250");return b.NgZone=d.NgZone,b.NgZoneError=d.NgZoneError,c.exports}),a.registerDynamic("251",["252"],!0,function(a,b,c){"use strict";var d=a("252");return b.RootRenderer=d.RootRenderer,b.Renderer=d.Renderer,b.RenderComponentType=d.RenderComponentType,c.exports}),a.registerDynamic("253",["254","9c","255"],!0,function(a,b,c){"use strict";var d=a("254"),e=a("9c"),f=a("255"),g=function(){function a(){this._dirty=!0,this._results=[],this._emitter=new f.EventEmitter}return Object.defineProperty(a.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"first",{get:function(){return d.ListWrapper.first(this._results)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"last",{get:function(){return d.ListWrapper.last(this._results)},enumerable:!0,configurable:!0}),a.prototype.map=function(a){return this._results.map(a)},a.prototype.filter=function(a){return this._results.filter(a)},a.prototype.reduce=function(a,b){return this._results.reduce(a,b)},a.prototype.forEach=function(a){this._results.forEach(a)},a.prototype.toArray=function(){return d.ListWrapper.clone(this._results)},a.prototype[e.getSymbolIterator()]=function(){return this._results[e.getSymbolIterator()]()},a.prototype.toString=function(){return this._results.toString()},a.prototype.reset=function(a){this._results=d.ListWrapper.flatten(a),this._dirty=!1},a.prototype.notifyOnChanges=function(){this._emitter.emit(this)},a.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(a.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),a}();return b.QueryList=g,c.exports}),a.registerDynamic("256",["257","253","258","259","25a","25b","25c","25d","25e"],!0,function(a,b,c){"use strict";var d=a("257");b.ComponentResolver=d.ComponentResolver;var e=a("253");b.QueryList=e.QueryList;var f=a("258");b.DynamicComponentLoader=f.DynamicComponentLoader;var g=a("259");b.ElementRef=g.ElementRef;var h=a("25a");b.TemplateRef=h.TemplateRef;var i=a("25b");b.EmbeddedViewRef=i.EmbeddedViewRef,b.ViewRef=i.ViewRef;var j=a("25c");b.ViewContainerRef=j.ViewContainerRef;var k=a("25d");b.ComponentRef=k.ComponentRef,b.ComponentFactory=k.ComponentFactory;var l=a("25e");return b.ExpressionChangedAfterItHasBeenCheckedException=l.ExpressionChangedAfterItHasBeenCheckedException,
|
||
c.exports}),a.registerDynamic("25f",["260"],!0,function(a,b,c){"use strict";var d=a("260");return b.ChangeDetectionStrategy=d.ChangeDetectionStrategy,b.ChangeDetectorRef=d.ChangeDetectorRef,b.WrappedValue=d.WrappedValue,b.SimpleChange=d.SimpleChange,b.DefaultIterableDiffer=d.DefaultIterableDiffer,b.IterableDiffers=d.IterableDiffers,b.KeyValueDiffers=d.KeyValueDiffers,b.CollectionChangeRecord=d.CollectionChangeRecord,b.KeyValueChangeRecord=d.KeyValueChangeRecord,c.exports}),a.registerDynamic("261",["262"],!0,function(a,b,c){"use strict";var d=a("262");return b.PLATFORM_DIRECTIVES=new d.OpaqueToken("Platform Directives"),b.PLATFORM_PIPES=new d.OpaqueToken("Platform Pipes"),c.exports}),a.registerDynamic("263",["264","265","266","267","268"],!0,function(a,b,c){"use strict";function d(){return f.reflector}var e=a("264"),f=a("265"),g=a("266"),h=a("267"),i=a("268");return b.PLATFORM_COMMON_PROVIDERS=[i.PLATFORM_CORE_PROVIDERS,{provide:f.Reflector,useFactory:d,deps:[]},{provide:g.ReflectorReader,useExisting:f.Reflector},h.TestabilityRegistry,e.Console],c.exports}),a.registerDynamic("269",[],!0,function(a,b,c){"use strict";var d=function(){function a(a,b){this.error=a,this.stackTrace=b}return a}();b.NgZoneError=d;var e=function(){function a(a){var b=this,c=a.trace,e=a.onEnter,f=a.onLeave,g=a.setMicrotask,h=a.setMacrotask,i=a.onError;if(this.onEnter=e,this.onLeave=f,this.setMicrotask=g,this.setMacrotask=h,this.onError=i,!Zone)throw new Error("Angular requires Zone.js polyfill.");this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(a,c,d,e,f,g){try{return b.onEnter(),a.invokeTask(d,e,f,g)}finally{b.onLeave()}},onInvoke:function(a,c,d,e,f,g,h){try{return b.onEnter(),a.invoke(d,e,f,g,h)}finally{b.onLeave()}},onHasTask:function(a,c,d,e){a.hasTask(d,e),c==d&&("microTask"==e.change?b.setMicrotask(e.microTask):"macroTask"==e.change&&b.setMacrotask(e.macroTask))},onHandleError:function(a,c,e,f){return a.handleError(e,f),b.onError(new d(f,f.stack)),!1}})}return a.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},a.prototype.runInner=function(a){return this.inner.run(a)},a.prototype.runInnerGuarded=function(a){return this.inner.runGuarded(a)},a.prototype.runOuter=function(a){return this.outer.run(a)},a}();return b.NgZoneImpl=e,c.exports}),a.registerDynamic("250",["255","269","a9","22"],!0,function(a,b,c){return function(c){"use strict";var d=a("255"),e=a("269"),f=a("a9"),g=a("269");b.NgZoneError=g.NgZoneError;var h=function(){function a(a){var b=this,c=a.enableLongStackTrace,f=void 0===c?!1:c;this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new d.EventEmitter(!1),this._onMicrotaskEmpty=new d.EventEmitter(!1),this._onStable=new d.EventEmitter(!1),this._onErrorEvents=new d.EventEmitter(!1),this._zoneImpl=new e.NgZoneImpl({trace:f,onEnter:function(){b._nesting++,b._isStable&&(b._isStable=!1,b._onUnstable.emit(null))},onLeave:function(){b._nesting--,b._checkStable()},setMicrotask:function(a){b._hasPendingMicrotasks=a,b._checkStable()},setMacrotask:function(a){b._hasPendingMacrotasks=a},onError:function(a){return b._onErrorEvents.emit(a)}})}return a.isInAngularZone=function(){return e.NgZoneImpl.isInAngularZone()},a.assertInAngularZone=function(){if(!e.NgZoneImpl.isInAngularZone())throw new f.BaseException("Expected to be in Angular Zone, but it is not!")},a.assertNotInAngularZone=function(){if(e.NgZoneImpl.isInAngularZone())throw new f.BaseException("Expected to not be in Angular Zone, but it is!")},a.prototype._checkStable=function(){var a=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return a._onStable.emit(null)})}finally{this._isStable=!0}}},Object.defineProperty(a.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),a.prototype.run=function(a){return this._zoneImpl.runInner(a)},a.prototype.runGuarded=function(a){return this._zoneImpl.runInnerGuarded(a)},a.prototype.runOutsideAngular=function(a){return this._zoneImpl.runOuter(a)},a}();b.NgZone=h}(a("22")),c.exports}),a.registerDynamic("267",["254","9c","a9","250","255","26a"],!0,function(a,b,c){"use strict";function d(a){n=a}var e=a("254"),f=a("9c"),g=a("a9"),h=a("250"),i=a("255"),j=a("26a"),k=function(){function a(a){this._ngZone=a,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return a.prototype._watchAngularEvents=function(){var a=this;i.ObservableWrapper.subscribe(this._ngZone.onUnstable,function(b){a._didWork=!0,a._isZoneStable=!1}),this._ngZone.runOutsideAngular(function(){i.ObservableWrapper.subscribe(a._ngZone.onStable,function(b){h.NgZone.assertNotInAngularZone(),f.scheduleMicroTask(function(){a._isZoneStable=!0,a._runCallbacksIfReady()})})})},a.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},a.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new g.BaseException("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},a.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},a.prototype._runCallbacksIfReady=function(){var a=this;this.isStable()?f.scheduleMicroTask(function(){for(;0!==a._callbacks.length;)a._callbacks.pop()(a._didWork);a._didWork=!1}):this._didWork=!0},a.prototype.whenStable=function(a){this._callbacks.push(a),this._runCallbacksIfReady()},a.prototype.getPendingRequestCount=function(){return this._pendingCount},a.prototype.findBindings=function(a,b,c){return[]},a.prototype.findProviders=function(a,b,c){return[]},a.decorators=[{type:j.Injectable}],a.ctorParameters=[{type:h.NgZone}],a}();b.Testability=k;var l=function(){function a(){this._applications=new e.Map,n.addToWindow(this)}return a.prototype.registerApplication=function(a,b){this._applications.set(a,b)},a.prototype.getTestability=function(a){return this._applications.get(a)},a.prototype.getAllTestabilities=function(){return e.MapWrapper.values(this._applications)},a.prototype.getAllRootElements=function(){return e.MapWrapper.keys(this._applications)},a.prototype.findTestabilityInTree=function(a,b){return void 0===b&&(b=!0),n.findTestabilityInTree(this,a,b)},a.decorators=[{type:j.Injectable}],a.ctorParameters=[],a}();b.TestabilityRegistry=l;var m=function(){function a(){}return a.prototype.addToWindow=function(a){},a.prototype.findTestabilityInTree=function(a,b,c){return null},a}();b.setTestabilityGetter=d;var n=new m;return c.exports}),a.registerDynamic("268",["250","9c","262","26b","255","254","267","257","a9","264","26c"],!0,function(a,b,c){"use strict";function d(){return new l.NgZone({enableLongStackTrace:m.assertionsEnabled()})}function e(a){if(x)throw new t.BaseException("Already creating a platform...");if(m.isPresent(w)&&!w.disposed)throw new t.BaseException("There can be only one platform. Destroy the previous one to create a new one.");m.lockMode(),x=!0;try{w=a.get(y)}finally{x=!1}return w}function f(a){var b=h();if(m.isBlank(b))throw new t.BaseException("Not platform exists!");if(m.isPresent(b)&&m.isBlank(b.injector.get(a,null)))throw new t.BaseException("A platform with a different configuration has been created. Please destroy it first.");return b}function g(){m.isPresent(w)&&!w.disposed&&w.dispose()}function h(){return m.isPresent(w)&&!w.disposed?w:null}function i(a,b){var c=a.get(A);return c.bootstrap(b)}function j(a,b){var c=a.get(A);return c.run(function(){var d=a.get(s.ComponentResolver);return p.PromiseWrapper.all([d.resolveComponent(b),c.waitForAsyncInitializers()]).then(function(a){return c.bootstrap(a[0])})})}var k=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l=a("250"),m=a("9c"),n=a("262"),o=a("26b"),p=a("255"),q=a("254"),r=a("267"),s=a("257"),t=a("a9"),u=a("264"),v=a("26c");b.createNgZone=d;var w,x=!1;b.createPlatform=e,b.assertPlatform=f,b.disposePlatform=g,b.getPlatform=h,b.coreBootstrap=i,b.coreLoadAndBootstrap=j;var y=function(){function a(){}return Object.defineProperty(a.prototype,"injector",{get:function(){throw t.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"disposed",{get:function(){throw t.unimplemented()},enumerable:!0,configurable:!0}),a}();b.PlatformRef=y;var z=function(a){function b(b){if(a.call(this),this._injector=b,this._applications=[],this._disposeListeners=[],this._disposed=!1,!x)throw new t.BaseException("Platforms have to be created via `createPlatform`!");var c=b.get(o.PLATFORM_INITIALIZER,null);m.isPresent(c)&&c.forEach(function(a){return a()})}return k(b,a),b.prototype.registerDisposeListener=function(a){this._disposeListeners.push(a)},Object.defineProperty(b.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),b.prototype.addApplication=function(a){this._applications.push(a)},b.prototype.dispose=function(){q.ListWrapper.clone(this._applications).forEach(function(a){return a.dispose()}),this._disposeListeners.forEach(function(a){return a()}),this._disposed=!0},b.prototype._applicationDisposed=function(a){q.ListWrapper.remove(this._applications,a)},b.decorators=[{type:n.Injectable}],b.ctorParameters=[{type:n.Injector}],b}(y);b.PlatformRef_=z;var A=function(){function a(){}return Object.defineProperty(a.prototype,"injector",{get:function(){return t.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"zone",{get:function(){return t.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentTypes",{get:function(){return t.unimplemented()},enumerable:!0,configurable:!0}),a}();b.ApplicationRef=A;var B=function(a){function b(b,c,d){var e=this;a.call(this),this._platform=b,this._zone=c,this._injector=d,this._bootstrapListeners=[],this._disposeListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._changeDetectorRefs=[],this._runningTick=!1,this._enforceNoNewChanges=!1;var f=d.get(l.NgZone);this._enforceNoNewChanges=m.assertionsEnabled(),f.run(function(){e._exceptionHandler=d.get(t.ExceptionHandler)}),this._asyncInitDonePromise=this.run(function(){var a,b=d.get(o.APP_INITIALIZER,null),c=[];if(m.isPresent(b))for(var f=0;f<b.length;f++){var g=b[f]();m.isPromise(g)&&c.push(g)}return c.length>0?(a=p.PromiseWrapper.all(c).then(function(a){return e._asyncInitDone=!0}),e._asyncInitDone=!1):(e._asyncInitDone=!0,a=p.PromiseWrapper.resolve(!0)),a}),p.ObservableWrapper.subscribe(f.onError,function(a){e._exceptionHandler.call(a.error,a.stackTrace)}),p.ObservableWrapper.subscribe(this._zone.onMicrotaskEmpty,function(a){e._zone.run(function(){e.tick()})})}return k(b,a),b.prototype.registerBootstrapListener=function(a){this._bootstrapListeners.push(a)},b.prototype.registerDisposeListener=function(a){this._disposeListeners.push(a)},b.prototype.registerChangeDetector=function(a){this._changeDetectorRefs.push(a)},b.prototype.unregisterChangeDetector=function(a){q.ListWrapper.remove(this._changeDetectorRefs,a)},b.prototype.waitForAsyncInitializers=function(){return this._asyncInitDonePromise},b.prototype.run=function(a){var b,c=this,d=this.injector.get(l.NgZone),e=p.PromiseWrapper.completer();return d.run(function(){try{b=a(),m.isPromise(b)&&p.PromiseWrapper.then(b,function(a){e.resolve(a)},function(a,b){e.reject(a,b),c._exceptionHandler.call(a,b)})}catch(d){throw c._exceptionHandler.call(d,d.stack),d}}),m.isPromise(b)?e.promise:b},b.prototype.bootstrap=function(a){var b=this;if(!this._asyncInitDone)throw new t.BaseException("Cannot bootstrap as there are still asynchronous initializers running. Wait for them using waitForAsyncInitializers().");return this.run(function(){b._rootComponentTypes.push(a.componentType);var c=a.create(b._injector,[],a.selector);c.onDestroy(function(){b._unloadComponent(c)});var d=c.injector.get(r.Testability,null);m.isPresent(d)&&c.injector.get(r.TestabilityRegistry).registerApplication(c.location.nativeElement,d),b._loadComponent(c);var e=b._injector.get(u.Console);return m.assertionsEnabled()&&e.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode."),c})},b.prototype._loadComponent=function(a){this._changeDetectorRefs.push(a.changeDetectorRef),this.tick(),this._rootComponents.push(a),this._bootstrapListeners.forEach(function(b){return b(a)})},b.prototype._unloadComponent=function(a){q.ListWrapper.contains(this._rootComponents,a)&&(this.unregisterChangeDetector(a.changeDetectorRef),q.ListWrapper.remove(this._rootComponents,a))},Object.defineProperty(b.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),b.prototype.tick=function(){if(this._runningTick)throw new t.BaseException("ApplicationRef.tick is called recursively");var a=b._tickScope();try{this._runningTick=!0,this._changeDetectorRefs.forEach(function(a){return a.detectChanges()}),this._enforceNoNewChanges&&this._changeDetectorRefs.forEach(function(a){return a.checkNoChanges()})}finally{this._runningTick=!1,v.wtfLeave(a)}},b.prototype.dispose=function(){q.ListWrapper.clone(this._rootComponents).forEach(function(a){return a.destroy()}),this._disposeListeners.forEach(function(a){return a()}),this._platform._applicationDisposed(this)},Object.defineProperty(b.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),b._tickScope=v.wtfCreateScope("ApplicationRef#tick()"),b.decorators=[{type:n.Injectable}],b.ctorParameters=[{type:z},{type:l.NgZone},{type:n.Injector}],b}(A);return b.ApplicationRef_=B,b.PLATFORM_CORE_PROVIDERS=[z,{provide:y,useExisting:z}],b.APPLICATION_CORE_PROVIDERS=[{provide:l.NgZone,useFactory:d,deps:[]},B,{provide:A,useExisting:B}],c.exports}),a.registerDynamic("258",["257","9c","26d","26a"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("257"),f=a("9c"),g=a("26d"),h=a("26a"),i=function(){function a(){}return a}();b.DynamicComponentLoader=i;var j=function(a){function b(b){a.call(this),this._compiler=b}return d(b,a),b.prototype.loadAsRoot=function(a,b,c,d,e){return this._compiler.resolveComponent(a).then(function(a){var g=a.create(c,e,f.isPresent(b)?b:a.selector);return f.isPresent(d)&&g.onDestroy(d),g})},b.prototype.loadNextToLocation=function(a,b,c,d){return void 0===c&&(c=null),void 0===d&&(d=null),this._compiler.resolveComponent(a).then(function(a){var e=b.parentInjector,h=f.isPresent(c)&&c.length>0?g.ReflectiveInjector.fromResolvedProviders(c,e):e;return b.createComponent(a,b.length,h,d)})},b.decorators=[{type:h.Injectable}],b.ctorParameters=[{type:e.ComponentResolver}],b}(i);return b.DynamicComponentLoader_=j,c.exports}),a.registerDynamic("26e",["26b","268","260","26f","257","258"],!0,function(a,b,c){"use strict";var d=a("26b"),e=a("268"),f=a("260"),g=a("26f"),h=a("257"),i=a("258");return b.APPLICATION_COMMON_PROVIDERS=[e.APPLICATION_CORE_PROVIDERS,{provide:h.ComponentResolver,useClass:h.ReflectorComponentResolver},d.APP_ID_RANDOM_PROVIDER,g.ViewUtils,{provide:f.IterableDiffers,useValue:f.defaultIterableDiffers},{provide:f.KeyValueDiffers,useValue:f.defaultKeyValueDiffers},{provide:i.DynamicComponentLoader,useClass:i.DynamicComponentLoader_}],c.exports}),a.registerDynamic("270",[],!0,function(a,b,c){"use strict";!function(a){a[a.OnInit=0]="OnInit",a[a.OnDestroy=1]="OnDestroy",a[a.DoCheck=2]="DoCheck",a[a.OnChanges=3]="OnChanges",a[a.AfterContentInit=4]="AfterContentInit",a[a.AfterContentChecked=5]="AfterContentChecked",a[a.AfterViewInit=6]="AfterViewInit",a[a.AfterViewChecked=7]="AfterViewChecked"}(b.LifecycleHooks||(b.LifecycleHooks={}));var d=b.LifecycleHooks;return b.LIFECYCLE_HOOKS_VALUES=[d.OnInit,d.OnDestroy,d.DoCheck,d.OnChanges,d.AfterContentInit,d.AfterContentChecked,d.AfterViewInit,d.AfterViewChecked],c.exports}),a.registerDynamic("25d",["9c","a9","26f"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9c"),f=a("a9"),g=a("26f"),h=function(){function a(){}return Object.defineProperty(a.prototype,"location",{get:function(){return f.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return f.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"instance",{get:function(){return f.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hostView",{get:function(){return f.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"changeDetectorRef",{get:function(){return f.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentType",{get:function(){return f.unimplemented()},enumerable:!0,configurable:!0}),a}();b.ComponentRef=h;var i=function(a){function b(b,c){a.call(this),this._hostElement=b,this._componentType=c}return d(b,a),Object.defineProperty(b.prototype,"location",{get:function(){return this._hostElement.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"injector",{get:function(){return this._hostElement.injector},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"instance",{get:function(){return this._hostElement.component},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hostView",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"changeDetectorRef",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),b.prototype.destroy=function(){this._hostElement.parentView.destroy()},b.prototype.onDestroy=function(a){this.hostView.onDestroy(a)},b}(h);b.ComponentRef_=i;var j=new Object,k=function(){function a(a,b,c){this.selector=a,this._viewFactory=b,this._componentType=c}return Object.defineProperty(a.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),a.prototype.create=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null);var d=a.get(g.ViewUtils);e.isBlank(b)&&(b=[]);var f=this._viewFactory(d,a,null),h=f.create(j,b,c);return new i(h,this._componentType)},a}();return b.ComponentFactory=k,c.exports}),a.registerDynamic("257",["9c","a9","255","265","25d","26a"],!0,function(a,b,c){"use strict";function d(a){return a instanceof j.ComponentFactory}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("9c"),g=a("a9"),h=a("255"),i=a("265"),j=a("25d"),k=a("26a"),l=function(){function a(){}return a}();b.ComponentResolver=l;var m=function(a){function b(){a.apply(this,arguments)}return e(b,a),b.prototype.resolveComponent=function(a){var b=i.reflector.annotations(a),c=b.find(d);if(f.isBlank(c))throw new g.BaseException("No precompiled component "+f.stringify(a)+" found");return h.PromiseWrapper.resolve(c)},b.prototype.clearCache=function(){},b.decorators=[{type:k.Injectable}],b}(l);return b.ReflectorComponentResolver=m,c.exports}),a.registerDynamic("271",[],!0,function(a,b,c){"use strict";var d=function(){function a(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b,a.reject=c})}return a}();b.PromiseCompleter=d;var e=function(){function a(){}return a.resolve=function(a){return Promise.resolve(a)},a.reject=function(a,b){return Promise.reject(a)},a.catchError=function(a,b){return a["catch"](b)},a.all=function(a){return 0==a.length?Promise.resolve([]):Promise.all(a)},a.then=function(a,b,c){return a.then(b,c)},a.wrap=function(a){return new Promise(function(b,c){try{b(a())}catch(d){c(d)}})},a.scheduleMicrotask=function(b){a.then(a.resolve(null),b,function(a){})},a.isPromise=function(a){return a instanceof Promise},a.completer=function(){return new d},a}();return b.PromiseWrapper=e,c.exports}),a.registerDynamic("272",["273"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("273"),f=function(a){function b(b,c){a.call(this),this.subject=b,this.observer=c,this.isUnsubscribed=!1}return d(b,a),b.prototype.unsubscribe=function(){if(!this.isUnsubscribed){this.isUnsubscribed=!0;var a=this.subject,b=a.observers;if(this.subject=null,b&&0!==b.length&&!a.isUnsubscribed){var c=b.indexOf(this.observer);-1!==c&&b.splice(c,1)}}},b}(e.Subscription);return b.SubjectSubscription=f,c.exports}),a.registerDynamic("274",[],!0,function(a,b,c){"use strict";function d(a){throw a}return b.throwError=d,c.exports}),a.registerDynamic("275",[],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(){a.call(this,"object unsubscribed"),this.name="ObjectUnsubscribedError"}return d(b,a),b}(Error);return b.ObjectUnsubscribedError=e,c.exports}),a.registerDynamic("33",["36","276","273","272","277","274","275"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("36"),f=a("276"),g=a("273"),h=a("272"),i=a("277"),j=a("274"),k=a("275"),l=function(a){function b(b,c){a.call(this),this.destination=b,this.source=c,this.observers=[],this.isUnsubscribed=!1,this.isStopped=!1,this.hasErrored=!1,this.dispatching=!1,this.hasCompleted=!1,this.source=c}return d(b,a),b.prototype.lift=function(a){var c=new b(this.destination||this,this);return c.operator=a,c},b.prototype.add=function(a){return g.Subscription.prototype.add.call(this,a)},b.prototype.remove=function(a){g.Subscription.prototype.remove.call(this,a)},b.prototype.unsubscribe=function(){g.Subscription.prototype.unsubscribe.call(this)},b.prototype._subscribe=function(a){if(this.source)return this.source.subscribe(a);if(!a.isUnsubscribed){if(this.hasErrored)return a.error(this.errorValue);if(this.hasCompleted)return a.complete();this.throwIfUnsubscribed();var b=new h.SubjectSubscription(this,a);return this.observers.push(a),b}},b.prototype._unsubscribe=function(){this.source=null,this.isStopped=!0,this.observers=null,this.destination=null},b.prototype.next=function(a){this.throwIfUnsubscribed(),this.isStopped||(this.dispatching=!0,this._next(a),this.dispatching=!1,this.hasErrored?this._error(this.errorValue):this.hasCompleted&&this._complete())},b.prototype.error=function(a){this.throwIfUnsubscribed(),this.isStopped||(this.isStopped=!0,this.hasErrored=!0,this.errorValue=a,this.dispatching||this._error(a))},b.prototype.complete=function(){this.throwIfUnsubscribed(),this.isStopped||(this.isStopped=!0,this.hasCompleted=!0,this.dispatching||this._complete())},b.prototype.asObservable=function(){var a=new m(this);return a},b.prototype._next=function(a){this.destination?this.destination.next(a):this._finalNext(a)},b.prototype._finalNext=function(a){for(var b=-1,c=this.observers.slice(0),d=c.length;++b<d;)c[b].next(a)},b.prototype._error=function(a){this.destination?this.destination.error(a):this._finalError(a)},b.prototype._finalError=function(a){var b=-1,c=this.observers;if(this.observers=null,this.isUnsubscribed=!0,c)for(var d=c.length;++b<d;)c[b].error(a);this.isUnsubscribed=!1,this.unsubscribe()},b.prototype._complete=function(){this.destination?this.destination.complete():this._finalComplete()},b.prototype._finalComplete=function(){var a=-1,b=this.observers;if(this.observers=null,this.isUnsubscribed=!0,b)for(var c=b.length;++a<c;)b[a].complete();this.isUnsubscribed=!1,this.unsubscribe()},b.prototype.throwIfUnsubscribed=function(){this.isUnsubscribed&&j.throwError(new k.ObjectUnsubscribedError)},b.prototype[i.$$rxSubscriber]=function(){return new f.Subscriber(this)},b.create=function(a,c){return new b(a,c)},b}(e.Observable);b.Subject=l;var m=function(a){function b(b){a.call(this),this.source=b}return d(b,a),b}(e.Observable);return c.exports}),a.registerDynamic("34",["278","36"],!0,function(a,b,c){"use strict";function d(a){var b=a.value,c=a.subscriber;c.isUnsubscribed||(c.next(b),c.complete())}function e(a){var b=a.err,c=a.subscriber;c.isUnsubscribed||c.error(b)}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("278"),h=a("36"),i=function(a){function b(b,c){void 0===c&&(c=null),a.call(this),this.promise=b,this.scheduler=c}return f(b,a),b.create=function(a,c){return void 0===c&&(c=null),new b(a,c)},b.prototype._subscribe=function(a){var b=this,c=this.promise,f=this.scheduler;if(null==f)this._isScalar?a.isUnsubscribed||(a.next(this.value),a.complete()):c.then(function(c){b.value=c,b._isScalar=!0,a.isUnsubscribed||(a.next(c),a.complete())},function(b){a.isUnsubscribed||a.error(b)}).then(null,function(a){g.root.setTimeout(function(){throw a})});else if(this._isScalar){if(!a.isUnsubscribed)return f.schedule(d,0,{value:this.value,subscriber:a})}else c.then(function(c){b.value=c,b._isScalar=!0,a.isUnsubscribed||a.add(f.schedule(d,0,{value:c,subscriber:a}))},function(b){a.isUnsubscribed||a.add(f.schedule(e,0,{err:b,subscriber:a}))}).then(null,function(a){g.root.setTimeout(function(){throw a})})},b}(h.Observable);return b.PromiseObservable=i,c.exports}),a.registerDynamic("35",["278"],!0,function(a,b,c){"use strict";function d(a){var b=this;if(a||(e.root.Rx&&e.root.Rx.config&&e.root.Rx.config.Promise?a=e.root.Rx.config.Promise:e.root.Promise&&(a=e.root.Promise)),!a)throw new Error("no Promise impl found");return new a(function(a,c){var d;b.subscribe(function(a){return d=a},function(a){return c(a)},function(){return a(d)})})}var e=a("278");return b.toPromise=d,c.exports}),a.registerDynamic("279",["278"],!0,function(a,b,c){"use strict";var d=a("278"),e=d.root.Symbol;return"function"==typeof e?e.observable?b.$$observable=e.observable:("function"==typeof e["for"]?b.$$observable=e["for"]("observable"):b.$$observable=e("observable"),e.observable=b.$$observable):b.$$observable="@@observable",c.exports}),a.registerDynamic("27a",[],!0,function(a,b,c){"use strict";return b.isArray=Array.isArray||function(a){return a&&"number"==typeof a.length},c.exports}),a.registerDynamic("27b",[],!0,function(a,b,c){"use strict";function d(a){return null!=a&&"object"==typeof a}return b.isObject=d,c.exports}),a.registerDynamic("27c",[],!0,function(a,b,c){"use strict";function d(a){return"function"==typeof a}return b.isFunction=d,c.exports}),a.registerDynamic("27d",["27e"],!0,function(a,b,c){"use strict";function d(){try{return f.apply(this,arguments)}catch(a){return g.errorObject.e=a,g.errorObject}}function e(a){return f=a,d}var f,g=a("27e");return b.tryCatch=e,c.exports}),a.registerDynamic("27e",[],!0,function(a,b,c){"use strict";return b.errorObject={e:{}},c.exports}),a.registerDynamic("27f",[],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(b){a.call(this),this.errors=b,this.name="UnsubscriptionError",this.message=b?b.length+" errors occurred during unsubscription:\n"+b.map(function(a,b){return b+1+") "+a.toString()}).join("\n"):""}return d(b,a),b}(Error);return b.UnsubscriptionError=e,c.exports}),a.registerDynamic("273",["27a","27b","27c","27d","27e","27f","22"],!0,function(a,b,c){return function(c){"use strict";var d=a("27a"),e=a("27b"),f=a("27c"),g=a("27d"),h=a("27e"),i=a("27f"),j=function(){function a(a){this.isUnsubscribed=!1,a&&(this._unsubscribe=a)}return a.prototype.unsubscribe=function(){var a,b=!1;if(!this.isUnsubscribed){this.isUnsubscribed=!0;var c=this,j=c._unsubscribe,k=c._subscriptions;if(this._subscriptions=null,f.isFunction(j)){var l=g.tryCatch(j).call(this);l===h.errorObject&&(b=!0,(a=a||[]).push(h.errorObject.e))}if(d.isArray(k))for(var m=-1,n=k.length;++m<n;){var o=k[m];if(e.isObject(o)){var l=g.tryCatch(o.unsubscribe).call(o);if(l===h.errorObject){b=!0,a=a||[];var p=h.errorObject.e;p instanceof i.UnsubscriptionError?a=a.concat(p.errors):a.push(p)}}}if(b)throw new i.UnsubscriptionError(a)}},a.prototype.add=function(b){if(b&&b!==this&&b!==a.EMPTY){var c=b;switch(typeof b){case"function":c=new a(b);case"object":if(c.isUnsubscribed||"function"!=typeof c.unsubscribe)break;this.isUnsubscribed?c.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(c);break;default:throw new Error("Unrecognized teardown "+b+" added to Subscription.")}return c}},a.prototype.remove=function(b){if(null!=b&&b!==this&&b!==a.EMPTY){var c=this._subscriptions;if(c){var d=c.indexOf(b);-1!==d&&c.splice(d,1)}}},a.EMPTY=function(a){return a.isUnsubscribed=!0,a}(new a),a}();b.Subscription=j}(a("22")),c.exports}),a.registerDynamic("280",[],!0,function(a,b,c){"use strict";return b.empty={isUnsubscribed:!0,next:function(a){},error:function(a){throw a},complete:function(){}},c.exports}),a.registerDynamic("276",["27c","273","277","280"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("27c"),f=a("273"),g=a("277"),h=a("280"),i=function(a){function b(c,d,e){switch(a.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=h.empty;break;case 1:if(!c){this.destination=h.empty;break}if("object"==typeof c){c instanceof b?(this.destination=c,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new j(this,c));break}default:this.syncErrorThrowable=!0,this.destination=new j(this,c,d,e)}}return d(b,a),b.create=function(a,c,d){var e=new b(a,c,d);return e.syncErrorThrowable=!1,e},b.prototype.next=function(a){this.isStopped||this._next(a)},b.prototype.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))},b.prototype.complete=function(){
|
||
this.isStopped||(this.isStopped=!0,this._complete())},b.prototype.unsubscribe=function(){this.isUnsubscribed||(this.isStopped=!0,a.prototype.unsubscribe.call(this))},b.prototype._next=function(a){this.destination.next(a)},b.prototype._error=function(a){this.destination.error(a),this.unsubscribe()},b.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},b.prototype[g.$$rxSubscriber]=function(){return this},b}(f.Subscription);b.Subscriber=i;var j=function(a){function b(b,c,d,f){a.call(this),this._parent=b;var g,h=this;e.isFunction(c)?g=c:c&&(h=c,g=c.next,d=c.error,f=c.complete,e.isFunction(h.unsubscribe)&&this.add(h.unsubscribe.bind(h)),h.unsubscribe=this.unsubscribe.bind(this)),this._context=h,this._next=g,this._error=d,this._complete=f}return d(b,a),b.prototype.next=function(a){if(!this.isStopped&&this._next){var b=this._parent;b.syncErrorThrowable?this.__tryOrSetError(b,this._next,a)&&this.unsubscribe():this.__tryOrUnsub(this._next,a)}},b.prototype.error=function(a){if(!this.isStopped){var b=this._parent;if(this._error)b.syncErrorThrowable?(this.__tryOrSetError(b,this._error,a),this.unsubscribe()):(this.__tryOrUnsub(this._error,a),this.unsubscribe());else{if(!b.syncErrorThrowable)throw this.unsubscribe(),a;b.syncErrorValue=a,b.syncErrorThrown=!0,this.unsubscribe()}}},b.prototype.complete=function(){if(!this.isStopped){var a=this._parent;this._complete?a.syncErrorThrowable?(this.__tryOrSetError(a,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},b.prototype.__tryOrUnsub=function(a,b){try{a.call(this._context,b)}catch(c){throw this.unsubscribe(),c}},b.prototype.__tryOrSetError=function(a,b,c){try{b.call(this._context,c)}catch(d){return a.syncErrorValue=d,a.syncErrorThrown=!0,!0}return!1},b.prototype._unsubscribe=function(){var a=this._parent;this._context=null,this._parent=null,a.unsubscribe()},b}(i);return c.exports}),a.registerDynamic("278",[],!0,function(a,b,c){"use strict";var d=this,e={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1};b.root=e[typeof self]&&self||e[typeof window]&&window;var f=(e[typeof b]&&b&&!b.nodeType&&b,e[typeof c]&&c&&!c.nodeType&&c,e[typeof d]&&d);return!f||f.global!==f&&f.window!==f||(b.root=f),c.exports}),a.registerDynamic("277",["278"],!0,function(a,b,c){"use strict";var d=a("278"),e=d.root.Symbol;return b.$$rxSubscriber="function"==typeof e&&"function"==typeof e["for"]?e["for"]("rxSubscriber"):"@@rxSubscriber",c.exports}),a.registerDynamic("281",["276","277"],!0,function(a,b,c){"use strict";function d(a,b,c){if(a&&"object"==typeof a){if(a instanceof e.Subscriber)return a;if("function"==typeof a[f.$$rxSubscriber])return a[f.$$rxSubscriber]()}return new e.Subscriber(a,b,c)}var e=a("276"),f=a("277");return b.toSubscriber=d,c.exports}),a.registerDynamic("36",["278","279","281"],!0,function(a,b,c){"use strict";var d=a("278"),e=a("279"),f=a("281"),g=function(){function a(a){this._isScalar=!1,a&&(this._subscribe=a)}return a.prototype.lift=function(b){var c=new a;return c.source=this,c.operator=b,c},a.prototype.subscribe=function(a,b,c){var d=this.operator,e=f.toSubscriber(a,b,c);if(e.add(d?d.call(e,this):this._subscribe(e)),e.syncErrorThrowable&&(e.syncErrorThrowable=!1,e.syncErrorThrown))throw e.syncErrorValue;return e},a.prototype.forEach=function(a,b){var c=this;if(b||(d.root.Rx&&d.root.Rx.config&&d.root.Rx.config.Promise?b=d.root.Rx.config.Promise:d.root.Promise&&(b=d.root.Promise)),!b)throw new Error("no Promise impl found");return new b(function(b,d){var e=c.subscribe(function(b){if(e)try{a(b)}catch(c){d(c),e.unsubscribe()}else a(b)},d,b)})},a.prototype._subscribe=function(a){return this.source.subscribe(a)},a.prototype[e.$$observable]=function(){return this},a.create=function(b){return new a(b)},a}();return b.Observable=g,c.exports}),a.registerDynamic("255",["9c","271","33","34","35","36"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9c"),f=a("271");b.PromiseWrapper=f.PromiseWrapper,b.PromiseCompleter=f.PromiseCompleter;var g=a("33"),h=a("34"),i=a("35"),j=a("36");b.Observable=j.Observable;var k=a("33");b.Subject=k.Subject;var l=function(){function a(){}return a.setTimeout=function(a,b){return e.global.setTimeout(a,b)},a.clearTimeout=function(a){e.global.clearTimeout(a)},a.setInterval=function(a,b){return e.global.setInterval(a,b)},a.clearInterval=function(a){e.global.clearInterval(a)},a}();b.TimerWrapper=l;var m=function(){function a(){}return a.subscribe=function(a,b,c,d){return void 0===d&&(d=function(){}),c="function"==typeof c&&c||e.noop,d="function"==typeof d&&d||e.noop,a.subscribe({next:b,error:c,complete:d})},a.isObservable=function(a){return!!a.subscribe},a.hasSubscribers=function(a){return a.observers.length>0},a.dispose=function(a){a.unsubscribe()},a.callNext=function(a,b){a.next(b)},a.callEmit=function(a,b){a.emit(b)},a.callError=function(a,b){a.error(b)},a.callComplete=function(a){a.complete()},a.fromPromise=function(a){return h.PromiseObservable.create(a)},a.toPromise=function(a){return i.toPromise.call(a)},a}();b.ObservableWrapper=m;var n=function(a){function b(b){void 0===b&&(b=!0),a.call(this),this._isAsync=b}return d(b,a),b.prototype.emit=function(b){a.prototype.next.call(this,b)},b.prototype.next=function(b){a.prototype.next.call(this,b)},b.prototype.subscribe=function(b,c,d){var e,f=function(a){return null},g=function(){return null};return b&&"object"==typeof b?(e=this._isAsync?function(a){setTimeout(function(){return b.next(a)})}:function(a){b.next(a)},b.error&&(f=this._isAsync?function(a){setTimeout(function(){return b.error(a)})}:function(a){b.error(a)}),b.complete&&(g=this._isAsync?function(){setTimeout(function(){return b.complete()})}:function(){b.complete()})):(e=this._isAsync?function(a){setTimeout(function(){return b(a)})}:function(a){b(a)},c&&(f=this._isAsync?function(a){setTimeout(function(){return c(a)})}:function(a){c(a)}),d&&(g=this._isAsync?function(){setTimeout(function(){return d()})}:function(){d()})),a.prototype.subscribe.call(this,e,f,g)},b}(g.Subject);return b.EventEmitter=n,c.exports}),a.registerDynamic("25b",["a9","24a"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("a9"),f=a("24a"),g=function(){function a(){}return Object.defineProperty(a.prototype,"destroyed",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),a}();b.ViewRef=g;var h=function(a){function b(){a.apply(this,arguments)}return d(b,a),Object.defineProperty(b.prototype,"context",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rootNodes",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),b}(g);b.EmbeddedViewRef=h;var i=function(){function a(a){this._view=a,this._view=a}return Object.defineProperty(a.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),a.prototype.markForCheck=function(){this._view.markPathToRootAsCheckOnce()},a.prototype.detach=function(){this._view.cdMode=f.ChangeDetectionStrategy.Detached},a.prototype.detectChanges=function(){this._view.detectChanges(!1)},a.prototype.checkNoChanges=function(){this._view.detectChanges(!0)},a.prototype.reattach=function(){this._view.cdMode=f.ChangeDetectionStrategy.CheckAlways,this.markForCheck()},a.prototype.onDestroy=function(a){this._view.disposables.push(a)},a.prototype.destroy=function(){this._view.destroy()},a}();return b.ViewRef_=i,c.exports}),a.registerDynamic("282",["283"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("283"),f=new Object,g=function(a){function b(b,c){a.call(this),this._view=b,this._nodeIndex=c}return d(b,a),b.prototype.get=function(a,b){void 0===b&&(b=e.THROW_IF_NOT_FOUND);var c=f;return c===f&&(c=this._view.injectorGet(a,this._nodeIndex,f)),c===f&&(c=this._view.parentInjector.get(a,b)),c},b}(e.Injector);return b.ElementInjector=g,c.exports}),a.registerDynamic("284",["254","285","9c","255","25b","286","26f","260","26c","25e","287","282"],!0,function(a,b,c){"use strict";function d(a){var b;if(a instanceof g.AppElement){var c=a;if(b=c.nativeElement,h.isPresent(c.nestedViews))for(var e=c.nestedViews.length-1;e>=0;e--){var f=c.nestedViews[e];f.rootNodesOrAppElements.length>0&&(b=d(f.rootNodesOrAppElements[f.rootNodesOrAppElements.length-1]))}}else b=a;return b}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("254"),g=a("285"),h=a("9c"),i=a("255"),j=a("25b"),k=a("286"),l=a("26f"),m=a("260"),n=a("26c"),o=a("25e"),p=a("287"),q=a("282"),r=n.wtfCreateScope("AppView#check(ascii id)"),s=function(){function a(a,b,c,d,e,f,g){this.clazz=a,this.componentType=b,this.type=c,this.viewUtils=d,this.parentInjector=e,this.declarationAppElement=f,this.cdMode=g,this.contentChildren=[],this.viewChildren=[],this.viewContainerElement=null,this.cdState=m.ChangeDetectorState.NeverChecked,this.destroyed=!1,this.ref=new j.ViewRef_(this),c===k.ViewType.COMPONENT||c===k.ViewType.HOST?this.renderer=d.renderComponent(b):this.renderer=f.parentView.renderer}return a.prototype.create=function(a,b,c){this.context=a;var d;switch(this.type){case k.ViewType.COMPONENT:d=l.ensureSlotCount(b,this.componentType.slotCount);break;case k.ViewType.EMBEDDED:d=this.declarationAppElement.parentView.projectableNodes;break;case k.ViewType.HOST:d=b}return this._hasExternalHostElement=h.isPresent(c),this.projectableNodes=d,this.createInternal(c)},a.prototype.createInternal=function(a){return null},a.prototype.init=function(a,b,c,d){this.rootNodesOrAppElements=a,this.allNodes=b,this.disposables=c,this.subscriptions=d,this.type===k.ViewType.COMPONENT&&(this.declarationAppElement.parentView.viewChildren.push(this),this.dirtyParentQueriesInternal())},a.prototype.selectOrCreateHostElement=function(a,b,c){var d;return d=h.isPresent(b)?this.renderer.selectRootElement(b,c):this.renderer.createElement(null,a,c)},a.prototype.injectorGet=function(a,b,c){return this.injectorGetInternal(a,b,c)},a.prototype.injectorGetInternal=function(a,b,c){return c},a.prototype.injector=function(a){return h.isPresent(a)?new q.ElementInjector(this,a):this.parentInjector},a.prototype.destroy=function(){this._hasExternalHostElement?this.renderer.detachView(this.flatRootNodes):h.isPresent(this.viewContainerElement)&&this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this)),this._destroyRecurse()},a.prototype._destroyRecurse=function(){if(!this.destroyed){for(var a=this.contentChildren,b=0;b<a.length;b++)a[b]._destroyRecurse();a=this.viewChildren;for(var b=0;b<a.length;b++)a[b]._destroyRecurse();this.destroyLocal(),this.destroyed=!0}},a.prototype.destroyLocal=function(){for(var a=this.type===k.ViewType.COMPONENT?this.declarationAppElement.nativeElement:null,b=0;b<this.disposables.length;b++)this.disposables[b]();for(var b=0;b<this.subscriptions.length;b++)i.ObservableWrapper.dispose(this.subscriptions[b]);this.destroyInternal(),this._hasExternalHostElement?this.renderer.detachView(this.flatRootNodes):h.isPresent(this.viewContainerElement)?this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this)):this.dirtyParentQueriesInternal(),this.renderer.destroyView(a,this.allNodes)},a.prototype.destroyInternal=function(){},Object.defineProperty(a.prototype,"changeDetectorRef",{get:function(){return this.ref},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parent",{get:function(){return h.isPresent(this.declarationAppElement)?this.declarationAppElement.parentView:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"flatRootNodes",{get:function(){return l.flattenNestedViewRenderNodes(this.rootNodesOrAppElements)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"lastRootNode",{get:function(){var a=this.rootNodesOrAppElements.length>0?this.rootNodesOrAppElements[this.rootNodesOrAppElements.length-1]:null;return d(a)},enumerable:!0,configurable:!0}),a.prototype.dirtyParentQueriesInternal=function(){},a.prototype.detectChanges=function(a){var b=r(this.clazz);this.cdMode!==m.ChangeDetectionStrategy.Detached&&this.cdMode!==m.ChangeDetectionStrategy.Checked&&this.cdState!==m.ChangeDetectorState.Errored&&(this.destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(a),this.cdMode===m.ChangeDetectionStrategy.CheckOnce&&(this.cdMode=m.ChangeDetectionStrategy.Checked),this.cdState=m.ChangeDetectorState.CheckedBefore,n.wtfLeave(b))},a.prototype.detectChangesInternal=function(a){this.detectContentChildrenChanges(a),this.detectViewChildrenChanges(a)},a.prototype.detectContentChildrenChanges=function(a){for(var b=0;b<this.contentChildren.length;++b)this.contentChildren[b].detectChanges(a)},a.prototype.detectViewChildrenChanges=function(a){for(var b=0;b<this.viewChildren.length;++b)this.viewChildren[b].detectChanges(a)},a.prototype.addToContentChildren=function(a){a.parentView.contentChildren.push(this),this.viewContainerElement=a,this.dirtyParentQueriesInternal()},a.prototype.removeFromContentChildren=function(a){f.ListWrapper.remove(a.parentView.contentChildren,this),this.dirtyParentQueriesInternal(),this.viewContainerElement=null},a.prototype.markAsCheckOnce=function(){this.cdMode=m.ChangeDetectionStrategy.CheckOnce},a.prototype.markPathToRootAsCheckOnce=function(){for(var a=this;h.isPresent(a)&&a.cdMode!==m.ChangeDetectionStrategy.Detached;){a.cdMode===m.ChangeDetectionStrategy.Checked&&(a.cdMode=m.ChangeDetectionStrategy.CheckOnce);var b=a.type===k.ViewType.COMPONENT?a.declarationAppElement:a.viewContainerElement;a=h.isPresent(b)?b.parentView:null}},a.prototype.eventHandler=function(a){return a},a.prototype.throwDestroyedError=function(a){throw new o.ViewDestroyedException(a)},a}();b.AppView=s;var t=function(a){function b(b,c,d,e,f,g,h,i){a.call(this,b,c,d,e,f,g,h),this.staticNodeDebugInfos=i,this._currentDebugContext=null}return e(b,a),b.prototype.create=function(b,c,d){this._resetDebug();try{return a.prototype.create.call(this,b,c,d)}catch(e){throw this._rethrowWithContext(e,e.stack),e}},b.prototype.injectorGet=function(b,c,d){this._resetDebug();try{return a.prototype.injectorGet.call(this,b,c,d)}catch(e){throw this._rethrowWithContext(e,e.stack),e}},b.prototype.destroyLocal=function(){this._resetDebug();try{a.prototype.destroyLocal.call(this)}catch(b){throw this._rethrowWithContext(b,b.stack),b}},b.prototype.detectChanges=function(b){this._resetDebug();try{a.prototype.detectChanges.call(this,b)}catch(c){throw this._rethrowWithContext(c,c.stack),c}},b.prototype._resetDebug=function(){this._currentDebugContext=null},b.prototype.debug=function(a,b,c){return this._currentDebugContext=new p.DebugContext(this,a,b,c)},b.prototype._rethrowWithContext=function(a,b){if(!(a instanceof o.ViewWrappedException)&&(a instanceof o.ExpressionChangedAfterItHasBeenCheckedException||(this.cdState=m.ChangeDetectorState.Errored),h.isPresent(this._currentDebugContext)))throw new o.ViewWrappedException(a,b,this._currentDebugContext)},b.prototype.eventHandler=function(b){var c=this,d=a.prototype.eventHandler.call(this,b);return function(a){c._resetDebug();try{return d(a)}catch(b){throw c._rethrowWithContext(b,b.stack),b}}},b}(s);return b.DebugAppView=t,c.exports}),a.registerDynamic("288",[],!0,function(a,b,c){"use strict";!function(a){a[a.NONE=0]="NONE",a[a.HTML=1]="HTML",a[a.STYLE=2]="STYLE",a[a.SCRIPT=3]="SCRIPT",a[a.URL=4]="URL",a[a.RESOURCE_URL=5]="RESOURCE_URL"}(b.SecurityContext||(b.SecurityContext={}));var d=(b.SecurityContext,function(){function a(){}return a}());return b.SanitizationService=d,c.exports}),a.registerDynamic("259",[],!0,function(a,b,c){"use strict";var d=function(){function a(a){this.nativeElement=a}return a}();return b.ElementRef=d,c.exports}),a.registerDynamic("289",["9c"],!0,function(a,b,c){"use strict";function d(){var a=k.global.wtf;return a&&(i=a.trace)?(j=i.events,!0):!1}function e(a,b){return void 0===b&&(b=null),j.createScope(a,b)}function f(a,b){return i.leaveScope(a,b),b}function g(a,b){return i.beginTimeRange(a,b)}function h(a){i.endTimeRange(a)}var i,j,k=a("9c");return b.detectWTF=d,b.createScope=e,b.leave=f,b.startTimeRange=g,b.endTimeRange=h,c.exports}),a.registerDynamic("26c",["289"],!0,function(a,b,c){"use strict";function d(a,b){return null}var e=a("289");return b.wtfEnabled=e.detectWTF(),b.wtfCreateScope=b.wtfEnabled?e.createScope:function(a,b){return d},b.wtfLeave=b.wtfEnabled?e.leave:function(a,b){return b},b.wtfStartTimeRange=b.wtfEnabled?e.startTimeRange:function(a,b){return null},b.wtfEndTimeRange=b.wtfEnabled?e.endTimeRange:function(a){return null},c.exports}),a.registerDynamic("25c",["254","a9","9c","26c"],!0,function(a,b,c){"use strict";var d=a("254"),e=a("a9"),f=a("9c"),g=a("26c"),h=function(){function a(){}return Object.defineProperty(a.prototype,"element",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parentInjector",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"length",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),a}();b.ViewContainerRef=h;var i=function(){function a(a){this._element=a,this._createComponentInContainerScope=g.wtfCreateScope("ViewContainerRef#createComponent()"),this._insertScope=g.wtfCreateScope("ViewContainerRef#insert()"),this._removeScope=g.wtfCreateScope("ViewContainerRef#remove()"),this._detachScope=g.wtfCreateScope("ViewContainerRef#detach()")}return a.prototype.get=function(a){return this._element.nestedViews[a].ref},Object.defineProperty(a.prototype,"length",{get:function(){var a=this._element.nestedViews;return f.isPresent(a)?a.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"element",{get:function(){return this._element.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return this._element.injector},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parentInjector",{get:function(){return this._element.parentInjector},enumerable:!0,configurable:!0}),a.prototype.createEmbeddedView=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=-1);var d=a.createEmbeddedView(b);return this.insert(d,c),d},a.prototype.createComponent=function(a,b,c,d){void 0===b&&(b=-1),void 0===c&&(c=null),void 0===d&&(d=null);var e=this._createComponentInContainerScope(),h=f.isPresent(c)?c:this._element.parentInjector,i=a.create(h,d);return this.insert(i.hostView,b),g.wtfLeave(e,i)},a.prototype.insert=function(a,b){void 0===b&&(b=-1);var c=this._insertScope();-1==b&&(b=this.length);var d=a;return this._element.attachView(d.internalView,b),g.wtfLeave(c,d)},a.prototype.indexOf=function(a){return d.ListWrapper.indexOf(this._element.nestedViews,a.internalView)},a.prototype.remove=function(a){void 0===a&&(a=-1);var b=this._removeScope();-1==a&&(a=this.length-1);var c=this._element.detachView(a);c.destroy(),g.wtfLeave(b)},a.prototype.detach=function(a){void 0===a&&(a=-1);var b=this._detachScope();-1==a&&(a=this.length-1);var c=this._element.detachView(a);return g.wtfLeave(b,c.ref)},a.prototype.clear=function(){for(var a=this.length-1;a>=0;a--)this.remove(a)},a}();return b.ViewContainerRef_=i,c.exports}),a.registerDynamic("285",["9c","254","a9","286","259","25c"],!0,function(a,b,c){"use strict";var d=a("9c"),e=a("254"),f=a("a9"),g=a("286"),h=a("259"),i=a("25c"),j=function(){function a(a,b,c,d){this.index=a,this.parentIndex=b,this.parentView=c,this.nativeElement=d,this.nestedViews=null,this.componentView=null}return Object.defineProperty(a.prototype,"elementRef",{get:function(){return new h.ElementRef(this.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"vcRef",{get:function(){return new i.ViewContainerRef_(this)},enumerable:!0,configurable:!0}),a.prototype.initComponent=function(a,b,c){this.component=a,this.componentConstructorViewQueries=b,this.componentView=c},Object.defineProperty(a.prototype,"parentInjector",{get:function(){return this.parentView.injector(this.parentIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return this.parentView.injector(this.index)},enumerable:!0,configurable:!0}),a.prototype.mapNestedViews=function(a,b){var c=[];return d.isPresent(this.nestedViews)&&this.nestedViews.forEach(function(d){d.clazz===a&&c.push(b(d))}),c},a.prototype.attachView=function(a,b){if(a.type===g.ViewType.COMPONENT)throw new f.BaseException("Component views can't be moved!");var c=this.nestedViews;null==c&&(c=[],this.nestedViews=c),e.ListWrapper.insert(c,b,a);var h;if(b>0){var i=c[b-1];h=i.lastRootNode}else h=this.nativeElement;d.isPresent(h)&&a.renderer.attachViewAfter(h,a.flatRootNodes),a.addToContentChildren(this)},a.prototype.detachView=function(a){var b=e.ListWrapper.removeAt(this.nestedViews,a);if(b.type===g.ViewType.COMPONENT)throw new f.BaseException("Component views can't be moved!");return b.renderer.detachView(b.flatRootNodes),b.removeFromContentChildren(this),b},a}();return b.AppElement=j,c.exports}),a.registerDynamic("25e",["a9"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("a9"),f=function(a){function b(b,c,d){a.call(this,"Expression has changed after it was checked. "+("Previous value: '"+b+"'. Current value: '"+c+"'"))}return d(b,a),b}(e.BaseException);b.ExpressionChangedAfterItHasBeenCheckedException=f;var g=function(a){function b(b,c,d){a.call(this,"Error in "+d.source,b,c,d)}return d(b,a),b}(e.WrappedException);b.ViewWrappedException=g;var h=function(a){function b(b){a.call(this,"Attempt to use a destroyed view: "+b)}return d(b,a),b}(e.BaseException);return b.ViewDestroyedException=h,c.exports}),a.registerDynamic("28a",["9c","a9","254","262"],!0,function(a,b,c){"use strict";var d=a("9c"),e=a("a9"),f=a("254"),g=a("262"),h=function(){function a(a){this.factories=a}return a.create=function(b,c){if(d.isPresent(c)){var e=f.ListWrapper.clone(c.factories);return b=b.concat(e),new a(b)}return new a(b)},a.extend=function(b){return new g.Provider(a,{useFactory:function(c){if(d.isBlank(c))throw new e.BaseException("Cannot extend IterableDiffers without a parent injector");return a.create(b,c)},deps:[[a,new g.SkipSelfMetadata,new g.OptionalMetadata]]})},a.prototype.find=function(a){var b=this.factories.find(function(b){return b.supports(a)});if(d.isPresent(b))return b;throw new e.BaseException("Cannot find a differ supporting object '"+a+"' of type '"+d.getTypeNameForDebugging(a)+"'")},a}();return b.IterableDiffers=h,c.exports}),a.registerDynamic("28b",["a9","254","9c"],!0,function(a,b,c){"use strict";var d=a("a9"),e=a("254"),f=a("9c"),g=function(){function a(){}return a.prototype.supports=function(a){return e.isListLikeIterable(a)},a.prototype.create=function(a,b){return new i(b)},a}();b.DefaultIterableDifferFactory=g;var h=function(a,b){return b},i=function(){function a(a){this._trackByFn=a,this._length=null,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=f.isPresent(this._trackByFn)?this._trackByFn:h}return Object.defineProperty(a.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),a.prototype.forEachItem=function(a){var b;for(b=this._itHead;null!==b;b=b._next)a(b)},a.prototype.forEachPreviousItem=function(a){var b;for(b=this._previousItHead;null!==b;b=b._nextPrevious)a(b)},a.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)},a.prototype.forEachMovedItem=function(a){var b;for(b=this._movesHead;null!==b;b=b._nextMoved)a(b)},a.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)},a.prototype.forEachIdentityChange=function(a){var b;for(b=this._identityChangesHead;null!==b;b=b._nextIdentityChange)a(b)},a.prototype.diff=function(a){if(f.isBlank(a)&&(a=[]),!e.isListLikeIterable(a))throw new d.BaseException("Error trying to diff '"+a+"'");return this.check(a)?this:null},a.prototype.onDestroy=function(){},a.prototype.check=function(a){var b=this;this._reset();var c,d,g,h=this._itHead,i=!1;if(f.isArray(a)){var j=a;for(this._length=a.length,c=0;c<this._length;c++)d=j[c],g=this._trackByFn(c,d),null!==h&&f.looseIdentical(h.trackById,g)?(i&&(h=this._verifyReinsertion(h,d,g,c)),f.looseIdentical(h.item,d)||this._addIdentityChange(h,d)):(h=this._mismatch(h,d,g,c),i=!0),h=h._next}else c=0,e.iterateListLike(a,function(a){g=b._trackByFn(c,a),null!==h&&f.looseIdentical(h.trackById,g)?(i&&(h=b._verifyReinsertion(h,a,g,c)),f.looseIdentical(h.item,a)||b._addIdentityChange(h,a)):(h=b._mismatch(h,a,g,c),i=!0),h=h._next,c++}),this._length=c;return this._truncate(h),this._collection=a,this.isDirty},Object.defineProperty(a.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),a.prototype._reset=function(){if(this.isDirty){var a,b;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;for(this._additionsHead=this._additionsTail=null,a=this._movesHead;null!==a;a=b)a.previousIndex=a.currentIndex,b=a._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},a.prototype._mismatch=function(a,b,c,d){var e;return null===a?e=this._itTail:(e=a._prev,this._remove(a)),a=null===this._linkedRecords?null:this._linkedRecords.get(c,d),null!==a?(f.looseIdentical(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c),null!==a?(f.looseIdentical(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):a=this._addAfter(new j(b,c),e,d)),a},a.prototype._verifyReinsertion=function(a,b,c,d){var e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c);return null!==e?a=this._reinsertAfter(e,a._prev,d):a.currentIndex!=d&&(a.currentIndex=d,this._addToMoves(a,d)),a},a.prototype._truncate=function(a){for(;null!==a;){var b=a._next;this._addToRemovals(this._unlink(a)),a=b}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},a.prototype._reinsertAfter=function(a,b,c){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,e=a._nextRemoved;return null===d?this._removalsHead=e:d._nextRemoved=e,null===e?this._removalsTail=d:e._prevRemoved=d,this._insertAfter(a,b,c),this._addToMoves(a,c),a},a.prototype._moveAfter=function(a,b,c){return this._unlink(a),this._insertAfter(a,b,c),this._addToMoves(a,c),a},a.prototype._addAfter=function(a,b,c){return this._insertAfter(a,b,c),null===this._additionsTail?this._additionsTail=this._additionsHead=a:this._additionsTail=this._additionsTail._nextAdded=a,a},a.prototype._insertAfter=function(a,b,c){var d=null===b?this._itHead:b._next;return a._next=d,a._prev=b,null===d?this._itTail=a:d._prev=a,null===b?this._itHead=a:b._next=a,null===this._linkedRecords&&(this._linkedRecords=new l),this._linkedRecords.put(a),a.currentIndex=c,a},a.prototype._remove=function(a){return this._addToRemovals(this._unlink(a))},a.prototype._unlink=function(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);var b=a._prev,c=a._next;return null===b?this._itHead=c:b._next=c,null===c?this._itTail=b:c._prev=b,a},a.prototype._addToMoves=function(a,b){return a.previousIndex===b?a:(null===this._movesTail?this._movesTail=this._movesHead=a:this._movesTail=this._movesTail._nextMoved=a,a)},a.prototype._addToRemovals=function(a){return null===this._unlinkedRecords&&(this._unlinkedRecords=new l),this._unlinkedRecords.put(a),a.currentIndex=null,a._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a),a},a.prototype._addIdentityChange=function(a,b){return a.item=b,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=a:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=a,a},a.prototype.toString=function(){var a=[];this.forEachItem(function(b){return a.push(b)});var b=[];this.forEachPreviousItem(function(a){return b.push(a)});var c=[];this.forEachAddedItem(function(a){return c.push(a)});var d=[];this.forEachMovedItem(function(a){return d.push(a)});var e=[];this.forEachRemovedItem(function(a){return e.push(a)});var f=[];return this.forEachIdentityChange(function(a){return f.push(a)}),"collection: "+a.join(", ")+"\nprevious: "+b.join(", ")+"\nadditions: "+c.join(", ")+"\nmoves: "+d.join(", ")+"\nremovals: "+e.join(", ")+"\nidentityChanges: "+f.join(", ")+"\n"},a}();b.DefaultIterableDiffer=i;var j=function(){function a(a,b){this.item=a,this.trackById=b,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return a.prototype.toString=function(){return this.previousIndex===this.currentIndex?f.stringify(this.item):f.stringify(this.item)+"["+f.stringify(this.previousIndex)+"->"+f.stringify(this.currentIndex)+"]"},a}();b.CollectionChangeRecord=j;var k=function(){function a(){this._head=null,this._tail=null}return a.prototype.add=function(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)},a.prototype.get=function(a,b){var c;for(c=this._head;null!==c;c=c._nextDup)if((null===b||b<c.currentIndex)&&f.looseIdentical(c.trackById,a))return c;return null},a.prototype.remove=function(a){var b=a._prevDup,c=a._nextDup;return null===b?this._head=c:b._nextDup=c,null===c?this._tail=b:c._prevDup=b,null===this._head},a}(),l=function(){function a(){this.map=new Map}return a.prototype.put=function(a){var b=f.getMapKey(a.trackById),c=this.map.get(b);f.isPresent(c)||(c=new k,
|
||
this.map.set(b,c)),c.add(a)},a.prototype.get=function(a,b){void 0===b&&(b=null);var c=f.getMapKey(a),d=this.map.get(c);return f.isBlank(d)?null:d.get(a,b)},a.prototype.remove=function(a){var b=f.getMapKey(a.trackById),c=this.map.get(b);return c.remove(a)&&this.map["delete"](b),a},Object.defineProperty(a.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),a.prototype.clear=function(){this.map.clear()},a.prototype.toString=function(){return"_DuplicateMap("+f.stringify(this.map)+")"},a}();return c.exports}),a.registerDynamic("28c",["9c","a9","254","262"],!0,function(a,b,c){"use strict";var d=a("9c"),e=a("a9"),f=a("254"),g=a("262"),h=function(){function a(a){this.factories=a}return a.create=function(b,c){if(d.isPresent(c)){var e=f.ListWrapper.clone(c.factories);return b=b.concat(e),new a(b)}return new a(b)},a.extend=function(b){return new g.Provider(a,{useFactory:function(c){if(d.isBlank(c))throw new e.BaseException("Cannot extend KeyValueDiffers without a parent injector");return a.create(b,c)},deps:[[a,new g.SkipSelfMetadata,new g.OptionalMetadata]]})},a.prototype.find=function(a){var b=this.factories.find(function(b){return b.supports(a)});if(d.isPresent(b))return b;throw new e.BaseException("Cannot find a differ supporting object '"+a+"'")},a}();return b.KeyValueDiffers=h,c.exports}),a.registerDynamic("28d",["254","9c","a9"],!0,function(a,b,c){"use strict";var d=a("254"),e=a("9c"),f=a("a9"),g=function(){function a(){}return a.prototype.supports=function(a){return a instanceof Map||e.isJsObject(a)},a.prototype.create=function(a){return new h},a}();b.DefaultKeyValueDifferFactory=g;var h=function(){function a(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(a.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),a.prototype.forEachItem=function(a){var b;for(b=this._mapHead;null!==b;b=b._next)a(b)},a.prototype.forEachPreviousItem=function(a){var b;for(b=this._previousMapHead;null!==b;b=b._nextPrevious)a(b)},a.prototype.forEachChangedItem=function(a){var b;for(b=this._changesHead;null!==b;b=b._nextChanged)a(b)},a.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)},a.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)},a.prototype.diff=function(a){if(e.isBlank(a)&&(a=d.MapWrapper.createFromPairs([])),!(a instanceof Map||e.isJsObject(a)))throw new f.BaseException("Error trying to diff '"+a+"'");return this.check(a)?this:null},a.prototype.onDestroy=function(){},a.prototype.check=function(a){var b=this;this._reset();var c=this._records,d=this._mapHead,f=null,g=null,h=!1;return this._forEach(a,function(a,j){var k;null!==d&&j===d.key?(k=d,e.looseIdentical(a,d.currentValue)||(d.previousValue=d.currentValue,d.currentValue=a,b._addToChanges(d))):(h=!0,null!==d&&(d._next=null,b._removeFromSeq(f,d),b._addToRemovals(d)),c.has(j)?k=c.get(j):(k=new i(j),c.set(j,k),k.currentValue=a,b._addToAdditions(k))),h&&(b._isInRemovals(k)&&b._removeFromRemovals(k),null==g?b._mapHead=k:g._next=k),f=d,g=k,d=null===d?null:d._next}),this._truncate(f,d),this.isDirty},a.prototype._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},a.prototype._truncate=function(a,b){for(;null!==b;){null===a?this._mapHead=null:a._next=null;var c=b._next;this._addToRemovals(b),a=b,b=c}for(var d=this._removalsHead;null!==d;d=d._nextRemoved)d.previousValue=d.currentValue,d.currentValue=null,this._records["delete"](d.key)},a.prototype._isInRemovals=function(a){return a===this._removalsHead||null!==a._nextRemoved||null!==a._prevRemoved},a.prototype._addToRemovals=function(a){null===this._removalsHead?this._removalsHead=this._removalsTail=a:(this._removalsTail._nextRemoved=a,a._prevRemoved=this._removalsTail,this._removalsTail=a)},a.prototype._removeFromSeq=function(a,b){var c=b._next;null===a?this._mapHead=c:a._next=c},a.prototype._removeFromRemovals=function(a){var b=a._prevRemoved,c=a._nextRemoved;null===b?this._removalsHead=c:b._nextRemoved=c,null===c?this._removalsTail=b:c._prevRemoved=b,a._prevRemoved=a._nextRemoved=null},a.prototype._addToAdditions=function(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:(this._additionsTail._nextAdded=a,this._additionsTail=a)},a.prototype._addToChanges=function(a){null===this._changesHead?this._changesHead=this._changesTail=a:(this._changesTail._nextChanged=a,this._changesTail=a)},a.prototype.toString=function(){var a,b=[],c=[],d=[],f=[],g=[];for(a=this._mapHead;null!==a;a=a._next)b.push(e.stringify(a));for(a=this._previousMapHead;null!==a;a=a._nextPrevious)c.push(e.stringify(a));for(a=this._changesHead;null!==a;a=a._nextChanged)d.push(e.stringify(a));for(a=this._additionsHead;null!==a;a=a._nextAdded)f.push(e.stringify(a));for(a=this._removalsHead;null!==a;a=a._nextRemoved)g.push(e.stringify(a));return"map: "+b.join(", ")+"\nprevious: "+c.join(", ")+"\nadditions: "+f.join(", ")+"\nchanges: "+d.join(", ")+"\nremovals: "+g.join(", ")+"\n"},a.prototype._forEach=function(a,b){a instanceof Map?a.forEach(b):d.StringMapWrapper.forEach(a,b)},a}();b.DefaultKeyValueDiffer=h;var i=function(){function a(a){this.key=a,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return a.prototype.toString=function(){return e.looseIdentical(this.previousValue,this.currentValue)?e.stringify(this.key):e.stringify(this.key)+"["+e.stringify(this.previousValue)+"->"+e.stringify(this.currentValue)+"]"},a}();return b.KeyValueChangeRecord=i,c.exports}),a.registerDynamic("24a",["9c"],!0,function(a,b,c){"use strict";function d(a){return e.isBlank(a)||a===g.Default}var e=a("9c");!function(a){a[a.NeverChecked=0]="NeverChecked",a[a.CheckedBefore=1]="CheckedBefore",a[a.Errored=2]="Errored"}(b.ChangeDetectorState||(b.ChangeDetectorState={}));var f=b.ChangeDetectorState;!function(a){a[a.CheckOnce=0]="CheckOnce",a[a.Checked=1]="Checked",a[a.CheckAlways=2]="CheckAlways",a[a.Detached=3]="Detached",a[a.OnPush=4]="OnPush",a[a.Default=5]="Default"}(b.ChangeDetectionStrategy||(b.ChangeDetectionStrategy={}));var g=b.ChangeDetectionStrategy;return b.CHANGE_DETECTION_STRATEGY_VALUES=[g.CheckOnce,g.Checked,g.CheckAlways,g.Detached,g.OnPush,g.Default],b.CHANGE_DETECTOR_STATE_VALUES=[f.NeverChecked,f.CheckedBefore,f.Errored],b.isDefaultChangeDetectionStrategy=d,c.exports}),a.registerDynamic("28e",[],!0,function(a,b,c){"use strict";var d=function(){function a(){}return a}();return b.ChangeDetectorRef=d,c.exports}),a.registerDynamic("260",["28a","28b","28c","28d","24a","28e","28f"],!0,function(a,b,c){"use strict";var d=a("28a"),e=a("28b"),f=a("28c"),g=a("28d"),h=a("28d");b.DefaultKeyValueDifferFactory=h.DefaultKeyValueDifferFactory,b.KeyValueChangeRecord=h.KeyValueChangeRecord;var i=a("28b");b.DefaultIterableDifferFactory=i.DefaultIterableDifferFactory,b.CollectionChangeRecord=i.CollectionChangeRecord;var j=a("24a");b.ChangeDetectionStrategy=j.ChangeDetectionStrategy,b.CHANGE_DETECTION_STRATEGY_VALUES=j.CHANGE_DETECTION_STRATEGY_VALUES,b.ChangeDetectorState=j.ChangeDetectorState,b.CHANGE_DETECTOR_STATE_VALUES=j.CHANGE_DETECTOR_STATE_VALUES,b.isDefaultChangeDetectionStrategy=j.isDefaultChangeDetectionStrategy;var k=a("28e");b.ChangeDetectorRef=k.ChangeDetectorRef;var l=a("28a");b.IterableDiffers=l.IterableDiffers;var m=a("28c");b.KeyValueDiffers=m.KeyValueDiffers;var n=a("28b");b.DefaultIterableDiffer=n.DefaultIterableDiffer;var o=a("28f");return b.WrappedValue=o.WrappedValue,b.ValueUnwrapper=o.ValueUnwrapper,b.SimpleChange=o.SimpleChange,b.devModeEqual=o.devModeEqual,b.looseIdentical=o.looseIdentical,b.uninitialized=o.uninitialized,b.keyValDiff=[new g.DefaultKeyValueDifferFactory],b.iterableDiff=[new e.DefaultIterableDifferFactory],b.defaultIterableDiffers=new d.IterableDiffers(b.iterableDiff),b.defaultKeyValueDiffers=new f.KeyValueDiffers(b.keyValDiff),c.exports}),a.registerDynamic("283",["a9"],!0,function(a,b,c){"use strict";var d=a("a9"),e=new Object;b.THROW_IF_NOT_FOUND=e;var f=function(){function a(){}return a.prototype.get=function(a,b){return d.unimplemented()},a.THROW_IF_NOT_FOUND=e,a}();return b.Injector=f,c.exports}),a.registerDynamic("26d",["254","290","291","a9","292","247","283","22"],!0,function(a,b,c){return function(c){"use strict";function d(a,b){for(var c=[],d=0;d<a._proto.numberOfProviders;++d)c.push(b(a._proto.getProviderAtIndex(d)));return c}var e=a("254"),f=a("290"),g=a("291"),h=a("a9"),i=a("292"),j=a("247"),k=a("283"),l=10,m=new Object,n=function(){function a(a,b){this.provider0=null,this.provider1=null,this.provider2=null,this.provider3=null,this.provider4=null,this.provider5=null,this.provider6=null,this.provider7=null,this.provider8=null,this.provider9=null,this.keyId0=null,this.keyId1=null,this.keyId2=null,this.keyId3=null,this.keyId4=null,this.keyId5=null,this.keyId6=null,this.keyId7=null,this.keyId8=null,this.keyId9=null;var c=b.length;c>0&&(this.provider0=b[0],this.keyId0=b[0].key.id),c>1&&(this.provider1=b[1],this.keyId1=b[1].key.id),c>2&&(this.provider2=b[2],this.keyId2=b[2].key.id),c>3&&(this.provider3=b[3],this.keyId3=b[3].key.id),c>4&&(this.provider4=b[4],this.keyId4=b[4].key.id),c>5&&(this.provider5=b[5],this.keyId5=b[5].key.id),c>6&&(this.provider6=b[6],this.keyId6=b[6].key.id),c>7&&(this.provider7=b[7],this.keyId7=b[7].key.id),c>8&&(this.provider8=b[8],this.keyId8=b[8].key.id),c>9&&(this.provider9=b[9],this.keyId9=b[9].key.id)}return a.prototype.getProviderAtIndex=function(a){if(0==a)return this.provider0;if(1==a)return this.provider1;if(2==a)return this.provider2;if(3==a)return this.provider3;if(4==a)return this.provider4;if(5==a)return this.provider5;if(6==a)return this.provider6;if(7==a)return this.provider7;if(8==a)return this.provider8;if(9==a)return this.provider9;throw new g.OutOfBoundsError(a)},a.prototype.createInjectorStrategy=function(a){return new q(a,this)},a}();b.ReflectiveProtoInjectorInlineStrategy=n;var o=function(){function a(a,b){this.providers=b;var c=b.length;this.keyIds=e.ListWrapper.createFixedSize(c);for(var d=0;c>d;d++)this.keyIds[d]=b[d].key.id}return a.prototype.getProviderAtIndex=function(a){if(0>a||a>=this.providers.length)throw new g.OutOfBoundsError(a);return this.providers[a]},a.prototype.createInjectorStrategy=function(a){return new r(this,a)},a}();b.ReflectiveProtoInjectorDynamicStrategy=o;var p=function(){function a(a){this.numberOfProviders=a.length,this._strategy=a.length>l?new o(this,a):new n(this,a)}return a.fromResolvedProviders=function(b){return new a(b)},a.prototype.getProviderAtIndex=function(a){return this._strategy.getProviderAtIndex(a)},a}();b.ReflectiveProtoInjector=p;var q=function(){function a(a,b){this.injector=a,this.protoStrategy=b,this.obj0=m,this.obj1=m,this.obj2=m,this.obj3=m,this.obj4=m,this.obj5=m,this.obj6=m,this.obj7=m,this.obj8=m,this.obj9=m}return a.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},a.prototype.instantiateProvider=function(a){return this.injector._new(a)},a.prototype.getObjByKeyId=function(a){var b=this.protoStrategy,c=this.injector;return b.keyId0===a?(this.obj0===m&&(this.obj0=c._new(b.provider0)),this.obj0):b.keyId1===a?(this.obj1===m&&(this.obj1=c._new(b.provider1)),this.obj1):b.keyId2===a?(this.obj2===m&&(this.obj2=c._new(b.provider2)),this.obj2):b.keyId3===a?(this.obj3===m&&(this.obj3=c._new(b.provider3)),this.obj3):b.keyId4===a?(this.obj4===m&&(this.obj4=c._new(b.provider4)),this.obj4):b.keyId5===a?(this.obj5===m&&(this.obj5=c._new(b.provider5)),this.obj5):b.keyId6===a?(this.obj6===m&&(this.obj6=c._new(b.provider6)),this.obj6):b.keyId7===a?(this.obj7===m&&(this.obj7=c._new(b.provider7)),this.obj7):b.keyId8===a?(this.obj8===m&&(this.obj8=c._new(b.provider8)),this.obj8):b.keyId9===a?(this.obj9===m&&(this.obj9=c._new(b.provider9)),this.obj9):m},a.prototype.getObjAtIndex=function(a){if(0==a)return this.obj0;if(1==a)return this.obj1;if(2==a)return this.obj2;if(3==a)return this.obj3;if(4==a)return this.obj4;if(5==a)return this.obj5;if(6==a)return this.obj6;if(7==a)return this.obj7;if(8==a)return this.obj8;if(9==a)return this.obj9;throw new g.OutOfBoundsError(a)},a.prototype.getMaxNumberOfObjects=function(){return l},a}();b.ReflectiveInjectorInlineStrategy=q;var r=function(){function a(a,b){this.protoStrategy=a,this.injector=b,this.objs=e.ListWrapper.createFixedSize(a.providers.length),e.ListWrapper.fill(this.objs,m)}return a.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},a.prototype.instantiateProvider=function(a){return this.injector._new(a)},a.prototype.getObjByKeyId=function(a){for(var b=this.protoStrategy,c=0;c<b.keyIds.length;c++)if(b.keyIds[c]===a)return this.objs[c]===m&&(this.objs[c]=this.injector._new(b.providers[c])),this.objs[c];return m},a.prototype.getObjAtIndex=function(a){if(0>a||a>=this.objs.length)throw new g.OutOfBoundsError(a);return this.objs[a]},a.prototype.getMaxNumberOfObjects=function(){return this.objs.length},a}();b.ReflectiveInjectorDynamicStrategy=r;var s=function(){function a(){}return a.resolve=function(a){return f.resolveReflectiveProviders(a)},a.resolveAndCreate=function(b,c){void 0===c&&(c=null);var d=a.resolve(b);return a.fromResolvedProviders(d,c)},a.fromResolvedProviders=function(a,b){return void 0===b&&(b=null),new t(p.fromResolvedProviders(a),b)},a.fromResolvedBindings=function(b){return a.fromResolvedProviders(b)},Object.defineProperty(a.prototype,"parent",{get:function(){return h.unimplemented()},enumerable:!0,configurable:!0}),a.prototype.debugContext=function(){return null},a.prototype.resolveAndCreateChild=function(a){return h.unimplemented()},a.prototype.createChildFromResolved=function(a){return h.unimplemented()},a.prototype.resolveAndInstantiate=function(a){return h.unimplemented()},a.prototype.instantiateResolved=function(a){return h.unimplemented()},a}();b.ReflectiveInjector=s;var t=function(){function a(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null),this._debugContext=c,this._constructionCounter=0,this._proto=a,this._parent=b,this._strategy=a._strategy.createInjectorStrategy(this)}return a.prototype.debugContext=function(){return this._debugContext()},a.prototype.get=function(a,b){return void 0===b&&(b=k.THROW_IF_NOT_FOUND),this._getByKey(i.ReflectiveKey.get(a),null,null,b)},a.prototype.getAt=function(a){return this._strategy.getObjAtIndex(a)},Object.defineProperty(a.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"internalStrategy",{get:function(){return this._strategy},enumerable:!0,configurable:!0}),a.prototype.resolveAndCreateChild=function(a){var b=s.resolve(a);return this.createChildFromResolved(b)},a.prototype.createChildFromResolved=function(b){var c=new p(b),d=new a(c);return d._parent=this,d},a.prototype.resolveAndInstantiate=function(a){return this.instantiateResolved(s.resolve([a])[0])},a.prototype.instantiateResolved=function(a){return this._instantiateProvider(a)},a.prototype._new=function(a){if(this._constructionCounter++>this._strategy.getMaxNumberOfObjects())throw new g.CyclicDependencyError(this,a.key);return this._instantiateProvider(a)},a.prototype._instantiateProvider=function(a){if(a.multiProvider){for(var b=e.ListWrapper.createFixedSize(a.resolvedFactories.length),c=0;c<a.resolvedFactories.length;++c)b[c]=this._instantiate(a,a.resolvedFactories[c]);return b}return this._instantiate(a,a.resolvedFactories[0])},a.prototype._instantiate=function(a,b){var c,d,e,f,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=b.factory,z=b.dependencies,A=z.length;try{c=A>0?this._getByReflectiveDependency(a,z[0]):null,d=A>1?this._getByReflectiveDependency(a,z[1]):null,e=A>2?this._getByReflectiveDependency(a,z[2]):null,f=A>3?this._getByReflectiveDependency(a,z[3]):null,i=A>4?this._getByReflectiveDependency(a,z[4]):null,j=A>5?this._getByReflectiveDependency(a,z[5]):null,k=A>6?this._getByReflectiveDependency(a,z[6]):null,l=A>7?this._getByReflectiveDependency(a,z[7]):null,m=A>8?this._getByReflectiveDependency(a,z[8]):null,n=A>9?this._getByReflectiveDependency(a,z[9]):null,o=A>10?this._getByReflectiveDependency(a,z[10]):null,p=A>11?this._getByReflectiveDependency(a,z[11]):null,q=A>12?this._getByReflectiveDependency(a,z[12]):null,r=A>13?this._getByReflectiveDependency(a,z[13]):null,s=A>14?this._getByReflectiveDependency(a,z[14]):null,t=A>15?this._getByReflectiveDependency(a,z[15]):null,u=A>16?this._getByReflectiveDependency(a,z[16]):null,v=A>17?this._getByReflectiveDependency(a,z[17]):null,w=A>18?this._getByReflectiveDependency(a,z[18]):null,x=A>19?this._getByReflectiveDependency(a,z[19]):null}catch(B){throw(B instanceof g.AbstractProviderError||B instanceof g.InstantiationError)&&B.addKey(this,a.key),B}var C;try{switch(A){case 0:C=y();break;case 1:C=y(c);break;case 2:C=y(c,d);break;case 3:C=y(c,d,e);break;case 4:C=y(c,d,e,f);break;case 5:C=y(c,d,e,f,i);break;case 6:C=y(c,d,e,f,i,j);break;case 7:C=y(c,d,e,f,i,j,k);break;case 8:C=y(c,d,e,f,i,j,k,l);break;case 9:C=y(c,d,e,f,i,j,k,l,m);break;case 10:C=y(c,d,e,f,i,j,k,l,m,n);break;case 11:C=y(c,d,e,f,i,j,k,l,m,n,o);break;case 12:C=y(c,d,e,f,i,j,k,l,m,n,o,p);break;case 13:C=y(c,d,e,f,i,j,k,l,m,n,o,p,q);break;case 14:C=y(c,d,e,f,i,j,k,l,m,n,o,p,q,r);break;case 15:C=y(c,d,e,f,i,j,k,l,m,n,o,p,q,r,s);break;case 16:C=y(c,d,e,f,i,j,k,l,m,n,o,p,q,r,s,t);break;case 17:C=y(c,d,e,f,i,j,k,l,m,n,o,p,q,r,s,t,u);break;case 18:C=y(c,d,e,f,i,j,k,l,m,n,o,p,q,r,s,t,u,v);break;case 19:C=y(c,d,e,f,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w);break;case 20:C=y(c,d,e,f,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x);break;default:throw new h.BaseException("Cannot instantiate '"+a.key.displayName+"' because it has more than 20 dependencies")}}catch(B){throw new g.InstantiationError(this,B,B.stack,a.key)}return C},a.prototype._getByReflectiveDependency=function(a,b){return this._getByKey(b.key,b.lowerBoundVisibility,b.upperBoundVisibility,b.optional?null:k.THROW_IF_NOT_FOUND)},a.prototype._getByKey=function(a,b,c,d){return a===u?this:c instanceof j.SelfMetadata?this._getByKeySelf(a,d):this._getByKeyDefault(a,d,b)},a.prototype._throwOrNull=function(a,b){if(b!==k.THROW_IF_NOT_FOUND)return b;throw new g.NoProviderError(this,a)},a.prototype._getByKeySelf=function(a,b){var c=this._strategy.getObjByKeyId(a.id);return c!==m?c:this._throwOrNull(a,b)},a.prototype._getByKeyDefault=function(b,c,d){var e;for(e=d instanceof j.SkipSelfMetadata?this._parent:this;e instanceof a;){var f=e,g=f._strategy.getObjByKeyId(b.id);if(g!==m)return g;e=f._parent}return null!==e?e.get(b.token,c):this._throwOrNull(b,c)},Object.defineProperty(a.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+d(this,function(a){return' "'+a.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return this.displayName},a}();b.ReflectiveInjector_=t;var u=i.ReflectiveKey.get(k.Injector)}(a("22")),c.exports}),a.registerDynamic("266",[],!0,function(a,b,c){"use strict";var d=function(){function a(){}return a}();return b.ReflectorReader=d,c.exports}),a.registerDynamic("293",["9c","a9","254","266"],!0,function(a,b,c){"use strict";function d(a,b){h.StringMapWrapper.forEach(b,function(b,c){return a.set(c,b)})}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("9c"),g=a("a9"),h=a("254"),i=a("266"),j=function(){function a(a,b,c,d,e){this.annotations=a,this.parameters=b,this.factory=c,this.interfaces=d,this.propMetadata=e}return a}();b.ReflectionInfo=j;var k=function(a){function b(b){a.call(this),this._injectableInfo=new h.Map,this._getters=new h.Map,this._setters=new h.Map,this._methods=new h.Map,this._usedKeys=null,this.reflectionCapabilities=b}return e(b,a),b.prototype.isReflectionEnabled=function(){return this.reflectionCapabilities.isReflectionEnabled()},b.prototype.trackUsage=function(){this._usedKeys=new h.Set},b.prototype.listUnusedKeys=function(){var a=this;if(null==this._usedKeys)throw new g.BaseException("Usage tracking is disabled");var b=h.MapWrapper.keys(this._injectableInfo);return b.filter(function(b){return!h.SetWrapper.has(a._usedKeys,b)})},b.prototype.registerFunction=function(a,b){this._injectableInfo.set(a,b)},b.prototype.registerType=function(a,b){this._injectableInfo.set(a,b)},b.prototype.registerGetters=function(a){d(this._getters,a)},b.prototype.registerSetters=function(a){d(this._setters,a)},b.prototype.registerMethods=function(a){d(this._methods,a)},b.prototype.factory=function(a){if(this._containsReflectionInfo(a)){var b=this._getReflectionInfo(a).factory;return f.isPresent(b)?b:null}return this.reflectionCapabilities.factory(a)},b.prototype.parameters=function(a){if(this._injectableInfo.has(a)){var b=this._getReflectionInfo(a).parameters;return f.isPresent(b)?b:[]}return this.reflectionCapabilities.parameters(a)},b.prototype.annotations=function(a){if(this._injectableInfo.has(a)){var b=this._getReflectionInfo(a).annotations;return f.isPresent(b)?b:[]}return this.reflectionCapabilities.annotations(a)},b.prototype.propMetadata=function(a){if(this._injectableInfo.has(a)){var b=this._getReflectionInfo(a).propMetadata;return f.isPresent(b)?b:{}}return this.reflectionCapabilities.propMetadata(a)},b.prototype.interfaces=function(a){if(this._injectableInfo.has(a)){var b=this._getReflectionInfo(a).interfaces;return f.isPresent(b)?b:[]}return this.reflectionCapabilities.interfaces(a)},b.prototype.getter=function(a){return this._getters.has(a)?this._getters.get(a):this.reflectionCapabilities.getter(a)},b.prototype.setter=function(a){return this._setters.has(a)?this._setters.get(a):this.reflectionCapabilities.setter(a)},b.prototype.method=function(a){return this._methods.has(a)?this._methods.get(a):this.reflectionCapabilities.method(a)},b.prototype._getReflectionInfo=function(a){return f.isPresent(this._usedKeys)&&this._usedKeys.add(a),this._injectableInfo.get(a)},b.prototype._containsReflectionInfo=function(a){return this._injectableInfo.has(a)},b.prototype.importUri=function(a){return this.reflectionCapabilities.importUri(a)},b}(i.ReflectorReader);return b.Reflector=k,c.exports}),a.registerDynamic("265",["293","294"],!0,function(a,b,c){"use strict";var d=a("293"),e=a("293");b.Reflector=e.Reflector,b.ReflectionInfo=e.ReflectionInfo;var f=a("294");return b.reflector=new d.Reflector(new f.ReflectionCapabilities),c.exports}),a.registerDynamic("290",["9c","254","265","292","247","291","248","295","296"],!0,function(a,b,c){"use strict";function d(a){var b,c;if(m.isPresent(a.useClass)){var d=s.resolveForwardRef(a.useClass);b=o.reflector.factory(d),c=j(d)}else m.isPresent(a.useExisting)?(b=function(a){return a},c=[v.fromKey(p.ReflectiveKey.get(a.useExisting))]):m.isPresent(a.useFactory)?(b=a.useFactory,c=i(a.useFactory,a.dependencies)):(b=function(){return a.useValue},c=w);return new y(b,c)}function e(a){return new x(p.ReflectiveKey.get(a.token),[d(a)],a.multi)}function f(a){var b=h(a,[]),c=b.map(e);return n.MapWrapper.values(g(c,new Map))}function g(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=b.get(d.key.id);if(m.isPresent(e)){if(d.multiProvider!==e.multiProvider)throw new r.MixingMultiProvidersWithRegularProvidersError(e,d);if(d.multiProvider)for(var f=0;f<d.resolvedFactories.length;f++)e.resolvedFactories.push(d.resolvedFactories[f]);else b.set(d.key.id,d)}else{var g;g=d.multiProvider?new x(d.key,n.ListWrapper.clone(d.resolvedFactories),d.multiProvider):d,b.set(d.key.id,g)}}return b}function h(a,b){return a.forEach(function(a){if(a instanceof m.Type)b.push(t.provide(a,{useClass:a}));else if(a instanceof t.Provider)b.push(a);else if(u.isProviderLiteral(a))b.push(u.createProvider(a));else{if(!(a instanceof Array))throw a instanceof t.ProviderBuilder?new r.InvalidProviderError(a.token):new r.InvalidProviderError(a);h(a,b)}}),b}function i(a,b){if(m.isBlank(b))return j(a);var c=b.map(function(a){return[a]});return b.map(function(b){return k(a,b,c)})}function j(a){var b=o.reflector.parameters(a);if(m.isBlank(b))return[];if(b.some(m.isBlank))throw new r.NoAnnotationError(a,b);return b.map(function(c){return k(a,c,b)})}function k(a,b,c){var d=[],e=null,f=!1;if(!m.isArray(b))return b instanceof q.InjectMetadata?l(b.token,f,null,null,d):l(b,f,null,null,d);for(var g=null,h=null,i=0;i<b.length;++i){var j=b[i];j instanceof m.Type?e=j:j instanceof q.InjectMetadata?e=j.token:j instanceof q.OptionalMetadata?f=!0:j instanceof q.SelfMetadata?h=j:j instanceof q.HostMetadata?h=j:j instanceof q.SkipSelfMetadata?g=j:j instanceof q.DependencyMetadata&&(m.isPresent(j.token)&&(e=j.token),d.push(j))}if(e=s.resolveForwardRef(e),m.isPresent(e))return l(e,f,g,h,d);throw new r.NoAnnotationError(a,c)}function l(a,b,c,d,e){return new v(p.ReflectiveKey.get(a),b,c,d,e)}var m=a("9c"),n=a("254"),o=a("265"),p=a("292"),q=a("247"),r=a("291"),s=a("248"),t=a("295"),u=a("296"),v=function(){function a(a,b,c,d,e){this.key=a,this.optional=b,this.lowerBoundVisibility=c,this.upperBoundVisibility=d,this.properties=e}return a.fromKey=function(b){return new a(b,!1,null,null,[])},a}();b.ReflectiveDependency=v;var w=[],x=function(){function a(a,b,c){this.key=a,this.resolvedFactories=b,this.multiProvider=c}return Object.defineProperty(a.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),a}();b.ResolvedReflectiveProvider_=x;var y=function(){function a(a,b){this.factory=a,this.dependencies=b}return a}();return b.ResolvedReflectiveFactory=y,b.resolveReflectiveFactory=d,b.resolveReflectiveProvider=e,b.resolveReflectiveProviders=f,b.mergeResolvedReflectiveProviders=g,b.constructDependencies=i,c.exports}),a.registerDynamic("248",["9c"],!0,function(a,b,c){"use strict";function d(a){return a.__forward_ref__=d,a.toString=function(){return f.stringify(this())},a}function e(a){return f.isFunction(a)&&a.hasOwnProperty("__forward_ref__")&&a.__forward_ref__===d?a():a}var f=a("9c");return b.forwardRef=d,b.resolveForwardRef=e,c.exports}),a.registerDynamic("292",["9c","a9","248"],!0,function(a,b,c){"use strict";var d=a("9c"),e=a("a9"),f=a("248"),g=function(){function a(a,b){if(this.token=a,this.id=b,d.isBlank(a))throw new e.BaseException("Token must be defined!")}return Object.defineProperty(a.prototype,"displayName",{get:function(){return d.stringify(this.token)},enumerable:!0,configurable:!0}),a.get=function(a){return i.get(f.resolveForwardRef(a))},Object.defineProperty(a,"numberOfKeys",{get:function(){return i.numberOfKeys},enumerable:!0,configurable:!0}),a}();b.ReflectiveKey=g;var h=function(){function a(){this._allKeys=new Map}return a.prototype.get=function(a){if(a instanceof g)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new g(a,g.numberOfKeys);return this._allKeys.set(a,b),b},Object.defineProperty(a.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),a}();b.KeyRegistry=h;var i=new h;return c.exports}),a.registerDynamic("291",["254","9c","a9"],!0,function(a,b,c){"use strict";function d(a){for(var b=[],c=0;c<a.length;++c){if(g.ListWrapper.contains(b,a[c]))return b.push(a[c]),b;b.push(a[c])}return b}function e(a){if(a.length>1){var b=d(g.ListWrapper.reversed(a)),c=b.map(function(a){return h.stringify(a.token)});return" ("+c.join(" -> ")+")"}return""}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("254"),h=a("9c"),i=a("a9"),j=function(a){function b(b,c,d){a.call(this,"DI Exception"),this.keys=[c],this.injectors=[b],this.constructResolvingMessage=d,this.message=this.constructResolvingMessage(this.keys)}return f(b,a),b.prototype.addKey=function(a,b){this.injectors.push(a),this.keys.push(b),this.message=this.constructResolvingMessage(this.keys)},Object.defineProperty(b.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),b}(i.BaseException);b.AbstractProviderError=j;var k=function(a){function b(b,c){a.call(this,b,c,function(a){var b=h.stringify(g.ListWrapper.first(a).token);return"No provider for "+b+"!"+e(a)})}return f(b,a),b}(j);b.NoProviderError=k;var l=function(a){function b(b,c){a.call(this,b,c,function(a){return"Cannot instantiate cyclic dependency!"+e(a)})}return f(b,a),b}(j);b.CyclicDependencyError=l;var m=function(a){function b(b,c,d,e){a.call(this,"DI Exception",c,d,null),this.keys=[e],this.injectors=[b]}return f(b,a),b.prototype.addKey=function(a,b){this.injectors.push(a),this.keys.push(b)},Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){var a=h.stringify(g.ListWrapper.first(this.keys).token);return"Error during instantiation of "+a+"!"+e(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),b}(i.WrappedException);b.InstantiationError=m;var n=function(a){function b(b){a.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+b.toString())}return f(b,a),b}(i.BaseException);b.InvalidProviderError=n;var o=function(a){function b(c,d){a.call(this,b._genMessage(c,d))}return f(b,a),b._genMessage=function(a,b){for(var c=[],d=0,e=b.length;e>d;d++){var f=b[d];h.isBlank(f)||0==f.length?c.push("?"):c.push(f.map(h.stringify).join(" "))}return"Cannot resolve all parameters for '"+h.stringify(a)+"'("+c.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+h.stringify(a)+"' is decorated with Injectable."},b}(i.BaseException);b.NoAnnotationError=o;var p=function(a){function b(b){a.call(this,"Index "+b+" is out-of-bounds.")}return f(b,a),b}(i.BaseException);b.OutOfBoundsError=p;var q=function(a){function b(b,c){a.call(this,"Cannot mix multi providers and regular providers, got: "+b.toString()+" "+c.toString())}return f(b,a),b}(i.BaseException);return b.MixingMultiProvidersWithRegularProvidersError=q,c.exports}),a.registerDynamic("297",[],!0,function(a,b,c){"use strict";var d=function(){function a(a){this._desc=a}return a.prototype.toString=function(){return"Token "+this._desc},a}();return b.OpaqueToken=d,c.exports}),a.registerDynamic("262",["247","26a","248","283","26d","295","290","292","291","297"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}var e=a("247");b.InjectMetadata=e.InjectMetadata,b.OptionalMetadata=e.OptionalMetadata,b.InjectableMetadata=e.InjectableMetadata,b.SelfMetadata=e.SelfMetadata,b.HostMetadata=e.HostMetadata,b.SkipSelfMetadata=e.SkipSelfMetadata,b.DependencyMetadata=e.DependencyMetadata,d(a("26a"));var f=a("248");b.forwardRef=f.forwardRef,b.resolveForwardRef=f.resolveForwardRef;var g=a("283");b.Injector=g.Injector;var h=a("26d");b.ReflectiveInjector=h.ReflectiveInjector;var i=a("295");b.Binding=i.Binding,b.ProviderBuilder=i.ProviderBuilder,b.bind=i.bind,b.Provider=i.Provider,b.provide=i.provide;var j=a("290");b.ResolvedReflectiveFactory=j.ResolvedReflectiveFactory,b.ReflectiveDependency=j.ReflectiveDependency;var k=a("292");b.ReflectiveKey=k.ReflectiveKey;
|
||
var l=a("291");b.NoProviderError=l.NoProviderError,b.AbstractProviderError=l.AbstractProviderError,b.CyclicDependencyError=l.CyclicDependencyError,b.InstantiationError=l.InstantiationError,b.InvalidProviderError=l.InvalidProviderError,b.NoAnnotationError=l.NoAnnotationError,b.OutOfBoundsError=l.OutOfBoundsError;var m=a("297");return b.OpaqueToken=m.OpaqueToken,c.exports}),a.registerDynamic("26b",["262","9c"],!0,function(a,b,c){"use strict";function d(){return""+e()+e()+e()}function e(){return g.StringWrapper.fromCharCode(97+g.Math.floor(25*g.Math.random()))}var f=a("262"),g=a("9c");return b.APP_ID=new f.OpaqueToken("AppId"),b.APP_ID_RANDOM_PROVIDER={provide:b.APP_ID,useFactory:d,deps:[]},b.PLATFORM_INITIALIZER=new f.OpaqueToken("Platform Initializer"),b.APP_INITIALIZER=new f.OpaqueToken("Application Initializer"),b.PACKAGE_ROOT_URL=new f.OpaqueToken("Application Packages Root URL"),c.exports}),a.registerDynamic("26f",["288","9c","254","a9","285","25e","260","252","26b","26a","28f"],!0,function(a,b,c){"use strict";function d(a){return e(a,[])}function e(a,b){for(var c=0;c<a.length;c++){var d=a[c];if(d instanceof A.AppElement){var f=d;if(b.push(f.nativeElement),x.isPresent(f.nestedViews))for(var g=0;g<f.nestedViews.length;g++)e(f.nestedViews[g].rootNodesOrAppElements,b)}else b.push(d)}return b}function f(a,b){var c;if(x.isBlank(a))c=I;else if(a.length<b){var d=a.length;c=y.ListWrapper.createFixedSize(b);for(var e=0;b>e;e++)c[e]=d>e?a[e]:I}else c=a;return c}function g(a,b,c,d,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t,u){switch(a){case 1:return b+h(c)+d;case 2:return b+h(c)+d+h(e)+f;case 3:return b+h(c)+d+h(e)+f+h(g)+i;case 4:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k;case 5:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k+h(l)+m;case 6:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k+h(l)+m+h(n)+o;case 7:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k+h(l)+m+h(n)+o+h(p)+q;case 8:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k+h(l)+m+h(n)+o+h(p)+q+h(r)+s;case 9:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k+h(l)+m+h(n)+o+h(p)+q+h(r)+s+h(t)+u;default:throw new z.BaseException("Does not support more than 9 expressions")}}function h(a){return null!=a?a.toString():""}function i(a,b,c){if(a){if(!C.devModeEqual(b,c))throw new B.ExpressionChangedAfterItHasBeenCheckedException(b,c,null);return!1}return!x.looseIdentical(b,c)}function j(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(!x.looseIdentical(a[c],b[c]))return!1;return!0}function k(a,b){var c=y.StringMapWrapper.keys(a),d=y.StringMapWrapper.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f<c.length;f++)if(e=c[f],!x.looseIdentical(a[e],b[e]))return!1;return!0}function l(a,b){return a}function m(a){var b,c;return c=G.uninitialized,function(d){return x.looseIdentical(c,d)||(c=d,b=a(d)),b}}function n(a){var b,c,d;return c=d=G.uninitialized,function(e,f){return x.looseIdentical(c,e)&&x.looseIdentical(d,f)||(c=e,d=f,b=a(e,f)),b}}function o(a){var b,c,d,e;return c=d=e=G.uninitialized,function(f,g,h){return x.looseIdentical(c,f)&&x.looseIdentical(d,g)&&x.looseIdentical(e,h)||(c=f,d=g,e=h,b=a(f,g,h)),b}}function p(a){var b,c,d,e,f;return c=d=e=f=G.uninitialized,function(g,h,i,j){return x.looseIdentical(c,g)&&x.looseIdentical(d,h)&&x.looseIdentical(e,i)&&x.looseIdentical(f,j)||(c=g,d=h,e=i,f=j,b=a(g,h,i,j)),b}}function q(a){var b,c,d,e,f,g;return c=d=e=f=g=G.uninitialized,function(h,i,j,k,l){return x.looseIdentical(c,h)&&x.looseIdentical(d,i)&&x.looseIdentical(e,j)&&x.looseIdentical(f,k)&&x.looseIdentical(g,l)||(c=h,d=i,e=j,f=k,g=l,b=a(h,i,j,k,l)),b}}function r(a){var b,c,d,e,f,g,h;return c=d=e=f=g=h=G.uninitialized,function(i,j,k,l,m,n){return x.looseIdentical(c,i)&&x.looseIdentical(d,j)&&x.looseIdentical(e,k)&&x.looseIdentical(f,l)&&x.looseIdentical(g,m)&&x.looseIdentical(h,n)||(c=i,d=j,e=k,f=l,g=m,h=n,b=a(i,j,k,l,m,n)),b}}function s(a){var b,c,d,e,f,g,h,i;return c=d=e=f=g=h=i=G.uninitialized,function(j,k,l,m,n,o,p){return x.looseIdentical(c,j)&&x.looseIdentical(d,k)&&x.looseIdentical(e,l)&&x.looseIdentical(f,m)&&x.looseIdentical(g,n)&&x.looseIdentical(h,o)&&x.looseIdentical(i,p)||(c=j,d=k,e=l,f=m,g=n,h=o,i=p,b=a(j,k,l,m,n,o,p)),b}}function t(a){var b,c,d,e,f,g,h,i,j;return c=d=e=f=g=h=i=j=G.uninitialized,function(k,l,m,n,o,p,q,r){return x.looseIdentical(c,k)&&x.looseIdentical(d,l)&&x.looseIdentical(e,m)&&x.looseIdentical(f,n)&&x.looseIdentical(g,o)&&x.looseIdentical(h,p)&&x.looseIdentical(i,q)&&x.looseIdentical(j,r)||(c=k,d=l,e=m,f=n,g=o,h=p,i=q,j=r,b=a(k,l,m,n,o,p,q,r)),b}}function u(a){var b,c,d,e,f,g,h,i,j,k;return c=d=e=f=g=h=i=j=k=G.uninitialized,function(l,m,n,o,p,q,r,s,t){return x.looseIdentical(c,l)&&x.looseIdentical(d,m)&&x.looseIdentical(e,n)&&x.looseIdentical(f,o)&&x.looseIdentical(g,p)&&x.looseIdentical(h,q)&&x.looseIdentical(i,r)&&x.looseIdentical(j,s)&&x.looseIdentical(k,t)||(c=l,d=m,e=n,f=o,g=p,h=q,i=r,j=s,k=t,b=a(l,m,n,o,p,q,r,s,t)),b}}function v(a){var b,c,d,e,f,g,h,i,j,k,l;return c=d=e=f=g=h=i=j=k=l=G.uninitialized,function(m,n,o,p,q,r,s,t,u,v){return x.looseIdentical(c,m)&&x.looseIdentical(d,n)&&x.looseIdentical(e,o)&&x.looseIdentical(f,p)&&x.looseIdentical(g,q)&&x.looseIdentical(h,r)&&x.looseIdentical(i,s)&&x.looseIdentical(j,t)&&x.looseIdentical(k,u)&&x.looseIdentical(l,v)||(c=m,d=n,e=o,f=p,g=q,h=r,i=s,j=t,k=u,l=v,b=a(m,n,o,p,q,r,s,t,u,v)),b}}var w=a("288"),x=a("9c"),y=a("254"),z=a("a9"),A=a("285"),B=a("25e"),C=a("260"),D=a("252"),E=a("26b"),F=a("26a"),G=a("28f"),H=function(){function a(a,b,c){this._renderer=a,this._appId=b,this._nextCompTypeId=0,this.sanitizer=c}return a.prototype.createRenderComponentType=function(a,b,c,d){return new D.RenderComponentType(this._appId+"-"+this._nextCompTypeId++,a,b,c,d)},a.prototype.renderComponent=function(a){return this._renderer.renderComponent(a)},a.decorators=[{type:F.Injectable}],a.ctorParameters=[{type:D.RootRenderer},{type:void 0,decorators:[{type:F.Inject,args:[E.APP_ID]}]},{type:w.SanitizationService}],a}();b.ViewUtils=H,b.flattenNestedViewRenderNodes=d;var I=[];return b.ensureSlotCount=f,b.MAX_INTERPOLATION_VALUES=9,b.interpolate=g,b.checkBinding=i,b.arrayLooseIdentical=j,b.mapLooseIdentical=k,b.castByValue=l,b.EMPTY_ARRAY=[],b.EMPTY_MAP={},b.pureProxy1=m,b.pureProxy2=n,b.pureProxy3=o,b.pureProxy4=p,b.pureProxy5=q,b.pureProxy6=r,b.pureProxy7=s,b.pureProxy8=t,b.pureProxy9=u,b.pureProxy10=v,c.exports}),a.registerDynamic("298",[],!0,function(a,b,c){function d(){k=!1,h.length?j=h.concat(j):l=-1,j.length&&e()}function e(){if(!k){var a=setTimeout(d);k=!0;for(var b=j.length;b;){for(h=j,j=[];++l<b;)h&&h[l].run();l=-1,b=j.length}h=null,k=!1,clearTimeout(a)}}function f(a,b){this.fun=a,this.array=b}function g(){}var h,i=c.exports={},j=[],k=!1,l=-1;return i.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];j.push(new f(a,b)),1!==j.length||k||setTimeout(e,0)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.binding=function(a){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(a){throw new Error("process.chdir is not supported")},i.umask=function(){return 0},c.exports}),a.registerDynamic("299",["298"],!0,function(a,b,c){return c.exports=a("298"),c.exports}),a.registerDynamic("29a",["299"],!0,function(b,c,d){return d.exports=a._nodeRequire?process:b("299"),d.exports}),a.registerDynamic("22",["29a"],!0,function(a,b,c){return c.exports=a("29a"),c.exports}),a.registerDynamic("24c",["22"],!0,function(a,b,c){return function(a){"use strict";!function(a){a[a.Emulated=0]="Emulated",a[a.Native=1]="Native",a[a.None=2]="None"}(b.ViewEncapsulation||(b.ViewEncapsulation={}));var c=b.ViewEncapsulation;b.VIEW_ENCAPSULATION_VALUES=[c.Emulated,c.Native,c.None];var d=function(){function a(a){var b=void 0===a?{}:a,c=b.templateUrl,d=b.template,e=b.directives,f=b.pipes,g=b.encapsulation,h=b.styles,i=b.styleUrls;this.templateUrl=c,this.template=d,this.styleUrls=i,this.styles=h,this.directives=e,this.pipes=f,this.encapsulation=g}return a}();b.ViewMetadata=d}(a("22")),c.exports}),a.registerDynamic("286",[],!0,function(a,b,c){"use strict";!function(a){a[a.HOST=0]="HOST",a[a.COMPONENT=1]="COMPONENT",a[a.EMBEDDED=2]="EMBEDDED"}(b.ViewType||(b.ViewType={}));b.ViewType;return c.exports}),a.registerDynamic("287",["9c","254","286"],!0,function(a,b,c){"use strict";var d=a("9c"),e=a("254"),f=a("286"),g=function(){function a(a,b,c){this.providerTokens=a,this.componentToken=b,this.refTokens=c}return a}();b.StaticNodeDebugInfo=g;var h=function(){function a(a,b,c,d){this._view=a,this._nodeIndex=b,this._tplRow=c,this._tplCol=d}return Object.defineProperty(a.prototype,"_staticNodeInfo",{get:function(){return d.isPresent(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"component",{get:function(){var a=this._staticNodeInfo;return d.isPresent(a)&&d.isPresent(a.componentToken)?this.injector.get(a.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentRenderElement",{get:function(){for(var a=this._view;d.isPresent(a.declarationAppElement)&&a.type!==f.ViewType.COMPONENT;)a=a.declarationAppElement.parentView;return d.isPresent(a.declarationAppElement)?a.declarationAppElement.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderNode",{get:function(){return d.isPresent(this._nodeIndex)&&d.isPresent(this._view.allNodes)?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"providerTokens",{get:function(){var a=this._staticNodeInfo;return d.isPresent(a)?a.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"references",{get:function(){var a=this,b={},c=this._staticNodeInfo;if(d.isPresent(c)){var f=c.refTokens;e.StringMapWrapper.forEach(f,function(c,e){var f;f=d.isBlank(c)?d.isPresent(a._view.allNodes)?a._view.allNodes[a._nodeIndex]:null:a._view.injectorGet(c,a._nodeIndex,null),b[e]=f})}return b},enumerable:!0,configurable:!0}),a}();return b.DebugContext=h,c.exports}),a.registerDynamic("28f",["9c","254"],!0,function(a,b,c){"use strict";function d(a,b){return f.isListLikeIterable(a)&&f.isListLikeIterable(b)?f.areIterablesEqual(a,b,d):f.isListLikeIterable(a)||e.isPrimitive(a)||f.isListLikeIterable(b)||e.isPrimitive(b)?e.looseIdentical(a,b):!0}var e=a("9c"),f=a("254"),g=a("9c");b.looseIdentical=g.looseIdentical,b.uninitialized=new Object,b.devModeEqual=d;var h=function(){function a(a){this.wrapped=a}return a.wrap=function(b){return new a(b)},a}();b.WrappedValue=h;var i=function(){function a(){this.hasWrappedValue=!1}return a.prototype.unwrap=function(a){return a instanceof h?(this.hasWrappedValue=!0,a.wrapped):a},a.prototype.reset=function(){this.hasWrappedValue=!1},a}();b.ValueUnwrapper=i;var j=function(){function a(a,b){this.previousValue=a,this.currentValue=b}return a.prototype.isFirstChange=function(){return this.previousValue===b.uninitialized},a}();return b.SimpleChange=j,c.exports}),a.registerDynamic("252",["a9"],!0,function(a,b,c){"use strict";var d=a("a9"),e=function(){function a(a,b,c,d,e){this.id=a,this.templateUrl=b,this.slotCount=c,this.encapsulation=d,this.styles=e}return a}();b.RenderComponentType=e;var f=function(){function a(){}return Object.defineProperty(a.prototype,"injector",{get:function(){return d.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"component",{get:function(){return d.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"providerTokens",{get:function(){return d.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"references",{get:function(){return d.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return d.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return d.unimplemented()},enumerable:!0,configurable:!0}),a}();b.RenderDebugInfo=f;var g=function(){function a(){}return a}();b.Renderer=g;var h=function(){function a(){}return a}();return b.RootRenderer=h,c.exports}),a.registerDynamic("25a",["9c"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9c"),f=new Object,g=function(){function a(){}return Object.defineProperty(a.prototype,"elementRef",{get:function(){return null},enumerable:!0,configurable:!0}),a}();b.TemplateRef=g;var h=function(a){function b(b,c){a.call(this),this._appElement=b,this._viewFactory=c}return d(b,a),b.prototype.createEmbeddedView=function(a){var b=this._viewFactory(this._appElement.parentView.viewUtils,this._appElement.parentInjector,this._appElement);return e.isBlank(a)&&(a=f),b.create(a,null,null),b.ref},Object.defineProperty(b.prototype,"elementRef",{get:function(){return this._appElement.elementRef},enumerable:!0,configurable:!0}),b}(g);return b.TemplateRef_=h,c.exports}),a.registerDynamic("29b",[],!0,function(a,b,c){"use strict";function d(){}return b.wtfInit=d,c.exports}),a.registerDynamic("294",["9c","a9"],!0,function(a,b,c){"use strict";function d(a){return a?a.map(function(a){var b=a.type,c=b.annotationCls,d=a.args?a.args:[],e=Object.create(c.prototype);return c.apply(e,d),e}):[]}var e=a("9c"),f=a("a9"),g=function(){function a(a){this._reflect=e.isPresent(a)?a:e.global.Reflect}return a.prototype.isReflectionEnabled=function(){return!0},a.prototype.factory=function(a){switch(a.length){case 0:return function(){return new a};case 1:return function(b){return new a(b)};case 2:return function(b,c){return new a(b,c)};case 3:return function(b,c,d){return new a(b,c,d)};case 4:return function(b,c,d,e){return new a(b,c,d,e)};case 5:return function(b,c,d,e,f){return new a(b,c,d,e,f)};case 6:return function(b,c,d,e,f,g){return new a(b,c,d,e,f,g)};case 7:return function(b,c,d,e,f,g,h){return new a(b,c,d,e,f,g,h)};case 8:return function(b,c,d,e,f,g,h,i){return new a(b,c,d,e,f,g,h,i)};case 9:return function(b,c,d,e,f,g,h,i,j){return new a(b,c,d,e,f,g,h,i,j)};case 10:return function(b,c,d,e,f,g,h,i,j,k){return new a(b,c,d,e,f,g,h,i,j,k)};case 11:return function(b,c,d,e,f,g,h,i,j,k,l){return new a(b,c,d,e,f,g,h,i,j,k,l)};case 12:return function(b,c,d,e,f,g,h,i,j,k,l,m){return new a(b,c,d,e,f,g,h,i,j,k,l,m)};case 13:return function(b,c,d,e,f,g,h,i,j,k,l,m,n){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n)};case 14:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o)};case 15:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p)};case 16:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q)};case 17:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r)};case 18:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s)};case 19:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t)};case 20:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u)}}throw new Error("Cannot create a factory for '"+e.stringify(a)+"' because its constructor has more than 20 arguments")},a.prototype._zipTypesAndAnnotations=function(a,b){var c;c="undefined"==typeof a?new Array(b.length):new Array(a.length);for(var d=0;d<c.length;d++)"undefined"==typeof a?c[d]=[]:a[d]!=Object?c[d]=[a[d]]:c[d]=[],e.isPresent(b)&&e.isPresent(b[d])&&(c[d]=c[d].concat(b[d]));return c},a.prototype.parameters=function(a){if(e.isPresent(a.parameters))return a.parameters;if(e.isPresent(a.ctorParameters)){var b=a.ctorParameters,c=b.map(function(a){return a&&a.type}),f=b.map(function(a){return a&&d(a.decorators)});return this._zipTypesAndAnnotations(c,f)}if(e.isPresent(this._reflect)&&e.isPresent(this._reflect.getMetadata)){var g=this._reflect.getMetadata("parameters",a),h=this._reflect.getMetadata("design:paramtypes",a);if(e.isPresent(h)||e.isPresent(g))return this._zipTypesAndAnnotations(h,g)}var i=new Array(a.length);return i.fill(void 0),i},a.prototype.annotations=function(a){if(e.isPresent(a.annotations)){var b=a.annotations;return e.isFunction(b)&&b.annotations&&(b=b.annotations),b}if(e.isPresent(a.decorators))return d(a.decorators);if(e.isPresent(this._reflect)&&e.isPresent(this._reflect.getMetadata)){var b=this._reflect.getMetadata("annotations",a);if(e.isPresent(b))return b}return[]},a.prototype.propMetadata=function(a){if(e.isPresent(a.propMetadata)){var b=a.propMetadata;return e.isFunction(b)&&b.propMetadata&&(b=b.propMetadata),b}if(e.isPresent(a.propDecorators)){var c=a.propDecorators,f={};return Object.keys(c).forEach(function(a){f[a]=d(c[a])}),f}if(e.isPresent(this._reflect)&&e.isPresent(this._reflect.getMetadata)){var b=this._reflect.getMetadata("propMetadata",a);if(e.isPresent(b))return b}return{}},a.prototype.interfaces=function(a){throw new f.BaseException("JavaScript does not support interfaces")},a.prototype.getter=function(a){return new Function("o","return o."+a+";")},a.prototype.setter=function(a){return new Function("o","v","return o."+a+" = v;")},a.prototype.method=function(a){var b="if (!o."+a+") throw new Error('\""+a+"\" is undefined');\n return o."+a+".apply(o, args);";return new Function("o","args",b)},a.prototype.importUri=function(a){return"./"+e.stringify(a)},a}();return b.ReflectionCapabilities=g,c.exports}),a.registerDynamic("29c",["9c","254"],!0,function(a,b,c){"use strict";function d(a){return a.map(function(a){return a.nativeElement})}function e(a,b,c){a.childNodes.forEach(function(a){a instanceof p&&(b(a)&&c.push(a),e(a,b,c))})}function f(a,b,c){a instanceof p&&a.childNodes.forEach(function(a){b(a)&&c.push(a),a instanceof p&&f(a,b,c)})}function g(a){return q.get(a)}function h(){return m.MapWrapper.values(q)}function i(a){q.set(a.nativeNode,a)}function j(a){q["delete"](a.nativeNode)}var k=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l=a("9c"),m=a("254"),n=function(){function a(a,b){this.name=a,this.callback=b}return a}();b.EventListener=n;var o=function(){function a(a,b,c){this._debugInfo=c,this.nativeNode=a,l.isPresent(b)&&b instanceof p?b.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(a.prototype,"injector",{get:function(){return l.isPresent(this._debugInfo)?this._debugInfo.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentInstance",{get:function(){return l.isPresent(this._debugInfo)?this._debugInfo.component:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return l.isPresent(this._debugInfo)?this._debugInfo.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"references",{get:function(){return l.isPresent(this._debugInfo)?this._debugInfo.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"providerTokens",{get:function(){return l.isPresent(this._debugInfo)?this._debugInfo.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return l.isPresent(this._debugInfo)?this._debugInfo.source:null},enumerable:!0,configurable:!0}),a.prototype.inject=function(a){return this.injector.get(a)},a}();b.DebugNode=o;var p=function(a){function b(b,c,d){a.call(this,b,c,d),this.properties={},this.attributes={},this.childNodes=[],this.nativeElement=b}return k(b,a),b.prototype.addChild=function(a){l.isPresent(a)&&(this.childNodes.push(a),a.parent=this)},b.prototype.removeChild=function(a){var b=this.childNodes.indexOf(a);-1!==b&&(a.parent=null,this.childNodes.splice(b,1))},b.prototype.insertChildrenAfter=function(a,b){var c=this.childNodes.indexOf(a);if(-1!==c){var d=this.childNodes.slice(0,c+1),e=this.childNodes.slice(c+1);this.childNodes=m.ListWrapper.concat(m.ListWrapper.concat(d,b),e);for(var f=0;f<b.length;++f){var g=b[f];l.isPresent(g.parent)&&g.parent.removeChild(g),g.parent=this}}},b.prototype.query=function(a){var b=this.queryAll(a);return b.length>0?b[0]:null},b.prototype.queryAll=function(a){var b=[];return e(this,a,b),b},b.prototype.queryAllNodes=function(a){var b=[];return f(this,a,b),b},Object.defineProperty(b.prototype,"children",{get:function(){var a=[];return this.childNodes.forEach(function(c){c instanceof b&&a.push(c)}),a},enumerable:!0,configurable:!0}),b.prototype.triggerEventHandler=function(a,b){this.listeners.forEach(function(c){c.name==a&&c.callback(b)})},b}(o);b.DebugElement=p,b.asNativeElements=d;var q=new Map;return b.getDebugNode=g,b.getAllDebugNodes=h,b.indexDebugNode=i,b.removeDebugNodeFromIndex=j,c.exports}),a.registerDynamic("29d",["9c","29c"],!0,function(a,b,c){"use strict";var d=a("9c"),e=a("29c"),f=function(){function a(a){this._delegate=a}return a.prototype.renderComponent=function(a){return new g(this._delegate.renderComponent(a))},a}();b.DebugDomRootRenderer=f;var g=function(){function a(a){this._delegate=a}return a.prototype.selectRootElement=function(a,b){var c=this._delegate.selectRootElement(a,b),d=new e.DebugElement(c,null,b);return e.indexDebugNode(d),c},a.prototype.createElement=function(a,b,c){var d=this._delegate.createElement(a,b,c),f=new e.DebugElement(d,e.getDebugNode(a),c);return f.name=b,e.indexDebugNode(f),d},a.prototype.createViewRoot=function(a){return this._delegate.createViewRoot(a)},a.prototype.createTemplateAnchor=function(a,b){var c=this._delegate.createTemplateAnchor(a,b),d=new e.DebugNode(c,e.getDebugNode(a),b);return e.indexDebugNode(d),c},a.prototype.createText=function(a,b,c){var d=this._delegate.createText(a,b,c),f=new e.DebugNode(d,e.getDebugNode(a),c);return e.indexDebugNode(f),d},a.prototype.projectNodes=function(a,b){var c=e.getDebugNode(a);if(d.isPresent(c)&&c instanceof e.DebugElement){var f=c;b.forEach(function(a){f.addChild(e.getDebugNode(a))})}this._delegate.projectNodes(a,b)},a.prototype.attachViewAfter=function(a,b){var c=e.getDebugNode(a);if(d.isPresent(c)){var f=c.parent;if(b.length>0&&d.isPresent(f)){var g=[];b.forEach(function(a){return g.push(e.getDebugNode(a))}),f.insertChildrenAfter(c,g)}}this._delegate.attachViewAfter(a,b)},a.prototype.detachView=function(a){a.forEach(function(a){var b=e.getDebugNode(a);d.isPresent(b)&&d.isPresent(b.parent)&&b.parent.removeChild(b)}),this._delegate.detachView(a)},a.prototype.destroyView=function(a,b){b.forEach(function(a){e.removeDebugNodeFromIndex(e.getDebugNode(a))}),this._delegate.destroyView(a,b)},a.prototype.listen=function(a,b,c){var f=e.getDebugNode(a);return d.isPresent(f)&&f.listeners.push(new e.EventListener(b,c)),this._delegate.listen(a,b,c)},a.prototype.listenGlobal=function(a,b,c){return this._delegate.listenGlobal(a,b,c)},a.prototype.setElementProperty=function(a,b,c){var f=e.getDebugNode(a);d.isPresent(f)&&f instanceof e.DebugElement&&(f.properties[b]=c),this._delegate.setElementProperty(a,b,c)},a.prototype.setElementAttribute=function(a,b,c){var f=e.getDebugNode(a);d.isPresent(f)&&f instanceof e.DebugElement&&(f.attributes[b]=c),this._delegate.setElementAttribute(a,b,c)},a.prototype.setBindingDebugInfo=function(a,b,c){this._delegate.setBindingDebugInfo(a,b,c)},a.prototype.setElementClass=function(a,b,c){this._delegate.setElementClass(a,b,c)},a.prototype.setElementStyle=function(a,b,c){this._delegate.setElementStyle(a,b,c)},a.prototype.invokeElementMethod=function(a,b,c){this._delegate.invokeElementMethod(a,b,c)},a.prototype.setText=function(a,b){this._delegate.setText(a,b)},a}();return b.DebugDomRenderer=g,c.exports}),a.registerDynamic("29e",[],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(b){a.call(this,b)}return d(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),b}(Error);return b.BaseWrappedException=e,c.exports}),a.registerDynamic("254",["9c"],!0,function(a,b,c){"use strict";function d(a,b){if(h.isPresent(a))for(var c=0;c<a.length;c++){var e=a[c];h.isArray(e)?d(e,b):b.push(e)}return b}function e(a){return h.isJsObject(a)?h.isArray(a)||!(a instanceof b.Map)&&h.getSymbolIterator()in a:!1}function f(a,b,c){for(var d=a[h.getSymbolIterator()](),e=b[h.getSymbolIterator()]();;){var f=d.next(),g=e.next();if(f.done&&g.done)return!0;if(f.done||g.done)return!1;if(!c(f.value,g.value))return!1}}function g(a,b){if(h.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(var d,e=a[h.getSymbolIterator()]();!(d=e.next()).done;)b(d.value)}var h=a("9c");b.Map=h.global.Map,b.Set=h.global.Set;var i=function(){try{if(1===new b.Map([[1,2]]).size)return function(a){return new b.Map(a)}}catch(a){}return function(a){for(var c=new b.Map,d=0;d<a.length;d++){var e=a[d];c.set(e[0],e[1])}return c}}(),j=function(){try{if(new b.Map(new b.Map))return function(a){return new b.Map(a)}}catch(a){}return function(a){var c=new b.Map;return a.forEach(function(a,b){c.set(b,a)}),c}}(),k=function(){return(new b.Map).keys().next?function(a){for(var b,c=a.keys();!(b=c.next()).done;)a.set(b.value,null)}:function(a){a.forEach(function(b,c){a.set(c,null)})}}(),l=function(){try{if((new b.Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=o.createFixedSize(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),m=function(){function a(){}return a.clone=function(a){return j(a)},a.createFromStringMap=function(a){var c=new b.Map;for(var d in a)c.set(d,a[d]);return c},a.toStringMap=function(a){var b={};return a.forEach(function(a,c){return b[c]=a}),b},a.createFromPairs=function(a){return i(a)},a.clearValues=function(a){k(a)},a.iterable=function(a){return a},a.keys=function(a){return l(a,!1)},a.values=function(a){return l(a,!0)},a}();b.MapWrapper=m;var n=function(){function a(){}return a.create=function(){return{}},a.contains=function(a,b){return a.hasOwnProperty(b)},a.get=function(a,b){return a.hasOwnProperty(b)?a[b]:void 0},a.set=function(a,b,c){a[b]=c},a.keys=function(a){return Object.keys(a)},a.values=function(a){return Object.keys(a).reduce(function(b,c){return b.push(a[c]),b},[])},a.isEmpty=function(a){for(var b in a)return!1;return!0},a["delete"]=function(a,b){delete a[b]},a.forEach=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},a.merge=function(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f<c.length;f++)if(e=c[f],a[e]!==b[e])return!1;return!0},a}();b.StringMapWrapper=n;var o=function(){function a(){}return a.createFixedSize=function(a){return new Array(a)},a.createGrowableSize=function(a){return new Array(a)},a.clone=function(a){return a.slice(0)},a.forEachWithIndex=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)},a.first=function(a){return a?a[0]:null},a.last=function(a){return a&&0!=a.length?a[a.length-1]:null},a.indexOf=function(a,b,c){return void 0===c&&(c=0),a.indexOf(b,c)},a.contains=function(a,b){return-1!==a.indexOf(b)},a.reversed=function(b){var c=a.clone(b);return c.reverse()},a.concat=function(a,b){return a.concat(b)},a.insert=function(a,b,c){a.splice(b,0,c)},a.removeAt=function(a,b){var c=a[b];return a.splice(b,1),c},a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.splice=function(a,b,c){return a.splice(b,c)},a.sort=function(a,b){h.isPresent(b)?a.sort(b):a.sort()},a.toString=function(a){return a.toString()},a.toJSON=function(a){return JSON.stringify(a)},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(!h.isBlank(f)){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return d(a,b),b},a.addAll=function(a,b){for(var c=0;c<b.length;c++)a.push(b[c])},a}();b.ListWrapper=o,b.isListLikeIterable=e,b.areIterablesEqual=f,b.iterateListLike=g;var p=function(){var a=new b.Set([1,2,3]);return 3===a.size?function(a){return new b.Set(a)}:function(a){var c=new b.Set(a);if(c.size!==a.length)for(var d=0;d<a.length;d++)c.add(a[d]);return c}}(),q=function(){function a(){}return a.createFromList=function(a){return p(a)},a.has=function(a,b){return a.has(b)},a["delete"]=function(a,b){a["delete"](b)},a}();return b.SetWrapper=q,c.exports}),a.registerDynamic("29f",["9c","29e","254"],!0,function(a,b,c){"use strict";var d=a("9c"),e=a("29e"),f=a("254"),g=function(){function a(){this.res=[]}return a.prototype.log=function(a){this.res.push(a)},a.prototype.logError=function(a){this.res.push(a)},a.prototype.logGroup=function(a){this.res.push(a)},a.prototype.logGroupEnd=function(){},a}(),h=function(){function a(a,b){void 0===b&&(b=!0),this._logger=a,this._rethrowException=b}return a.exceptionToString=function(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null);var e=new g,f=new a(e,!1);return f.call(b,c,d),e.res.join("\n")},a.prototype.call=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null);var e=this._findOriginalException(a),f=this._findOriginalStack(a),g=this._findContext(a);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(a)),d.isPresent(b)&&d.isBlank(f)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(b))),d.isPresent(c)&&this._logger.logError("REASON: "+c),d.isPresent(e)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(e)),d.isPresent(f)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(f))),d.isPresent(g)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(g)),this._logger.logGroupEnd(),this._rethrowException)throw a},a.prototype._extractMessage=function(a){return a instanceof e.BaseWrappedException?a.wrapperMessage:a.toString()},a.prototype._longStackTrace=function(a){return f.isListLikeIterable(a)?a.join("\n\n-----async gap-----\n"):a.toString()},a.prototype._findContext=function(a){try{return a instanceof e.BaseWrappedException?d.isPresent(a.context)?a.context:this._findContext(a.originalException):null;
|
||
}catch(b){return null}},a.prototype._findOriginalException=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a.originalException;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException;return b},a.prototype._findOriginalStack=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a,c=a.originalStack;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException,b instanceof e.BaseWrappedException&&d.isPresent(b.originalException)&&(c=b.originalStack);return c},a}();return b.ExceptionHandler=h,c.exports}),a.registerDynamic("a9",["29e","29f"],!0,function(a,b,c){"use strict";function d(a){return new TypeError(a)}function e(){throw new j("unimplemented")}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("29e"),h=a("29f"),i=a("29f");b.ExceptionHandler=i.ExceptionHandler;var j=function(a){function b(b){void 0===b&&(b="--"),a.call(this,b),this.message=b,this.stack=new Error(b).stack}return f(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.BaseException=j;var k=function(a){function b(b,c,d,e){a.call(this,b),this._wrapperMessage=b,this._originalException=c,this._originalStack=d,this._context=e,this._wrapperStack=new Error(b).stack}return f(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return h.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this.message},b}(g.BaseWrappedException);return b.WrappedException=k,b.makeTypeError=d,b.unimplemented=e,c.exports}),a.registerDynamic("295",["9c","a9"],!0,function(a,b,c){"use strict";function d(a){return new k(a)}function e(a,b){var c=b.useClass,d=b.useValue,e=b.useExisting,f=b.useFactory,g=b.deps,h=b.multi;return new i(a,{useClass:c,useValue:d,useExisting:e,useFactory:f,deps:g,multi:h})}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("9c"),h=a("a9"),i=function(){function a(a,b){var c=b.useClass,d=b.useValue,e=b.useExisting,f=b.useFactory,g=b.deps,h=b.multi;this.token=a,this.useClass=c,this.useValue=d,this.useExisting=e,this.useFactory=f,this.dependencies=g,this._multi=h}return Object.defineProperty(a.prototype,"multi",{get:function(){return g.normalizeBool(this._multi)},enumerable:!0,configurable:!0}),a}();b.Provider=i;var j=function(a){function b(b,c){var d=c.toClass,e=c.toValue,f=c.toAlias,g=c.toFactory,h=c.deps,i=c.multi;a.call(this,b,{useClass:d,useValue:e,useExisting:f,useFactory:g,deps:h,multi:i})}return f(b,a),Object.defineProperty(b.prototype,"toClass",{get:function(){return this.useClass},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toAlias",{get:function(){return this.useExisting},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toFactory",{get:function(){return this.useFactory},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toValue",{get:function(){return this.useValue},enumerable:!0,configurable:!0}),b}(i);b.Binding=j,b.bind=d;var k=function(){function a(a){this.token=a}return a.prototype.toClass=function(a){if(!g.isType(a))throw new h.BaseException('Trying to create a class provider but "'+g.stringify(a)+'" is not a class!');return new i(this.token,{useClass:a})},a.prototype.toValue=function(a){return new i(this.token,{useValue:a})},a.prototype.toAlias=function(a){if(g.isBlank(a))throw new h.BaseException("Can not alias "+g.stringify(this.token)+" to a blank value!");return new i(this.token,{useExisting:a})},a.prototype.toFactory=function(a,b){if(!g.isFunction(a))throw new h.BaseException('Trying to create a factory provider but "'+g.stringify(a)+'" is not a function!');return new i(this.token,{useFactory:a,deps:b})},a}();return b.ProviderBuilder=k,b.provide=e,c.exports}),a.registerDynamic("296",["295"],!0,function(a,b,c){"use strict";function d(a){return a&&"object"==typeof a&&a.provide}function e(a){return new f.Provider(a.provide,a)}var f=a("295");return b.isProviderLiteral=d,b.createProvider=e,c.exports}),a.registerDynamic("247",["9c"],!0,function(a,b,c){"use strict";var d=a("9c"),e=function(){function a(a){this.token=a}return a.prototype.toString=function(){return"@Inject("+d.stringify(this.token)+")"},a}();b.InjectMetadata=e;var f=function(){function a(){}return a.prototype.toString=function(){return"@Optional()"},a}();b.OptionalMetadata=f;var g=function(){function a(){}return Object.defineProperty(a.prototype,"token",{get:function(){return null},enumerable:!0,configurable:!0}),a}();b.DependencyMetadata=g;var h=function(){function a(){}return a}();b.InjectableMetadata=h;var i=function(){function a(){}return a.prototype.toString=function(){return"@Self()"},a}();b.SelfMetadata=i;var j=function(){function a(){}return a.prototype.toString=function(){return"@SkipSelf()"},a}();b.SkipSelfMetadata=j;var k=function(){function a(){}return a.prototype.toString=function(){return"@Host()"},a}();return b.HostMetadata=k,c.exports}),a.registerDynamic("9c",[],!0,function(a,b,c){"use strict";function d(a){Zone.current.scheduleMicroTask("scheduleMicrotask",a)}function e(a){return a.name?a.name:typeof a}function f(){T=!0}function g(){if(T)throw"Cannot enable prod mode after platform setup.";S=!1}function h(){return S}function i(a){return void 0!==a&&null!==a}function j(a){return void 0===a||null===a}function k(a){return"boolean"==typeof a}function l(a){return"number"==typeof a}function m(a){return"string"==typeof a}function n(a){return"function"==typeof a}function o(a){return n(a)}function p(a){return"object"==typeof a&&null!==a}function q(a){return p(a)&&Object.getPrototypeOf(a)===U}function r(a){return a instanceof R.Promise}function s(a){return Array.isArray(a)}function t(a){return a instanceof b.Date&&!isNaN(a.valueOf())}function u(){}function v(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.name)return a.name;if(a.overriddenName)return a.overriddenName;var b=a.toString(),c=b.indexOf("\n");return-1===c?b:b.substring(0,c)}function w(a){return a}function x(a,b){return a}function y(a,b){return a[b]}function z(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function A(a){return a}function B(a){return j(a)?null:a}function C(a){return j(a)?!1:a}function D(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function E(a){console.log(a)}function F(a){console.warn(a)}function G(a,b,c){for(var d=b.split("."),e=a;d.length>1;){var f=d.shift();e=e.hasOwnProperty(f)&&i(e[f])?e[f]:e[f]={}}void 0!==e&&null!==e||(e={}),e[d.shift()]=c}function H(){if(j(ca))if(i(O.Symbol)&&i(Symbol.iterator))ca=Symbol.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(ca=c)}return ca}function I(a,b,c,d){var e=c+"\nreturn "+b+"\n//# sourceURL="+a,f=[],g=[];for(var h in d)f.push(h),g.push(d[h]);return(new(Function.bind.apply(Function,[void 0].concat(f.concat(e))))).apply(void 0,g)}function J(a){return!D(a)}function K(a,b){return a.constructor===b}function L(a){return a.reduce(function(a,b){return a|b})}function M(a){return a.reduce(function(a,b){return a&b})}function N(a){return R.encodeURI(a)}var O,P=this,Q=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};O="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:P:window,b.scheduleMicroTask=d,b.IS_DART=!1;var R=O;b.global=R,b.Type=Function,b.getTypeNameForDebugging=e,b.Math=R.Math,b.Date=R.Date;var S=!0,T=!1;b.lockMode=f,b.enableProdMode=g,b.assertionsEnabled=h,R.assert=function(a){},b.isPresent=i,b.isBlank=j,b.isBoolean=k,b.isNumber=l,b.isString=m,b.isFunction=n,b.isType=o,b.isStringMap=p;var U=Object.getPrototypeOf({});b.isStrictStringMap=q,b.isPromise=r,b.isArray=s,b.isDate=t,b.noop=u,b.stringify=v,b.serializeEnum=w,b.deserializeEnum=x,b.resolveEnumToken=y;var V=function(){function a(){}return a.fromCharCode=function(a){return String.fromCharCode(a)},a.charCodeAt=function(a,b){return a.charCodeAt(b)},a.split=function(a,b){return a.split(b)},a.equals=function(a,b){return a===b},a.stripLeft=function(a,b){if(a&&a.length){for(var c=0,d=0;d<a.length&&a[d]==b;d++)c++;a=a.substring(c)}return a},a.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,d=a.length-1;d>=0&&a[d]==b;d--)c--;a=a.substring(0,c)}return a},a.replace=function(a,b,c){return a.replace(b,c)},a.replaceAll=function(a,b,c){return a.replace(b,c)},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=V;var W=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=W;var X=function(a){function b(b){a.call(this),this.message=b}return Q(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=X;var Y=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new X("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new X("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}();b.NumberWrapper=Y,b.RegExp=R.RegExp;var Z=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new R.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=function(a,b){return a.lastIndex=0,a.test(b)},a.matcher=function(a,b){return a.lastIndex=0,{re:a,input:b}},a.replaceAll=function(a,b,c){var d=a.exec(b),e="";a.lastIndex=0;for(var f=0;d;)e+=b.substring(f,d.index),e+=c(d),f=d.index+d[0].length,a.lastIndex=f,d=a.exec(b);return e+=b.substring(f)},a}();b.RegExpWrapper=Z;var $=function(){function a(){}return a.next=function(a){return a.re.exec(a.input)},a}();b.RegExpMatcherWrapper=$;var _=function(){function a(){}return a.apply=function(a,b){return a.apply(null,b)},a}();b.FunctionWrapper=_,b.looseIdentical=z,b.getMapKey=A,b.normalizeBlank=B,b.normalizeBool=C,b.isJsObject=D,b.print=E,b.warn=F;var aa=function(){function a(){}return a.parse=function(a){return R.JSON.parse(a)},a.stringify=function(a){return R.JSON.stringify(a,null,2)},a}();b.Json=aa;var ba=function(){function a(){}return a.create=function(a,c,d,e,f,g,h){return void 0===c&&(c=1),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),void 0===g&&(g=0),void 0===h&&(h=0),new b.Date(a,c-1,d,e,f,g,h)},a.fromISOString=function(a){return new b.Date(a)},a.fromMillis=function(a){return new b.Date(a)},a.toMillis=function(a){return a.getTime()},a.now=function(){return new b.Date},a.toJson=function(a){return a.toJSON()},a}();b.DateWrapper=ba,b.setValueOnPath=G;var ca=null;return b.getSymbolIterator=H,b.evalExpression=I,b.isPrimitive=J,b.hasConstructor=K,b.bitWiseOr=L,b.bitWiseAnd=M,b.escape=N,c.exports}),a.registerDynamic("24d",["9c"],!0,function(a,b,c){"use strict";function d(a){return j.isFunction(a)&&a.hasOwnProperty("annotation")&&(a=a.annotation),a}function e(a,b){if(a===Object||a===String||a===Function||a===Number||a===Array)throw new Error("Can not use native "+j.stringify(a)+" as constructor");if(j.isFunction(a))return a;if(a instanceof Array){var c=a,e=a[a.length-1];if(!j.isFunction(e))throw new Error("Last position of Class method array must be Function in key "+b+" was '"+j.stringify(e)+"'");var f=c.length-1;if(f!=e.length)throw new Error("Number of annotations ("+f+") does not match number of arguments ("+e.length+") in the function: "+j.stringify(e));for(var g=[],h=0,i=c.length-1;i>h;h++){var k=[];g.push(k);var m=c[h];if(m instanceof Array)for(var n=0;n<m.length;n++)k.push(d(m[n]));else j.isFunction(m)?k.push(d(m)):k.push(m)}return l.defineMetadata("parameters",g,e),e}throw new Error("Only Function or Array is supported in Class definition for key '"+b+"' is '"+j.stringify(a)+"'")}function f(a){var b=e(a.hasOwnProperty("constructor")?a.constructor:void 0,"constructor"),c=b.prototype;if(a.hasOwnProperty("extends")){if(!j.isFunction(a["extends"]))throw new Error("Class definition 'extends' property must be a constructor function was: "+j.stringify(a["extends"]));b.prototype=c=Object.create(a["extends"].prototype)}for(var d in a)"extends"!=d&&"prototype"!=d&&a.hasOwnProperty(d)&&(c[d]=e(a[d],d));return this&&this.annotations instanceof Array&&l.defineMetadata("annotations",this.annotations,b),b.name||(b.overriddenName="class"+k++),b}function g(a,b){function c(c){var d=new a(c);if(this instanceof a)return d;var e=j.isFunction(this)&&this.annotations instanceof Array?this.annotations:[];e.push(d);var g=function(a){var b=l.getOwnMetadata("annotations",a);return b=b||[],b.push(d),l.defineMetadata("annotations",b,a),a};return g.annotations=e,g.Class=f,b&&b(g),g}return void 0===b&&(b=null),c.prototype=Object.create(a.prototype),c.annotationCls=a,c}function h(a){function b(){function b(a,b,c){var d=l.getMetadata("parameters",a);for(d=d||[];d.length<=c;)d.push(null);d[c]=d[c]||[];var f=d[c];return f.push(e),l.defineMetadata("parameters",d,a),a}for(var c=[],d=0;d<arguments.length;d++)c[d-0]=arguments[d];var e=Object.create(a.prototype);return a.apply(e,c),this instanceof a?e:(b.annotation=e,b)}return b.prototype=Object.create(a.prototype),b.annotationCls=a,b}function i(a){function b(){for(var b=[],c=0;c<arguments.length;c++)b[c-0]=arguments[c];var d=Object.create(a.prototype);return a.apply(d,b),this instanceof a?d:function(a,b){var c=l.getOwnMetadata("propMetadata",a.constructor);c=c||{},c[b]=c[b]||[],c[b].unshift(d),l.defineMetadata("propMetadata",c,a.constructor)}}return b.prototype=Object.create(a.prototype),b.annotationCls=a,b}var j=a("9c"),k=0;b.Class=f;var l=j.global.Reflect;return function(){if(!l||!l.getMetadata)throw"reflect-metadata shim is required when using class decorators"}(),b.makeDecorator=g,b.makeParamDecorator=h,b.makePropDecorator=i,c.exports}),a.registerDynamic("26a",["247","24d"],!0,function(a,b,c){"use strict";var d=a("247"),e=a("24d");return b.Inject=e.makeParamDecorator(d.InjectMetadata),b.Optional=e.makeParamDecorator(d.OptionalMetadata),b.Injectable=e.makeDecorator(d.InjectableMetadata),b.Self=e.makeParamDecorator(d.SelfMetadata),b.Host=e.makeParamDecorator(d.HostMetadata),b.SkipSelf=e.makeParamDecorator(d.SkipSelfMetadata),c.exports}),a.registerDynamic("264",["9c","26a"],!0,function(a,b,c){"use strict";var d=a("9c"),e=a("26a"),f=d.warn,g=function(){function a(){}return a.prototype.log=function(a){d.print(a)},a.prototype.warn=function(a){f(a)},a.decorators=[{type:e.Injectable}],a}();return b.Console=g,c.exports}),a.registerDynamic("2a0",["24a","288","290","270","266","257","285","284","286","26f","24c","287","28f","252","25a","29b","294","24d","29d","296","264"],!0,function(a,b,c){"use strict";var d=a("24a"),e=a("288"),f=a("290"),g=a("270"),h=a("266"),i=a("257"),j=a("285"),k=a("284"),l=a("286"),m=a("26f"),n=a("24c"),o=a("287"),p=a("28f"),q=a("252"),r=a("25a"),s=a("29b"),t=a("294"),u=a("24d"),v=a("29d"),w=a("296"),x=a("264");return b.__core_private__={isDefaultChangeDetectionStrategy:d.isDefaultChangeDetectionStrategy,ChangeDetectorState:d.ChangeDetectorState,CHANGE_DETECTION_STRATEGY_VALUES:d.CHANGE_DETECTION_STRATEGY_VALUES,constructDependencies:f.constructDependencies,LifecycleHooks:g.LifecycleHooks,LIFECYCLE_HOOKS_VALUES:g.LIFECYCLE_HOOKS_VALUES,ReflectorReader:h.ReflectorReader,ReflectorComponentResolver:i.ReflectorComponentResolver,AppElement:j.AppElement,AppView:k.AppView,DebugAppView:k.DebugAppView,ViewType:l.ViewType,MAX_INTERPOLATION_VALUES:m.MAX_INTERPOLATION_VALUES,checkBinding:m.checkBinding,flattenNestedViewRenderNodes:m.flattenNestedViewRenderNodes,interpolate:m.interpolate,ViewUtils:m.ViewUtils,VIEW_ENCAPSULATION_VALUES:n.VIEW_ENCAPSULATION_VALUES,DebugContext:o.DebugContext,StaticNodeDebugInfo:o.StaticNodeDebugInfo,devModeEqual:p.devModeEqual,uninitialized:p.uninitialized,ValueUnwrapper:p.ValueUnwrapper,RenderDebugInfo:q.RenderDebugInfo,SecurityContext:e.SecurityContext,SanitizationService:e.SanitizationService,TemplateRef_:r.TemplateRef_,wtfInit:s.wtfInit,ReflectionCapabilities:t.ReflectionCapabilities,makeDecorator:u.makeDecorator,DebugDomRootRenderer:v.DebugDomRootRenderer,createProvider:w.createProvider,isProviderLiteral:w.isProviderLiteral,EMPTY_ARRAY:m.EMPTY_ARRAY,EMPTY_MAP:m.EMPTY_MAP,pureProxy1:m.pureProxy1,pureProxy2:m.pureProxy2,pureProxy3:m.pureProxy3,pureProxy4:m.pureProxy4,pureProxy5:m.pureProxy5,pureProxy6:m.pureProxy6,pureProxy7:m.pureProxy7,pureProxy8:m.pureProxy8,pureProxy9:m.pureProxy9,pureProxy10:m.pureProxy10,castByValue:m.castByValue,Console:x.Console},c.exports}),a.registerDynamic("2a1",["24b","24e","262","268","26b","24f","251","256","29c","267","25f","261","263","26e","265","26c","9c","255","a9","2a0"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}d(a("24b")),d(a("24e")),d(a("262"));var e=a("268");b.createPlatform=e.createPlatform,b.assertPlatform=e.assertPlatform,b.disposePlatform=e.disposePlatform,b.getPlatform=e.getPlatform,b.coreBootstrap=e.coreBootstrap,b.coreLoadAndBootstrap=e.coreLoadAndBootstrap,b.createNgZone=e.createNgZone,b.PlatformRef=e.PlatformRef,b.ApplicationRef=e.ApplicationRef;var f=a("26b");b.APP_ID=f.APP_ID,b.APP_INITIALIZER=f.APP_INITIALIZER,b.PACKAGE_ROOT_URL=f.PACKAGE_ROOT_URL,b.PLATFORM_INITIALIZER=f.PLATFORM_INITIALIZER,d(a("24f")),d(a("251")),d(a("256"));var g=a("29c");b.DebugElement=g.DebugElement,b.DebugNode=g.DebugNode,b.asNativeElements=g.asNativeElements,b.getDebugNode=g.getDebugNode,d(a("267")),d(a("25f")),d(a("261")),d(a("263")),d(a("26e")),d(a("265"));var h=a("26c");b.wtfCreateScope=h.wtfCreateScope,b.wtfLeave=h.wtfLeave,b.wtfStartTimeRange=h.wtfStartTimeRange,b.wtfEndTimeRange=h.wtfEndTimeRange;var i=a("9c");b.Type=i.Type,b.enableProdMode=i.enableProdMode;var j=a("255");b.EventEmitter=j.EventEmitter;var k=a("a9");return b.ExceptionHandler=k.ExceptionHandler,b.WrappedException=k.WrappedException,b.BaseException=k.BaseException,d(a("2a0")),c.exports}),a.registerDynamic("11",["2a1"],!0,function(a,b,c){return c.exports=a("2a1"),c.exports}),a.register("2a2",["11","8a"],function(a){var b,c,d;return{setters:[function(a){b=a.EventEmitter},function(a){c=a["default"]}],execute:function(){"use strict";d=function e(){c(this,e),this.bootstrapped=new b,this.samplesLanguageChanged=new b},a("RedocEventsService",d)}}}),a.register("227",["11","89","8a","5e","9c","2a2"],function(a){var b,c,d,e,f,g,h,i;return{setters:[function(a){b=a.Injectable,c=a.EventEmitter},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a.BrowserDomAdapter},function(a){g=a.global},function(a){h=a.RedocEventsService}],execute:function(){"use strict";i=function(){function a(a,b){var d=this;e(this,i),this.changed=new c,this.dom=a,this.bind(),b.bootstrapped.subscribe(function(){return d.changed.next(d.hash)})}d(a,[{key:"bind",value:function(){var a=this;this._cancel=this.dom.onAndCancel(g,"hashchange",function(b){a.changed.next(a.hash),b.preventDefault()})}},{key:"unbind",value:function(){this._cancel()}},{key:"hash",get:function(){return this.dom.getLocation().hash}}]);var i=a;return a=b()(a)||a,a=Reflect.metadata("parameters",[[f],[h]])(a)||a}(),a("Hash",i)}}}),a.register("86",["225","226","227","242","2a2"],function(a){"use strict";return{setters:[function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)}],execute:function(){}}}),a.registerDynamic("2a3",[],!0,function(a,b,c){return function(){var a=function(b,c){return null===b.parentNode?c:a(b.parentNode,c.concat([b]))},b=function(a,b){return getComputedStyle(a,null).getPropertyValue(b)},d=function(a){return b(a,"overflow")+b(a,"overflow-y")+b(a,"overflow-x")},e=function(a){return/(auto|scroll)/.test(d(a))},f=function(b){if(b instanceof HTMLElement){for(var c=a(b.parentNode,[]),d=0;d<c.length;d+=1)if(e(c[d]))return c[d];return window}};"object"==typeof c&&null!==c?c.exports=f:window.Scrollparent=f}(),c.exports}),a.registerDynamic("2a4",["2a3"],!0,function(a,b,c){return c.exports=a("2a3"),c.exports}),a.register("2a5",[],function(){return{setters:[],execute:function(){}}}),a.register("2a6",["11","83","84","85","86","87","88","89","90","93","8a","5e","8b","a0","ab","2a4","2a5"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;return{setters:[function(a){b=a.provide,c=a.enableProdMode,d=a.ElementRef},function(a){e=a.bootstrap},function(a){f=a.ApiInfo},function(a){g=a.RedocComponent,h=a.BaseComponent},function(a){i=a.OptionsService,j=a.RedocEventsService},function(a){k=a["default"]},function(a){l=a["default"]},function(a){m=a["default"]},function(a){n=a.StickySidebar},function(a){o=a["default"]},function(a){p=a["default"]},function(a){q=a.BrowserDomAdapter},function(a){r=a.ApiLogo},function(a){s=a.MethodsList},function(a){t=a.SideMenu},function(a){u=a["default"]},function(a){}],execute:function(){"use strict";v=new q,w=!1,x=function(a){function h(a,b,c,d){p(this,x),k(Object.getPrototypeOf(x.prototype),"constructor",this).call(this,a),this.element=c.nativeElement,b.parseOptions(this.element),b.options.$scrollParent=u(this.element),this.options=b.options,this.events=d}l(h,a),m(h,[{key:"ngAfterViewInit",value:function(){var a=this;setTimeout(function(){a.events.bootstrapped.next()})}}],[{key:"showLoadingAnimation",value:function(){var a=v.query("redoc");v.addClass(a,"loading")}},{key:"hideLoadingAnimation",value:function(){var a=v.query("redoc");v.addClass(a,"loading-remove"),setTimeout(function(){v.removeClass(a,"loading-remove"),v.removeClass(a,"loading")},400)}},{key:"init",value:function(a,d){var f=new i(v);f.options=d,f.options.specUrl=f.options.specUrl||a;var g=[b(i,{useValue:f})];return h.appRef&&h.destroy(),h.showLoadingAnimation(),o.instance().load(a).then(function(){return w||f.options.debugMode||(c(),w=!0),e(h,g)}).then(function(a){h.hideLoadingAnimation(),h.appRef=a,console.log("ReDoc bootstrapped!")},function(a){throw console.log(a),a})}},{key:"autoInit",value:function(){var a="spec-url",b=v.query("redoc");if(b&&v.hasAttribute(b,a)){var c=v.getAttribute(b,a);h.init(c)}}},{key:"destroy",value:function(){var a=v.query("redoc"),b=void 0,c=void 0,d=void 0;a&&(c=a.parentElement,d=a.nextElementSibling),b=a.cloneNode(!1),h.appRef&&(h.appRef.destroy(),h.appRef=null,b.innerHTML="Loading...",c&&c.insertBefore(b,d))}}]);var x=h;return h=Reflect.metadata("parameters",[[o],[i],[d],[j]])(h)||h,h=g({selector:"redoc",providers:[o,q,j],template:'\n <div class="redoc-wrap">\n <div class="menu-content" sticky-sidebar [scrollParent]="options.$scrollParent" [scrollYOffset]="options.scrollYOffset">\n <api-logo> </api-logo>\n <side-menu> </side-menu>\n </div>\n <div id="api-content">\n <api-info> </api-info>\n <methods-list> </methods-list>\n <footer>\n <div class="powered-by-badge">\n <a href="https://github.com/Rebilly/ReDoc" title="Swagger-generated API Reference Documentation" target="_blank">\n Powered by <strong>ReDoc</strong>\n </a>\n </div>\n </footer>\n </div>\n </div>\n ',styles:['\n :host{display:block;box-sizing:border-box;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;-ms-tap-highlight-color:transparent;-o-tap-highlight-color:transparent;tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:antialiased;-webkit-osx-font-smoothing:grayscale;-moz-osx-font-smoothing:grayscale;osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-text-shadow:1px 1px 1px rgba(0,0,0,0.004);-ms-text-shadow:1px 1px 1px rgba(0,0,0,0.004);text-shadow:1px 1px 1px rgba(0,0,0,0.004);text-rendering:optimizeSpeed !important;font-smooth:always;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}.redoc-wrap{position:relative;font-family:Roboto,sans-serif;font-size:14px;line-height:1.55em;color:#263238}side-menu{display:block;box-sizing:border-box}methods-list{display:block;overflow:hidden}api-info,.side-bar{display:block;padding:10px 0}api-info{padding:40px}api-logo{display:block;text-align:center}@media (max-width: 1000px){api-logo{display:none}}[sticky-sidebar]{width:260px;background-color:#FAFAFA;overflow-y:auto;overflow-x:hidden}@media (max-width: 1000px){[sticky-sidebar]{z-index:1;width:100%;bottom:auto !important}}#api-content{margin-left:260px;position:relative}@media (max-width: 1000px){#api-content{padding-top:3em;margin-left:0}}#api-content:before{content:"";background:#263238;height:100%;width:40%;top:0;right:0;position:absolute;z-index:-1}@media (max-width: 1100px){#api-content:before{display:none}}:host h1{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h2{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h3{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h4{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h5{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h1{font-size:1.85714em}:host h2{font-size:1.57143em}:host h3{font-size:1.28571em}:host h4{font-size:1.14286em}:host h5{font-size:0.929em}:host p{font-family:Roboto,sans-serif;font-weight:300;margin:0;margin-bottom:1em;line-height:1.55em}:host a{text-decoration:none;color:#0033a0}:host p>code{color:#e53935;border:1px solid rgba(38,50,56,0.1)}footer{text-align:right;padding:10px;font-size:15px;background-color:white}footer strong{font-size:18px;color:#0033a0}:host .redoc-markdown-block pre{font-family:Courier, monospace;white-space:pre-wrap;background-color:rgba(38,50,56,0.04);padding:12px 14px 15px 14px;overflow-x:auto;line-height:normal;border-radius:2px;border:1px solid rgba(38,50,56,0.1)}:host .redoc-markdown-block pre code{background-color:transparent}:host .redoc-markdown-block pre code:before,:host .redoc-markdown-block pre code:after{content:none}:host .redoc-markdown-block code{font-family:Courier, monospace;background-color:rgba(38,50,56,0.04);padding:0.1em 0 0.2em 0;font-size:1em;border-radius:2px}:host .redoc-markdown-block code:before,:host .redoc-markdown-block code:after{letter-spacing:-0.2em;content:"\\00a0"}:host .redoc-markdown-block p:last-of-type{margin-bottom:0}:host .redoc-markdown-block blockquote{margin:0;margin-bottom:1em;padding:0 15px;color:#777;border-left:4px solid #ddd}:host .redoc-markdown-block img{max-width:100%;box-sizing:content-box}:host .redoc-markdown-block ul,:host .redoc-markdown-block ol{padding-left:2em;margin:0;margin-bottom:1em}:host .redoc-markdown-block table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;border-collapse:collapse;border-spacing:0;margin-top:0.5em;margin-bottom:0.5em}:host .redoc-markdown-block table tr{background-color:#fff;border-top:1px solid #ccc}:host .redoc-markdown-block table tr:nth-child(2n){background-color:#f8f8f8}:host .redoc-markdown-block table th,:host .redoc-markdown-block table td{padding:6px 13px;border:1px solid #ddd}:host .redoc-markdown-block table th{text-align:left;font-weight:bold}\n '],directives:[f,r,s,t,n],detect:!0,onPushOnly:!1})(h)||h}(h),a("Redoc",x)}}}),a.register("97",["2","84","94","96","8b","8d","8e","8c","9e","9d","ab","a0","2a6"],function(a){"use strict";return{setters:[function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)}],execute:function(){}}}),a.register("1",["97"],function(a){"use strict";var b,c;return{setters:[function(a){b=a.Redoc}],execute:function(){c=b.init,a("init",c),window.Redoc=b,b.autoInit()}}}),a.register("npm:prismjs@1.3.0/themes/prism-dark.css!github:systemjs/plugin-css@0.1.18.js",[],!1,function(){}),a.register("npm:hint.css@2.2.1/hint.base.css!github:systemjs/plugin-css@0.1.18.js",[],!1,function(){}),a.register("github:Robdel12/DropKick@2.1.7/build/css/dropkick.css!github:systemjs/plugin-css@0.1.18.js",[],!1,function(){}),a.register(".tmp/lib/components/Redoc/redoc-loading-styles.css!github:systemjs/plugin-css@0.1.18.js",[],!1,function(){}),function(a){if("undefined"!=typeof document){var b=document,c="appendChild",d="styleSheet",e=b.createElement("style");e.type="text/css",b.getElementsByTagName("head")[0][c](e),e[d]?e[d].cssText=a:e[c](b.createTextNode(a))}}('code[class*=language-],pre[class*=language-]{color:#fff;text-shadow:0 -.1em .2em #000;font-family:Consolas,Monaco,\'Andale Mono\',\'Ubuntu Mono\',monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}:not(pre)>code[class*=language-],pre[class*=language-]{background:#4c3f33}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid #7a6651;border-radius:.5em;box-shadow:1px 1px .5em #000 inset}:not(pre)>code[class*=language-]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid #7a6651;box-shadow:1px 1px .3em -.1em #000 inset}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#997f66}.namespace,.token.punctuation{opacity:.7}.token.boolean,.token.constant,.token.number,.token.property,.token.symbol,.token.tag{color:#d1939e}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#bce051}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f4b73d}.token.atrule,.token.attr-value,.token.keyword{color:#d1939e}.token.important,.token.regex{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}/*! Hint.css (base version) - v2.2.1 - 2016-03-26\n* http://kushagragour.in/lab/hint/\n* Copyright (c) 2016 Kushagra Gour; Licensed */[data-hint]{position:relative;display:inline-block}[data-hint]:after,[data-hint]:before{position:absolute;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);transform:translate3d(0,0,0);visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;-webkit-transition:.3s ease;-moz-transition:.3s ease;transition:.3s ease;-webkit-transition-delay:0s;-moz-transition-delay:0s;transition-delay:0s}[data-hint]:hover:after,[data-hint]:hover:before{visibility:visible;opacity:1;-webkit-transition-delay:.1s;-moz-transition-delay:.1s;transition-delay:.1s}[data-hint]:before{content:\'\';position:absolute;background:0 0;border:6px solid transparent;z-index:1000001}[data-hint]:after{content:attr(data-hint);background:#383838;color:#fff;padding:8px 10px;font-size:12px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;line-height:12px;white-space:nowrap}[data-hint=\'\']:after,[data-hint=\'\']:before{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#383838}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#383838}.hint--top:after,.hint--top:before{bottom:100%;left:50%}.hint--top:before{margin-bottom:-11px;left:calc(50% - 6px)}.hint--top:after{-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);transform:translateX(-50%)}.hint--top:focus:before,.hint--top:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--top:focus:after,.hint--top:hover:after{-webkit-transform:translateX(-50%) translateY(-8px);-moz-transform:translateX(-50%) translateY(-8px);transform:translateX(-50%) translateY(-8px)}.hint--bottom:after,.hint--bottom:before{top:100%;left:50%}.hint--bottom:before{margin-top:-11px;left:calc(50% - 6px)}.hint--bottom:after{-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);transform:translateX(-50%)}.hint--bottom:focus:before,.hint--bottom:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--bottom:focus:after,.hint--bottom:hover:after{-webkit-transform:translateX(-50%) translateY(8px);-moz-transform:translateX(-50%) translateY(8px);transform:translateX(-50%) translateY(8px)}.hint--right:before{border-right-color:#383838;margin-left:-11px;margin-bottom:-6px}.hint--right:after{margin-bottom:-14px}.hint--right:after,.hint--right:before{left:100%;bottom:50%}.hint--right:focus:after,.hint--right:focus:before,.hint--right:hover:after,.hint--right:hover:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)}.hint--left:before{border-left-color:#383838;margin-right:-11px;margin-bottom:-6px}.hint--left:after{margin-bottom:-14px}.hint--left:after,.hint--left:before{right:100%;bottom:50%}.hint--left:focus:after,.hint--left:focus:before,.hint--left:hover:after,.hint--left:hover:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--top-left:after,.hint--top-left:before{bottom:100%;left:50%}.hint--top-left:before{margin-bottom:-11px;left:calc(50% - 6px)}.hint--top-left:after{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);transform:translateX(-100%);margin-left:12px}.hint--top-left:focus:before,.hint--top-left:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--top-left:focus:after,.hint--top-left:hover:after{-webkit-transform:translateX(-100%) translateY(-8px);-moz-transform:translateX(-100%) translateY(-8px);transform:translateX(-100%) translateY(-8px)}.hint--top-right:after,.hint--top-right:before{bottom:100%;left:50%}.hint--top-right:before{margin-bottom:-11px;left:calc(50% - 6px)}.hint--top-right:after{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0);margin-left:-12px}.hint--top-right:focus:after,.hint--top-right:focus:before,.hint--top-right:hover:after,.hint--top-right:hover:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--bottom-left:after,.hint--bottom-left:before{top:100%;left:50%}.hint--bottom-left:before{margin-top:-11px;left:calc(50% - 6px)}.hint--bottom-left:after{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);transform:translateX(-100%);margin-left:12px}.hint--bottom-left:focus:before,.hint--bottom-left:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--bottom-left:focus:after,.hint--bottom-left:hover:after{-webkit-transform:translateX(-100%) translateY(8px);-moz-transform:translateX(-100%) translateY(8px);transform:translateX(-100%) translateY(8px)}.hint--bottom-right:after,.hint--bottom-right:before{top:100%;left:50%}.hint--bottom-right:before{margin-top:-11px;left:calc(50% - 6px)}.hint--bottom-right:after{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0);margin-left:-12px}.hint--bottom-right:focus:after,.hint--bottom-right:focus:before,.hint--bottom-right:hover:after,.hint--bottom-right:hover:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--large:after,.hint--medium:after,.hint--small:after{white-space:normal;line-height:1.4em}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--top:after{-webkit-transform:translateX(-50%) translateY(-8px);-moz-transform:translateX(-50%) translateY(-8px);transform:translateX(-50%) translateY(-8px)}.hint--always.hint--top-left:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--top-left:after{-webkit-transform:translateX(-100%) translateY(-8px);-moz-transform:translateX(-100%) translateY(-8px);transform:translateX(-100%) translateY(-8px)}.hint--always.hint--top-right:after,.hint--always.hint--top-right:before{-webkit-transform:translateY(-8px);-moz-transform:translateY(-8px);transform:translateY(-8px)}.hint--always.hint--bottom:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--bottom:after{-webkit-transform:translateX(-50%) translateY(8px);-moz-transform:translateX(-50%) translateY(8px);transform:translateX(-50%) translateY(8px)}.hint--always.hint--bottom-left:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--bottom-left:after{-webkit-transform:translateX(-100%) translateY(8px);-moz-transform:translateX(-100%) translateY(8px);transform:translateX(-100%) translateY(8px)}.hint--always.hint--bottom-right:after,.hint--always.hint--bottom-right:before{-webkit-transform:translateY(8px);-moz-transform:translateY(8px);transform:translateY(8px)}.hint--always.hint--left:after,.hint--always.hint--left:before{-webkit-transform:translateX(-8px);-moz-transform:translateX(-8px);transform:translateX(-8px)}.hint--always.hint--right:after,.hint--always.hint--right:before{-webkit-transform:translateX(8px);-moz-transform:translateX(8px);transform:translateX(8px)}.dk-select,.dk-select *,.dk-select :after,.dk-select :before,.dk-select-multi,.dk-select-multi *,.dk-select-multi :after,.dk-select-multi :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.dk-select,.dk-select-multi{position:relative;display:inline-block;vertical-align:middle;line-height:1.5em;width:200px;cursor:pointer}.dk-selected{width:100%;white-space:nowrap;overflow:hidden;position:relative;background-color:#fff;border:1px solid #CCC;border-radius:.4em;padding:0 1.5em 0 .5em;-o-text-overflow:ellipsis;text-overflow:ellipsis}.dk-selected:after,.dk-selected:before{content:\'\';display:block;position:absolute;right:0}.dk-selected:before{top:50%;border:solid transparent;border-width:.25em .25em 0;border-top-color:#CCC;margin:-.125em .5em 0 0}.dk-selected:after{top:0;height:100%;border-left:1px solid #CCC;margin:0 1.5em 0 0}.dk-selected-disabled{color:#BBB}.dk-select .dk-select-options{position:absolute;display:none;left:0;right:0}.dk-select-open-up .dk-select-options{border-radius:.4em .4em 0 0;margin-bottom:-1px;bottom:100%}.dk-select-open-down .dk-select-options{border-radius:0 0 .4em .4em;margin-top:-1px;top:100%}.dk-select-multi .dk-select-options{max-height:10em}.dk-select-options{background-color:#fff;border:1px solid #CCC;border-radius:.4em;list-style:none;margin:0;max-height:10.5em;min-width:100%;overflow-x:hidden;overflow-y:auto;padding:.25em 0;width:auto;z-index:100}.dk-optgroup,.dk-optgroup+.dk-option{margin-top:.25em}.dk-option-selected{background-color:#3297fd;color:#fff}.dk-select-options-highlight .dk-option-selected{background-color:transparent;color:inherit}.dk-option{padding:0 .5em}.dk-select-options .dk-option-highlight{background-color:#3297fd;color:#fff}.dk-select-options .dk-option-disabled{color:#BBB;background-color:transparent}.dk-optgroup{border:solid #CCC;border-width:1px 0;padding:.25em 0}.dk-select-open-down .dk-selected:after,.dk-select-open-up .dk-selected:after,.dk-selected:focus:after,.dk-selected:hover:after{border-left-color:#3297fd}.dk-optgroup+.dk-optgroup{border-top-width:0;margin-top:0}.dk-optgroup:nth-child(2){padding-top:0;border-top:none;margin-top:0}.dk-optgroup:last-child{border-bottom-width:0;margin-bottom:0;padding-bottom:0}.dk-optgroup-label{padding:0 .5em .25em;font-weight:700;width:100%}.dk-optgroup-options{list-style:none;padding-left:0}.dk-optgroup-options li{padding-left:1.2em}.dk-select-open-up .dk-selected{border-top-left-radius:0;border-top-right-radius:0;border-color:#3297fd}.dk-select-open-down .dk-selected{border-bottom-left-radius:0;border-bottom-right-radius:0;border-color:#3297fd}.dk-select-open-down .dk-selected:before,.dk-select-open-up .dk-selected:before{border-width:0 .25em .25em;border-bottom-color:#3297fd}.dk-select-multi:focus .dk-select-options,.dk-select-open-down .dk-select-options,.dk-select-open-up .dk-select-options{display:block;border-color:#3297fd}.dk-select-multi:focus,.dk-select-multi:hover{outline:0}.dk-selected:focus,.dk-selected:hover{outline:0;border-color:#3297fd}.dk-selected:focus:before,.dk-selected:hover:before{border-top-color:#3297fd}.dk-select-disabled{opacity:.6;color:#BBB;cursor:not-allowed}.dk-select-disabled .dk-selected:focus,.dk-select-disabled .dk-selected:hover{border-color:inherit}.dk-select-disabled .dk-selected:focus:before,.dk-select-disabled .dk-selected:hover:before{border-top-color:inherit}.dk-select-disabled .dk-selected:focus:after,.dk-select-disabled .dk-selected:hover:after{border-left-color:inherit}select[data-dkcacheid]{display:none}redoc.loading{position:relative;display:block;min-height:350px}redoc.loading:after,redoc.loading:before{position:absolute;transition:all .6s ease-out;opacity:1}@keyframes rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}redoc.loading:before{font-family:Helvetica;content:"Loading";font-size:24px;text-align:center;padding-top:40px;color:#0033a0;font-weight:400;display:block;top:0;bottom:0;left:0;right:0;background-color:#fff;z-index:9999}redoc.loading:after{z-index:10000;background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="512" height="512" viewBox="0 0 512 512"><g></g><path d="M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661v0c-10.875 0-19.681-8.796-19.681-19.661v-96.635c0-10.885 8.806-19.661 19.681-19.661v0c10.844 0 19.682 8.776 19.682 19.661v96.635z" fill="#0033a0"/><path d="M275.682 460.615c0 10.865-8.837 19.682-19.682 19.682v0c-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681v0c10.844 0 19.682 8.796 19.682 19.682v96.604z" fill="#0033a0"/><path d="M147.978 236.339c10.885 0 19.681 8.755 19.681 19.641v0c0 10.885-8.796 19.702-19.681 19.702h-96.624c-10.864 0-19.661-8.817-19.661-19.702v0c0-10.885 8.796-19.641 19.661-19.641h96.624z" fill="#0033a0"/><path d="M460.615 236.339c10.865 0 19.682 8.755 19.682 19.641v0c0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702v0c0-10.885 8.837-19.641 19.722-19.641h96.584z" fill="#0033a0"/><path d="M193.546 165.703c7.69 7.66 7.68 20.142 0 27.822v0c-7.701 7.701-20.162 7.701-27.853 0.020l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863v0c7.68-7.68 20.121-7.68 27.822 0l68.342 68.342z" fill="#0033a0"/><path d="M414.597 386.775c7.7 7.68 7.7 20.163 0.021 27.863v0c-7.7 7.659-20.142 7.659-27.843-0.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863v0c7.68-7.7 20.163-7.7 27.842 0l68.291 68.322z" fill="#0033a0"/><path d="M165.694 318.464c7.69-7.7 20.153-7.7 27.853 0v0c7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-0.062v0c-7.68-7.68-7.68-20.122 0-27.801l68.311-68.322z" fill="#0033a0"/><path d="M386.775 97.362c7.7-7.68 20.142-7.68 27.822 0v0c7.7 7.68 7.7 20.183 0.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-0.020v0c-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z" fill="#0033a0"/></svg>\');animation:2s rotate linear infinite;width:50px;height:50px;content:"";left:50%;margin-left:-25px;background-size:cover;top:75px}redoc.loading-remove:after,redoc.loading-remove:before{opacity:0}');
|
||
})(function(a){"function"==typeof define&&define.amd?define([],a):"object"==typeof module&&module.exports&&"function"==typeof require?module.exports=a():a()});
|
||
//# sourceMappingURL=redoc.min.js.map
|