redoc/dist/redoc.min.js

1029 lines
1.6 MiB
JavaScript
Raw Normal View History

2016-02-22 16:27:45 +03:00
/*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);}
2016-04-30 23:18:29 +03:00
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,exports,t){(function(e){"use strict";function n(e){function t(e){var t=e[v];return t}function n(e){var t=e.data;t.target.addEventListener("readystatechange",function(){t.target.readyState===XMLHttpRequest.DONE&&(t.aborted||e.invoke())});var n=t.target[v];return n||(t.target[v]=e),a.apply(t.target,t.args),e}function r(){}function o(e){var t=e.data;return t.aborted=!0,i.apply(t.target,t.args)}var a=c.patchMethod(e.XMLHttpRequest.prototype,"send",function(){return function(e,t){var a=Zone.current,i={target:e,isPeriodic:!1,delay:null,args:t,aborted:!1};return a.scheduleMacroTask("XMLHttpRequest.send",r,i,n,o)}}),i=c.patchMethod(e.XMLHttpRequest.prototype,"abort",function(e){return function(e,n){var r=t(e);if(r&&"string"==typeof r.type){if(null==r.cancelFn)return;r.zone.cancelTask(r)}}})}t(1);var r=t(2),o=t(4),a=t(5),i=t(6),s=t(8),c=t(3),u="set",l="clear",p=["alert","prompt","confirm"],h="undefined"==typeof window?e:window;s.patchTimer(h,u,l,"Timeout"),s.patchTimer(h,u,l,"Interval"),s.patchTimer(h,u,l,"Immediate"),s.patchTimer(h,"request","cancelMacroTask","AnimationFrame"),s.patchTimer(h,"mozRequest","mozCancel","AnimationFrame"),s.patchTimer(h,"webkitRequest","webkitCancel","AnimationFrame");for(var f=0;f<p.length;f++){var d=p[f];c.patchMethod(h,d,function(e,t,n){return function(t,r){return Zone.current.run(e,h,r,n)}})}r.eventTargetPatch(h),i.propertyDescriptorPatch(h),c.patchClass("MutationObserver"),c.patchClass("WebKitMutationObserver"),c.patchClass("FileReader"),o.propertyPatch(),a.registerElementPatch(h),n(h);var v=c.zoneSymbol("xhrTask");h.navigator&&h.navigator.geolocation&&c.patchPrototype(h.navigator.geolocation,["getCurrentPosition","watchPosition"])}).call(exports,function(){return this}())},function(e,exports){(function(e){(function(e){function t(e){return"__zone_symbol__"+e}function n(){D||T||0!=b.length||(e[y]?e[y].resolve(0)[g](a):e[k](a,0))}function r(e){n(),b.push(e)}function o(e){var t=e&&e.rejection;t&&console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t),console.error(e)}function a(){if(!_){for(_=!0;b.length;){var e=b;b=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){o(r)}}}for(;w.length;){var a=w;w=[];for(var i=function(e){var t=a[e];try{t.zone.runGuarded(function(){throw t})}catch(n){o(n)}},t=0;t<a.length;t++)i(t)}_=!1,D=!1}}function i(e){return e&&e.then}function s(e){return e}function c(e){return M.reject(e)}function u(e,t){return function(n){l(e,t,n)}}function l(e,t,r){if(e[S]===O)if(r instanceof M&&r[S]!==O)p(r),l(e,r[S],r[E]);else if(i(r))r.then(u(e,t),u(e,!1));else{e[S]=t;var o=e[E];e[E]=r;for(var a=0;a<o.length;)h(e,o[a++],o[a++],o[a++],o[a++]);if(0==o.length&&t==Z){e[S]=C;try{throw new Error("Uncaught (in promise): "+r)}catch(s){var c=s;c.rejection=r,c.promise=e,c.zone=f.current,c.task=f.currentTask,w.push(c),n()}}}return e}function p(e){if(e[S]===C){e[S]=Z;for(var t=0;t<w.length;t++)if(e===w[t].promise){w.splice(t,1);break}}}function h(e,t,n,r,o){p(e);var a=e[S]?r||s:o||c;t.scheduleMicroTask(P,function(){try{l(n,!0,t.run(a,null,[e[E]]))}catch(r){l(n,!1,r)}})}var f=function(){function e(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,t)}return Object.defineProperty(e,"current",{get:function(){return m},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return T},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))
2016-01-25 00:27:39 +03:00
/*! *****************************************************************************
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) {
2016-03-15 17:20:16 +03:00
"use strict";
2016-01-25 00:27:39 +03:00
// 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();
}
2016-03-15 17:20:16 +03:00
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);
2016-01-25 00:27:39 +03:00
}
}
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-
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
2016-01-25 00:27:39 +03:00
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) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
2016-01-25 00:27:39 +03:00
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) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
2016-01-25 00:27:39 +03:00
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) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);
2016-01-25 00:27:39 +03:00
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) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
2016-01-25 00:27:39 +03:00
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) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (table) {
return this._key in table;
}
return false;
},
get: function (target) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (table) {
return table[this._key];
}
return undefined;
},
set: function (target, value) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ true);
2016-01-25 00:27:39 +03:00
table[this._key] = value;
return this;
},
delete: function (target) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
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 = {}));
2016-04-30 23:18:29 +03:00
!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var c="function"==typeof require&&require;if(!u&&c)return c(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var a=n[o]={exports:{}};t[o][0].call(a.exports,function(n){var r=t[o][1][n];return s(r?r:n)},a,a.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(t,n,r){(function(n){"use strict";function define(t,n,e){t[n]||Object[r](t,n,{writable:!0,configurable:!0,value:e})}if(t(289),t(2),t(3),n._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");n._babelPolyfill=!0;var r="defineProperty";define(String.prototype,"padLeft","".padStart),define(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&define(Array,t,Function.call.bind([][t]))})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2,289:289,3:3}],2:[function(t,n,r){n.exports=t(290)},{290:290}],3:[function(t,n,r){t(117),n.exports=t(23).RegExp.escape},{117:117,23:23}],4:[function(t,n,r){n.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],5:[function(t,n,r){var e=t(18);n.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},{18:18}],6:[function(t,n,r){var e=t(114)("unscopables"),i=Array.prototype;void 0==i[e]&&t(39)(i,e,{}),n.exports=function(t){i[e][t]=!0}},{114:114,39:39}],7:[function(t,n,r){n.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},{}],8:[function(t,n,r){var e=t(48);n.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},{48:48}],9:[function(t,n,r){"use strict";var e=t(108),i=t(104),o=t(107);n.exports=[].copyWithin||function copyWithin(t,n){var r=e(this),u=o(r.length),c=i(t,u),f=i(n,u),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?u:i(a,u))-f,u-c),l=1;for(c>f&&f+s>c&&(l=-1,f+=s-1,c+=s-1);s-- >0;)f in r?r[c]=r[f]:delete r[c],c+=l,f+=l;return r}},{104:104,107:107,108:108}],10:[function(t,n,r){"use strict";var e=t(108),i=t(104),o=t(107);n.exports=function fill(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),f=u>2?arguments[2]:void 0,a=void 0===f?r:i(f,r);a>c;)n[c++]=t;return n}},{104:104,107:107,108:108}],11:[function(t,n,r){var e=t(36);n.exports=function(t,n){var r=[];return e(t,!1,r.push,r,n),r}},{36:36}],12:[function(t,n,r){var e=t(106),i=t(107),o=t(104);n.exports=function(t){return function(n,r,u){var c,f=e(n),a=i(f.length),s=o(u,a);if(t&&r!=r){for(;a>s;)if(c=f[s++],c!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s;return!t&&-1}}},{104:104,106:106,107:107}],13:[function(t,n,r){var e=t(24),i=t(44),o=t(108),u=t(107),c=t(15);n.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var d,y,g=o(n),x=i(g),m=e(c,p,3),w=u(x.length),b=0,S=r?v(n,w):f?v(n,0):void 0;w>b;b++)if((h||b in x)&&(d=x[b],y=m(d,b,g),t))if(r)S[b]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:S.push(d)}else if(s)return!1;return l?-1:a||s?s:S}}},{107:107,108:108,15:15,24:24,44:44}],14:[function(t,n,r){var e=t(4),i=t(108),o=t(44),u=t(107);n.exports=function(t,n,r,c,f){e(n);var a=i(t),s=o(a),l=u(a.length),h=f?l-1:0,v=f?-1:1;if(2>r)for(;;){if(h in s){c=s[h],h+=v;break}if(h+=v,f?0>h:h>=l)throw TypeError("Reduce of empty array with no initial value")}for(;f?h>=0:l>h;h+=v)h in s&&(c=n(c,s[h],h,a));return c}},{107:107,108:108,4:4,44:44}],15:[function(t,n,r){var e=t(48),i=t(46),o=t(114)("species");n.exports=function(t,n){var r;return i(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)||(r=void 0),e(r)&&(r=r[o],null===r&&(r=void 0))),new(void 0===r?Array:r)
},lastIndexOf:function lastIndexOf(t){return st.apply(jt(this),arguments)},map:function map(t){return Ft(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function reduce(t){return lt.apply(jt(this),arguments)},reduceRight:function reduceRight(t){return ht.apply(jt(this),arguments)},reverse:function reverse(){for(var t,n=this,r=jt(n).length,e=Math.floor(r/2),i=0;e>i;)t=n[i],n[i++]=n[--r],n[r]=t;return n},some:function some(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function sort(t){return pt.call(jt(this),t)},subarray:function subarray(t,n){var r=jt(this),e=r.length,i=y(t,e);return new(N(r,r[bt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,d((void 0===n?e:y(n,e))-i))}},Gt=function slice(t,n){return kt(this,dt.call(jt(this),t,n))},Bt=function set(t){jt(this);var n=It(arguments[1],1),r=this.length,e=S(t),i=d(e.length),o=0;if(i+n>r)throw V(Ot);for(;i>o;)this[n+o]=e[o++]},Vt={entries:function entries(){return at.call(jt(this))},keys:function keys(){return ft.call(jt(this))},values:function values(){return ct.call(jt(this))}},zt=function(t,n){return b(t)&&t[_t]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Jt=function getOwnPropertyDescriptor(t,n){return zt(t,n=g(n,!0))?l(2,t[n]):B(t,n)},Kt=function defineProperty(t,n,r){return!(zt(t,n=g(n,!0))&&b(r)&&x(r,"value"))||x(r,"get")||x(r,"set")||r.configurable||x(r,"writable")&&!r.writable||x(r,"enumerable")&&!r.enumerable?G(t,n,r):(t[n]=r.value,t)};St||(W.f=Jt,D.f=Kt),u(u.S+u.F*!St,"Object",{getOwnPropertyDescriptor:Jt,defineProperty:Kt}),o(function(){yt.call({})})&&(yt=gt=function toString(){return vt.call(this)});var Yt=v({},Wt);v(Yt,Vt),h(Yt,xt,Vt.values),v(Yt,{slice:Gt,set:Bt,constructor:function(){},toString:yt,toLocaleString:Dt}),Tt(Yt,"buffer","b"),Tt(Yt,"byteOffset","o"),Tt(Yt,"byteLength","l"),Tt(Yt,"length","e"),G(Yt,mt,{get:function(){return this[_t]}}),n.exports=function(t,n,r,f){f=!!f;var a=t+(f?"Clamped":"")+"Array",l="Uint8Array"!=a,v="get"+t,p="set"+t,y=i[a],g=y||{},x=y&&O(y),m=!y||!c.ABV,S={},_=y&&y[X],P=function(t,r){var e=t._d;return e.v[v](r*n+e.o,Pt)},A=function(t,r,e){var i=t._d;f&&(e=(e=Math.round(e))<0?0:e>255?255:255&e),i.v[p](r*n+i.o,e,Pt)},M=function(t,n){G(t,n,{get:function(){return P(this,n)},set:function(t){return A(this,n,t)},enumerable:!0})};m?(y=r(function(t,r,e,i){s(t,y,a,"_d");var o,u,c,f,l=0,v=0;if(b(r)){if(!(r instanceof H||(f=w(r))==K||f==Y))return _t in r?Rt(y,r):Lt.call(y,r);o=r,v=It(e,n);var p=r.byteLength;if(void 0===i){if(p%n)throw V(Ot);if(u=p-v,0>u)throw V(Ot)}else if(u=d(i)*n,u+v>p)throw V(Ot);c=u/n}else c=Mt(r,!0),u=c*n,o=new H(u);for(h(t,"_d",{b:o,o:v,l:u,e:c,v:new Z(o)});c>l;)M(t,l++)}),_=y[X]=E(Yt),h(_,"constructor",y)):T(function(t){new y(null),new y(t)},!0)||(y=r(function(t,r,e,i){s(t,y,a);var o;return b(r)?r instanceof H||(o=w(r))==K||o==Y?void 0!==i?new g(r,It(e,n),i):void 0!==e?new g(r,It(e,n)):new g(r):_t in r?Rt(y,r):Lt.call(y,r):new g(Mt(r,l))}),Q(x!==Function.prototype?F(g).concat(F(x)):F(g),function(t){t in y||h(y,t,g[t])}),y[X]=_,e||(_.constructor=y));var I=_[xt],j=!!I&&("values"==I.name||void 0==I.name),N=Vt.values;h(y,wt,!0),h(_,_t,a),h(_,Et,!0),h(_,bt,y),(f?new y(1)[mt]==a:mt in _)||G(_,mt,{get:function(){return a}}),S[a]=y,u(u.G+u.W+u.F*(y!=g),S),u(u.S,a,{BYTES_PER_ELEMENT:n,from:Lt,of:Ct}),q in _||h(_,q,n),u(u.P,a,Wt),L(a),u(u.P+u.F*At,a,{set:Bt}),u(u.P+u.F*!j,a,Vt),u(u.P+u.F*(_.toString!=yt),a,{toString:yt}),u(u.P+u.F*o(function(){new y(1).slice()}),a,{slice:Gt}),u(u.P+u.F*(o(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!o(function(){_.toLocaleString.call([1,2])})),a,{toLocaleString:Dt}),R[a]=j?I:N,e||j||h(_,xt,N)}}else n.exports=function(){}},{10:10,104:104,105:105,107:107,108:108,109:109,111:111,112:112,113:113,114:114,115:115,116:116,12:12,128:128,13:13,17:17,24:24,27:27,31:31,33:33,37:37,38:38,39:39,45:45,47:47,48:48,53:53,55:55,57:57,65:65,66:66,69:69,7:7,71:71,73:73,84:84,85:85,88:88,9:9,90:90,94:94}],111:[function(t,n,r){"use strict";var e=t(37),i=t(27),o=t(57),u=t(112),c=t(39),f=t(85),a=t(33),s=t(7),l=t(105),h=t(107),v=t(71).f,p=t(66).
c(c.S,"Reflect",{set:set})},{31:31,38:38,48:48,66:66,69:69,73:73,8:8,84:84}],211:[function(t,n,r){var e=t(37),i=t(42),o=t(66).f,u=t(71).f,c=t(49),f=t(35),a=e.RegExp,s=a,l=a.prototype,h=/a/g,v=/a/g,p=new a(h)!==h;if(t(27)&&(!p||t(33)(function(){return v[t(114)("match")]=!1,a(h)!=h||a(v)==v||"/a/i"!=a(h,"i")}))){a=function RegExp(t,n){var r=this instanceof a,e=c(t),o=void 0===n;return!r&&e&&t.constructor===a&&o?t:i(p?new s(e&&!o?t.source:t,n):s((e=t instanceof a)?t.source:t,e&&o?f.call(t):n),r?this:l,a)};for(var d=(function(t){t in a||o(a,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})}),y=u(s),g=0;y.length>g;)d(y[g++]);l.constructor=a,a.prototype=l,t(86)(e,"RegExp",a)}t(90)("RegExp")},{114:114,27:27,33:33,35:35,37:37,42:42,49:49,66:66,71:71,86:86,90:90}],212:[function(t,n,r){t(27)&&"g"!=/./g.flags&&t(66).f(RegExp.prototype,"flags",{configurable:!0,get:t(35)})},{27:27,35:35,66:66}],213:[function(t,n,r){t(34)("match",1,function(t,n,r){return[function match(r){"use strict";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},{34:34}],214:[function(t,n,r){t(34)("replace",2,function(t,n,r){return[function replace(e,i){"use strict";var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},r]})},{34:34}],215:[function(t,n,r){t(34)("search",1,function(t,n,r){return[function search(r){"use strict";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},{34:34}],216:[function(t,n,r){t(34)("split",2,function(n,r,e){"use strict";var i=t(49),o=e,u=[].push,c="split",f="length",a="lastIndex";if("c"=="abbc"[c](/(b)*/)[1]||4!="test"[c](/(?:)/,-1)[f]||2!="ab"[c](/(?:ab)*/)[f]||4!="."[c](/(.?)(.?)/)[f]||"."[c](/()()/)[f]>1||""[c](/.?/)[f]){var s=void 0===/()??/.exec("")[1];e=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!i(t))return o.call(r,t,n);var e,c,l,h,v,p=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,g=void 0===n?4294967295:n>>>0,x=new RegExp(t.source,d+"g");for(s||(e=new RegExp("^"+x.source+"$(?!\\s)",d));(c=x.exec(r))&&(l=c.index+c[0][f],!(l>y&&(p.push(r.slice(y,c.index)),!s&&c[f]>1&&c[0].replace(e,function(){for(v=1;v<arguments[f]-2;v++)void 0===arguments[v]&&(c[v]=void 0)}),c[f]>1&&c.index<r[f]&&u.apply(p,c.slice(1)),h=c[0][f],y=l,p[f]>=g)));)x[a]===c.index&&x[a]++;return y===r[f]?!h&&x.test("")||p.push(""):p.push(r.slice(y)),p[f]>g?p.slice(0,g):p}}else"0"[c](void 0,0)[f]&&(e=function(t,n){return void 0===t&&0===n?[]:o.call(this,t,n)});return[function split(t,i){var o=n(this),u=void 0==t?void 0:t[r];return void 0!==u?u.call(t,o,i):e.call(String(o),t,i)},e]})},{34:34,49:49}],217:[function(t,n,r){"use strict";t(212);var e=t(8),i=t(35),o=t(27),u="toString",c=/./[u],f=function(n){t(86)(RegExp.prototype,u,n,!0)};t(33)(function(){return"/a/b"!=c.call({source:"a",flags:"b"})})?f(function toString(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):c.name!=u&&f(function toString(){return c.call(this)})},{212:212,27:27,33:33,35:35,8:8,86:86}],218:[function(t,n,r){"use strict";var e=t(19);n.exports=t(22)("Set",function(t){return function Set(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function add(t){return e.def(this,t=0===t?0:t,t)}},e)},{19:19,22:22}],219:[function(t,n,r){"use strict";t(98)("anchor",function(t){return function anchor(n){return t(this,"a","name",n)}})},{98:98}],220:[function(t,n,r){"use strict";t(98)("big",function(t){return function big(){return t(this,"big","","")}})},{98:98}],221:[function(t,n,r){"use strict";t(98)("blink",function(t){return function blink(){return t(this,"blink","","")}})},{98:98}],222:[function(t,n,r){"use strict";t(98)("bold",function(t){return function bold(){return t(this,"b","","")}})},{98:98}],223:[function(t,n,r){"use strict";var e=t(31),i=t(96)(!1);e(e.P,"String",{codePointAt:function codePointAt(t){return i(this,t)}})},{31:31,96:96}],224:[function(t,n,r){"use strict";var e=t(31),i=t(107),o=t(97),u="e
2016-03-15 00:42:27 +03:00
2016-04-30 23:18:29 +03:00
!function(e){function r(e,r,o){return 4===arguments.length?t.apply(this,arguments):void n(e,{declarative:!0,deps:r,declare:o})}function t(e,r,t,o){n(e,{declarative:!1,deps:r,executingRequire:t,execute:o})}function n(e,r){r.name=e,e in g||(g[e]=r),r.normalizedDeps=r.deps}function o(e,r){if(r[e.groupIndex]=r[e.groupIndex]||[],-1==m.call(r[e.groupIndex],e)){r[e.groupIndex].push(e);for(var t=0,n=e.normalizedDeps.length;n>t;t++){var a=e.normalizedDeps[t],u=g[a];if(u&&!u.evaluated){var d=e.groupIndex+(u.declarative!=e.declarative);if(void 0===u.groupIndex||u.groupIndex<d){if(void 0!==u.groupIndex&&(r[u.groupIndex].splice(m.call(r[u.groupIndex],u),1),0==r[u.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");u.groupIndex=d}o(u,r)}}}}function a(e){var r=g[e];r.groupIndex=0;var t=[];o(r,t);for(var n=!!r.declarative==t.length%2,a=t.length-1;a>=0;a--){for(var u=t[a],i=0;i<u.length;i++){var s=u[i];n?d(s):l(s)}n=!n}}function u(e){return D[e]||(D[e]={name:e,dependencies:[],exports:{},importers:[]})}function d(r){if(!r.module){var t=r.module=u(r.name),n=r.module.exports,o=r.declare.call(e,function(e,r){if(t.locked=!0,"object"==typeof e)for(var o in e)n[o]=e[o];else n[e]=r;for(var a=0,u=t.importers.length;u>a;a++){var d=t.importers[a];if(!d.locked)for(var i=0;i<d.dependencies.length;++i)d.dependencies[i]===t&&d.setters[i](n)}return t.locked=!1,r},r.name);t.setters=o.setters,t.execute=o.execute;for(var a=0,i=r.normalizedDeps.length;i>a;a++){var l,s=r.normalizedDeps[a],c=g[s],f=D[s];f?l=f.exports:c&&!c.declarative?l=c.esModule:c?(d(c),f=c.module,l=f.exports):l=v(s),f&&f.importers?(f.importers.push(t),t.dependencies.push(f)):t.dependencies.push(null),t.setters[a]&&t.setters[a](l)}}}function i(e){var r,t=g[e];if(t)t.declarative?p(e,[]):t.evaluated||l(t),r=t.module.exports;else if(r=v(e),!r)throw new Error("Unable to load dependency "+e+".");return(!t||t.declarative)&&r&&r.__useDefault?r["default"]:r}function l(r){if(!r.module){var t={},n=r.module={exports:t,id:r.name};if(!r.executingRequire)for(var o=0,a=r.normalizedDeps.length;a>o;o++){var u=r.normalizedDeps[o],d=g[u];d&&l(d)}r.evaluated=!0;var c=r.execute.call(e,function(e){for(var t=0,n=r.deps.length;n>t;t++)if(r.deps[t]==e)return i(r.normalizedDeps[t]);throw new TypeError("Module "+e+" not declared as a dependency.")},t,n);c&&(n.exports=c),t=n.exports,t&&t.__esModule?r.esModule=t:r.esModule=s(t)}}function s(e){var r={};if("object"==typeof e||"function"==typeof e){var t=e&&e.hasOwnProperty;if(h)for(var n in e)f(r,e,n)||c(r,e,n,t);else for(var n in e)c(r,e,n,t)}return r["default"]=e,y(r,"__useDefault",{value:!0}),r}function c(e,r,t,n){(!n||r.hasOwnProperty(t))&&(e[t]=r[t])}function f(e,r,t){try{var n;return(n=Object.getOwnPropertyDescriptor(r,t))&&y(e,t,n),!0}catch(o){return!1}}function p(r,t){var n=g[r];if(n&&!n.evaluated&&n.declarative){t.push(r);for(var o=0,a=n.normalizedDeps.length;a>o;o++){var u=n.normalizedDeps[o];-1==m.call(t,u)&&(g[u]?p(u,t):v(u))}n.evaluated||(n.evaluated=!0,n.module.execute.call(e))}}function v(e){if(I[e])return I[e];if("@node/"==e.substr(0,6))return _(e.substr(6));var r=g[e];if(!r)throw"Module "+e+" not present.";return a(e),p(e,[]),g[e]=void 0,r.declarative&&y(r.module.exports,"__esModule",{value:!0}),I[e]=r.declarative?r.module.exports:r.esModule}var g={},m=Array.prototype.indexOf||function(e){for(var r=0,t=this.length;t>r;r++)if(this[r]===e)return r;return-1},h=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(x){h=!1}var y;!function(){try{Object.defineProperty({},"a",{})&&(y=Object.defineProperty)}catch(e){y=function(e,r,t){try{e[r]=t.value||t.get.call(e)}catch(n){}}}}();var D={},_="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,I={"@empty":{}};return function(e,n,o){return function(a){a(function(a){for(var u={_nodeRequire:_,register:r,registerDynamic:t,get:v,set:function(e,r){I[e]=r},newModule:function(e){return e}},d=0;d<n.length;d++)(function(e,r){r&&r.__esModule?I[e]=r:I[e]=s(r)})(n[d],arguments[d]);o(u);var i=v(e[0]);if(e.length>1)for(var d
directives:[Method],pipes:[EncodeURIComponentPipe]})(MethodsList)||MethodsList}(BaseComponent),_export("default",MethodsList)}}}),$__System.register("1d",["9","16","a","1e"],function(_export){var _createClass,Directive,ElementRef,_classCallCheck,BrowserDomAdapter,StickySidebar;return{setters:[function(_){_createClass=_["default"]},function(_2){Directive=_2.Directive,ElementRef=_2.ElementRef},function(_a){_classCallCheck=_a["default"]},function(_e){BrowserDomAdapter=_e.BrowserDomAdapter}],execute:function(){"use strict";StickySidebar=function(){function StickySidebar(elementRef,dom){_classCallCheck(this,_StickySidebar),this.$element=elementRef.nativeElement,this.dom=dom,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%")}_createClass(StickySidebar,[{key:"bind",value:function(){var _this=this;this.cancelScrollBinding=this.dom.onAndCancel(this.scrollParent,"scroll",function(){_this.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 _StickySidebar=StickySidebar;return StickySidebar=Reflect.metadata("parameters",[[ElementRef],[BrowserDomAdapter]])(StickySidebar)||StickySidebar,StickySidebar=Directive({selector:"[sticky-sidebar]",inputs:["scrollParent","scrollYOffset"]})(StickySidebar)||StickySidebar}(),_export("default",StickySidebar)}}}),$__System.register("1f",[],function(){return{setters:[],execute:function(){}}}),$__System.register("20",["3","4","5","6","7","8","9","15","16","21","22","a","1e","b","1a","1d","1f"],function(_export){var detectScollParent,ApiInfo,RedocComponent,BaseComponent,OptionsManager,_get,_inherits,_createClass,redocEvents,ChangeDetectionStrategy,provide,enableProdMode,ElementRef,SchemaManager,SideMenu,_classCallCheck,BrowserDomAdapter,bootstrap,ApiLogo,MethodsList,StickySidebar,dom,_modeLocked,Redoc;return{setters:[function(_5){detectScollParent=_5["default"]},function(_8){ApiInfo=_8["default"]},function(_6){RedocComponent=_6.RedocComponent,BaseComponent=_6.BaseComponent},function(_10){OptionsManager=_10["default"]},function(_){_get=_["default"]},function(_2){_inherits=_2["default"]},function(_3){_createClass=_3["default"]},function(_11){redocEvents=_11.redocEvents},function(_4){ChangeDetectionStrategy=_4.ChangeDetectionStrategy,provide=_4.provide,enableProdMode=_4.enableProdMode,ElementRef=_4.ElementRef},function(_7){SchemaManager=_7["default"]},function(_9){SideMenu=_9["default"]},function(_a){_classCallCheck=_a["default"]},function(_e){BrowserDomAdapter=_e.BrowserDomAdapter,bootstrap=_e.bootstrap},function(_b){ApiLogo=_b["default"]},function(_a2){MethodsList=_a2["default"]},function(_d){StickySidebar=_d["default"]},function(_f){}],execute:function(){"use strict";dom=new BrowserDomAdapter,_modeLocked=!1,Redoc=function(_BaseComponent){function Redoc(schemaMgr,optionsMgr,elementRef){_classCallCheck(this,_Redoc),_get(Object.getPrototypeOf(_Redoc.prototype),"constructor",this).call(this,schemaMgr),this.element=elementRef.nativeElement,optionsMgr.parseOptions(this.element),optionsMgr.options.$scrollParent=detectScollParent(this.element),this.options=optionsMgr.options}_inherits(Redoc,_BaseComponent),_createClass(Redoc,null,[{key:"showLoadingAnimation",value:function(){var elem=dom.query("redoc");dom.addClass(ele
})(SchemaSample)||SchemaSample}(BaseComponent),_export("default",SchemaSample)}}}),$__System.registerDynamic("2c",["2d","2e","2f","30"],!0,function($__require,exports,module){var classof=$__require("2d"),ITERATOR=$__require("2e")("iterator"),Iterators=$__require("2f");return module.exports=$__require("30").isIterable=function(it){var O=Object(it);return void 0!==O[ITERATOR]||"@@iterator"in O||Iterators.hasOwnProperty(classof(O))},module.exports}),$__System.registerDynamic("31",["32","33","2c"],!0,function($__require,exports,module){return $__require("32"),$__require("33"),module.exports=$__require("2c"),module.exports}),$__System.registerDynamic("34",["31"],!0,function($__require,exports,module){return module.exports={"default":$__require("31"),__esModule:!0},module.exports}),$__System.registerDynamic("1b",["35","34"],!0,function($__require,exports,module){"use strict";var _getIterator=$__require("35")["default"],_isIterable=$__require("34")["default"];return exports["default"]=function(){function sliceIterator(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=_getIterator(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i["return"]&&_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr))return arr;if(_isIterable(Object(arr)))return sliceIterator(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),exports.__esModule=!0,module.exports}),$__System.register("15",["16"],function(_export){"use strict";var EventEmitter,bootsrEmmiter,langChanged,redocEvents;return{setters:[function(_){EventEmitter=_.EventEmitter}],execute:function(){bootsrEmmiter=new EventEmitter,langChanged=new EventEmitter,redocEvents={bootstrapped:bootsrEmmiter,samplesLanguageChanged:langChanged},_export("redocEvents",redocEvents)}}}),$__System.registerDynamic("36",["37","2b","38","39","3a"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},dom_adapter_1=$__require("37"),lang_1=$__require("2b"),collection_1=$__require("38"),event_manager_1=$__require("39"),di_1=$__require("3a"),modifierKeys=["alt","control","meta","shift"],modifierKeyGetters={alt:function(event){return event.altKey},control:function(event){return event.ctrlKey},meta:function(event){return event.metaKey},shift:function(event){return event.shiftKey}},KeyEventsPlugin=function(_super){function KeyEventsPlugin(){_super.call(this)}return __extends(KeyEventsPlugin,_super),KeyEventsPlugin.prototype.supports=function(eventName){return lang_1.isPresent(KeyEventsPlugin.parseEventName(eventName))},KeyEventsPlugin.prototype.addEventListener=function(element,eventName,handler){var parsedEvent=KeyEventsPlugin.parseEventName(eventName),outsideHandler=KeyEventsPlugin.eventCallback(element,collection_1.StringMapWrapper.get(parsedEvent,"fullKey"),handler,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return dom_adapter_1.DOM.onAndCancel(element,collection_1.StringMapWrapper.get(parsedEvent,"domEventName"),outsideHandler)})},KeyEventsPlugin.parseEventName=function(eventName){var parts=eventName.toLowerCase().split("."),domEventName=parts.shift();if(0===parts.length||!lang_1.StringWrapper.equals(domEventName,"keydown")&&!lang_
return callback()}),this.callbacks=[],this.eventClearFunctions.forEach(function(fn){return fn()}),this.eventClearFunctions=[],this.completed=!0},Animation.prototype.onComplete=function(callback){return this.completed?callback():this.callbacks.push(callback),this},Animation.prototype.parseDurationString=function(duration){var maxValue=0;if(null==duration||duration.length<2)return maxValue;if("ms"==duration.substring(duration.length-2)){var value=lang_1.NumberWrapper.parseInt(this.stripLetters(duration),10);value>maxValue&&(maxValue=value)}else if("s"==duration.substring(duration.length-1)){var ms=1e3*lang_1.NumberWrapper.parseFloat(this.stripLetters(duration)),value=math_1.Math.floor(ms);value>maxValue&&(maxValue=value)}return maxValue},Animation.prototype.stripLetters=function(str){return lang_1.StringWrapper.replaceAll(str,lang_1.RegExpWrapper.create("[^0-9]+$",""),"")},Animation}();return exports.Animation=Animation,module.exports}),$__System.registerDynamic("4a",["46","47"],!0,function($__require,exports,module){"use strict";var css_animation_options_1=$__require("46"),animation_1=$__require("47"),CssAnimationBuilder=function(){function CssAnimationBuilder(browserDetails){this.browserDetails=browserDetails,this.data=new css_animation_options_1.CssAnimationOptions}return CssAnimationBuilder.prototype.addAnimationClass=function(className){return this.data.animationClasses.push(className),this},CssAnimationBuilder.prototype.addClass=function(className){return this.data.classesToAdd.push(className),this},CssAnimationBuilder.prototype.removeClass=function(className){return this.data.classesToRemove.push(className),this},CssAnimationBuilder.prototype.setDuration=function(duration){return this.data.duration=duration,this},CssAnimationBuilder.prototype.setDelay=function(delay){return this.data.delay=delay,this},CssAnimationBuilder.prototype.setStyles=function(from,to){return this.setFromStyles(from).setToStyles(to)},CssAnimationBuilder.prototype.setFromStyles=function(from){return this.data.fromStyles=from,this},CssAnimationBuilder.prototype.setToStyles=function(to){return this.data.toStyles=to,this},CssAnimationBuilder.prototype.start=function(element){return new animation_1.Animation(element,this.data,this.browserDetails)},CssAnimationBuilder}();return exports.CssAnimationBuilder=CssAnimationBuilder,module.exports}),$__System.registerDynamic("48",["2b"],!0,function($__require,exports,module){"use strict";var lang_1=$__require("2b");return exports.Math=lang_1.global.Math,exports.NaN=typeof exports.NaN,module.exports}),$__System.registerDynamic("4b",["3a","48","37"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3a"),math_1=$__require("48"),dom_adapter_1=$__require("37"),BrowserDetails=function(){function BrowserDetails(){this.elapsedTimeIncludesDelay=!1,this.doesElapsedTimeIncludesDelay()}return BrowserDetails.prototype.doesElapsedTimeIncludesDelay=function(){var _this=this,div=dom_adapter_1.DOM.createElement("div");dom_adapter_1.DOM.setAttribute(div,"style","position: absolute; top: -9999px; left: -9999px; width: 1px;\n height: 1px; transition: all 1ms linear 1ms;"),this.raf(function(timestamp){dom_adapter_1.DOM.on(div,"transitionend",function(event){var elapsed=math_1.Math.round(1e3*event.elapsedTime);_this.elapsedTimeIncludesDelay=2==elapsed,dom_adapter_1.DOM.remove(div)}),dom_adapter_1.DOM.setStyle(div,"width","2px")},2)},BrowserDetails.prototype.raf=function(callback,frames){void 0===frames&&(frame
},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},lang_1=$__require("2b"),exceptions_1=$__require("41"),di_1=$__require("3a"),ng_zone_1=$__require("5a"),collection_1=$__require("38");exports.EVENT_MANAGER_PLUGINS=lang_1.CONST_EXPR(new di_1.OpaqueToken("EventManagerPlugins"));var EventManager=function(){function EventManager(plugins,_zone){var _this=this;this._zone=_zone,plugins.forEach(function(p){return p.manager=_this}),this._plugins=collection_1.ListWrapper.reversed(plugins)}return EventManager.prototype.addEventListener=function(element,eventName,handler){var plugin=this._findPluginFor(eventName);return plugin.addEventListener(element,eventName,handler)},EventManager.prototype.addGlobalEventListener=function(target,eventName,handler){var plugin=this._findPluginFor(eventName);return plugin.addGlobalEventListener(target,eventName,handler)},EventManager.prototype.getZone=function(){return this._zone},EventManager.prototype._findPluginFor=function(eventName){for(var plugins=this._plugins,i=0;i<plugins.length;i++){var plugin=plugins[i];if(plugin.supports(eventName))return plugin}throw new exceptions_1.BaseException("No event manager plugin found for event "+eventName)},EventManager=__decorate([di_1.Injectable(),__param(0,di_1.Inject(exports.EVENT_MANAGER_PLUGINS)),__metadata("design:paramtypes",[Array,ng_zone_1.NgZone])],EventManager)}();exports.EventManager=EventManager;var EventManagerPlugin=function(){function EventManagerPlugin(){}return EventManagerPlugin.prototype.supports=function(eventName){return!1},EventManagerPlugin.prototype.addEventListener=function(element,eventName,handler){throw"not implemented"},EventManagerPlugin.prototype.addGlobalEventListener=function(element,eventName,handler){throw"not implemented"},EventManagerPlugin}();return exports.EventManagerPlugin=EventManagerPlugin,module.exports}),$__System.registerDynamic("5b",["39","38"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},event_manager_1=$__require("39"),collection_1=$__require("38"),_eventNames={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},HammerGesturesPluginCommon=function(_super){function HammerGesturesPluginCommon(){_super.call(this)}return __extends(HammerGesturesPluginCommon,_super),HammerGesturesPluginCommon.prototype.supports=function(eventName){return eventName=eventName.toLowerCase(),collection_1.StringMapWrapper.contains(_eventNames,eventName)},HammerGesturesPluginCommon}(event_manager_1.EventManagerPlugin);return exports.HammerGesturesPluginCommon=HammerGesturesPluginCommon,module.exports}),$__System.registerDynamic("5c",["5b","2b","41","16"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,
this.destroyMethod=new compile_method_1.CompileMethod(this),this.viewType=getViewType(component,viewIndex),this.className="_View_"+component.type.name+viewIndex,this.classType=o.importType(new compile_metadata_1.CompileIdentifierMetadata({name:this.className})),this.viewFactory=o.variable(util_1.getViewFactoryName(component,viewIndex)),this.viewType===view_type_1.ViewType.COMPONENT||this.viewType===view_type_1.ViewType.HOST?this.componentView=this:this.componentView=this.declarationElement.view.componentView;var viewQueries=new compile_metadata_1.CompileTokenMap;if(this.viewType===view_type_1.ViewType.COMPONENT){var directiveInstance=o.THIS_EXPR.prop("context");collection_1.ListWrapper.forEachWithIndex(this.component.viewQueries,function(queryMeta,queryIndex){var propName="_viewQuery_"+queryMeta.selectors[0].name+"_"+queryIndex,queryList=compile_query_1.createQueryList(queryMeta,directiveInstance,propName,_this),query=new compile_query_1.CompileQuery(queryMeta,queryList,directiveInstance,_this);compile_query_1.addQueryToTokenMap(viewQueries,query)});var constructorViewQueryCount=0;this.component.type.diDeps.forEach(function(dep){if(lang_1.isPresent(dep.viewQuery)){var queryList=o.THIS_EXPR.prop("declarationAppElement").prop("componentConstructorViewQueries").key(o.literal(constructorViewQueryCount++)),query=new compile_query_1.CompileQuery(dep.viewQuery,queryList,null,_this);compile_query_1.addQueryToTokenMap(viewQueries,query)}})}this.viewQueries=viewQueries,templateVariableBindings.forEach(function(entry){_this.locals.set(entry[1],o.THIS_EXPR.prop("locals").key(o.literal(entry[0])))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return CompileView.prototype.callPipe=function(name,input,args){var compView=this.componentView,pipe=compView.purePipes.get(name);return lang_1.isBlank(pipe)&&(pipe=new compile_pipe_1.CompilePipe(compView,name),pipe.pure&&compView.purePipes.set(name,pipe),compView.pipes.push(pipe)),pipe.call(this,[input].concat(args))},CompileView.prototype.getLocal=function(name){if(name==constants_1.EventHandlerVars.event.name)return constants_1.EventHandlerVars.event;for(var currView=this,result=currView.locals.get(name);lang_1.isBlank(result)&&lang_1.isPresent(currView.declarationElement.view);)currView=currView.declarationElement.view,result=currView.locals.get(name);return lang_1.isPresent(result)?util_1.getPropertyInView(result,this,currView):null},CompileView.prototype.createLiteralArray=function(values){for(var proxyExpr=o.THIS_EXPR.prop("_arr_"+this.literalArrayCount++),proxyParams=[],proxyReturnEntries=[],i=0;i<values.length;i++){var paramName="p"+i;proxyParams.push(new o.FnParam(paramName)),proxyReturnEntries.push(o.variable(paramName))}return util_1.createPureProxy(o.fn(proxyParams,[new o.ReturnStatement(o.literalArr(proxyReturnEntries))]),values.length,proxyExpr,this),proxyExpr.callFn(values)},CompileView.prototype.createLiteralMap=function(entries){for(var proxyExpr=o.THIS_EXPR.prop("_map_"+this.literalMapCount++),proxyParams=[],proxyReturnEntries=[],values=[],i=0;i<entries.length;i++){var paramName="p"+i;proxyParams.push(new o.FnParam(paramName)),proxyReturnEntries.push([entries[i][0],o.variable(paramName)]),values.push(entries[i][1])}return util_1.createPureProxy(o.fn(proxyParams,[new o.ReturnStatement(o.literalMap(proxyReturnEntries))]),entries.length,proxyExpr,this),proxyExpr.callFn(values)},CompileView.prototype.afterNodes=function(){var _this=this;this.pipes.forEach(function(pipe){return pipe.create()}),this.viewQueries.values().forEach(function(queries){return queries.forEach(function(query){return query.afterChildren(_this.updateViewQueriesMethod)})})},CompileView}();return exports.CompileView=CompileView,module.exports}),$__System.registerDynamic("6e",["2b","38","61","6a","6b"],!0,function($__require,exports,module){"use strict";function createQueryValues(viewValues){return collection_1.ListWrapper.flatten(viewValues.values.map(function(entry){return entry instanceof ViewQueryValues?mapNestedViews(entry.view.declarationElement.appElement,entry.view,cre
collection_1.ListWrapper.addAll(stmts,view.detectChangesInInputsMethod.finish()),stmts.push(o.THIS_EXPR.callMethod("detectContentChildrenChanges",[constants_1.DetectChangesVars.throwOnChange]).toStmt());var afterContentStmts=view.updateContentQueriesMethod.finish().concat(view.afterContentLifecycleCallbacksMethod.finish());afterContentStmts.length>0&&stmts.push(new o.IfStmt(o.not(constants_1.DetectChangesVars.throwOnChange),afterContentStmts)),collection_1.ListWrapper.addAll(stmts,view.detectChangesRenderPropertiesMethod.finish()),stmts.push(o.THIS_EXPR.callMethod("detectViewChildrenChanges",[constants_1.DetectChangesVars.throwOnChange]).toStmt());var afterViewStmts=view.updateViewQueriesMethod.finish().concat(view.afterViewLifecycleCallbacksMethod.finish());afterViewStmts.length>0&&stmts.push(new o.IfStmt(o.not(constants_1.DetectChangesVars.throwOnChange),afterViewStmts));var varStmts=[],readVars=o.findReadVarNames(stmts);return collection_1.SetWrapper.has(readVars,constants_1.DetectChangesVars.changed.name)&&varStmts.push(constants_1.DetectChangesVars.changed.set(o.literal(!0)).toDeclStmt(o.BOOL_TYPE)),collection_1.SetWrapper.has(readVars,constants_1.DetectChangesVars.changes.name)&&varStmts.push(constants_1.DetectChangesVars.changes.set(o.NULL_EXPR).toDeclStmt(new o.MapType(o.importType(identifiers_1.Identifiers.SimpleChange)))),collection_1.SetWrapper.has(readVars,constants_1.DetectChangesVars.valUnwrapper.name)&&varStmts.push(constants_1.DetectChangesVars.valUnwrapper.set(o.importExpr(identifiers_1.Identifiers.ValueUnwrapper).instantiate([])).toDeclStmt(null,[o.StmtModifier.Final])),varStmts.concat(stmts)}function addReturnValuefNotEmpty(statements,value){return statements.length>0?statements.concat([new o.ReturnStatement(value)]):statements}function getContextType(view){var typeMeta=view.component.type;return typeMeta.isHost?o.DYNAMIC_TYPE:o.importType(typeMeta)}function getChangeDetectionMode(view){var mode;return mode=view.viewType===view_type_1.ViewType.COMPONENT?change_detection_1.isDefaultChangeDetectionStrategy(view.component.changeDetection)?change_detection_1.ChangeDetectionStrategy.CheckAlways:change_detection_1.ChangeDetectionStrategy.CheckOnce:change_detection_1.ChangeDetectionStrategy.CheckAlways}var lang_1=$__require("2b"),collection_1=$__require("38"),o=$__require("61"),identifiers_1=$__require("6a"),constants_1=$__require("6d"),change_detection_1=$__require("74"),compile_view_1=$__require("6c"),compile_element_1=$__require("71"),template_ast_1=$__require("72"),util_1=$__require("6b"),view_type_1=$__require("70"),view_1=$__require("66"),compile_metadata_1=$__require("60"),IMPLICIT_TEMPLATE_VAR="$implicit",CLASS_ATTR="class",STYLE_ATTR="style",parentRenderNodeVar=o.variable("parentRenderNode"),rootSelectorVar=o.variable("rootSelector"),ViewCompileDependency=function(){function ViewCompileDependency(comp,factoryPlaceholder){this.comp=comp,this.factoryPlaceholder=factoryPlaceholder}return ViewCompileDependency}();exports.ViewCompileDependency=ViewCompileDependency,exports.buildView=buildView,exports.finishView=finishView;var ViewBuilderVisitor=function(){function ViewBuilderVisitor(view,targetDependencies){this.view=view,this.targetDependencies=targetDependencies,this.nestedViewCount=0}return ViewBuilderVisitor.prototype._isRootNode=function(parent){return parent.view!==this.view},ViewBuilderVisitor.prototype._addRootNodeAndProject=function(node,ngContentIndex,parent){var vcAppEl=node instanceof compile_element_1.CompileElement&&node.hasViewContainer?node.appElement:null;this._isRootNode(parent)?this.view.viewType!==view_type_1.ViewType.COMPONENT&&this.view.rootNodesOrAppElements.push(lang_1.isPresent(vcAppEl)?vcAppEl:node.renderNode):lang_1.isPresent(parent.component)&&lang_1.isPresent(ngContentIndex)&&parent.addContentNode(ngContentIndex,lang_1.isPresent(vcAppEl)?vcAppEl:node.renderNode)},ViewBuilderVisitor.prototype._getParentRenderNode=function(parent){return this._isRootNode(parent)?this.view.viewType===view_type_1.ViewType.COMPONENT?parentRenderNodeVar:o.NULL_EXPR:lang_1.isPresent(parent.component
this._actionResultExprs.forEach(function(expr){resultExpr=resultExpr.and(expr)});var stmts=[markPathToRootStart.callMethod("markPathToRootAsCheckOnce",[]).toStmt()].concat(this._method.finish()).concat([new o.ReturnStatement(resultExpr)]);this.compileElement.view.eventHandlerMethods.push(new o.ClassMethod(this._methodName,[this._eventParam],stmts,o.BOOL_TYPE,[o.StmtModifier.Private]))},CompileEventListener.prototype.listenToRenderer=function(){var listenExpr,eventListener=o.THIS_EXPR.callMethod("eventHandler",[o.fn([this._eventParam],[new o.ReturnStatement(o.THIS_EXPR.callMethod(this._methodName,[constants_1.EventHandlerVars.event]))])]);listenExpr=lang_1.isPresent(this.eventTarget)?constants_1.ViewProperties.renderer.callMethod("listenGlobal",[o.literal(this.eventTarget),o.literal(this.eventName),eventListener]):constants_1.ViewProperties.renderer.callMethod("listen",[this.compileElement.renderNode,o.literal(this.eventName),eventListener]);var disposable=o.variable("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(disposable),this.compileElement.view.createMethod.addStmt(disposable.set(listenExpr).toDeclStmt(o.FUNCTION_TYPE,[o.StmtModifier.Private]))},CompileEventListener.prototype.listenToDirective=function(directiveInstance,observablePropName){var subscription=o.variable("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(subscription);var eventListener=o.THIS_EXPR.callMethod("eventHandler",[o.fn([this._eventParam],[o.THIS_EXPR.callMethod(this._methodName,[constants_1.EventHandlerVars.event]).toStmt()])]);this.compileElement.view.createMethod.addStmt(subscription.set(directiveInstance.prop(observablePropName).callMethod(o.BuiltinMethod.SubscribeObservable,[eventListener])).toDeclStmt(null,[o.StmtModifier.Final]))},CompileEventListener}();return exports.CompileEventListener=CompileEventListener,exports.collectEventListeners=collectEventListeners,exports.bindDirectiveOutputs=bindDirectiveOutputs,exports.bindRenderOutputs=bindRenderOutputs,module.exports}),$__System.registerDynamic("6d",["2b","60","74","66","70","61","6a"],!0,function($__require,exports,module){"use strict";function _enumExpression(classIdentifier,value){if(lang_1.isBlank(value))return o.NULL_EXPR;var name=lang_1.resolveEnumToken(classIdentifier.runtime,value);return o.importExpr(new compile_metadata_1.CompileIdentifierMetadata({name:classIdentifier.name+"."+name,moduleUrl:classIdentifier.moduleUrl,runtime:value}))}var lang_1=$__require("2b"),compile_metadata_1=$__require("60"),change_detection_1=$__require("74"),view_1=$__require("66"),view_type_1=$__require("70"),o=$__require("61"),identifiers_1=$__require("6a"),ViewTypeEnum=function(){function ViewTypeEnum(){}return ViewTypeEnum.fromValue=function(value){return _enumExpression(identifiers_1.Identifiers.ViewType,value)},ViewTypeEnum.HOST=ViewTypeEnum.fromValue(view_type_1.ViewType.HOST),ViewTypeEnum.COMPONENT=ViewTypeEnum.fromValue(view_type_1.ViewType.COMPONENT),ViewTypeEnum.EMBEDDED=ViewTypeEnum.fromValue(view_type_1.ViewType.EMBEDDED),ViewTypeEnum}();exports.ViewTypeEnum=ViewTypeEnum;var ViewEncapsulationEnum=function(){function ViewEncapsulationEnum(){}return ViewEncapsulationEnum.fromValue=function(value){return _enumExpression(identifiers_1.Identifiers.ViewEncapsulation,value)},ViewEncapsulationEnum.Emulated=ViewEncapsulationEnum.fromValue(view_1.ViewEncapsulation.Emulated),ViewEncapsulationEnum.Native=ViewEncapsulationEnum.fromValue(view_1.ViewEncapsulation.Native),ViewEncapsulationEnum.None=ViewEncapsulationEnum.fromValue(view_1.ViewEncapsulation.None),ViewEncapsulationEnum}();exports.ViewEncapsulationEnum=ViewEncapsulationEnum;var ChangeDetectorStateEnum=function(){function ChangeDetectorStateEnum(){}return ChangeDetectorStateEnum.fromValue=function(value){return _enumExpression(identifiers_1.Identifiers.ChangeDetectorState,value)},ChangeDetectorStateEnum.NeverChecked=ChangeDetectorStateEnum.fromValue(change_detection_1.ChangeDetectorState.NeverChecked),ChangeDetectorStateEnum.CheckedBefo
var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},collection_1=$__require("38"),lang_1=$__require("2b"),core_1=$__require("16"),console_1=$__require("82"),exceptions_1=$__require("41"),ast_1=$__require("83"),parser_1=$__require("84"),html_parser_1=$__require("85"),html_tags_1=$__require("86"),parse_util_1=$__require("80"),view_utils_1=$__require("87"),template_ast_1=$__require("72"),selector_1=$__require("88"),element_schema_registry_1=$__require("89"),template_preparser_1=$__require("8a"),style_url_resolver_1=$__require("68"),html_ast_1=$__require("8b"),util_1=$__require("63"),identifiers_1=$__require("6a"),provider_parser_1=$__require("7f"),BIND_NAME_REGEXP=/^(?:(?:(?:(bind-)|(var-)|(let-)|(ref-|#)|(on-)|(bindon-))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,TEMPLATE_ELEMENT="template",TEMPLATE_ATTR="template",TEMPLATE_ATTR_PREFIX="*",CLASS_ATTR="class",PROPERTY_PARTS_SEPARATOR=".",ATTRIBUTE_PREFIX="attr",CLASS_PREFIX="class",STYLE_PREFIX="style",TEXT_CSS_SELECTOR=selector_1.CssSelector.parse("*")[0];exports.TEMPLATE_TRANSFORMS=lang_1.CONST_EXPR(new core_1.OpaqueToken("TemplateTransforms"));var TemplateParseError=function(_super){function TemplateParseError(message,span,level){_super.call(this,span,message,level)}return __extends(TemplateParseError,_super),TemplateParseError}(parse_util_1.ParseError);exports.TemplateParseError=TemplateParseError;var TemplateParseResult=function(){function TemplateParseResult(templateAst,errors){this.templateAst=templateAst,this.errors=errors}return TemplateParseResult}();exports.TemplateParseResult=TemplateParseResult;var TemplateParser=function(){function TemplateParser(_exprParser,_schemaRegistry,_htmlParser,_console,transforms){this._exprParser=_exprParser,this._schemaRegistry=_schemaRegistry,this._htmlParser=_htmlParser,this._console=_console,this.transforms=transforms}return TemplateParser.prototype.parse=function(component,template,directives,pipes,templateUrl){var result=this.tryParse(component,template,directives,pipes,templateUrl),warnings=result.errors.filter(function(error){return error.level===parse_util_1.ParseErrorLevel.WARNING}),errors=result.errors.filter(function(error){return error.level===parse_util_1.ParseErrorLevel.FATAL});if(warnings.length>0&&this._console.warn("Template parse warnings:\n"+warnings.join("\n")),errors.length>0){var errorString=errors.join("\n");throw new exceptions_1.BaseException("Template parse errors:\n"+errorString)}return result.templateAst},TemplateParser.prototype.tryParse=function(component,template,directives,pipes,templateUrl){var result,htmlAstWithErrors=this._htmlParser.parse(template,templateUrl),errors=htmlAstWithErrors.errors;if(htmlAstWithErrors.rootNodes.length>0){var uniqDirectives=removeDuplicates(directives),uniqPipes=removeDuplicates(pipes),providerViewContext=new provider_parser_1.ProviderViewContext(component,htmlAstWithErrors.rootNodes[0].sourceSpan),parseVisitor=new TemplateParseVisitor(providerViewContext,uniqDirectives,uniqPipes,this._exprParser,this._schemaRegistry);result=html_ast_1.htmlVisitAll(parseVisitor,htmlAstWithErrors.rootNodes,EMPTY_ELEMENT_CONTEXT),errors=errors.concat(parseVisitor.errors).concat(providerViewContext.errors)}else result=[];return errors.length>0?new TemplateParseResult(result,errors):(lang_1.isPresent(this.transforms)&&this.transforms.forEach(function(transform){result=template_ast_1.templateVisitAll(transform,result)}),new TemplateParseResult(result,errors))},TemplateParser=__decorate([core_1
this.value=value,this.sourceSpan=sourceSpan}return HtmlAttrAst.prototype.visit=function(visitor,context){return visitor.visitAttr(this,context)},HtmlAttrAst}();exports.HtmlAttrAst=HtmlAttrAst;var HtmlElementAst=function(){function HtmlElementAst(name,attrs,children,sourceSpan,startSourceSpan,endSourceSpan){this.name=name,this.attrs=attrs,this.children=children,this.sourceSpan=sourceSpan,this.startSourceSpan=startSourceSpan,this.endSourceSpan=endSourceSpan}return HtmlElementAst.prototype.visit=function(visitor,context){return visitor.visitElement(this,context)},HtmlElementAst}();exports.HtmlElementAst=HtmlElementAst;var HtmlCommentAst=function(){function HtmlCommentAst(value,sourceSpan){this.value=value,this.sourceSpan=sourceSpan}return HtmlCommentAst.prototype.visit=function(visitor,context){return visitor.visitComment(this,context)},HtmlCommentAst}();return exports.HtmlCommentAst=HtmlCommentAst,exports.htmlVisitAll=htmlVisitAll,module.exports}),$__System.registerDynamic("8c",["2b","38","80","86"],!0,function($__require,exports,module){"use strict";function tokenizeHtml(sourceContent,sourceUrl,tokenizeExpansionForms){return void 0===tokenizeExpansionForms&&(tokenizeExpansionForms=!1),new _HtmlTokenizer(new parse_util_1.ParseSourceFile(sourceContent,sourceUrl),tokenizeExpansionForms).tokenize()}function unexpectedCharacterErrorMsg(charCode){var char=charCode===$EOF?"EOF":lang_1.StringWrapper.fromCharCode(charCode);return'Unexpected character "'+char+'"'}function unknownEntityErrorMsg(entitySrc){return'Unknown entity "'+entitySrc+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function isNotWhitespace(code){return!isWhitespace(code)||code===$EOF}function isWhitespace(code){return code>=$TAB&&$SPACE>=code||code===$NBSP}function isNameEnd(code){return isWhitespace(code)||code===$GT||code===$SLASH||code===$SQ||code===$DQ||code===$EQ}function isPrefixEnd(code){return($a>code||code>$z)&&($A>code||code>$Z)&&($0>code||code>$9)}function isDigitEntityEnd(code){return code==$SEMICOLON||code==$EOF||!isAsciiHexDigit(code)}function isNamedEntityEnd(code){return code==$SEMICOLON||code==$EOF||!isAsciiLetter(code)}function isSpecialFormStart(peek,nextPeek){return peek===$LBRACE&&nextPeek!=$LBRACE}function isAsciiLetter(code){return code>=$a&&$z>=code||code>=$A&&$Z>=code}function isAsciiHexDigit(code){return code>=$a&&$f>=code||code>=$A&&$F>=code||code>=$0&&$9>=code}function compareCharCodeCaseInsensitive(code1,code2){return toUpperCaseCharCode(code1)==toUpperCaseCharCode(code2)}function toUpperCaseCharCode(code){return code>=$a&&$z>=code?code-$a+$A:code}function mergeTextTokens(srcTokens){for(var lastDstToken,dstTokens=[],i=0;i<srcTokens.length;i++){var token=srcTokens[i];lang_1.isPresent(lastDstToken)&&lastDstToken.type==HtmlTokenType.TEXT&&token.type==HtmlTokenType.TEXT?(lastDstToken.parts[0]+=token.parts[0],lastDstToken.sourceSpan.end=token.sourceSpan.end):(lastDstToken=token,dstTokens.push(lastDstToken))}return dstTokens}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("2b"),collection_1=$__require("38"),parse_util_1=$__require("80"),html_tags_1=$__require("86");!function(HtmlTokenType){HtmlTokenType[HtmlTokenType.TAG_OPEN_START=0]="TAG_OPEN_START",HtmlTokenType[HtmlTokenType.TAG_OPEN_END=1]="TAG_OPEN_END",HtmlTokenType[HtmlTokenType.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",HtmlTokenType[HtmlTokenType.TAG_CLOSE=3]="TAG_CLOSE",HtmlTokenType[HtmlTokenType.TEXT=4]="TEXT",HtmlTokenType[HtmlTokenType.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",HtmlTokenType[HtmlTokenType.RAW_TEXT=6]="RAW_TEXT",HtmlTokenType[HtmlTokenType.COMMENT_START=7]="COMMENT_START",HtmlTokenType[HtmlTokenType.COMMENT_END=8]="COMMENT_END",HtmlTokenType[HtmlTokenType.CDATA_START=9]="CDATA_START",HtmlTokenType[HtmlTokenType.CDATA_END=10]="CDATA_END",HtmlTokenType[HtmlTokenType.ATTR_NAME=11]="ATTR_NAME",HtmlTokenType[HtmlTokenType.ATTR_VALUE=12]="ATTR_VALUE",HtmlTokenType[HtmlTokenType.DOC_TYPE=13]
html_tags_1.getHtmlTagDefinition(fullName).isVoid?this.errors.push(HtmlTreeError.create(fullName,endTagToken.sourceSpan,'Void elements do not have end tags "'+endTagToken.parts[1]+'"')):this._popElement(fullName)||this.errors.push(HtmlTreeError.create(fullName,endTagToken.sourceSpan,'Unexpected closing tag "'+endTagToken.parts[1]+'"'))},TreeBuilder.prototype._popElement=function(fullName){for(var stackIndex=this.elementStack.length-1;stackIndex>=0;stackIndex--){var el=this.elementStack[stackIndex];if(el.name==fullName)return collection_1.ListWrapper.splice(this.elementStack,stackIndex,this.elementStack.length-stackIndex),!0;if(!html_tags_1.getHtmlTagDefinition(el.name).closedByParent)return!1}return!1},TreeBuilder.prototype._consumeAttr=function(attrName){var fullName=html_tags_1.mergeNsAndName(attrName.parts[0],attrName.parts[1]),end=attrName.sourceSpan.end,value="";if(this.peek.type===html_lexer_1.HtmlTokenType.ATTR_VALUE){var valueToken=this._advance();value=valueToken.parts[0],end=valueToken.sourceSpan.end}return new html_ast_1.HtmlAttrAst(fullName,value,new parse_util_1.ParseSourceSpan(attrName.sourceSpan.start,end))},TreeBuilder.prototype._getParentElement=function(){return this.elementStack.length>0?collection_1.ListWrapper.last(this.elementStack):null},TreeBuilder.prototype._addToParent=function(node){var parent=this._getParentElement();lang_1.isPresent(parent)?parent.children.push(node):this.rootNodes.push(node)},TreeBuilder}();return module.exports}),$__System.registerDynamic("8a",["2b","86"],!0,function($__require,exports,module){"use strict";function preparseElement(ast){var selectAttr=null,hrefAttr=null,relAttr=null,nonBindable=!1,projectAs=null;ast.attrs.forEach(function(attr){var lcAttrName=attr.name.toLowerCase();lcAttrName==NG_CONTENT_SELECT_ATTR?selectAttr=attr.value:lcAttrName==LINK_STYLE_HREF_ATTR?hrefAttr=attr.value:lcAttrName==LINK_STYLE_REL_ATTR?relAttr=attr.value:attr.name==NG_NON_BINDABLE_ATTR?nonBindable=!0:attr.name==NG_PROJECT_AS&&attr.value.length>0&&(projectAs=attr.value)}),selectAttr=normalizeNgContentSelect(selectAttr);var nodeName=ast.name.toLowerCase(),type=PreparsedElementType.OTHER;return html_tags_1.splitNsName(nodeName)[1]==NG_CONTENT_ELEMENT?type=PreparsedElementType.NG_CONTENT:nodeName==STYLE_ELEMENT?type=PreparsedElementType.STYLE:nodeName==SCRIPT_ELEMENT?type=PreparsedElementType.SCRIPT:nodeName==LINK_ELEMENT&&relAttr==LINK_STYLE_REL_VALUE&&(type=PreparsedElementType.STYLESHEET),new PreparsedElement(type,selectAttr,hrefAttr,nonBindable,projectAs)}function normalizeNgContentSelect(selectAttr){return lang_1.isBlank(selectAttr)||0===selectAttr.length?"*":selectAttr}var lang_1=$__require("2b"),html_tags_1=$__require("86"),NG_CONTENT_SELECT_ATTR="select",NG_CONTENT_ELEMENT="ng-content",LINK_ELEMENT="link",LINK_STYLE_REL_ATTR="rel",LINK_STYLE_HREF_ATTR="href",LINK_STYLE_REL_VALUE="stylesheet",STYLE_ELEMENT="style",SCRIPT_ELEMENT="script",NG_NON_BINDABLE_ATTR="ngNonBindable",NG_PROJECT_AS="ngProjectAs";exports.preparseElement=preparseElement,function(PreparsedElementType){PreparsedElementType[PreparsedElementType.NG_CONTENT=0]="NG_CONTENT",PreparsedElementType[PreparsedElementType.STYLE=1]="STYLE",PreparsedElementType[PreparsedElementType.STYLESHEET=2]="STYLESHEET",PreparsedElementType[PreparsedElementType.SCRIPT=3]="SCRIPT",PreparsedElementType[PreparsedElementType.OTHER=4]="OTHER"}(exports.PreparsedElementType||(exports.PreparsedElementType={}));var PreparsedElementType=exports.PreparsedElementType,PreparsedElement=function(){function PreparsedElement(type,selectAttr,hrefAttr,nonBindable,projectAs){this.type=type,this.selectAttr=selectAttr,this.hrefAttr=hrefAttr,this.nonBindable=nonBindable,this.projectAs=projectAs}return PreparsedElement}();return exports.PreparsedElement=PreparsedElement,module.exports}),$__System.registerDynamic("8d",["60","2b","41","8e","40","67","68","3a","66","8b","85","8a"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.
})},RuntimeMetadataResolver=__decorate([di_2.Injectable(),__param(3,di_2.Optional()),__param(3,di_2.Inject(platform_directives_and_pipes_1.PLATFORM_DIRECTIVES)),__param(4,di_2.Optional()),__param(4,di_2.Inject(platform_directives_and_pipes_1.PLATFORM_PIPES)),__metadata("design:paramtypes",[directive_resolver_1.DirectiveResolver,pipe_resolver_1.PipeResolver,view_resolver_1.ViewResolver,Array,Array,reflector_reader_1.ReflectorReader])],RuntimeMetadataResolver)}();return exports.RuntimeMetadataResolver=RuntimeMetadataResolver,module.exports}),$__System.registerDynamic("88",["38","2b","41"],!0,function($__require,exports,module){"use strict";var collection_1=$__require("38"),lang_1=$__require("2b"),exceptions_1=$__require("41"),_EMPTY_ATTR_VALUE="",_SELECTOR_REGEXP=lang_1.RegExpWrapper.create("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)"),CssSelector=function(){function CssSelector(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return CssSelector.parse=function(selector){for(var match,results=[],_addResult=function(res,cssSel){cssSel.notSelectors.length>0&&lang_1.isBlank(cssSel.element)&&collection_1.ListWrapper.isEmpty(cssSel.classNames)&&collection_1.ListWrapper.isEmpty(cssSel.attrs)&&(cssSel.element="*"),res.push(cssSel)},cssSelector=new CssSelector,matcher=lang_1.RegExpWrapper.matcher(_SELECTOR_REGEXP,selector),current=cssSelector,inNot=!1;lang_1.isPresent(match=lang_1.RegExpMatcherWrapper.next(matcher));){if(lang_1.isPresent(match[1])){if(inNot)throw new exceptions_1.BaseException("Nesting :not is not allowed in a selector");inNot=!0,current=new CssSelector,cssSelector.notSelectors.push(current)}if(lang_1.isPresent(match[2])&&current.setElement(match[2]),lang_1.isPresent(match[3])&&current.addClassName(match[3]),lang_1.isPresent(match[4])&&current.addAttribute(match[4],match[5]),lang_1.isPresent(match[6])&&(inNot=!1,current=cssSelector),lang_1.isPresent(match[7])){if(inNot)throw new exceptions_1.BaseException("Multiple selectors in :not are not supported");_addResult(results,cssSelector),cssSelector=current=new CssSelector}}return _addResult(results,cssSelector),results},CssSelector.prototype.isElementSelector=function(){return lang_1.isPresent(this.element)&&collection_1.ListWrapper.isEmpty(this.classNames)&&collection_1.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},CssSelector.prototype.setElement=function(element){void 0===element&&(element=null),this.element=element},CssSelector.prototype.getMatchingElementTemplate=function(){for(var tagName=lang_1.isPresent(this.element)?this.element:"div",classAttr=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",attrs="",i=0;i<this.attrs.length;i+=2){var attrName=this.attrs[i],attrValue=""!==this.attrs[i+1]?'="'+this.attrs[i+1]+'"':"";attrs+=" "+attrName+attrValue}return"<"+tagName+classAttr+attrs+"></"+tagName+">"},CssSelector.prototype.addAttribute=function(name,value){void 0===value&&(value=_EMPTY_ATTR_VALUE),this.attrs.push(name),value=lang_1.isPresent(value)?value.toLowerCase():_EMPTY_ATTR_VALUE,this.attrs.push(value)},CssSelector.prototype.addClassName=function(name){this.classNames.push(name.toLowerCase())},CssSelector.prototype.toString=function(){var res="";if(lang_1.isPresent(this.element)&&(res+=this.element),lang_1.isPresent(this.classNames))for(var i=0;i<this.classNames.length;i++)res+="."+this.classNames[i];if(lang_1.isPresent(this.attrs))for(var i=0;i<this.attrs.length;){var attrName=this.attrs[i++],attrValue=this.attrs[i++];res+="["+attrName,attrValue.length>0&&(res+="="+attrValue),res+="]"}return this.notSelectors.forEach(function(notSelector){return res+=":not("+notSelector+")"}),res},CssSelector}();exports.CssSelector=CssSelector;var SelectorMatcher=function(){function SelectorMatcher(){this._elementMap=new collection_1.Map,this._elementPartialMap=new collection_1.Map,this._classMap=new collection_1.Map,this._classPartialMap=new collection_1.Map,this._attrValueMap=new collection_1.Map,this._attrValuePartialMap=new collection_1.Map,this._listContexts
var parts=util_1.splitAtColon(bindConfig,[bindConfig,bindConfig]);outputsMap[parts[0]]=parts[1]}),new CompileDirectiveMetadata({type:type,isComponent:lang_1.normalizeBool(isComponent),selector:selector,exportAs:exportAs,changeDetection:changeDetection,inputs:inputsMap,outputs:outputsMap,hostListeners:hostListeners,hostProperties:hostProperties,hostAttributes:hostAttributes,lifecycleHooks:lang_1.isPresent(lifecycleHooks)?lifecycleHooks:[],providers:providers,viewProviders:viewProviders,queries:queries,viewQueries:viewQueries,template:template})},Object.defineProperty(CompileDirectiveMetadata.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),CompileDirectiveMetadata.fromJson=function(data){return new CompileDirectiveMetadata({isComponent:data.isComponent,selector:data.selector,exportAs:data.exportAs,type:lang_1.isPresent(data.type)?CompileTypeMetadata.fromJson(data.type):data.type,changeDetection:lang_1.isPresent(data.changeDetection)?change_detection_1.CHANGE_DETECTION_STRATEGY_VALUES[data.changeDetection]:data.changeDetection,inputs:data.inputs,outputs:data.outputs,hostListeners:data.hostListeners,hostProperties:data.hostProperties,hostAttributes:data.hostAttributes,lifecycleHooks:data.lifecycleHooks.map(function(hookValue){return lifecycle_hooks_1.LIFECYCLE_HOOKS_VALUES[hookValue]}),template:lang_1.isPresent(data.template)?CompileTemplateMetadata.fromJson(data.template):data.template,providers:_arrayFromJson(data.providers,metadataFromJson),viewProviders:_arrayFromJson(data.viewProviders,metadataFromJson),queries:_arrayFromJson(data.queries,CompileQueryMetadata.fromJson),viewQueries:_arrayFromJson(data.viewQueries,CompileQueryMetadata.fromJson)})},CompileDirectiveMetadata.prototype.toJson=function(){return{"class":"Directive",isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,type:lang_1.isPresent(this.type)?this.type.toJson():this.type,changeDetection:lang_1.isPresent(this.changeDetection)?lang_1.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(hook){return lang_1.serializeEnum(hook)}),template:lang_1.isPresent(this.template)?this.template.toJson():this.template,providers:_arrayToJson(this.providers),viewProviders:_arrayToJson(this.viewProviders),queries:_arrayToJson(this.queries),viewQueries:_arrayToJson(this.viewQueries)}},CompileDirectiveMetadata}();exports.CompileDirectiveMetadata=CompileDirectiveMetadata,exports.createHostComponentMeta=createHostComponentMeta;var CompilePipeMetadata=function(){function CompilePipeMetadata(_a){var _b=void 0===_a?{}:_a,type=_b.type,name=_b.name,pure=_b.pure,lifecycleHooks=_b.lifecycleHooks;this.type=type,this.name=name,this.pure=lang_1.normalizeBool(pure),this.lifecycleHooks=_normalizeArray(lifecycleHooks)}return Object.defineProperty(CompilePipeMetadata.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),CompilePipeMetadata.fromJson=function(data){return new CompilePipeMetadata({type:lang_1.isPresent(data.type)?CompileTypeMetadata.fromJson(data.type):data.type,name:data.name,pure:data.pure})},CompilePipeMetadata.prototype.toJson=function(){return{"class":"Pipe",type:lang_1.isPresent(this.type)?this.type.toJson():null,name:this.name,pure:this.pure}},CompilePipeMetadata}();exports.CompilePipeMetadata=CompilePipeMetadata;var _COMPILE_METADATA_FROM_JSON={Directive:CompileDirectiveMetadata.fromJson,Pipe:CompilePipeMetadata.fromJson,Type:CompileTypeMetadata.fromJson,Provider:CompileProviderMetadata.fromJson,Identifier:CompileIdentifierMetadata.fromJson,Factory:CompileFactoryMetadata.fromJson};return module.exports}),$__System.registerDynamic("6a",["60","9f","a0","87","74","a1","a2","a3","a4","66","70","a5","a6","a7","63"],!0,function($__require,exports,module){"use strict";function identifierToken(identifier){return new compile_metadata_1.CompileTokenMetadata({identifier:identifier})}var compi
return void 0===type&&(type=null),new LiteralArrayExpr(values,type)}function literalMap(values,type){return void 0===type&&(type=null),new LiteralMapExpr(values,type)}function not(expr){return new NotExpr(expr)}function fn(params,body,type){return void 0===type&&(type=null),new FunctionExpr(params,body,type)}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("2b");!function(TypeModifier){TypeModifier[TypeModifier.Const=0]="Const"}(exports.TypeModifier||(exports.TypeModifier={}));var Type=(exports.TypeModifier,function(){function Type(modifiers){void 0===modifiers&&(modifiers=null),this.modifiers=modifiers,lang_1.isBlank(modifiers)&&(this.modifiers=[])}return Type.prototype.hasModifier=function(modifier){return-1!==this.modifiers.indexOf(modifier)},Type}());exports.Type=Type,function(BuiltinTypeName){BuiltinTypeName[BuiltinTypeName.Dynamic=0]="Dynamic",BuiltinTypeName[BuiltinTypeName.Bool=1]="Bool",BuiltinTypeName[BuiltinTypeName.String=2]="String",BuiltinTypeName[BuiltinTypeName.Int=3]="Int",BuiltinTypeName[BuiltinTypeName.Number=4]="Number",BuiltinTypeName[BuiltinTypeName.Function=5]="Function"}(exports.BuiltinTypeName||(exports.BuiltinTypeName={}));var BuiltinTypeName=exports.BuiltinTypeName,BuiltinType=function(_super){function BuiltinType(name,modifiers){void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.name=name}return __extends(BuiltinType,_super),BuiltinType.prototype.visitType=function(visitor,context){return visitor.visitBuiltintType(this,context)},BuiltinType}(Type);exports.BuiltinType=BuiltinType;var ExternalType=function(_super){function ExternalType(value,typeParams,modifiers){void 0===typeParams&&(typeParams=null),void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.value=value,this.typeParams=typeParams}return __extends(ExternalType,_super),ExternalType.prototype.visitType=function(visitor,context){return visitor.visitExternalType(this,context)},ExternalType}(Type);exports.ExternalType=ExternalType;var ArrayType=function(_super){function ArrayType(of,modifiers){void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.of=of}return __extends(ArrayType,_super),ArrayType.prototype.visitType=function(visitor,context){return visitor.visitArrayType(this,context)},ArrayType}(Type);exports.ArrayType=ArrayType;var MapType=function(_super){function MapType(valueType,modifiers){void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.valueType=valueType}return __extends(MapType,_super),MapType.prototype.visitType=function(visitor,context){return visitor.visitMapType(this,context)},MapType}(Type);exports.MapType=MapType,exports.DYNAMIC_TYPE=new BuiltinType(BuiltinTypeName.Dynamic),exports.BOOL_TYPE=new BuiltinType(BuiltinTypeName.Bool),exports.INT_TYPE=new BuiltinType(BuiltinTypeName.Int),exports.NUMBER_TYPE=new BuiltinType(BuiltinTypeName.Number),exports.STRING_TYPE=new BuiltinType(BuiltinTypeName.String),exports.FUNCTION_TYPE=new BuiltinType(BuiltinTypeName.Function),function(BinaryOperator){BinaryOperator[BinaryOperator.Equals=0]="Equals",BinaryOperator[BinaryOperator.NotEquals=1]="NotEquals",BinaryOperator[BinaryOperator.Identical=2]="Identical",BinaryOperator[BinaryOperator.NotIdentical=3]="NotIdentical",BinaryOperator[BinaryOperator.Minus=4]="Minus",BinaryOperator[BinaryOperator.Plus=5]="Plus",BinaryOperator[BinaryOperator.Divide=6]="Divide",BinaryOperator[BinaryOperator.Multiply=7]="Multiply",BinaryOperator[BinaryOperator.Modulo=8]="Modulo",BinaryOperator[BinaryOperator.And=9]="And",BinaryOperator[BinaryOperator.Or=10]="Or",BinaryOperator[BinaryOperator.Lower=11]="Lower",BinaryOperator[BinaryOperator.LowerEquals=12]="LowerEquals",BinaryOperator[BinaryOperator.Bigger=13]="Bigger",BinaryOperator[BinaryOperator.BiggerEquals=14]="BiggerEquals"}(exports.BinaryOperator||(exports.BinaryOperator={}));var BinaryOperator=exports.BinaryOperator,Expression=function(){function Expression(type){
this.parts=[]}return _EmittedLine}(),EmitterVisitorContext=function(){function EmitterVisitorContext(_exportedVars,_indent){this._exportedVars=_exportedVars,this._indent=_indent,this._classes=[],this._lines=[new _EmittedLine(_indent)]}return EmitterVisitorContext.createRoot=function(exportedVars){return new EmitterVisitorContext(exportedVars,0)},Object.defineProperty(EmitterVisitorContext.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),EmitterVisitorContext.prototype.isExportedVar=function(varName){return-1!==this._exportedVars.indexOf(varName)},EmitterVisitorContext.prototype.println=function(lastPart){void 0===lastPart&&(lastPart=""),this.print(lastPart,!0)},EmitterVisitorContext.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},EmitterVisitorContext.prototype.print=function(part,newLine){void 0===newLine&&(newLine=!1),part.length>0&&this._currentLine.parts.push(part),newLine&&this._lines.push(new _EmittedLine(this._indent))},EmitterVisitorContext.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},EmitterVisitorContext.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},EmitterVisitorContext.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},EmitterVisitorContext.prototype.pushClass=function(clazz){this._classes.push(clazz)},EmitterVisitorContext.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(EmitterVisitorContext.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),EmitterVisitorContext.prototype.toSource=function(){var lines=this._lines;return 0===lines[lines.length-1].parts.length&&(lines=lines.slice(0,lines.length-1)),lines.map(function(line){return line.parts.length>0?_createIndent(line.indent)+line.parts.join(""):""}).join("\n")},EmitterVisitorContext}();exports.EmitterVisitorContext=EmitterVisitorContext;var AbstractEmitterVisitor=function(){function AbstractEmitterVisitor(_escapeDollarInStrings){this._escapeDollarInStrings=_escapeDollarInStrings}return AbstractEmitterVisitor.prototype.visitExpressionStmt=function(stmt,ctx){return stmt.expr.visitExpression(this,ctx),ctx.println(";"),null},AbstractEmitterVisitor.prototype.visitReturnStmt=function(stmt,ctx){return ctx.print("return "),stmt.value.visitExpression(this,ctx),ctx.println(";"),null},AbstractEmitterVisitor.prototype.visitIfStmt=function(stmt,ctx){ctx.print("if ("),stmt.condition.visitExpression(this,ctx),ctx.print(") {");var hasElseCase=lang_1.isPresent(stmt.falseCase)&&stmt.falseCase.length>0;return stmt.trueCase.length<=1&&!hasElseCase?(ctx.print(" "),this.visitAllStatements(stmt.trueCase,ctx),ctx.removeEmptyLastLine(),ctx.print(" ")):(ctx.println(),ctx.incIndent(),this.visitAllStatements(stmt.trueCase,ctx),ctx.decIndent(),hasElseCase&&(ctx.println("} else {"),ctx.incIndent(),this.visitAllStatements(stmt.falseCase,ctx),ctx.decIndent())),ctx.println("}"),null},AbstractEmitterVisitor.prototype.visitThrowStmt=function(stmt,ctx){return ctx.print("throw "),stmt.error.visitExpression(this,ctx),ctx.println(";"),null},AbstractEmitterVisitor.prototype.visitCommentStmt=function(stmt,ctx){var lines=stmt.comment.split("\n");return lines.forEach(function(line){ctx.println("// "+line)}),null},AbstractEmitterVisitor.prototype.visitWriteVarExpr=function(expr,ctx){var lineWasEmpty=ctx.lineIsEmpty();return lineWasEmpty||ctx.print("("),ctx.print(expr.name+" = "),expr.value.visitExpression(this,ctx),lineWasEmpty||ctx.print(")"),null},AbstractEmitterVisitor.prototype.visitWriteKeyExpr=function(expr,ctx){var lineWasEmpty=ctx.lineIsEmpty();return lineWasEmpty||ctx.print("("),expr.receiver.visitExpression(this,ctx),ctx.print("["),expr.index.visitExpression(this,ctx),ctx.print("] = "),expr.value.visitExpression(this,ctx),lineWasEmpty||ctx.print(")"),null},AbstractEmitterVisitor.prototype.visitWritePropExpr=function(expr,ctx){var lineWasEmpty=ctx.lineIsEmpty();return
}},StatementInterpreter.prototype.visitReadPropExpr=function(ast,ctx){var result,receiver=ast.receiver.visitExpression(this,ctx);if(isDynamicInstance(receiver)){var di=receiver;result=di.props.has(ast.name)?di.props.get(ast.name):di.getters.has(ast.name)?di.getters.get(ast.name)():di.methods.has(ast.name)?di.methods.get(ast.name):reflection_1.reflector.getter(ast.name)(receiver)}else result=reflection_1.reflector.getter(ast.name)(receiver);return result},StatementInterpreter.prototype.visitReadKeyExpr=function(ast,ctx){var receiver=ast.receiver.visitExpression(this,ctx),prop=ast.index.visitExpression(this,ctx);return receiver[prop]},StatementInterpreter.prototype.visitLiteralArrayExpr=function(ast,ctx){return this.visitAllExpressions(ast.entries,ctx)},StatementInterpreter.prototype.visitLiteralMapExpr=function(ast,ctx){var _this=this,result={};return ast.entries.forEach(function(entry){return result[entry[0]]=entry[1].visitExpression(_this,ctx)}),result},StatementInterpreter.prototype.visitAllExpressions=function(expressions,ctx){var _this=this;return expressions.map(function(expr){return expr.visitExpression(_this,ctx)})},StatementInterpreter.prototype.visitAllStatements=function(statements,ctx){for(var i=0;i<statements.length;i++){var stmt=statements[i],val=stmt.visitStatement(this,ctx);if(val instanceof ReturnValue)return val}return null},StatementInterpreter}(),CATCH_ERROR_VAR="error",CATCH_STACK_VAR="stack";return module.exports}),$__System.registerDynamic("a0",["2b","38","70"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),collection_1=$__require("38"),view_type_1=$__require("70"),StaticNodeDebugInfo=function(){function StaticNodeDebugInfo(providerTokens,componentToken,refTokens){this.providerTokens=providerTokens,this.componentToken=componentToken,this.refTokens=refTokens}return StaticNodeDebugInfo=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Array,Object,Object])],StaticNodeDebugInfo)}();exports.StaticNodeDebugInfo=StaticNodeDebugInfo;var DebugContext=function(){function DebugContext(_view,_nodeIndex,_tplRow,_tplCol){this._view=_view,this._nodeIndex=_nodeIndex,this._tplRow=_tplRow,this._tplCol=_tplCol}return Object.defineProperty(DebugContext.prototype,"_staticNodeInfo",{get:function(){return lang_1.isPresent(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"component",{get:function(){var staticNodeInfo=this._staticNodeInfo;return lang_1.isPresent(staticNodeInfo)&&lang_1.isPresent(staticNodeInfo.componentToken)?this.injector.get(staticNodeInfo.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"componentRenderElement",{get:function(){for(var componentView=this._view;lang_1.isPresent(componentView.declarationAppElement)&&componentView.type!==view_type_1.ViewType.COMPONENT;)componentView=componentView.declarationAppElement.parentView;return lang_1.isPresent(componentView.declarationAppElement)?componentView.declarationAppElement.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"renderNode",{get:function(){return
},HtmlTagDefinition.prototype.isClosedByChild=function(name){return this.isVoid||lang_1.normalizeBool(this.closedByChildren[name.toLowerCase()])},HtmlTagDefinition}();exports.HtmlTagDefinition=HtmlTagDefinition;var TAG_DEFINITIONS={base:new HtmlTagDefinition({isVoid:!0}),meta:new HtmlTagDefinition({isVoid:!0}),area:new HtmlTagDefinition({isVoid:!0}),embed:new HtmlTagDefinition({isVoid:!0}),link:new HtmlTagDefinition({isVoid:!0}),img:new HtmlTagDefinition({isVoid:!0}),input:new HtmlTagDefinition({isVoid:!0}),param:new HtmlTagDefinition({isVoid:!0}),hr:new HtmlTagDefinition({isVoid:!0}),br:new HtmlTagDefinition({isVoid:!0}),source:new HtmlTagDefinition({isVoid:!0}),track:new HtmlTagDefinition({isVoid:!0}),wbr:new HtmlTagDefinition({isVoid:!0}),p:new HtmlTagDefinition({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 HtmlTagDefinition({closedByChildren:["tbody","tfoot"]}),tbody:new HtmlTagDefinition({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new HtmlTagDefinition({closedByChildren:["tbody"],closedByParent:!0}),tr:new HtmlTagDefinition({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new HtmlTagDefinition({closedByChildren:["td","th"],closedByParent:!0}),th:new HtmlTagDefinition({closedByChildren:["td","th"],closedByParent:!0}),col:new HtmlTagDefinition({requiredParents:["colgroup"],isVoid:!0}),svg:new HtmlTagDefinition({implicitNamespacePrefix:"svg"}),math:new HtmlTagDefinition({implicitNamespacePrefix:"math"}),li:new HtmlTagDefinition({closedByChildren:["li"],closedByParent:!0}),dt:new HtmlTagDefinition({closedByChildren:["dt","dd"]}),dd:new HtmlTagDefinition({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new HtmlTagDefinition({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new HtmlTagDefinition({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new HtmlTagDefinition({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new HtmlTagDefinition({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new HtmlTagDefinition({closedByChildren:["optgroup"],closedByParent:!0}),option:new HtmlTagDefinition({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new HtmlTagDefinition({ignoreFirstLf:!0}),listing:new HtmlTagDefinition({ignoreFirstLf:!0}),style:new HtmlTagDefinition({contentType:HtmlTagContentType.RAW_TEXT}),script:new HtmlTagDefinition({contentType:HtmlTagContentType.RAW_TEXT}),title:new HtmlTagDefinition({contentType:HtmlTagContentType.ESCAPABLE_RAW_TEXT}),textarea:new HtmlTagDefinition({contentType:HtmlTagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},DEFAULT_TAG_DEFINITION=new HtmlTagDefinition;exports.getHtmlTagDefinition=getHtmlTagDefinition;var NS_PREFIX_RE=/^@([^:]+):(.+)/g;return exports.splitNsName=splitNsName,exports.getNsPrefix=getNsPrefix,exports.mergeNsAndName=mergeNsAndName,module.exports}),$__System.registerDynamic("89",[],!0,function($__require,exports,module){"use strict";var ElementSchemaRegistry=function(){function ElementSchemaRegistry(){}return ElementSchemaRegistry.prototype.hasProperty=function(tagName,propName){return!0},ElementSchemaRegistry.prototype.getMappedPropName=function(propName){return propName},ElementSchemaRegistry}();return exports.ElementSchemaRegistry=ElementSchemaRegistry,module.exports}),$__System.registerDynamic("b5",["3a","2b","38","37","86","89"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,k
new ast_1.LiteralPrimitive(!0);if(this.next.isKeywordFalse())return this.advance(),new ast_1.LiteralPrimitive(!1);if(this.optionalCharacter(lexer_1.$LBRACKET)){var elements=this.parseExpressionList(lexer_1.$RBRACKET);return this.expectCharacter(lexer_1.$RBRACKET),new ast_1.LiteralArray(elements)}if(this.next.isCharacter(lexer_1.$LBRACE))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(_implicitReceiver,!1);if(this.next.isNumber()){var value=this.next.toNumber();return this.advance(),new ast_1.LiteralPrimitive(value)}if(this.next.isString()){var literalValue=this.next.toString();return this.advance(),new ast_1.LiteralPrimitive(literalValue)}throw this.index>=this.tokens.length?this.error("Unexpected end of expression: "+this.input):this.error("Unexpected token "+this.next),new exceptions_1.BaseException("Fell through all cases in parsePrimary")},_ParseAST.prototype.parseExpressionList=function(terminator){var result=[];if(!this.next.isCharacter(terminator))do result.push(this.parsePipe());while(this.optionalCharacter(lexer_1.$COMMA));return result},_ParseAST.prototype.parseLiteralMap=function(){var keys=[],values=[];if(this.expectCharacter(lexer_1.$LBRACE),!this.optionalCharacter(lexer_1.$RBRACE)){do{var key=this.expectIdentifierOrKeywordOrString();keys.push(key),this.expectCharacter(lexer_1.$COLON),values.push(this.parsePipe())}while(this.optionalCharacter(lexer_1.$COMMA));this.expectCharacter(lexer_1.$RBRACE)}return new ast_1.LiteralMap(keys,values)},_ParseAST.prototype.parseAccessMemberOrMethodCall=function(receiver,isSafe){void 0===isSafe&&(isSafe=!1);var id=this.expectIdentifierOrKeyword();if(this.optionalCharacter(lexer_1.$LPAREN)){var args=this.parseCallArguments();return this.expectCharacter(lexer_1.$RPAREN),isSafe?new ast_1.SafeMethodCall(receiver,id,args):new ast_1.MethodCall(receiver,id,args)}if(!isSafe){if(this.optionalOperator("=")){this.parseAction||this.error("Bindings cannot contain assignments");var value=this.parseConditional();return new ast_1.PropertyWrite(receiver,id,value)}return new ast_1.PropertyRead(receiver,id)}return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),null):new ast_1.SafePropertyRead(receiver,id)},_ParseAST.prototype.parseCallArguments=function(){if(this.next.isCharacter(lexer_1.$RPAREN))return[];var positionals=[];do positionals.push(this.parsePipe());while(this.optionalCharacter(lexer_1.$COMMA));return positionals},_ParseAST.prototype.parseBlockContent=function(){this.parseAction||this.error("Binding expression cannot contain chained expression");for(var exprs=[];this.index<this.tokens.length&&!this.next.isCharacter(lexer_1.$RBRACE);){var expr=this.parseExpression();if(exprs.push(expr),this.optionalCharacter(lexer_1.$SEMICOLON))for(;this.optionalCharacter(lexer_1.$SEMICOLON););}return 0==exprs.length?new ast_1.EmptyExpr:1==exprs.length?exprs[0]:new ast_1.Chain(exprs)},_ParseAST.prototype.expectTemplateBindingKey=function(){var result="",operatorFound=!1;do result+=this.expectIdentifierOrKeywordOrString(),operatorFound=this.optionalOperator("-"),operatorFound&&(result+="-");while(operatorFound);return result.toString()},_ParseAST.prototype.parseTemplateBindings=function(){for(var bindings=[],prefix=null,warnings=[];this.index<this.tokens.length;){var keyIsVar=this.peekKeywordLet();!keyIsVar&&this.peekDeprecatedKeywordVar()&&(keyIsVar=!0,warnings.push('"var" inside of expressions is deprecated. Use "let" instead!')),!keyIsVar&&this.peekDeprecatedOperatorHash()&&(keyIsVar=!0,warnings.push('"#" inside of expressions is deprecated. Use "let" instead!')),keyIsVar&&this.advance();var key=this.expectTemplateBindingKey();keyIsVar||(null==prefix?prefix=key:key=prefix+key[0].toUpperCase()+key.substring(1)),this.optionalCharacter(lexer_1.$COLON);var name=null,expression=null;if(keyIsVar)name=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==lexer_1.EOF&&!this.peekKeywordLet()&&!this.peekDeprecatedKeywordVar()&&!this.peekDeprecatedOperatorHash()){var start=t
return exports.BROWSER_APP_PROVIDERS=lang_1.CONST_EXPR([browser_common_2.BROWSER_APP_COMMON_PROVIDERS,compiler_1.COMPILER_PROVIDERS,new di_1.Provider(compiler_2.XHR,{useClass:xhr_impl_1.XHRImpl})]),exports.browserPlatform=browserPlatform,exports.bootstrap=bootstrap,module.exports}),$__System.register("6",["9","a","bc","1c","bd","2b","1e"],function(_export){var _createClass,_classCallCheck,_Set,_Array$from,_Object$assign,isFunction,isString,global,BrowserDomAdapter,defaults,OPTION_NAMES,OptionsManager;return{setters:[function(_){_createClass=_["default"]},function(_a){_classCallCheck=_a["default"]},function(_bc){_Set=_bc["default"]},function(_c){_Array$from=_c["default"]},function(_bd){_Object$assign=_bd["default"]},function(_b){isFunction=_b.isFunction,isString=_b.isString,global=_b.global},function(_e){BrowserDomAdapter=_e.BrowserDomAdapter}],execute:function(){"use strict";defaults={scrollYOffset:0,disableLazySchemas:!1,debugMode:global.redocDebugMode},OPTION_NAMES=new _Set(["scrollYOffset","disableLazySchemas","specUrl"]),OptionsManager=function(){function OptionsManager(){_classCallCheck(this,_OptionsManager),this._options=defaults,this.dom=new BrowserDomAdapter}_createClass(OptionsManager,[{key:"parseOptions",value:function(el){var parsedOpts=void 0,attributesMap=this.dom.attributeMap(el);parsedOpts={},_Array$from(attributesMap.keys()).map(function(k){return{attrName:k,name:k.replace(/-(.)/g,function(m,$1){return $1.toUpperCase()})}}).filter(function(option){return OPTION_NAMES.has(option.name)}).forEach(function(option){parsedOpts[option.name]=attributesMap.get(option.attrName)}),this.options=parsedOpts,this._normalizeOptions()}},{key:"_normalizeOptions",value:function(){var _this=this;isFunction(this._options.scrollYOffset)||(isFinite(this._options.scrollYOffset)?!function(){var numberOffset=parseFloat(_this._options.scrollYOffset);_this.options.scrollYOffset=function(){return numberOffset}}():!function(){var el=_this._options.scrollYOffset;el instanceof Node||(el=_this.dom.query(el)),el?_this._options.scrollYOffset=function(){return el.offsetTop+el.offsetHeight}:_this._options.scrollYOffset=function(){return 0}}()),isString(this._options.disableLazySchemas)&&(this._options.disableLazySchemas=!0)}},{key:"options",get:function(){return this._options},set:function(opts){this._options=_Object$assign(this._options,opts)}}]);var _OptionsManager=OptionsManager;return OptionsManager=Reflect.metadata("parameters",[[BrowserDomAdapter]])(OptionsManager)||OptionsManager}(),_export("default",OptionsManager)}}}),$__System.register("22",["5","6","7","8","9","15","16","56","a","1b","1c","1e","2b"],function(_export){var RedocComponent,BaseComponent,SchemaManager,OptionsManager,_get,_inherits,_createClass,redocEvents,ChangeDetectorRef,ChangeDetectionStrategy,ElementRef,document,_classCallCheck,_slicedToArray,_Array$from,BrowserDomAdapter,global,CHANGE,INVIEW_POSITION,SideMenu;return{setters:[function(_6){RedocComponent=_6.RedocComponent,BaseComponent=_6.BaseComponent,SchemaManager=_6.SchemaManager},function(_8){OptionsManager=_8["default"]},function(_){_get=_["default"]},function(_2){_inherits=_2["default"]},function(_3){_createClass=_3["default"]},function(_7){redocEvents=_7.redocEvents},function(_4){ChangeDetectorRef=_4.ChangeDetectorRef,ChangeDetectionStrategy=_4.ChangeDetectionStrategy,ElementRef=_4.ElementRef},function(_5){document=_5.document},function(_a){_classCallCheck=_a["default"]},function(_b){_slicedToArray=_b["default"]},function(_c){_Array$from=_c["default"]},function(_e){BrowserDomAdapter=_e.BrowserDomAdapter},function(_b2){global=_b2.global}],execute:function(){"use strict";CHANGE={NEXT:1,BACK:-1,INITIAL:0},INVIEW_POSITION={ABOVE:1,BELLOW:-1,INVIEW:0},SideMenu=function(_BaseComponent){function SideMenu(schemaMgr,elementRef,dom,changeDetectorRef,optionsMgr){var _this=this;_classCallCheck(this,_SideMenu),_get(Object.getPrototypeOf(_SideMenu.prototype),"constructor",this).call(this,schemaMgr),this.$element=elementRef.nativeElement,this.changeDetector=changeDetectorRef,this.dom=dom,this.options=optionsMgr.options,thi
ref:mergeReference(scope,obj.$schema),key:"$schema",obj:obj,path:path.slice(0)});var idx;if(Array.isArray(obj))for(idx=obj.length;idx--;)path.push(idx.toString()),collectReferences(obj[idx],results,scope,path),path.pop();else{var keys=Object.keys(obj);for(idx=keys.length;idx--;)0!==keys[idx].indexOf("__$")&&(path.push(keys[idx]),collectReferences(obj[keys[idx]],results,scope,path),path.pop())}return"string"==typeof obj.id&&scope.pop(),results}function findId(arr,id){for(var idx=arr.length;idx--;)if(arr[idx].id===id)return arr[idx];return null}var Report=$__require("ee"),SchemaCache=$__require("ed"),Utils=$__require("f1"),compileArrayOfSchemasLoop=function(mainReport,arr){for(var idx=arr.length,compiledCount=0;idx--;){var report=new Report(mainReport),isValid=exports.compileSchema.call(this,report,arr[idx]);isValid&&compiledCount++,mainReport.errors=mainReport.errors.concat(report.errors)}return compiledCount},compileArrayOfSchemas=function(report,arr){var lastLoopCompiled,compiled=0;do{for(var idx=report.errors.length;idx--;)"UNRESOLVABLE_REFERENCE"===report.errors[idx].code&&report.errors.splice(idx,1);for(lastLoopCompiled=compiled,compiled=compileArrayOfSchemasLoop.call(this,report,arr),idx=arr.length;idx--;){var sch=arr[idx];if(sch.__$missingReferences){for(var idx2=sch.__$missingReferences.length;idx2--;){var refObj=sch.__$missingReferences[idx2],response=findId(arr,refObj.ref);response&&(refObj.obj["__"+refObj.key+"Resolved"]=response,sch.__$missingReferences.splice(idx2,1))}0===sch.__$missingReferences.length&&delete sch.__$missingReferences}}}while(compiled!==arr.length&&compiled!==lastLoopCompiled);return report.isValid()};return exports.compileSchema=function(report,schema){if(report.commonErrorMessage="SCHEMA_COMPILATION_FAILED","string"==typeof schema){var loadedSchema=SchemaCache.getSchemaByUri.call(this,report,schema);if(!loadedSchema)return report.addError("SCHEMA_NOT_REACHABLE",[schema]),!1;schema=loadedSchema}if(Array.isArray(schema))return compileArrayOfSchemas.call(this,report,schema);if(schema.__$compiled&&schema.id&&SchemaCache.checkCacheForUri.call(this,schema.id)===!1&&(schema.__$compiled=void 0),schema.__$compiled)return!0;schema.id&&"string"==typeof schema.id&&SchemaCache.cacheSchemaByUri.call(this,schema.id,schema);var isRoot=!1;report.rootSchema||(report.rootSchema=schema,isRoot=!0);var isValidExceptReferences=report.isValid();delete schema.__$missingReferences;for(var refs=collectReferences.call(this,schema),idx=refs.length;idx--;){var refObj=refs[idx],response=SchemaCache.getSchemaByUri.call(this,report,refObj.ref,schema);if(!response){var schemaReader=this.getSchemaReader();if(schemaReader){var s=schemaReader(refObj.ref);if(s){s.id=refObj.ref;var subreport=new Report(report);exports.compileSchema.call(this,subreport,s)?response=SchemaCache.getSchemaByUri.call(this,report,refObj.ref,schema):report.errors=report.errors.concat(subreport.errors)}}}if(!response){var hasNotValid=report.hasError("REMOTE_NOT_VALID",[refObj.ref]),isAbsolute=Utils.isAbsoluteUri(refObj.ref),isDownloaded=!1,ignoreUnresolvableRemotes=this.options.ignoreUnresolvableReferences===!0;isAbsolute&&(isDownloaded=SchemaCache.checkCacheForUri.call(this,refObj.ref)),hasNotValid||ignoreUnresolvableRemotes&&isAbsolute||isDownloaded||(Array.prototype.push.apply(report.path,refObj.path),report.addError("UNRESOLVABLE_REFERENCE",[refObj.ref]),report.path=report.path.slice(0,-refObj.path.length),isValidExceptReferences&&(schema.__$missingReferences=schema.__$missingReferences||[],schema.__$missingReferences.push(refObj)))}refObj.obj["__"+refObj.key+"Resolved"]=response}var isValid=report.isValid();return isValid?schema.__$compiled=!0:schema.id&&"string"==typeof schema.id&&SchemaCache.removeFromCacheByUri.call(this,schema.id),isRoot&&(report.rootSchema=void 0),isValid},module.exports}),$__System.registerDynamic("f2",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function toInt(str,radix){return(0,_assertString2["default"])(str),parseInt(str,rad
return obj&&obj.__esModule?obj:{"default":obj}}function isCreditCard(str){(0,_assertString2["default"])(str);var sanitized=str.replace(/[^0-9]+/g,"");if(!creditCard.test(sanitized))return!1;for(var sum=0,digit=void 0,tmpNum=void 0,shouldDouble=void 0,i=sanitized.length-1;i>=0;i--)digit=sanitized.substring(i,i+1),tmpNum=parseInt(digit,10),shouldDouble?(tmpNum*=2,sum+=tmpNum>=10?tmpNum%10+1:tmpNum):sum+=tmpNum,shouldDouble=!shouldDouble;return!!(sum%10===0?sanitized:!1)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isCreditCard;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),creditCard=/^(?: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 module.exports=exports["default"],module.exports}),$__System.registerDynamic("11e",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isISIN(str){if((0,_assertString2["default"])(str),!isin.test(str))return!1;for(var checksumStr=str.replace(/[A-Z]/g,function(character){return parseInt(character,36)}),sum=0,digit=void 0,tmpNum=void 0,shouldDouble=!0,i=checksumStr.length-2;i>=0;i--)digit=checksumStr.substring(i,i+1),tmpNum=parseInt(digit,10),shouldDouble?(tmpNum*=2,sum+=tmpNum>=10?tmpNum+1:tmpNum):sum+=tmpNum,shouldDouble=!shouldDouble;return parseInt(str.substr(str.length-1),10)===(1e4-sum)%10}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isISIN;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),isin=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("11f",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isISBN(str){var version=arguments.length<=1||void 0===arguments[1]?"":arguments[1];if((0,_assertString2["default"])(str),version=String(version),!version)return isISBN(str,10)||isISBN(str,13);var sanitized=str.replace(/[\s-]+/g,""),checksum=0,i=void 0;if("10"===version){if(!isbn10Maybe.test(sanitized))return!1;for(i=0;9>i;i++)checksum+=(i+1)*sanitized.charAt(i);if(checksum+="X"===sanitized.charAt(9)?100:10*sanitized.charAt(9),checksum%11===0)return!!sanitized}else if("13"===version){if(!isbn13Maybe.test(sanitized))return!1;for(i=0;12>i;i++)checksum+=factor[i%2]*sanitized.charAt(i);if(sanitized.charAt(12)-(10-checksum%10)%10===0)return!!sanitized}return!1}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isISBN;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),isbn10Maybe=/^(?:[0-9]{9}X|[0-9]{10})$/,isbn13Maybe=/^(?:[0-9]{13})$/,factor=[1,3];return module.exports=exports["default"],module.exports}),$__System.registerDynamic("120",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isMobilePhone(str,locale){return(0,_assertString2["default"])(str),locale in phones?phones[locale].test(str):!1}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isMobilePhone;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),phones={"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})|
},uniqueItems:function(report,schema,json){if(Array.isArray(json)&&schema.uniqueItems===!0){var matches=[];Utils.isUniqueArray(json,matches)===!1&&report.addError("ARRAY_UNIQUE",matches,null,schema.description)}},maxProperties:function(report,schema,json){if("object"===Utils.whatIs(json)){var keysCount=Object.keys(json).length;keysCount>schema.maxProperties&&report.addError("OBJECT_PROPERTIES_MAXIMUM",[keysCount,schema.maxProperties],null,schema.description)}},minProperties:function(report,schema,json){if("object"===Utils.whatIs(json)){var keysCount=Object.keys(json).length;keysCount<schema.minProperties&&report.addError("OBJECT_PROPERTIES_MINIMUM",[keysCount,schema.minProperties],null,schema.description)}},required:function(report,schema,json){if("object"===Utils.whatIs(json))for(var idx=schema.required.length;idx--;){var requiredPropertyName=schema.required[idx];void 0===json[requiredPropertyName]&&report.addError("OBJECT_MISSING_REQUIRED_PROPERTY",[requiredPropertyName],null,schema.description)}},additionalProperties:function(report,schema,json){return void 0===schema.properties&&void 0===schema.patternProperties?JsonValidators.properties.call(this,report,schema,json):void 0},patternProperties:function(report,schema,json){return void 0===schema.properties?JsonValidators.properties.call(this,report,schema,json):void 0},properties:function(report,schema,json){if("object"===Utils.whatIs(json)){var properties=void 0!==schema.properties?schema.properties:{},patternProperties=void 0!==schema.patternProperties?schema.patternProperties:{};if(schema.additionalProperties===!1){var s=Object.keys(json),p=Object.keys(properties),pp=Object.keys(patternProperties);s=Utils.difference(s,p);for(var idx=pp.length;idx--;)for(var regExp=RegExp(pp[idx]),idx2=s.length;idx2--;)regExp.test(s[idx2])===!0&&s.splice(idx2,1);if(s.length>0){var idx3=this.options.assumeAdditional.length;if(idx3)for(;idx3--;){var io=s.indexOf(this.options.assumeAdditional[idx3]);-1!==io&&s.splice(io,1)}s.length>0&&report.addError("OBJECT_ADDITIONAL_PROPERTIES",[s],null,schema.description)}}}},dependencies:function(report,schema,json){if("object"===Utils.whatIs(json))for(var keys=Object.keys(schema.dependencies),idx=keys.length;idx--;){var dependencyName=keys[idx];if(json[dependencyName]){var dependencyDefinition=schema.dependencies[dependencyName];if("object"===Utils.whatIs(dependencyDefinition))exports.validate.call(this,report,dependencyDefinition,json);else for(var idx2=dependencyDefinition.length;idx2--;){var requiredPropertyName=dependencyDefinition[idx2];void 0===json[requiredPropertyName]&&report.addError("OBJECT_DEPENDENCY_KEY",[requiredPropertyName,dependencyName],null,schema.description)}}}},"enum":function(report,schema,json){for(var match=!1,idx=schema["enum"].length;idx--;)if(Utils.areEqual(json,schema["enum"][idx])){match=!0;break}match===!1&&report.addError("ENUM_MISMATCH",[json],null,schema.description)},allOf:function(report,schema,json){for(var idx=schema.allOf.length;idx--;){var validateResult=exports.validate.call(this,report,schema.allOf[idx],json);if(this.options.breakOnFirstError&&validateResult===!1)break}},anyOf:function(report,schema,json){for(var subReports=[],passed=!1,idx=schema.anyOf.length;idx--&&passed===!1;){var subReport=new Report(report);subReports.push(subReport),passed=exports.validate.call(this,subReport,schema.anyOf[idx],json)}passed===!1&&report.addError("ANY_OF_MISSING",void 0,subReports,schema.description)},oneOf:function(report,schema,json){for(var passes=0,subReports=[],idx=schema.oneOf.length;idx--;){var subReport=new Report(report,{maxErrors:1});subReports.push(subReport),exports.validate.call(this,subReport,schema.oneOf[idx],json)===!0&&passes++}0===passes?report.addError("ONE_OF_MISSING",void 0,subReports,schema.description):passes>1&&report.addError("ONE_OF_MULTIPLE",null,null,schema.description)},not:function(report,schema,json){var subReport=new Report(report);exports.validate.call(this,subReport,schema.not,json)===!0&&report.addError("NOT_PASSED",null,null,schema.description)},definitions:function(){},format:func
},allOf:function(report,schema){if(Array.isArray(schema.allOf)===!1)report.addError("KEYWORD_TYPE_EXPECTED",["allOf","array"]);else if(0===schema.allOf.length)report.addError("KEYWORD_MUST_BE",["allOf","an array with at least one element"]);else for(var idx=schema.allOf.length;idx--;)report.path.push("allOf"),report.path.push(idx.toString()),exports.validateSchema.call(this,report,schema.allOf[idx]),report.path.pop(),report.path.pop()},anyOf:function(report,schema){if(Array.isArray(schema.anyOf)===!1)report.addError("KEYWORD_TYPE_EXPECTED",["anyOf","array"]);else if(0===schema.anyOf.length)report.addError("KEYWORD_MUST_BE",["anyOf","an array with at least one element"]);else for(var idx=schema.anyOf.length;idx--;)report.path.push("anyOf"),report.path.push(idx.toString()),exports.validateSchema.call(this,report,schema.anyOf[idx]),report.path.pop(),report.path.pop()},oneOf:function(report,schema){if(Array.isArray(schema.oneOf)===!1)report.addError("KEYWORD_TYPE_EXPECTED",["oneOf","array"]);else if(0===schema.oneOf.length)report.addError("KEYWORD_MUST_BE",["oneOf","an array with at least one element"]);else for(var idx=schema.oneOf.length;idx--;)report.path.push("oneOf"),report.path.push(idx.toString()),exports.validateSchema.call(this,report,schema.oneOf[idx]),report.path.pop(),report.path.pop()},not:function(report,schema){"object"!==Utils.whatIs(schema.not)?report.addError("KEYWORD_TYPE_EXPECTED",["not","object"]):(report.path.push("not"),exports.validateSchema.call(this,report,schema.not),report.path.pop())},definitions:function(report,schema){if("object"!==Utils.whatIs(schema.definitions))report.addError("KEYWORD_TYPE_EXPECTED",["definitions","object"]);else for(var keys=Object.keys(schema.definitions),idx=keys.length;idx--;){var key=keys[idx],val=schema.definitions[key];report.path.push("definitions"),report.path.push(key),exports.validateSchema.call(this,report,val),report.path.pop(),report.path.pop()}},format:function(report,schema){"string"!=typeof schema.format?report.addError("KEYWORD_TYPE_EXPECTED",["format","string"]):void 0===FormatValidators[schema.format]&&this.options.ignoreUnknownFormats!==!0&&report.addError("UNKNOWN_FORMAT",[schema.format])},id:function(report,schema){"string"!=typeof schema.id&&report.addError("KEYWORD_TYPE_EXPECTED",["id","string"])},title:function(report,schema){"string"!=typeof schema.title&&report.addError("KEYWORD_TYPE_EXPECTED",["title","string"])},description:function(report,schema){"string"!=typeof schema.description&&report.addError("KEYWORD_TYPE_EXPECTED",["description","string"])},"default":function(){}},validateArrayOfSchemas=function(report,arr){for(var idx=arr.length;idx--;)exports.validateSchema.call(this,report,arr[idx]);return report.isValid()};return exports.validateSchema=function(report,schema){if(report.commonErrorMessage="SCHEMA_VALIDATION_FAILED",Array.isArray(schema))return validateArrayOfSchemas.call(this,report,schema);if(schema.__$validated)return!0;var hasParentSchema=schema.$schema&&schema.id!==schema.$schema;if(hasParentSchema)if(schema.__$schemaResolved&&schema.__$schemaResolved!==schema){var subReport=new Report(report),valid=JsonValidation.validate.call(this,subReport,schema.__$schemaResolved,schema);valid===!1&&report.addError("PARENT_SCHEMA_VALIDATION_FAILED",null,subReport)}else this.options.ignoreUnresolvableReferences!==!0&&report.addError("REF_UNRESOLVED",[schema.$schema]);if(this.options.noTypeless===!0){if(void 0!==schema.type){var schemas=[];Array.isArray(schema.anyOf)&&(schemas=schemas.concat(schema.anyOf)),Array.isArray(schema.oneOf)&&(schemas=schemas.concat(schema.oneOf)),Array.isArray(schema.allOf)&&(schemas=schemas.concat(schema.allOf)),schemas.forEach(function(sch){sch.type||(sch.type=schema.type)})}void 0===schema["enum"]&&void 0===schema.type&&void 0===schema.anyOf&&void 0===schema.oneOf&&void 0===schema.not&&void 0===schema.$ref&&report.addError("KEYWORD_UNDEFINED_STRICT",["type"])}for(var keys=Object.keys(schema),idx=keys.length;idx--;){var key=keys[idx];0!==key.indexOf("__")&&(void 0!==SchemaValidators[key]?SchemaValidators[key].call
},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/collectionFor
}}();var Buffer=$__require("14c").Buffer,util=$__require("15f");util.inherits=$__require("158");var debugUtil=$__require("@empty"),debug=void 0;debug=debugUtil&&debugUtil.debuglog?debugUtil.debuglog("stream"):function(){};var StringDecoder;util.inherits(Readable,Stream);var Duplex,Duplex;Readable.prototype.push=function(chunk,encoding){var state=this._readableState;return state.objectMode||"string"!=typeof chunk||(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=new Buffer(chunk,encoding),encoding="")),readableAddChunk(this,state,chunk,encoding,!1)},Readable.prototype.unshift=function(chunk){var state=this._readableState;return readableAddChunk(this,state,chunk,"",!0)},Readable.prototype.isPaused=function(){return this._readableState.flowing===!1},Readable.prototype.setEncoding=function(enc){return StringDecoder||(StringDecoder=$__require("160").StringDecoder),this._readableState.decoder=new StringDecoder(enc),this._readableState.encoding=enc,this};var MAX_HWM=8388608;Readable.prototype.read=function(n){debug("read",n);var state=this._readableState,nOrig=n;if(("number"!=typeof n||n>0)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(0===state.length||state.length-n<state.highWaterMark)&&(doRead=!0,debug("length less than watermark",doRead)),(state.ended||state.reading)&&(doRead=!1,debug("reading or ended",doRead)),doRead&&(debug("do read"),state.reading=!0,state.sync=!0,0===state.length&&(state.needReadable=!0),this._read(state.highWaterMark),state.sync=!1),doRead&&!state.reading&&(n=howMuchToRead(nOrig,state));var ret;return ret=n>0?fromList(n,state):null,null===ret&&(state.needReadable=!0,n=0),state.length-=n,0!==state.length||state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&0===state.length&&endReadable(this),null!==ret&&this.emit("data",ret),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),cleanedUp=!0,!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain()}function ondata(chunk){debug("ondata");var ret=dest.write(chunk);!1===ret&&(1!==state.pipesCount||state.pipes[0]!==dest||1!==src.listenerCount("data")||cleanedUp||(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++),src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EElistenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?processNextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);var cleanedUp=!1;return src.on("data",ondata),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerr
}return module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified "error" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=new Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=new Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-- >0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var re
}module.exports=PassThrough;var Transform=$__require("176"),util=$__require("15f");return util.inherits=$__require("158"),util.inherits(PassThrough,Transform),PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)},module.exports}),$__System.registerDynamic("183",["177"],!0,function($__require,exports,module){return module.exports=$__require("177"),module.exports}),$__System.registerDynamic("178",["15e","158","172","179","17a","17b","183"],!0,function($__require,exports,module){function Stream(){EE.call(this)}module.exports=Stream;var EE=$__require("15e").EventEmitter,inherits=$__require("158");return inherits(Stream,EE),Stream.Readable=$__require("172"),Stream.Writable=$__require("179"),Stream.Duplex=$__require("17a"),Stream.Transform=$__require("17b"),Stream.PassThrough=$__require("183"),Stream.Stream=Stream,Stream.prototype.pipe=function(dest,options){function ondata(chunk){dest.writable&&!1===dest.write(chunk)&&source.pause&&source.pause()}function ondrain(){source.readable&&source.resume&&source.resume()}function onend(){didOnEnd||(didOnEnd=!0,dest.end())}function onclose(){didOnEnd||(didOnEnd=!0,"function"==typeof dest.destroy&&dest.destroy())}function onerror(er){if(cleanup(),0===EE.listenerCount(this,"error"))throw er}function cleanup(){source.removeListener("data",ondata),dest.removeListener("drain",ondrain),source.removeListener("end",onend),source.removeListener("close",onclose),source.removeListener("error",onerror),dest.removeListener("error",onerror),source.removeListener("end",cleanup),source.removeListener("close",cleanup),dest.removeListener("close",cleanup)}var source=this;source.on("data",ondata),dest.on("drain",ondrain),dest._isStdio||options&&options.end===!1||(source.on("end",onend),source.on("close",onclose));var didOnEnd=!1;return source.on("error",onerror),dest.on("error",onerror),source.on("end",cleanup),source.on("close",cleanup),dest.on("close",cleanup),dest.emit("pipe",source),dest},module.exports}),$__System.registerDynamic("184",["178"],!0,function($__require,exports,module){return module.exports=$__require("178"),module.exports}),$__System.registerDynamic("185",["184"],!0,function($__require,exports,module){return module.exports=$__System._nodeRequire?$__System._nodeRequire("stream"):$__require("184"),module.exports}),$__System.registerDynamic("186",["185"],!0,function($__require,exports,module){return module.exports=$__require("185"),module.exports}),$__System.registerDynamic("187",["186","145"],!0,function($__require,exports,module){function parseHeaders(res){for(var lines=res.getAllResponseHeaders().split(/\r?\n/),headers={},i=0;i<lines.length;i++){var line=lines[i];if(""!==line){var m=line.match(/^([^:]+):\s*(.*)/);if(m){var key=m[1].toLowerCase(),value=m[2];void 0!==headers[key]?isArray(headers[key])?headers[key].push(value):headers[key]=[headers[key],value]:headers[key]=value}else headers[line]=!0}}return headers}var Stream=$__require("186"),util=$__require("145"),Response=module.exports=function(res){this.offset=0,this.readable=!0};util.inherits(Response,Stream);var capable={streaming:!0,status2:!0};Response.prototype.getResponse=function(xhr){var respType=String(xhr.responseType).toLowerCase();return"blob"===respType?xhr.responseBlob||xhr.response:"arraybuffer"===respType?xhr.response:xhr.responseText},Response.prototype.getHeader=function(key){return this.headers[key.toLowerCase()]},Response.prototype.handle=function(res){if(2===res.readyState&&capable.status2){try{this.statusCode=res.status,this.headers=parseHeaders(res)}catch(err){capable.status2=!1}capable.status2&&this.emit("ready")}else if(capable.streaming&&3===res.readyState){try{this.statusCode||(this.statusCode=res.status,this.headers=parseHeaders(res),this.emit("ready"))}catch(err){}try{this._emitData(res)}catch(err){capable.streaming=!1}}else 4===res.readyState&&(this.statusCode||(this.statusCode=res.status,this.emit("ready")),this._emitData(res),res.error?this.emit("error",this.getResponse(res)):this.emit("end"),this.emit("close"))},Response.prototype._emitData=function(res){var respBody=this.getR
}var lib$es6$promise$utils$$_isArray;lib$es6$promise$utils$$_isArray=Array.isArray?Array.isArray:function(x){return"[object Array]"===Object.prototype.toString.call(x)};var lib$es6$promise$asap$$vertxNext,lib$es6$promise$asap$$customSchedulerFn,lib$es6$promise$asap$$scheduleFlush,lib$es6$promise$utils$$isArray=lib$es6$promise$utils$$_isArray,lib$es6$promise$asap$$len=0,lib$es6$promise$asap$$asap=function(callback,arg){lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len]=callback,lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len+1]=arg,lib$es6$promise$asap$$len+=2,2===lib$es6$promise$asap$$len&&(lib$es6$promise$asap$$customSchedulerFn?lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush):lib$es6$promise$asap$$scheduleFlush())},lib$es6$promise$asap$$browserWindow="undefined"!=typeof window?window:void 0,lib$es6$promise$asap$$browserGlobal=lib$es6$promise$asap$$browserWindow||{},lib$es6$promise$asap$$BrowserMutationObserver=lib$es6$promise$asap$$browserGlobal.MutationObserver||lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver,lib$es6$promise$asap$$isNode="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),lib$es6$promise$asap$$isWorker="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,lib$es6$promise$asap$$queue=new Array(1e3);lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$isNode?lib$es6$promise$asap$$useNextTick():lib$es6$promise$asap$$BrowserMutationObserver?lib$es6$promise$asap$$useMutationObserver():lib$es6$promise$asap$$isWorker?lib$es6$promise$asap$$useMessageChannel():void 0===lib$es6$promise$asap$$browserWindow&&"function"==typeof $__require?lib$es6$promise$asap$$attemptVertx():lib$es6$promise$asap$$useSetTimeout();var lib$es6$promise$then$$default=lib$es6$promise$then$$then,lib$es6$promise$promise$resolve$$default=lib$es6$promise$promise$resolve$$resolve,lib$es6$promise$$internal$$PENDING=void 0,lib$es6$promise$$internal$$FULFILLED=1,lib$es6$promise$$internal$$REJECTED=2,lib$es6$promise$$internal$$GET_THEN_ERROR=new lib$es6$promise$$internal$$ErrorObject,lib$es6$promise$$internal$$TRY_CATCH_ERROR=new lib$es6$promise$$internal$$ErrorObject,lib$es6$promise$promise$all$$default=lib$es6$promise$promise$all$$all,lib$es6$promise$promise$race$$default=lib$es6$promise$promise$race$$race,lib$es6$promise$promise$reject$$default=lib$es6$promise$promise$reject$$reject,lib$es6$promise$promise$$counter=0,lib$es6$promise$promise$$default=lib$es6$promise$promise$$Promise;lib$es6$promise$promise$$Promise.all=lib$es6$promise$promise$all$$default,lib$es6$promise$promise$$Promise.race=lib$es6$promise$promise$race$$default,lib$es6$promise$promise$$Promise.resolve=lib$es6$promise$promise$resolve$$default,lib$es6$promise$promise$$Promise.reject=lib$es6$promise$promise$reject$$default,lib$es6$promise$promise$$Promise._setScheduler=lib$es6$promise$asap$$setScheduler,lib$es6$promise$promise$$Promise._setAsap=lib$es6$promise$asap$$setAsap,lib$es6$promise$promise$$Promise._asap=lib$es6$promise$asap$$asap,lib$es6$promise$promise$$Promise.prototype={constructor:lib$es6$promise$promise$$Promise,then:lib$es6$promise$then$$default,"catch":function(onRejection){return this.then(null,onRejection)}};var lib$es6$promise$enumerator$$default=lib$es6$promise$enumerator$$Enumerator;lib$es6$promise$enumerator$$Enumerator.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},lib$es6$promise$enumerator$$Enumerator.prototype._enumerate=function(){for(var length=this.length,input=this._input,i=0;this._state===lib$es6$promise$$internal$$PENDING&&length>i;i++)this._eachEntry(input[i],i)},lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry=function(entry,i){var c=this._instanceConstructor,resolve=c.resolve;if(resolve===lib$es6$promise$promise$resolve$$default){var then=lib$es6$promise$$internal$$getThen(entry);if(then===lib$es6$promise$then$$default&&entry._state!==lib$es6$promise$$internal$$PENDING)this._settledAt(entry._state,i,entry._result);else if("function"!=typeof then)this._remain
_position=state.position;0!==ch&&!is_WS_OR_EOL(ch)&&!is_FLOW_INDICATOR(ch);)ch=state.input.charCodeAt(++state.position);return state.position===_position&&throwError(state,"name of an anchor node must contain at least one character"),state.anchor=state.input.slice(_position,state.position),!0}function readAlias(state){var _position,alias,ch;if(ch=state.input.charCodeAt(state.position),42!==ch)return!1;for(ch=state.input.charCodeAt(++state.position),_position=state.position;0!==ch&&!is_WS_OR_EOL(ch)&&!is_FLOW_INDICATOR(ch);)ch=state.input.charCodeAt(++state.position);return state.position===_position&&throwError(state,"name of an alias node must contain at least one character"),alias=state.input.slice(_position,state.position),state.anchorMap.hasOwnProperty(alias)||throwError(state,'unidentified alias "'+alias+'"'),state.result=state.anchorMap[alias],skipSeparationSpace(state,!0,-1),!0}function composeNode(state,parentIndent,nodeContext,allowToSeek,allowCompact){var allowBlockStyles,allowBlockScalars,allowBlockCollections,typeIndex,typeQuantity,type,flowIndent,blockIndent,indentStatus=1,atNewLine=!1,hasContent=!1;if(null!==state.listener&&state.listener("open",state),state.tag=null,state.anchor=null,state.kind=null,state.result=null,allowBlockStyles=allowBlockScalars=allowBlockCollections=CONTEXT_BLOCK_OUT===nodeContext||CONTEXT_BLOCK_IN===nodeContext,allowToSeek&&skipSeparationSpace(state,!0,-1)&&(atNewLine=!0,state.lineIndent>parentIndent?indentStatus=1:state.lineIndent===parentIndent?indentStatus=0:state.lineIndent<parentIndent&&(indentStatus=-1)),1===indentStatus)for(;readTagProperty(state)||readAnchorProperty(state);)skipSeparationSpace(state,!0,-1)?(atNewLine=!0,allowBlockCollections=allowBlockStyles,state.lineIndent>parentIndent?indentStatus=1:state.lineIndent===parentIndent?indentStatus=0:state.lineIndent<parentIndent&&(indentStatus=-1)):allowBlockCollections=!1;if(allowBlockCollections&&(allowBlockCollections=atNewLine||allowCompact),1!==indentStatus&&CONTEXT_BLOCK_OUT!==nodeContext||(flowIndent=CONTEXT_FLOW_IN===nodeContext||CONTEXT_FLOW_OUT===nodeContext?parentIndent:parentIndent+1,blockIndent=state.position-state.lineStart,1===indentStatus?allowBlockCollections&&(readBlockSequence(state,blockIndent)||readBlockMapping(state,blockIndent,flowIndent))||readFlowCollection(state,flowIndent)?hasContent=!0:(allowBlockScalars&&readBlockScalar(state,flowIndent)||readSingleQuotedScalar(state,flowIndent)||readDoubleQuotedScalar(state,flowIndent)?hasContent=!0:readAlias(state)?(hasContent=!0,null===state.tag&&null===state.anchor||throwError(state,"alias node should not have any properties")):readPlainScalar(state,flowIndent,CONTEXT_FLOW_IN===nodeContext)&&(hasContent=!0,null===state.tag&&(state.tag="?")),null!==state.anchor&&(state.anchorMap[state.anchor]=state.result)):0===indentStatus&&(hasContent=allowBlockCollections&&readBlockSequence(state,blockIndent))),null!==state.tag&&"!"!==state.tag)if("?"===state.tag){for(typeIndex=0,typeQuantity=state.implicitTypes.length;typeQuantity>typeIndex;typeIndex+=1)if(type=state.implicitTypes[typeIndex],type.resolve(state.result)){state.result=type.construct(state.result),state.tag=type.tag,null!==state.anchor&&(state.anchorMap[state.anchor]=state.result);break}}else _hasOwnProperty.call(state.typeMap,state.tag)?(type=state.typeMap[state.tag],null!==state.result&&type.kind!==state.kind&&throwError(state,"unacceptable node kind for !<"+state.tag+'> tag; it should be "'+type.kind+'", not "'+state.kind+'"'),type.resolve(state.result)?(state.result=type.construct(state.result),null!==state.anchor&&(state.anchorMap[state.anchor]=state.result)):throwError(state,"cannot resolve a node with !<"+state.tag+"> explicit tag")):throwError(state,"unknown tag !<"+state.tag+">");return null!==state.listener&&state.listener("close",state),null!==state.tag||null!==state.anchor||hasContent}function readDocument(state){var _position,directiveName,directiveArgs,ch,documentStart=state.position,hasDirectives=!1;for(state.version=null,state.checkLineBreaks=state.legacy,state.tagMap={},state.anchorMap={};0!=
value+=d*base,base*=60}),sign*value):sign*parseFloat(value,10)}function representYamlFloat(object,style){var res;if(isNaN(object))switch(style){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===object)switch(style){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===object)switch(style){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(common.isNegativeZero(object))return"-0.0";return res=object.toString(10),SCIENTIFIC_WITHOUT_DOT.test(res)?res.replace("e",".e"):res}function isFloat(object){return"[object Number]"===Object.prototype.toString.call(object)&&(object%1!==0||common.isNegativeZero(object))}var common=$__require("19e"),Type=$__require("1a5"),YAML_FLOAT_PATTERN=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))$"),SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;return module.exports=new Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"}),module.exports}),$__System.registerDynamic("1ae",["1a4","1a9","1aa","1ab","1ac","1ad"],!0,function($__require,exports,module){"use strict";var Schema=$__require("1a4");return module.exports=new Schema({include:[$__require("1a9")],implicit:[$__require("1aa"),$__require("1ab"),$__require("1ac"),$__require("1ad")]}),module.exports}),$__System.registerDynamic("1af",["1a4","1ae"],!0,function($__require,exports,module){"use strict";var Schema=$__require("1a4");return module.exports=new Schema({include:[$__require("1ae")]}),module.exports}),$__System.registerDynamic("1b0",["1a5"],!0,function($__require,exports,module){"use strict";function resolveYamlTimestamp(data){return null===data?!1:null!==YAML_DATE_REGEXP.exec(data)?!0:null!==YAML_TIMESTAMP_REGEXP.exec(data)}function constructYamlTimestamp(data){var match,year,month,day,hour,minute,second,tz_hour,tz_minute,date,fraction=0,delta=null;if(match=YAML_DATE_REGEXP.exec(data),null===match&&(match=YAML_TIMESTAMP_REGEXP.exec(data)),null===match)throw new Error("Date resolve error");if(year=+match[1],month=+match[2]-1,day=+match[3],!match[4])return new Date(Date.UTC(year,month,day));if(hour=+match[4],minute=+match[5],second=+match[6],match[7]){for(fraction=match[7].slice(0,3);fraction.length<3;)fraction+="0";fraction=+fraction}return match[9]&&(tz_hour=+match[10],tz_minute=+(match[11]||0),delta=6e4*(60*tz_hour+tz_minute),"-"===match[9]&&(delta=-delta)),date=new Date(Date.UTC(year,month,day,hour,minute,second,fraction)),delta&&date.setTime(date.getTime()-delta),date}function representYamlTimestamp(object){return object.toISOString()}var Type=$__require("1a5"),YAML_DATE_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),YAML_TIMESTAMP_REGEXP=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 module.exports=new Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp}),module.exports}),$__System.registerDynamic("1b1",["1a5"],!0,function($__require,exports,module){"use strict";function resolveYamlMerge(data){return"<<"===data||null===data}var Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge}),module.exports}),$__System.registerDynamic("1b2",["1a5","14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";function resolveYamlBinary(data){if(null===data)return!1;var code,idx,bitlen=0,max=data.length,map=BASE64_MAP;for(idx=0;max>idx;idx++)if(code=map.indexOf(data.charAt(idx)),!(code>64)){if(0>code)return!1;bitlen+=6}return bitlen%8===0}function constructY
tempCodePoint>65535&&1114112>tempCodePoint&&(codePoint=tempCodePoint))}}null===codePoint?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|1023&codePoint),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}function decodeCodePointsArray(codePoints){var len=codePoints.length;if(MAX_ARGUMENTS_LENGTH>=len)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;len>i;)res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;end>i;i++)ret+=String.fromCharCode(127&buf[i]);return ret}function binarySlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;end>i;i++)ret+=String.fromCharCode(buf[i]);return ret}function hexSlice(buf,start,end){var len=buf.length;(!start||0>start)&&(start=0),(!end||0>end||end>len)&&(end=len);for(var out="",i=start;end>i;i++)out+=toHex(buf[i]);return out}function utf16leSlice(buf,start,end){for(var bytes=buf.slice(start,end),res="",i=0;i<bytes.length;i+=2)res+=String.fromCharCode(bytes[i]+256*bytes[i+1]);return res}function checkOffset(offset,ext,length){if(offset%1!==0||0>offset)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError("buffer must be a Buffer instance");if(value>max||min>value)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range")}function objectWriteUInt16(buf,value,offset,littleEndian){0>value&&(value=65535+value+1);for(var i=0,j=Math.min(buf.length-offset,2);j>i;i++)buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>8*(littleEndian?i:1-i)}function objectWriteUInt32(buf,value,offset,littleEndian){0>value&&(value=4294967295+value+1);for(var i=0,j=Math.min(buf.length-offset,4);j>i;i++)buf[offset+i]=value>>>8*(littleEndian?i:3-i)&255}function checkIEEE754(buf,value,offset,ext,max,min){if(value>max||min>value)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range");if(0>offset)throw new RangeError("index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}function writeDouble(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}function base64clean(str){if(str=stringtrim(str).replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str+="=";return str}function stringtrim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")}function toHex(n){return 16>n?"0"+n.toString(16):n.toString(16)}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;length>i;i++){if(codePoint=string.charCodeAt(i),codePoint>55295&&57344>codePoint){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(56320>codePoint){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,128>codePoint){if((units-=1)<0)break;bytes.push(codePoint)}else if(2048>codePoint){if((units-=2)<0)break;bytes.push(codePoint>>6|192,63&codePoint|128)}else if(65536>codePoint){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,63&codePoint|128)}else{if(!(1114112>codePoint))throw new Error("Invalid code point");if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,63&
case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}}),x=args[i];len>i;x=args[++i])str+=isNull(x)||!isObject(x)?" "+x:" "+inspect(x);return str},exports.deprecate=function(fn,msg){function deprecated(){if(!warned){if(process.throwDeprecation)throw new Error(msg);process.traceDeprecation?console.trace(msg):console.error(msg),warned=!0}return fn.apply(this,arguments)}if(isUndefined(global.process))return function(){return exports.deprecate(fn,msg).apply(this,arguments)};if(process.noDeprecation===!0)return fn;var warned=!1;return deprecated};var debugEnviron,debugs={};exports.debuglog=function(set){if(isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||""),set=set.toUpperCase(),!debugs[set])if(new RegExp("\\b"+set+"\\b","i").test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else debugs[set]=function(){};return debugs[set]},exports.inspect=inspect,inspect.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]},inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=$__require("1c7");var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))},exports.inherits=$__require("158"),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i=keys.length;i--;)origin[keys[i]]=add[keys[i]];return origin}}($__require("d4")),module.exports}),$__System.registerDynamic("1ca",["1c9"],!0,function($__require,exports,module){return module.exports=$__require("1c9"),module.exports}),$__System.registerDynamic("1cb",["1ca"],!0,function($__require,exports,module){return module.exports=$__System._nodeRequire?$__System._nodeRequire("util"):$__require("1ca"),module.exports}),$__System.registerDynamic("145",["1cb"],!0,function($__require,exports,module){return module.exports=$__require("1cb"),module.exports}),$__System.registerDynamic("1cc",["145"],!0,function($__require,exports,module){"use strict";function create(Klass){return function(err,props,message,params){var formattedMessage,formatter=module.exports.formatter;"string"==typeof err?(formattedMessage=formatter.apply(null,arguments),err=props=void 0):formattedMessage="string"==typeof props?formatter.apply(null,slice.call(arguments,1)):formatter.apply(null,slice.call(arguments,2)),err instanceof Error||(props=err,err=void 0),err&&(formattedMessage+=(formattedMessage?" \n":"")+err.message);var newError=new Klass(formattedMessage);return extendError(newError,err),extendToJSON(newError),extend(newError,props),newError}}function extendError(targetError,sourceError){sourceError&&(extendStack(targetError,sourceError),extend(targetError,sourceError,!0))}function extendToJSON(error){error.toJSON=errorToJSON,error.inspect=errorToString}function extend(target,source,omitVendorSpecificProperties){if(source&&"object"==typeof source)for(var keys=Object.keys(source),i=0;i<keys.length;i++){var key=keys[i];if(!(omitVendorSpecificProperties&&vendorSpecificErrorProperties.indexOf(key)>=0))try{target[key]=source[key]}catch(e){}}}function errorToJSON(){var json={},keys=Object.keys(this);keys=keys.concat(vendorSpecificErrorProperties);for(var i=0;i<keys.length;i++){var key=keys[i],value=this[key],type=typeof value;"und
"use strict";function dereference(parser,options){debug("Dereferencing $ref pointers in %s",parser.$refs._root$Ref.path);var dereferenced=crawl(parser.schema,parser.$refs._root$Ref.path,"#",[],parser.$refs,options);parser.$refs.circular=dereferenced.circular,parser.schema=dereferenced.value}function crawl(obj,path,pathFromRoot,parents,$refs,options){var dereferenced,result={value:obj,circular:!1};return obj&&"object"==typeof obj&&(parents.push(obj),$Ref.isAllowed$Ref(obj,options)?(dereferenced=dereference$Ref(obj,path,pathFromRoot,parents,$refs,options),result.circular=dereferenced.circular,result.value=dereferenced.value):Object.keys(obj).forEach(function(key){var keyPath=Pointer.join(path,key),keyPathFromRoot=Pointer.join(pathFromRoot,key),value=obj[key],circular=!1;$Ref.isAllowed$Ref(value,options)?(dereferenced=dereference$Ref(value,keyPath,keyPathFromRoot,parents,$refs,options),circular=dereferenced.circular,obj[key]=dereferenced.value):-1===parents.indexOf(value)?(dereferenced=crawl(value,keyPath,keyPathFromRoot,parents,$refs,options),circular=dereferenced.circular,obj[key]=dereferenced.value):circular=foundCircularReference(keyPath,$refs,options),result.circular=result.circular||circular}),parents.pop()),result}function dereference$Ref($ref,path,pathFromRoot,parents,$refs,options){debug('Dereferencing $ref pointer "%s" at %s',$ref.$ref,path);var $refPath=url.resolve(path,$ref.$ref),pointer=$refs._resolve($refPath,options),directCircular=pointer.circular,circular=directCircular||-1!==parents.indexOf(pointer.value);circular&&foundCircularReference(path,$refs,options);var dereferencedValue=$Ref.dereference($ref,pointer.value);if(!circular){var dereferenced=crawl(dereferencedValue,pointer.path,pathFromRoot,parents,$refs,options);circular=dereferenced.circular,dereferencedValue=dereferenced.value}return circular&&!directCircular&&"ignore"===options.dereference.circular&&(dereferencedValue=$ref),directCircular&&(dereferencedValue.$ref=pathFromRoot),{circular:circular,value:dereferencedValue}}function foundCircularReference(keyPath,$refs,options){if($refs.circular=!0,!options.dereference.circular)throw ono.reference("Circular $ref pointer found at %s",keyPath);return!0}var $Ref=$__require("194"),Pointer=$__require("199"),ono=$__require("140"),debug=$__require("155"),url=$__require("154");return module.exports=dereference,module.exports}),$__System.registerDynamic("1da",["13e","143","13f","146","148","19c","140","1be","1bd"],!0,function($__require,exports,module){"use strict";function SwaggerParser(){$RefParser.apply(this,arguments)}function normalizeArgs(args){var path,api,options,callback;return args=Array.prototype.slice.call(args),"function"==typeof args[args.length-1]&&(callback=args.pop()),"string"==typeof args[0]?(path=args[0],"object"==typeof args[2]?(api=args[1],options=args[2]):(api=void 0,options=args[1])):(path="",api=args[0],options=args[1]),options instanceof Options||(options=new Options(options)),{path:path,api:api,options:options,callback:callback}}var validateSchema=$__require("13e"),validateSpec=$__require("143"),util=$__require("13f"),Options=$__require("146"),Promise=$__require("148"),maybe=$__require("19c"),ono=$__require("140"),$RefParser=$__require("1be"),dereference=$__require("1bd");return module.exports=SwaggerParser,util.inherits(SwaggerParser,$RefParser),SwaggerParser.YAML=$RefParser.YAML,SwaggerParser.parse=$RefParser.parse,SwaggerParser.resolve=$RefParser.resolve,SwaggerParser.bundle=$RefParser.bundle,SwaggerParser.dereference=$RefParser.dereference,Object.defineProperty(SwaggerParser.prototype,"api",{configurable:!0,enumerable:!0,get:function(){return this.schema}}),SwaggerParser.prototype.parse=function(api,options,callback){var args=normalizeArgs(arguments);return $RefParser.prototype.parse.call(this,args.path,args.api,args.options).then(function(schema){var supportedSwaggerVersions=["2.0"];if(void 0===schema.swagger||void 0===schema.info||void 0===schema.paths)throw ono.syntax("%s is not a valid Swagger API definition",args.path||args.api);if("number"==typeof schema.swagger)throw ono.sy
parent=element.parentNode,/pre/i.test(parent.nodeName)&&(parent.className=parent.className.replace(lang,"").replace(/\s+/g," ")+" language-"+language);var code=element.textContent,env={element:element,language:language,grammar:grammar,code:code};if(!code||!grammar)return void _.hooks.run("complete",env);if(_.hooks.run("before-highlight",env),async&&_self.Worker){var worker=new Worker(_.filename);worker.onmessage=function(evt){env.highlightedCode=evt.data,_.hooks.run("before-insert",env),env.element.innerHTML=env.highlightedCode,callback&&callback.call(env.element),_.hooks.run("after-highlight",env),_.hooks.run("complete",env)},worker.postMessage(JSON.stringify({language:env.language,code:env.code,immediateClose:!0}))}else env.highlightedCode=_.highlight(env.code,env.grammar,env.language),_.hooks.run("before-insert",env),env.element.innerHTML=env.highlightedCode,callback&&callback.call(element),_.hooks.run("after-highlight",env),_.hooks.run("complete",env)},highlight:function(text,grammar,language){var tokens=_.tokenize(text,grammar);return Token.stringify(_.util.encode(tokens),language)},tokenize:function(text,grammar,language){var Token=_.Token,strarr=[text],rest=grammar.rest;if(rest){for(var token in rest)grammar[token]=rest[token];delete grammar.rest}tokenloop:for(var token in grammar)if(grammar.hasOwnProperty(token)&&grammar[token]){var patterns=grammar[token];patterns="Array"===_.util.type(patterns)?patterns:[patterns];for(var j=0;j<patterns.length;++j){var pattern=patterns[j],inside=pattern.inside,lookbehind=!!pattern.lookbehind,lookbehindLength=0,alias=pattern.alias;pattern=pattern.pattern||pattern;for(var i=0;i<strarr.length;i++){var str=strarr[i];if(strarr.length>text.length)break tokenloop;if(!(str instanceof Token)){pattern.lastIndex=0;var match=pattern.exec(str);if(match){lookbehind&&(lookbehindLength=match[1].length);var from=match.index-1+lookbehindLength,match=match[0].slice(lookbehindLength),len=match.length,to=from+len,before=str.slice(0,from+1),after=str.slice(to+1),args=[i,1];before&&args.push(before);var wrapped=new Token(token,inside?_.tokenize(match,inside):match,alias);args.push(wrapped),after&&args.push(after),Array.prototype.splice.apply(strarr,args)}}}}}return strarr},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[],hooks[name].push(callback)},run:function(name,env){var callbacks=_.hooks.all[name];if(callbacks&&callbacks.length)for(var callback,i=0;callback=callbacks[i++];)callback(env)}}},Token=_.Token=function(type,content,alias){this.type=type,this.content=content,this.alias=alias};if(Token.stringify=function(o,language,parent){if("string"==typeof o)return o;if("Array"===_.util.type(o))return o.map(function(element){return Token.stringify(element,language,o)}).join("");var env={type:o.type,content:Token.stringify(o.content,language,parent),tag:"span",classes:["token",o.type],attributes:{},language:language,parent:parent};if("comment"==env.type&&(env.attributes.spellcheck="true"),o.alias){var aliases="Array"===_.util.type(o.alias)?o.alias:[o.alias];Array.prototype.push.apply(env.classes,aliases)}_.hooks.run("wrap",env);var attributes="";for(var name in env.attributes)attributes+=(attributes?" ":"")+name+'="'+(env.attributes[name]||"")+'"';return"<"+env.tag+' class="'+env.classes.join(" ")+'" '+attributes+">"+env.content+"</"+env.tag+">"},!_self.document)return _self.addEventListener?(_self.addEventListener("message",function(evt){var message=JSON.parse(evt.data),lang=message.language,code=message.code,immediateClose=message.immediateClose;_self.postMessage(_.highlight(code,_.languages[lang],lang)),immediateClose&&_self.close()},!1),_self.Prism):_self.Prism;var script=document.getElementsByTagName("script");return script=script[script.length-1],script&&(_.filename=script.src,document.addEventListener&&!script.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",_.highlightAll)),_self.Prism}();return"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.ma
Prism.languages.objectivec=Prism.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:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),Prism.languages.scala=Prism.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 Prism.languages.scala["class-name"],delete Prism.languages.scala["function"],module.exports}),$__System.register("1f4",[],function(){return{setters:[],execute:function(){}}}),$__System.register("1f5",[],function(){return{setters:[],execute:function(){}}}),$__System.registerDynamic("1f6",[],!0,function($__require,exports,module){var define,global=this;return function(){function Lexer(options){this.tokens=[],this.tokens.links={},this.options=options||marked.defaults,this.rules=block.normal,this.options.gfm&&(this.options.tables?this.rules=block.tables:this.rules=block.gfm)}function InlineLexer(links,options){if(this.options=options||marked.defaults,this.links=links,this.rules=inline.normal,this.renderer=this.options.renderer||new Renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=inline.breaks:this.rules=inline.gfm:this.options.pedantic&&(this.rules=inline.pedantic)}function Renderer(options){this.options=options||{}}function Parser(options){this.tokens=[],this.token=null,this.options=options||marked.defaults,this.options.renderer=this.options.renderer||new Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options}function escape(html,encode){return html.replace(encode?/&/g:/&(?!#?\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function unescape(html){return html.replace(/&([#\w]+);/g,function(_,n){return n=n.toLowerCase(),"colon"===n?":":"#"===n.charAt(0)?"x"===n.charAt(1)?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""})}function replace(regex,opt){return regex=regex.source,opt=opt||"",function self(name,val){return name?(val=val.source||val,val=val.replace(/(^|[^\[])\^/g,"$1"),regex=regex.replace(name,val),self):new RegExp(regex,opt)}}function noop(){}function merge(obj){for(var target,key,i=1;i<arguments.length;i++){target=arguments[i];for(key in target)Object.prototype.hasOwnProperty.call(target,key)&&(obj[key]=target[key])}return obj}function marked(src,opt,callback){if(callback||"function"==typeof opt){callback||(callback=opt,opt=null),opt=merge({},marked.defaults,opt||{});var tokens,pending,highlight=opt.highlight,i=0;try{tokens=Lexer.lex(src,opt)}catch(e){return callback(e)}pending=tokens.length;var done=function(err){if(err)return opt.highlight=highlight,callback(err);var out;try{out=Parser.parse(tokens,opt)}catch(e){err=e}return opt.highlight=highlight,err?callback(err):callback(null,out)};if(!highlight||highlight.length<3)return done();if(delete opt.highlight,!pending)return done();for(;i<tokens.length;i++)!function(token){return"code"!==token.type?--pending||done():highlight(token.text,token.lang,function(err,code){return err?done(err):null==code||code===token.text?--pending||done():(token.text=code,token.escaped=!0,void(-
},lang_1=$__require("2b"),async_1=$__require("8e"),core_1=$__require("16"),invalid_pipe_argument_exception_1=$__require("1f9"),ObservableStrategy=function(){function ObservableStrategy(){}return ObservableStrategy.prototype.createSubscription=function(async,updateLatestValue){return async_1.ObservableWrapper.subscribe(async,updateLatestValue,function(e){throw e})},ObservableStrategy.prototype.dispose=function(subscription){async_1.ObservableWrapper.dispose(subscription)},ObservableStrategy.prototype.onDestroy=function(subscription){async_1.ObservableWrapper.dispose(subscription)},ObservableStrategy}(),PromiseStrategy=function(){function PromiseStrategy(){}return PromiseStrategy.prototype.createSubscription=function(async,updateLatestValue){return async.then(updateLatestValue)},PromiseStrategy.prototype.dispose=function(subscription){},PromiseStrategy.prototype.onDestroy=function(subscription){},PromiseStrategy}(),_promiseStrategy=new PromiseStrategy,_observableStrategy=new ObservableStrategy,AsyncPipe=function(){function AsyncPipe(_ref){this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=_ref}return AsyncPipe.prototype.ngOnDestroy=function(){lang_1.isPresent(this._subscription)&&this._dispose()},AsyncPipe.prototype.transform=function(obj){return lang_1.isBlank(this._obj)?(lang_1.isPresent(obj)&&this._subscribe(obj),this._latestReturnedValue=this._latestValue,this._latestValue):obj!==this._obj?(this._dispose(),this.transform(obj)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,core_1.WrappedValue.wrap(this._latestValue))},AsyncPipe.prototype._subscribe=function(obj){var _this=this;this._obj=obj,this._strategy=this._selectStrategy(obj),this._subscription=this._strategy.createSubscription(obj,function(value){return _this._updateLatestValue(obj,value)})},AsyncPipe.prototype._selectStrategy=function(obj){if(lang_1.isPromise(obj))return _promiseStrategy;if(async_1.ObservableWrapper.isObservable(obj))return _observableStrategy;throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(AsyncPipe,obj)},AsyncPipe.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},AsyncPipe.prototype._updateLatestValue=function(async,value){async===this._obj&&(this._latestValue=value,this._ref.markForCheck())},AsyncPipe=__decorate([core_1.Pipe({name:"async",pure:!1}),core_1.Injectable(),__metadata("design:paramtypes",[core_1.ChangeDetectorRef])],AsyncPipe)}();return exports.AsyncPipe=AsyncPipe,module.exports}),$__System.registerDynamic("1fa",["2b","16","1f9"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),core_1=$__require("16"),invalid_pipe_argument_exception_1=$__require("1f9"),UpperCasePipe=function(){function UpperCasePipe(){}return UpperCasePipe.prototype.transform=function(value){if(lang_1.isBlank(value))return value;if(!lang_1.isString(value))throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(UpperCasePipe,value);return value.toUpperCase()},UpperCasePipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"uppercase"}),core_1.Injectable(),__metadata("design:paramtypes",[])],UpperCasePipe)}();return exports.UpperCasePipe=UpperCasePipe,module.exports}),$__System.registerDynamic("1fb",["2b","16","1f9"],!0,function($__require,exports,module)
"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},lang_1=$__require("2b"),async_1=$__require("8e"),core_1=$__require("16"),control_value_accessor_1=$__require("209"),ng_control_1=$__require("208"),model_1=$__require("20e"),validators_1=$__require("20b"),shared_1=$__require("20a"),formControlBinding=lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl,{useExisting:core_1.forwardRef(function(){return NgModel})})),NgModel=function(_super){function NgModel(_validators,_asyncValidators,valueAccessors){_super.call(this),this._validators=_validators,this._asyncValidators=_asyncValidators,this._control=new model_1.Control,this._added=!1,this.update=new async_1.EventEmitter,this.valueAccessor=shared_1.selectValueAccessor(this,valueAccessors)}return __extends(NgModel,_super),NgModel.prototype.ngOnChanges=function(changes){this._added||(shared_1.setUpControl(this._control,this),this._control.updateValueAndValidity({emitEvent:!1}),this._added=!0),shared_1.isPropertyUpdated(changes,this.viewModel)&&(this._control.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(NgModel.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"validator",{get:function(){return shared_1.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"asyncValidator",{get:function(){return shared_1.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),NgModel.prototype.viewToModelUpdate=function(newValue){this.viewModel=newValue,async_1.ObservableWrapper.callEmit(this.update,newValue)},NgModel=__decorate([core_1.Directive({selector:"[ngModel]:not([ngControl]):not([ngFormControl])",bindings:[formControlBinding],inputs:["model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}),__param(0,core_1.Optional()),__param(0,core_1.Self()),__param(0,core_1.Inject(validators_1.NG_VALIDATORS)),__param(1,core_1.Optional()),__param(1,core_1.Self()),__param(1,core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),__param(2,core_1.Optional()),__param(2,core_1.Self()),__param(2,core_1.Inject(control_value_accessor_1.NG_VALUE_ACCESSOR)),__metadata("design:paramtypes",[Array,Array,Array])],NgModel)}(ng_control_1.NgControl);return exports.NgModel=NgModel,module.exports}),$__System.registerDynamic("20f",["16","2b","207","20a","20b"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(tar
host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[SELECT_VALUE_ACCESSOR]}),__metadata("design:paramtypes",[core_1.Renderer,core_1.ElementRef])],SelectControlValueAccessor)}();exports.SelectControlValueAccessor=SelectControlValueAccessor;var NgSelectOption=function(){function NgSelectOption(_element,_renderer,_select){this._element=_element,this._renderer=_renderer,this._select=_select,lang_1.isPresent(this._select)&&(this.id=this._select._registerOption())}return Object.defineProperty(NgSelectOption.prototype,"ngValue",{set:function(value){null!=this._select&&(this._select._optionMap.set(this.id,value),this._setElementValue(_buildValueString(this.id,value)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(NgSelectOption.prototype,"value",{set:function(value){this._setElementValue(value),lang_1.isPresent(this._select)&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),NgSelectOption.prototype._setElementValue=function(value){this._renderer.setElementProperty(this._element.nativeElement,"value",value)},NgSelectOption.prototype.ngOnDestroy=function(){lang_1.isPresent(this._select)&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},__decorate([core_1.Input("ngValue"),__metadata("design:type",Object),__metadata("design:paramtypes",[Object])],NgSelectOption.prototype,"ngValue",null),__decorate([core_1.Input("value"),__metadata("design:type",Object),__metadata("design:paramtypes",[Object])],NgSelectOption.prototype,"value",null),NgSelectOption=__decorate([core_1.Directive({selector:"option"}),__param(2,core_1.Optional()),__param(2,core_1.Host()),__metadata("design:paramtypes",[core_1.ElementRef,core_1.Renderer,SelectControlValueAccessor])],NgSelectOption)}();return exports.NgSelectOption=NgSelectOption,module.exports}),$__System.registerDynamic("21a",["2b","206","20c","20d","20f","210","218","213","215","214","217","219","216","21b","208"],!0,function($__require,exports,module){"use strict";var lang_1=$__require("2b"),ng_control_name_1=$__require("206"),ng_form_control_1=$__require("20c"),ng_model_1=$__require("20d"),ng_control_group_1=$__require("20f"),ng_form_model_1=$__require("210"),ng_form_1=$__require("218"),default_value_accessor_1=$__require("213"),checkbox_value_accessor_1=$__require("215"),number_value_accessor_1=$__require("214"),radio_control_value_accessor_1=$__require("217"),ng_control_status_1=$__require("219"),select_control_value_accessor_1=$__require("216"),validators_1=$__require("21b"),ng_control_name_2=$__require("206");exports.NgControlName=ng_control_name_2.NgControlName;var ng_form_control_2=$__require("20c");exports.NgFormControl=ng_form_control_2.NgFormControl;var ng_model_2=$__require("20d");exports.NgModel=ng_model_2.NgModel;var ng_control_group_2=$__require("20f");exports.NgControlGroup=ng_control_group_2.NgControlGroup;var ng_form_model_2=$__require("210");exports.NgFormModel=ng_form_model_2.NgFormModel;var ng_form_2=$__require("218");exports.NgForm=ng_form_2.NgForm;var default_value_accessor_2=$__require("213");exports.DefaultValueAccessor=default_value_accessor_2.DefaultValueAccessor;var checkbox_value_accessor_2=$__require("215");exports.CheckboxControlValueAccessor=checkbox_value_accessor_2.CheckboxControlValueAccessor;var radio_control_value_accessor_2=$__require("217");exports.RadioControlValueAccessor=radio_control_value_accessor_2.RadioControlValueAccessor,exports.RadioButtonState=radio_control_value_accessor_2.RadioButtonState;var number_value_accessor_2=$__require("214");exports.NumberValueAccessor=number_value_accessor_2.NumberValueAccessor;var ng_control_status_2=$__require("219");exports.NgControlStatus=ng_control_status_2.NgControlStatus;var select_control_value_accessor_2=$__require("216");exports.SelectControlValueAccessor=select_control_value_accessor_2.SelectControlValueAccessor,exports.NgSelectOption=select_control_value_accessor_2.NgSelectOption;var validators_2=$__require("21b");exports.RequiredValidator=validators_2.RequiredVa
}();return exports.RadioControlValueAccessor=RadioControlValueAccessor,module.exports}),$__System.registerDynamic("21d",["20e","211","207","206","20c","20d","208","20f","210","218","209","213","219","215","216","21a","20b","21b","21c","217","2b"],!0,function($__require,exports,module){"use strict";var model_1=$__require("20e");exports.AbstractControl=model_1.AbstractControl,exports.Control=model_1.Control,exports.ControlGroup=model_1.ControlGroup,exports.ControlArray=model_1.ControlArray;var abstract_control_directive_1=$__require("211");exports.AbstractControlDirective=abstract_control_directive_1.AbstractControlDirective;var control_container_1=$__require("207");exports.ControlContainer=control_container_1.ControlContainer;var ng_control_name_1=$__require("206");exports.NgControlName=ng_control_name_1.NgControlName;var ng_form_control_1=$__require("20c");exports.NgFormControl=ng_form_control_1.NgFormControl;var ng_model_1=$__require("20d");exports.NgModel=ng_model_1.NgModel;var ng_control_1=$__require("208");exports.NgControl=ng_control_1.NgControl;var ng_control_group_1=$__require("20f");exports.NgControlGroup=ng_control_group_1.NgControlGroup;var ng_form_model_1=$__require("210");exports.NgFormModel=ng_form_model_1.NgFormModel;var ng_form_1=$__require("218");exports.NgForm=ng_form_1.NgForm;var control_value_accessor_1=$__require("209");exports.NG_VALUE_ACCESSOR=control_value_accessor_1.NG_VALUE_ACCESSOR;var default_value_accessor_1=$__require("213");exports.DefaultValueAccessor=default_value_accessor_1.DefaultValueAccessor;var ng_control_status_1=$__require("219");exports.NgControlStatus=ng_control_status_1.NgControlStatus;var checkbox_value_accessor_1=$__require("215");exports.CheckboxControlValueAccessor=checkbox_value_accessor_1.CheckboxControlValueAccessor;var select_control_value_accessor_1=$__require("216");exports.NgSelectOption=select_control_value_accessor_1.NgSelectOption,exports.SelectControlValueAccessor=select_control_value_accessor_1.SelectControlValueAccessor;var directives_1=$__require("21a");exports.FORM_DIRECTIVES=directives_1.FORM_DIRECTIVES,exports.RadioButtonState=directives_1.RadioButtonState;var validators_1=$__require("20b");exports.NG_VALIDATORS=validators_1.NG_VALIDATORS,exports.NG_ASYNC_VALIDATORS=validators_1.NG_ASYNC_VALIDATORS,exports.Validators=validators_1.Validators;var validators_2=$__require("21b");exports.RequiredValidator=validators_2.RequiredValidator,exports.MinLengthValidator=validators_2.MinLengthValidator,exports.MaxLengthValidator=validators_2.MaxLengthValidator,exports.PatternValidator=validators_2.PatternValidator;var form_builder_1=$__require("21c");exports.FormBuilder=form_builder_1.FormBuilder;var form_builder_2=$__require("21c"),radio_control_value_accessor_1=$__require("217"),lang_1=$__require("2b");return exports.FORM_PROVIDERS=lang_1.CONST_EXPR([form_builder_2.FormBuilder,radio_control_value_accessor_1.RadioControlRegistry]),exports.FORM_BINDINGS=exports.FORM_PROVIDERS,module.exports}),$__System.registerDynamic("21e",[],!1,function($__require,$__exports,$__module){var _retrieveGlobal=$__System.get("@@global-helpers").prepareGlobal($__module.id,null,null);return function(){"format global";"use strict"}(),_retrieveGlobal()}),$__System.registerDynamic("21f",["2b","16","38"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),core_1=$__require("16"),collection_1=$__require("38"),NgClass=function(){function NgClass(_iterableDiffers,_keyValueDiffers,_ng
exports.Input=decorators_1.makePropDecorator(directives_2.InputMetadata),exports.Output=decorators_1.makePropDecorator(directives_2.OutputMetadata),exports.HostBinding=decorators_1.makePropDecorator(directives_2.HostBindingMetadata),exports.HostListener=decorators_1.makePropDecorator(directives_2.HostListenerMetadata),module.exports}),$__System.registerDynamic("226",["225"],!0,function($__require,exports,module){"use strict";var decorators_1=$__require("225");return exports.Class=decorators_1.Class,module.exports}),$__System.registerDynamic("227",["2b"],!0,function($__require,exports,module){"use strict";var lang_1=$__require("2b");return exports.enableProdMode=lang_1.enableProdMode,module.exports}),$__System.registerDynamic("228",["2b","8e","41","229"],!0,function($__require,exports,module){"use strict";var lang_1=$__require("2b");exports.Type=lang_1.Type;var async_1=$__require("8e");exports.EventEmitter=async_1.EventEmitter;var exceptions_1=$__require("41");exports.WrappedException=exceptions_1.WrappedException;var exception_handler_1=$__require("229");return exports.ExceptionHandler=exception_handler_1.ExceptionHandler,module.exports}),$__System.registerDynamic("22a",["5a"],!0,function($__require,exports,module){"use strict";var ng_zone_1=$__require("5a");return exports.NgZone=ng_zone_1.NgZone,exports.NgZoneError=ng_zone_1.NgZoneError,module.exports}),$__System.registerDynamic("22b",["a4"],!0,function($__require,exports,module){"use strict";var api_1=$__require("a4");return exports.RootRenderer=api_1.RootRenderer,exports.Renderer=api_1.Renderer,exports.RenderComponentType=api_1.RenderComponentType,module.exports}),$__System.registerDynamic("22c",["38","2b","8e"],!0,function($__require,exports,module){"use strict";var collection_1=$__require("38"),lang_1=$__require("2b"),async_1=$__require("8e"),QueryList=function(){function QueryList(){this._dirty=!0,this._results=[],this._emitter=new async_1.EventEmitter}return Object.defineProperty(QueryList.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(QueryList.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(QueryList.prototype,"first",{get:function(){return collection_1.ListWrapper.first(this._results)},enumerable:!0,configurable:!0}),Object.defineProperty(QueryList.prototype,"last",{get:function(){return collection_1.ListWrapper.last(this._results)},enumerable:!0,configurable:!0}),QueryList.prototype.map=function(fn){return this._results.map(fn)},QueryList.prototype.filter=function(fn){return this._results.filter(fn)},QueryList.prototype.reduce=function(fn,init){return this._results.reduce(fn,init)},QueryList.prototype.forEach=function(fn){this._results.forEach(fn)},QueryList.prototype.toArray=function(){return collection_1.ListWrapper.clone(this._results)},QueryList.prototype[lang_1.getSymbolIterator()]=function(){return this._results[lang_1.getSymbolIterator()]()},QueryList.prototype.toString=function(){return this._results.toString()},QueryList.prototype.reset=function(res){this._results=collection_1.ListWrapper.flatten(res),this._dirty=!1},QueryList.prototype.notifyOnChanges=function(){this._emitter.emit(this)},QueryList.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(QueryList.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),QueryList}();return exports.QueryList=QueryList,module.exports}),$__System.registerDynamic("a7",[],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},TemplateRef=function(){function TemplateRef(){}return Object.defineProperty(TemplateRef.prototype,"elementRef",{get:function(){return null},enumerable:!0,configurable:!0}),TemplateRef}();exports.TemplateRef=TemplateRef;var TemplateRef_=function(_super){function TemplateRef_(_appElement,_viewFactory){_super.call(thi
return _this._asyncInitDone=!0}),_this._asyncInitDone=!1):(_this._asyncInitDone=!0,asyncInitDonePromise=async_1.PromiseWrapper.resolve(!0)),asyncInitDonePromise}),async_1.ObservableWrapper.subscribe(zone.onError,function(error){_this._exceptionHandler.call(error.error,error.stackTrace)}),async_1.ObservableWrapper.subscribe(this._zone.onMicrotaskEmpty,function(_){_this._zone.run(function(){_this.tick()})})}return __extends(ApplicationRef_,_super),ApplicationRef_.prototype.registerBootstrapListener=function(listener){this._bootstrapListeners.push(listener)},ApplicationRef_.prototype.registerDisposeListener=function(dispose){this._disposeListeners.push(dispose)},ApplicationRef_.prototype.registerChangeDetector=function(changeDetector){this._changeDetectorRefs.push(changeDetector)},ApplicationRef_.prototype.unregisterChangeDetector=function(changeDetector){collection_1.ListWrapper.remove(this._changeDetectorRefs,changeDetector)},ApplicationRef_.prototype.waitForAsyncInitializers=function(){return this._asyncInitDonePromise},ApplicationRef_.prototype.run=function(callback){var result,_this=this,zone=this.injector.get(ng_zone_1.NgZone),completer=async_1.PromiseWrapper.completer();return zone.run(function(){try{result=callback(),lang_1.isPromise(result)&&async_1.PromiseWrapper.then(result,function(ref){completer.resolve(ref)},function(err,stackTrace){completer.reject(err,stackTrace),_this._exceptionHandler.call(err,stackTrace)})}catch(e){throw _this._exceptionHandler.call(e,e.stack),e}}),lang_1.isPromise(result)?completer.promise:result},ApplicationRef_.prototype.bootstrap=function(componentFactory){var _this=this;if(!this._asyncInitDone)throw new exceptions_1.BaseException("Cannot bootstrap as there are still asynchronous initializers running. Wait for them using waitForAsyncInitializers().");return this.run(function(){_this._rootComponentTypes.push(componentFactory.componentType);var compRef=componentFactory.create(_this._injector,[],componentFactory.selector);compRef.onDestroy(function(){_this._unloadComponent(compRef)});var testability=compRef.injector.get(testability_1.Testability,null);lang_1.isPresent(testability)&&compRef.injector.get(testability_1.TestabilityRegistry).registerApplication(compRef.location.nativeElement,testability),_this._loadComponent(compRef);var c=_this._injector.get(console_1.Console);return lang_1.assertionsEnabled()&&c.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode."),compRef})},ApplicationRef_.prototype._loadComponent=function(componentRef){this._changeDetectorRefs.push(componentRef.changeDetectorRef),this.tick(),this._rootComponents.push(componentRef),this._bootstrapListeners.forEach(function(listener){return listener(componentRef)})},ApplicationRef_.prototype._unloadComponent=function(componentRef){collection_1.ListWrapper.contains(this._rootComponents,componentRef)&&(this.unregisterChangeDetector(componentRef.changeDetectorRef),collection_1.ListWrapper.remove(this._rootComponents,componentRef))},Object.defineProperty(ApplicationRef_.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef_.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),ApplicationRef_.prototype.tick=function(){if(this._runningTick)throw new exceptions_1.BaseException("ApplicationRef.tick is called recursively");var s=ApplicationRef_._tickScope();try{this._runningTick=!0,this._changeDetectorRefs.forEach(function(detector){return detector.detectChanges()}),this._enforceNoNewChanges&&this._changeDetectorRefs.forEach(function(detector){return detector.checkNoChanges()})}finally{this._runningTick=!1,profile_1.wtfLeave(s)}},ApplicationRef_.prototype.dispose=function(){collection_1.ListWrapper.clone(this._rootComponents).forEach(function(ref){return ref.destroy()}),this._disposeListeners.forEach(function(dispose){return dispose()}),this._platform._applicationDisposed(this)},Object.defineProperty(ApplicationRef_.prototype,"componentTypes",{get:function(){return this._root
},generatorOrNext.error&&(errorFn=this._isAsync?function(err){setTimeout(function(){return generatorOrNext.error(err)})}:function(err){generatorOrNext.error(err)}),generatorOrNext.complete&&(completeFn=this._isAsync?function(){setTimeout(function(){return generatorOrNext.complete()})}:function(){generatorOrNext.complete()})):(schedulerFn=this._isAsync?function(value){setTimeout(function(){return generatorOrNext(value)})}:function(value){generatorOrNext(value)},error&&(errorFn=this._isAsync?function(err){setTimeout(function(){return error(err)})}:function(err){error(err)}),complete&&(completeFn=this._isAsync?function(){setTimeout(function(){return complete()})}:function(){complete()})),_super.prototype.subscribe.call(this,schedulerFn,errorFn,completeFn)},EventEmitter}(Subject_1.Subject);return exports.EventEmitter=EventEmitter,module.exports}),$__System.registerDynamic("70",[],!0,function($__require,exports,module){"use strict";!function(ViewType){ViewType[ViewType.HOST=0]="HOST",ViewType[ViewType.COMPONENT=1]="COMPONENT",ViewType[ViewType.EMBEDDED=2]="EMBEDDED"}(exports.ViewType||(exports.ViewType={}));exports.ViewType;return module.exports}),$__System.registerDynamic("a2",[],!0,function($__require,exports,module){"use strict";var ElementRef=function(){function ElementRef(nativeElement){this.nativeElement=nativeElement}return ElementRef}();return exports.ElementRef=ElementRef,module.exports}),$__System.registerDynamic("249",["2b"],!0,function($__require,exports,module){"use strict";function detectWTF(){var wtf=lang_1.global.wtf;return wtf&&(trace=wtf.trace)?(events=trace.events,!0):!1}function createScope(signature,flags){return void 0===flags&&(flags=null),events.createScope(signature,flags)}function leave(scope,returnValue){return trace.leaveScope(scope,returnValue),returnValue}function startTimeRange(rangeType,action){return trace.beginTimeRange(rangeType,action)}function endTimeRange(range){trace.endTimeRange(range)}var trace,events,lang_1=$__require("2b");return exports.detectWTF=detectWTF,exports.createScope=createScope,exports.leave=leave,exports.startTimeRange=startTimeRange,exports.endTimeRange=endTimeRange,module.exports}),$__System.registerDynamic("b1",["249"],!0,function($__require,exports,module){"use strict";function noopScope(arg0,arg1){return null}var impl=$__require("249");return exports.wtfEnabled=impl.detectWTF(),exports.wtfCreateScope=exports.wtfEnabled?impl.createScope:function(signature,flags){return noopScope},exports.wtfLeave=exports.wtfEnabled?impl.leave:function(s,r){return r},exports.wtfStartTimeRange=exports.wtfEnabled?impl.startTimeRange:function(rangeType,action){return null},exports.wtfEndTimeRange=exports.wtfEnabled?impl.endTimeRange:function(r){return null},module.exports}),$__System.registerDynamic("a3",["38","41","2b","b1"],!0,function($__require,exports,module){"use strict";var collection_1=$__require("38"),exceptions_1=$__require("41"),lang_1=$__require("2b"),profile_1=$__require("b1"),ViewContainerRef=function(){function ViewContainerRef(){}return Object.defineProperty(ViewContainerRef.prototype,"element",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef.prototype,"injector",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef.prototype,"parentInjector",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef.prototype,"length",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),ViewContainerRef}();exports.ViewContainerRef=ViewContainerRef;var ViewContainerRef_=function(){function ViewContainerRef_(_element){this._element=_element,this._createComponentInContainerScope=profile_1.wtfCreateScope("ViewContainerRef#createComponent()"),this._insertScope=profile_1.wtfCreateScope("ViewContainerRef#insert()"),this._removeScope=profile_1.wtfCreateScope("ViewContainerRef#remove()"),this._detachScope=profile_1.wtfCreateScope("ViewContainerRef#detach()")}
},DefaultKeyValueDiffer.prototype._reset=function(){if(this.isDirty){var record;for(record=this._previousMapHead=this._mapHead;null!==record;record=record._next)record._nextPrevious=record._next;for(record=this._changesHead;null!==record;record=record._nextChanged)record.previousValue=record.currentValue;for(record=this._additionsHead;null!=record;record=record._nextAdded)record.previousValue=record.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},DefaultKeyValueDiffer.prototype._truncate=function(lastRecord,record){for(;null!==record;){null===lastRecord?this._mapHead=null:lastRecord._next=null;var nextRecord=record._next;this._addToRemovals(record),lastRecord=record,record=nextRecord}for(var rec=this._removalsHead;null!==rec;rec=rec._nextRemoved)rec.previousValue=rec.currentValue,rec.currentValue=null,this._records["delete"](rec.key)},DefaultKeyValueDiffer.prototype._isInRemovals=function(record){return record===this._removalsHead||null!==record._nextRemoved||null!==record._prevRemoved},DefaultKeyValueDiffer.prototype._addToRemovals=function(record){null===this._removalsHead?this._removalsHead=this._removalsTail=record:(this._removalsTail._nextRemoved=record,record._prevRemoved=this._removalsTail,this._removalsTail=record)},DefaultKeyValueDiffer.prototype._removeFromSeq=function(prev,record){var next=record._next;null===prev?this._mapHead=next:prev._next=next},DefaultKeyValueDiffer.prototype._removeFromRemovals=function(record){var prev=record._prevRemoved,next=record._nextRemoved;null===prev?this._removalsHead=next:prev._nextRemoved=next,null===next?this._removalsTail=prev:next._prevRemoved=prev,record._prevRemoved=record._nextRemoved=null},DefaultKeyValueDiffer.prototype._addToAdditions=function(record){null===this._additionsHead?this._additionsHead=this._additionsTail=record:(this._additionsTail._nextAdded=record,this._additionsTail=record)},DefaultKeyValueDiffer.prototype._addToChanges=function(record){null===this._changesHead?this._changesHead=this._changesTail=record:(this._changesTail._nextChanged=record,this._changesTail=record)},DefaultKeyValueDiffer.prototype.toString=function(){var record,items=[],previous=[],changes=[],additions=[],removals=[];for(record=this._mapHead;null!==record;record=record._next)items.push(lang_1.stringify(record));for(record=this._previousMapHead;null!==record;record=record._nextPrevious)previous.push(lang_1.stringify(record));for(record=this._changesHead;null!==record;record=record._nextChanged)changes.push(lang_1.stringify(record));for(record=this._additionsHead;null!==record;record=record._nextAdded)additions.push(lang_1.stringify(record));for(record=this._removalsHead;null!==record;record=record._nextRemoved)removals.push(lang_1.stringify(record));return"map: "+items.join(", ")+"\nprevious: "+previous.join(", ")+"\nadditions: "+additions.join(", ")+"\nchanges: "+changes.join(", ")+"\nremovals: "+removals.join(", ")+"\n"},DefaultKeyValueDiffer.prototype._forEach=function(obj,fn){obj instanceof Map?obj.forEach(fn):collection_1.StringMapWrapper.forEach(obj,fn)},DefaultKeyValueDiffer}();exports.DefaultKeyValueDiffer=DefaultKeyValueDiffer;var KeyValueChangeRecord=function(){function KeyValueChangeRecord(key){this.key=key,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 KeyValueChangeRecord.prototype.toString=function(){return lang_1.looseIdentical(this.previousValue,this.currentValue)?lang_1.stringify(this.key):lang_1.stringify(this.key)+"["+lang_1.stringify(this.previousValue)+"->"+lang_1.stringify(this.currentValue)+"]"},KeyValueChangeRecord}();return exports.KeyValueChangeRecord=KeyValueChangeRecord,module.exports}),$__System.registerDynamic("77",["2b"],!0,function($__require,exports,module){"use strict";function isDefaultChangeDetectionStrategy(changeDetectionStrategy){return lang_1.isBlank(changeDetectionStrategy)||changeDetectionStrategy===ChangeDetecti
return key===INJECTOR_KEY?this:upperBoundVisibility instanceof metadata_1.SelfMetadata?this._getByKeySelf(key,notFoundValue):this._getByKeyDefault(key,notFoundValue,lowerBoundVisibility)},ReflectiveInjector_.prototype._throwOrNull=function(key,notFoundValue){if(notFoundValue!==injector_1.THROW_IF_NOT_FOUND)return notFoundValue;throw new reflective_exceptions_1.NoProviderError(this,key)},ReflectiveInjector_.prototype._getByKeySelf=function(key,notFoundValue){var obj=this._strategy.getObjByKeyId(key.id);return obj!==UNDEFINED?obj:this._throwOrNull(key,notFoundValue)},ReflectiveInjector_.prototype._getByKeyDefault=function(key,notFoundValue,lowerBoundVisibility){var inj;for(inj=lowerBoundVisibility instanceof metadata_1.SkipSelfMetadata?this._parent:this;inj instanceof ReflectiveInjector_;){var inj_=inj,obj=inj_._strategy.getObjByKeyId(key.id);if(obj!==UNDEFINED)return obj;inj=inj_._parent}return null!==inj?inj.get(key.token,notFoundValue):this._throwOrNull(key,notFoundValue)},Object.defineProperty(ReflectiveInjector_.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+_mapProviders(this,function(b){return' "'+b.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),ReflectiveInjector_.prototype.toString=function(){return this.displayName},ReflectiveInjector_}();exports.ReflectiveInjector_=ReflectiveInjector_;var INJECTOR_KEY=reflective_key_1.ReflectiveKey.get(injector_1.Injector);return module.exports}),$__System.registerDynamic("9d",["2b"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),InjectMetadata=function(){function InjectMetadata(token){this.token=token}return InjectMetadata.prototype.toString=function(){return"@Inject("+lang_1.stringify(this.token)+")"},InjectMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object])],InjectMetadata)}();exports.InjectMetadata=InjectMetadata;var OptionalMetadata=function(){function OptionalMetadata(){}return OptionalMetadata.prototype.toString=function(){return"@Optional()"},OptionalMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],OptionalMetadata)}();exports.OptionalMetadata=OptionalMetadata;var DependencyMetadata=function(){function DependencyMetadata(){}return Object.defineProperty(DependencyMetadata.prototype,"token",{get:function(){return null},enumerable:!0,configurable:!0}),DependencyMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],DependencyMetadata)}();exports.DependencyMetadata=DependencyMetadata;var InjectableMetadata=function(){function InjectableMetadata(){}return InjectableMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],InjectableMetadata)}();exports.InjectableMetadata=InjectableMetadata;var SelfMetadata=function(){function SelfMetadata(){}return SelfMetadata.prototype.toString=function(){return"@Self()"},SelfMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],SelfMetadata)}();exports.SelfMetadata=SelfMetadata;var SkipSelfMetadata=function(){function SkipSelfMetadata(){}return SkipSelfMetadata.prototype.toString=function(){return"@SkipSelf()"},SkipSelfMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],SkipSelfMetadata)}();exports.SkipSelfMetadata=SkipSelfMetadata;var HostMetadata=function(){function HostMetadata(){}return HostMetadata.prototype.toString=function(){return"@Host()"},HostMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],HostMetadata)}();ret
v1=p1,v2=p2,v3=p3,v4=p4,v5=p5,v6=p6,v7=p7,v8=p8,result=fn(p0,p1,p2,p3,p4,p5,p6,p7,p8)),result}}function pureProxy10(fn){var result,v0,v1,v2,v3,v4,v5,v6,v7,v8,v9;return v0=v1=v2=v3=v4=v5=v6=v7=v8=v9=change_detection_1.uninitialized,function(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9){return lang_1.looseIdentical(v0,p0)&&lang_1.looseIdentical(v1,p1)&&lang_1.looseIdentical(v2,p2)&&lang_1.looseIdentical(v3,p3)&&lang_1.looseIdentical(v4,p4)&&lang_1.looseIdentical(v5,p5)&&lang_1.looseIdentical(v6,p6)&&lang_1.looseIdentical(v7,p7)&&lang_1.looseIdentical(v8,p8)&&lang_1.looseIdentical(v9,p9)||(v0=p0,v1=p1,v2=p2,v3=p3,v4=p4,v5=p5,v6=p6,v7=p7,v8=p8,v9=p9,result=fn(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9)),result}}var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},lang_1=$__require("2b"),collection_1=$__require("38"),exceptions_1=$__require("41"),element_1=$__require("a1"),exceptions_2=$__require("b2"),change_detection_1=$__require("74"),di_1=$__require("3a"),api_1=$__require("a4"),application_tokens_1=$__require("9e"),ViewUtils=function(){function ViewUtils(_renderer,_appId){this._renderer=_renderer,this._appId=_appId,this._nextCompTypeId=0}return ViewUtils.prototype.createRenderComponentType=function(templateUrl,slotCount,encapsulation,styles){return new api_1.RenderComponentType(this._appId+"-"+this._nextCompTypeId++,templateUrl,slotCount,encapsulation,styles)},ViewUtils.prototype.renderComponent=function(renderComponentType){return this._renderer.renderComponent(renderComponentType)},ViewUtils=__decorate([di_1.Injectable(),__param(1,di_1.Inject(application_tokens_1.APP_ID)),__metadata("design:paramtypes",[api_1.RootRenderer,String])],ViewUtils)}();exports.ViewUtils=ViewUtils,exports.flattenNestedViewRenderNodes=flattenNestedViewRenderNodes;var EMPTY_ARR=lang_1.CONST_EXPR([]);return exports.ensureSlotCount=ensureSlotCount,exports.MAX_INTERPOLATION_VALUES=9,exports.interpolate=interpolate,exports.checkBinding=checkBinding,exports.arrayLooseIdentical=arrayLooseIdentical,exports.mapLooseIdentical=mapLooseIdentical,exports.castByValue=castByValue,exports.pureProxy1=pureProxy1,exports.pureProxy2=pureProxy2,exports.pureProxy3=pureProxy3,exports.pureProxy4=pureProxy4,exports.pureProxy5=pureProxy5,exports.pureProxy6=pureProxy6,exports.pureProxy7=pureProxy7,exports.pureProxy8=pureProxy8,exports.pureProxy9=pureProxy9,exports.pureProxy10=pureProxy10,module.exports}),$__System.registerDynamic("62",["2b","41","87"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),exceptions_1=$__require("41"),view_utils_1=$__require("87"),ComponentRef=function(){function ComponentRef(){}return Object
exports.PACKAGE_ROOT_URL=application_tokens_1.PACKAGE_ROOT_URL,exports.PLATFORM_INITIALIZER=application_tokens_1.PLATFORM_INITIALIZER,__export($__require("22a")),__export($__require("22b")),__export($__require("a5"));var debug_node_1=$__require("52");return exports.DebugElement=debug_node_1.DebugElement,exports.DebugNode=debug_node_1.DebugNode,exports.asNativeElements=debug_node_1.asNativeElements,__export($__require("5e")),__export($__require("224")),__export($__require("9a")),__export($__require("22e")),__export($__require("253")),__export($__require("90")),module.exports}),$__System.registerDynamic("2b",[],!0,function($__require,exports,module){"use strict";function scheduleMicroTask(fn){Zone.current.scheduleMicroTask("scheduleMicrotask",fn)}function getTypeNameForDebugging(type){return type.name?type.name:typeof type}function lockMode(){_modeLocked=!0}function enableProdMode(){if(_modeLocked)throw"Cannot enable prod mode after platform setup.";_devMode=!1}function assertionsEnabled(){return _devMode}function CONST_EXPR(expr){return expr}function CONST(){return function(target){return target}}function isPresent(obj){return void 0!==obj&&null!==obj}function isBlank(obj){return void 0===obj||null===obj}function isBoolean(obj){return"boolean"==typeof obj}function isNumber(obj){return"number"==typeof obj}function isString(obj){return"string"==typeof obj}function isFunction(obj){return"function"==typeof obj}function isType(obj){return isFunction(obj)}function isStringMap(obj){return"object"==typeof obj&&null!==obj}function isPromise(obj){return obj instanceof _global.Promise}function isArray(obj){return Array.isArray(obj)}function isDate(obj){return obj instanceof exports.Date&&!isNaN(obj.valueOf())}function noop(){}function stringify(token){if("string"==typeof token)return token;if(void 0===token||null===token)return""+token;if(token.name)return token.name;if(token.overriddenName)return token.overriddenName;var res=token.toString(),newLineIndex=res.indexOf("\n");return-1===newLineIndex?res:res.substring(0,newLineIndex)}function serializeEnum(val){return val}function deserializeEnum(val,values){return val}function resolveEnumToken(enumValue,val){return enumValue[val]}function looseIdentical(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function getMapKey(value){return value}function normalizeBlank(obj){return isBlank(obj)?null:obj}function normalizeBool(obj){return isBlank(obj)?!1:obj}function isJsObject(o){return null!==o&&("function"==typeof o||"object"==typeof o)}function print(obj){console.log(obj)}function warn(obj){console.warn(obj)}function setValueOnPath(global,path,value){for(var parts=path.split("."),obj=global;parts.length>1;){var name=parts.shift();obj=obj.hasOwnProperty(name)&&isPresent(obj[name])?obj[name]:obj[name]={}}void 0!==obj&&null!==obj||(obj={}),obj[parts.shift()]=value}function getSymbolIterator(){if(isBlank(_symbolIterator))if(isPresent(globalScope.Symbol)&&isPresent(Symbol.iterator))_symbolIterator=Symbol.iterator;else for(var keys=Object.getOwnPropertyNames(Map.prototype),i=0;i<keys.length;++i){var key=keys[i];"entries"!==key&&"size"!==key&&Map.prototype[key]===Map.prototype.entries&&(_symbolIterator=key)}return _symbolIterator}function evalExpression(sourceUrl,expr,declarations,vars){var fnBody=declarations+"\nreturn "+expr+"\n//# sourceURL="+sourceUrl,fnArgNames=[],fnArgValues=[];for(var argName in vars)fnArgNames.push(argName),fnArgValues.push(vars[argName]);return(new(Function.bind.apply(Function,[void 0].concat(fnArgNames.concat(fnBody))))).apply(void 0,fnArgValues)}function isPrimitive(obj){return!isJsObject(obj)}function hasConstructor(value,type){return value.constructor===type}function bitWiseOr(values){return values.reduce(function(a,b){return a|b})}function bitWiseAnd(values){return values.reduce(function(a,b){return a&b})}function escape(s){return _global.encodeURI(s)}var globalScope,global=this,__extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.creat
this.options[index]||null},remove:function(index){var dkOption=this.item(index);dkOption.parentNode.removeChild(dkOption),this.options.splice(index,1),this.data.select.remove(index),this.select(this.data.select.selectedIndex),this.length-=1},init:function(sel,opts){var i,dk=Dropkick.build(sel,"dk"+Dropkick.uid);if(this.data={},this.data.select=sel,this.data.elem=dk.elem,this.data.settings=_.extend({},defaults,opts),this.disabled=sel.disabled,this.form=sel.form,this.length=sel.length,this.multiple=sel.multiple,this.options=dk.options.slice(0),this.selectedIndex=sel.selectedIndex,this.selectedOptions=dk.selected.slice(0),this.value=sel.value,this.data.cacheID=Dropkick.uid,Dropkick.cache[this.data.cacheID]=this,this.data.settings.initialize.call(this),Dropkick.uid+=1,this._changeListener||(sel.addEventListener("change",this),this._changeListener=!0),!isMobile||this.data.settings.mobile){if(sel.parentNode.insertBefore(this.data.elem,sel),sel.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(i=0;i<this.options.length;i++)this.options[i].addEventListener("mouseover",this);_docListener||(document.addEventListener("click",Dropkick.onDocClick),isIframe&&parent.document.addEventListener("click",Dropkick.onDocClick),_docListener=!0)}return this},close:function(){var i,dk=this.data.elem;if(!this.isOpen||this.multiple)return!1;for(i=0;i<this.options.length;i++)_.removeClass(this.options[i],"dk-option-highlight");dk.lastChild.setAttribute("aria-expanded","false"),_.removeClass(dk.lastChild,"dk-select-options-highlight"),_.removeClass(dk,"dk-select-open-(up|down)"),this.isOpen=!1,this.data.settings.close.call(this)},open:_.deferred(function(){var dropHeight,above,below,direction,dkTop,dkBottom,dk=this.data.elem,dkOptsList=dk.lastChild;return dkTop=isIE?_.offset(dk).top-document.documentElement.scrollTop:_.offset(dk).top-window.scrollY,dkBottom=window.innerHeight-(dkTop+dk.offsetHeight),this.isOpen||this.multiple?!1:(dkOptsList.style.display="block",dropHeight=dkOptsList.offsetHeight,dkOptsList.style.display="",above=dkTop>dropHeight,below=dkBottom>dropHeight,direction=above&&!below?"-up":"-down",this.isOpen=!0,_.addClass(dk,"dk-select-open"+direction),dkOptsList.setAttribute("aria-expanded","true"),this._scrollTo(this.options.length-1),this._scrollTo(this.selectedIndex),void this.data.settings.open.call(this))}),disable:function(elem,disabled){var disabledClass="dk-option-disabled";0!==arguments.length&&"boolean"!=typeof elem||(disabled=elem===undefined,elem=this.data.elem,disabledClass="dk-select-disabled",this.disabled=disabled),disabled===undefined&&(disabled=!0),"number"==typeof elem&&(elem=this.item(elem)),_[disabled?"addClass":"removeClass"](elem,disabledClass)},select:function(elem,disabled){var i,index,option,combobox,select=this.data.select;if("number"==typeof elem&&(elem=this.item(elem)),"string"==typeof elem)for(i=0;i<this.length;i++)this.options[i].getAttribute("data-value")===elem&&(elem=this.options[i]);return!elem||"string"==typeof elem||!disabled&&_.hasClass(elem,"dk-option-disabled")?!1:_.hasClass(elem,"dk-option")?(index=this.options.indexOf(elem),option=select.options[index],this.multiple?(_.toggleClass(elem,"dk-option-selected"),option.selected=!option.selected,_.hasClass(elem,"dk-option-selected")?(elem.setAttribute("aria-selected","true"),this.selectedOptions.push(elem)):(elem.setAttribute("aria-selected","false"),index=this.selectedOptions.indexOf(elem),this.selectedOptions.splice(index,1))):(combobox=this.data.elem.firstChild,this.selectedOptions.length&&(_.removeClass(this.selectedOptions[0],"dk-option-selected"),this.selectedOptions[0].setAttribute("aria-selected","false")),_.addClass(elem,"dk-option-selected"),elem.setAttribute("aria-selected","true"),combobox.setAttribute("aria-activedescendant",elem.id),combobox.className="dk-selected "+option.className,combobox.innerHTML=option.text,this.selected
var ptr=schema.items._pointer||JsonPointer.join(schema._pointer||this.pointer,["items"]);res=schema.items,res._isArray=!0,res._pointer=ptr,res=this.unwrapArray(res)}return res}},{key:"prepareModel",value:function(){if(!this.componentSchema)throw new Error("Can't load component schema at "+this.pointer);this.dereference();var schema=this.componentSchema;BaseComponent.joinAllOf(schema,{omitParent:!0}),schema=this.unwrapArray(schema),runInjectors(schema,schema,schema._pointer||this.pointer),schema.derived=schema.derived||[],schema.isTrivial||this.prepareObjectPropertiesData(schema),this.schema=schema,this.initDerived()}},{key:"initDerived",value:function(){var _this=this;if(this.schema.derived.length){var enumArr=this.schema.properties[this.schema.properties.length-1]["enum"];enumArr&&!function(){var enumOrder={};enumArr.forEach(function(enumItem,idx){enumOrder[enumItem.val]=idx}),_this.schema.derived.sort(function(a,b){return enumOrder[a.name]>enumOrder[b.name]})}(),this.selectDerived(0)}}},{key:"prepareObjectPropertiesData",value:function(schema){var _this2=this,requiredMap={};schema.required&&schema.required.forEach(function(prop){return requiredMap[prop]=!0});var discriminatorFieldIdx=-1,props=schema.properties&&_Object$keys(schema.properties).map(function(prop,idx){var propertySchema=schema.properties[prop],propPointer=propertySchema._pointer||JsonPointer.join(schema._pointer||_this2.pointer,["properties",prop]);return propertySchema=JsonSchema.injectPropertyData(propertySchema,prop,propPointer),propertySchema._pointer===_this2.childFor&&(propertySchema._pointer=null),propertySchema.required=!!requiredMap[prop],propertySchema.isDiscriminator=schema.discriminator===prop,propertySchema.isDiscriminator&&(discriminatorFieldIdx=idx),propertySchema});if(props=props||[],schema.additionalProperties&&schema.additionalProperties!==!1){var propsSchema=this.prepareAdditionalProperties(schema.additionalProperties);propsSchema._additional=!0,props.push(propsSchema)}if(discriminatorFieldIdx>-1){var discrProp=props.splice(discriminatorFieldIdx,1);props.push(discrProp[0])}this.skipReadOnly&&(props=props.filter(function(prop){return!prop.readOnly})),schema.properties=props}},{key:"prepareAdditionalProperties",value:function(schema){return JsonSchema.injectPropertyData(schema,"<Additional Properties> *",JsonPointer.join(schema._pointer||this.pointer,["additionalProperties"]))}}],[{key:"injectPropertyData",value:function(propertySchema,propertyName,propPointer){return propertySchema=_Object$assign({},propertySchema),propertySchema._name=propertyName,runInjectors(propertySchema,propertySchema,propPointer),propertySchema}}]);var _JsonSchema=JsonSchema;return JsonSchema=Reflect.metadata("parameters",[[SchemaManager],[ElementRef]])(JsonSchema)||JsonSchema,JsonSchema=RedocComponent({selector:"json-schema",template:'\n <span *ngIf="schema.isTrivial" 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 <
2016-03-27 13:14:41 +03:00
2016-01-25 00:27:39 +03:00
//# sourceMappingURL=redoc.min.js.map