mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-24 09:33:44 +03:00
997 lines
993 KiB
JavaScript
997 lines
993 KiB
JavaScript
|
!function e(t,n,r){function o(u,a){if(!n[u]){if(!t[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(e,t,n){(function(t){"use strict";var n=e("../core"),r=e("../microtask"),o=e("../patch/browser"),i=e("es6-promise");t.Zone&&console.warn("Zone already exported on window the object!"),t.Zone=r.addMicrotaskSupport(n.Zone),t.zone=new t.Zone,t.Promise=i.Promise,o.apply()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../core":2,"../microtask":4,"../patch/browser":5,"es6-promise":17}],2:[function(e,t,n){(function(n){"use strict";function r(e,t){var n=arguments.length?Object.create(e):this;return n.parent=e||null,Object.keys(t||{}).forEach(function(r){var o=r.substr(1);"$"===r[0]?n[o]=t[r](e[o]||function(){}):"+"===r[0]?e[o]?n[o]=function(){var n=e[o].apply(this,arguments);return t[r].apply(this,arguments),n}:n[o]=t[r]:"-"===r[0]?e[o]?n[o]=function(){return t[r].apply(this,arguments),e[o].apply(this,arguments)}:n[o]=t[r]:n[r]="object"==typeof t[r]?JSON.parse(JSON.stringify(t[r])):t[r]}),n.$id=r.nextId++,n}var o=e("./keys");r.prototype={constructor:r,fork:function(e){return this.onZoneCreated(),new r(this,e)},bind:function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);t||this.enqueueTask(e);var n=this.isRootZone()?this:this.fork();return function(){return n.run(e,this,arguments)}},bindOnce:function(e){var t=this;return this.bind(function(){var n=e.apply(this,arguments);return t.dequeueTask(e),n})},isRootZone:function(){return null===this.parent},run:function(e,t,r){r=r||[];var o=n.zone;n.zone=this;try{return this.beforeTask(),e.apply(t,r)}catch(i){if(!this.onError)throw i;this.onError(i)}finally{this.afterTask(),n.zone=o}},onError:null,beforeTask:function(){},onZoneCreated:function(){},afterTask:function(){},enqueueTask:function(){},dequeueTask:function(){},addEventListener:function(){return this[o.common.addEventListener].apply(this,arguments)},removeEventListener:function(){return this[o.common.removeEventListener].apply(this,arguments)}},r.nextId=1,r.bindPromiseFn=e("./patch/promise").bindPromiseFn,t.exports={Zone:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./keys":3,"./patch/promise":12}],3:[function(e,t,n){function r(e){return"_zone$"+e}var o={addEventListener:r("addEventListener"),removeEventListener:r("removeEventListener")};t.exports={create:r,common:o}},{}],4:[function(e,t,n){(function(n){"use strict";function r(e){s._asap(this.bind(e))}function o(e){return e.prototype.scheduleMicrotask=r,e}var i,u="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]"),a=n.navigator&&n.navigator.userAgent.toLowerCase().indexOf("firefox")>-1;u&&!a&&(i=Promise.resolve());var s=e("es6-promise").Promise;i&&s._setScheduler(function(e){i.then(e)}),s._setAsap(function(e,t){n.zone.scheduleMicrotask(function(){e(t)})}),t.exports={addMicrotaskSupport:o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"es6-promise":17}],5:[function(e,t,n){(function(n){"use strict";function r(){o.patchSetClearFunction(n,["timeout","interval","immediate"]),o.patchRequestAnimationFrame(n,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame"]),o.patchFunction(n,["alert","prompt"]),c.apply(),f.apply(),i.apply(),u.patchClass("MutationObserver"),u.patchClass("WebKitMutationObserver"),a.apply(),s.apply(),p.apply(),l.apply()}var o=e("./functions"),i=e("./promise"),u=e("./mutation-observer"),a=e("./define-property"),s=e("./register-element"),c=(e("./websocket"),e("./event-target")),f=e("./property-descriptor"),p=e("./geolocation"),l=e("./fil
|
||
|
/*! *****************************************************************************
|
||
|
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.
|
||
|
***************************************************************************** */
|
||
|
"use strict";
|
||
|
var Reflect;
|
||
|
(function (Reflect) {
|
||
|
// Load global or shim versions of Map, Set, and WeakMap
|
||
|
var functionPrototype = Object.getPrototypeOf(Function);
|
||
|
var _Map = typeof Map === "function" ? Map : CreateMapPolyfill();
|
||
|
var _Set = typeof Set === "function" ? Set : CreateSetPolyfill();
|
||
|
var _WeakMap = typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
|
||
|
// [[Metadata]] internal slot
|
||
|
var __Metadata__ = new _WeakMap();
|
||
|
/**
|
||
|
* Applies a set of decorators to a property of a target object.
|
||
|
* @param decorators An array of decorators.
|
||
|
* @param target The target object.
|
||
|
* @param targetKey (Optional) The property key to decorate.
|
||
|
* @param targetDescriptor (Optional) The property descriptor for the target key
|
||
|
* @remarks Decorators are applied in reverse order.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* C = Reflect.decorate(decoratorsArray, C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* Reflect.decorate(decoratorsArray, C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* Reflect.decorate(decoratorsArray, C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* Object.defineProperty(C, "staticMethod",
|
||
|
* Reflect.decorate(decoratorsArray, C, "staticMethod",
|
||
|
* Object.getOwnPropertyDescriptor(C, "staticMethod")));
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* Object.defineProperty(C.prototype, "method",
|
||
|
* Reflect.decorate(decoratorsArray, C.prototype, "method",
|
||
|
* Object.getOwnPropertyDescriptor(C.prototype, "method")));
|
||
|
*
|
||
|
*/
|
||
|
function decorate(decorators, target, targetKey, targetDescriptor) {
|
||
|
if (!IsUndefined(targetDescriptor)) {
|
||
|
if (!IsArray(decorators)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (IsUndefined(targetKey)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsObject(targetDescriptor)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
return DecoratePropertyWithDescriptor(decorators, target, targetKey, targetDescriptor);
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
if (!IsArray(decorators)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
return DecoratePropertyWithoutDescriptor(decorators, target, targetKey);
|
||
|
}
|
||
|
else {
|
||
|
if (!IsArray(decorators)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsConstructor(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
return DecorateConstructor(decorators, target);
|
||
|
}
|
||
|
}
|
||
|
Reflect.decorate = decorate;
|
||
|
/**
|
||
|
* A default metadata decorator factory that can be used on a class, class member, or parameter.
|
||
|
* @param metadataKey The key for the metadata entry.
|
||
|
* @param metadataValue The value for the metadata entry.
|
||
|
* @returns A decorator function.
|
||
|
* @remarks
|
||
|
* If `metadataKey` is already defined for the target and target key, the
|
||
|
* metadataValue for that key will be overwritten.
|
||
|
* @example
|
||
|
*
|
||
|
* // constructor
|
||
|
* @Reflect.metadata(key, value)
|
||
|
* class C {
|
||
|
* }
|
||
|
*
|
||
|
* // property (on constructor, TypeScript only)
|
||
|
* class C {
|
||
|
* @Reflect.metadata(key, value)
|
||
|
* static staticProperty;
|
||
|
* }
|
||
|
*
|
||
|
* // property (on prototype, TypeScript only)
|
||
|
* class C {
|
||
|
* @Reflect.metadata(key, value)
|
||
|
* property;
|
||
|
* }
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* class C {
|
||
|
* @Reflect.metadata(key, value)
|
||
|
* static staticMethod() { }
|
||
|
* }
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* class C {
|
||
|
* @Reflect.metadata(key, value)
|
||
|
* method() { }
|
||
|
* }
|
||
|
*
|
||
|
*/
|
||
|
function metadata(metadataKey, metadataValue) {
|
||
|
function decorator(target, targetKey) {
|
||
|
if (!IsUndefined(targetKey)) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
|
||
|
}
|
||
|
else {
|
||
|
if (!IsConstructor(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, undefined);
|
||
|
}
|
||
|
}
|
||
|
return decorator;
|
||
|
}
|
||
|
Reflect.metadata = metadata;
|
||
|
/**
|
||
|
* Define a unique metadata entry on the target.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param metadataValue A value that contains attached metadata.
|
||
|
* @param target The target object on which to define metadata.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* Reflect.defineMetadata("custom:annotation", options, C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* Reflect.defineMetadata("custom:annotation", options, C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* Reflect.defineMetadata("custom:annotation", options, C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "method");
|
||
|
*
|
||
|
* // decorator factory as metadata-producing annotation.
|
||
|
* function MyAnnotation(options): Decorator {
|
||
|
* return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key);
|
||
|
* }
|
||
|
*
|
||
|
*/
|
||
|
function defineMetadata(metadataKey, metadataValue, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
|
||
|
}
|
||
|
Reflect.defineMetadata = defineMetadata;
|
||
|
/**
|
||
|
* Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.hasMetadata("custom:annotation", C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.hasMetadata("custom:annotation", C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.hasMetadata("custom:annotation", C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function hasMetadata(metadataKey, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryHasMetadata(metadataKey, target, targetKey);
|
||
|
}
|
||
|
Reflect.hasMetadata = hasMetadata;
|
||
|
/**
|
||
|
* Gets a value indicating whether the target object has the provided metadata key defined.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns `true` if the metadata key was defined on the target object; otherwise, `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.hasOwnMetadata("custom:annotation", C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function hasOwnMetadata(metadataKey, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryHasOwnMetadata(metadataKey, target, targetKey);
|
||
|
}
|
||
|
Reflect.hasOwnMetadata = hasOwnMetadata;
|
||
|
/**
|
||
|
* Gets the metadata value for the provided metadata key on the target object or its prototype chain.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.getMetadata("custom:annotation", C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.getMetadata("custom:annotation", C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.getMetadata("custom:annotation", C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.getMetadata("custom:annotation", C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.getMetadata("custom:annotation", C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function getMetadata(metadataKey, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryGetMetadata(metadataKey, target, targetKey);
|
||
|
}
|
||
|
Reflect.getMetadata = getMetadata;
|
||
|
/**
|
||
|
* Gets the metadata value for the provided metadata key on the target object.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.getOwnMetadata("custom:annotation", C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function getOwnMetadata(metadataKey, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryGetOwnMetadata(metadataKey, target, targetKey);
|
||
|
}
|
||
|
Reflect.getOwnMetadata = getOwnMetadata;
|
||
|
/**
|
||
|
* Gets the metadata keys defined on the target object or its prototype chain.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns An array of unique metadata keys.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.getMetadataKeys(C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.getMetadataKeys(C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.getMetadataKeys(C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.getMetadataKeys(C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.getMetadataKeys(C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function getMetadataKeys(target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryMetadataKeys(target, targetKey);
|
||
|
}
|
||
|
Reflect.getMetadataKeys = getMetadataKeys;
|
||
|
/**
|
||
|
* Gets the unique metadata keys defined on the target object.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns An array of unique metadata keys.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.getOwnMetadataKeys(C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.getOwnMetadataKeys(C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.getOwnMetadataKeys(C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.getOwnMetadataKeys(C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.getOwnMetadataKeys(C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function getOwnMetadataKeys(target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryOwnMetadataKeys(target, targetKey);
|
||
|
}
|
||
|
Reflect.getOwnMetadataKeys = getOwnMetadataKeys;
|
||
|
/**
|
||
|
* Deletes the metadata entry from the target object with the provided key.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns `true` if the metadata entry was found and deleted; otherwise, false.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.deleteMetadata("custom:annotation", C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.deleteMetadata("custom:annotation", C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.deleteMetadata("custom:annotation", C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function deleteMetadata(metadataKey, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#deletemetadata-metadatakey-p-
|
||
|
var metadataMap = GetOrCreateMetadataMap(target, targetKey, false);
|
||
|
if (IsUndefined(metadataMap)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (!metadataMap.delete(metadataKey)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (metadataMap.size > 0) {
|
||
|
return true;
|
||
|
}
|
||
|
var targetMetadata = __Metadata__.get(target);
|
||
|
targetMetadata.delete(targetKey);
|
||
|
if (targetMetadata.size > 0) {
|
||
|
return true;
|
||
|
}
|
||
|
__Metadata__.delete(target);
|
||
|
return true;
|
||
|
}
|
||
|
Reflect.deleteMetadata = deleteMetadata;
|
||
|
function DecorateConstructor(decorators, target) {
|
||
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
||
|
var decorator = decorators[i];
|
||
|
var decorated = decorator(target);
|
||
|
if (!IsUndefined(decorated)) {
|
||
|
if (!IsConstructor(decorated)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
target = decorated;
|
||
|
}
|
||
|
}
|
||
|
return target;
|
||
|
}
|
||
|
function DecoratePropertyWithDescriptor(decorators, target, propertyKey, descriptor) {
|
||
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
||
|
var decorator = decorators[i];
|
||
|
var decorated = decorator(target, propertyKey, descriptor);
|
||
|
if (!IsUndefined(decorated)) {
|
||
|
if (!IsObject(decorated)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
descriptor = decorated;
|
||
|
}
|
||
|
}
|
||
|
return descriptor;
|
||
|
}
|
||
|
function DecoratePropertyWithoutDescriptor(decorators, target, propertyKey) {
|
||
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
||
|
var decorator = decorators[i];
|
||
|
decorator(target, propertyKey);
|
||
|
}
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#getorcreatemetadatamap--o-p-create-
|
||
|
function GetOrCreateMetadataMap(target, targetKey, create) {
|
||
|
var targetMetadata = __Metadata__.get(target);
|
||
|
if (!targetMetadata) {
|
||
|
if (!create) {
|
||
|
return undefined;
|
||
|
}
|
||
|
targetMetadata = new _Map();
|
||
|
__Metadata__.set(target, targetMetadata);
|
||
|
}
|
||
|
var keyMetadata = targetMetadata.get(targetKey);
|
||
|
if (!keyMetadata) {
|
||
|
if (!create) {
|
||
|
return undefined;
|
||
|
}
|
||
|
keyMetadata = new _Map();
|
||
|
targetMetadata.set(targetKey, keyMetadata);
|
||
|
}
|
||
|
return keyMetadata;
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasmetadata--metadatakey-o-p-
|
||
|
function OrdinaryHasMetadata(MetadataKey, O, P) {
|
||
|
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
||
|
if (hasOwn) {
|
||
|
return true;
|
||
|
}
|
||
|
var parent = GetPrototypeOf(O);
|
||
|
if (parent !== null) {
|
||
|
return OrdinaryHasMetadata(MetadataKey, parent, P);
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasownmetadata--metadatakey-o-p-
|
||
|
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
|
||
|
var metadataMap = GetOrCreateMetadataMap(O, P, false);
|
||
|
if (metadataMap === undefined) {
|
||
|
return false;
|
||
|
}
|
||
|
return Boolean(metadataMap.has(MetadataKey));
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetmetadata--metadatakey-o-p-
|
||
|
function OrdinaryGetMetadata(MetadataKey, O, P) {
|
||
|
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
||
|
if (hasOwn) {
|
||
|
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
||
|
}
|
||
|
var parent = GetPrototypeOf(O);
|
||
|
if (parent !== null) {
|
||
|
return OrdinaryGetMetadata(MetadataKey, parent, P);
|
||
|
}
|
||
|
return undefined;
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetownmetadata--metadatakey-o-p-
|
||
|
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
|
||
|
var metadataMap = GetOrCreateMetadataMap(O, P, false);
|
||
|
if (metadataMap === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
return metadataMap.get(MetadataKey);
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarydefineownmetadata--metadatakey-metadatavalue-o-p-
|
||
|
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
|
||
|
var metadataMap = GetOrCreateMetadataMap(O, P, true);
|
||
|
metadataMap.set(MetadataKey, MetadataValue);
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarymetadatakeys--o-p-
|
||
|
function OrdinaryMetadataKeys(O, P) {
|
||
|
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
|
||
|
var parent = GetPrototypeOf(O);
|
||
|
if (parent === null) {
|
||
|
return ownKeys;
|
||
|
}
|
||
|
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
||
|
if (parentKeys.length <= 0) {
|
||
|
return ownKeys;
|
||
|
}
|
||
|
if (ownKeys.length <= 0) {
|
||
|
return parentKeys;
|
||
|
}
|
||
|
var set = new _Set();
|
||
|
var keys = [];
|
||
|
for (var _i = 0; _i < ownKeys.length; _i++) {
|
||
|
var key = ownKeys[_i];
|
||
|
var hasKey = set.has(key);
|
||
|
if (!hasKey) {
|
||
|
set.add(key);
|
||
|
keys.push(key);
|
||
|
}
|
||
|
}
|
||
|
for (var _a = 0; _a < parentKeys.length; _a++) {
|
||
|
var key = parentKeys[_a];
|
||
|
var hasKey = set.has(key);
|
||
|
if (!hasKey) {
|
||
|
set.add(key);
|
||
|
keys.push(key);
|
||
|
}
|
||
|
}
|
||
|
return keys;
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryownmetadatakeys--o-p-
|
||
|
function OrdinaryOwnMetadataKeys(target, targetKey) {
|
||
|
var metadataMap = GetOrCreateMetadataMap(target, targetKey, false);
|
||
|
var keys = [];
|
||
|
if (metadataMap) {
|
||
|
metadataMap.forEach(function (_, key) { return keys.push(key); });
|
||
|
}
|
||
|
return keys;
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-undefined-type
|
||
|
function IsUndefined(x) {
|
||
|
return x === undefined;
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray
|
||
|
function IsArray(x) {
|
||
|
return Array.isArray(x);
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-type
|
||
|
function IsObject(x) {
|
||
|
return typeof x === "object" ? x !== null : typeof x === "function";
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor
|
||
|
function IsConstructor(x) {
|
||
|
return typeof x === "function";
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-symbol-type
|
||
|
function IsSymbol(x) {
|
||
|
return typeof x === "symbol";
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey
|
||
|
function ToPropertyKey(value) {
|
||
|
if (IsSymbol(value)) {
|
||
|
return value;
|
||
|
}
|
||
|
return String(value);
|
||
|
}
|
||
|
function GetPrototypeOf(O) {
|
||
|
var proto = Object.getPrototypeOf(O);
|
||
|
if (typeof O !== "function" || O === functionPrototype) {
|
||
|
return proto;
|
||
|
}
|
||
|
// TypeScript doesn't set __proto__ in ES5, as it's non-standard.
|
||
|
// Try to determine the superclass constructor. Compatible implementations
|
||
|
// must either set __proto__ on a subclass constructor to the superclass constructor,
|
||
|
// or ensure each class has a valid `constructor` property on its prototype that
|
||
|
// points back to the constructor.
|
||
|
// If this is not the same as Function.[[Prototype]], then this is definately inherited.
|
||
|
// This is the case when in ES6 or when using __proto__ in a compatible browser.
|
||
|
if (proto !== functionPrototype) {
|
||
|
return proto;
|
||
|
}
|
||
|
// If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.
|
||
|
var prototype = O.prototype;
|
||
|
var prototypeProto = Object.getPrototypeOf(prototype);
|
||
|
if (prototypeProto == null || prototypeProto === Object.prototype) {
|
||
|
return proto;
|
||
|
}
|
||
|
// if the constructor was not a function, then we cannot determine the heritage.
|
||
|
var constructor = prototypeProto.constructor;
|
||
|
if (typeof constructor !== "function") {
|
||
|
return proto;
|
||
|
}
|
||
|
// if we have some kind of self-reference, then we cannot determine the heritage.
|
||
|
if (constructor === O) {
|
||
|
return proto;
|
||
|
}
|
||
|
// we have a pretty good guess at the heritage.
|
||
|
return constructor;
|
||
|
}
|
||
|
// naive Map shim
|
||
|
function CreateMapPolyfill() {
|
||
|
var cacheSentinel = {};
|
||
|
function Map() {
|
||
|
this._keys = [];
|
||
|
this._values = [];
|
||
|
this._cache = cacheSentinel;
|
||
|
}
|
||
|
Map.prototype = {
|
||
|
get size() {
|
||
|
return this._keys.length;
|
||
|
},
|
||
|
has: function (key) {
|
||
|
if (key === this._cache) {
|
||
|
return true;
|
||
|
}
|
||
|
if (this._find(key) >= 0) {
|
||
|
this._cache = key;
|
||
|
return true;
|
||
|
}
|
||
|
return false;
|
||
|
},
|
||
|
get: function (key) {
|
||
|
var index = this._find(key);
|
||
|
if (index >= 0) {
|
||
|
this._cache = key;
|
||
|
return this._values[index];
|
||
|
}
|
||
|
return undefined;
|
||
|
},
|
||
|
set: function (key, value) {
|
||
|
this.delete(key);
|
||
|
this._keys.push(key);
|
||
|
this._values.push(value);
|
||
|
this._cache = key;
|
||
|
return this;
|
||
|
},
|
||
|
delete: function (key) {
|
||
|
var index = this._find(key);
|
||
|
if (index >= 0) {
|
||
|
this._keys.splice(index, 1);
|
||
|
this._values.splice(index, 1);
|
||
|
this._cache = cacheSentinel;
|
||
|
return true;
|
||
|
}
|
||
|
return false;
|
||
|
},
|
||
|
clear: function () {
|
||
|
this._keys.length = 0;
|
||
|
this._values.length = 0;
|
||
|
this._cache = cacheSentinel;
|
||
|
},
|
||
|
forEach: function (callback, thisArg) {
|
||
|
var size = this.size;
|
||
|
for (var i = 0; i < size; ++i) {
|
||
|
var key = this._keys[i];
|
||
|
var value = this._values[i];
|
||
|
this._cache = key;
|
||
|
callback.call(this, value, key, this);
|
||
|
}
|
||
|
},
|
||
|
_find: function (key) {
|
||
|
var keys = this._keys;
|
||
|
var size = keys.length;
|
||
|
for (var i = 0; i < size; ++i) {
|
||
|
if (keys[i] === key) {
|
||
|
return i;
|
||
|
}
|
||
|
}
|
||
|
return -1;
|
||
|
}
|
||
|
};
|
||
|
return Map;
|
||
|
}
|
||
|
// naive Set shim
|
||
|
function CreateSetPolyfill() {
|
||
|
var cacheSentinel = {};
|
||
|
function Set() {
|
||
|
this._map = new _Map();
|
||
|
}
|
||
|
Set.prototype = {
|
||
|
get size() {
|
||
|
return this._map.length;
|
||
|
},
|
||
|
has: function (value) {
|
||
|
return this._map.has(value);
|
||
|
},
|
||
|
add: function (value) {
|
||
|
this._map.set(value, value);
|
||
|
return this;
|
||
|
},
|
||
|
delete: function (value) {
|
||
|
return this._map.delete(value);
|
||
|
},
|
||
|
clear: function () {
|
||
|
this._map.clear();
|
||
|
},
|
||
|
forEach: function (callback, thisArg) {
|
||
|
this._map.forEach(callback, thisArg);
|
||
|
}
|
||
|
};
|
||
|
return Set;
|
||
|
}
|
||
|
// naive WeakMap shim
|
||
|
function CreateWeakMapPolyfill() {
|
||
|
var UUID_SIZE = 16;
|
||
|
var isNode = typeof global !== "undefined" && Object.prototype.toString.call(global.process) === '[object process]';
|
||
|
var nodeCrypto = isNode && require("crypto");
|
||
|
var hasOwn = Object.prototype.hasOwnProperty;
|
||
|
var keys = {};
|
||
|
var rootKey = CreateUniqueKey();
|
||
|
function WeakMap() {
|
||
|
this._key = CreateUniqueKey();
|
||
|
}
|
||
|
WeakMap.prototype = {
|
||
|
has: function (target) {
|
||
|
var table = GetOrCreateWeakMapTable(target, false);
|
||
|
if (table) {
|
||
|
return this._key in table;
|
||
|
}
|
||
|
return false;
|
||
|
},
|
||
|
get: function (target) {
|
||
|
var table = GetOrCreateWeakMapTable(target, false);
|
||
|
if (table) {
|
||
|
return table[this._key];
|
||
|
}
|
||
|
return undefined;
|
||
|
},
|
||
|
set: function (target, value) {
|
||
|
var table = GetOrCreateWeakMapTable(target, true);
|
||
|
table[this._key] = value;
|
||
|
return this;
|
||
|
},
|
||
|
delete: function (target) {
|
||
|
var table = GetOrCreateWeakMapTable(target, false);
|
||
|
if (table && this._key in table) {
|
||
|
return delete table[this._key];
|
||
|
}
|
||
|
return false;
|
||
|
},
|
||
|
clear: function () {
|
||
|
// NOTE: not a real clear, just makes the previous data unreachable
|
||
|
this._key = CreateUniqueKey();
|
||
|
}
|
||
|
};
|
||
|
function FillRandomBytes(buffer, size) {
|
||
|
for (var i = 0; i < size; ++i) {
|
||
|
buffer[i] = Math.random() * 255 | 0;
|
||
|
}
|
||
|
}
|
||
|
function GenRandomBytes(size) {
|
||
|
if (nodeCrypto) {
|
||
|
var data = nodeCrypto.randomBytes(size);
|
||
|
return data;
|
||
|
}
|
||
|
else if (typeof Uint8Array === "function") {
|
||
|
var data = new Uint8Array(size);
|
||
|
if (typeof crypto !== "undefined") {
|
||
|
crypto.getRandomValues(data);
|
||
|
}
|
||
|
else if (typeof msCrypto !== "undefined") {
|
||
|
msCrypto.getRandomValues(data);
|
||
|
}
|
||
|
else {
|
||
|
FillRandomBytes(data, size);
|
||
|
}
|
||
|
return data;
|
||
|
}
|
||
|
else {
|
||
|
var data = new Array(size);
|
||
|
FillRandomBytes(data, size);
|
||
|
return data;
|
||
|
}
|
||
|
}
|
||
|
function CreateUUID() {
|
||
|
var data = GenRandomBytes(UUID_SIZE);
|
||
|
// mark as random - RFC 4122 § 4.4
|
||
|
data[6] = data[6] & 0x4f | 0x40;
|
||
|
data[8] = data[8] & 0xbf | 0x80;
|
||
|
var result = "";
|
||
|
for (var offset = 0; offset < UUID_SIZE; ++offset) {
|
||
|
var byte = data[offset];
|
||
|
if (offset === 4 || offset === 6 || offset === 8) {
|
||
|
result += "-";
|
||
|
}
|
||
|
if (byte < 16) {
|
||
|
result += "0";
|
||
|
}
|
||
|
result += byte.toString(16).toLowerCase();
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
function CreateUniqueKey() {
|
||
|
var key;
|
||
|
do {
|
||
|
key = "@@WeakMap@@" + CreateUUID();
|
||
|
} while (hasOwn.call(keys, key));
|
||
|
keys[key] = true;
|
||
|
return key;
|
||
|
}
|
||
|
function GetOrCreateWeakMapTable(target, create) {
|
||
|
if (!hasOwn.call(target, rootKey)) {
|
||
|
if (!create) {
|
||
|
return undefined;
|
||
|
}
|
||
|
Object.defineProperty(target, rootKey, { value: Object.create(null) });
|
||
|
}
|
||
|
return target[rootKey];
|
||
|
}
|
||
|
return WeakMap;
|
||
|
}
|
||
|
// hook global Reflect
|
||
|
(function (__global) {
|
||
|
if (typeof __global.Reflect !== "undefined") {
|
||
|
if (__global.Reflect !== Reflect) {
|
||
|
for (var p in Reflect) {
|
||
|
__global.Reflect[p] = Reflect[p];
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
__global.Reflect = Reflect;
|
||
|
}
|
||
|
})(typeof window !== "undefined" ? window :
|
||
|
typeof WorkerGlobalScope !== "undefined" ? self :
|
||
|
typeof global !== "undefined" ? global :
|
||
|
Function("return this;")());
|
||
|
})(Reflect || (Reflect = {}));
|
||
|
|
||
|
!function e(t,n,r){function s(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,!0),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),b=0,w=n?c(h,S):e?c(h,0):void 0;S>b;b++)if((l||b in m)&&(g=m[b],y=x(g,b,d),t))if(n)w[b]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return b;case 2:w.push(g)}else if(s)return!1;return f?-1:a||s?s:w}}},{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(54),u=t(18),c=t(70),a=t(20),s=t(28),f=t(43),l=t(45),h=t(83)("id"),p=t(31),v=t(39),g=t(66),y=t(21),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]},b=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=b(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},
|
||
|
}})},{19:19,50:50}],114:[function(t,n,e){var r=t(19);r(r.S,"Math",{trunc:function trunc(t){return(t>0?Math.floor:Math.ceil)(t)}})},{19:19}],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(21)?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,21:21,25:25,30:30,31:31,47:47,62:62,75:75,82:82}],116:[function(t,n,e){var r=t(19);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},{19:19}],117:[function(t,n,e){var r=t(19),o=t(30).isFinite;r(r.S,"Number",{isFinite:function isFinite(t){return"number"==typeof t&&o(t)}})},{19:19,30:30}],118:[function(t,n,e){var r=t(19);r(r.S,"Number",{isInteger:t(38)})},{19:19,38:38}],119:[function(t,n,e){var r=t(19);r(r.S,"Number",{isNaN:function isNaN(t){return t!=t}})},{19:19}],120:[function(t,n,e){var r=t(19),o=t(38),i=Math.abs;r(r.S,"Number",{isSafeInteger:function isSafeInteger(t){return o(t)&&i(t)<=9007199254740991}})},{19:19,38:38}],121:[function(t,n,e){var r=t(19);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{19:19}],122:[function(t,n,e){var r=t(19);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{19:19}],123:[function(t,n,e){var r=t(19);r(r.S,"Number",{parseFloat:parseFloat})},{19:19}],124:[function(t,n,e){var r=t(19);r(r.S,"Number",{parseInt:parseInt})},{19:19}],125:[function(t,n,e){var r=t(19);r(r.S+r.F,"Object",{assign:t(55)})},{19:19,55:55}],126:[function(t,n,e){var r=t(39);t(56)("freeze",function(t){return function freeze(n){return t&&r(n)?t(n):n}})},{39:39,56:56}],127:[function(t,n,e){var r=t(79);t(56)("getOwnPropertyDescriptor",function(t){return function getOwnPropertyDescriptor(n,e){return t(r(n),e)}})},{56:56,79:79}],128:[function(t,n,e){t(56)("getOwnPropertyNames",function(){return t(29).get})},{29:29,56:56}],129:[function(t,n,e){var r=t(81);t(56)("getPrototypeOf",function(t){return function getPrototypeOf(n){return t(r(n))}})},{56:56,81:81}],130:[function(t,n,e){var r=t(39);t(56)("isExtensible",function(t){return function isExtensible(n){return r(n)?t?t(n):!0:!1}})},{39:39,56:56}],131:[function(t,n,e){var r=t(39);t(56)("isFrozen",function(t){return function isFrozen(n){return r(n)?t?t(n):!1:!0}})},{39:39,56:56}],132:[function(t,n,e){var r=t(39);t(56)("isSealed",function(t){return function isSealed(n){return r(n)?t?t(n):!1:!0}})},{39:39,56:56}],133:[function(t,n,e){var r=t(19);r(r.S,"Object",{is:t(64)})},{19:19,64:64}],134:[function(t,n,e){var r=t(81);t(56)("keys",function(t){return function keys(n){return t(r(n))}})},{56:56,81:81}],135:[function(t,n,e){var r=t(39);t(56)("preventExtensions",function(t){return function preventExtensions(n){return t&&r(n)?t(n):n}})},{39:39,56:56}],136:[function(t,n,e){var r=t(39);t(56)("seal",function(t){return function seal(n){return t&&r(n)?t(n):n}})},{39:39,56:56}],137:[function(t,n,e){var r=t(19);r(r.S,"Object",{setPrototypeOf:t(65).set})},{19:19,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:[function(t,n,e){"use strict";var r,o=t(47),i=t(49),u=t(30),c=t(18),a=t(11),s=t(19),f=t(3
|
||
|
|
||
|
!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 n||(n[a]=b),b.normalizedDeps=b.deps}function e(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==o.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=n[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(o.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=n[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 s[a]||(s[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=n[k],o=s[k];o?j=o.exports:l&&!l.declarative?j=l.esModule:l?(h(l),o=l.module,j=o.exports):j=m(k),o&&o.importers?(o.importers.push(c),c.dependencies.push(o)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}function i(a){var b,c=n[a];if(c)c.declarative?l(a,[]):c.evaluated||j(c),b=c.module.exports;else if(b=m(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=n[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(b){if(b===a)return b;var c={};if("object"==typeof b||"function"==typeof b)if(p){var d;for(var e in b)(d=Object.getOwnPropertyDescriptor(b,e))&&r(c,e,d)}else{var f=b&&b.hasOwnProperty;for(var e in b)(!f||b.hasOwnProperty(e))&&(c[e]=b[e])}return c["default"]=b,r(c,"__useDefault",{value:!0}),c}function l(b,c){var d=n[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==o.call(c,g)&&(n[g]?l(g,c):m(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}function m(a){if(u[a])return u[a];if("@node/"==a.substr(0,6))return t(a.substr(6));var b=n[a];if(!b)throw"Module "+a+" not present.";return f(a),l(a,[]),n[a]=void 0,b.declarative&&r(b.module.exports,"__esModule",{value:!0}),u[a]=b.declarative?b.module.exports:b.esModule}var n={},o=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},p=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(q){p=!1}var r;!function(){try{Object.defineProperty({},"a",{})&&(r=Object.defineProperty)}catch(a){r=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var s={},t="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,u={"@empty":{}};return function(a,d,e){return function(f){f(function(f){for(var g={_nodeRequire:t,register:b,registerDynamic:c,get:m,set:function(a,b){u[a]=b},newModule:function(a){return a}},h=0;h<d.length;h++)(function(a,b){b&&b.__esModule?u[a]=b:u[a]=k(b)})(d[h],arguments[h]);e(g);var i=m(a[0]);if(a.length>1)for(var h=1;h<a.length;h++)m(a[h]);return i.__useDefault?i["default"]:i})}}}("undefined"!=typ
|
||
|
directives:[g]})(a)||a,a=d({selector:"zippy",events:["open","close"],inputs:["title","visible","type","empty"]})(a)||a}(),a("default",h)}}}),a.register("1b",["6","7","1e"],function(a){var b,c,d,e,f;return{setters:[function(a){b=a["default"]},function(a){c=a["default"]},function(a){d=a["default"]}],execute:function(){"use strict";e={scrollYOffset:0},a("options",e),f=function(){function a(){return c(this,a),a.prototype._instance?a.prototype._instance:(a.prototype._instance=this,this._defaults={scrollYOffset:0,disableLazySchemas:!1},void(this._options={}))}return b(a,[{key:"options",get:function(){return this._options},set:function(a){this._options=d({},this._defaults,a)}}],[{key:"instance",value:function(){return new a}}]),a}(),a("default",f)}}}),a.register("d",["3","4","5","6","7","20","23","24","25","c","a","1b"],function(a){function b(a){return!isNaN(parseFloat(a))&&isFinite(a)}var c,d,e,f,g,h,i,j,k,l,m,n,o,p;return{setters:[function(a){c=a.RedocComponent,d=a.BaseComponent},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a.statusCodeType},function(a){l=a["default"]},function(a){m=a["default"]},function(a){n=a["default"]},function(a){o=a["default"]}],execute:function(){"use strict";p=function(a){function d(a){h(this,p),e(Object.getPrototypeOf(p.prototype),"constructor",this).call(this,a)}f(d,a),g(d,[{key:"prepareModel",value:function(){var a=this;this.data={},this.data.responses=[],this.enabledLazy=!o.instance().options.disableLazySchemas;var c=this.componentSchema;c&&(c=l(c).filter(function(a){return b(a)||"default"===a}).map(function(b){var d=c[b];if(d.pointer=m.join(a.pointer,b),d.$ref){var e=d.$ref;d=a.schemaMgr.byPointer(d.$ref),d.pointer=e}return d.empty=!d.schema,d.code=b,d.type=k(d.code),d.headers&&(d.headers=l(d.headers).map(function(a){var b=d.headers[a];return b.name=a,b}),d.empty=!1),d.extendable=d.headers||d.length,d}),this.data.responses=c)}}]);var p=d;return d=c({selector:"responses-list",template:'\n <h2 class="responses-list-header" *ngIf="data.responses.length"> Responses </h2>\n <zippy *ngFor="#response of data.responses" title="{{response.code}} {{response.description}}"\n [type]="response.type" [empty]="response.empty" (open)="lazySchema.load()">\n <div *ngIf="response.headers" class="response-headers">\n <header>\n Headers\n </header>\n <div class="header" *ngFor="#header of response.headers">\n <div class="header-name"> {{header.name}} </div>\n <div class="header-type"> {{header.type}} </div>\n <div class="header-description" innerHtml="{{header.description | marked}}"> </div>\n </div>\n </div>\n <header>\n Response schema\n </header>\n <json-schema *ngIf="response.schema && !enabledLazy" class="schema type" pointer="{{response.pointer}}/schema">\n </json-schema>\n <json-schema-lazy #lazySchema pointer="{{response.schema ? response.pointer + \'/schema\' : null}}">\n </json-schema-lazy>\n </zippy>\n ',styles:["\n .responses-list-header{font-size:18px;padding:0.2em 0;margin:0.5em 0;color:#253137;font-weight:normal}.header-name{font-weight:bold;display:inline-block}.header-type{display:inline-block;font-weight:bold;color:#999}header{font-size:14px;font-weight:bold;text-transform:uppercase;margin-bottom:15px}.header{margin-bottom:10px}\n "],directives:[n,j,i]})(d)||d}(d),a("default",p)}}}),a.register("24",[],function(a){"use strict";function b(a){if(100>a||a>599)throw new Error("invalid HTTP code");var b="success";return a>=300&&400>a?b="redirect":a>=400?b="error":200>a&&(b="info"),b}return a("statusCodeType",b),{setters:[],execute:function(){}}}),a.register("e",["3","4","5","6","7","24","25","26","c","f"],function(a){function b(a){return!isNaN(parseFloat(a))&&isFinite(a)}function c(a){return a.examples&&a.examples["application/json"]||a.schema}var d,e,f,g,h,i,j,k,l,m,n,o,p;return{setters:[function(a){d=a.RedocComponent,e=a.BaseComponent},fun
|
||
|
this._stringPrefix="",this.startTime=f.DateWrapper.toMillis(f.DateWrapper.now()),this._stringPrefix=j.DOM.getAnimationPrefix(),this.setup(),this.wait(function(a){return d.start()})}return Object.defineProperty(a.prototype,"totalTime",{get:function(){var a=null!=this.computedDelay?this.computedDelay:0,b=null!=this.computedDuration?this.computedDuration:0;return a+b},enumerable:!0,configurable:!0}),a.prototype.wait=function(a){this.browserDetails.raf(a,2)},a.prototype.setup=function(){null!=this.data.fromStyles&&this.applyStyles(this.data.fromStyles),null!=this.data.duration&&this.applyStyles({transitionDuration:this.data.duration.toString()+"ms"}),null!=this.data.delay&&this.applyStyles({transitionDelay:this.data.delay.toString()+"ms"})},a.prototype.start=function(){this.addClasses(this.data.classesToAdd),this.addClasses(this.data.animationClasses),this.removeClasses(this.data.classesToRemove),null!=this.data.toStyles&&this.applyStyles(this.data.toStyles);var a=j.DOM.getComputedStyle(this.element);this.computedDelay=g.Math.max(this.parseDurationString(a.getPropertyValue(this._stringPrefix+"transition-delay")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-delay"))),this.computedDuration=g.Math.max(this.parseDurationString(a.getPropertyValue(this._stringPrefix+"transition-duration")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-duration"))),this.addEvents()},a.prototype.applyStyles=function(a){var b=this;i.StringMapWrapper.forEach(a,function(a,c){var d=h.camelCaseToDashCase(c);f.isPresent(j.DOM.getStyle(b.element,d))?j.DOM.setStyle(b.element,d,a.toString()):j.DOM.setStyle(b.element,b._stringPrefix+d,a.toString())})},a.prototype.addClasses=function(a){for(var b=0,c=a.length;c>b;b++)j.DOM.addClass(this.element,a[b])},a.prototype.removeClasses=function(a){for(var b=0,c=a.length;c>b;b++)j.DOM.removeClass(this.element,a[b])},a.prototype.addEvents=function(){var a=this;this.totalTime>0?this.eventClearFunctions.push(j.DOM.onAndCancel(this.element,j.DOM.getTransitionEnd(),function(b){return a.handleAnimationEvent(b)})):this.handleAnimationCompleted()},a.prototype.handleAnimationEvent=function(a){var b=g.Math.round(1e3*a.elapsedTime);this.browserDetails.elapsedTimeIncludesDelay||(b+=this.computedDelay),a.stopPropagation(),b>=this.totalTime&&this.handleAnimationCompleted()},a.prototype.handleAnimationCompleted=function(){this.removeClasses(this.data.animationClasses),this.callbacks.forEach(function(a){return a()}),this.callbacks=[],this.eventClearFunctions.forEach(function(a){return a()}),this.eventClearFunctions=[],this.completed=!0},a.prototype.onComplete=function(a){return this.completed?a():this.callbacks.push(a),this},a.prototype.parseDurationString=function(a){var b=0;if(null==a||a.length<2)return b;if("ms"==a.substring(a.length-2)){var c=f.NumberWrapper.parseInt(this.stripLetters(a),10);c>b&&(b=c)}else if("s"==a.substring(a.length-1)){var d=1e3*f.NumberWrapper.parseFloat(this.stripLetters(a)),c=g.Math.floor(d);c>b&&(b=c)}return b},a.prototype.stripLetters=function(a){return f.StringWrapper.replaceAll(a,f.RegExpWrapper.create("[^0-9]+$",""),"")},a}();return b.Animation=k,d.define=e,c.exports}),a.registerDynamic("49",["45","46"],!0,function(a,b,c){"use strict";var d=this,e=d.define;d.define=void 0;var f=a("45"),g=a("46"),h=function(){function a(a){this.browserDetails=a,this.data=new f.CssAnimationOptions}return a.prototype.addAnimationClass=function(a){return this.data.animationClasses.push(a),this},a.prototype.addClass=function(a){return this.data.classesToAdd.push(a),this},a.prototype.removeClass=function(a){return this.data.classesToRemove.push(a),this},a.prototype.setDuration=function(a){return this.data.duration=a,this},a.prototype.setDelay=function(a){return this.data.delay=a,this},a.prototype.setStyles=function(a,b){return this.setFromStyles(a).setToStyles(b)},a.prototype.setFromStyles=function(a){return this.data.fromStyles=a,this},a.prototype.setToStyles=function(a){return this.data.toStyles=a,this},a.prototype.start=function(a
|
||
|
return k.push(a)});var m=e._compileCommandsRuntime(b,g,h,d,c);return m.forEach(function(a){return l.push(a)}),r.PromiseWrapper.all(c)}).then(function(b){return q.SetWrapper["delete"](d,a),g}),this._compiledTemplateDone.set(a,h)}return g},a.prototype._compileCommandsRuntime=function(a,b,c,d,e){var f=this,g=this._commandCompiler.compileComponentRuntime(a,b,c,function(a){var b=a.type.runtime,c=f._runtimeMetadataResolver.getViewDirectivesMetadata(a.type.runtime),g=q.SetWrapper.has(d,b),h=f._compileComponentRuntime(b,a,c,d);return g||e.push(f._compiledTemplateDone.get(b)),function(){return h}});return g.forEach(function(a){a instanceof s.BeginComponentCmd&&a.templateGetter()}),g},a.prototype.compileTemplatesCodeGen=function(a){var b=this;if(0===a.length)throw new p.BaseException("No components given");var c=[],h=[],i=[];a.forEach(function(a){var e=a.component;if(d(e),i.push(e),b._processTemplateCodeGen(e,a.directives,c,h),e.dynamicLoadable){var f=t.createHostComponentMeta(e.type,e.selector);i.push(f),b._processTemplateCodeGen(f,[e],c,h)}}),q.ListWrapper.forEachWithIndex(i,function(a,b){var d,g=a.type.moduleUrl+"|"+a.type.name,i=o.IS_DART?"const":"new",j=i+" "+C.TEMPLATE_COMMANDS_MODULE_REF+"CompiledComponentTemplate('"+g+"',"+h[b].join(",")+")";d=a.type.isHost?i+" "+C.TEMPLATE_COMMANDS_MODULE_REF+"CompiledHostTemplate("+j+")":j;var k=e(a.type);c.push(""+D.codeGenExportVariable(k)+d+";"),c.push(D.codeGenValueFn([],k,f(a.type))+";")});var j=a[0].component.type.moduleUrl;return new v.SourceModule(""+g(j),c.join("\n"))},a.prototype.compileStylesheetCodeGen=function(a,b){return this._styleCompiler.compileStylesheetCodeGen(a,b)},a.prototype._processTemplateCodeGen=function(a,b,c,d){var e=j(b),f=this._styleCompiler.compileComponentCodeGen(a.template),g=this._templateParser.parse(a.template.template,e,a.type.name),k=this._cdCompiler.compileComponentCodeGen(a.type,a.changeDetection,g),l=this._commandCompiler.compileComponentCodeGen(a,g,k.expressions,i);h(f.declarations,c),h(k.declarations,c),h(l.declarations,c),d.push([k.expressions[0],l.expression,f.expression])},a=m([u.Injectable(),n("design:paramtypes",[B.RuntimeMetadataResolver,A.TemplateNormalizer,z.TemplateParser,x.StyleCompiler,y.CommandCompiler,w.ChangeDetectionCompiler])],a)}();b.TemplateCompiler=E;var F=function(){function a(a,b){this.component=a,this.directives=b}return a}();return b.NormalizedComponentWithViewDirectives=F,k.define=l,c.exports}),a.registerDynamic("6c",["39","1f","14","3e","70","71","72","73","74","75","76","77","78","79","6f","36"],!0,function(a,b,c){var d=this,e=d.define;return d.define=void 0,function(c){"use strict";function d(a){return k.StringWrapper.split(a.trim(),/\s+/g)}function e(a,b){var c=new t.CssSelector,e=q.splitNsName(a)[1];c.setElement(e);for(var f=0;f<b.length;f++){var g=b[f][0],h=q.splitNsName(g)[1],i=b[f][1];if(c.addAttribute(h,i),g.toLowerCase()==D){var j=d(i);j.forEach(function(a){return c.addClassName(a)})}}return c}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=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},h=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},i=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},j=a("39"),k=a("1f"),l=a("14"),m=a("1f"),n=a("3e"),o=a("70"),p=a("71"),q=a("72"),r=a("73"),s=a("74"),t=a("75"),u=a("76"),v=a("77"),w=a("78"),x=a("79"),y=a("6f"),z=/^(?:(?:(?:(bind-)|(var-|#)|(on-)|(bindon-))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,A="template",B="template",C="*",D="class",E=".",F="attr",G="class",H="style",I=t.CssSelector.parse("*")[0];b.TEMPLATE_TRANSFORMS=m.CON
|
||
|
},a.prototype._popElement=function(a){for(var b=this.elementStack.length-1;b>=0;b--){var c=this.elementStack[b];if(c.name==a)return l.ListWrapper.splice(this.elementStack,b,this.elementStack.length-b),!0;if(!q.getHtmlTagDefinition(c.name).closedByParent)return!1}return!1},a.prototype._consumeAttr=function(a){var b=d(a.parts[0],a.parts[1]),c=a.sourceSpan.end,e="";if(this.peek.type===o.HtmlTokenType.ATTR_VALUE){var f=this._advance();e=f.parts[0],c=f.sourceSpan.end}return new m.HtmlAttrAst(b,e,new p.ParseSourceSpan(a.sourceSpan.start,c))},a.prototype._getParentElement=function(){return this.elementStack.length>0?l.ListWrapper.last(this.elementStack):null},a.prototype._addToParent=function(a){var b=this._getParentElement();k.isPresent(b)?b.children.push(a):this.rootNodes.push(a)},a}();return f.define=g,c.exports}),a.registerDynamic("77",["1f","72"],!0,function(a,b,c){"use strict";function d(a){var b=null,c=null,d=null,f=!1;a.attrs.forEach(function(a){var e=a.name.toLowerCase();e==j?b=a.value:e==n?c=a.value:e==m?d=a.value:a.name==r&&(f=!0)}),b=e(b);var g=a.name.toLowerCase(),h=s.OTHER;return i.splitNsName(g)[1]==k?h=s.NG_CONTENT:g==p?h=s.STYLE:g==q?h=s.SCRIPT:g==l&&d==o&&(h=s.STYLESHEET),new t(h,b,c,f)}function e(a){return h.isBlank(a)||0===a.length?"*":a}var f=this,g=f.define;f.define=void 0;var h=a("1f"),i=a("72"),j="select",k="ng-content",l="link",m="rel",n="href",o="stylesheet",p="style",q="script",r="ngNonBindable";b.preparseElement=d,function(a){a[a.NG_CONTENT=0]="NG_CONTENT",a[a.STYLE=1]="STYLE",a[a.STYLESHEET=2]="STYLESHEET",a[a.SCRIPT=3]="SCRIPT",a[a.OTHER=4]="OTHER"}(b.PreparsedElementType||(b.PreparsedElementType={}));var s=b.PreparsedElementType,t=function(){function a(a,b,c,d){this.type=a,this.selectAttr=b,this.hrefAttr=c,this.nonBindable=d}return a}();return b.PreparsedElement=t,f.define=g,c.exports}),a.registerDynamic("6d",["67","1f","3e","65","7b","7c","78","3b","7d","79","71","77"],!0,function(a,b,c){"use strict";var d=this,e=d.define;d.define=void 0;var f=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},g=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},h=a("67"),i=a("1f"),j=a("3e"),k=a("65"),l=a("7b"),m=a("7c"),n=a("78"),o=a("3b"),p=a("7d"),q=a("79"),r=a("71"),s=a("77"),t=function(){function a(a,b,c){this._xhr=a,this._urlResolver=b,this._htmlParser=c}return a.prototype.normalizeTemplate=function(a,b){var c=this;if(i.isPresent(b.template))return k.PromiseWrapper.resolve(this.normalizeLoadedTemplate(a,b,b.template,a.moduleUrl));if(i.isPresent(b.templateUrl)){var d=this._urlResolver.resolve(a.moduleUrl,b.templateUrl);return this._xhr.get(d).then(function(e){return c.normalizeLoadedTemplate(a,b,e,d)})}throw new j.BaseException("No template specified for component "+a.name)},a.prototype.normalizeLoadedTemplate=function(a,b,c,d){var e=this,f=this._htmlParser.parse(c,a.name);if(f.errors.length>0){var g=f.errors.join("\n");throw new j.BaseException("Template parse errors:\n"+g)}var i=new u;q.htmlVisitAll(i,f.rootNodes);var k=b.styles.concat(i.styles),l=i.styleUrls.filter(n.isStyleUrlResolvable).map(function(a){return e._urlResolver.resolve(d,a)}).concat(b.styleUrls.filter(n.isStyleUrlResolvable).map(function(b){return e._urlResolver.resolve(a.moduleUrl,b)})),m=k.map(function(a){var b=n.extractStyleUrls(e._urlResolver,d,a);return b.styleUrls.forEach(function(a){return l.push(a)}),b.style}),o=b.encapsulation;return o===p.ViewEncapsulation.Emulated&&0===m.length&&0===l.length&&(o=p.ViewEncapsulation.None),new h.CompileTemplateMetadata({encapsulation:o,template:c,templateUrl:d,styles:m,styleUrls:l,ngContentSelectors:i.ngContentSelectors})},a=f([o.Injectable(),g("design:paramtypes",[l.XHR,m.UrlResolver,r.HtmlParser])],a)}();b.TemplateNormaliz
|
||
|
a.call(this),this.fragments=b,this.boundTextNodes=c,this.boundElements=d,this.nativeShadowRoots=e,this.globalEventAdders=f,this.rootContentInsertionPoints=g,this.hydrated=!1,this.eventDispatcher=null,this.globalEventRemovers=null}return f(b,a),b.prototype.hydrate=function(){if(this.hydrated)throw new g.BaseException("The view is already hydrated.");this.hydrated=!0,this.globalEventRemovers=h.ListWrapper.createFixedSize(this.globalEventAdders.length);for(var a=0;a<this.globalEventAdders.length;a++)this.globalEventRemovers[a]=this.globalEventAdders[a]()},b.prototype.dehydrate=function(){if(!this.hydrated)throw new g.BaseException("The view is already dehydrated.");for(var a=0;a<this.globalEventRemovers.length;a++)this.globalEventRemovers[a]();this.globalEventRemovers=null,this.hydrated=!1},b.prototype.setEventDispatcher=function(a){this.eventDispatcher=a},b.prototype.dispatchRenderEvent=function(a,b,c){var d=!0;if(i.isPresent(this.eventDispatcher)){var e=new h.Map;e.set("$event",c),d=this.eventDispatcher.dispatchRenderEvent(a,b,e)}return d},b}(j.RenderViewRef);return b.DefaultRenderView=m,d.define=e,c.exports}),a.registerDynamic("50",["1f","51","52","39","36"],!0,function(a,b,c){var d=this,e=d.define;return d.define=void 0,function(c){"use strict";function d(a){var b=a.styles;if(a.encapsulation===l.ViewEncapsulation.Emulated){b=m.ListWrapper.createFixedSize(a.styles.length);for(var c=0;c<a.styles.length;c++)b[c]=j.StringWrapper.replaceAll(a.styles[c],q,a.shortId)}return b}function e(a,b,c,d){var e,f=function(a,b,c){return e.dispatchRenderEvent(a,b,c)},g=new n(f,d,c);g.build(a,b);for(var h=[],i=0;i<g.fragments.length;i++)h.push(new k.DefaultRenderFragmentRef(g.fragments[i]));return e=new k.DefaultRenderView(h,g.boundTextNodes,g.boundElements,g.nativeShadowRoots,g.globalEventAdders,g.rootContentInsertionPoints)}function f(a,b,c){return function(d){return c(a,b,d)}}function g(a,b,c,d){return function(){return d.globalOn(a,b,c)}}function h(a){return j.StringWrapper.replaceAll(b.CONTENT_ATTR,q,a)}function i(a){return j.StringWrapper.replaceAll(b.HOST_ATTR,q,a)}var j=a("1f"),k=a("51"),l=a("52"),m=a("39");b.encapsulateStyles=d,b.createRenderView=e;var n=function(){function a(a,b,c){this._eventDispatcher=a,this.factory=b,this._inplaceElement=c,this._builders=[],this.globalEventAdders=[],this.boundElements=[],this.boundTextNodes=[],this.nativeShadowRoots=[],this.fragments=[],this.rootContentInsertionPoints=[],this.componentCount=0,this.isHost=j.isPresent(c)}return a.prototype.build=function(a,b){this.enqueueRootBuilder(a,b),this._build(this._builders[0])},a.prototype._build=function(a){this._builders=[],a.build(this);for(var b=this._builders,c=0;c<b.length;c++)this._build(b[c])},a.prototype.enqueueComponentBuilder=function(a){this.componentCount++,this._builders.push(new o(a,null,a.template,a.template.commands))},a.prototype.enqueueFragmentBuilder=function(a,b,c){var d=[];this.fragments.push(d),this._builders.push(new o(a,d,b,c))},a.prototype.enqueueRootBuilder=function(a,b){var c=[];this.fragments.push(c),this._builders.push(new o(null,c,a,b))},a.prototype.consumeInplaceElement=function(){var a=this._inplaceElement;return this._inplaceElement=null,a},a.prototype.addEventListener=function(a,b,c){if(j.isPresent(b)){var d=f(a,b+":"+c,this._eventDispatcher);this.globalEventAdders.push(g(b,c,d,this.factory))}else{var d=f(a,c,this._eventDispatcher);this.factory.on(this.boundElements[a],c,d)}},a}(),o=function(){function a(a,b,c,d){this.parentComponent=a,this.fragmentRootNodes=b,this.template=c,this.cmds=d;var e=j.isPresent(b)?null:a.shadowRoot;this.parentStack=[e]}return a.prototype.build=function(a){for(var b=this.cmds,c=0;c<b.length;c++)b[c].visit(this,a)},Object.defineProperty(a.prototype,"parent",{get:function(){return this.parentStack[this.parentStack.length-1]},enumerable:!0,configurable:!0}),a.prototype.visitText=function(a,b){var c=b.factory.createText(a.value);return this._addChild(c,a.ngContentIndex,b),a.isBound&&b.boundTextNodes.push(c),null},a.prototype.visitNgContent=function(a,b){if(j.isPresent(this.parentComponent))if(thi
|
||
|
}return b+e.join("/")+c}function i(a){var b=a[u.Path];return b=q.isBlank(b)?"":h(b),a[u.Path]=b,f(a[u.Scheme],a[u.UserInfo],a[u.Domain],a[u.Port],b,a[u.QueryData],a[u.Fragment])}function j(a,b){var c=g(encodeURI(b)),d=g(a);if(q.isPresent(c[u.Scheme]))return i(c);c[u.Scheme]=d[u.Scheme];for(var e=u.Scheme;e<=u.Port;e++)q.isBlank(c[e])&&(c[e]=d[e]);if("/"==c[u.Path][0])return i(c);var f=d[u.Path];q.isBlank(f)&&(f="/");var h=f.lastIndexOf("/");return f=f.substring(0,h+1)+c[u.Path],c[u.Path]=f,i(c)}var k=this,l=k.define;k.define=void 0;var m=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},n=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},o=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},p=a("3b"),q=a("1f"),r=a("8a"),s=a("3b");b.createWithoutPackagePrefix=d,b.DEFAULT_PACKAGE_URL_PROVIDER=new s.Provider(r.PACKAGE_ROOT_URL,{useValue:"/"});var t=function(){function a(a){void 0===a&&(a=null),q.isPresent(a)&&(this._packagePrefix=q.StringWrapper.stripRight(a,"/")+"/")}return a.prototype.resolve=function(a,b){var c=b;return q.isPresent(a)&&a.length>0&&(c=j(a,c)),q.isPresent(this._packagePrefix)&&"package"==e(c)&&(c=c.replace("package:",this._packagePrefix)),c},a=m([p.Injectable(),o(0,p.Inject(r.PACKAGE_ROOT_URL)),n("design:paramtypes",[String])],a)}();b.UrlResolver=t,b.getUrlScheme=e;var u,v=q.RegExpWrapper.create("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");return function(a){a[a.Scheme=1]="Scheme",a[a.UserInfo=2]="UserInfo",a[a.Domain=3]="Domain",a[a.Port=4]="Port",a[a.Path=5]="Path",a[a.QueryData=6]="QueryData",a[a.Fragment=7]="Fragment"}(u||(u={})),k.define=l,c.exports}),a.registerDynamic("8b",["61","64","67","68","84","74","6c","1f","3b","71","6d","6e","69","6a","6b","70","62","76","89","7c"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}function e(){return new x.ChangeDetectorGenConfig(n.assertionsEnabled(),!1,!0)}var f=this,g=f.define;f.define=void 0;var h=a("61"),i=a("64");b.TemplateCompiler=i.TemplateCompiler;var j=a("67");b.CompileDirectiveMetadata=j.CompileDirectiveMetadata,b.CompileTypeMetadata=j.CompileTypeMetadata,b.CompileTemplateMetadata=j.CompileTemplateMetadata;var k=a("68");b.SourceModule=k.SourceModule,b.SourceWithImports=k.SourceWithImports;var l=a("84");b.PLATFORM_DIRECTIVES=l.PLATFORM_DIRECTIVES,b.PLATFORM_PIPES=l.PLATFORM_PIPES,d(a("74"));var m=a("6c");b.TEMPLATE_TRANSFORMS=m.TEMPLATE_TRANSFORMS;var n=a("1f"),o=a("3b"),p=a("6c"),q=a("71"),r=a("6d"),s=a("6e"),t=a("69"),u=a("6a"),v=a("6b"),w=a("64"),x=a("70"),y=a("62"),z=a("61"),A=a("76"),B=a("89"),C=a("7c"),D=a("70");return b.COMPILER_PROVIDERS=n.CONST_EXPR([D.Lexer,D.Parser,q.HtmlParser,p.TemplateParser,r.TemplateNormalizer,s.RuntimeMetadataResolver,C.DEFAULT_PACKAGE_URL_PROVIDER,u.StyleCompiler,v.CommandCompiler,t.ChangeDetectionCompiler,new o.Provider(x.ChangeDetectorGenConfig,{useFactory:e,deps:[]}),w.TemplateCompiler,new o.Provider(z.RuntimeCompiler,{useClass:h.RuntimeCompiler_}),new o.Provider(y.Compiler,{useExisting:z.RuntimeCompiler}),B.DomElementSchemaRegistry,new o.Provider(A.ElementSchemaRegistry,{useExisting:B.DomElementSchemaRegistry}),C.UrlResolver]),f.define=g,c.exports}),a.registerDynamic("8c",["7c","7b","8b"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}var e=this,f=e.define;return e.define=void 0,d(a("7c")),d(a("7b")),d(a("8b")),e.define=f,c.exports}),a.registerDynamic("7b",[],!0,function(a,b,c){"use strict";var d=this,e=d.define;d.define=void 0;var f=function(){function a(){}return a.prototype.get=function(a){return null},a}();return b.XHR=f,d.define=e,c.exports}),a.regis
|
||
|
a.symbol_after_digits?i+=b:i=b+i,a.allow_negatives&&(a.parens_for_negatives?i="(\\("+i+"\\)|"+i+")":a.negative_sign_before_digits||a.negative_sign_after_digits||(i=c+i)),new RegExp("^(?!-? )(?=.*\\d)"+i+"$")}a={version:"4.5.0"};var e=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,g=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,i=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i,j=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,k=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/,l=/^(?:[0-9]{9}X|[0-9]{10})$/,m=/^(?:[0-9]{13})$/,n=/^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/,o=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/,p=/^[0-9A-F]{1,4}$/i,q={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},r=/^[A-Z]+$/i,s=/^[0-9A-Z]+$/i,t=/^[-+]?[0-9]+$/,u=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,v=/^(?:[-+]?(?:[0-9]+))?(?:\.[0-9]*)?(?:[eE][\+\-]?(?:[0-9]+))?$/,w=/^[0-9A-F]+$/i,x=/^[-+]?([0-9]+|\.[0-9]+|[0-9]+\.[0-9]+)$/,y=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i,z=/^[\x00-\x7F]+$/,A=/[^\x00-\x7F]/,B=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/,C=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/,D=/[\uD800-\uDBFF][\uDC00-\uDFFF]/,E=/^(?:[A-Z0-9+\/]{4})*(?:[A-Z0-9+\/]{2}==|[A-Z0-9+\/]{3}=|[A-Z0-9+\/]{4})$/i,F={"zh-CN":/^(\+?0?86\-?)?((13\d|14[57]|15[^4,\D]|17[678]|18\d)\d{8}|170[059]\d{7})$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-HK":/^(\+?852\-?)?[569]\d{3}\-?\d{4}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"pt-PT":/^(\+351)?9[1236]\d{7}$/,"el-GR":/^(\+?30)?(69\d{8})$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-US":/^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,"en-ZM":/^(\+26)?09[567]\d{7}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"vi-VN":/^(0|\+?84)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,"en-NZ":/^(\+?64|0)2\d{7,9}$/,"en-IN":/^(\+?91|0)?[789]\d{9}$/},G=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;a.extend=function(b,c){a[b]=function(){var b=Array.prototype.slice.call(arguments);return b[0]=a.toString(b[0]),c.apply(a,b)}},a.init=function(){for(var b in a)"function"==typeof a[b]&&"toString"!==b&&"toDate"!==b&&"extend"!==b&&"init"!==b&&a.extend(b,a[b])},a.toString=function(a){return"object"==typeof a&&null!==a&&a.toString?a=a.toString():(null===a||"undefined"==typeof a||isNaN(a)&&!a.length)&&(a=""),""+a},a.toDate=function(a){return"[object Date]"===Object.prototype.toString.call(a)?a:(a=Date.parse(a),isNaN(a)?null:new Date(a))},a.toFloat=function(a){return parseFloat(a)},a.toInt=function(a,b){return parseInt(a,b||10)},a.toBoolean=function(a,b){return b?"1"===a||"true"===a:"0"!==a&&"false"!==a&&""!==a},a.equals=function(b,c){return b===a.toString(c)},a.contains=function(b,c){return b.indexOf(a.toString(c))>=0},a.matches=function(a,b,c){return"[object RegExp]"!==Object.prototype.toString.call(b)&&(b=new RegExp(b,c)),b.test(a)};var H={allow_display_name:!1,allow_utf8_local_part:!0,require_tld:!0};a.isEmail=function(b,d){if(d=c(d,H),d.allow_display_name){var j=b.match(i);j&&(b=j[1])}var k=b.split("@"),l=k.pop(),m=k.join("@"),n=l.toLowerCase();if(("gmail.com"===n||"g
|
||
|
i.isUniqueArray(b.required)===!1&&a.addError("KEYWORD_MUST_BE",["required","an array with unique items"])}},additionalProperties:function(a,c){var d=i.whatIs(c.additionalProperties);"boolean"!==d&&"object"!==d?a.addError("KEYWORD_TYPE_EXPECTED",["additionalProperties",["boolean","object"]]):"object"===d&&(a.path.push("additionalProperties"),b.validateSchema.call(this,a,c.additionalProperties),a.path.pop())},properties:function(a,c){if("object"!==i.whatIs(c.properties))return void a.addError("KEYWORD_TYPE_EXPECTED",["properties","object"]);for(var d=Object.keys(c.properties),e=d.length;e--;){var f=d[e],g=c.properties[f];a.path.push("properties"),a.path.push(f),b.validateSchema.call(this,a,g),a.path.pop(),a.path.pop()}this.options.forceAdditional===!0&&void 0===c.additionalProperties&&a.addError("KEYWORD_UNDEFINED_STRICT",["additionalProperties"]),this.options.assumeAdditional&&void 0===c.additionalProperties&&(c.additionalProperties=!1),this.options.forceProperties===!0&&0===d.length&&a.addError("CUSTOM_MODE_FORCE_PROPERTIES",["properties"])},patternProperties:function(a,c){if("object"!==i.whatIs(c.patternProperties))return void a.addError("KEYWORD_TYPE_EXPECTED",["patternProperties","object"]);for(var d=Object.keys(c.patternProperties),e=d.length;e--;){var f=d[e],g=c.patternProperties[f];try{RegExp(f)}catch(h){a.addError("KEYWORD_PATTERN",["patternProperties",f])}a.path.push("patternProperties"),a.path.push(f.toString()),b.validateSchema.call(this,a,g),a.path.pop(),a.path.pop()}this.options.forceProperties===!0&&0===d.length&&a.addError("CUSTOM_MODE_FORCE_PROPERTIES",["patternProperties"])},dependencies:function(a,c){if("object"!==i.whatIs(c.dependencies))a.addError("KEYWORD_TYPE_EXPECTED",["dependencies","object"]);else for(var d=Object.keys(c.dependencies),e=d.length;e--;){var f=d[e],g=c.dependencies[f],h=i.whatIs(g);if("object"===h)a.path.push("dependencies"),a.path.push(f),b.validateSchema.call(this,a,g),a.path.pop(),a.path.pop();else if("array"===h){var j=g.length;for(0===j&&a.addError("KEYWORD_MUST_BE",["dependencies","not empty array"]);j--;)"string"!=typeof g[j]&&a.addError("KEYWORD_VALUE_TYPE",["dependensices","string"]);i.isUniqueArray(g)===!1&&a.addError("KEYWORD_MUST_BE",["dependencies","an array with unique items"])}else a.addError("KEYWORD_VALUE_TYPE",["dependencies","object or array"])}},"enum":function(a,b){Array.isArray(b["enum"])===!1?a.addError("KEYWORD_TYPE_EXPECTED",["enum","array"]):0===b["enum"].length?a.addError("KEYWORD_MUST_BE",["enum","an array with at least one element"]):i.isUniqueArray(b["enum"])===!1&&a.addError("KEYWORD_MUST_BE",["enum","an array with unique elements"])},type:function(a,b){var c=["array","boolean","integer","number","null","object","string"],d=c.join(","),e=Array.isArray(b.type);if(e){for(var f=b.type.length;f--;)-1===c.indexOf(b.type[f])&&a.addError("KEYWORD_TYPE_EXPECTED",["type",d]);i.isUniqueArray(b.type)===!1&&a.addError("KEYWORD_MUST_BE",["type","an object with unique properties"])}else"string"==typeof b.type?-1===c.indexOf(b.type)&&a.addError("KEYWORD_TYPE_EXPECTED",["type",d]):a.addError("KEYWORD_TYPE_EXPECTED",["type",["string","array"]]);this.options.noEmptyStrings===!0&&("string"===b.type||e&&-1!==b.type.indexOf("string"))&&void 0===b.minLength&&void 0===b["enum"]&&void 0===b.format&&(b.minLength=1),this.options.noEmptyArrays===!0&&("array"===b.type||e&&-1!==b.type.indexOf("array"))&&void 0===b.minItems&&(b.minItems=1),this.options.forceProperties===!0&&("object"===b.type||e&&-1!==b.type.indexOf("object"))&&void 0===b.properties&&void 0===b.patternProperties&&a.addError("KEYWORD_UNDEFINED_STRICT",["properties"]),this.options.forceItems===!0&&("array"===b.type||e&&-1!==b.type.indexOf("array"))&&void 0===b.items&&a.addError("KEYWORD_UNDEFINED_STRICT",["items"]),this.options.forceMinItems===!0&&("array"===b.type||e&&-1!==b.type.indexOf("array"))&&void 0===b.minItems&&a.addError("KEYWORD_UNDEFINED_STRICT",["minItems"]),this.options.forceMaxItems===!0&&("array"===b.type||e&&-1!==b.type.indexOf("array"))&&void 0===b.maxItems&&a.addError("KEYWORD_UNDEFINED_STRICT",["m
|
||
|
"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean","enum":[!0],description:"Determines whether or not this parameter is required or optional."},"in":{type:"string",description:"Determines the location of the parameter.","enum":["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string","enum":["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},"default":{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],"default":{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],"default":{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},"default":{}},discriminator:{type:"string"},readOnly:{type:"boolean","default":!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperti
|
||
|
var e;return e=a>0?u(a,b):null,B.isNull(e)&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),c!==a&&b.ended&&0===b.length&&v(this),B.isNull(e)||this.emit("data",e),e},f.prototype._read=function(a){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(a,b){function c(a){D("onunpipe"),a===l&&f()}function e(){D("onend"),a.end()}function f(){D("cleanup"),a.removeListener("close",i),a.removeListener("finish",j),a.removeListener("drain",p),a.removeListener("error",h),a.removeListener("unpipe",c),l.removeListener("end",e),l.removeListener("end",f),l.removeListener("data",g),!m.awaitDrain||a._writableState&&!a._writableState.needDrain||p()}function g(b){D("ondata");var c=a.write(b);!1===c&&(D("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++,l.pause())}function h(b){D("onerror",b),k(),a.removeListener("error",h),0===z.listenerCount(a,"error")&&a.emit("error",b)}function i(){a.removeListener("finish",j),k()}function j(){D("onfinish"),a.removeListener("close",i),k()}function k(){D("unpipe"),l.unpipe(a)}var l=this,m=this._readableState;switch(m.pipesCount){case 0:m.pipes=a;break;case 1:m.pipes=[m.pipes,a];break;default:m.pipes.push(a)}m.pipesCount+=1,D("pipe count=%d opts=%j",m.pipesCount,b);var n=(!b||b.end!==!1)&&a!==d.stdout&&a!==d.stderr,o=n?e:f;m.endEmitted?d.nextTick(o):l.once("end",o),a.on("unpipe",c);var p=q(l);return a.on("drain",p),l.on("data",g),a._events&&a._events.error?y(a._events.error)?a._events.error.unshift(h):a._events.error=[h,a._events.error]:a.on("error",h),a.once("close",i),a.once("finish",j),a.emit("pipe",l),m.flowing||(D("pipe resume"),l.resume()),a},f.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var e=x(b.pipes,a);return-1===e?this:(b.pipes.splice(e,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},f.prototype.on=function(a,b){var c=A.prototype.on.call(this,a,b);if("data"===a&&!1!==this._readableState.flowing&&this.resume(),"readable"===a&&this.readable){var e=this._readableState;if(!e.readableListening)if(e.readableListening=!0,e.emittedReadable=!1,e.needReadable=!0,e.reading)e.length&&m(this,e);else{var f=this;d.nextTick(function(){D("readable nexttick read 0"),f.read(0)})}}return c},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){var a=this._readableState;return a.flowing||(D("resume"),a.flowing=!0,a.reading||(D("resume read 0"),this.read(0)),r(this,a)),this},f.prototype.pause=function(){return D("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(D("pause"),this._readableState.flowing=!1,this.emit("pause")),this},f.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(D("wrapped end"),b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(D("wrapped data"),b.decoder&&(e=b.decoder.write(e)),e&&(b.objectMode||e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)B.isFunction(a[e])&&B.isUndefined(this[e])&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return w(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){D("wrapped _read",b),c&&(c=!1,a.resume())},d},f._fromList=u}(a("e5").Buffer,a("36")),d.define=e,c.exports}),a.registerDynamic("ed",["e5","fd","fe","f1","ee","36"],!0,function(a,b,c){var d=this,e=d.define;return d.define=void 0,function(b,d){function e(a,b,c){this.chunk=a,this.encoding=b,this.callback=c}function f(b,c){var d=a("ee");b=b||{};var e=b.highWaterMark,f=b.objectMode?16:16384;this.highWaterMark=e||0===e?e:f,this.objectMode=!!b.objectMode,c instanceof d&&(this.objectMode=this.objectMode||!!b.writableObjectMode),this.h
|
||
|
var d=this,e=d.define;return d.define=void 0,c.exports="function"==typeof Promise?Promise:a("e4").Promise,d.define=e,c.exports}),a.registerDynamic("113",["ea","10e","110","e7","114","10f","e8","db","36"],!0,function(a,b,c){var d=this,e=d.define;return d.define=void 0,function(b){"use strict";function d(a,b,c){try{a=k.path.stripHash(a),k.debug("Reading %s",a);var d=b._get$Ref(a);return d&&!d.isExpired()?(k.debug(" cached from %s",d.pathType),m.resolve({$ref:d,cached:!0})):(d=new l(b,a),e(d,c))}catch(f){return m.reject(f)}}function e(a,b){try{var c=b.$refs.external&&(f(a,b)||g(a,b));return c?c.then(function(c){var d=j(c,a.path,b);return a.setValue(d,b),{$ref:a,cached:!1}}):m.reject(o.syntax('Unable to resolve $ref pointer "%s"',a.path))}catch(d){return m.reject(d)}}function f(a,c){return b.browser||k.path.isUrl(a.path)?void 0:(a.pathType="fs",new m(function(b,c){var d;try{d=k.path.urlToLocalPath(a.path)}catch(e){c(o.uri(e,"Malformed URI: %s",a.path))}k.debug("Opening file: %s",d);try{h.readFile(d,function(d,e){d?c(o(d,'Error opening file "%s"',a.path)):b(e)})}catch(e){c(o(e,'Error opening file "%s"',d))}}))}function g(a,c){var d=n.parse(a.path);return b.browser&&!d.protocol&&(d.protocol=n.parse(location.href).protocol),"http:"===d.protocol?(a.pathType="http",i(d,c)):"https:"===d.protocol?(a.pathType="https",i(d,c)):void 0}var h=a("ea"),i=a("10e"),j=a("110"),k=a("e7"),l=a("114"),m=a("10f"),n=a("e8"),o=a("db");c.exports=d}(a("36")),d.define=e,c.exports}),a.registerDynamic("115",["10f","114","116","113","e7","e8"],!0,function(a,b,c){"use strict";function d(a,b){try{if(!b.$refs.external)return i.resolve();m.debug("Resolving $ref pointers in %s",a.$refs._basePath);var c=e(a.schema,a.$refs._basePath+"#",a.$refs,b);return i.all(c)}catch(d){return i.reject(d)}}function e(a,b,c,d){var g=[];return a&&"object"==typeof a&&Object.keys(a).forEach(function(h){var i=k.join(b,h),l=a[h];if(j.isExternal$Ref(l)){var m=f(l,i,c,d);g.push(m)}else g=g.concat(e(l,i,c,d))}),g}function f(a,b,c,d){m.debug('Resolving $ref pointer "%s" at %s',a.$ref,b);var f=n.resolve(b,a.$ref);return l(f,c,d).then(function(a){if(!a.cached){m.debug("Resolving $ref pointers in %s",a.$ref.path);var b=e(a.$ref.value,a.$ref.path+"#",c,d);return i.all(b)}})}var g=this,h=g.define;g.define=void 0;var i=a("10f"),j=a("114"),k=a("116"),l=a("113"),m=a("e7"),n=a("e8");return c.exports=d,g.define=h,c.exports}),a.registerDynamic("117",["114","116","e7","e8"],!0,function(a,b,c){"use strict";function d(a,b){l.debug("Bundling $ref pointers in %s",a.$refs._basePath);var c=[];e(a.schema,a.$refs._basePath+"#","#",c,a.$refs,b),g(c)}function e(a,b,c,d,g,h){if(a&&"object"==typeof a){var i=Object.keys(a),l=i.indexOf("definitions");l>0&&i.splice(0,0,i.splice(l,1)[0]),i.forEach(function(i){var l=k.join(b,i),m=k.join(c,i),n=a[i];j.is$Ref(n)?d.some(function(b){return b.parent===a&&b.key===i})||f(a,i,b,m,d,g,h):e(n,l,m,d,g,h)})}}function f(a,b,c,d,f,g,h){var i=a[b],j=m.resolve(c,i.$ref),n=g._resolve(j,h),o=k.parse(d).length,p=l.path.stripHash(n.path),q=l.path.getHash(n.path),r=p!==g._basePath,s=Object.keys(i).length>1;f.push({$ref:i,parent:a,key:b,pathFromRoot:d,depth:o,file:p,hash:q,value:n.value,circular:n.circular,extended:s,external:r}),e(n.value,n.path,d,f,g,h)}function g(a){a.sort(function(a,b){return a.file!==b.file?a.file<b.file?-1:1:a.hash!==b.hash?a.hash<b.hash?-1:1:a.circular!==b.circular?a.circular?-1:1:a.extended!==b.extended?a.extended?1:-1:a.depth!==b.depth?a.depth-b.depth:b.pathFromRoot.lastIndexOf("/definitions")-a.pathFromRoot.lastIndexOf("/definitions")});var b,c,d;a.forEach(function(a){l.debug('Re-mapping $ref pointer "%s" at %s',a.$ref.$ref,a.pathFromRoot),a.external?a.file!==b||0!==a.hash.indexOf(c)?(b=a.file,c=a.hash,d=a.pathFromRoot,a.$ref=a.parent[a.key]=l.dereference(a.$ref,a.value),a.circular&&(a.$ref.$ref=a.pathFromRoot)):a.$ref.$ref=k.join(d,k.parse(a.hash)):a.$ref.$ref=a.hash,l.debug(" new value: %s",a.$ref&&a.$ref.$ref?a.$ref.$ref:"[object Object]")})}var h=this,i=h.define;h.define=void 0;var j=a("114"),k=a("116"),l=a("e7"),m=a("e8");return c.exports=d,h.defin
|
||
|
}},defaultStyle:"lowercase"}),g.define=h,c.exports}),a.registerDynamic("128",["122"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!1;var b=a.length;return 4===b&&("true"===a||"True"===a||"TRUE"===a)||5===b&&("false"===a||"False"===a||"FALSE"===a)}function e(a){return"true"===a||"True"===a||"TRUE"===a}function f(a){return"[object Boolean]"===Object.prototype.toString.call(a)}var g=this,h=g.define;g.define=void 0;var i=a("122");return c.exports=new i("tag:yaml.org,2002:bool",{kind:"scalar",resolve:d,construct:e,predicate:f,represent:{lowercase:function(a){return a?"true":"false"},uppercase:function(a){return a?"TRUE":"FALSE"},camelcase:function(a){return a?"True":"False"}},defaultStyle:"lowercase"}),g.define=h,c.exports}),a.registerDynamic("129",["11b","122"],!0,function(a,b,c){"use strict";function d(a){return a>=48&&57>=a||a>=65&&70>=a||a>=97&&102>=a}function e(a){return a>=48&&55>=a}function f(a){return a>=48&&57>=a}function g(a){if(null===a)return!1;var b,c=a.length,g=0,h=!1;if(!c)return!1;if(b=a[g],("-"===b||"+"===b)&&(b=a[++g]),"0"===b){if(g+1===c)return!0;if(b=a[++g],"b"===b){for(g++;c>g;g++)if(b=a[g],"_"!==b){if("0"!==b&&"1"!==b)return!1;h=!0}return h}if("x"===b){for(g++;c>g;g++)if(b=a[g],"_"!==b){if(!d(a.charCodeAt(g)))return!1;h=!0}return h}for(;c>g;g++)if(b=a[g],"_"!==b){if(!e(a.charCodeAt(g)))return!1;h=!0}return h}for(;c>g;g++)if(b=a[g],"_"!==b){if(":"===b)break;if(!f(a.charCodeAt(g)))return!1;h=!0}return h?":"!==b?!0:/^(:[0-5]?[0-9])+$/.test(a.slice(g)):!1}function h(a){var b,c,d=a,e=1,f=[];return-1!==d.indexOf("_")&&(d=d.replace(/_/g,"")),b=d[0],("-"===b||"+"===b)&&("-"===b&&(e=-1),d=d.slice(1),b=d[0]),"0"===d?0:"0"===b?"b"===d[1]?e*parseInt(d.slice(2),2):"x"===d[1]?e*parseInt(d,16):e*parseInt(d,8):-1!==d.indexOf(":")?(d.split(":").forEach(function(a){f.unshift(parseInt(a,10))}),d=0,c=1,f.forEach(function(a){d+=a*c,c*=60}),e*d):e*parseInt(d,10)}function i(a){return"[object Number]"===Object.prototype.toString.call(a)&&0===a%1&&!l.isNegativeZero(a)}var j=this,k=j.define;j.define=void 0;var l=a("11b"),m=a("122");return c.exports=new m("tag:yaml.org,2002:int",{kind:"scalar",resolve:g,construct:h,predicate:i,represent:{binary:function(a){return"0b"+a.toString(2)},octal:function(a){return"0"+a.toString(8)},decimal:function(a){return a.toString(10)},hexadecimal:function(a){return"0x"+a.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),j.define=k,c.exports}),a.registerDynamic("11b",[],!0,function(a,b,c){"use strict";function d(a){return"undefined"==typeof a||null===a}function e(a){return"object"==typeof a&&null!==a}function f(a){return Array.isArray(a)?a:d(a)?[]:[a]}function g(a,b){var c,d,e,f;if(b)for(f=Object.keys(b),c=0,d=f.length;d>c;c+=1)e=f[c],a[e]=b[e];return a}function h(a,b){var c,d="";for(c=0;b>c;c+=1)d+=a;return d}function i(a){return 0===a&&Number.NEGATIVE_INFINITY===1/a}var j=this,k=j.define;return j.define=void 0,c.exports.isNothing=d,c.exports.isObject=e,c.exports.toArray=f,c.exports.repeat=h,c.exports.isNegativeZero=i,c.exports.extend=g,j.define=k,c.exports}),a.registerDynamic("12a",["11b","122"],!0,function(a,b,c){"use strict";function d(a){return null===a?!1:l.test(a)?!0:!1}function e(a){var b,c,d,e;return b=a.replace(/_/g,"").toLowerCase(),c="-"===b[0]?-1:1,e=[],0<="+-".indexOf(b[0])&&(b=b.slice(1)),".inf"===b?1===c?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===b?NaN:0<=b.indexOf(":")?(b.split(":").forEach(function(a){e.unshift(parseFloat(a,10))}),b=0,d=1,e.forEach(function(a){b+=a*d,d*=60}),c*b):c*parseFloat(b,10)}function f(a,b){var c;if(isNaN(a))switch(b){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===a)switch(b){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===a)switch(b){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(j.isNegativeZero(a))return"-0.0";return c=a.toString(10
|
||
|
this.writeUInt8(a,b)},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(0>c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return u(this,a,b,c);case"utf8":case"utf-8":return v(this,a,b,c);case"ascii":return w(this,a,b,c);case"binary":return x(this,a,b,c);case"base64":return y(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var aa=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a);var d;if(f.TYPED_ARRAY_SUPPORT)d=f._augment(this.subarray(a,b));else{var e=b-a;d=new f(e,void 0);for(var g=0;e>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return d},f.prototype.readUIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a+--b],e=1;b>0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUInt8=function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return e*=128,d>=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),Z.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),Z.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),Z.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),Z.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f<c&&(e*=256);)this[b+f]=a/e&255;return b+c},f.prototype.writeUIntBE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=c-1,f=1;for(this[b+e]=255&a;--e>=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[
|
||
|
var g="//"===d.substr(0,2);!g||e&&A[e]||(d=d.substr(2),this.slashes=!0)}if(!A[e]&&(g||e&&!B[e])){for(var h=-1,j=0;j<v.length;j++){var k=d.indexOf(v[j]);-1!==k&&(-1===h||h>k)&&(h=k)}var l,m;m=-1===h?d.lastIndexOf("@"):d.lastIndexOf("@",h),-1!==m&&(l=d.slice(0,m),d=d.slice(m+1),this.auth=decodeURIComponent(l)),h=-1;for(var j=0;j<u.length;j++){var k=d.indexOf(u[j]);-1!==k&&(-1===h||h>k)&&(h=k)}-1===h&&(h=d.length),this.host=d.slice(0,h),d=d.slice(h),this.parseHost(),this.hostname=this.hostname||"";var n="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!n)for(var q=this.hostname.split(/\./),j=0,r=q.length;r>j;j++){var s=q[j];if(s&&!s.match(x)){for(var D="",E=0,F=s.length;F>E;E++)D+=s.charCodeAt(E)>127?"x":s[E];if(!D.match(x)){var G=q.slice(0,j),H=q.slice(j+1),I=s.match(y);I&&(G.push(I[1]),H.unshift(I[2])),H.length&&(d="/"+H.join(".")+d),this.hostname=G.join(".");break}}}if(this.hostname.length>w?this.hostname="":this.hostname=this.hostname.toLowerCase(),!n){for(var J=this.hostname.split("."),K=[],j=0;j<J.length;++j){var L=J[j];K.push(L.match(/[^A-Za-z0-9_-]/)?"xn--"+o.encode(L):L)}this.hostname=K.join(".")}var M=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+M,this.href+=this.host,n&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==d[0]&&(d="/"+d))}if(!z[f])for(var j=0,r=t.length;r>j;j++){var O=t[j],P=encodeURIComponent(O);P===O&&(P=escape(O)),d=d.split(O).join(P)}var Q=d.indexOf("#");-1!==Q&&(this.hash=d.substr(Q),d=d.slice(0,Q));var R=d.indexOf("?");if(-1!==R?(this.search=d.substr(R),this.query=d.substr(R+1),b&&(this.query=C.parse(this.query)),d=d.slice(0,R)):b&&(this.search="",this.query={}),d&&(this.pathname=d),B[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var M=this.pathname||"",L=this.search||"";this.path=M+L}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j(this.query)&&Object.keys(this.query).length&&(f=C.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||B[b])&&e!==!1?(e="//"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(i(a)){var b=new d;b.parse(a,!1,!0),a=b}var c=new d;if(Object.keys(this).forEach(function(a){c[a]=this[a]},this),c.hash=a.hash,""===a.href)return c.href=c.format(),c;if(a.slashes&&!a.protocol)return Object.keys(a).forEach(function(b){"protocol"!==b&&(c[b]=a[b])}),B[c.protocol]&&c.hostname&&!c.pathname&&(c.path=c.pathname="/"),c.href=c.format(),c;if(a.protocol&&a.protocol!==c.protocol){if(!B[a.protocol])return Object.keys(a).forEach(function(b){c[b]=a[b]}),c.href=c.format(),c;if(c.protocol=a.protocol,a.host||A[a.protocol])c.pathname=a.pathname;else{for(var e=(a.pathname||"").split("/");e.length&&!(a.host=e.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),""!==e[0]&&e.unshift(""),e.length<2&&e.unshift(""),c.pathname=e.join("/")}if(c.search=a.search,c.query=a.query,c.host=a.host||"",c.auth=a.auth,c.hostname=a.hostname||a.host,c.port=a.port,c.pathname||c.search){var f=c.pathname||"",g=c.search||"";c.path=f+g}return c.slashes=c.slashes||a.slashes,c.href=c.format(),c}var h=c.pathname&&"/"===c.pathname.charAt(0),j=a.host||a.pathname&&"/"===a.pathname.charAt(0),m=j||h||c.host&&a.pathname,n=m,o=c.pathname&&c.pathname.split("/")||[],e=a.pathname&&a.pathname.split("/")||[],p=c.protocol&&!B[c.protocol];if(p&&(c.hostname="",c.port=null,c.host&&(""===o[0]?o[0]=c.host:o.unshift(c.host)),c.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(""===e
|
||
|
}),f=f[0].match(this.rules.item),d=!1,l=f.length,k=0;l>k;k++)i=f[k],j=i.length,i=i.replace(/^ *([*+-]|\d+\.) +/,""),~i.indexOf("\n ")&&(j-=i.length,i=this.options.pedantic?i.replace(/^ {1,4}/gm,""):i.replace(new RegExp("^ {1,"+j+"}","gm"),"")),this.options.smartLists&&k!==l-1&&(h=m.bullet.exec(f[k+1])[0],g===h||g.length>1&&h.length>1||(a=f.slice(k+1).join("\n")+a,k=l-1)),e=d||/\n\n(?!\s*$)/.test(i),k!==l-1&&(d="\n"===i.charAt(i.length-1),e||(e=d)),this.tokens.push({type:e?"loose_item_start":"list_item_start"}),this.token(i,!1,c),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(f=this.rules.html.exec(a))a=a.substring(f[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===f[1]||"script"===f[1]||"style"===f[1]),text:f[0]});else if(!c&&b&&(f=this.rules.def.exec(a)))a=a.substring(f[0].length),this.tokens.links[f[1].toLowerCase()]={href:f[2],title:f[3]};else if(b&&(f=this.rules.table.exec(a))){for(a=a.substring(f[0].length),i={type:"table",header:f[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:f[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:f[3].replace(/(?: *\| *)?\n$/,"").split("\n")},k=0;k<i.align.length;k++)/^ *-+: *$/.test(i.align[k])?i.align[k]="right":/^ *:-+: *$/.test(i.align[k])?i.align[k]="center":/^ *:-+ *$/.test(i.align[k])?i.align[k]="left":i.align[k]=null;for(k=0;k<i.cells.length;k++)i.cells[k]=i.cells[k].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(i)}else if(b&&(f=this.rules.paragraph.exec(a)))a=a.substring(f[0].length),this.tokens.push({type:"paragraph",text:"\n"===f[1].charAt(f[1].length-1)?f[1].slice(0,-1):f[1]});else if(f=this.rules.text.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"text",text:f[0]});else if(a)throw new Error("Infinite loop on byte: "+a.charCodeAt(0));return this.tokens};var n={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:j,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:j,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};n._inside=/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,n._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,n.link=i(n.link)("inside",n._inside)("href",n._href)(),n.reflink=i(n.reflink)("inside",n._inside)(),n.normal=k({},n),n.pedantic=k({},n.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),n.gfm=k({},n.normal,{escape:i(n.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:i(n.text)("]|","~]|")("|","|https?://|")()}),n.breaks=k({},n.gfm,{br:i(n.br)("{2,}","*")(),text:i(n.gfm.text)("{2,}","*")()}),d.rules=n,d.output=function(a,b,c){var e=new d(b,c);return e.output(a)},d.prototype.output=function(a){for(var b,c,d,e,f="";a;)if(e=this.rules.escape.exec(a))a=a.substring(e[0].length),f+=e[1];else if(e=this.rules.autolink.exec(a))a=a.substring(e[0].length),"@"===e[2]?(c=":"===e[1].charAt(6)?this.mangle(e[1].substring(7)):this.mangle(e[1]),d=this.mangle("mailto:")+c):(c=g(e[1]),d=c),f+=this.renderer.link(d,null,c);else if(this.inLink||!(e=this.rules.url.exec(a))){if(e=this.rules.tag.exec(a))!this.inLink&&/^<a /i.test(e[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(e[0])&&(this.inLink=!1),a=a.substring(e[0].length),f+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):g(e[0]):e[0];else if(e=this.rules.link.exec(a))a=a.substring(e[0].length),this.inLink=!0,f+=this.outputLink(e,{href:e[2],title:e[3]}),this.inLink=!1;else if((e=this.rules.reflink.exec(a))||(e=this.rules.nolink.exec(a))){if(a=a.substring(e[0].length),b=(e[2]||e[1]).replace(/\s+/g," "),b=this.links[b.toLowerCase()],!b||!b.href){f+=e[0].charAt(0),a=e[0].substring(1)+a;continue}this.inLink=!0,f
|
||
|
if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},h=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},i=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},j=a("1f"),k=a("39"),l=a("65"),m=a("14"),n=a("180"),o=a("183"),p=a("181"),q=a("182"),r=j.CONST_EXPR(new m.Provider(n.NgControl,{useExisting:m.forwardRef(function(){return s})})),s=function(a){function b(b,c,d){a.call(this),this._validators=b,this._asyncValidators=c,this.update=new l.EventEmitter,this.valueAccessor=q.selectValueAccessor(this,d)}return f(b,a),b.prototype.ngOnChanges=function(a){this._isControlChanged(a)&&(q.setUpControl(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})),q.isPropertyUpdated(a,this.viewModel)&&(this.form.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(b.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"validator",{get:function(){return q.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"asyncValidator",{get:function(){return q.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),b.prototype.viewToModelUpdate=function(a){this.viewModel=a,l.ObservableWrapper.callEmit(this.update,a)},b.prototype._isControlChanged=function(a){return k.StringMapWrapper.contains(a,"form")},b=g([m.Directive({selector:"[ngFormControl]",bindings:[r],inputs:["form: ngFormControl","model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}),i(0,m.Optional()),i(0,m.Self()),i(0,m.Inject(o.NG_VALIDATORS)),i(1,m.Optional()),i(1,m.Self()),i(1,m.Inject(o.NG_ASYNC_VALIDATORS)),i(2,m.Optional()),i(2,m.Self()),i(2,m.Inject(p.NG_VALUE_ACCESSOR)),h("design:paramtypes",[Array,Array,Array])],b)}(n.NgControl);return b.NgFormControl=s,d.define=e,c.exports}),a.registerDynamic("185",["1f","65","14","181","180","186","183","182"],!0,function(a,b,c){"use strict";var d=this,e=d.define;d.define=void 0;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=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},h=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},i=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},j=a("1f"),k=a("65"),l=a("14"),m=a("181"),n=a("180"),o=a("186"),p=a("183"),q=a("182"),r=j.CONST_EXPR(new l.Provider(n.NgControl,{useExisting:l.forwardRef(function(){return s})})),s=function(a){function b(b,c,d){a.call(this),this._validators=b,this._asyncValidators=c,this._control=new o.Control,this._added=!1,this.update=new k.EventEmitter,this.valueAccessor=q.selectValueAccessor(this,d)}return f(b,a),b.prototype.ngOnChanges=function(a){this._added||(q.setUpControl(this._control,this),this._control.updateValueAndValidity({emitEvent:!1}),this._added=!0),q.isPropertyUpdated(a,this.viewModel)&&(this._control.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(b.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"validator",{get:function(){return q.composeValidators(this._validators)},enumerable:!0,configurabl
|
||
|
return p}),multi:!0})),p=function(){function a(a){this._validator=k.Validators.minLength(l.NumberWrapper.parseInt(a,10))}return a.prototype.validate=function(a){return this._validator(a)},a=f([i.Directive({selector:"[minlength][ngControl],[minlength][ngFormControl],[minlength][ngModel]",providers:[o]}),h(0,i.Attribute("minlength")),g("design:paramtypes",[String])],a)}();b.MinLengthValidator=p;var q=j.CONST_EXPR(new i.Provider(k.NG_VALIDATORS,{useExisting:i.forwardRef(function(){return r}),multi:!0})),r=function(){function a(a){this._validator=k.Validators.maxLength(l.NumberWrapper.parseInt(a,10))}return a.prototype.validate=function(a){return this._validator(a)},a=f([i.Directive({selector:"[maxlength][ngControl],[maxlength][ngFormControl],[maxlength][ngModel]",providers:[q]}),h(0,i.Attribute("maxlength")),g("design:paramtypes",[String])],a)}();return b.MaxLengthValidator=r,d.define=e,c.exports}),a.registerDynamic("186",["1f","65","8d","39"],!0,function(a,b,c){"use strict";function d(a){return a instanceof n}function e(a,b){return j.isBlank(b)?null:(b instanceof Array||(b=b.split("/")),b instanceof Array&&m.ListWrapper.isEmpty(b)?null:b.reduce(function(a,b){if(a instanceof p)return j.isPresent(a.controls[b])?a.controls[b]:null;if(a instanceof q){var c=b;return j.isPresent(a.at(c))?a.at(c):null}return null},a))}function f(a){return l.PromiseWrapper.isPromise(a)?k.ObservableWrapper.fromPromise(a):a}var g=this,h=g.define;g.define=void 0;var i=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)},j=a("1f"),k=a("65"),l=a("8d"),m=a("39");b.VALID="VALID",b.INVALID="INVALID",b.PENDING="PENDING",b.isControl=d;var n=function(){function a(a,b){this.validator=a,this.asyncValidator=b,this._pristine=!0,this._touched=!1}return Object.defineProperty(a.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valid",{get:function(){return this._status===b.VALID},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pending",{get:function(){return this._status==b.PENDING},enumerable:!0,configurable:!0}),a.prototype.markAsTouched=function(){this._touched=!0},a.prototype.markAsDirty=function(a){var b=(void 0===a?{}:a).onlySelf;b=j.normalizeBool(b),this._pristine=!1,j.isPresent(this._parent)&&!b&&this._parent.markAsDirty({onlySelf:b})},a.prototype.markAsPending=function(a){var c=(void 0===a?{}:a).onlySelf;c=j.normalizeBool(c),this._status=b.PENDING,j.isPresent(this._parent)&&!c&&this._parent.markAsPending({onlySelf:c})},a.prototype.setParent=function(a){this._parent=a},a.prototype.updateValueAndValidity=function(a){var c=void 0===a?{}:a,d=c.onlySelf,e=c.emitEvent;d=j.normalizeBool(d),e=j.isPresent(e)?e:!0,this._updateValue(),this._errors=this._runValidator(),this._status=this._calculateStatus(),(this._status==b.VALID||this._status==b.PENDING)&&this._runAsyncValidator(e),e&&(k.ObservableWrapper.callEmit(this._valueChanges,this._value),k.ObservableWrapper.callEmit(this._statusChanges,this._status)),j.isPresent(this._parent)&
|
||
|
};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}},d.define=e,c.exports}),a.registerDynamic("b0",["9b","a8","a2","90"],!0,function(a,b,c){var d=this,e=d.define;d.define=void 0;var f=a("9b").getDesc,g=a("a8"),h=a("a2"),i=function(a,b){if(h(a),!g(b)&&null!==b)throw TypeError(b+": can't set as prototype!")};return c.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,c,d){try{d=a("90")(Function.call,f(Object.prototype,"__proto__").set,2),d(b,[]),c=!(b instanceof Array)}catch(e){c=!0}return function(a,b){return i(a,b),c?a.__proto__=b:d(a,b),a}}({},!1):void 0),check:i},d.define=e,c.exports}),a.registerDynamic("1a3",["91","b0"],!0,function(a,b,c){var d=this,e=d.define;d.define=void 0;var f=a("91");return f(f.S,"Object",{setPrototypeOf:a("b0").set}),d.define=e,c.exports}),a.registerDynamic("2f",[],!0,function(a,b,c){var d=this,e=d.define;d.define=void 0;var f=c.exports={version:"1.2.6"};return"number"==typeof __e&&(__e=f),d.define=e,c.exports}),a.registerDynamic("1a4",["1a3","2f"],!0,function(a,b,c){var d=this,e=d.define;return d.define=void 0,a("1a3"),c.exports=a("2f").Object.setPrototypeOf,d.define=e,c.exports}),a.registerDynamic("1a5",["1a4"],!0,function(a,b,c){var d=this,e=d.define;return d.define=void 0,c.exports={"default":a("1a4"),__esModule:!0},d.define=e,c.exports}),a.registerDynamic("5",["1a2","1a5"],!0,function(a,b,c){"use strict";var d=this,e=d.define;d.define=void 0;var f=a("1a2")["default"],g=a("1a5")["default"];return b["default"]=function(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=f(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(g?g(a,b):a.__proto__=b)},b.__esModule=!0,d.define=e,c.exports}),a.registerDynamic("9b",[],!0,function(a,b,c){var d=this,e=d.define;d.define=void 0;var f=Object;return c.exports={create:f.create,getProto:f.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:f.getOwnPropertyDescriptor,setDesc:f.defineProperty,setDescs:f.defineProperties,getKeys:f.keys,getNames:f.getOwnPropertyNames,getSymbols:f.getOwnPropertySymbols,each:[].forEach},d.define=e,c.exports}),a.registerDynamic("1a6",["9b"],!0,function(a,b,c){var d=this,e=d.define;d.define=void 0;var f=a("9b");return c.exports=function(a,b,c){return f.setDesc(a,b,c)},d.define=e,c.exports}),a.registerDynamic("1a7",["1a6"],!0,function(a,b,c){var d=this,e=d.define;return d.define=void 0,c.exports={"default":a("1a6"),__esModule:!0},d.define=e,c.exports}),a.registerDynamic("6",["1a7"],!0,function(a,b,c){"use strict";var d=this,e=d.define;d.define=void 0;var f=a("1a7")["default"];return b["default"]=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),f(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),b.__esModule=!0,d.define=e,c.exports}),a.registerDynamic("7",[],!0,function(a,b,c){"use strict";var d=this,e=d.define;return d.define=void 0,b["default"]=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},b.__esModule=!0,d.define=e,c.exports}),a.registerDynamic("1a8",[],!0,function(a,b,c){var d=this,e=d.define;d.define=void 0;var f=Object.prototype.hasOwnProperty,g=Object.prototype.toString;return c.exports=function(a,b,c){if("[object Function]"!==g.call(b))throw new TypeError("iterator must be a function");var d=a.length;if(d===+d)for(var e=0;d>e;e++)b.call(c,a[e],e,a);else for(var h in a)f.call(a,h)&&b.call(c,a[h],h,a)},d.define=e,c.exports}),a.registerDynamic("1a9",["1a8"],!0,function(a,b,c){var d=this,e=d.define;return d.define=void 0,c.exports=a("1a8"),d.define=e,c.exports}),a.registerDynamic("1aa",["1a9"],!0,function(a,b,c){"use strict";function d(a,b,c){if(3===arguments.length)return d.set(a,b,c);if(2===arguments.length)return d.get(a,b);var e=d.bind(d,a);for(var f in d)d.hasOwnProperty(f)&&(e[f]=d[f].bind(e,a));return e}var e=this,f=e.define;e.define=void 0;var g=a("1a9");return c.export
|
||
|
try{return h._nestedRun++,h._hasExecutedCodeInInnerZone||(h._hasExecutedCodeInInnerZone=!0,h._notifyOnTurnStart(a),h._onTurnStart&&a.call(h._innerZone,h._onTurnStart)),a.apply(this,arguments)}finally{if(h._nestedRun--,0==h._pendingMicrotasks&&0==h._nestedRun&&!this._inVmTurnDone){if(h._hasExecutedCodeInInnerZone)try{this._inVmTurnDone=!0,h._notifyOnTurnDone(a),h._onTurnDone&&a.call(h._innerZone,h._onTurnDone)}finally{this._inVmTurnDone=!1,h._hasExecutedCodeInInnerZone=!1}0===h._pendingMicrotasks&&(h._notifyOnEventDone(),e.isPresent(h._onEventDone)&&h.runOutsideAngular(h._onEventDone))}}}},$scheduleMicrotask:function(a){return function(b){h._pendingMicrotasks++;var c=function(){var a=f();try{b()}finally{h._pendingMicrotasks--,g.wtfLeave(a)}};a.call(this,c)}},$setTimeout:function(a){return function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];var g,i=function(){b(),d.ListWrapper.remove(h._pendingTimeouts,g)};return g=a(i,c,e),h._pendingTimeouts.push(g),g}},$clearTimeout:function(a){return function(b){a(b),d.ListWrapper.remove(h._pendingTimeouts,b)}},_innerZone:!0})},a.prototype._notifyOnError=function(a,b){if(!e.isPresent(this._onErrorHandler)&&!f.ObservableWrapper.hasSubscribers(this._onErrorEvents))throw console.log("## _notifyOnError ##"),console.log(b.stack),b;for(var c=[e.normalizeBlank(b.stack)];a&&a.constructedAtException;)c.push(a.constructedAtException.get()),a=a.parent;f.ObservableWrapper.hasSubscribers(this._onErrorEvents)&&f.ObservableWrapper.callEmit(this._onErrorEvents,new h(b,c)),e.isPresent(this._onErrorHandler)&&this._onErrorHandler(b,c)},a}();b.NgZone=i}(a("36")),d.define=e,c.exports}),a.registerDynamic("60",["3b","39","1f","3e","54","65"],!0,function(a,b,c){"use strict";function d(a){r=a}var e=this,f=e.define;e.define=void 0;var g=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},h=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},i=a("3b"),j=a("39"),k=a("1f"),l=a("3e"),m=a("54"),n=a("65"),o=function(){function a(a){this._pendingCount=0,this._callbacks=[],this._isAngularEventPending=!1,this._watchAngularEvents(a)}return a.prototype._watchAngularEvents=function(a){var b=this;n.ObservableWrapper.subscribe(a.onTurnStart,function(a){b._isAngularEventPending=!0}),a.runOutsideAngular(function(){n.ObservableWrapper.subscribe(a.onEventDone,function(c){a.hasPendingTimers||(b._isAngularEventPending=!1,b._runCallbacksIfReady())})})},a.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._pendingCount},a.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new l.BaseException("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},a.prototype.isStable=function(){return 0==this._pendingCount&&!this._isAngularEventPending},a.prototype._runCallbacksIfReady=function(){var a=this;this.isStable()&&n.PromiseWrapper.resolve(null).then(function(b){for(;0!==a._callbacks.length;)a._callbacks.pop()()})},a.prototype.whenStable=function(a){this._callbacks.push(a),this._runCallbacksIfReady()},a.prototype.getPendingRequestCount=function(){return this._pendingCount},a.prototype.isAngularEventPending=function(){return this._isAngularEventPending},a.prototype.findBindings=function(a,b,c){return[]},a.prototype.findProviders=function(a,b,c){return[]},a=g([i.Injectable(),h("design:paramtypes",[m.NgZone])],a)}();b.Testability=o;var p=function(){function a(){this._applications=new j.Map,r.addToWindow(this)}return a.prototype.registerApplication=function(a,b){this._applications.set(a,b)},a.prototype.getTestability=function(a){return this._applications.get(a)},a.prototype.getAllTestabilities=function(){return j.MapWrapper.values(this.
|
||
|
},b}(g.Observable);b.Subject=u;var v=function(a){function b(b,c){a.call(this),this.source=b,this.destination=c}return f(b,a),b.prototype._subscribe=function(a){var b=this.operator;return this.source._subscribe.call(this.source,b?b.call(a):a)},b.prototype.next=function(a){o.call(this,a)},b.prototype.error=function(a){p.call(this,a)},b.prototype.complete=function(){q.call(this)},b.prototype._next=function(a){r.call(this,a)},b.prototype._error=function(a){s.call(this,a)},b.prototype._complete=function(){t.call(this)},b}(u);return d.define=e,c.exports}),a.registerDynamic("1cc",["1c7"],!0,function(a,b,c){var d=this,e=d.define;d.define=void 0;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("1c7"),h=function(a){function b(b,c){a.call(this),this.scheduler=b,this.work=c}return f(b,a),b.prototype.schedule=function(a){if(this.isUnsubscribed)return this;this.state=a;var b=this.scheduler;return b.actions.push(this),b.flush(),this},b.prototype.execute=function(){if(this.isUnsubscribed)throw new Error("How did did we execute a canceled Action?");this.work(this.state)},b.prototype.unsubscribe=function(){var b=this.scheduler,c=b.actions,d=c.indexOf(this);this.work=void 0,this.state=void 0,this.scheduler=void 0,-1!==d&&c.splice(d,1),a.prototype.unsubscribe.call(this)},b}(g.Subscription);return b.QueueAction=h,d.define=e,c.exports}),a.registerDynamic("1cd",["1cc"],!0,function(a,b,c){var d=this,e=d.define;d.define=void 0;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("1cc"),h=function(a){function b(b,c){a.call(this,b,c),this.scheduler=b,this.work=c}return f(b,a),b.prototype.schedule=function(a,b){var c=this;if(void 0===b&&(b=0),this.isUnsubscribed)return this;this.delay=b,this.state=a;var d=this.id;null!=d&&(this.id=void 0,clearTimeout(d));var e=this.scheduler;return this.id=setTimeout(function(){c.id=void 0,e.actions.push(c),e.flush()},this.delay),this},b.prototype.unsubscribe=function(){var b=this.id;null!=b&&(this.id=void 0,clearTimeout(b)),a.prototype.unsubscribe.call(this)},b}(g.QueueAction);return b.FutureAction=h,d.define=e,c.exports}),a.registerDynamic("1ce",["1cc","1cd"],!0,function(a,b,c){var d=this,e=d.define;d.define=void 0;var f=a("1cc"),g=a("1cd"),h=function(){function a(){this.actions=[],this.active=!1,this.scheduled=!1}return a.prototype.now=function(){return Date.now()},a.prototype.flush=function(){if(!this.active&&!this.scheduled){this.active=!0;for(var a=this.actions,b=void 0;b=a.shift();)b.execute();this.active=!1}},a.prototype.schedule=function(a,b,c){return void 0===b&&(b=0),0>=b?this.scheduleNow(a,c):this.scheduleLater(a,b,c)},a.prototype.scheduleNow=function(a,b){return new f.QueueAction(this,a).schedule(b)},a.prototype.scheduleLater=function(a,b,c){return new g.FutureAction(this,a).schedule(c,b)},a}();return b.QueueScheduler=h,d.define=e,c.exports}),a.registerDynamic("1cf",["1ce"],!0,function(a,b,c){var d=this,e=d.define;d.define=void 0;var f=a("1ce");return b.queue=new f.QueueScheduler,d.define=e,c.exports}),a.registerDynamic("1d0",["1ca","1c7","1cf"],!0,function(a,b,c){function d(a){var b=a.value,c=a.subscriber;c.next(b),c.complete()}function e(a){var b=a.err,c=a.subscriber;c.error(b)}var f=this,g=f.define;f.define=void 0;var h=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)},i=a("1ca"),j=a("1c7"),k=a("1cf"),l=function(a){function b(b,c){void 0===c&&(c=k.queue),a.call(this),this.promise=b,this.scheduler=c,this._isScalar=!1}return h(b,a),b.create=function(a,c){return void 0===c&&(c=k.queue),new b(a,c)},b.prototype._subscribe=function(a){var b=this,c=this.scheduler,f=this.promise;if(c!==k.queue){var g=new j.Subscription;if(this._isScalar){var h=this.value;g.add(c.schedule(d,0,{value:h,s
|
||
|
for(var a=0;a<this.queries.length;++a){var b=this.queries[a];b.isViewQuery||b.update()}},a.prototype.updateViewQueries=function(){for(var a=0;a<this.queries.length;++a){var b=this.queries[a];b.isViewQuery&&b.update()}},a.prototype.findQuery=function(a){for(var b=0;b<this.queries.length;++b){var c=this.queries[b];if(c.protoQueryRef.query===a)return c}throw new k.BaseException("Cannot find query for directive "+a+".")},a}(),S=function(){function a(a,b){this.injectorStrategy=a,this._ei=b}return a.prototype.hydrate=function(){var a=this.injectorStrategy,b=a.protoStrategy;a.resetConstructionCounter(),b.provider0 instanceof H&&j.isPresent(b.keyId0)&&a.obj0===o.UNDEFINED&&(a.obj0=a.instantiateProvider(b.provider0,b.visibility0)),b.provider1 instanceof H&&j.isPresent(b.keyId1)&&a.obj1===o.UNDEFINED&&(a.obj1=a.instantiateProvider(b.provider1,b.visibility1)),b.provider2 instanceof H&&j.isPresent(b.keyId2)&&a.obj2===o.UNDEFINED&&(a.obj2=a.instantiateProvider(b.provider2,b.visibility2)),b.provider3 instanceof H&&j.isPresent(b.keyId3)&&a.obj3===o.UNDEFINED&&(a.obj3=a.instantiateProvider(b.provider3,b.visibility3)),b.provider4 instanceof H&&j.isPresent(b.keyId4)&&a.obj4===o.UNDEFINED&&(a.obj4=a.instantiateProvider(b.provider4,b.visibility4)),b.provider5 instanceof H&&j.isPresent(b.keyId5)&&a.obj5===o.UNDEFINED&&(a.obj5=a.instantiateProvider(b.provider5,b.visibility5)),b.provider6 instanceof H&&j.isPresent(b.keyId6)&&a.obj6===o.UNDEFINED&&(a.obj6=a.instantiateProvider(b.provider6,b.visibility6)),b.provider7 instanceof H&&j.isPresent(b.keyId7)&&a.obj7===o.UNDEFINED&&(a.obj7=a.instantiateProvider(b.provider7,b.visibility7)),b.provider8 instanceof H&&j.isPresent(b.keyId8)&&a.obj8===o.UNDEFINED&&(a.obj8=a.instantiateProvider(b.provider8,b.visibility8)),b.provider9 instanceof H&&j.isPresent(b.keyId9)&&a.obj9===o.UNDEFINED&&(a.obj9=a.instantiateProvider(b.provider9,b.visibility9))},a.prototype.dehydrate=function(){var a=this.injectorStrategy;a.obj0=o.UNDEFINED,a.obj1=o.UNDEFINED,a.obj2=o.UNDEFINED,a.obj3=o.UNDEFINED,a.obj4=o.UNDEFINED,a.obj5=o.UNDEFINED,a.obj6=o.UNDEFINED,a.obj7=o.UNDEFINED,a.obj8=o.UNDEFINED,a.obj9=o.UNDEFINED},a.prototype.callOnDestroy=function(){var a=this.injectorStrategy,b=a.protoStrategy;b.provider0 instanceof H&&b.provider0.callOnDestroy&&a.obj0.ngOnDestroy(),b.provider1 instanceof H&&b.provider1.callOnDestroy&&a.obj1.ngOnDestroy(),b.provider2 instanceof H&&b.provider2.callOnDestroy&&a.obj2.ngOnDestroy(),b.provider3 instanceof H&&b.provider3.callOnDestroy&&a.obj3.ngOnDestroy(),b.provider4 instanceof H&&b.provider4.callOnDestroy&&a.obj4.ngOnDestroy(),b.provider5 instanceof H&&b.provider5.callOnDestroy&&a.obj5.ngOnDestroy(),b.provider6 instanceof H&&b.provider6.callOnDestroy&&a.obj6.ngOnDestroy(),b.provider7 instanceof H&&b.provider7.callOnDestroy&&a.obj7.ngOnDestroy(),b.provider8 instanceof H&&b.provider8.callOnDestroy&&a.obj8.ngOnDestroy(),b.provider9 instanceof H&&b.provider9.callOnDestroy&&a.obj9.ngOnDestroy()},a.prototype.getComponent=function(){return this.injectorStrategy.obj0},a.prototype.isComponentKey=function(a){return this._ei._proto._firstProviderIsComponent&&j.isPresent(a)&&a.id===this.injectorStrategy.protoStrategy.keyId0},a.prototype.addDirectivesMatchingQuery=function(a,b){var c=this.injectorStrategy,d=c.protoStrategy;j.isPresent(d.provider0)&&d.provider0.key.token===a.selector&&(c.obj0===o.UNDEFINED&&(c.obj0=c.instantiateProvider(d.provider0,d.visibility0)),b.push(c.obj0)),j.isPresent(d.provider1)&&d.provider1.key.token===a.selector&&(c.obj1===o.UNDEFINED&&(c.obj1=c.instantiateProvider(d.provider1,d.visibility1)),b.push(c.obj1)),j.isPresent(d.provider2)&&d.provider2.key.token===a.selector&&(c.obj2===o.UNDEFINED&&(c.obj2=c.instantiateProvider(d.provider2,d.visibility2)),b.push(c.obj2)),j.isPresent(d.provider3)&&d.provider3.key.token===a.selector&&(c.obj3===o.UNDEFINED&&(c.obj3=c.instantiateProvider(d.provider3,d.visibility3)),b.push(c.obj3)),j.isPresent(d.provider4)&&d.provider4.key.token===a.selector&&(c.obj4===o.UNDEFINED&&(c.obj4=c.instantiateProvider(d.provider4,d.visibility4)),b.push(c.obj4)),j.is
|
||
|
});if(h.isPresent(b))return b;throw new i.BaseException("Cannot find a differ supporting object '"+a+"'")},a=f([k.Injectable(),h.CONST(),g("design:paramtypes",[Array])],a)}();return b.KeyValueDiffers=l,d.define=e,c.exports}),a.registerDynamic("1e1",["39","1f","3e"],!0,function(a,b,c){"use strict";var d=this,e=d.define;d.define=void 0;var f=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},g=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},h=a("39"),i=a("1f"),j=a("3e"),k=function(){function a(){}return a.prototype.supports=function(a){return a instanceof Map||i.isJsObject(a)},a.prototype.create=function(a){return new l},a=f([i.CONST(),g("design:paramtypes",[])],a)}();b.DefaultKeyValueDifferFactory=k;var l=function(){function a(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(a.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),a.prototype.forEachItem=function(a){var b;for(b=this._mapHead;null!==b;b=b._next)a(b)},a.prototype.forEachPreviousItem=function(a){var b;for(b=this._previousMapHead;null!==b;b=b._nextPrevious)a(b)},a.prototype.forEachChangedItem=function(a){var b;for(b=this._changesHead;null!==b;b=b._nextChanged)a(b)},a.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)},a.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)},a.prototype.diff=function(a){if(i.isBlank(a)&&(a=h.MapWrapper.createFromPairs([])),!(a instanceof Map||i.isJsObject(a)))throw new j.BaseException("Error trying to diff '"+a+"'");return this.check(a)?this:null},a.prototype.onDestroy=function(){},a.prototype.check=function(a){var b=this;this._reset();var c=this._records,d=this._mapHead,e=null,f=null,g=!1;return this._forEach(a,function(a,h){var j;null!==d&&h===d.key?(j=d,i.looseIdentical(a,d.currentValue)||(d.previousValue=d.currentValue,d.currentValue=a,b._addToChanges(d))):(g=!0,null!==d&&(d._next=null,b._removeFromSeq(e,d),b._addToRemovals(d)),c.has(h)?j=c.get(h):(j=new m(h),c.set(h,j),j.currentValue=a,b._addToAdditions(j))),g&&(b._isInRemovals(j)&&b._removeFromRemovals(j),null==f?b._mapHead=j:f._next=j),e=d,f=j,d=null===d?null:d._next}),this._truncate(e,d),this.isDirty},a.prototype._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},a.prototype._truncate=function(a,b){for(;null!==b;){null===a?this._mapHead=null:a._next=null;var c=b._next;this._addToRemovals(b),a=b,b=c}for(var d=this._removalsHead;null!==d;d=d._nextRemoved)d.previousValue=d.currentValue,d.currentValue=null,this._records["delete"](d.key)},a.prototype._isInRemovals=function(a){return a===this._removalsHead||null!==a._nextRemoved||null!==a._prevRemoved},a.prototype._addToRemovals=function(a){null===this._removalsHead?this._removalsHead=this._removalsTail=a:(this._removalsTail._nextRemoved=a,a._prevRemoved=this._removalsTail,this._removalsTail=a)},a.prototype._removeFromSeq=function(a,b){var c=b._next;null===a?this._mapHead=c:a._next=c},a.prototype._removeFromRemovals=function(a){var b=a._prevRemoved,c=a._nextRemoved;null===b?this._removalsHead=c:b._nextR
|
||
|
for(var d=0,e=this._records.length;e>d;++d){var f=this._records[d];f.isPipeRecord()&&a.push(this.getPipeName(f.selfIndex))}for(var g=0,h=this._directiveRecords.length;h>g;++g){var i=this._directiveRecords[g];a.push(this.getDirectiveName(i.directiveIndex)),i.isDefaultChangeDetection()||a.push(this.getDetectorName(i.directiveIndex))}return a},a.prototype.genDehydrateFields=function(){var a=this.getAllFieldNames();return h.ListWrapper.removeAt(a,b.CONTEXT_INDEX),h.ListWrapper.isEmpty(a)?"":(a.push(this._utilName+".uninitialized;"),a.join(" = "))},a.prototype.genPipeOnDestroy=function(){var a=this;return this._records.filter(function(a){return a.isPipeRecord()}).map(function(b){return a._utilName+".callPipeOnDestroy("+a.getPipeName(b.selfIndex)+");"}).join("\n")},a.prototype.getPipeName=function(a){return this._addFieldPrefix(this._sanitizedNames[a]+"_pipe")},a.prototype.getDirectiveName=function(a){return this._addFieldPrefix("directive_"+a.name)},a.prototype.getDetectorName=function(a){return this._addFieldPrefix("detector_"+a.name)},a}();return b.CodegenNameUtil=s,e.define=f,c.exports}),a.registerDynamic("1e8",["1f","1e9","1ea","1eb","3e"],!0,function(a,b,c){"use strict";var d=this,e=d.define;d.define=void 0;var f=a("1f"),g=a("1e9"),h=a("1ea"),i=a("1eb"),j=a("3e"),k=function(){function a(a,b,c,d){this._names=a,this._utilName=b,this._changeDetectorStateName=c,this._changeDetection=d}return a.prototype.genPropertyBindingEvalValue=function(a){var b=this;return this._genEvalValue(a,function(a){return b._names.getLocalName(a)},this._names.getLocalsAccessorName())},a.prototype.genEventBindingEvalValue=function(a,b){var c=this;return this._genEvalValue(b,function(b){return c._names.getEventLocalName(a,b)},"locals")},a.prototype._genEvalValue=function(a,b,c){var d,e=-1==a.contextIndex?this._names.getDirectiveName(a.directiveIndex):b(a.contextIndex),f=a.args.map(function(a){return b(a)}).join(", ");switch(a.mode){case h.RecordType.Self:d=e;break;case h.RecordType.Const:d=g.codify(a.funcOrValue);break;case h.RecordType.PropertyRead:d=this._observe(e+"."+a.name,a);break;case h.RecordType.SafeProperty:var i=this._observe(e+"."+a.name,a);d=this._utilName+".isValueBlank("+e+") ? null : "+this._observe(i,a);break;case h.RecordType.PropertyWrite:d=e+"."+a.name+" = "+b(a.args[0]);break;case h.RecordType.Local:d=this._observe(c+".get("+g.rawString(a.name)+")",a);break;case h.RecordType.InvokeMethod:d=this._observe(e+"."+a.name+"("+f+")",a);break;case h.RecordType.SafeMethodInvoke:var k=e+"."+a.name+"("+f+")";d=this._utilName+".isValueBlank("+e+") ? null : "+this._observe(k,a);break;case h.RecordType.InvokeClosure:d=e+"("+f+")";break;case h.RecordType.PrimitiveOp:d=this._utilName+"."+a.name+"("+f+")";break;case h.RecordType.CollectionLiteral:d=this._utilName+"."+a.name+"("+f+")";break;case h.RecordType.Interpolate:d=this._genInterpolation(a);break;case h.RecordType.KeyedRead:d=this._observe(e+"["+b(a.args[0])+"]",a);break;case h.RecordType.KeyedWrite:d=e+"["+b(a.args[0])+"] = "+b(a.args[1]);break;case h.RecordType.Chain:d="null";break;default:throw new j.BaseException("Unknown operation "+a.mode)}return b(a.selfIndex)+" = "+d+";"},a.prototype._observe=function(a,b){return this._changeDetection===i.ChangeDetectionStrategy.OnPushObserve?"this.observeValue("+a+", "+b.selfIndex+")":a},a.prototype.genPropertyBindingTargets=function(a,b){var c=this,d=a.map(function(a){if(f.isBlank(a))return"null";var d=b?g.codify(a.debug):"null";return c._utilName+".bindingTarget("+g.codify(a.mode)+", "+a.elementIndex+", "+g.codify(a.name)+", "+g.codify(a.unit)+", "+d+")"});return"["+d.join(", ")+"]"},a.prototype.genDirectiveIndices=function(a){var b=this,c=a.map(function(a){return b._utilName+".directiveIndex("+a.directiveIndex.elementIndex+", "+a.directiveIndex.directiveIndex+")"});return"["+c.join(", ")+"]"},a.prototype._genInterpolation=function(a){for(var b=[],c=0;c<a.args.length;++c)b.push(g.codify(a.fixedArgs[c])),b.push(this._utilName+".s("+this._names.getLocalName(a.args[c])+")");return b.push(g.codify(a.fixedArgs[a.args.length])),g.combineGeneratedStri
|
||
|
return c+"\n"+d+"\n"+e}return this._logic.genEventBindingEvalValue(a,b)},a.prototype._genMarkPathToRootAsCheckOnce=function(a){var b=a.bindingRecord;return b.isDefaultChangeDetection()?"":this._names.getDetectorName(b.directiveRecord.directiveIndex)+".markPathToRootAsCheckOnce();"},a.prototype._genUpdatePreventDefault=function(a,b){var c=this._names.getEventLocalName(a,b.selfIndex);return"if ("+c+" === false) { "+this._names.getPreventDefaultAccesor()+" = true};"},a.prototype._maybeGenDehydrateDirectives=function(){var a=this._names.genPipeOnDestroy();a&&(a="if (destroyPipes) { "+a+" }");var b=this._names.genDehydrateFields();return a||b?this.typeName+".prototype.dehydrateDirectives = function(destroyPipes) {\n "+a+"\n "+b+"\n }":""},a.prototype._maybeGenHydrateDirectives=function(){var a=this._logic.genHydrateDirectives(this.directiveRecords),b=this._logic.genHydrateDetectors(this.directiveRecords);return a||b?this.typeName+".prototype.hydrateDirectives = function(directives) {\n "+a+"\n "+b+"\n }":""},a.prototype._maybeGenAfterContentLifecycleCallbacks=function(){var a=this._logic.genContentLifecycleCallbacks(this.directiveRecords);if(a.length>0){var b=a.join("\n");return"\n "+this.typeName+".prototype.afterContentLifecycleCallbacksInternal = function() {\n "+b+"\n }\n "}return""},a.prototype._maybeGenAfterViewLifecycleCallbacks=function(){var a=this._logic.genViewLifecycleCallbacks(this.directiveRecords);if(a.length>0){var b=a.join("\n");return"\n "+this.typeName+".prototype.afterViewLifecycleCallbacksInternal = function() {\n "+b+"\n }\n "}return""},a.prototype._genAllRecords=function(a){var b=[];this._endOfBlockIdxs=[];for(var c=0;c<a.length;c++){var d=void 0,e=a[c];d=e.isLifeCycleRecord()?this._genDirectiveLifecycle(e):e.isPipeRecord()?this._genPipeCheck(e):e.isConditionalSkipRecord()?this._genConditionalSkip(e,this._names.getLocalName(e.contextIndex)):e.isUnconditionalSkipRecord()?this._genUnconditionalSkip(e):this._genReferenceCheck(e),d="\n "+this._maybeFirstInBinding(e)+"\n "+d+"\n "+this._maybeGenLastInDirective(e)+"\n "+this._genEndOfSkipBlock(c)+"\n ",b.push(d)}return b.join("\n")},a.prototype._genConditionalSkip=function(a,b){var c=a.mode===k.RecordType.SkipRecordsIf?"!":"";return this._endOfBlockIdxs.push(a.fixedArgs[0]-1),"if ("+c+b+") {"},a.prototype._genUnconditionalSkip=function(a){return this._endOfBlockIdxs.pop(),this._endOfBlockIdxs.push(a.fixedArgs[0]-1),"} else {"},a.prototype._genEndOfSkipBlock=function(a){if(!h.ListWrapper.isEmpty(this._endOfBlockIdxs)){var b=h.ListWrapper.last(this._endOfBlockIdxs);if(a===b)return this._endOfBlockIdxs.pop(),"}"}return""},a.prototype._genDirectiveLifecycle=function(a){if("DoCheck"===a.name)return this._genOnCheck(a);if("OnInit"===a.name)return this._genOnInit(a);if("OnChanges"===a.name)return this._genOnChange(a);throw new g.BaseException("Unknown lifecycle event '"+a.name+"'")},a.prototype._genPipeCheck=function(a){var b=this,c=this._names.getLocalName(a.contextIndex),d=a.args.map(function(a){return b._names.getLocalName(a)}).join(", "),e=this._names.getFieldName(a.selfIndex),f=this._names.getLocalName(a.selfIndex),g=this._names.getPipeName(a.selfIndex),h=a.name,i="\n if ("+g+" === "+this.changeDetectionUtilVarName+".uninitialized) {\n "+g+" = "+this._names.getPipesAccessorName()+".get('"+h+"');\n }\n ",j=f+" = "+g+".pipe.transform("+c+", ["+d+"]);",k=a.args.map(function(a){return b._names.getChangeName(a)});k.push(this._names.getChangeName(a.contextIndex));var l="!"+g+".pure || ("+k.join(" || ")+")",m="\n if ("+this.changeDetectionUtilVarName+".looseNotIdentical("+e+", "+f+")) {\n "+f+" = "+this.changeDetectionUtilVarName+".unwrapValue("+f+")\n "+this._genChangeMarker(a)+"\n "+this._genUpdateDirectiveOrElement(a)+"\n "+this._genAddToChanges(a)+"\n "+e+" = "+f+";\n }\n ",n=a.shouldBeChecked()?""+j+m:j;return a.isUsedByOtherRecord()?i+" if ("+l+") { "+n+" } else { "+f+" = "+e+"
|
||
|
return new a(p,f,e,b,null,null,d)},a}();return b.BindingRecord=r,d.define=e,c.exports}),a.registerDynamic("1eb",["1f"],!0,function(a,b,c){"use strict";function d(a){return g.isBlank(a)||a===i.Default}var e=this,f=e.define;e.define=void 0;var g=a("1f");!function(a){a[a.NeverChecked=0]="NeverChecked",a[a.CheckedBefore=1]="CheckedBefore",a[a.Errored=2]="Errored"}(b.ChangeDetectorState||(b.ChangeDetectorState={}));var h=b.ChangeDetectorState;!function(a){a[a.CheckOnce=0]="CheckOnce",a[a.Checked=1]="Checked",a[a.CheckAlways=2]="CheckAlways",a[a.Detached=3]="Detached",a[a.OnPush=4]="OnPush",a[a.Default=5]="Default",a[a.OnPushObserve=6]="OnPushObserve"}(b.ChangeDetectionStrategy||(b.ChangeDetectionStrategy={}));var i=b.ChangeDetectionStrategy;return b.CHANGE_DETECTION_STRATEGY_VALUES=[i.CheckOnce,i.Checked,i.CheckAlways,i.Detached,i.OnPush,i.Default,i.OnPushObserve],b.CHANGE_DETECTOR_STATE_VALUES=[h.NeverChecked,h.CheckedBefore,h.Errored],b.isDefaultChangeDetectionStrategy=d,e.define=f,c.exports}),a.registerDynamic("1f1",["1f","1eb"],!0,function(a,b,c){"use strict";var d=this,e=d.define;d.define=void 0;var f=a("1f"),g=a("1eb"),h=function(){function a(a,b){this.elementIndex=a,this.directiveIndex=b}return Object.defineProperty(a.prototype,"name",{get:function(){return this.elementIndex+"_"+this.directiveIndex},enumerable:!0,configurable:!0}),a}();b.DirectiveIndex=h;var i=function(){function a(a){var b=void 0===a?{}:a,c=b.directiveIndex,d=b.callAfterContentInit,e=b.callAfterContentChecked,g=b.callAfterViewInit,h=b.callAfterViewChecked,i=b.callOnChanges,j=b.callDoCheck,k=b.callOnInit,l=b.changeDetection;this.directiveIndex=c,this.callAfterContentInit=f.normalizeBool(d),this.callAfterContentChecked=f.normalizeBool(e),this.callOnChanges=f.normalizeBool(i),this.callAfterViewInit=f.normalizeBool(g),this.callAfterViewChecked=f.normalizeBool(h),this.callDoCheck=f.normalizeBool(j),this.callOnInit=f.normalizeBool(k),this.changeDetection=l}return a.prototype.isDefaultChangeDetection=function(){return g.isDefaultChangeDetectionStrategy(this.changeDetection)},a}();return b.DirectiveRecord=i,d.define=e,c.exports}),a.registerDynamic("1ef",["1f","3e","39","1eb","1f8","1f9","1f1"],!0,function(a,b,c){"use strict";function d(a,b){var c=r++%20,d=s[c];return d.previousValue=a,d.currentValue=b,d}var e=this,f=e.define;e.define=void 0;var g=a("1f"),h=a("3e"),i=a("39"),j=a("1eb"),k=a("1f8"),l=a("1f9"),m=a("1f1"),n=function(){function a(a){this.wrapped=a}return a.wrap=function(a){var b=o[p++%5];return b.wrapped=a,b},a}();b.WrappedValue=n;var o=[new n(null),new n(null),new n(null),new n(null),new n(null)],p=0,q=function(){function a(a,b){this.previousValue=a,this.currentValue=b}return a.prototype.isFirstChange=function(){return this.previousValue===t.uninitialized},a}();b.SimpleChange=q;var r=0,s=[new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null),new q(null,null)],t=function(){function a(){}return a.arrayFn0=function(){return[]},a.arrayFn1=function(a){return[a]},a.arrayFn2=function(a,b){return[a,b]},a.arrayFn3=function(a,b,c){return[a,b,c]},a.arrayFn4=function(a,b,c,d){return[a,b,c,d]},a.arrayFn5=function(a,b,c,d,e){return[a,b,c,d,e]},a.arrayFn6=function(a,b,c,d,e,f){return[a,b,c,d,e,f]},a.arrayFn7=function(a,b,c,d,e,f,g){return[a,b,c,d,e,f,g]},a.arrayFn8=function(a,b,c,d,e,f,g,h){return[a,b,c,d,e,f,g,h]},a.arrayFn9=function(a,b,c,d,e,f,g,h,i){return[a,b,c,d,e,f,g,h,i]},a.operation_negate=function(a){return!a},a.operation_add=function(a,b){return a+b},a.operation_subtract=function(a,b){return a-b},a.operation_multiply=function(a,b){return a*b},a.operation_divide=function(a,b){return a/b},a.operation_remainder=function(a,b){return a%b},a.operation_equals=function(a,b){return a==b},a.operation_not_equals=function(a,b){return a!=b},a.operation_identical=function(a,b){return a===b},a.operati
|
||
|
return a.fromResolvedProviders(b)},a.prototype.debugContext=function(){return this._debugContext()},a.prototype.get=function(a){return this._getByKey(j.Key.get(a),null,null,!1,m.PublicAndPrivate)},a.prototype.getOptional=function(a){return this._getByKey(j.Key.get(a),null,null,!0,m.PublicAndPrivate)},a.prototype.getAt=function(a){return this._strategy.getObjAtIndex(a)},Object.defineProperty(a.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"internalStrategy",{get:function(){return this._strategy},enumerable:!0,configurable:!0}),a.prototype.resolveAndCreateChild=function(b){var c=a.resolve(b);return this.createChildFromResolved(c)},a.prototype.createChildFromResolved=function(b){var c=b.map(function(a){return new s(a,m.Public)}),d=new p(c),e=new a(d,null,null);return e._parent=this,e},a.prototype.resolveAndInstantiate=function(b){return this.instantiateResolved(a.resolve([b])[0])},a.prototype.instantiateResolved=function(a){return this._instantiateProvider(a,m.PublicAndPrivate)},a.prototype._new=function(a,b){if(this._constructionCounter++>this._strategy.getMaxNumberOfObjects())throw new h.CyclicDependencyError(this,a.key);return this._instantiateProvider(a,b)},a.prototype._instantiateProvider=function(a,b){if(a.multiProvider){for(var c=f.ListWrapper.createFixedSize(a.resolvedFactories.length),d=0;d<a.resolvedFactories.length;++d)c[d]=this._instantiate(a,a.resolvedFactories[d],b);return c}return this._instantiate(a,a.resolvedFactories[0],b)},a.prototype._instantiate=function(a,b,c){var d,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=b.factory,z=b.dependencies,A=z.length;try{d=A>0?this._getByDependency(a,z[0],c):null,e=A>1?this._getByDependency(a,z[1],c):null,f=A>2?this._getByDependency(a,z[2],c):null,g=A>3?this._getByDependency(a,z[3],c):null,i=A>4?this._getByDependency(a,z[4],c):null,j=A>5?this._getByDependency(a,z[5],c):null,k=A>6?this._getByDependency(a,z[6],c):null,l=A>7?this._getByDependency(a,z[7],c):null,m=A>8?this._getByDependency(a,z[8],c):null,n=A>9?this._getByDependency(a,z[9],c):null,o=A>10?this._getByDependency(a,z[10],c):null,p=A>11?this._getByDependency(a,z[11],c):null,q=A>12?this._getByDependency(a,z[12],c):null,r=A>13?this._getByDependency(a,z[13],c):null,s=A>14?this._getByDependency(a,z[14],c):null,t=A>15?this._getByDependency(a,z[15],c):null,u=A>16?this._getByDependency(a,z[16],c):null,v=A>17?this._getByDependency(a,z[17],c):null,w=A>18?this._getByDependency(a,z[18],c):null,x=A>19?this._getByDependency(a,z[19],c):null}catch(B){throw(B instanceof h.AbstractProviderError||B instanceof h.InstantiationError)&&B.addKey(this,a.key),B}var C;try{switch(A){case 0:C=y();break;case 1:C=y(d);break;case 2:C=y(d,e);break;case 3:C=y(d,e,f);break;case 4:C=y(d,e,f,g);break;case 5:C=y(d,e,f,g,i);break;case 6:C=y(d,e,f,g,i,j);break;case 7:C=y(d,e,f,g,i,j,k);break;case 8:C=y(d,e,f,g,i,j,k,l);break;case 9:C=y(d,e,f,g,i,j,k,l,m);break;case 10:C=y(d,e,f,g,i,j,k,l,m,n);break;case 11:C=y(d,e,f,g,i,j,k,l,m,n,o);break;case 12:C=y(d,e,f,g,i,j,k,l,m,n,o,p);break;case 13:C=y(d,e,f,g,i,j,k,l,m,n,o,p,q);break;case 14:C=y(d,e,f,g,i,j,k,l,m,n,o,p,q,r);break;case 15:C=y(d,e,f,g,i,j,k,l,m,n,o,p,q,r,s);break;case 16:C=y(d,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t);break;case 17:C=y(d,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t,u);break;case 18:C=y(d,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t,u,v);break;case 19:C=y(d,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w);break;case 20:C=y(d,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x)}}catch(B){throw new h.InstantiationError(this,B,B.stack,a.key)}return C},a.prototype._getByDependency=function(a,c,d){var e=i.isPresent(this._depProvider)?this._depProvider.getDependency(this,a,c):b.UNDEFINED;return e!==b.UNDEFINED?e:this._getByKey(c.key,c.lowerBoundVisibility,c.upperBoundVisibility,c.optional,d)},a.prototype._getByKey=function(a,b,c,d,e){return a===u?this:c instanceof k.SelfMetadata?this._getByKeySelf(a,d,e):c instanceof k.HostMetadata?this._getByKeyHost(a,d,e,b):this._getByKeyDefault(a,d,e,b)},a.prototype._throwOrNull=function(a,b){if(b)return null;throw new h.NoProviderError(this,a)},
|
||
|
},b.prototype.createHostViewInContainer=function(a,b,c,d){var e=this._createHostViewInContainerScope(),f=n.internalProtoView(c);if(f.type!==m.ViewType.HOST)throw new l.BaseException("This method can only be called with host ProtoViews!");return this._protoViewFactory.initializeProtoViewIfNeeded(f),s.wtfLeave(e,this._createViewInContainer(a,b,f,a,d))},b.prototype._createViewInContainer=function(a,b,c,d,e){var f,g=n.internalView(a.parentView),h=a.boundElementIndex,i=n.internalView(d.parentView),j=d.boundElementIndex,l=i.getNestedView(j);c.type===m.ViewType.EMBEDDED&&k.isPresent(l)&&!l.hydrated()?(f=l,this._attachRenderView(g,h,b,f)):(f=this._createPooledView(c),this._attachRenderView(g,h,b,f),this._renderer.hydrateView(f.render)),this._utils.attachViewInContainer(g,h,i,j,b,f);try{this._utils.hydrateViewInContainer(g,h,i,j,b,e)}catch(o){throw this._utils.detachViewInContainer(g,h,b),o}return f.ref},b.prototype._attachRenderView=function(a,b,c,d){var e=a.elementRefs[b];if(0===c)this._renderer.attachFragmentAfterElement(e,d.renderFragment);else{var f=a.viewContainers[b].views[c-1];this._renderer.attachFragmentAfterFragment(f.renderFragment,d.renderFragment)}},b.prototype.destroyViewInContainer=function(a,b){var c=this._destroyViewInContainerScope(),d=n.internalView(a.parentView),e=a.boundElementIndex;this._destroyViewInContainer(d,e,b),s.wtfLeave(c)},b.prototype.attachViewInContainer=function(a,b,c){var d=this._attachViewInContainerScope(),e=n.internalView(c),f=n.internalView(a.parentView),g=a.boundElementIndex;return this._utils.attachViewInContainer(f,g,null,null,b,e),this._attachRenderView(f,g,b,e),s.wtfLeave(d,c)},b.prototype.detachViewInContainer=function(a,b){var c=this._detachViewInContainerScope(),d=n.internalView(a.parentView),e=a.boundElementIndex,f=d.viewContainers[e],g=f.views[b];return this._utils.detachViewInContainer(d,e,b),this._renderer.detachFragment(g.renderFragment),s.wtfLeave(c,g.ref)},b.prototype._createMainView=function(a,b){var c=this._utils.createView(a,b,this,this._renderer);return this._renderer.setEventDispatcher(c.render,c),this._viewListener.onViewCreated(c),c},b.prototype._createPooledView=function(a){var b=this._viewPool.getView(a);return k.isBlank(b)&&(b=this._createMainView(a,this._renderer.createView(a.render,a.mergeInfo.embeddedViewCount+1))),b},b.prototype._destroyPooledView=function(a){var b=this._viewPool.returnView(a);b||(this._viewListener.onViewDestroyed(a),this._renderer.destroyView(a.render))},b.prototype._destroyViewInContainer=function(a,b,c){var d=a.viewContainers[b],e=d.views[c];this._viewDehydrateRecurse(e),this._utils.detachViewInContainer(a,b,c),e.viewOffset>0?this._renderer.detachFragment(e.renderFragment):(this._renderer.dehydrateView(e.render),this._renderer.detachFragment(e.renderFragment),this._destroyPooledView(e))},b.prototype._viewDehydrateRecurse=function(a){a.hydrated()&&this._utils.dehydrateView(a);for(var b=a.viewContainers,c=a.viewOffset,d=a.viewOffset+a.proto.mergeInfo.viewCount-1,e=a.elementOffset,f=c;d>=f;f++)for(var g=a.views[f],h=0;h<g.proto.elementBinders.length;h++,e++){var i=b[e];if(k.isPresent(i))for(var j=i.views.length-1;j>=0;j--)this._destroyViewInContainer(g,e,j)}},b=g([j.Injectable(),i(4,j.Inject(j.forwardRef(function(){return t.ProtoViewFactory}))),h("design:paramtypes",[q.AppViewPool,r.AppViewListener,p.AppViewManagerUtils,o.Renderer,Object])],b)}(u);return b.AppViewManager_=v,d.define=e,c.exports}),a.registerDynamic("22",["3b","62","1f","1b7"],!0,function(a,b,c){"use strict";var d=this,e=d.define;d.define=void 0;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=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},h
|
||
|
|
||
|
//# sourceMappingURL=redoc.min.js.map
|