redoc/dist/redoc.min.js

1009 lines
1.1 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-05-20 23:13:38 +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-05-20 23:13:38 +03:00
//# sourceMappingURL=Reflect.js.map
!function e(t,n,r){function s(i,u){if(!n[i]){if(!t[i]){var c="function"==typeof require&&require;if(!u&&c)return c(i,!0);if(o)return o(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var f=n[i]={exports:{}};t[i][0].call(f.exports,function(n){var e=t[i][1][n];return s(e?e:n)},f,f.exports,e,t,n,r)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<r.length;i++)s(r[i]);return s}({1:[function(t,n,e){(function(n){"use strict";if(t(189),t(2),n._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");n._babelPolyfill=!0}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{189:189,2:2}],2:[function(t,n,e){n.exports=t(190)},{190:190}],3:[function(t,n,e){n.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],4:[function(t,n,e){var r=t(84)("unscopables"),o=Array.prototype;void 0==o[r]&&t(32)(o,r,{}),n.exports=function(t){o[r][t]=!0}},{32:32,84:84}],5:[function(t,n,e){var r=t(39);n.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},{39:39}],6:[function(t,n,e){"use strict";var r=t(81),o=t(77),i=t(80);n.exports=[].copyWithin||function copyWithin(t,n){var e=r(this),u=i(e.length),c=o(t,u),a=o(n,u),s=arguments,f=s.length>2?s[2]:void 0,l=Math.min((void 0===f?u:o(f,u))-a,u-c),h=1;for(c>a&&a+l>c&&(h=-1,a+=l-1,c+=l-1);l-- >0;)a in e?e[c]=e[a]:delete e[c],c+=h,a+=h;return e}},{77:77,80:80,81:81}],7:[function(t,n,e){"use strict";var r=t(81),o=t(77),i=t(80);n.exports=[].fill||function fill(t){for(var n=r(this),e=i(n.length),u=arguments,c=u.length,a=o(c>1?u[1]:void 0,e),s=c>2?u[2]:void 0,f=void 0===s?e:o(s,e);f>a;)n[a++]=t;return n}},{77:77,80:80,81:81}],8:[function(t,n,e){var r=t(79),o=t(80),i=t(77);n.exports=function(t){return function(n,e,u){var c,a=r(n),s=o(a.length),f=i(u,s);if(t&&e!=e){for(;s>f;)if(c=a[f++],c!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f;return!t&&-1}}},{77:77,79:79,80:80}],9:[function(t,n,e){var r=t(18),o=t(35),i=t(81),u=t(80),c=t(10);n.exports=function(t){var n=1==t,e=2==t,a=3==t,s=4==t,f=6==t,l=5==t||f;return function(h,p,v){for(var g,y,d=i(h),m=o(d),x=r(p,v,3),S=u(m.length),w=0,b=n?c(h,S):e?c(h,0):void 0;S>w;w++)if((l||w in m)&&(g=m[w],y=x(g,w,d),t))if(n)b[w]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:b.push(g)}else if(s)return!1;return f?-1:a||s?s:b}}},{10:10,18:18,35:35,80:80,81:81}],10:[function(t,n,e){var r=t(39),o=t(37),i=t(84)("species");n.exports=function(t,n){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&(e=e[i],null===e&&(e=void 0))),new(void 0===e?Array:e)(n)}},{37:37,39:39,84:84}],11:[function(t,n,e){var r=t(12),o=t(84)("toStringTag"),i="Arguments"==r(function(){return arguments}());n.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=(n=Object(t))[o])?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},{12:12,84:84}],12:[function(t,n,e){var r={}.toString;n.exports=function(t){return r.call(t).slice(8,-1)}},{}],13:[function(t,n,e){"use strict";var r=t(47),o=t(32),i=t(61),u=t(18),c=t(70),a=t(19),s=t(28),f=t(43),l=t(45),h=t(83)("id"),p=t(31),v=t(39),g=t(66),y=t(20),d=Object.isExtensible||v,m=y?"_s":"size",x=0,S=function(t,n){if(!v(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!p(t,h)){if(!d(t))return"F";if(!n)return"E";o(t,h,++x)}return"O"+t[h]},w=function(t,n){var e,r=S(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};n.exports={getConstructor:function(t,n,e,o){var f=t(function(t,i){c(t,f,n),t._i=r.create(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=i&&s(i,e,t[o],t)});return i(f.prototype,{clear:function clear(){for(var t=this,n=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete n[e.i];t._f=t._l=void 0,t[m]=0},"delete":function(t){var n=this,e=w(n,t);if(e){var r=e.n,o=e.p;delete n._i[e.i],e.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==e&&(n._f=r),n._l==e&&(n._l=o),n[m]--}return!!e},for
tanh:function tanh(t){var n=o(t=+t),e=o(-t);return n==1/0?1:e==1/0?-1:(n-e)/(i(t)+i(-t))}})},{23:23,50:50}],114:[function(t,n,e){var r=t(23);r(r.S,"Math",{trunc:function trunc(t){return(t>0?Math.floor:Math.ceil)(t)}})},{23:23}],115:[function(t,n,e){"use strict";var r=t(47),o=t(30),i=t(31),u=t(12),c=t(82),a=t(25),s=t(75).trim,f="Number",l=o[f],h=l,p=l.prototype,v=u(r.create(p))==f,g="trim"in String.prototype,y=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=g?n.trim():s(n,3);var e,r,o,i=n.charCodeAt(0);if(43===i||45===i){if(e=n.charCodeAt(2),88===e||120===e)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+n}for(var u,a=n.slice(2),f=0,l=a.length;l>f;f++)if(u=a.charCodeAt(f),48>u||u>o)return NaN;return parseInt(a,r)}}return+n};l(" 0o1")&&l("0b1")&&!l("+0x1")||(l=function Number(t){var n=arguments.length<1?0:t,e=this;return e instanceof l&&(v?a(function(){p.valueOf.call(e)}):u(e)!=f)?new h(y(n)):y(n)},r.each.call(t(20)?r.getNames(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),function(t){i(h,t)&&!i(l,t)&&r.setDesc(l,t,r.getDesc(h,t))}),l.prototype=p,p.constructor=l,t(62)(o,f,l))},{12:12,20:20,25:25,30:30,31:31,47:47,62:62,75:75,82:82}],116:[function(t,n,e){var r=t(23);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},{23:23}],117:[function(t,n,e){var r=t(23),o=t(30).isFinite;r(r.S,"Number",{isFinite:function isFinite(t){return"number"==typeof t&&o(t)}})},{23:23,30:30}],118:[function(t,n,e){var r=t(23);r(r.S,"Number",{isInteger:t(38)})},{23:23,38:38}],119:[function(t,n,e){var r=t(23);r(r.S,"Number",{isNaN:function isNaN(t){return t!=t}})},{23:23}],120:[function(t,n,e){var r=t(23),o=t(38),i=Math.abs;r(r.S,"Number",{isSafeInteger:function isSafeInteger(t){return o(t)&&i(t)<=9007199254740991}})},{23:23,38:38}],121:[function(t,n,e){var r=t(23);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{23:23}],122:[function(t,n,e){var r=t(23);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{23:23}],123:[function(t,n,e){var r=t(23);r(r.S,"Number",{parseFloat:parseFloat})},{23:23}],124:[function(t,n,e){var r=t(23);r(r.S,"Number",{parseInt:parseInt})},{23:23}],125:[function(t,n,e){var r=t(23);r(r.S+r.F,"Object",{assign:t(54)})},{23:23,54:54}],126:[function(t,n,e){var r=t(39);t(55)("freeze",function(t){return function freeze(n){return t&&r(n)?t(n):n}})},{39:39,55:55}],127:[function(t,n,e){var r=t(79);t(55)("getOwnPropertyDescriptor",function(t){return function getOwnPropertyDescriptor(n,e){return t(r(n),e)}})},{55:55,79:79}],128:[function(t,n,e){t(55)("getOwnPropertyNames",function(){return t(29).get})},{29:29,55:55}],129:[function(t,n,e){var r=t(81);t(55)("getPrototypeOf",function(t){return function getPrototypeOf(n){return t(r(n))}})},{55:55,81:81}],130:[function(t,n,e){var r=t(39);t(55)("isExtensible",function(t){return function isExtensible(n){return r(n)?t?t(n):!0:!1}})},{39:39,55:55}],131:[function(t,n,e){var r=t(39);t(55)("isFrozen",function(t){return function isFrozen(n){return r(n)?t?t(n):!1:!0}})},{39:39,55:55}],132:[function(t,n,e){var r=t(39);t(55)("isSealed",function(t){return function isSealed(n){return r(n)?t?t(n):!1:!0}})},{39:39,55:55}],133:[function(t,n,e){var r=t(23);r(r.S,"Object",{is:t(64)})},{23:23,64:64}],134:[function(t,n,e){var r=t(81);t(55)("keys",function(t){return function keys(n){return t(r(n))}})},{55:55,81:81}],135:[function(t,n,e){var r=t(39);t(55)("preventExtensions",function(t){return function preventExtensions(n){return t&&r(n)?t(n):n}})},{39:39,55:55}],136:[function(t,n,e){var r=t(39);t(55)("seal",function(t){return function seal(n){return t&&r(n)?t(n):n}})},{39:39,55:55}],137:[function(t,n,e){var r=t(23);r(r.S,"Object",{setPrototypeOf:t(65).set})},{23:23,65:65}],138:[function(t,n,e){"use strict";var r=t(11),o={};o[t(84)("toStringTag")]="z",o+""!="[object z]"&&t(62)(Object.prototype,"toString",function toString(){return"[object "+r(this)+"]"},!0)},{11:11,62:62,84:84}],139:[
2016-03-15 00:42:27 +03:00
2016-05-10 11:57:40 +03:00
!function(a){function b(a,b,e){return 4===arguments.length?c.apply(this,arguments):void d(a,{declarative:!0,deps:b,declare:e})}function c(a,b,c,e){d(a,{declarative:!1,deps:b,executingRequire:c,execute:e})}function d(a,b){b.name=a,a in p||(p[a]=b),b.normalizedDeps=b.deps}function e(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==q.call(b[a.groupIndex],a)){b[a.groupIndex].push(a);for(var c=0,d=a.normalizedDeps.length;d>c;c++){var f=a.normalizedDeps[c],g=p[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex<h){if(void 0!==g.groupIndex&&(b[g.groupIndex].splice(q.call(b[g.groupIndex],g),1),0==b[g.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");g.groupIndex=h}e(g,b)}}}}function f(a){var b=p[a];b.groupIndex=0;var c=[];e(b,c);for(var d=!!b.declarative==c.length%2,f=c.length-1;f>=0;f--){for(var g=c[f],i=0;i<g.length;i++){var k=g[i];d?h(k):j(k)}d=!d}}function g(a){return u[a]||(u[a]={name:a,dependencies:[],exports:{},importers:[]})}function h(b){if(!b.module){var c=b.module=g(b.name),d=b.module.exports,e=b.declare.call(a,function(a,b){if(c.locked=!0,"object"==typeof a)for(var e in a)d[e]=a[e];else d[a]=b;for(var f=0,g=c.importers.length;g>f;f++){var h=c.importers[f];if(!h.locked)for(var i=0;i<h.dependencies.length;++i)h.dependencies[i]===c&&h.setters[i](d)}return c.locked=!1,b},b.name);c.setters=e.setters,c.execute=e.execute;for(var f=0,i=b.normalizedDeps.length;i>f;f++){var j,k=b.normalizedDeps[f],l=p[k],m=u[k];m?j=m.exports:l&&!l.declarative?j=l.esModule:l?(h(l),m=l.module,j=m.exports):j=o(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}function i(a){var b,c=p[a];if(c)c.declarative?n(a,[]):c.evaluated||j(c),b=c.module.exports;else if(b=o(a),!b)throw new Error("Unable to load dependency "+a+".");return(!c||c.declarative)&&b&&b.__useDefault?b["default"]:b}function j(b){if(!b.module){var c={},d=b.module={exports:c,id:b.name};if(!b.executingRequire)for(var e=0,f=b.normalizedDeps.length;f>e;e++){var g=b.normalizedDeps[e],h=p[g];h&&j(h)}b.evaluated=!0;var l=b.execute.call(a,function(a){for(var c=0,d=b.deps.length;d>c;c++)if(b.deps[c]==a)return i(b.normalizedDeps[c]);throw new TypeError("Module "+a+" not declared as a dependency.")},c,d);l&&(d.exports=l),c=d.exports,c&&c.__esModule?b.esModule=c:b.esModule=k(c)}}function k(a){var b={};if("object"==typeof a||"function"==typeof a){var c=a&&a.hasOwnProperty;if(r)for(var d in a)m(b,a,d)||l(b,a,d,c);else for(var d in a)l(b,a,d,c)}return b["default"]=a,t(b,"__useDefault",{value:!0}),b}function l(a,b,c,d){(!d||b.hasOwnProperty(c))&&(a[c]=b[c])}function m(a,b,c){try{var d;return(d=Object.getOwnPropertyDescriptor(b,c))&&t(a,c,d),!0}catch(e){return!1}}function n(b,c){var d=p[b];if(d&&!d.evaluated&&d.declarative){c.push(b);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==q.call(c,g)&&(p[g]?n(g,c):o(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}function o(a){if(w[a])return w[a];if("@node/"==a.substr(0,6))return v(a.substr(6));var b=p[a];if(!b)throw"Module "+a+" not present.";return f(a),n(a,[]),p[a]=void 0,b.declarative&&t(b.module.exports,"__esModule",{value:!0}),w[a]=b.declarative?b.module.exports:b.esModule}var p={},q=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},r=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(s){r=!1}var t;!function(){try{Object.defineProperty({},"a",{})&&(t=Object.defineProperty)}catch(a){t=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var u={},v="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,w={"@empty":{}};return function(a,d,e){return function(f){f(function(f){for(var g={_nodeRequire:v,register:b,registerDynamic:c,get:o,set:function(a,b){w[a]=b},newModule:function(a){return a}},h=0;h<d.length;h++)(function(a,b){b&&b.__esModule?w[a]=b:w[a]=k(b)})(d[h],arguments[h]);e(g);var i=o(a[0]);if(a.length>1)for(var h
c._reportError(a,b,q.ParseErrorLevel.WARNING)}),e.templateBindings}catch(f){return this._reportError(""+f,b),[]}},a.prototype._checkPipes=function(a,b){var c=this;if(k.isPresent(a)){var d=new U;a.visit(d),d.pipes.forEach(function(a){c.pipesByName.has(a)||c._reportError("The pipe '"+a+"' could not be found",b)})}},a.prototype.visitExpansion=function(a,b){return null},a.prototype.visitExpansionCase=function(a,b){return null},a.prototype.visitText=function(a,b){var c=b.findNgContentIndex(J),d=this._parseInterpolation(a.value,a.sourceSpan);return k.isPresent(d)?new r.BoundTextAst(d,c,a.sourceSpan):new r.TextAst(a.value,c,a.sourceSpan)},a.prototype.visitAttr=function(a,b){return new r.AttrAst(a.name,a.value,a.sourceSpan)},a.prototype.visitComment=function(a,b){return null},a.prototype.visitElement=function(a,b){var c=this,d=a.name,f=u.preparseElement(a);if(f.type===u.PreparsedElementType.SCRIPT||f.type===u.PreparsedElementType.STYLE)return null;if(f.type===u.PreparsedElementType.STYLESHEET&&v.isStyleUrlResolvable(f.hrefAttr))return null;var g=[],h=[],i=[],j=[],l=[],m=[],n=[],o=[],q=!1,t=[],x=p.splitNsName(d.toLowerCase())[1],y=x==B;a.attrs.forEach(function(a){var b=c._parseAttr(y,a,g,h,l,i,j),d=c._parseInlineTemplateBinding(a,n,m,o);b||d||(t.push(c.visitAttr(a,null)),g.push([a.name,a.value])),d&&(q=!0)});var A=e(d,g),C=this._parseDirectives(this.selectorMatcher,A),D=[],E=this._createDirectiveAsts(y,a.name,C,h,i,a.sourceSpan,D),F=this._createElementPropertyAsts(a.name,h,E),G=b.isTemplateElement||q,H=new z.ProviderElementContext(this.providerViewContext,b.providerContext,G,E,t,D,a.sourceSpan),I=w.htmlVisitAll(f.nonBindable?T:this,a.children,R.create(y,E,y?b.providerContext:H));H.afterElement();var J,K=k.isPresent(f.projectAs)?s.CssSelector.parse(f.projectAs)[0]:A,L=b.findNgContentIndex(K);if(f.type===u.PreparsedElementType.NG_CONTENT)k.isPresent(a.children)&&a.children.length>0&&this._reportError("<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content>",a.sourceSpan),J=new r.NgContentAst(this.ngContentCount++,q?null:L,a.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,F,a.sourceSpan),J=new r.EmbeddedTemplateAst(t,l,D,j,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,I,q?null:L,a.sourceSpan);else{this._assertOnlyOneComponent(E,a.sourceSpan);var M=q?null:b.findNgContentIndex(K);J=new r.ElementAst(d,t,F,l,D,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,I,q?null:M,a.sourceSpan)}if(q){var N=e(B,n),O=this._parseDirectives(this.selectorMatcher,N),P=this._createDirectiveAsts(!0,a.name,O,m,[],a.sourceSpan,[]),Q=this._createElementPropertyAsts(a.name,m,P);this._assertNoComponentsNorElementBindingsOnTemplate(P,Q,a.sourceSpan);var S=new z.ProviderElementContext(this.providerViewContext,b.providerContext,b.isTemplateElement,P,[],[],a.sourceSpan);S.afterElement(),J=new r.EmbeddedTemplateAst([],[],[],o,S.transformedDirectiveAsts,S.transformProviders,S.transformedHasViewContainer,[J],L,a.sourceSpan)}return J},a.prototype._parseInlineTemplateBinding=function(a,b,c,d){var e=null;if(a.name==C)e=a.value;else if(a.name.startsWith(D)){var f=a.name.substring(D.length);e=0==a.value.length?f:f+" "+a.value}if(k.isPresent(e)){for(var g=this._parseTemplateBindings(e,a.sourceSpan),h=0;h<g.length;h++){var i=g[h];i.keyIsVar?d.push(new r.VariableAst(i.key,i.name,a.sourceSpan)):k.isPresent(i.expression)?this._parsePropertyAst(i.key,i.expression,a.sourceSpan,b,c):(b.push([i.key,""]),this._parseLiteralAttr(i.key,null,a.sourceSpan,c))}return!0}return!1},a.prototype._parseAttr=function(a,b,c,d,e,f,g){var h=this._normalizeAttributeName(b.name),i=b.value,j=k.RegExpWrapper.firstMatch(A,h),l=!1;if(k.isPresent(j))if(l=!0,k.isPresent(j[1]))this._parseProperty(j[7],i,b.sourceSpan,c,d);else if(k.isPresent(j[2])){var m=j[7];a?(this._reportError('"var-" on <template> elements is deprecated. Use "let-" instead!',b.sourceSpan,q.ParseErrorLevel.WARNING),this._parseVariable(m,i,b.sourceSpan,g)):(t
b.forEach(function(a){if(a instanceof f.Statement)a.visitStatement(c,d);else if(a instanceof f.Expression)a.visitExpression(c,d);else{if(!(a instanceof f.Type))throw new h.BaseException("Don't know how to print debug info for "+a);a.visitType(c,d)}}),d.toSource()}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("f"),g=a("13"),h=a("d"),i=a("24"),j="asset://debug/lib";b.debugOutputAstAsTypeScript=d;var k=function(){function a(a){this._importGenerator=a}return a.prototype.emitStatements=function(a,b,c){var d=this,e=new l(a),f=i.EmitterVisitorContext.createRoot(c);e.visitAllStatements(b,f);var g=[];return e.importsWithPrefixes.forEach(function(b,c){g.push("imp"+("ort * as "+b+" from '"+d._importGenerator.getImportPath(a,c)+"';"))}),g.push(f.toSource()),g.join("\n")},a}();b.TypeScriptEmitter=k;var l=function(a){function b(b){a.call(this,!1),this._moduleUrl=b,this.importsWithPrefixes=new Map}return e(b,a),b.prototype.visitExternalExpr=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitDeclareVarStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),a.hasModifier(f.StmtModifier.Final)?b.print("const"):b.print("var"),b.print(" "+a.name),g.isPresent(a.type)&&(b.print(":"),a.type.visitType(this,b)),b.print(" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return b.print("(<"),a.type.visitType(this,b),b.print(">"),a.value.visitExpression(this,b),b.print(")"),null},b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),b.isExportedVar(a.name)&&b.print("export "),b.print("class "+a.name),g.isPresent(a.parent)&&(b.print(" extends "),a.parent.visitExpression(this,b)),b.println(" {"),b.incIndent(),a.fields.forEach(function(a){return c._visitClassField(a,b)}),g.isPresent(a.constructorMethod)&&this._visitClassConstructor(a,b),a.getters.forEach(function(a){return c._visitClassGetter(a,b)}),a.methods.forEach(function(a){return c._visitClassMethod(a,b)}),b.decIndent(),b.println("}"),b.popClass(),null},b.prototype._visitClassField=function(a,b){a.hasModifier(f.StmtModifier.Private)&&b.print("private "),b.print(a.name),g.isPresent(a.type)?(b.print(":"),a.type.visitType(this,b)):b.print(": any"),b.println(";")},b.prototype._visitClassGetter=function(a,b){a.hasModifier(f.StmtModifier.Private)&&b.print("private "),b.print("get "+a.name+"()"),g.isPresent(a.type)&&(b.print(":"),a.type.visitType(this,b)),b.println(" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassConstructor=function(a,b){b.print("constructor("),this._visitParams(a.constructorMethod.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.constructorMethod.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassMethod=function(a,b){a.hasModifier(f.StmtModifier.Private)&&b.print("private "),b.print(a.name+"("),this._visitParams(a.params,b),b.print("):"),g.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.println(" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype.visitFunctionExpr=function(a,b){return b.print("("),this._visitParams(a.params,b),b.print("):"),g.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.println(" => {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),b.print("function "+a.name+"("),this._visitParams(a.params,b),b.print("):"),g.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.println(" {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.visitTryCatchStmt=function(a,b){b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+i.CATCH_ERROR_VAR.name+") {"),b.incIndent();var c=[i.CATCH_STACK_VAR.set(i.CATC
for(var b=0;b<a.length;b++)if(!this._attemptCharCodeCaseInsensitive(t.StringWrapper.charCodeAt(a,b)))return!1;return!0},a.prototype._requireStr=function(a){var b=this._getLocation();if(!this._attemptStr(a))throw this._createError(e(this.peek),this._getSpan(b))},a.prototype._attemptCharCodeUntilFn=function(a){for(;!a(this.peek);)this._advance()},a.prototype._requireCharCodeUntilFn=function(a,b){var c=this._getLocation();if(this._attemptCharCodeUntilFn(a),this.index-c.offset<b)throw this._createError(e(this.peek),this._getSpan(c,c))},a.prototype._attemptUntilChar=function(a){for(;this.peek!==a;)this._advance()},a.prototype._readChar=function(a){if(a&&this.peek===J)return this._decodeEntity();var b=this.index;return this._advance(),this.input[b]},a.prototype._decodeEntity=function(){var a=this._getLocation();if(this._advance(),!this._attemptCharCode(I)){var b=this._savePosition();if(this._attemptCharCodeUntilFn(l),this.peek!=O)return this._restorePosition(b),"&";this._advance();var c=this.input.substring(a.offset+1,this.index-1),d=w.NAMED_ENTITIES[c];if(t.isBlank(d))throw this._createError(f(c),this._getSpan(a));return d}var g=this._attemptCharCode(ea)||this._attemptCharCode(_),h=this._getLocation().offset;if(this._attemptCharCodeUntilFn(k),this.peek!=O)throw this._createError(e(this.peek),this._getSpan());this._advance();var i=this.input.substring(h,this.index-1);try{var j=t.NumberWrapper.parseInt(i,g?16:10);return t.StringWrapper.fromCharCode(j)}catch(m){var n=this.input.substring(a.offset+1,this.index-1);throw this._createError(f(n),this._getSpan(a))}},a.prototype._consumeRawText=function(a,b,c){var d,e=this._getLocation();this._beginToken(a?x.ESCAPABLE_RAW_TEXT:x.RAW_TEXT,e);for(var f=[];;){if(d=this._getLocation(),this._attemptCharCode(b)&&c())break;for(this.index>d.offset&&f.push(this.input.substring(d.offset,this.index));this.peek!==b;)f.push(this._readChar(a))}return this._endToken([this._processCarriageReturns(f.join(""))],d)},a.prototype._consumeComment=function(a){var b=this;this._beginToken(x.COMMENT_START,a),this._requireCharCode(L),this._endToken([]);var c=this._consumeRawText(!1,L,function(){return b._attemptStr("->")});this._beginToken(x.COMMENT_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeCdata=function(a){var b=this;this._beginToken(x.CDATA_START,a),this._requireStr("CDATA["),this._endToken([]);var c=this._consumeRawText(!1,V,function(){return b._attemptStr("]>")});this._beginToken(x.CDATA_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeDocType=function(a){this._beginToken(x.DOC_TYPE,a),this._attemptUntilChar(T),this._advance(),this._endToken([this.input.substring(a.offset+2,this.index-1)])},a.prototype._consumePrefixAndName=function(){for(var a=this.index,b=null;this.peek!==Q&&!j(this.peek);)this._advance();var c;this.peek===Q?(this._advance(),b=this.input.substring(a,this.index-1),c=this.index):c=a,this._requireCharCodeUntilFn(i,this.index===c?1:0);var d=this.input.substring(c,this.index);return[b,d]},a.prototype._consumeTagOpen=function(a){var b,c=this._savePosition();try{if(!n(this.peek))throw this._createError(e(this.peek),this._getSpan());var d=this.index;for(this._consumeTagOpenStart(a),b=this.input.substring(d,this.index).toLowerCase(),this._attemptCharCodeUntilFn(g);this.peek!==M&&this.peek!==T;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(g),this._attemptCharCode(S)&&(this._attemptCharCodeUntilFn(g),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(g);this._consumeTagOpenEnd()}catch(f){if(f instanceof ha)return this._restorePosition(c),this._beginToken(x.TEXT,a),void this._endToken(["<"]);throw f}var h=w.getHtmlTagDefinition(b).contentType;h===w.HtmlTagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(b,!1):h===w.HtmlTagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(b,!0)},a.prototype._consumeRawTextWithTagClose=function(a,b){var c=this,d=this._consumeRawText(b,R,function(){return c._attemptCharCode(M)?(c._attemptCharCodeUntilFn(g),c._attemptStrCaseInsensitive(a)?(c._attemptCharCodeUntilFn(g),!!c._attemptCharCode(T)):!1)
pipes:b.pipes,encapsulation:b.encapsulation,styles:b.styles,styleUrls:b.styleUrls});this._throwMixingViewAndComponent("styleUrls",a)}return null},a.prototype._throwMixingViewAndComponent=function(a,b){throw new g.BaseException("Component '"+f.stringify(b)+"' cannot have both '"+a+"' and '@View' set at the same time\"")},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:e.ReflectorReader}],a}();return b.ViewResolver=i,c.exports}),a.registerDynamic("3c",["18","13"],!0,function(a,b,c){"use strict";function d(a,b){if(!(b instanceof f.Type))return!1;var c=b.prototype;switch(a){case e.LifecycleHooks.AfterContentInit:return!!c.ngAfterContentInit;case e.LifecycleHooks.AfterContentChecked:return!!c.ngAfterContentChecked;case e.LifecycleHooks.AfterViewInit:return!!c.ngAfterViewInit;case e.LifecycleHooks.AfterViewChecked:return!!c.ngAfterViewChecked;case e.LifecycleHooks.OnChanges:return!!c.ngOnChanges;case e.LifecycleHooks.DoCheck:return!!c.ngDoCheck;case e.LifecycleHooks.OnDestroy:return!!c.ngOnDestroy;case e.LifecycleHooks.OnInit:return!!c.ngOnInit;default:return!1}}var e=a("18"),f=a("13");return b.hasLifecycleHook=d,c.exports}),a.registerDynamic("3d",["13","d"],!0,function(a,b,c){"use strict";function d(a,b){if(e.assertionsEnabled()&&!e.isBlank(b)){if(!e.isArray(b))throw new f.BaseException("Expected '"+a+"' to be an array of strings.");for(var c=0;c<b.length;c+=1)if(!e.isString(b[c]))throw new f.BaseException("Expected '"+a+"' to be an array of strings.")}}var e=a("13"),f=a("d");return b.assertArrayOfStrings=d,c.exports}),a.registerDynamic("2f",["11","18","13","e","d","c","39","3a","3b","3c","10","3d","38"],!0,function(a,b,c){"use strict";function d(a,b){var c=[];return o.isPresent(b)&&f(b,c),o.isPresent(a.directives)&&f(a.directives,c),c}function e(a,b){var c=[];return o.isPresent(b)&&f(b,c),o.isPresent(a.pipes)&&f(a.pipes,c),c}function f(a,b){for(var c=0;c<a.length;c++){var d=m.resolveForwardRef(a[c]);o.isArray(d)?f(d,b):b.push(d)}}function g(a){return o.isStringMap(a)&&o.isPresent(a.name)&&o.isPresent(a.filePath)}function h(a){return g(a)||a instanceof o.Type}function i(a){return g(a)?a.filePath:null}function j(a,b,c){if(g(b))return i(b);if(o.isPresent(c.moduleId)){var d=c.moduleId,e=y.getUrlScheme(d);return o.isPresent(e)&&e.length>0?d:"package:"+d+w.MODULE_SUFFIX}return a.importUri(b)}function k(a){return w.visitValue(a,new B,null)}var l=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},m=a("11"),n=a("18"),o=a("13"),p=a("e"),q=a("d"),r=a("c"),s=a("39"),t=a("3a"),u=a("3b"),v=a("3c"),w=a("10"),x=a("3d"),y=a("38"),z=a("18"),A=function(){function a(a,b,c,d,e,f){this._directiveResolver=a,this._pipeResolver=b,this._viewResolver=c,this._platformDirectives=d,this._platformPipes=e,this._directiveCache=new Map,this._pipeCache=new Map,this._anonymousTypes=new Map,this._anonymousTypeIndex=0,o.isPresent(f)?this._reflector=f:this._reflector=m.reflector}return a.prototype.sanitizeTokenName=function(a){var b=o.stringify(a);if(b.indexOf("(")>=0){var c=this._anonymousTypes.get(a);o.isBlank(c)&&(this._anonymousTypes.set(a,this._anonymousTypeIndex++),c=this._anonymousTypes.get(a)),b="anonymous_token_"+c+"_"}return w.sanitizeIdentifier(b)},a.prototype.getDirectiveMetadata=function(a){var b=this._directiveCache.get(a);if(o.isBlank(b)){var c=this._directiveResolver.resolve(a),d=null,e=null,f=[],g=i(a);if(c instanceof m.ComponentMetadata){x.assertArrayOfStrings("styles",c.styles);var h=c,k=this._viewResolver.resolve(a);x.assertArrayOfStrings("styles",k.styles),d=new r.CompileTemplateMetadata({encapsulation:k.encapsulation,template:k.template,templateUrl:k.templateUrl,styles:k.styles,styleUrls:k.styleUrls}),e=h.changeDetection,o.isPresent(c.viewProviders)&&(f=this.getProvidersMetadata(c.viewProviders)),g=j(this._reflector,a,h)}var l=[];o.isPresent(c.providers)&&(l=this.getProvidersMetadata(c.providers));var p=[],q=[];o.isPresent(c.queries)&&(p=this.getQueriesMetadata(c.queries,!1),q=this.getQueriesMeta
}),this._queries.values().forEach(function(a){return a.forEach(function(a){return a.afterChildren(b.view.updateContentQueriesMethod)})})},b.prototype.addContentNode=function(a,b){this.contentNodesByNgContentIndex[a].push(b)},b.prototype.getComponent=function(){return i.isPresent(this.component)?this._instances.get(l.identifierToken(this.component.type)):null},b.prototype.getProviderTokens=function(){return this._resolvedProviders.values().map(function(a){return p.createDiTokenExpression(a.token)})},b.prototype._getQueriesFor=function(a){for(var b,c=[],d=this,e=0;!d.isNull();)b=d._queries.get(a),i.isPresent(b)&&j.ListWrapper.addAll(c,b.filter(function(a){return a.meta.descendants||1>=e})),d._directives.length>0&&e++,d=d.parent;return b=this.view.componentView.viewQueries.get(a),i.isPresent(b)&&j.ListWrapper.addAll(c,b),c},b.prototype._addQuery=function(a,b){var c="_query_"+a.selectors[0].name+"_"+this.nodeIndex+"_"+this._queryCount++,d=q.createQueryList(a,b,c,this.view),e=new q.CompileQuery(a,d,b,this.view);return q.addQueryToTokenMap(this._queries,e),e},b.prototype._getLocalDependency=function(a,b){var c=null;if(i.isBlank(c)&&i.isPresent(b.query)&&(c=this._addQuery(b.query,null).queryList),i.isBlank(c)&&i.isPresent(b.viewQuery)&&(c=q.createQueryList(b.viewQuery,null,"_viewQuery_"+b.viewQuery.selectors[0].name+"_"+this.nodeIndex+"_"+this._componentConstructorViewQueryLists.length,this.view),this._componentConstructorViewQueryLists.push(c)),i.isPresent(b.token)){if(i.isBlank(c)&&b.token.equalsTo(l.identifierToken(l.Identifiers.ChangeDetectorRef)))return a===n.ProviderAstType.Component?this._compViewExpr.prop("ref"):p.getPropertyInView(k.THIS_EXPR.prop("ref"),this.view,this.view.componentView);i.isBlank(c)&&(c=this._instances.get(b.token))}return c},b.prototype._getDependency=function(a,b){var c=this,d=null;for(b.isValue&&(d=k.literal(b.value)),i.isBlank(d)&&!b.isSkipSelf&&(d=this._getLocalDependency(a,b));i.isBlank(d)&&!c.parent.isNull();)c=c.parent,d=c._getLocalDependency(n.ProviderAstType.PublicService,new o.CompileDiDependencyMetadata({token:b.token}));return i.isBlank(d)&&(d=p.injectFromViewParentInjector(b.token,b.isOptional)),i.isBlank(d)&&(d=k.NULL_EXPR),p.getPropertyInView(d,this.view,c.view)},b}(t);b.CompileElement=u;var v=function(){function a(a,b){this.query=a,this.read=i.isPresent(a.meta.read)?a.meta.read:b}return a}(),w=function(a){function b(){a.apply(this,arguments)}return g(b,a),b.prototype.visitArray=function(a,b){var c=this;return k.literalArr(a.map(function(a){return s.visitValue(a,c,b)}))},b.prototype.visitStringMap=function(a,b){var c=this,d=[];return j.StringMapWrapper.forEach(a,function(a,e){d.push([e,s.visitValue(a,c,b)])}),k.literalMap(d)},b.prototype.visitPrimitive=function(a,b){return k.literal(a)},b.prototype.visitOther=function(a,b){if(a instanceof o.CompileIdentifierMetadata)return k.importExpr(a);if(a instanceof k.Expression)return a;throw new h.BaseException("Illegal state: Don't now how to compile value "+a)},b}(s.ValueTransformer);return c.exports}),a.registerDynamic("40",["13","d","f","15"],!0,function(a,b,c){"use strict";function d(a,b,c){if(b===c)return a;for(var d=l.THIS_EXPR,e=b;e!==c&&j.isPresent(e.declarationElement.view);)e=e.declarationElement.view,d=d.prop("parent");if(e!==c)throw new k.BaseException("Internal error: Could not calculate a property in a parent view: "+a);if(a instanceof l.ReadPropExpr){var f=a;(c.fields.some(function(a){return a.name==f.name})||c.getters.some(function(a){return a.name==f.name}))&&(d=d.cast(c.classType))}return l.replaceVarInExpression(l.THIS_EXPR.name,d,a)}function e(a,b){var c=[g(a)];return b&&c.push(l.NULL_EXPR),l.THIS_EXPR.prop("parentInjector").callMethod("get",c)}function f(a,b){return"viewFactory_"+a.type.name+b}function g(a){return j.isPresent(a.value)?l.literal(a.value):a.identifierIsInstance?l.importExpr(a.identifier).instantiate([],l.importType(a.identifier,[],[l.TypeModifier.Const])):l.importExpr(a.identifier)}function h(a){for(var b=[],c=l.literalArr([]),d=0;d<a.length;d++){var e=a[d];e.type instanceof l.ArrayType?(b.length>0&&(c=c.ca
var c=l.variable("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(c),this.compileElement.view.createMethod.addStmt(c.set(a).toDeclStmt(l.FUNCTION_TYPE,[l.StmtModifier.Private]))},a.prototype.listenToDirective=function(a,b){var c=l.variable("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(c);var d=l.THIS_EXPR.callMethod("eventHandler",[l.THIS_EXPR.prop(this._methodName).callMethod(l.BuiltinMethod.bind,[l.THIS_EXPR])]);this.compileElement.view.createMethod.addStmt(c.set(a.prop(b).callMethod(l.BuiltinMethod.SubscribeObservable,[d])).toDeclStmt(null,[l.StmtModifier.Final]))},a}();return b.CompileEventListener=p,b.collectEventListeners=d,b.bindDirectiveOutputs=e,b.bindRenderOutputs=f,c.exports}),a.registerDynamic("f",["13"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=new fa(a,b);return c.visitExpression(d,null)}function e(a){var b=new ga;return b.visitAllStatements(a,null),b.varNames}function f(a,b){return void 0===b&&(b=null),new y(a,b)}function g(a,b){return void 0===b&&(b=null),new G(a,null,b)}function h(a,b,c){return void 0===b&&(b=null),void 0===c&&(c=null),o.isPresent(a)?new s(a,b,c):null}function i(a,b){return void 0===b&&(b=null),new F(a,b)}function j(a,b){return void 0===b&&(b=null),new P(a,b)}function k(a,b){return void 0===b&&(b=null),new Q(a,b)}function l(a){return new I(a)}function m(a,b,c){return void 0===c&&(c=null),new L(a,b,c)}var n=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},o=a("13");!function(a){a[a.Const=0]="Const"}(b.TypeModifier||(b.TypeModifier={}));var p=(b.TypeModifier,function(){function a(a){void 0===a&&(a=null),this.modifiers=a,o.isBlank(a)&&(this.modifiers=[])}return a.prototype.hasModifier=function(a){return-1!==this.modifiers.indexOf(a)},a}());b.Type=p,function(a){a[a.Dynamic=0]="Dynamic",a[a.Bool=1]="Bool",a[a.String=2]="String",a[a.Int=3]="Int",a[a.Number=4]="Number",a[a.Function=5]="Function"}(b.BuiltinTypeName||(b.BuiltinTypeName={}));var q=b.BuiltinTypeName,r=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.name=b}return n(b,a),b.prototype.visitType=function(a,b){return a.visitBuiltintType(this,b)},b}(p);b.BuiltinType=r;var s=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,d),this.value=b,this.typeParams=c}return n(b,a),b.prototype.visitType=function(a,b){return a.visitExternalType(this,b)},b}(p);b.ExternalType=s;var t=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.of=b}return n(b,a),b.prototype.visitType=function(a,b){return a.visitArrayType(this,b)},b}(p);b.ArrayType=t;var u=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.valueType=b}return n(b,a),b.prototype.visitType=function(a,b){return a.visitMapType(this,b)},b}(p);b.MapType=u,b.DYNAMIC_TYPE=new r(q.Dynamic),b.BOOL_TYPE=new r(q.Bool),b.INT_TYPE=new r(q.Int),b.NUMBER_TYPE=new r(q.Number),b.STRING_TYPE=new r(q.String),b.FUNCTION_TYPE=new r(q.Function),function(a){a[a.Equals=0]="Equals",a[a.NotEquals=1]="NotEquals",a[a.Identical=2]="Identical",a[a.NotIdentical=3]="NotIdentical",a[a.Minus=4]="Minus",a[a.Plus=5]="Plus",a[a.Divide=6]="Divide",a[a.Multiply=7]="Multiply",a[a.Modulo=8]="Modulo",a[a.And=9]="And",a[a.Or=10]="Or",a[a.Lower=11]="Lower",a[a.LowerEquals=12]="LowerEquals",a[a.Bigger=13]="Bigger",a[a.BiggerEquals=14]="BiggerEquals"}(b.BinaryOperator||(b.BinaryOperator={}));var v=b.BinaryOperator,w=function(){function a(a){this.type=a}return a.prototype.prop=function(a){return new N(this,a)},a.prototype.key=function(a,b){return void 0===b&&(b=null),new O(this,a,b)},a.prototype.callMethod=function(a,b){return new C(this,a,b)},a.prototype.callFn=function(a){return new D(this,a)},a.prototype.instantiate=function(a,b){return void 0===b&&(b=null),new E(this,a,b)},a.prototype.conditional=function(a,b){return void 0===b&&(b=null),new H(this,a,b)},a.prototype.equals=function(a){return
}();b.CompileIdentifierMetadata=w;var x=function(){function a(a){var b=void 0===a?{}:a,c=b.isAttribute,d=b.isSelf,e=b.isHost,f=b.isSkipSelf,g=b.isOptional,h=b.isValue,i=b.query,j=b.viewQuery,k=b.token,l=b.value;this.isAttribute=n.normalizeBool(c),this.isSelf=n.normalizeBool(d),this.isHost=n.normalizeBool(e),this.isSkipSelf=n.normalizeBool(f),this.isOptional=n.normalizeBool(g),this.isValue=n.normalizeBool(h),this.query=i,this.viewQuery=j,this.token=k,this.value=l}return a.fromJson=function(b){return new a({token:h(b.token,A.fromJson),query:h(b.query,D.fromJson),viewQuery:h(b.viewQuery,D.fromJson),value:b.value,isAttribute:b.isAttribute,isSelf:b.isSelf,isHost:b.isHost,isSkipSelf:b.isSkipSelf,isOptional:b.isOptional,isValue:b.isValue})},a.prototype.toJson=function(){return{token:i(this.token),query:i(this.query),viewQuery:i(this.viewQuery),value:this.value,isAttribute:this.isAttribute,isSelf:this.isSelf,isHost:this.isHost,isSkipSelf:this.isSkipSelf,isOptional:this.isOptional,isValue:this.isValue}},a}();b.CompileDiDependencyMetadata=x;var y=function(){function a(a){var b=a.token,c=a.useClass,d=a.useValue,e=a.useExisting,f=a.useFactory,g=a.deps,h=a.multi;this.token=b,this.useClass=c,this.useValue=d,this.useExisting=e,this.useFactory=f,this.deps=n.normalizeBlank(g),this.multi=n.normalizeBool(h)}return a.fromJson=function(b){return new a({token:h(b.token,A.fromJson),useClass:h(b.useClass,C.fromJson),useExisting:h(b.useExisting,A.fromJson),useValue:h(b.useValue,w.fromJson),useFactory:h(b.useFactory,z.fromJson),multi:b.multi,deps:f(b.deps,x.fromJson)})},a.prototype.toJson=function(){return{"class":"Provider",token:i(this.token),useClass:i(this.useClass),useExisting:i(this.useExisting),useValue:i(this.useValue),useFactory:i(this.useFactory),multi:this.multi,deps:g(this.deps)}},a}();b.CompileProviderMetadata=y;var z=function(){function a(a){var b=a.runtime,c=a.name,d=a.moduleUrl,e=a.prefix,f=a.diDeps,g=a.value;this.runtime=b,this.name=c,this.prefix=e,this.moduleUrl=d,this.diDeps=j(f),this.value=g}return Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),a.fromJson=function(b){return new a({name:b.name,prefix:b.prefix,moduleUrl:b.moduleUrl,value:b.value,diDeps:f(b.diDeps,x.fromJson)})},a.prototype.toJson=function(){return{"class":"Factory",name:this.name,prefix:this.prefix,moduleUrl:this.moduleUrl,value:this.value,diDeps:g(this.diDeps)}},a}();b.CompileFactoryMetadata=z;var A=function(){function a(a){var b=a.value,c=a.identifier,d=a.identifierIsInstance;this.value=b,this.identifier=c,this.identifierIsInstance=n.normalizeBool(d)}return a.fromJson=function(b){return new a({value:b.value,identifier:h(b.identifier,w.fromJson),identifierIsInstance:b.identifierIsInstance})},a.prototype.toJson=function(){return{value:this.value,identifier:i(this.identifier),identifierIsInstance:this.identifierIsInstance}},Object.defineProperty(a.prototype,"runtimeCacheKey",{get:function(){return n.isPresent(this.identifier)?this.identifier.runtime:this.value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"assetCacheKey",{get:function(){return n.isPresent(this.identifier)?n.isPresent(this.identifier.moduleUrl)&&n.isPresent(s.getUrlScheme(this.identifier.moduleUrl))?this.identifier.name+"|"+this.identifier.moduleUrl+"|"+this.identifierIsInstance:null:this.value},enumerable:!0,configurable:!0}),a.prototype.equalsTo=function(a){var b=this.runtimeCacheKey,c=this.assetCacheKey;return n.isPresent(b)&&b==a.runtimeCacheKey||n.isPresent(c)&&c==a.assetCacheKey},Object.defineProperty(a.prototype,"name",{get:function(){return n.isPresent(this.value)?r.sanitizeIdentifier(this.value):this.identifier.name},enumerable:!0,configurable:!0}),a}();b.CompileTokenMetadata=A;var B=function(){function a(){this._valueMap=new Map,this._values=[]}return a.prototype.add=function(a,b){var c=this.get(a);if(n.isPresent(c))throw new o.BaseException("Can only add to a TokenMap! Token: "+a.name);this._values.push(b);var d=a.runtimeCacheKey;n.isPresent(d)&&this._valueMap.set(d,b);var e=a.assetCacheKey;n.isPresent(e)
var h=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.visit=function(a,b){void 0===b&&(b=null)},b}(f);b.EmptyExpr=h;var i=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitImplicitReceiver(this,b)},b}(f);b.ImplicitReceiver=i;var j=function(a){function b(b){a.call(this),this.expressions=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitChain(this,b)},b}(f);b.Chain=j;var k=function(a){function b(b,c,d){a.call(this),this.condition=b,this.trueExp=c,this.falseExp=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitConditional(this,b)},b}(f);b.Conditional=k;var l=function(a){function b(b,c){a.call(this),this.receiver=b,this.name=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPropertyRead(this,b)},b}(f);b.PropertyRead=l;var m=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.value=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPropertyWrite(this,b)},b}(f);b.PropertyWrite=m;var n=function(a){function b(b,c){a.call(this),this.receiver=b,this.name=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafePropertyRead(this,b)},b}(f);b.SafePropertyRead=n;var o=function(a){function b(b,c){a.call(this),this.obj=b,this.key=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedRead(this,b)},b}(f);b.KeyedRead=o;var p=function(a){function b(b,c,d){a.call(this),this.obj=b,this.key=c,this.value=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedWrite(this,b)},b}(f);b.KeyedWrite=p;var q=function(a){function b(b,c,d){a.call(this),this.exp=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPipe(this,b)},b}(f);b.BindingPipe=q;var r=function(a){function b(b){a.call(this),this.value=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralPrimitive(this,b)},b}(f);b.LiteralPrimitive=r;var s=function(a){function b(b){a.call(this),this.expressions=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralArray(this,b)},b}(f);b.LiteralArray=s;var t=function(a){function b(b,c){a.call(this),this.keys=b,this.values=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralMap(this,b)},b}(f);b.LiteralMap=t;var u=function(a){function b(b,c){a.call(this),this.strings=b,this.expressions=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitInterpolation(this,b)},b}(f);b.Interpolation=u;var v=function(a){function b(b,c,d){a.call(this),this.operation=b,this.left=c,this.right=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitBinary(this,b)},b}(f);b.Binary=v;var w=function(a){function b(b){a.call(this),this.expression=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPrefixNot(this,b)},b}(f);b.PrefixNot=w;var x=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitMethodCall(this,b)},b}(f);b.MethodCall=x;var y=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafeMethodCall(this,b)},b}(f);b.SafeMethodCall=y;var z=function(a){function b(b,c){a.call(this),this.target=b,this.args=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitFunctionCall(this,b)},b}(f);b.FunctionCall=z;var A=function(a){function b(b,c,d){a.call(this),this.ast=b,this.source=c,this.location=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),this.ast.visit(a,b)},b.prototype.toString=function(){return this.source+" in "+this.location},b}(f);b.ASTWithSource=A;var B=function(){function a(a,b,c,d){this.key=a,this.keyI
return a.visitElementProperty(this,b)},a}();b.BoundElementPropertyAst=i;var j=function(){function a(a,b,c,d){this.name=a,this.target=b,this.handler=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitEvent(this,b)},Object.defineProperty(a.prototype,"fullName",{get:function(){return e.isPresent(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),a}();b.BoundEventAst=j;var k=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitReference(this,b)},a}();b.ReferenceAst=k;var l=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitVariable(this,b)},a}();b.VariableAst=l;var m=function(){function a(a,b,c,d,e,f,g,h,i,j,k){this.name=a,this.attrs=b,this.inputs=c,this.outputs=d,this.references=e,this.directives=f,this.providers=g,this.hasViewContainer=h,this.children=i,this.ngContentIndex=j,this.sourceSpan=k}return a.prototype.visit=function(a,b){return a.visitElement(this,b)},a}();b.ElementAst=m;var n=function(){function a(a,b,c,d,e,f,g,h,i,j){this.attrs=a,this.outputs=b,this.references=c,this.variables=d,this.directives=e,this.providers=f,this.hasViewContainer=g,this.children=h,this.ngContentIndex=i,this.sourceSpan=j}return a.prototype.visit=function(a,b){return a.visitEmbeddedTemplate(this,b)},a}();b.EmbeddedTemplateAst=n;var o=function(){function a(a,b,c,d){this.directiveName=a,this.templateName=b,this.value=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitDirectiveProperty(this,b)},a}();b.BoundDirectivePropertyAst=o;var p=function(){function a(a,b,c,d,e){this.directive=a,this.inputs=b,this.hostProperties=c,this.hostEvents=d,this.sourceSpan=e}return a.prototype.visit=function(a,b){return a.visitDirective(this,b)},a}();b.DirectiveAst=p;var q=function(){function a(a,b,c,d,e,f){this.token=a,this.multiProvider=b,this.eager=c,this.providers=d,this.providerType=e,this.sourceSpan=f}return a.prototype.visit=function(a,b){return null},a}();b.ProviderAst=q,function(a){a[a.PublicService=0]="PublicService",a[a.PrivateService=1]="PrivateService",a[a.Component=2]="Component",a[a.Directive=3]="Directive",a[a.Builtin=4]="Builtin"}(b.ProviderAstType||(b.ProviderAstType={}));var r=(b.ProviderAstType,function(){function a(a,b,c){this.index=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitNgContent(this,b)},a}());b.NgContentAst=r,function(a){a[a.Property=0]="Property",a[a.Attribute=1]="Attribute",a[a.Class=2]="Class",a[a.Style=3]="Style"}(b.PropertyBindingType||(b.PropertyBindingType={}));b.PropertyBindingType;return b.templateVisitAll=d,c.exports}),a.registerDynamic("1d",["e","13","d","22"],!0,function(a,b,c){return function(c){"use strict";var d=a("e"),e=a("13"),f=a("d"),g="",h=e.RegExpWrapper.create("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)"),i=function(){function a(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return a.parse=function(b){for(var c,g=[],i=function(a,b){b.notSelectors.length>0&&e.isBlank(b.element)&&d.ListWrapper.isEmpty(b.classNames)&&d.ListWrapper.isEmpty(b.attrs)&&(b.element="*"),a.push(b)},j=new a,k=e.RegExpWrapper.matcher(h,b),l=j,m=!1;e.isPresent(c=e.RegExpMatcherWrapper.next(k));){if(e.isPresent(c[1])){if(m)throw new f.BaseException("Nesting :not is not allowed in a selector");m=!0,l=new a,j.notSelectors.push(l)}if(e.isPresent(c[2])&&l.setElement(c[2]),e.isPresent(c[3])&&l.addClassName(c[3]),e.isPresent(c[4])&&l.addAttribute(c[4],c[5]),e.isPresent(c[6])&&(m=!1,l=j),e.isPresent(c[7])){if(m)throw new f.BaseException("Multiple selectors in :not are not supported");i(g,j),j=l=new a}}return i(g,j),g},a.prototype.isElementSelector=function(){return e.isPresent(this.element)&&d.ListWrapper.isEmpty(this.classNames)&&d.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},a.prototype.setElement=function(a){void 0===a&&(a=null),this.element=a},a.prototype.getMatchingElementTemplate=funct
void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=V;var W=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=W;var X=function(a){function b(b){a.call(this),this.message=b}return Q(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=X;var Y=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new X("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new X("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}();b.NumberWrapper=Y,b.RegExp=R.RegExp;var Z=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new R.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=function(a,b){return a.lastIndex=0,a.test(b)},a.matcher=function(a,b){return a.lastIndex=0,{re:a,input:b}},a.replaceAll=function(a,b,c){var d=a.exec(b),e="";a.lastIndex=0;for(var f=0;d;)e+=b.substring(f,d.index),e+=c(d),f=d.index+d[0].length,a.lastIndex=f,d=a.exec(b);return e+=b.substring(f)},a}();b.RegExpWrapper=Z;var $=function(){function a(){}return a.next=function(a){return a.re.exec(a.input)},a}();b.RegExpMatcherWrapper=$;var _=function(){function a(){}return a.apply=function(a,b){return a.apply(null,b)},a}();b.FunctionWrapper=_,b.looseIdentical=z,b.getMapKey=A,b.normalizeBlank=B,b.normalizeBool=C,b.isJsObject=D,b.print=E,b.warn=F;var aa=function(){function a(){}return a.parse=function(a){return R.JSON.parse(a)},a.stringify=function(a){return R.JSON.stringify(a,null,2)},a}();b.Json=aa;var ba=function(){function a(){}return a.create=function(a,c,d,e,f,g,h){return void 0===c&&(c=1),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),void 0===g&&(g=0),void 0===h&&(h=0),new b.Date(a,c-1,d,e,f,g,h)},a.fromISOString=function(a){return new b.Date(a)},a.fromMillis=function(a){return new b.Date(a)},a.toMillis=function(a){return a.getTime()},a.now=function(){return new b.Date},a.toJson=function(a){return a.toJSON()},a}();b.DateWrapper=ba,b.setValueOnPath=G;var ca=null;return b.getSymbolIterator=H,b.evalExpression=I,b.isPrimitive=J,b.hasConstructor=K,b.bitWiseOr=L,b.bitWiseAnd=M,b.escape=N,c.exports}),a.registerDynamic("56",["a","9","5"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("a"),f=a("9"),g=a("5"),h=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.get=function(a){var b=f.PromiseWrapper.completer(),c=new XMLHttpRequest;return c.open("GET",a,!0),c.responseType="text",c.onload=function(){var d=g.isPresent(c.response)?c.response:c.responseText,e=1223===c.status?204:c.status;0===e&&(e=d?200:0),e>=200&&300>=e?b.resolve(d):b.reject("Failed to load "+a,null)},c.onerror=function(){b.reject("Failed to load "+a,null)},c.send(),b.promise},b}(e.XHR);return b.XHRImpl=h,c.exports}),a.registerDynamic("57",["58","59","5a","5b","5c","5d","5e"],!0,function(a,b,c){"use strict";var d,e=a("58"),f=a("59"),g=a("5a"),h=a("5b"),i=a("5c"),j=a("5d"),k=a("5e");return function(a){function b(){return
2016-05-20 23:13:38 +03:00
get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return h.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this.message},b}(g.BaseWrappedException);return b.WrappedException=k,b.makeTypeError=d,b.unimplemented=e,c.exports}),a.registerDynamic("67",["11","6b","64"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("6b"),f=a("64");b.EVENT_MANAGER_PLUGINS=new d.OpaqueToken("EventManagerPlugins");var g=function(){function a(a,b){var c=this;this._zone=b,a.forEach(function(a){return a.manager=c}),this._plugins=f.ListWrapper.reversed(a)}return a.prototype.addEventListener=function(a,b,c){var d=this._findPluginFor(b);return d.addEventListener(a,b,c)},a.prototype.addGlobalEventListener=function(a,b,c){var d=this._findPluginFor(b);return d.addGlobalEventListener(a,b,c)},a.prototype.getZone=function(){return this._zone},a.prototype._findPluginFor=function(a){for(var b=this._plugins,c=0;c<b.length;c++){var d=b[c];if(d.supports(a))return d}throw new e.BaseException("No event manager plugin found for event "+a)},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:void 0,decorators:[{type:d.Inject,args:[b.EVENT_MANAGER_PLUGINS]}]},{type:d.NgZone}],a}();b.EventManager=g;var h=function(){function a(){}return a.prototype.supports=function(a){return!1},a.prototype.addEventListener=function(a,b,c){throw"not implemented"},a.prototype.addGlobalEventListener=function(a,b,c){throw"not implemented"},a}();return b.EventManagerPlugin=h,c.exports}),a.registerDynamic("72",["11"],!0,function(a,b,c){"use strict";var d=a("11");return b.DOCUMENT=new d.OpaqueToken("DocumentToken"),c.exports}),a.registerDynamic("78",["65"],!0,function(a,b,c){"use strict";function d(a){return f.StringWrapper.replaceAllMapped(a,g,function(a){return"-"+a[1].toLowerCase()})}function e(a){return f.StringWrapper.replaceAllMapped(a,h,function(a){return a[1].toUpperCase()})}var f=a("65"),g=/([A-Z])/g,h=/-([a-z])/g;return b.camelCaseToDashCase=d,b.dashCaseToCamelCase=e,c.exports}),a.registerDynamic("73",["11","58","65","6b","74","67","72","5d","78"],!0,function(a,b,c){"use strict";function d(a,b){var c=s.getDOM().parentElement(a);if(b.length>0&&n.isPresent(c)){var d=s.getDOM().nextSibling(a);if(n.isPresent(d))for(var e=0;e<b.length;e++)s.getDOM().insertBefore(d,b[e]);else for(var e=0;e<b.length;e++)s.getDOM().appendChild(c,b[e])}}function e(a,b){for(var c=0;c<b.length;c++)s.getDOM().appendChild(a,b[c])}function f(a){return function(b){var c=a(b);c===!1&&s.getDOM().preventDefault(b)}}function g(a){return n.StringWrapper.replaceAll(b.CONTENT_ATTR,A,a)}function h(a){return n.StringWrapper.replaceAll(b.HOST_ATTR,A,a)}function i(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];n.isArray(e)?i(a,e,c):(e=n.StringWrapper.replaceAll(e,A,a),c.push(e))}return c}function j(a){if("@"!=a[0])return[null,a];var b=n.RegExpWrapper.firstMatch(B,a);return[b[1],b[2]]}var k=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l=a("11"),m=a("58"),n=a("65"),o=a("6b"),p=a("74"),q=a("67"),r=a("72"),s=a("5d"),t=a("78"),u={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"},v="template bindings={}",w=/^template bindings=(.*)$/g,x=function(){function a(a,b,c,d){this.document=a,this.eventManager=b,this.sharedStylesHost=c,this.animate=d,this._registeredComponents=new Map}return a.prototype.renderComponent=function(a){var
2016-05-29 20:57:47 +03:00
directives:[o,i],inputs:["isArray","final","nestOdd","childFor","isRequestSchema"],detect:!0})(o)||o}(e),a("JsonSchema",o),p={general:{check:function(){return!0},inject:function(a,b,c){a._pointer=b._pointer||c,a._displayType=b.type,b.format&&(a._displayFormat="<"+b.format+">"),b["enum"]&&(a["enum"]=b["enum"].map(function(a){return{val:a,type:typeof a}}))}},discriminator:{check:function(a){return a.discriminator},inject:function(a,b,c){return void 0===b&&(b=a),function(){a.derived=f.instance().findDerivedDefinitions(c),a.discriminator=b.discriminator}()}},array:{check:function(a){return"array"===a.type},inject:function(a,c,d){return void 0===c&&(c=a),function(){a._isArray=!0,a._pointer=c.items._pointer||j.join(c._pointer||d,["items"]),b(a,c.items,d)}()}},object:{check:function(a){return"object"===a.type&&a.properties},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c=b._pointer&&j.baseName(b._pointer);a._displayType=b.title||c||"object"}()}},noType:{check:function(a){return!a.type},inject:function(a){a._displayType="< * >",a._displayTypeHint="This field may contain data of any type",a.isTrivial=!0}},simpleType:{check:function(a){return"object"===a.type?!(a.properties&&h(a.properties).length||"object"==typeof a.additionalProperties):"array"!==a.type&&a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){a.isTrivial=!0,a._pointer&&(a._pointer=void 0,a._displayType=b.title?b.title+" ("+b.type+")":b.type)}()}},integer:{check:function(a){return"integer"===a.type||"number"===a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c="";b.minimum&&b.maximum?(c+=b.exclusiveMinimum?"( ":"[ ",c+=b.minimum,c+=" .. ",c+=b.maximum,c+=b.exclusiveMaximum?" )":" ]"):b.maximum?(c+=b.exclusiveMaximum?"< ":"<= ",c+=b.maximum):b.minimum&&(c+=b.exclusiveMinimum?"> ":">= ",c+=b.minimum),c&&(a._range=c)}()}},string:{check:function(a){return"string"===a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c;b.minLength&&b.maxLength?c="[ "+b.minLength+" .. "+b.maxLength+" ]":b.maxLength?c="<= "+b.maxLength:b.minimum&&(c=">= "+b.minLength),c&&(a._range=c+" characters")}()}},file:{check:function(a){return"file"===a.type},inject:function(a,b,c,d){return void 0===b&&(b=a),function(){a.isFile=!0;var c=void 0;c="formData"===b["in"]?j.dirName(d,1):j.dirName(d,3);var e=f.instance().byPointer(c),g=f.instance().schema;a._produces=e&&e.produces||g.produces,a._consumes=e&&e.consumes||g.consumes}()}}}}}}),a.register("90",["11","76","88","95","8b","8c","8f"],function(a){function b(a,b){b.parentNode.insertBefore(a,b.nextSibling)}var c,d,e,f,g,h,i,j,k,l,m,n;return{setters:[function(a){c=a.Component,d=a.ElementRef,e=a.ViewContainerRef,f=a.DynamicComponentLoader},function(a){g=a.CORE_DIRECTIVES},function(a){h=a.OptionsService},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a.JsonSchema}],execute:function(){"use strict";m={},n=function(){function a(a,b,c,d,e){k(this,n),this.viewRef=b,this.elementRef=c,this.dcl=d,this.optionsService=e,this.schemaMgr=a}j(a,[{key:"normalizePointer",value:function(){var a=this.schemaMgr.byPointer(this.pointer);return a&&a.$ref||this.pointer}},{key:"_loadAfterSelf",value:function(){var a=this;return this.dcl.loadNextToLocation(l,this.viewRef).then(function(b){return a.initComponent(b),b.changeDetectorRef?b.changeDetectorRef.detectChanges():b.hostView.changeDetectorRef.detectChanges(),b})}},{key:"load",value:function(){this.optionsService.options.disableLazySchemas||this.loaded||(this.pointer&&this._loadAfterSelf(),this.loaded=!0)}},{key:"loadCached",value:function(){var a=this;this.pointer=this.normalizePointer(this.pointer),m[this.pointer]?m[this.pointer].then(function(c){setTimeout(function(){var d=c.location.nativeElement;d.querySelector(".discriminator-wrap")||b(d.cloneNode(!0),a.elementRef.nativeElement)})}):m[this.pointer]=this._loadAfterSelf()}},{key:"initC
directives:[c(function(){return b})],pipes:[l],detect:!0})(e)||e}(e),a("MethodsList",m)}}}),a.registerDynamic("b3",["b2"],!0,function(a,b,c){"use strict";var d=a("b2")["default"];return b["default"]=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}return d(a)},b.__esModule=!0,c.exports}),a.registerDynamic("b4",[],!0,function(a,b,c){var d=this,e="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},f=function(){var a=/\blang(?:uage)?-(?!\*)(\w+)\b/i,b=e.Prism={util:{encode:function(a){return a instanceof c?new c(a.type,b.util.encode(a.content),a.alias):"Array"===b.util.type(a)?a.map(b.util.encode):a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(a){return Object.prototype.toString.call(a).match(/\[object (\w+)\]/)[1]},clone:function(a){var c=b.util.type(a);switch(c){case"Object":var d={};for(var e in a)a.hasOwnProperty(e)&&(d[e]=b.util.clone(a[e]));return d;case"Array":return a.map&&a.map(function(a){return b.util.clone(a)})}return a}},languages:{extend:function(a,c){var d=b.util.clone(b.languages[a]);for(var e in c)d[e]=c[e];return d},insertBefore:function(a,c,d,e){e=e||b.languages;var f=e[a];if(2==arguments.length){d=arguments[1];for(var g in d)d.hasOwnProperty(g)&&(f[g]=d[g]);return f}var h={};for(var i in f)if(f.hasOwnProperty(i)){if(i==c)for(var g in d)d.hasOwnProperty(g)&&(h[g]=d[g]);h[i]=f[i]}return b.languages.DFS(b.languages,function(b,c){c===e[a]&&b!=a&&(this[b]=h)}),e[a]=h},DFS:function(a,c,d){for(var e in a)a.hasOwnProperty(e)&&(c.call(a,e,a[e],d||e),"Object"===b.util.type(a[e])?b.languages.DFS(a[e],c):"Array"===b.util.type(a[e])&&b.languages.DFS(a[e],c,e))}},plugins:{},highlightAll:function(a,c){for(var d,e=document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'),f=0;d=e[f++];)b.highlightElement(d,a===!0,c)},highlightElement:function(c,d,f){for(var g,h,i=c;i&&!a.test(i.className);)i=i.parentNode;i&&(g=(i.className.match(a)||[,""])[1],h=b.languages[g]),c.className=c.className.replace(a,"").replace(/\s+/g," ")+" language-"+g,i=c.parentNode,/pre/i.test(i.nodeName)&&(i.className=i.className.replace(a,"").replace(/\s+/g," ")+" language-"+g);var j=c.textContent,k={element:c,language:g,grammar:h,code:j};if(!j||!h)return void b.hooks.run("complete",k);if(b.hooks.run("before-highlight",k),d&&e.Worker){var l=new Worker(b.filename);l.onmessage=function(a){k.highlightedCode=a.data,b.hooks.run("before-insert",k),k.element.innerHTML=k.highlightedCode,f&&f.call(k.element),b.hooks.run("after-highlight",k),b.hooks.run("complete",k)},l.postMessage(JSON.stringify({language:k.language,code:k.code,immediateClose:!0}))}else k.highlightedCode=b.highlight(k.code,k.grammar,k.language),b.hooks.run("before-insert",k),k.element.innerHTML=k.highlightedCode,f&&f.call(c),b.hooks.run("after-highlight",k),b.hooks.run("complete",k)},highlight:function(a,d,e){var f=b.tokenize(a,d);return c.stringify(b.util.encode(f),e)},tokenize:function(a,c,d){var e=b.Token,f=[a],g=c.rest;if(g){for(var h in g)c[h]=g[h];delete c.rest}a:for(var h in c)if(c.hasOwnProperty(h)&&c[h]){var i=c[h];i="Array"===b.util.type(i)?i:[i];for(var j=0;j<i.length;++j){var k=i[j],l=k.inside,m=!!k.lookbehind,n=0,o=k.alias;k=k.pattern||k;for(var p=0;p<f.length;p++){var q=f[p];if(f.length>a.length)break a;if(!(q instanceof e)){k.lastIndex=0;var r=k.exec(q);if(r){m&&(n=r[1].length);var s=r.index-1+n,r=r[0].slice(n),t=r.length,u=s+t,v=q.slice(0,s+1),w=q.slice(u+1),x=[p,1];v&&x.push(v);var y=new e(h,l?b.tokenize(r,l):r,o);x.push(y),w&&x.push(w),Array.prototype.splice.apply(f,x)}}}}}return f},hooks:{all:{},add:function(a,c){var d=b.hooks.all;d[a]=d[a]||[],d[a].push(c)},run:function(a,c){var d=b.hooks.all[a];if(d&&d.length)for(var e,f=0;e=d[f++];)e(c)}}},c=b.Token=function(a,b,c){this.type=a,this.content=b,this.alias=c};if(c.stringify=function(a,d,e){if("string"==typeof a)return a;if("Array"===b.util.type(a))return a.map(function(b){return c.stringify(b,d,a)}).join("");var f={t
}),f.languages.swift.string.inside.interpolation.inside.rest=f.util.clone(f.languages.swift),f.languages.objectivec=f.languages.extend("c",{keyword:/\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\b|(@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,string:/("|')(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|@"(\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),f.languages.scala=f.languages.extend("java",{keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,string:/"""[\W\w]*?"""|"(?:[^"\\\r\n]|\\.)*"|'(?:[^\\\r\n']|\\.[^\\']*)'/,builtin:/\b(?:String|Int|Long|Short|Byte|Boolean|Double|Float|Char|Any|AnyRef|AnyVal|Unit|Nothing)\b/,number:/\b(?:0x[\da-f]*\.?[\da-f]+|\d*\.?\d+e?\d*[dfl]?)\b/i,symbol:/'[^\d\s\\]\w*/}),delete f.languages.scala["class-name"],delete f.languages.scala["function"],c.exports}),a.register("b5",[],function(){return{setters:[],execute:function(){}}}),a.register("b6",[],function(){return{setters:[],execute:function(){}}}),a.registerDynamic("b7",[],!0,function(a,b,c){var d,e=this;return function(){function a(a){this.tokens=[],this.tokens.links={},this.options=a||m.defaults,this.rules=n.normal,this.options.gfm&&(this.options.tables?this.rules=n.tables:this.rules=n.gfm)}function e(a,b){if(this.options=b||m.defaults,this.links=a,this.rules=o.normal,this.renderer=this.options.renderer||new f,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=o.breaks:this.rules=o.gfm:this.options.pedantic&&(this.rules=o.pedantic)}function f(a){this.options=a||{}}function g(a){this.tokens=[],this.token=null,this.options=a||m.defaults,this.options.renderer=this.options.renderer||new f,this.renderer=this.options.renderer,this.renderer.options=this.options}function h(a,b){return a.replace(b?/&/g:/&(?!#?\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function i(a){return a.replace(/&([#\w]+);/g,function(a,b){return b=b.toLowerCase(),"colon"===b?":":"#"===b.charAt(0)?"x"===b.charAt(1)?String.fromCharCode(parseInt(b.substring(2),16)):String.fromCharCode(+b.substring(1)):""})}function j(a,b){return a=a.source,b=b||"",function c(d,e){return d?(e=e.source||e,e=e.replace(/(^|[^\[])\^/g,"$1"),a=a.replace(d,e),c):new RegExp(a,b)}}function k(){}function l(a){for(var b,c,d=1;d<arguments.length;d++){b=arguments[d];for(c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])}return a}function m(b,c,d){if(d||"function"==typeof c){d||(d=c,c=null),c=l({},m.defaults,c||{});var e,f,i=c.highlight,j=0;try{e=a.lex(b,c)}catch(k){return d(k)}f=e.length;var n=function(a){if(a)return c.highlight=i,d(a);var b;try{b=g.parse(e,c)}catch(f){a=f}return c.highlight=i,a?d(a):d(null,b)};if(!i||i.length<3)return n();if(delete c.highlight,!f)return n();for(;j<e.length;j++)!function(a){return"code"!==a.type?--f||n():i(a.text,a.lang,function(b,c){return b?n(b):null==c||c===a.text?--f||n():(a.text=c,a.escaped=!0,void(--f||n()))})}(e[j])}else try{return c&&(c=l({},m.defaults,c)),g.parse(a.lex(b,c),c)}catch(k){if(k.message+="\nPlease report this to https://github.com/chjj/marked.",(c||m.defaults).silent)return"<p>An error occured:</p><pre>"+h(k.message+"",!0)+"</pre>";throw k}}var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:k,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:k,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^
"OPTION"===a.nodeName&&(e=l.create("li",{"class":"dk-option","data-value":a.value,innerHTML:a.text,role:"option","aria-selected":"false",id:"dk"+this.data.cacheID+"-"+(a.id||a.value.replace(" ","-"))}),l.addClass(e,a.className),this.length+=1,a.disabled&&(l.addClass(e,"dk-option-disabled"),e.setAttribute("aria-disabled","true")),this.data.select.add(a,c),"number"==typeof c&&(c=this.item(c)),this.options.indexOf(c)>-1?c.parentNode.insertBefore(e,c):this.data.elem.lastChild.appendChild(e),e.addEventListener("mouseover",this),f=this.options.indexOf(c),this.options.splice(f,0,e),a.selected&&this.select(f))},item:function(a){return a=0>a?this.options.length+a:a,this.options[a]||null},remove:function(a){var b=this.item(a);b.parentNode.removeChild(b),this.options.splice(a,1),this.data.select.remove(a),this.select(this.data.select.selectedIndex),this.length-=1},init:function(a,c){var d,h=i.build(a,"dk"+i.uid);if(this.data={},this.data.select=a,this.data.elem=h.elem,this.data.settings=l.extend({},k,c),this.disabled=a.disabled,this.form=a.form,this.length=a.length,this.multiple=a.multiple,this.options=h.options.slice(0),this.selectedIndex=a.selectedIndex,this.selectedOptions=h.selected.slice(0),this.value=a.value,this.data.cacheID=i.uid,i.cache[this.data.cacheID]=this,this.data.settings.initialize.call(this),i.uid+=1,this._changeListener||(a.addEventListener("change",this),this._changeListener=!0),!f||this.data.settings.mobile){if(a.parentNode.insertBefore(this.data.elem,a),a.setAttribute("data-dkCacheId",this.data.cacheID),this.data.elem.addEventListener("click",this),this.data.elem.addEventListener("keydown",this),this.data.elem.addEventListener("keypress",this),this.form&&this.form.addEventListener("reset",this),!this.multiple)for(d=0;d<this.options.length;d++)this.options[d].addEventListener("mouseover",this);e||(b.addEventListener("click",i.onDocClick),g&&parent.document.addEventListener("click",i.onDocClick),e=!0)}return this},close:function(){var a,b=this.data.elem;if(!this.isOpen||this.multiple)return!1;for(a=0;a<this.options.length;a++)l.removeClass(this.options[a],"dk-option-highlight");b.lastChild.setAttribute("aria-expanded","false"),l.removeClass(b.lastChild,"dk-select-options-highlight"),l.removeClass(b,"dk-select-open-(up|down)"),this.isOpen=!1,this.data.settings.close.call(this)},open:l.deferred(function(){var c,d,e,f,g,i,j=this.data.elem,k=j.lastChild;return g=h?l.offset(j).top-b.documentElement.scrollTop:l.offset(j).top-a.scrollY,i=a.innerHeight-(g+j.offsetHeight),this.isOpen||this.multiple?!1:(k.style.display="block",c=k.offsetHeight,k.style.display="",d=g>c,e=i>c,f=d&&!e?"-up":"-down",this.isOpen=!0,l.addClass(j,"dk-select-open"+f),k.setAttribute("aria-expanded","true"),this._scrollTo(this.options.length-1),this._scrollTo(this.selectedIndex),void this.data.settings.open.call(this))}),disable:function(a,b){var c="dk-option-disabled";0!==arguments.length&&"boolean"!=typeof a||(b=a===d,a=this.data.elem,c="dk-select-disabled",this.disabled=b),b===d&&(b=!0),"number"==typeof a&&(a=this.item(a)),l[b?"addClass":"removeClass"](a,c)},select:function(a,b){var c,d,e,f,g=this.data.select;if("number"==typeof a&&(a=this.item(a)),"string"==typeof a)for(c=0;c<this.length;c++)this.options[c].getAttribute("data-value")===a&&(a=this.options[c]);return!a||"string"==typeof a||!b&&l.hasClass(a,"dk-option-disabled")?!1:l.hasClass(a,"dk-option")?(d=this.options.indexOf(a),e=g.options[d],this.multiple?(l.toggleClass(a,"dk-option-selected"),e.selected=!e.selected,l.hasClass(a,"dk-option-selected")?(a.setAttribute("aria-selected","true"),this.selectedOptions.push(a)):(a.setAttribute("aria-selected","false"),d=this.selectedOptions.indexOf(a),this.selectedOptions.splice(d,1))):(f=this.data.elem.firstChild,this.selectedOptions.length&&(l.removeClass(this.selectedOptions[0],"dk-option-selected"),this.selectedOptions[0].setAttribute("aria-selected","false")),l.addClass(a,"dk-option-selected"),a.setAttribute("aria-selected","true"),f.setAttribute("aria-activedescendant",a.id),f.className="dk-selected "+e.className,f.innerHTML=e.text,this.selec
}),Object.defineProperty(c.prototype,"validator",{get:function(){return k.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"asyncValidator",{get:function(){return k.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),c.prototype.viewToModelUpdate=function(a){this.viewModel=a,g.ObservableWrapper.callEmit(this.update,a)},c.prototype._isControlChanged=function(a){return f.StringMapWrapper.contains(a,"form")},c.decorators=[{type:e.Directive,args:[{selector:"[ngFormControl]",bindings:[b.formControlBinding],inputs:["form: ngFormControl","model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[i.NG_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[i.NG_ASYNC_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[j.NG_VALUE_ACCESSOR]}]}],c}(h.NgControl);return b.NgFormControl=l,c.exports}),a.registerDynamic("da",["11","c3","d6","d5","db","d8","d7"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("c3"),g=a("d6"),h=a("d5"),i=a("db"),j=a("d8"),k=a("d7");b.formControlBinding={provide:h.NgControl,useExisting:e.forwardRef(function(){return l})};var l=function(a){function c(b,c,d){a.call(this),this._validators=b,this._asyncValidators=c,this._control=new i.Control,this._added=!1,this.update=new f.EventEmitter,this.valueAccessor=k.selectValueAccessor(this,d)}return d(c,a),c.prototype.ngOnChanges=function(a){this._added||(k.setUpControl(this._control,this),this._control.updateValueAndValidity({emitEvent:!1}),this._added=!0),k.isPropertyUpdated(a,this.viewModel)&&(this._control.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(c.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"validator",{get:function(){return k.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"asyncValidator",{get:function(){return k.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),c.prototype.viewToModelUpdate=function(a){this.viewModel=a,f.ObservableWrapper.callEmit(this.update,a)},c.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([ngControl]):not([ngFormControl])",bindings:[b.formControlBinding],inputs:["model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[j.NG_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[j.NG_ASYNC_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[g.NG_VALUE_ACCESSOR]}]}],c}(h.NgControl);return b.NgModel=l,c.exports}),a.registerDynamic("dc",["11","d4","d7","d8"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("d4"),g=a("d7"),h=a("d8");b.controlGroupProvider={provide:f.ControlContainer,useExisting:e.forwardRef(function(){return i})};var i=function(a){function c(b,c,d){a.call(this),this._validators=c,this._asyncValidators=d,this._parent=b}return d(c,a),c.prototype.ngOnInit=function(){this.formDirective.addControlGroup(this)},c.prototype.ngOnDestroy=function(){this.formDirective.removeControlGroup(this)},Object.defineProperty(c.prototype,"control",{get:function(){return this.formDirective.getControlGroup(thi
emitEvent:!1}),this._initObservables()}return g(b,a),b.prototype.updateValue=function(a,b){var c=void 0===b?{}:b,d=c.onlySelf,e=c.emitEvent,f=c.emitModelToViewChange;f=h.isPresent(f)?f:!0,this._value=a,h.isPresent(this._onChange)&&f&&this._onChange(this._value),this.updateValueAndValidity({onlySelf:d,emitEvent:e})},b.prototype._updateValue=function(){},b.prototype._anyControlsHaveStatus=function(a){return!1},b.prototype.registerOnChange=function(a){this._onChange=a},b}(l);b.Control=m;var n=function(a){function b(b,c,d,e){void 0===c&&(c=null),void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,d,e),this.controls=b,this._optionals=h.isPresent(c)?c:{},this._initObservables(),this._setParentForControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return g(b,a),b.prototype.addControl=function(a,b){this.controls[a]=b,b.setParent(this)},b.prototype.removeControl=function(a){k.StringMapWrapper["delete"](this.controls,a)},b.prototype.include=function(a){k.StringMapWrapper.set(this._optionals,a,!0),this.updateValueAndValidity()},b.prototype.exclude=function(a){k.StringMapWrapper.set(this._optionals,a,!1),this.updateValueAndValidity()},b.prototype.contains=function(a){var b=k.StringMapWrapper.contains(this.controls,a);return b&&this._included(a)},b.prototype._setParentForControls=function(){var a=this;k.StringMapWrapper.forEach(this.controls,function(b,c){b.setParent(a)})},b.prototype._updateValue=function(){this._value=this._reduceValue()},b.prototype._anyControlsHaveStatus=function(a){var b=this,c=!1;return k.StringMapWrapper.forEach(this.controls,function(d,e){c=c||b.contains(e)&&d.status==a}),c},b.prototype._reduceValue=function(){return this._reduceChildren({},function(a,b,c){return a[c]=b.value,a})},b.prototype._reduceChildren=function(a,b){var c=this,d=a;return k.StringMapWrapper.forEach(this.controls,function(a,e){c._included(e)&&(d=b(d,a,e))}),d},b.prototype._included=function(a){var b=k.StringMapWrapper.contains(this._optionals,a);return!b||k.StringMapWrapper.get(this._optionals,a)},b}(l);b.ControlGroup=n;var o=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,c,d),this.controls=b,this._initObservables(),this._setParentForControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return g(b,a),b.prototype.at=function(a){return this.controls[a]},b.prototype.push=function(a){this.controls.push(a),a.setParent(this),this.updateValueAndValidity()},b.prototype.insert=function(a,b){k.ListWrapper.insert(this.controls,a,b),b.setParent(this),this.updateValueAndValidity()},b.prototype.removeAt=function(a){k.ListWrapper.removeAt(this.controls,a),this.updateValueAndValidity()},Object.defineProperty(b.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),b.prototype._updateValue=function(){this._value=this.controls.map(function(a){return a.value})},b.prototype._anyControlsHaveStatus=function(a){return this.controls.some(function(b){return b.status==a})},b.prototype._setParentForControls=function(){var a=this;this.controls.forEach(function(b){b.setParent(a)})},b}(l);return b.ControlArray=o,c.exports}),a.registerDynamic("ea",["11","c9","c2","db"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("c9"),f=a("c2"),g=a("db"),h=function(){function a(){}return a.prototype.group=function(a,b){void 0===b&&(b=null);var c=this._reduceControls(a),d=f.isPresent(b)?e.StringMapWrapper.get(b,"optionals"):null,h=f.isPresent(b)?e.StringMapWrapper.get(b,"validator"):null,i=f.isPresent(b)?e.StringMapWrapper.get(b,"asyncValidator"):null;return new g.ControlGroup(c,d,h,i)},a.prototype.control=function(a,b,c){return void 0===b&&(b=null),void 0===c&&(c=null),new g.Control(a,b,c)},a.prototype.array=function(a,b,c){var d=this;void 0===b&&(b=null),void 0===c&&(c=null);var e=a.map(function(a){return d._createControl(a)});return new g.ControlArray(e,b,c)},a.prototype._reduceControls=function(a){var b=this,c={};return e.StringMapWrapper.forEach(a,function(a,d){c[d]=b._createControl(a)}),c},a.prototype._createControl=function(a){if(a instanceof g.Control||a instanceof
c.exports}),a.registerDynamic("fc",["c2","fb","c9"],!0,function(a,b,c){"use strict";var d=a("c2"),e=a("fb"),f=a("c9"),g=function(){function a(){this.res=[]}return a.prototype.log=function(a){this.res.push(a)},a.prototype.logError=function(a){this.res.push(a)},a.prototype.logGroup=function(a){this.res.push(a)},a.prototype.logGroupEnd=function(){},a}(),h=function(){function a(a,b){void 0===b&&(b=!0),this._logger=a,this._rethrowException=b}return a.exceptionToString=function(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null);var e=new g,f=new a(e,!1);return f.call(b,c,d),e.res.join("\n")},a.prototype.call=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null);var e=this._findOriginalException(a),f=this._findOriginalStack(a),g=this._findContext(a);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(a)),d.isPresent(b)&&d.isBlank(f)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(b))),d.isPresent(c)&&this._logger.logError("REASON: "+c),d.isPresent(e)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(e)),d.isPresent(f)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(f))),d.isPresent(g)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(g)),this._logger.logGroupEnd(),this._rethrowException)throw a},a.prototype._extractMessage=function(a){return a instanceof e.BaseWrappedException?a.wrapperMessage:a.toString()},a.prototype._longStackTrace=function(a){return f.isListLikeIterable(a)?a.join("\n\n-----async gap-----\n"):a.toString()},a.prototype._findContext=function(a){try{return a instanceof e.BaseWrappedException?d.isPresent(a.context)?a.context:this._findContext(a.originalException):null}catch(b){return null}},a.prototype._findOriginalException=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a.originalException;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException;return b},a.prototype._findOriginalStack=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a,c=a.originalStack;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException,b instanceof e.BaseWrappedException&&d.isPresent(b.originalException)&&(c=b.originalStack);return c},a}();return b.ExceptionHandler=h,c.exports}),a.registerDynamic("cd",["fb","fc"],!0,function(a,b,c){"use strict";function d(a){return new TypeError(a)}function e(){throw new j("unimplemented")}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("fb"),h=a("fc"),i=a("fc");b.ExceptionHandler=i.ExceptionHandler;var j=function(a){function b(b){void 0===b&&(b="--"),a.call(this,b),this.message=b,this.stack=new Error(b).stack}return f(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.BaseException=j;var k=function(a){function b(b,c,d,e){a.call(this,b),this._wrapperMessage=b,this._originalException=c,this._originalStack=d,this._context=e,this._wrapperStack=new Error(b).stack}return f(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return h.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this.message},b}(g.BaseWrappedException);return b.WrappedException=k,b.makeTypeError=d,b.unimplemented=e,c.exports}),a.registerDynamic
return c.exports=a("139"),c.exports}),a.registerDynamic("13b",["13a","13e","133","13c","13d","134"],!0,function(a,b,c){return function(b){"use strict";var d=a("13a"),e=a("13e"),f=a("133"),g=a("13c"),h=a("13d");c.exports={order:100,canRead:function(a){return g.isFileSystemPath(a.url)},read:function(a){return new f(function(b,c){var f;try{f=g.toFileSystemPath(a.url)}catch(i){c(e.uri(i,"Malformed URI: %s",a.url))}h("Opening file: %s",f);try{d.readFile(f,function(a,d){a?c(e(a,'Error opening file "%s"',f)):b(d)})}catch(i){c(e(i,'Error opening file "%s"',f))}})}}}(a("134").Buffer),c.exports}),a.registerDynamic("13f",[],!0,function(a,b,c){function d(a){try{return h.responseType=a,h.responseType===a}catch(b){}return!1}function e(a){return"function"==typeof a}var f=this;b.fetch=e(f.fetch)&&e(f.ReadableByteStream),b.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),b.blobConstructor=!0}catch(g){}var h=new f.XMLHttpRequest;h.open("GET",f.location.host?"/":"https://example.com");var i="undefined"!=typeof f.ArrayBuffer,j=i&&e(f.ArrayBuffer.prototype.slice);return b.arraybuffer=i&&d("arraybuffer"),b.msstream=!b.fetch&&j&&d("ms-stream"),b.mozchunkedarraybuffer=!b.fetch&&i&&d("moz-chunked-arraybuffer"),b.overrideMimeType=e(h.overrideMimeType),b.vbArray=e(f.VBArray),h=null,c.exports}),a.registerDynamic("140",["13f","141","142","134","22"],!0,function(a,b,c){var d=this;return function(c,e){var f=a("13f"),g=a("141"),h=a("142"),i=b.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},j=b.IncomingMessage=function(a,b,d){function g(){m.read().then(function(a){if(!i._destroyed){if(a.done)return void i.push(null);i.push(new c(a.value)),g()}})}var i=this;if(h.Readable.call(i),i._mode=d,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){e.nextTick(function(){i.emit("close")})}),"fetch"===d){i._fetchResponse=b,i.url=b.url,i.statusCode=b.status,i.statusMessage=b.statusText;for(var j,k,l=b.headers[Symbol.iterator]();j=(k=l.next()).value,!k.done;)i.headers[j[0].toLowerCase()]=j[1],i.rawHeaders.push(j[0],j[1]);var m=b.body.getReader();g()}else{i._xhr=a,i._pos=0,i.url=a.responseURL,i.statusCode=a.status,i.statusMessage=a.statusText;var n=a.getAllResponseHeaders().split(/\r?\n/);if(n.forEach(function(a){var b=a.match(/^([^:]+):\s*(.*)/);if(b){var c=b[1].toLowerCase();"set-cookie"===c?(void 0===i.headers[c]&&(i.headers[c]=[]),i.headers[c].push(b[2])):void 0!==i.headers[c]?i.headers[c]+=", "+b[2]:i.headers[c]=b[2],i.rawHeaders.push(b[1],b[2])}}),i._charset="x-user-defined",!f.overrideMimeType){var o=i.rawHeaders["mime-type"];if(o){var p=o.match(/;\s*charset=([^;])(;|$)/);p&&(i._charset=p[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};g(j,h.Readable),j.prototype._read=function(){},j.prototype._onXHRProgress=function(){var a=this,b=a._xhr,e=null;switch(a._mode){case"text:vbarray":if(b.readyState!==i.DONE)break;try{e=new d.VBArray(b.responseBody).toArray()}catch(f){}if(null!==e){a.push(new c(e));break}case"text":try{e=b.responseText}catch(f){a._mode="text:vbarray";break}if(e.length>a._pos){var g=e.substr(a._pos);if("x-user-defined"===a._charset){for(var h=new c(g.length),j=0;j<g.length;j++)h[j]=255&g.charCodeAt(j);a.push(h)}else a.push(g,a._charset);a._pos=e.length}break;case"arraybuffer":if(b.readyState!==i.DONE)break;e=b.response,a.push(new c(new Uint8Array(e)));break;case"moz-chunked-arraybuffer":if(e=b.response,b.readyState!==i.LOADING||!e)break;a.push(new c(new Uint8Array(e)));break;case"ms-stream":if(e=b.response,b.readyState!==i.LOADING)break;var k=new d.MSStreamReader;k.onprogress=function(){k.result.byteLength>a._pos&&(a.push(new c(new Uint8Array(k.result.slice(a._pos)))),a._pos=k.result.byteLength)},k.onload=function(){a.push(null)},k.readAsArrayBuffer(e)}a._xhr.readyState===i.DONE&&"ms-stream"!==a._mode&&a.push(null)}}(a("134").Buffer,a("22")),c.exports}),a.registerDynamic("143",["134"],!0,function(a,b,c){return function(c){function d(a){if(a&&!h(a))throw new Error("Unknown encoding: "+a)}function e(a){return a.toString(this.encoding)}function f(a){this.charReceived=a.length%2,this.charLeng
var c=this;k.Writable.call(c),c._opts=a,c._body=[],c._headers={},a.auth&&c.setHeader("Authorization","Basic "+new b(a.auth).toString("base64")),Object.keys(a.headers).forEach(function(b){c.setHeader(b,a.headers[b])});var d;if("prefer-streaming"===a.mode)d=!1;else if("allow-wrong-content-type"===a.mode)d=!h.overrideMimeType;else{if(a.mode&&"default"!==a.mode&&"prefer-fast"!==a.mode)throw new Error("Invalid value for opts.mode");d=!0}c._mode=f(d),c.on("finish",function(){c._onFinish()})};i(o,k.Writable),o.prototype.setHeader=function(a,b){var c=this,d=a.toLowerCase();-1===p.indexOf(d)&&(c._headers[d]={name:a,value:b})},o.prototype.getHeader=function(a){var b=this;return b._headers[a.toLowerCase()].value},o.prototype.removeHeader=function(a){var b=this;delete b._headers[a.toLowerCase()]},o.prototype._onFinish=function(){var a=this;if(!a._destroyed){var c,f=a._opts,g=a._headers;if("POST"!==f.method&&"PUT"!==f.method&&"PATCH"!==f.method||(c=h.blobConstructor?new d.Blob(a._body.map(function(a){return l(a)}),{type:(g["content-type"]||{}).value||""}):b.concat(a._body).toString()),"fetch"===a._mode){var i=Object.keys(g).map(function(a){return[g[a].name,g[a].value]});d.fetch(a._opts.url,{method:a._opts.method,headers:i,body:c,mode:"cors",credentials:f.withCredentials?"include":"same-origin"}).then(function(b){a._fetchResponse=b,a._connect()},function(b){a.emit("error",b)})}else{var j=a._xhr=new d.XMLHttpRequest;try{j.open(a._opts.method,a._opts.url,!0)}catch(k){return void e.nextTick(function(){a.emit("error",k)})}"responseType"in j&&(j.responseType=a._mode.split(":")[0]),"withCredentials"in j&&(j.withCredentials=!!f.withCredentials),"text"===a._mode&&"overrideMimeType"in j&&j.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(g).forEach(function(a){j.setRequestHeader(g[a].name,g[a].value)}),a._response=null,j.onreadystatechange=function(){switch(j.readyState){case n.LOADING:case n.DONE:a._onXHRProgress()}},"moz-chunked-arraybuffer"===a._mode&&(j.onprogress=function(){a._onXHRProgress()}),j.onerror=function(){a._destroyed||a.emit("error",new Error("XHR error"))};try{j.send(c)}catch(k){return void e.nextTick(function(){a.emit("error",k)})}}}},o.prototype._onXHRProgress=function(){var a=this;g(a._xhr)&&!a._destroyed&&(a._response||a._connect(),a._response._onXHRProgress())},o.prototype._connect=function(){var a=this;a._destroyed||(a._response=new m(a._xhr,a._fetchResponse,a._mode),a.emit("response",a._response))},o.prototype._write=function(a,b,c){var d=this;d._body.push(a),c()},o.prototype.abort=o.prototype.destroy=function(){var a=this;a._destroyed=!0,a._response&&(a._response._destroyed=!0),a._xhr&&a._xhr.abort()},o.prototype.end=function(a,b,c){var d=this;"function"==typeof a&&(c=a,a=void 0),k.Writable.prototype.end.call(d,a,b,c)},o.prototype.flushHeaders=function(){},o.prototype.setTimeout=function(){},o.prototype.setNoDelay=function(){},o.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}(a("134").Buffer,a("22")),c.exports}),a.registerDynamic("159",[],!0,function(a,b,c){function d(){for(var a={},b=0;b<arguments.length;b++){var c=arguments[b];for(var d in c)e.call(c,d)&&(a[d]=c[d])}return a}c.exports=d;var e=Object.prototype.hasOwnProperty;return c.exports}),a.registerDynamic("15a",["159"],!0,function(a,b,c){return c.exports=a("159"),c.exports}),a.registerDynamic("15b",[],!0,function(a,b,c){return c.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized
})}var r="object"==typeof b&&b&&!b.nodeType&&b,s="object"==typeof c&&c&&!c.nodeType&&c,t="object"==typeof e&&e;t.global!==t&&t.window!==t&&t.self!==t||(a=t);var u,v,w=2147483647,x=36,y=1,z=26,A=38,B=700,C=72,D=128,E="-",F=/^xn--/,G=/[^\x20-\x7E]/,H=/[\x2E\u3002\uFF0E\uFF61]/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},J=x-y,K=Math.floor,L=String.fromCharCode;if(u={version:"1.3.2",ucs2:{decode:i,encode:j},decode:n,encode:o,toASCII:q,toUnicode:p},"function"==typeof d&&"object"==typeof d.amd&&d.amd)d("punycode",function(){return u});else if(r&&s)if(c.exports==r)s.exports=u;else for(v in u)u.hasOwnProperty(v)&&(r[v]=u[v]);else a.punycode=u}(this)}(a("22")),c.exports}),a.registerDynamic("173",["172"],!0,function(a,b,c){return c.exports=a("172"),c.exports}),a.registerDynamic("174",[],!0,function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}return c.exports=function(a,b,c,e){b=b||"&",c=c||"=";var f={};if("string"!=typeof a||0===a.length)return f;var g=/\+/g;a=a.split(b);var h=1e3;e&&"number"==typeof e.maxKeys&&(h=e.maxKeys);var i=a.length;h>0&&i>h&&(i=h);for(var j=0;i>j;++j){var k,l,m,n,o=a[j].replace(g,"%20"),p=o.indexOf(c);p>=0?(k=o.substr(0,p),l=o.substr(p+1)):(k=o,l=""),m=decodeURIComponent(k),n=decodeURIComponent(l),d(f,m)?Array.isArray(f[m])?f[m].push(n):f[m]=[f[m],n]:f[m]=n}return f},c.exports}),a.registerDynamic("175",[],!0,function(a,b,c){"use strict";var d=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};return c.exports=function(a,b,c,e){return b=b||"&",c=c||"=",null===a&&(a=void 0),"object"==typeof a?Object.keys(a).map(function(e){var f=encodeURIComponent(d(e))+c;return Array.isArray(a[e])?a[e].map(function(a){return f+encodeURIComponent(d(a))}).join(b):f+encodeURIComponent(d(a[e]))}).join(b):e?encodeURIComponent(d(e))+c+encodeURIComponent(d(a)):""},c.exports}),a.registerDynamic("176",["174","175"],!0,function(a,b,c){"use strict";return b.decode=b.parse=a("174"),b.encode=b.stringify=a("175"),c.exports}),a.registerDynamic("177",["176"],!0,function(a,b,c){return c.exports=a("176"),c.exports}),a.registerDynamic("178",["173","177"],!0,function(a,b,c){function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return i(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}function i(a){return"string"==typeof a}function j(a){return"object"==typeof a&&null!==a}function k(a){return null===a}function l(a){return null==a}var m=a("173");b.parse=e,b.resolve=g,b.resolveObject=h,b.format=f,b.Url=d;var n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,p=["<",">",'"',"`"," ","\r","\n"," "],q=["{","}","|","\\","^","`"].concat(p),r=["'"].concat(q),s=["%","/","?",";","#"].concat(r),t=["/","?","#"],u=255,v=/^[a-z0-9A-Z_-]{0,63}$/,w=/^([a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=a("177");return d.prototype.parse=function(a,b,c){if(!i(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a;d=d.trim();var e=n.exec(d);if(e){e=e[0];var f=e.toLowerCase();this.protocol=f,d=d.substr(e.length)}if(c||e||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===d.substr(0,2);!g||e&&y[e]||(d=d.substr(2),this.slashes=!0)}if(!y[e]&&(g||e&&!z[e])){for(var h=-1,j=0;j<t.length;j++){var k=d.indexOf(t[j]);-1!==k&&(-1===h||h>k)&&(h=k)}var l,o;o=-1===h?d.lastIndexOf("@"):d.lastIndexOf("@",h),-1!==o&&(l=d.slice(0,o),d=d.slice(o+1),this.auth=decodeURIComponent(l)),h=-1;for(var j=0;j<s.length;j++){va
return d}function u(a,b,c){var d,e,f="",g=a.tag;for(d=0,e=c.length;e>d;d+=1)z(a,b,c[d],!1,!1)&&(0!==d&&(f+=", "),f+=a.dump);a.tag=g,a.dump="["+f+"]"}function v(a,b,c,d){var e,f,g="",i=a.tag;for(e=0,f=c.length;f>e;e+=1)z(a,b+1,c[e],!0,!0)&&(d&&0===e||(g+=h(a,b)),g+="- "+a.dump);a.tag=i,a.dump=g||"[]"}function w(a,b,c){var d,e,f,g,h,i="",j=a.tag,k=Object.keys(c);for(d=0,e=k.length;e>d;d+=1)h="",0!==d&&(h+=", "),f=k[d],g=c[f],z(a,b,f,!1,!1)&&(a.dump.length>1024&&(h+="? "),h+=a.dump+": ",z(a,b,g,!1,!1)&&(h+=a.dump,i+=h));a.tag=j,a.dump="{"+i+"}"}function x(a,b,c,d){var e,f,g,i,j,k,l="",m=a.tag,n=Object.keys(c);if(a.sortKeys===!0)n.sort();else if("function"==typeof a.sortKeys)n.sort(a.sortKeys);else if(a.sortKeys)throw new F("sortKeys must be a boolean or a function");for(e=0,f=n.length;f>e;e+=1)k="",d&&0===e||(k+=h(a,b)),g=n[e],i=c[g],z(a,b+1,g,!0,!0,!0)&&(j=null!==a.tag&&"?"!==a.tag||a.dump&&a.dump.length>1024,j&&(k+=a.dump&&L===a.dump.charCodeAt(0)?"?":"? "),k+=a.dump,j&&(k+=h(a,b)),z(a,b+1,i,!0,j)&&(k+=a.dump&&L===a.dump.charCodeAt(0)?":":": ",k+=a.dump,l+=k));a.tag=m,a.dump=l||"{}"}function y(a,b,c){var d,e,f,g,h,i;for(e=c?a.explicitTypes:a.implicitTypes,f=0,g=e.length;g>f;f+=1)if(h=e[f],(h.instanceOf||h.predicate)&&(!h.instanceOf||"object"==typeof b&&b instanceof h.instanceOf)&&(!h.predicate||h.predicate(b))){if(a.tag=c?h.tag:"?",h.represent){if(i=a.styleMap[h.tag]||h.defaultStyle,"[object Function]"===I.call(h.represent))d=h.represent(b,i);else{if(!J.call(h.represent,i))throw new F("!<"+h.tag+'> tag resolver accepts not "'+i+'" style');d=h.represent[i](b,i)}a.dump=d}return!0}return!1}function z(a,b,c,d,e,f){a.tag=null,a.dump=c,y(a,c,!1)||y(a,c,!0);var g=I.call(a.dump);d&&(d=a.flowLevel<0||a.flowLevel>b);var h,i,j="[object Object]"===g||"[object Array]"===g;if(j&&(h=a.duplicates.indexOf(c),i=-1!==h),(null!==a.tag&&"?"!==a.tag||i||2!==a.indent&&b>0)&&(e=!1),i&&a.usedDuplicates[h])a.dump="*ref_"+h;else{if(j&&i&&!a.usedDuplicates[h]&&(a.usedDuplicates[h]=!0),"[object Object]"===g)d&&0!==Object.keys(a.dump).length?(x(a,b,a.dump,e),i&&(a.dump="&ref_"+h+a.dump)):(w(a,b,a.dump),i&&(a.dump="&ref_"+h+" "+a.dump));else if("[object Array]"===g)d&&0!==a.dump.length?(v(a,b,a.dump,e),i&&(a.dump="&ref_"+h+a.dump)):(u(a,b,a.dump),i&&(a.dump="&ref_"+h+" "+a.dump));else{if("[object String]"!==g){if(a.skipInvalid)return!1;throw new F("unacceptable kind of an object to dump "+g)}"?"!==a.tag&&o(a,a.dump,b,f)}null!==a.tag&&"?"!==a.tag&&(a.dump="!<"+a.tag+"> "+a.dump)}return!0}function A(a,b){var c,d,e=[],f=[];for(B(a,e,f),c=0,d=f.length;d>c;c+=1)b.duplicates.push(e[f[c]]);b.usedDuplicates=new Array(d)}function B(a,b,c){var d,e,f;if(null!==a&&"object"==typeof a)if(e=b.indexOf(a),-1!==e)-1===c.indexOf(e)&&c.push(e);else if(b.push(a),Array.isArray(a))for(e=0,f=a.length;f>e;e+=1)B(a[e],b,c);else for(d=Object.keys(a),e=0,f=d.length;f>e;e+=1)B(a[d[e]],b,c)}function C(a,b){b=b||{};var c=new f(b);return c.noRefs||A(a,c),z(c,0,a,!0,!0)?c.dump+"\n":""}function D(a,b){return C(a,E.extend({schema:H},b))}var E=a("17e"),F=a("180"),G=a("182"),H=a("181"),I=Object.prototype.toString,J=Object.prototype.hasOwnProperty,K=9,L=10,M=32,N=33,O=34,P=35,Q=37,R=38,S=39,T=42,U=44,V=45,W=58,X=62,Y=63,Z=64,$=91,_=93,aa=96,ba=123,ca=124,da=125,ea={};ea[0]="\\0",ea[7]="\\a",ea[8]="\\b",ea[9]="\\t",ea[10]="\\n",ea[11]="\\v",ea[12]="\\f",ea[13]="\\r",ea[27]="\\e",ea[34]='\\"',ea[92]="\\\\",ea[133]="\\N",ea[160]="\\_",ea[8232]="\\L",ea[8233]="\\P";var fa=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ga=1,ha=2,ia=3,ja=4,ka=5;return c.exports.dump=C,c.exports.safeDump=D,c.exports}),a.registerDynamic("184",["17e","180","185"],!0,function(a,b,c){"use strict";function d(a,b,c){var e=[];return a.include.forEach(function(a){c=d(a,b,c)}),a[b].forEach(function(a){c.forEach(function(b,c){b.tag===a.tag&&e.push(c)}),c.push(a)}),c.filter(function(a,b){return-1===e.indexOf(b)})}function e(){function a(a){d[a.tag]=a}var b,c,d={};for(b=0,c=arguments.length;c>b;b+=1)arguments[b].forEach(a);return d}function f(a){this.include=a.include||[],this.implicit=a
i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<<e|h,j+=e;j>0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p},c.exports}),a.registerDynamic("1a6",["1a5"],!0,function(a,b,c){return c.exports=a("1a5"),c.exports}),a.registerDynamic("1a7",[],!0,function(a,b,c){var d={}.toString;return c.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)},c.exports}),a.registerDynamic("148",["1a7"],!0,function(a,b,c){return c.exports=a("1a7"),c.exports}),a.registerDynamic("1a8",["1a4","1a6","148"],!0,function(a,b,c){"use strict";function d(){function a(){}try{var b=new Uint8Array(1);return b.foo=function(){return 42},b.constructor=a,42===b.foo()&&b.constructor===a&&"function"==typeof b.subarray&&0===b.subarray(1,1).byteLength}catch(c){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,0>b?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function h(a,b,c){"string"==typeof c&&""!==c||(c="utf8");var d=0|s(b,c);return a=p(a,d),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Z(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){return f.TYPED_ARRAY_SUPPORT?(b.byteLength,a=f._augment(new Uint8Array(b))):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Z(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=f._augment(new Uint8Array(b)),a.__proto__=f.prototype):(a.length=b,a._isBuffer=!0);var c=0!==b&&b<=f.poolSize>>>1;return c&&(a.parent=$),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b=0|b,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b
return{setters:[function(a){b=a.Injectable,c=a.EventEmitter},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a.ScrollService,j=a.INVIEW_POSITION},function(a){k=a.Hash}],execute:function(){"use strict";l={NEXT:1,BACK:-1,INITIAL:0},m=function(){function a(a,b,d){var e=this;f(this,m),this.hash=a,this.scrollService=b,this.activeCatIdx=0,this.activeMethodIdx=-1,this.changed=new c,this.categories=h(d.buildMenuTree().entries()).map(function(a){return{name:a[0],description:a[1].description,methods:a[1].methods}}),b.scroll.subscribe(function(a){e.scrollUpdate(a.isScrolledDown)}),this.changeActive(l.INITIAL),this.hash.changed.subscribe(function(a){e.hashScroll(a)})}e(a,[{key:"scrollUpdate",value:function(a){for(var b=!1;!b;){var c=this.getCurrentMethodEl();if(!c)return;var d=this.scrollService.getElementPos(c);b=a&&d===j.BELLOW?this.changeActive(l.NEXT):a||d!==j.ABOVE?!0:this.changeActive(l.BACK)}}},{key:"getCurrentMethodEl",value:function(){return this.getMethodElByPtr(this.activeMethodPtr,this.categories[this.activeCatIdx].name)}},{key:"getMethodElByPtr",value:function(a,b){var c=a?'[pointer="'+a+'"][tag="'+b+'"]':'[tag="'+b+'"]';return document.querySelector(c)}},{key:"getMethodElByOperId",value:function(a){var b='[operation-id="'+a+'"]';return document.querySelector(b)}},{key:"activate",value:function(a,b){var c=this.categories;c[this.activeCatIdx].active=!1,c[this.activeCatIdx].methods.length&&this.activeMethodIdx>=0&&(c[this.activeCatIdx].methods[this.activeMethodIdx].active=!1),this.activeCatIdx=a,this.activeMethodIdx=b,c[a].active=!0,this.activeMethodPtr=null;var d=void 0;c[a].methods.length&&b>-1&&(d=c[a].methods[b],d.active=!0,this.activeMethodPtr=d.pointer),this.changed.next({cat:c[a],item:d})}},{key:"_calcActiveIndexes",value:function(a){var b=this.categories,c=b.length,d=b[this.activeCatIdx].methods.length,e=this.activeMethodIdx+a,f=this.activeCatIdx;if(e>d-1&&(f++,e=-1),-1>e){var g=--f;d=b[Math.max(g,0)].methods.length,e=d-1}return f>c-1&&(f=c-1,e=d-1),0>f&&(f=0,e=0),[f,e]}},{key:"changeActive",value:function(){var a=arguments.length<=0||void 0===arguments[0]?1:arguments[0],b=this._calcActiveIndexes(a),c=g(b,2),d=c[0],e=c[1];return this.activate(d,e),0===e&&0===d}},{key:"scrollToActive",value:function(){this.scrollService.scrollTo(this.getCurrentMethodEl())}},{key:"hashScroll",value:function(a){if(a){var b=void 0;a=a.substr(1);var c=a.split("/")[0],d=decodeURIComponent(a.substr(c.length+1));if("operation"===c)b=this.getMethodElByOperId(d);else if("tag"===c){var e=d.split("/")[0];d=d.substr(e.length),b=this.getMethodElByPtr(d,e)}b&&this.scrollService.scrollTo(b)}}}]);var m=a;return a=b()(a)||a,a=Reflect.metadata("parameters",[[k],[i],[d]])(a)||a}(),a("MenuService",m)}}}),a.registerDynamic("122",[],!0,function(a,b,c){return c.exports}),a.registerDynamic("1c0",[],!0,function(a,b,c){return c.exports=function(){},c.exports}),a.registerDynamic("1af",["1c1","1c2"],!0,function(a,b,c){var d=a("1c1"),e=a("1c2");return c.exports=function(a){return d(e(a))},c.exports}),a.registerDynamic("1c3",["1c0","1c4","104","1af","1c5"],!0,function(a,b,c){"use strict";var d=a("1c0"),e=a("1c4"),f=a("104"),g=a("1af");return c.exports=a("1c5")(Array,"Array",function(a,b){this._t=g(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,e(1)):"keys"==b?e(0,c):"values"==b?e(0,a[c]):e(0,[c,a[c]])},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries"),c.exports}),a.registerDynamic("106",["1c3","104"],!0,function(a,b,c){a("1c3");var d=a("104");return d.NodeList=d.HTMLCollection=d.Array,c.exports}),a.registerDynamic("1c4",[],!0,function(a,b,c){return c.exports=function(a,b){return{value:b,done:!!a}},c.exports}),a.registerDynamic("11f",["a7","117","11c","103"],!0,function(a,b,c){"use strict";var d=a("a7"),e=a("117"),f=a("11c"),g=a("103")("species");return c.exports=function(a){var b=d[a];f&&b&&!b[g]&&e.setDesc(b,g,{configurable:!0,get:function(){return this}})},c.exports}),a.register
},a.charCodeAt=function(a,b){return a.charCodeAt(b)},a.split=function(a,b){return a.split(b)},a.equals=function(a,b){return a===b},a.stripLeft=function(a,b){if(a&&a.length){for(var c=0,d=0;d<a.length&&a[d]==b;d++)c++;a=a.substring(c)}return a},a.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,d=a.length-1;d>=0&&a[d]==b;d--)c--;a=a.substring(0,c)}return a},a.replace=function(a,b,c){return a.replace(b,c)},a.replaceAll=function(a,b,c){return a.replace(b,c)},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=V;var W=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=W;var X=function(a){function b(b){a.call(this),this.message=b}return Q(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=X;var Y=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new X("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new X("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}();b.NumberWrapper=Y,b.RegExp=R.RegExp;var Z=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new R.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=function(a,b){return a.lastIndex=0,a.test(b)},a.matcher=function(a,b){return a.lastIndex=0,{re:a,input:b}},a.replaceAll=function(a,b,c){var d=a.exec(b),e="";a.lastIndex=0;for(var f=0;d;)e+=b.substring(f,d.index),e+=c(d),f=d.index+d[0].length,a.lastIndex=f,d=a.exec(b);return e+=b.substring(f)},a}();b.RegExpWrapper=Z;var $=function(){function a(){}return a.next=function(a){return a.re.exec(a.input)},a}();b.RegExpMatcherWrapper=$;var _=function(){function a(){}return a.apply=function(a,b){return a.apply(null,b)},a}();b.FunctionWrapper=_,b.looseIdentical=z,b.getMapKey=A,b.normalizeBlank=B,b.normalizeBool=C,b.isJsObject=D,b.print=E,b.warn=F;var aa=function(){function a(){}return a.parse=function(a){return R.JSON.parse(a)},a.stringify=function(a){return R.JSON.stringify(a,null,2)},a}();b.Json=aa;var ba=function(){function a(){}return a.create=function(a,c,d,e,f,g,h){return void 0===c&&(c=1),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),void 0===g&&(g=0),void 0===h&&(h=0),new b.Date(a,c-1,d,e,f,g,h)},a.fromISOString=function(a){return new b.Date(a)},a.fromMillis=function(a){return new b.Date(a)},a.toMillis=function(a){return a.getTime()},a.now=function(){return new b.Date},a.toJson=function(a){return a.toJSON()},a}();b.DateWrapper=ba,b.setValueOnPath=G;var ca=null;return b.getSymbolIterator=H,b.evalExpression=I,b.isPrimitive=J,b.hasConstructor=K,b.bitWiseOr=L,b.bitWiseAnd=M,b.escape=N,c.exports}),a.registerDynamic("5d",["65"],!0,function(a,b,c){"use strict";function d(){return h}function e(a){h=a}function f(a){g.isBlank(h)&&(h=a)}var g=a("65"),h=null;b.getDOM=d,b.setDOM=e,b.setRootDomAdapter=f;var i=function(){function a(){this.xhrType=null}return a.prototype.getXHR=function(){return this.xhrType},Object.defineProperty(a.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(a){this._attrToPropMap=a},enumerable:!0,configurable:!0}),a}();ret
"use strict";function d(){return new l.NgZone({enableLongStackTrace:m.assertionsEnabled()})}function e(a){if(x)throw new t.BaseException("Already creating a platform...");if(m.isPresent(w)&&!w.disposed)throw new t.BaseException("There can be only one platform. Destroy the previous one to create a new one.");m.lockMode(),x=!0;try{w=a.get(y)}finally{x=!1}return w}function f(a){var b=h();if(m.isBlank(b))throw new t.BaseException("Not platform exists!");if(m.isPresent(b)&&m.isBlank(b.injector.get(a,null)))throw new t.BaseException("A platform with a different configuration has been created. Please destroy it first.");return b}function g(){m.isPresent(w)&&!w.disposed&&w.dispose()}function h(){return m.isPresent(w)&&!w.disposed?w:null}function i(a,b){var c=a.get(A);return c.bootstrap(b)}function j(a,b){var c=a.get(A);return c.run(function(){var d=a.get(s.ComponentResolver);return p.PromiseWrapper.all([d.resolveComponent(b),c.waitForAsyncInitializers()]).then(function(a){return c.bootstrap(a[0])})})}var k=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l=a("1e8"),m=a("ac"),n=a("1fa"),o=a("203"),p=a("1ed"),q=a("1ec"),r=a("1ff"),s=a("1ef"),t=a("b9"),u=a("1fc"),v=a("204");b.createNgZone=d;var w,x=!1;b.createPlatform=e,b.assertPlatform=f,b.disposePlatform=g,b.getPlatform=h,b.coreBootstrap=i,b.coreLoadAndBootstrap=j;var y=function(){function a(){}return Object.defineProperty(a.prototype,"injector",{get:function(){throw t.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"disposed",{get:function(){throw t.unimplemented()},enumerable:!0,configurable:!0}),a}();b.PlatformRef=y;var z=function(a){function b(b){if(a.call(this),this._injector=b,this._applications=[],this._disposeListeners=[],this._disposed=!1,!x)throw new t.BaseException("Platforms have to be created via `createPlatform`!");var c=b.get(o.PLATFORM_INITIALIZER,null);m.isPresent(c)&&c.forEach(function(a){return a()})}return k(b,a),b.prototype.registerDisposeListener=function(a){this._disposeListeners.push(a)},Object.defineProperty(b.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),b.prototype.addApplication=function(a){this._applications.push(a)},b.prototype.dispose=function(){q.ListWrapper.clone(this._applications).forEach(function(a){return a.dispose()}),this._disposeListeners.forEach(function(a){return a()}),this._disposed=!0},b.prototype._applicationDisposed=function(a){q.ListWrapper.remove(this._applications,a)},b.decorators=[{type:n.Injectable}],b.ctorParameters=[{type:n.Injector}],b}(y);b.PlatformRef_=z;var A=function(){function a(){}return Object.defineProperty(a.prototype,"injector",{get:function(){return t.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"zone",{get:function(){return t.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentTypes",{get:function(){return t.unimplemented()},enumerable:!0,configurable:!0}),a}();b.ApplicationRef=A;var B=function(a){function b(b,c,d){var e=this;a.call(this),this._platform=b,this._zone=c,this._injector=d,this._bootstrapListeners=[],this._disposeListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._changeDetectorRefs=[],this._runningTick=!1,this._enforceNoNewChanges=!1;var f=d.get(l.NgZone);this._enforceNoNewChanges=m.assertionsEnabled(),f.run(function(){e._exceptionHandler=d.get(t.ExceptionHandler)}),this._asyncInitDonePromise=this.run(function(){var a,b=d.get(o.APP_INITIALIZER,null),c=[];if(m.isPresent(b))for(var f=0;f<b.length;f++){var g=b[f]();m.isPromise(g)&&c.push(g)}return c.length>0?(a=p.PromiseWrapper.all(c).then(function(a){return e._asyncInitDone=!0}),e._asyncInitDone=!1):(e._asyncInitDone=!0,a=p.PromiseWrapper.resolve(!0)),a}),p.ObservableWrapper.subscribe(f.onError,function(a){e._exceptionHandler.ca
},a.prototype.detectChanges=function(){this._view.detectChanges(!1)},a.prototype.checkNoChanges=function(){this._view.detectChanges(!0)},a.prototype.reattach=function(){this._view.cdMode=f.ChangeDetectionStrategy.CheckAlways,this.markForCheck()},a.prototype.onDestroy=function(a){this._view.disposables.push(a)},a.prototype.destroy=function(){this._view.destroy()},a}();return b.ViewRef_=i,c.exports}),a.registerDynamic("21a",["21b"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("21b"),f=new Object,g=function(a){function b(b,c){a.call(this),this._view=b,this._nodeIndex=c}return d(b,a),b.prototype.get=function(a,b){void 0===b&&(b=e.THROW_IF_NOT_FOUND);var c=f;return c===f&&(c=this._view.injectorGet(a,this._nodeIndex,f)),c===f&&(c=this._view.parentInjector.get(a,b)),c},b}(e.Injector);return b.ElementInjector=g,c.exports}),a.registerDynamic("21c",["1ec","21d","ac","1ed","1f3","21e","207","1f8","204","1f6","21f","21a"],!0,function(a,b,c){"use strict";function d(a){var b;if(a instanceof g.AppElement){var c=a;if(b=c.nativeElement,h.isPresent(c.nestedViews))for(var e=c.nestedViews.length-1;e>=0;e--){var f=c.nestedViews[e];f.rootNodesOrAppElements.length>0&&(b=d(f.rootNodesOrAppElements[f.rootNodesOrAppElements.length-1]))}}else b=a;return b}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("1ec"),g=a("21d"),h=a("ac"),i=a("1ed"),j=a("1f3"),k=a("21e"),l=a("207"),m=a("1f8"),n=a("204"),o=a("1f6"),p=a("21f"),q=a("21a"),r=n.wtfCreateScope("AppView#check(ascii id)"),s=function(){function a(a,b,c,d,e,f,g){this.clazz=a,this.componentType=b,this.type=c,this.viewUtils=d,this.parentInjector=e,this.declarationAppElement=f,this.cdMode=g,this.contentChildren=[],this.viewChildren=[],this.viewContainerElement=null,this.cdState=m.ChangeDetectorState.NeverChecked,this.destroyed=!1,this.ref=new j.ViewRef_(this),c===k.ViewType.COMPONENT||c===k.ViewType.HOST?this.renderer=d.renderComponent(b):this.renderer=f.parentView.renderer}return a.prototype.create=function(a,b,c){this.context=a;var d;switch(this.type){case k.ViewType.COMPONENT:d=l.ensureSlotCount(b,this.componentType.slotCount);break;case k.ViewType.EMBEDDED:d=this.declarationAppElement.parentView.projectableNodes;break;case k.ViewType.HOST:d=b}return this._hasExternalHostElement=h.isPresent(c),this.projectableNodes=d,this.createInternal(c)},a.prototype.createInternal=function(a){return null},a.prototype.init=function(a,b,c,d){this.rootNodesOrAppElements=a,this.allNodes=b,this.disposables=c,this.subscriptions=d,this.type===k.ViewType.COMPONENT&&(this.declarationAppElement.parentView.viewChildren.push(this),this.dirtyParentQueriesInternal())},a.prototype.selectOrCreateHostElement=function(a,b,c){var d;return d=h.isPresent(b)?this.renderer.selectRootElement(b,c):this.renderer.createElement(null,a,c)},a.prototype.injectorGet=function(a,b,c){return this.injectorGetInternal(a,b,c)},a.prototype.injectorGetInternal=function(a,b,c){return c},a.prototype.injector=function(a){return h.isPresent(a)?new q.ElementInjector(this,a):this.parentInjector},a.prototype.destroy=function(){this._hasExternalHostElement?this.renderer.detachView(this.flatRootNodes):h.isPresent(this.viewContainerElement)&&this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this)),this._destroyRecurse()},a.prototype._destroyRecurse=function(){if(!this.destroyed){for(var a=this.contentChildren,b=0;b<a.length;b++)a[b]._destroyRecurse();a=this.viewChildren;for(var b=0;b<a.length;b++)a[b]._destroyRecurse();this.destroyLocal(),this.destroyed=!0}},a.prototype.destroyLocal=function(){for(var a=this.type===k.ViewType.COMPONENT?this.declarationAppElement.nativeElement:null,b=0;b<this.disposables.length;b++)this.disposables[b]();for(var b=0;b<this.subscriptions.length;b++)i.ObservableWrapper.dis
b.CHANGE_DETECTOR_STATE_VALUES=j.CHANGE_DETECTOR_STATE_VALUES,b.isDefaultChangeDetectionStrategy=j.isDefaultChangeDetectionStrategy;var k=a("226");b.ChangeDetectorRef=k.ChangeDetectorRef;var l=a("222");b.IterableDiffers=l.IterableDiffers;var m=a("224");b.KeyValueDiffers=m.KeyValueDiffers;var n=a("223");b.DefaultIterableDiffer=n.DefaultIterableDiffer;var o=a("227");return b.WrappedValue=o.WrappedValue,b.ValueUnwrapper=o.ValueUnwrapper,b.SimpleChange=o.SimpleChange,b.devModeEqual=o.devModeEqual,b.looseIdentical=o.looseIdentical,b.uninitialized=o.uninitialized,b.keyValDiff=[new g.DefaultKeyValueDifferFactory],b.iterableDiff=[new e.DefaultIterableDifferFactory],b.defaultIterableDiffers=new d.IterableDiffers(b.iterableDiff),b.defaultKeyValueDiffers=new f.KeyValueDiffers(b.keyValDiff),c.exports}),a.registerDynamic("21b",["b9"],!0,function(a,b,c){"use strict";var d=a("b9"),e=new Object;b.THROW_IF_NOT_FOUND=e;var f=function(){function a(){}return a.prototype.get=function(a,b){return d.unimplemented()},a.THROW_IF_NOT_FOUND=e,a}();return b.Injector=f,c.exports}),a.registerDynamic("205",["1ec","228","229","b9","22a","1df","21b","22"],!0,function(a,b,c){return function(c){"use strict";function d(a,b){for(var c=[],d=0;d<a._proto.numberOfProviders;++d)c.push(b(a._proto.getProviderAtIndex(d)));return c}var e=a("1ec"),f=a("228"),g=a("229"),h=a("b9"),i=a("22a"),j=a("1df"),k=a("21b"),l=10,m=new Object,n=function(){function a(a,b){this.provider0=null,this.provider1=null,this.provider2=null,this.provider3=null,this.provider4=null,this.provider5=null,this.provider6=null,this.provider7=null,this.provider8=null,this.provider9=null,this.keyId0=null,this.keyId1=null,this.keyId2=null,this.keyId3=null,this.keyId4=null,this.keyId5=null,this.keyId6=null,this.keyId7=null,this.keyId8=null,this.keyId9=null;var c=b.length;c>0&&(this.provider0=b[0],this.keyId0=b[0].key.id),c>1&&(this.provider1=b[1],this.keyId1=b[1].key.id),c>2&&(this.provider2=b[2],this.keyId2=b[2].key.id),c>3&&(this.provider3=b[3],this.keyId3=b[3].key.id),c>4&&(this.provider4=b[4],this.keyId4=b[4].key.id),c>5&&(this.provider5=b[5],this.keyId5=b[5].key.id),c>6&&(this.provider6=b[6],this.keyId6=b[6].key.id),c>7&&(this.provider7=b[7],this.keyId7=b[7].key.id),c>8&&(this.provider8=b[8],this.keyId8=b[8].key.id),c>9&&(this.provider9=b[9],this.keyId9=b[9].key.id)}return a.prototype.getProviderAtIndex=function(a){if(0==a)return this.provider0;if(1==a)return this.provider1;if(2==a)return this.provider2;if(3==a)return this.provider3;if(4==a)return this.provider4;if(5==a)return this.provider5;if(6==a)return this.provider6;if(7==a)return this.provider7;if(8==a)return this.provider8;if(9==a)return this.provider9;throw new g.OutOfBoundsError(a)},a.prototype.createInjectorStrategy=function(a){return new q(a,this)},a}();b.ReflectiveProtoInjectorInlineStrategy=n;var o=function(){function a(a,b){this.providers=b;var c=b.length;this.keyIds=e.ListWrapper.createFixedSize(c);for(var d=0;c>d;d++)this.keyIds[d]=b[d].key.id}return a.prototype.getProviderAtIndex=function(a){if(0>a||a>=this.providers.length)throw new g.OutOfBoundsError(a);return this.providers[a]},a.prototype.createInjectorStrategy=function(a){return new r(this,a)},a}();b.ReflectiveProtoInjectorDynamicStrategy=o;var p=function(){function a(a){this.numberOfProviders=a.length,this._strategy=a.length>l?new o(this,a):new n(this,a)}return a.fromResolvedProviders=function(b){return new a(b)},a.prototype.getProviderAtIndex=function(a){return this._strategy.getProviderAtIndex(a)},a}();b.ReflectiveProtoInjector=p;var q=function(){function a(a,b){this.injector=a,this.protoStrategy=b,this.obj0=m,this.obj1=m,this.obj2=m,this.obj3=m,this.obj4=m,this.obj5=m,this.obj6=m,this.obj7=m,this.obj8=m,this.obj9=m}return a.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},a.prototype.instantiateProvider=function(a){return this.injector._new(a)},a.prototype.getObjByKeyId=function(a){var b=this.protoStrategy,c=this.injector;return b.keyId0===a?(this.obj0===m&&(this.obj0=c._new(b.provider0)),this.obj0):b.keyId1===a?(this.obj1===m&&(this.ob
b.VIEW_ENCAPSULATION_VALUES=[c.Emulated,c.Native,c.None];var d=function(){function a(a){var b=void 0===a?{}:a,c=b.templateUrl,d=b.template,e=b.directives,f=b.pipes,g=b.encapsulation,h=b.styles,i=b.styleUrls;this.templateUrl=c,this.template=d,this.styleUrls=i,this.styles=h,this.directives=e,this.pipes=f,this.encapsulation=g}return a}();b.ViewMetadata=d}(a("22")),c.exports}),a.registerDynamic("21e",[],!0,function(a,b,c){"use strict";!function(a){a[a.HOST=0]="HOST",a[a.COMPONENT=1]="COMPONENT",a[a.EMBEDDED=2]="EMBEDDED"}(b.ViewType||(b.ViewType={}));b.ViewType;return c.exports}),a.registerDynamic("21f",["ac","1ec","21e"],!0,function(a,b,c){"use strict";var d=a("ac"),e=a("1ec"),f=a("21e"),g=function(){function a(a,b,c){this.providerTokens=a,this.componentToken=b,this.refTokens=c}return a}();b.StaticNodeDebugInfo=g;var h=function(){function a(a,b,c,d){this._view=a,this._nodeIndex=b,this._tplRow=c,this._tplCol=d}return Object.defineProperty(a.prototype,"_staticNodeInfo",{get:function(){return d.isPresent(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"component",{get:function(){var a=this._staticNodeInfo;return d.isPresent(a)&&d.isPresent(a.componentToken)?this.injector.get(a.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentRenderElement",{get:function(){for(var a=this._view;d.isPresent(a.declarationAppElement)&&a.type!==f.ViewType.COMPONENT;)a=a.declarationAppElement.parentView;return d.isPresent(a.declarationAppElement)?a.declarationAppElement.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderNode",{get:function(){return d.isPresent(this._nodeIndex)&&d.isPresent(this._view.allNodes)?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"providerTokens",{get:function(){var a=this._staticNodeInfo;return d.isPresent(a)?a.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"references",{get:function(){var a=this,b={},c=this._staticNodeInfo;if(d.isPresent(c)){var f=c.refTokens;e.StringMapWrapper.forEach(f,function(c,e){var f;f=d.isBlank(c)?d.isPresent(a._view.allNodes)?a._view.allNodes[a._nodeIndex]:null:a._view.injectorGet(c,a._nodeIndex,null),b[e]=f})}return b},enumerable:!0,configurable:!0}),a}();return b.DebugContext=h,c.exports}),a.registerDynamic("227",["ac","1ec"],!0,function(a,b,c){"use strict";function d(a,b){return f.isListLikeIterable(a)&&f.isListLikeIterable(b)?f.areIterablesEqual(a,b,d):f.isListLikeIterable(a)||e.isPrimitive(a)||f.isListLikeIterable(b)||e.isPrimitive(b)?e.looseIdentical(a,b):!0}var e=a("ac"),f=a("1ec"),g=a("ac");b.looseIdentical=g.looseIdentical,b.uninitialized=new Object,b.devModeEqual=d;var h=function(){function a(a){this.wrapped=a}return a.wrap=function(b){return new a(b)},a}();b.WrappedValue=h;var i=function(){function a(){this.hasWrappedValue=!1}return a.prototype.unwrap=function(a){return a instanceof h?(this.hasWrappedValue=!0,a.wrapped):a},a.prototype.reset=function(){this.hasWrappedValue=!1},a}();b.ValueUnwrapper=i;var j=function(){function a(a,b){this.previousValue=a,this.currentValue=b}return a.prototype.isFirstChange=function(){return this.previousValue===b.uninitialized},a}();return b.SimpleChange=j,c.exports}),a.registerDynamic("1ea",["b9"],!0,function(a,b,c){"use strict";var d=a("b9"),e=function(){function a(a,b,c,d,e){this.id=a,this.templateUrl=b,this.slotCount=c,this.encapsulation=d,this.styles=e}return a}();b.RenderComponentType=e;var f=function(){function a(){}return Object.defineProperty(a.pro
g.push(d[h]);return(new(Function.bind.apply(Function,[void 0].concat(f.concat(e))))).apply(void 0,g)}function J(a){return!D(a)}function K(a,b){return a.constructor===b}function L(a){return a.reduce(function(a,b){return a|b})}function M(a){return a.reduce(function(a,b){return a&b})}function N(a){return R.encodeURI(a)}var O,P=this,Q=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};O="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:P:window,b.scheduleMicroTask=d,b.IS_DART=!1;var R=O;b.global=R,b.Type=Function,b.getTypeNameForDebugging=e,b.Math=R.Math,b.Date=R.Date;var S=!0,T=!1;b.lockMode=f,b.enableProdMode=g,b.assertionsEnabled=h,R.assert=function(a){},b.isPresent=i,b.isBlank=j,b.isBoolean=k,b.isNumber=l,b.isString=m,b.isFunction=n,b.isType=o,b.isStringMap=p;var U=Object.getPrototypeOf({});b.isStrictStringMap=q,b.isPromise=r,b.isArray=s,b.isDate=t,b.noop=u,b.stringify=v,b.serializeEnum=w,b.deserializeEnum=x,b.resolveEnumToken=y;var V=function(){function a(){}return a.fromCharCode=function(a){return String.fromCharCode(a)},a.charCodeAt=function(a,b){return a.charCodeAt(b)},a.split=function(a,b){return a.split(b)},a.equals=function(a,b){return a===b},a.stripLeft=function(a,b){if(a&&a.length){for(var c=0,d=0;d<a.length&&a[d]==b;d++)c++;a=a.substring(c)}return a},a.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,d=a.length-1;d>=0&&a[d]==b;d--)c--;a=a.substring(0,c)}return a},a.replace=function(a,b,c){return a.replace(b,c)},a.replaceAll=function(a,b,c){return a.replace(b,c)},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=V;var W=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=W;var X=function(a){function b(b){a.call(this),this.message=b}return Q(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=X;var Y=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new X("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new X("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}();b.NumberWrapper=Y,b.RegExp=R.RegExp;var Z=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new R.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=function(a,b){return a.lastIndex=0,a.test(b)},a.matcher=function(a,b){return a.lastIndex=0,{re:a,input:b}},a.replaceAll=function(a,b,c){var d=a.exec(b),e="";a.lastIndex=0;for(var f=0;d;)e+=b.substring(f,d.index),e+=c(d),f=d.index+d[0].length,a.lastIndex=f,d=a.exec(b);return e+=b.substring(f)},a}();b.RegExpWrapper=Z;var $=function(){function a(){}return a.next=function(a){return a.re.exec(a.input)},a}();b.RegExpMatcherWrapper=$;var _=function(){function a(){}return a.apply=function(a,b){return a.apply(null,b)},a}();b.FunctionWrapper=_,b.looseIdentical=z,b.getMapKey=A,b.normalizeBlank=B,b.normalizeBool=C,b.isJsObject=D,b.print=E,b.warn=F;var aa=function(){function a(
2016-05-20 23:13:38 +03:00
})(function(a){"function"==typeof define&&define.amd?define([],a):"object"==typeof module&&module.exports&&"function"==typeof require?module.exports=a():a()});