@tsed/core 7.34.5 → 7.35.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/jest.config.js +4 -4
  2. package/lib/browser/core.umd.min.js +1 -1
  3. package/lib/browser/core.umd.min.js.map +1 -1
  4. package/lib/cjs/domain/Hooks.js +3 -0
  5. package/lib/cjs/domain/Hooks.js.map +1 -1
  6. package/lib/cjs/index.js +4 -0
  7. package/lib/cjs/index.js.map +1 -1
  8. package/lib/cjs/utils/getRandomId.js +8 -0
  9. package/lib/cjs/utils/getRandomId.js.map +1 -0
  10. package/lib/cjs/utils/objects/hasJsonMethod.js +8 -0
  11. package/lib/cjs/utils/objects/hasJsonMethod.js.map +1 -0
  12. package/lib/cjs/utils/objects/isBuffer.js +1 -6
  13. package/lib/cjs/utils/objects/isBuffer.js.map +1 -1
  14. package/lib/cjs/utils/objects/isMomentObject.js +8 -0
  15. package/lib/cjs/utils/objects/isMomentObject.js.map +1 -0
  16. package/lib/cjs/utils/objects/isMongooseObject.js +13 -0
  17. package/lib/cjs/utils/objects/isMongooseObject.js.map +1 -0
  18. package/lib/esm/domain/Hooks.js +3 -0
  19. package/lib/esm/domain/Hooks.js.map +1 -1
  20. package/lib/esm/index.js +4 -0
  21. package/lib/esm/index.js.map +1 -1
  22. package/lib/esm/utils/getRandomId.js +4 -0
  23. package/lib/esm/utils/getRandomId.js.map +1 -0
  24. package/lib/esm/utils/objects/hasJsonMethod.js +4 -0
  25. package/lib/esm/utils/objects/hasJsonMethod.js.map +1 -0
  26. package/lib/esm/utils/objects/isBuffer.js +1 -6
  27. package/lib/esm/utils/objects/isBuffer.js.map +1 -1
  28. package/lib/esm/utils/objects/isMomentObject.js +4 -0
  29. package/lib/esm/utils/objects/isMomentObject.js.map +1 -0
  30. package/lib/esm/utils/objects/isMongooseObject.js +8 -0
  31. package/lib/esm/utils/objects/isMongooseObject.js.map +1 -0
  32. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  33. package/lib/tsconfig.tsbuildinfo +1 -1
  34. package/lib/types/domain/Hooks.d.ts +1 -0
  35. package/lib/types/index.d.ts +4 -0
  36. package/lib/types/utils/getRandomId.d.ts +1 -0
  37. package/lib/types/utils/objects/hasJsonMethod.d.ts +1 -0
  38. package/lib/types/utils/objects/isMomentObject.d.ts +1 -0
  39. package/lib/types/utils/objects/isMongooseObject.d.ts +2 -0
  40. package/package.json +7 -4
@@ -1 +1 @@
1
- {"version":3,"file":"core.umd.min.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAc,KAAID,IAElBD,EAAW,KAAIC,GAChB,CATD,CASGK,MAAM,+BCKT,IAAIC,GACJ,SAAWA,IAGP,SAAWN,GACP,IAAID,EAAyB,iBAAX,EAAAQ,EAAsB,EAAAA,EACpB,iBAATF,KAAoBA,KACP,iBAATG,KAAoBA,KACvBC,SAAS,eAATA,GACRC,EAAWC,EAAaL,GAQ5B,SAASK,EAAaC,EAAQC,GAC1B,OAAO,SAAUC,EAAKC,GACS,mBAAhBH,EAAOE,IACdE,OAAOC,eAAeL,EAAQE,EAAK,CAAEI,cAAc,EAAMC,UAAU,EAAMJ,MAAOA,IAEhFF,GACAA,EAASC,EAAKC,EACtB,CACJ,MAf4B,IAAjBhB,EAAKO,QACZP,EAAKO,QAAUA,EAGfI,EAAWC,EAAaZ,EAAKO,QAASI,GAY3C,SAAUA,GACT,IAAIU,EAASJ,OAAOK,UAAUC,eAE1BC,EAAmC,mBAAXC,OACxBC,EAAoBF,QAAgD,IAAvBC,OAAOE,YAA8BF,OAAOE,YAAc,gBACvGC,EAAiBJ,QAA6C,IAApBC,OAAOI,SAA2BJ,OAAOI,SAAW,aAC9FC,EAA0C,mBAAlBb,OAAOc,OAC/BC,EAAgB,CAA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IAEfuB,IACR,IAAIU,IACX,CACA,MAAMmgB,EAAWJ,GAAiBC,GAClC,OAAOhiB,OAAOiC,QAAQsG,GAAOsH,QAAO,CAACvO,GAAMxB,EAAKC,KACrCuB,EAAIkC,IAAI2e,EAASpiB,EAAOD,GAAMC,IACtC,IAAIiC,IACX","sources":["webpack://core/webpack/universalModuleDefinition","webpack://core/../../node_modules/reflect-metadata/Reflect.js","webpack://core/../../node_modules/util/node_modules/inherits/inherits_browser.js","webpack://core/../../node_modules/util/support/isBufferBrowser.js","webpack://core/../../node_modules/util/util.js","webpack://core/./src/utils/imports/ lazy namespace object","webpack://core/webpack/bootstrap","webpack://core/webpack/runtime/define property getters","webpack://core/webpack/runtime/global","webpack://core/webpack/runtime/hasOwnProperty shorthand","webpack://core/webpack/runtime/make namespace object","webpack://core/./src/utils/objects/descriptorOf.ts","webpack://core/./src/decorators/configurable.ts","webpack://core/./src/domain/DecoratorTypes.ts","webpack://core/./src/decorators/deprecated.ts","webpack://core/./src/decorators/enumerable.ts","webpack://core/./src/decorators/notConfigurable.ts","webpack://core/./src/decorators/notEnumerable.ts","webpack://core/./src/decorators/writable.ts","webpack://core/./src/decorators/readOnly.ts","webpack://core/./src/utils/objects/classOf.ts","webpack://core/./src/utils/decorators/decoratorTypeOf.ts","webpack://core/./src/utils/objects/isArray.ts","webpack://core/./src/utils/objects/isDate.ts","webpack://core/./src/utils/objects/isFunction.ts","webpack://core/./src/utils/objects/isNil.ts","webpack://core/./src/utils/objects/isBoolean.ts","webpack://core/./src/utils/objects/isNumber.ts","webpack://core/./src/utils/objects/isString.ts","webpack://core/./src/utils/objects/isPrimitive.ts","webpack://core/./src/utils/objects/isSymbol.ts","webpack://core/./src/utils/objects/isBuffer.ts","webpack://core/./src/utils/objects/isRegExp.ts","webpack://core/./src/utils/objects/deepClone.ts","webpack://core/./src/utils/objects/createInstance.ts","webpack://core/./src/utils/objects/isProtectedKey.ts","webpack://core/./src/utils/objects/objectKeys.ts","webpack://core/./src/utils/objects/deepMerge.ts","webpack://core/./src/utils/objects/nameOf.ts","webpack://core/./src/domain/Metadata.ts","webpack://core/./src/domain/Store.ts","webpack://core/./src/decorators/storeFn.ts","webpack://core/./src/decorators/storeMerge.ts","webpack://core/./src/decorators/storeSet.ts","webpack://core/./src/utils/objects/isObject.ts","webpack://core/./src/utils/objects/isObservable.ts","webpack://core/./src/utils/objects/isPromise.ts","webpack://core/./src/utils/objects/isStream.ts","webpack://core/./src/domain/AnyToPromise.ts","webpack://core/./src/domain/Env.ts","webpack://core/./src/domain/Hooks.ts","webpack://core/./src/domain/Type.ts","webpack://core/./src/errors/UnsupportedDecoratorType.ts","webpack://core/./src/utils/catchError.ts","webpack://core/./src/utils/uniq.ts","webpack://core/./src/utils/proxyDelegation.ts","webpack://core/./src/utils/objects/ancestorOf.ts","webpack://core/./src/utils/objects/ancestorsOf.ts","webpack://core/./src/utils/objects/prototypeOf.ts","webpack://core/./src/utils/objects/methodsOf.ts","webpack://core/./src/utils/decorators/decorateMethodsOf.ts","webpack://core/./src/utils/decorators/decoratorArgs.ts","webpack://core/./src/utils/decorators/inheritedDescriptorOf.ts","webpack://core/./src/utils/decorators/useDecorators.ts","webpack://core/./src/utils/decorators/useMethodDecorators.ts","webpack://core/./src/utils/http/getHostInfoFromPort.ts","webpack://core/./src/utils/imports/importPackage.ts","webpack://core/./src/utils/objects/cleanObject.ts","webpack://core/./src/utils/objects/constructorOf.ts","webpack://core/./src/utils/objects/isArrowFn.ts","webpack://core/./src/utils/objects/isPlainObject.ts","webpack://core/./src/utils/objects/isClass.ts","webpack://core/./src/utils/objects/getClassOrSymbol.ts","webpack://core/./src/utils/objects/toStringConstructor.ts","webpack://core/./src/utils/objects/getConstructorArgNames.ts","webpack://core/./src/utils/objects/isEnumerable.ts","webpack://core/./src/utils/objects/getEnumerableKeys.ts","webpack://core/./src/utils/objects/getValue.ts","webpack://core/./src/utils/objects/isCollection.ts","webpack://core/./src/utils/objects/isEmpty.ts","webpack://core/./src/utils/objects/isInheritedFrom.ts","webpack://core/./src/utils/objects/isSerializable.ts","webpack://core/./src/utils/objects/primitiveOf.ts","webpack://core/./src/utils/objects/setValue.ts","webpack://core/./src/utils/objects/toMap.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"core\"] = factory();\n\telse\n\t\troot[\"core\"] = factory();\n})(self, () => {\nreturn ","/*! *****************************************************************************\nCopyright (C) Microsoft. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\nvar Reflect;\n(function (Reflect) {\n // Metadata Proposal\n // https://rbuckton.github.io/reflect-metadata/\n (function (factory) {\n var root = typeof global === \"object\" ? global :\n typeof self === \"object\" ? self :\n typeof this === \"object\" ? this :\n Function(\"return this;\")();\n var exporter = makeExporter(Reflect);\n if (typeof root.Reflect === \"undefined\") {\n root.Reflect = Reflect;\n }\n else {\n exporter = makeExporter(root.Reflect, exporter);\n }\n factory(exporter);\n function makeExporter(target, previous) {\n return function (key, value) {\n if (typeof target[key] !== \"function\") {\n Object.defineProperty(target, key, { configurable: true, writable: true, value: value });\n }\n if (previous)\n previous(key, value);\n };\n }\n })(function (exporter) {\n var hasOwn = Object.prototype.hasOwnProperty;\n // feature test for Symbol support\n var supportsSymbol = typeof Symbol === \"function\";\n var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== \"undefined\" ? Symbol.toPrimitive : \"@@toPrimitive\";\n var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== \"undefined\" ? Symbol.iterator : \"@@iterator\";\n var supportsCreate = typeof Object.create === \"function\"; // feature test for Object.create support\n var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support\n var downLevel = !supportsCreate && !supportsProto;\n var HashMap = {\n // create an object in dictionary mode (a.k.a. \"slow\" mode in v8)\n create: supportsCreate\n ? function () { return MakeDictionary(Object.create(null)); }\n : supportsProto\n ? function () { return MakeDictionary({ __proto__: null }); }\n : function () { return MakeDictionary({}); },\n has: downLevel\n ? function (map, key) { return hasOwn.call(map, key); }\n : function (map, key) { return key in map; },\n get: downLevel\n ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }\n : function (map, key) { return map[key]; },\n };\n // Load global or shim versions of Map, Set, and WeakMap\n var functionPrototype = Object.getPrototypeOf(Function);\n var usePolyfill = typeof process === \"object\" && process.env && process.env[\"REFLECT_METADATA_USE_MAP_POLYFILL\"] === \"true\";\n var _Map = !usePolyfill && typeof Map === \"function\" && typeof Map.prototype.entries === \"function\" ? Map : CreateMapPolyfill();\n var _Set = !usePolyfill && typeof Set === \"function\" && typeof Set.prototype.entries === \"function\" ? Set : CreateSetPolyfill();\n var _WeakMap = !usePolyfill && typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\n // [[Metadata]] internal slot\n // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots\n var Metadata = new _WeakMap();\n /**\n * Applies a set of decorators to a property of a target object.\n * @param decorators An array of decorators.\n * @param target The target object.\n * @param propertyKey (Optional) The property key to decorate.\n * @param attributes (Optional) The property descriptor for the target key.\n * @remarks Decorators are applied in reverse order.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Example = Reflect.decorate(decoratorsArray, Example);\n *\n * // property (on constructor)\n * Reflect.decorate(decoratorsArray, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.decorate(decoratorsArray, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Object.defineProperty(Example, \"staticMethod\",\n * Reflect.decorate(decoratorsArray, Example, \"staticMethod\",\n * Object.getOwnPropertyDescriptor(Example, \"staticMethod\")));\n *\n * // method (on prototype)\n * Object.defineProperty(Example.prototype, \"method\",\n * Reflect.decorate(decoratorsArray, Example.prototype, \"method\",\n * Object.getOwnPropertyDescriptor(Example.prototype, \"method\")));\n *\n */\n function decorate(decorators, target, propertyKey, attributes) {\n if (!IsUndefined(propertyKey)) {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsObject(target))\n throw new TypeError();\n if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))\n throw new TypeError();\n if (IsNull(attributes))\n attributes = undefined;\n propertyKey = ToPropertyKey(propertyKey);\n return DecorateProperty(decorators, target, propertyKey, attributes);\n }\n else {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsConstructor(target))\n throw new TypeError();\n return DecorateConstructor(decorators, target);\n }\n }\n exporter(\"decorate\", decorate);\n // 4.1.2 Reflect.metadata(metadataKey, metadataValue)\n // https://rbuckton.github.io/reflect-metadata/#reflect.metadata\n /**\n * A default metadata decorator factory that can be used on a class, class member, or parameter.\n * @param metadataKey The key for the metadata entry.\n * @param metadataValue The value for the metadata entry.\n * @returns A decorator function.\n * @remarks\n * If `metadataKey` is already defined for the target and target key, the\n * metadataValue for that key will be overwritten.\n * @example\n *\n * // constructor\n * @Reflect.metadata(key, value)\n * class Example {\n * }\n *\n * // property (on constructor, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticProperty;\n * }\n *\n * // property (on prototype, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * property;\n * }\n *\n * // method (on constructor)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticMethod() { }\n * }\n *\n * // method (on prototype)\n * class Example {\n * @Reflect.metadata(key, value)\n * method() { }\n * }\n *\n */\n function metadata(metadataKey, metadataValue) {\n function decorator(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))\n throw new TypeError();\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n return decorator;\n }\n exporter(\"metadata\", metadata);\n /**\n * Define a unique metadata entry on the target.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param metadataValue A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey (Optional) The property key for the target.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): Decorator {\n * return (target, key?) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n *\n */\n function defineMetadata(metadataKey, metadataValue, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n exporter(\"defineMetadata\", defineMetadata);\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasMetadata\", hasMetadata);\n /**\n * Gets a value indicating whether the target object has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasOwnMetadata\", hasOwnMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getMetadata\", getMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getOwnMetadata\", getOwnMetadata);\n /**\n * Gets the metadata keys defined on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryMetadataKeys(target, propertyKey);\n }\n exporter(\"getMetadataKeys\", getMetadataKeys);\n /**\n * Gets the unique metadata keys defined on the target object.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getOwnMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryOwnMetadataKeys(target, propertyKey);\n }\n exporter(\"getOwnMetadataKeys\", getOwnMetadataKeys);\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function deleteMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n var metadataMap = GetOrCreateMetadataMap(target, propertyKey, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n if (!metadataMap.delete(metadataKey))\n return false;\n if (metadataMap.size > 0)\n return true;\n var targetMetadata = Metadata.get(target);\n targetMetadata.delete(propertyKey);\n if (targetMetadata.size > 0)\n return true;\n Metadata.delete(target);\n return true;\n }\n exporter(\"deleteMetadata\", deleteMetadata);\n function DecorateConstructor(decorators, target) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsConstructor(decorated))\n throw new TypeError();\n target = decorated;\n }\n }\n return target;\n }\n function DecorateProperty(decorators, target, propertyKey, descriptor) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target, propertyKey, descriptor);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsObject(decorated))\n throw new TypeError();\n descriptor = decorated;\n }\n }\n return descriptor;\n }\n function GetOrCreateMetadataMap(O, P, Create) {\n var targetMetadata = Metadata.get(O);\n if (IsUndefined(targetMetadata)) {\n if (!Create)\n return undefined;\n targetMetadata = new _Map();\n Metadata.set(O, targetMetadata);\n }\n var metadataMap = targetMetadata.get(P);\n if (IsUndefined(metadataMap)) {\n if (!Create)\n return undefined;\n metadataMap = new _Map();\n targetMetadata.set(P, metadataMap);\n }\n return metadataMap;\n }\n // 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata\n function OrdinaryHasMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return true;\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryHasMetadata(MetadataKey, parent, P);\n return false;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n return ToBoolean(metadataMap.has(MetadataKey));\n }\n // 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata\n function OrdinaryGetMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryGetMetadata(MetadataKey, parent, P);\n return undefined;\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true);\n metadataMap.set(MetadataKey, MetadataValue);\n }\n // 3.1.6.1 OrdinaryMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys\n function OrdinaryMetadataKeys(O, P) {\n var ownKeys = OrdinaryOwnMetadataKeys(O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (parent === null)\n return ownKeys;\n var parentKeys = OrdinaryMetadataKeys(parent, P);\n if (parentKeys.length <= 0)\n return ownKeys;\n if (ownKeys.length <= 0)\n return parentKeys;\n var set = new _Set();\n var keys = [];\n for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {\n var key = ownKeys_1[_i];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {\n var key = parentKeys_1[_a];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n return keys;\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var keys = [];\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return keys;\n var keysObj = metadataMap.keys();\n var iterator = GetIterator(keysObj);\n var k = 0;\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n keys.length = k;\n return keys;\n }\n var nextValue = IteratorValue(next);\n try {\n keys[k] = nextValue;\n }\n catch (e) {\n try {\n IteratorClose(iterator);\n }\n finally {\n throw e;\n }\n }\n k++;\n }\n }\n // 6 ECMAScript Data Typ0es and Values\n // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values\n function Type(x) {\n if (x === null)\n return 1 /* Null */;\n switch (typeof x) {\n case \"undefined\": return 0 /* Undefined */;\n case \"boolean\": return 2 /* Boolean */;\n case \"string\": return 3 /* String */;\n case \"symbol\": return 4 /* Symbol */;\n case \"number\": return 5 /* Number */;\n case \"object\": return x === null ? 1 /* Null */ : 6 /* Object */;\n default: return 6 /* Object */;\n }\n }\n // 6.1.1 The Undefined Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type\n function IsUndefined(x) {\n return x === undefined;\n }\n // 6.1.2 The Null Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type\n function IsNull(x) {\n return x === null;\n }\n // 6.1.5 The Symbol Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type\n function IsSymbol(x) {\n return typeof x === \"symbol\";\n }\n // 6.1.7 The Object Type\n // https://tc39.github.io/ecma262/#sec-object-type\n function IsObject(x) {\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\n }\n // 7.1 Type Conversion\n // https://tc39.github.io/ecma262/#sec-type-conversion\n // 7.1.1 ToPrimitive(input [, PreferredType])\n // https://tc39.github.io/ecma262/#sec-toprimitive\n function ToPrimitive(input, PreferredType) {\n switch (Type(input)) {\n case 0 /* Undefined */: return input;\n case 1 /* Null */: return input;\n case 2 /* Boolean */: return input;\n case 3 /* String */: return input;\n case 4 /* Symbol */: return input;\n case 5 /* Number */: return input;\n }\n var hint = PreferredType === 3 /* String */ ? \"string\" : PreferredType === 5 /* Number */ ? \"number\" : \"default\";\n var exoticToPrim = GetMethod(input, toPrimitiveSymbol);\n if (exoticToPrim !== undefined) {\n var result = exoticToPrim.call(input, hint);\n if (IsObject(result))\n throw new TypeError();\n return result;\n }\n return OrdinaryToPrimitive(input, hint === \"default\" ? \"number\" : hint);\n }\n // 7.1.1.1 OrdinaryToPrimitive(O, hint)\n // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive\n function OrdinaryToPrimitive(O, hint) {\n if (hint === \"string\") {\n var toString_1 = O.toString;\n if (IsCallable(toString_1)) {\n var result = toString_1.call(O);\n if (!IsObject(result))\n return result;\n }\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n else {\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n var toString_2 = O.toString;\n if (IsCallable(toString_2)) {\n var result = toString_2.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n throw new TypeError();\n }\n // 7.1.2 ToBoolean(argument)\n // https://tc39.github.io/ecma262/2016/#sec-toboolean\n function ToBoolean(argument) {\n return !!argument;\n }\n // 7.1.12 ToString(argument)\n // https://tc39.github.io/ecma262/#sec-tostring\n function ToString(argument) {\n return \"\" + argument;\n }\n // 7.1.14 ToPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-topropertykey\n function ToPropertyKey(argument) {\n var key = ToPrimitive(argument, 3 /* String */);\n if (IsSymbol(key))\n return key;\n return ToString(key);\n }\n // 7.2 Testing and Comparison Operations\n // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations\n // 7.2.2 IsArray(argument)\n // https://tc39.github.io/ecma262/#sec-isarray\n function IsArray(argument) {\n return Array.isArray\n ? Array.isArray(argument)\n : argument instanceof Object\n ? argument instanceof Array\n : Object.prototype.toString.call(argument) === \"[object Array]\";\n }\n // 7.2.3 IsCallable(argument)\n // https://tc39.github.io/ecma262/#sec-iscallable\n function IsCallable(argument) {\n // NOTE: This is an approximation as we cannot check for [[Call]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.4 IsConstructor(argument)\n // https://tc39.github.io/ecma262/#sec-isconstructor\n function IsConstructor(argument) {\n // NOTE: This is an approximation as we cannot check for [[Construct]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.7 IsPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-ispropertykey\n function IsPropertyKey(argument) {\n switch (Type(argument)) {\n case 3 /* String */: return true;\n case 4 /* Symbol */: return true;\n default: return false;\n }\n }\n // 7.3 Operations on Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-objects\n // 7.3.9 GetMethod(V, P)\n // https://tc39.github.io/ecma262/#sec-getmethod\n function GetMethod(V, P) {\n var func = V[P];\n if (func === undefined || func === null)\n return undefined;\n if (!IsCallable(func))\n throw new TypeError();\n return func;\n }\n // 7.4 Operations on Iterator Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects\n function GetIterator(obj) {\n var method = GetMethod(obj, iteratorSymbol);\n if (!IsCallable(method))\n throw new TypeError(); // from Call\n var iterator = method.call(obj);\n if (!IsObject(iterator))\n throw new TypeError();\n return iterator;\n }\n // 7.4.4 IteratorValue(iterResult)\n // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue\n function IteratorValue(iterResult) {\n return iterResult.value;\n }\n // 7.4.5 IteratorStep(iterator)\n // https://tc39.github.io/ecma262/#sec-iteratorstep\n function IteratorStep(iterator) {\n var result = iterator.next();\n return result.done ? false : result;\n }\n // 7.4.6 IteratorClose(iterator, completion)\n // https://tc39.github.io/ecma262/#sec-iteratorclose\n function IteratorClose(iterator) {\n var f = iterator[\"return\"];\n if (f)\n f.call(iterator);\n }\n // 9.1 Ordinary Object Internal Methods and Internal Slots\n // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots\n // 9.1.1.1 OrdinaryGetPrototypeOf(O)\n // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof\n function OrdinaryGetPrototypeOf(O) {\n var proto = Object.getPrototypeOf(O);\n if (typeof O !== \"function\" || O === functionPrototype)\n return proto;\n // TypeScript doesn't set __proto__ in ES5, as it's non-standard.\n // Try to determine the superclass constructor. Compatible implementations\n // must either set __proto__ on a subclass constructor to the superclass constructor,\n // or ensure each class has a valid `constructor` property on its prototype that\n // points back to the constructor.\n // If this is not the same as Function.[[Prototype]], then this is definately inherited.\n // This is the case when in ES6 or when using __proto__ in a compatible browser.\n if (proto !== functionPrototype)\n return proto;\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\n var prototype = O.prototype;\n var prototypeProto = prototype && Object.getPrototypeOf(prototype);\n if (prototypeProto == null || prototypeProto === Object.prototype)\n return proto;\n // If the constructor was not a function, then we cannot determine the heritage.\n var constructor = prototypeProto.constructor;\n if (typeof constructor !== \"function\")\n return proto;\n // If we have some kind of self-reference, then we cannot determine the heritage.\n if (constructor === O)\n return proto;\n // we have a pretty good guess at the heritage.\n return constructor;\n }\n // naive Map shim\n function CreateMapPolyfill() {\n var cacheSentinel = {};\n var arraySentinel = [];\n var MapIterator = /** @class */ (function () {\n function MapIterator(keys, values, selector) {\n this._index = 0;\n this._keys = keys;\n this._values = values;\n this._selector = selector;\n }\n MapIterator.prototype[\"@@iterator\"] = function () { return this; };\n MapIterator.prototype[iteratorSymbol] = function () { return this; };\n MapIterator.prototype.next = function () {\n var index = this._index;\n if (index >= 0 && index < this._keys.length) {\n var result = this._selector(this._keys[index], this._values[index]);\n if (index + 1 >= this._keys.length) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n else {\n this._index++;\n }\n return { value: result, done: false };\n }\n return { value: undefined, done: true };\n };\n MapIterator.prototype.throw = function (error) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n throw error;\n };\n MapIterator.prototype.return = function (value) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n return { value: value, done: true };\n };\n return MapIterator;\n }());\n return /** @class */ (function () {\n function Map() {\n this._keys = [];\n this._values = [];\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n Object.defineProperty(Map.prototype, \"size\", {\n get: function () { return this._keys.length; },\n enumerable: true,\n configurable: true\n });\n Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };\n Map.prototype.get = function (key) {\n var index = this._find(key, /*insert*/ false);\n return index >= 0 ? this._values[index] : undefined;\n };\n Map.prototype.set = function (key, value) {\n var index = this._find(key, /*insert*/ true);\n this._values[index] = value;\n return this;\n };\n Map.prototype.delete = function (key) {\n var index = this._find(key, /*insert*/ false);\n if (index >= 0) {\n var size = this._keys.length;\n for (var i = index + 1; i < size; i++) {\n this._keys[i - 1] = this._keys[i];\n this._values[i - 1] = this._values[i];\n }\n this._keys.length--;\n this._values.length--;\n if (key === this._cacheKey) {\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n return true;\n }\n return false;\n };\n Map.prototype.clear = function () {\n this._keys.length = 0;\n this._values.length = 0;\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n };\n Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };\n Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };\n Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };\n Map.prototype[\"@@iterator\"] = function () { return this.entries(); };\n Map.prototype[iteratorSymbol] = function () { return this.entries(); };\n Map.prototype._find = function (key, insert) {\n if (this._cacheKey !== key) {\n this._cacheIndex = this._keys.indexOf(this._cacheKey = key);\n }\n if (this._cacheIndex < 0 && insert) {\n this._cacheIndex = this._keys.length;\n this._keys.push(key);\n this._values.push(undefined);\n }\n return this._cacheIndex;\n };\n return Map;\n }());\n function getKey(key, _) {\n return key;\n }\n function getValue(_, value) {\n return value;\n }\n function getEntry(key, value) {\n return [key, value];\n }\n }\n // naive Set shim\n function CreateSetPolyfill() {\n return /** @class */ (function () {\n function Set() {\n this._map = new _Map();\n }\n Object.defineProperty(Set.prototype, \"size\", {\n get: function () { return this._map.size; },\n enumerable: true,\n configurable: true\n });\n Set.prototype.has = function (value) { return this._map.has(value); };\n Set.prototype.add = function (value) { return this._map.set(value, value), this; };\n Set.prototype.delete = function (value) { return this._map.delete(value); };\n Set.prototype.clear = function () { this._map.clear(); };\n Set.prototype.keys = function () { return this._map.keys(); };\n Set.prototype.values = function () { return this._map.values(); };\n Set.prototype.entries = function () { return this._map.entries(); };\n Set.prototype[\"@@iterator\"] = function () { return this.keys(); };\n Set.prototype[iteratorSymbol] = function () { return this.keys(); };\n return Set;\n }());\n }\n // naive WeakMap shim\n function CreateWeakMapPolyfill() {\n var UUID_SIZE = 16;\n var keys = HashMap.create();\n var rootKey = CreateUniqueKey();\n return /** @class */ (function () {\n function WeakMap() {\n this._key = CreateUniqueKey();\n }\n WeakMap.prototype.has = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.has(table, this._key) : false;\n };\n WeakMap.prototype.get = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.get(table, this._key) : undefined;\n };\n WeakMap.prototype.set = function (target, value) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ true);\n table[this._key] = value;\n return this;\n };\n WeakMap.prototype.delete = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? delete table[this._key] : false;\n };\n WeakMap.prototype.clear = function () {\n // NOTE: not a real clear, just makes the previous data unreachable\n this._key = CreateUniqueKey();\n };\n return WeakMap;\n }());\n function CreateUniqueKey() {\n var key;\n do\n key = \"@@WeakMap@@\" + CreateUUID();\n while (HashMap.has(keys, key));\n keys[key] = true;\n return key;\n }\n function GetOrCreateWeakMapTable(target, create) {\n if (!hasOwn.call(target, rootKey)) {\n if (!create)\n return undefined;\n Object.defineProperty(target, rootKey, { value: HashMap.create() });\n }\n return target[rootKey];\n }\n function FillRandomBytes(buffer, size) {\n for (var i = 0; i < size; ++i)\n buffer[i] = Math.random() * 0xff | 0;\n return buffer;\n }\n function GenRandomBytes(size) {\n if (typeof Uint8Array === \"function\") {\n if (typeof crypto !== \"undefined\")\n return crypto.getRandomValues(new Uint8Array(size));\n if (typeof msCrypto !== \"undefined\")\n return msCrypto.getRandomValues(new Uint8Array(size));\n return FillRandomBytes(new Uint8Array(size), size);\n }\n return FillRandomBytes(new Array(size), size);\n }\n function CreateUUID() {\n var data = GenRandomBytes(UUID_SIZE);\n // mark as random - RFC 4122 § 4.4\n data[6] = data[6] & 0x4f | 0x40;\n data[8] = data[8] & 0xbf | 0x80;\n var result = \"\";\n for (var offset = 0; offset < UUID_SIZE; ++offset) {\n var byte = data[offset];\n if (offset === 4 || offset === 6 || offset === 8)\n result += \"-\";\n if (byte < 16)\n result += \"0\";\n result += byte.toString(16).toLowerCase();\n }\n return result;\n }\n }\n // uses a heuristic used by v8 and chakra to force an object into dictionary mode.\n function MakeDictionary(obj) {\n obj.__ = undefined;\n delete obj.__;\n return obj;\n }\n });\n})(Reflect || (Reflect = {}));\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n","module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n // Allow for deprecating things in the process of starting up.\n if (isUndefined(global.process)) {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n if (process.noDeprecation === true) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('./support/isBuffer');\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = require('inherits');\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n","function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(() => {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = () => ([]);\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 340;\nmodule.exports = webpackEmptyAsyncContext;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Return the descriptor for a given class and propertyKey\n * @param target\n * @param {string} propertyKey\n * @returns {PropertyDescriptor}\n */\nexport function descriptorOf(target, propertyKey) {\n return Object.getOwnPropertyDescriptor((target && target.prototype) || target, propertyKey);\n}\nexport function isMethodDescriptor(target, propertyKey) {\n return descriptorOf(target, propertyKey)?.value;\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf\";\nexport function Configurable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { writable: true, enumerable: true };\n descriptor.configurable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","export var DecoratorTypes;\n(function (DecoratorTypes) {\n DecoratorTypes[\"PARAM\"] = \"parameter\";\n DecoratorTypes[\"PARAM_CTOR\"] = \"parameter.constructor\";\n DecoratorTypes[\"PARAM_STC\"] = \"parameter.static\";\n DecoratorTypes[\"PROP\"] = \"property\";\n DecoratorTypes[\"PROP_STC\"] = \"property.static\";\n DecoratorTypes[\"METHOD\"] = \"method\";\n DecoratorTypes[\"METHOD_STC\"] = \"method.static\";\n DecoratorTypes[\"CLASS\"] = \"class\";\n})(DecoratorTypes || (DecoratorTypes = {}));\n","import { deprecate } from \"util\";\n/**\n * The `@Deprecated()` decorators wraps the given method in such a way that it is marked as deprecated.\n *\n * ```typescript\n * provide Foo {\n *\n * @Deprecated(\"Foo.method: Use Foo.method2 instead\")\n * public method() {\n *\n * }\n * ```\n *\n * When called, @Deprecated() will return a function that will emit a `DeprecationWarning` using the `process.on('warning')` event.\n * By default, this warning will be emitted and printed to `stderr` exactly once, the first time it is called. After the warning is emitted, the wrapped method is called.\n *\n * If either the `--no-deprecation` or `--no-warnings` command line flags are used, or if the `process.noDeprecation`\n * property is set to `true` prior to the first deprecation warning, the `@Deprecated()` decorators does nothing.\n *\n * If the `--trace-deprecation` or `--trace-warnings` command line flags are set, or the `process.traceDeprecation`\n * property is set to `true`, a warning and a stack trace are printed to stderr the first time the deprecated function is called.\n *\n * If the `--throw-deprecation` command line flag is set, or the `process.throwDeprecation` property is set to `true`,\n * then an exception will be thrown when the deprecated function is called.\n *\n * The `--throw-deprecation` command line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation`\n * and `process.traceDeprecation`.\n *\n * @param message\n * @returns {Function}\n * @decorator\n */\nexport function Deprecated(message) {\n return (target, targetKey, descriptor) => {\n const originalMethod = descriptor.value;\n descriptor.value = deprecate(originalMethod, message);\n return descriptor;\n };\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf\";\nexport function Enumerable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { writable: true, configurable: true };\n descriptor.enumerable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","import { Configurable } from \"./configurable\";\nexport function NotConfigurable() {\n return Configurable(false);\n}\n","import { Enumerable } from \"./enumerable\";\nexport function NotEnumerable() {\n return Enumerable(false);\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf\";\nexport function Writable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { configurable: true, enumerable: true };\n descriptor.writable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","import { Writable } from \"./writable\";\nexport function Readonly() {\n return Writable(false);\n}\n","/**\n * Get the provide constructor if target is an instance.\n * @param target\n * @returns {*}\n */\nexport function getClass(target) {\n return target.prototype ? target : target.constructor;\n}\n/**\n * Get the provide constructor if target is an instance.\n * @param target\n * @returns {*}\n * @alias getClass\n */\nexport function classOf(target) {\n return getClass(target);\n}\n","import { DecoratorTypes } from \"../../domain/DecoratorTypes\";\nimport { classOf } from \"../objects/classOf\";\nexport function decoratorTypeOf(args) {\n const [target, propertyKey, descriptor] = args;\n const staticType = (type) => {\n return target !== classOf(target) ? type : `${type}.static`;\n };\n if (typeof descriptor === \"number\") {\n return propertyKey ? staticType(\"parameter\") : \"parameter.constructor\";\n }\n if (descriptor && descriptor.value) {\n return staticType(\"method\");\n }\n if ((propertyKey && descriptor === undefined) || descriptor) {\n return staticType(\"property\");\n }\n return DecoratorTypes.CLASS;\n}\n","/**\n * Return true if value is an array\n * @param target\n * @returns {boolean}\n */\nexport function isArray(target) {\n return Array.isArray(target);\n}\n/**\n * Return true if the clazz is an array.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isArrayOrArrayClass(target) {\n return target === Array || isArray(target);\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isDate(target) {\n return target === Date || (target instanceof Date && !isNaN(+target));\n}\n","export function isFunction(target) {\n return typeof target === \"function\";\n}\n","export function isNil(value) {\n return value === undefined || value === null;\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isBoolean(target) {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\nexport function isBooleanOrBooleanClass(target) {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isNumber(target) {\n return typeof target === \"number\";\n}\nexport function isNumberOrNumberClass(target) {\n return typeof target === \"number\" || target instanceof Number || target === Number;\n}\n","/**\n * @param target\n * @returns {boolean}\n */\nexport function isString(target) {\n return typeof target === \"string\";\n}\nexport function isStringOrStringClass(target) {\n return typeof target === \"string\" || target instanceof String || target === String;\n}\n","import { isBoolean, isBooleanOrBooleanClass } from \"./isBoolean\";\nimport { isNumber, isNumberOrNumberClass } from \"./isNumber\";\nimport { isString, isStringOrStringClass } from \"./isString\";\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isPrimitiveOrPrimitiveClass(target) {\n return isStringOrStringClass(target) || isNumberOrNumberClass(target) || isBooleanOrBooleanClass(target);\n}\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n */\nexport function isPrimitive(target) {\n return isString(target) || isNumber(target) || isBoolean(target);\n}\nexport function isPrimitiveClass(target) {\n return [String, Number, Boolean].includes(target);\n}\n","/**\n *\n * @param target\n */\nexport function isSymbol(target) {\n return typeof target === \"symbol\";\n}\nexport function isSymbolOrSymbolClass(target) {\n return typeof target === \"symbol\" || target instanceof Symbol || target === Symbol;\n}\n","/**\n * Tests to see if the object is Buffer\n * @param target\n * @returns {boolean}\n */\nexport function isBuffer(target) {\n // istanbul ignore else\n if (typeof Buffer !== \"undefined\") {\n return target === Buffer || target instanceof Buffer;\n }\n // istanbul ignore next\n return false;\n}\n","export function isRegExp(target) {\n return target instanceof RegExp;\n}\n","import { isArray } from \"./isArray\";\nimport { isDate } from \"./isDate\";\nimport { isFunction } from \"./isFunction\";\nimport { isNil } from \"./isNil\";\nimport { isPrimitive } from \"./isPrimitive\";\nimport { isSymbol } from \"./isSymbol\";\nimport { isBuffer } from \"./isBuffer\";\nimport { isRegExp } from \"./isRegExp\";\nconst isBasicType = (source) => isNil(source) || isPrimitive(source) || isSymbol(source) || isFunction(source);\n/**\n * Return a cloned value\n * @param source\n * @param stack\n */\nexport function deepClone(source, stack = new WeakMap()) {\n let dest;\n if (isBasicType(source)) {\n return source;\n }\n if (isBuffer(source)) {\n const copy = Buffer.alloc(source.length);\n source.copy(copy);\n return copy;\n }\n if (isDate(source)) {\n return new Date(source);\n }\n if (isRegExp(source)) {\n return new RegExp(source);\n }\n const stacked = stack.get(source);\n if (stacked) {\n // See issue #1619\n return stacked;\n }\n if (isArray(source)) {\n dest = [];\n }\n else {\n dest = {};\n stack.set(source, dest);\n }\n for (const key in source) {\n // Use getOwnPropertyDescriptor instead of source[key] to prevent from triggering setter/getter.\n const descriptor = Object.getOwnPropertyDescriptor(source, key);\n if (descriptor) {\n if (!isFunction(descriptor.value)) {\n dest[key] = deepClone(descriptor.value, stack);\n }\n else {\n Object.defineProperty(dest, key, descriptor);\n }\n }\n }\n if (!isArray(source)) {\n const prototype = Reflect.getPrototypeOf(source);\n Reflect.setPrototypeOf(dest, prototype);\n }\n return dest;\n}\n","import { classOf } from \"./classOf\";\nexport function createInstance(obj) {\n return obj ? (classOf(obj) !== Object ? Object.create(obj) : {}) : {};\n}\n","/**\n * Prevent prototype pollution vulnerability\n * @param key\n */\nexport function isProtectedKey(key) {\n return [\"__proto__\", \"constructor\", \"prototype\"].includes(key);\n}\n","import { isProtectedKey } from \"./isProtectedKey\";\nexport function objectKeys(obj) {\n return Object.keys(obj).filter((key) => !isProtectedKey(key));\n}\n","import { createInstance } from \"./createInstance\";\nimport { isFunction } from \"./isFunction\";\nimport { isPrimitive } from \"./isPrimitive\";\nimport { isSymbol } from \"./isSymbol\";\nimport { objectKeys } from \"./objectKeys\";\nexport function mergeReducerBuilder(cb) {\n return (collection, value, options) => {\n const index = collection.findIndex((item) => cb(item, value));\n if (index === -1) {\n return [...collection, value];\n }\n collection[index] = deepMerge(collection[index], value, options);\n return collection;\n };\n}\nconst defaultReducer = mergeReducerBuilder((a, b) => a === b);\nfunction getReducer({ reducers, parentKey }) {\n if (!reducers) {\n return defaultReducer;\n }\n if (parentKey && reducers[parentKey]) {\n return reducers[parentKey];\n }\n return reducers[\"default\"] || defaultReducer;\n}\nfunction shouldReturnObj(obj, source) {\n return isPrimitive(obj) || isSymbol(obj) || isFunction(obj) || source === undefined;\n}\nfunction shouldReturnSource(obj, source) {\n return obj === undefined || obj === null || (obj === \"\" && source !== \"\");\n}\nexport function deepMerge(source, obj, options = {}) {\n if (shouldReturnSource(obj, source)) {\n return source;\n }\n if (shouldReturnObj(obj, source)) {\n return obj;\n }\n if (Array.isArray(source)) {\n const reducer = getReducer(options);\n return [].concat(obj).reduce((out, value) => reducer(out, value, options), [...source]);\n }\n return [...objectKeys(source), ...objectKeys(obj)].reduce((out, key) => {\n const src = source && source[key];\n const value = deepMerge(src, obj && obj[key], {\n ...options,\n parentKey: key\n });\n if (options.cleanUndefinedProps && value === undefined) {\n return out;\n }\n return {\n ...out,\n [key]: value\n };\n }, createInstance(source));\n}\n","/**\n * Get the provide name.\n * @param targetClass\n */\nexport function nameOfClass(targetClass) {\n return typeof targetClass === \"function\" ? targetClass.name : targetClass.constructor.name;\n}\n/**\n * Get symbol name.\n * @param sym\n */\nexport const nameOfSymbol = (sym) => sym.toString().replace(\"Symbol(\", \"\").replace(\")\", \"\");\n/**\n * Get object name\n */\nexport function nameOf(obj) {\n switch (typeof obj) {\n default:\n return \"\" + obj;\n case \"symbol\":\n return nameOfSymbol(obj);\n case \"function\":\n return nameOfClass(obj);\n }\n}\n","import \"reflect-metadata\";\nimport { classOf } from \"../utils/objects/classOf\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_PARAM_TYPES = \"design:paramtypes\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_TYPE = \"design:type\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_RETURN_TYPE = \"design:returntype\";\n/**\n * Properties collections\n * @private\n * @type {string}\n */\nconst PROPERTIES = new Map();\n/**\n * @stable\n */\nclass Metadata {\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.get(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.get(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.get(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.get(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.get(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static get(key, target, propertyKey) {\n return Reflect.getMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.getOwn(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwn(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.getOwn(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.getOwn(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.getOwn(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static getOwn(key, target, propertyKey) {\n return Reflect.getOwnMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getType(Example, \"staticMethod\");\n * ```\n *\n */\n static getType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getOwnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getOwnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_RETURN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getReturnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getReturnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getReturnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getReturnType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_RETURN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_RETURN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getOwnReturnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwnReturnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getOwnReturnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnReturnType(target, propertyKey) {\n return Reflect.getOwnMetadata(DESIGN_RETURN_TYPE, target, propertyKey);\n }\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.has(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.has(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.has(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.has(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.has(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static has(key, target, propertyKey) {\n try {\n return Reflect.hasMetadata(key, classOf(target), propertyKey);\n }\n catch (er) { }\n return false;\n }\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.has(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.hasOwn(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.hasOwn(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.hasOwn(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.hasOwn(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static hasOwn(key, target, propertyKey) {\n return Reflect.hasOwnMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.delete(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.delete(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.delete(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.delete(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.delete(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static delete(key, target, propertyKey) {\n return Reflect.deleteMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Set the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @param value A value that contains attached metadata.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.setParamTypes(Example, undefined, [Object]);\n *\n * // property (on constructor)\n * result = Metadata.setParamTypes(Example, \"staticProperty\", [Object]);\n *\n * // property (on prototype)\n * result = Metadata.setParamTypes(Example.prototype, \"property\", [Object]);\n *\n * // method (on constructor)\n * result = Metadata.setParamTypes(Example, \"staticMethod\", [Object]);\n *\n * // method (on prototype)\n * result = Metadata.setParamTypes(Example.prototype, \"method\", [Object]);\n * ```\n *\n */\n static setParamTypes(target, propertyKey, value) {\n return this.set(DESIGN_PARAM_TYPES, value, target.prototype, propertyKey);\n }\n /**\n * Get all metadata for a metadataKey.\n * @param metadataKey\n */\n static getTargetsFromPropertyKey = (metadataKey) => PROPERTIES.has(metadataKey) ? PROPERTIES.get(metadataKey) || [] : [];\n /**\n * Define a unique metadata entry on the target.\n * @param key A key used to store and retrieve metadata.\n * @param value A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey The property key for the target.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): PropertyDecorator {\n * return (target, key) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n * ```\n *\n */\n static set(key, value, target, propertyKey) {\n const targets = PROPERTIES.has(key) ? PROPERTIES.get(key) || [] : [];\n const classConstructor = classOf(target);\n if (targets.indexOf(classConstructor) === -1) {\n targets.push(classConstructor);\n PROPERTIES.set(key, targets);\n }\n Reflect.defineMetadata(key, value, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param targetPrototype\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getParamTypes(Example.prototype);\n *\n * // property (on constructor)\n * result = Metadata.getParamTypes(Example.prototype, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getParamTypes(Example.prototype, \"staticMethod\");\n * ```\n *\n */\n static getParamTypes(targetPrototype, propertyKey) {\n return Reflect.getMetadata(DESIGN_PARAM_TYPES, targetPrototype, propertyKey) || [];\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getParamTypes(Example);\n *\n * // property (on constructor)\n * result = Metadata.getParamTypes(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getParamTypes(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnParamTypes(target, propertyKey) {\n return Reflect.getOwnMetadata(DESIGN_PARAM_TYPES, target, propertyKey) || [];\n }\n}\nexport { Metadata };\n","import { DecoratorTypes } from \"../domain/DecoratorTypes\";\nimport { decoratorTypeOf } from \"../utils/decorators/decoratorTypeOf\";\nimport { deepClone } from \"../utils/objects/deepClone\";\nimport { deepMerge } from \"../utils/objects/deepMerge\";\nimport { descriptorOf } from \"../utils/objects/descriptorOf\";\nimport { isSymbol } from \"../utils/objects/isSymbol\";\nimport { nameOf } from \"../utils/objects/nameOf\";\nimport { Metadata } from \"./Metadata\";\n/**\n * @ignore\n */\nexport const CLASS_STORE = \"tsed:class:store\";\n/**\n * @ignore\n */\nexport const METHOD_STORE = \"tsed:method:store\";\n/**\n * @ignore\n */\nexport const PROPERTY_STORE = \"tsed:property:store\";\n/**\n * @ignore\n */\nexport const PARAM_STORE = \"tsed:param:store\";\nconst stores = new Map();\nfunction storeGet(key, ...args) {\n if (isSymbol(args[0])) {\n if (!stores.has(args[0])) {\n stores.set(args[0], new Store());\n }\n return stores.get(args[0]);\n }\n else {\n const registry = Metadata;\n if (!registry.hasOwn(key, ...args)) {\n registry.set(key, new Store(), ...args);\n }\n return registry.getOwn(key, ...args);\n }\n}\nfunction defineStore(args) {\n const [target, propertyKey, descriptor] = args;\n switch (decoratorTypeOf(args)) {\n case DecoratorTypes.PARAM_CTOR:\n case DecoratorTypes.PARAM_STC:\n case DecoratorTypes.PARAM:\n const store = storeGet(PARAM_STORE, target, propertyKey);\n if (!store.has(\"\" + descriptor)) {\n store.set(\"\" + descriptor, new Store());\n }\n return store.get(\"\" + descriptor);\n case DecoratorTypes.PROP:\n case DecoratorTypes.PROP_STC:\n return storeGet(PROPERTY_STORE, target, propertyKey);\n case DecoratorTypes.METHOD:\n case DecoratorTypes.METHOD_STC:\n return storeGet(METHOD_STORE, target, propertyKey);\n case DecoratorTypes.CLASS:\n return storeGet(CLASS_STORE, target);\n }\n}\nexport class Store {\n _entries = new Map();\n /**\n * Create or get a Store from args {target + methodName + descriptor}\n * @param args\n * @returns {Store}\n */\n static from(...args) {\n return defineStore(args);\n }\n /**\n * Create store on the method.\n * @param target\n * @param {string} propertyKey\n * @returns {Store}\n */\n static fromMethod(target, propertyKey) {\n return Store.from(target, propertyKey, descriptorOf(target, propertyKey));\n }\n static mergeStoreFrom(target, source, ...args) {\n const store = Store.from(target, ...args);\n Store.from(source, ...args)._entries.forEach((value, key) => {\n store.merge(key, value);\n });\n return store;\n }\n static mergeStoreMethodFrom(target, source, propertyKey) {\n return this.mergeStoreFrom(target, source, propertyKey, descriptorOf(target, propertyKey));\n }\n /**\n * The get() method returns a specified element from a Map object.\n * @param key Required. The key of the element to return from the Map object.\n * @param defaultValue\n * @returns {T} Returns the element associated with the specified key or undefined if the key can't be found in the Map object.\n */\n get(key, defaultValue) {\n return this._entries.get(nameOf(key)) || defaultValue;\n }\n /**\n * The has() method returns a boolean indicating whether an element with the specified key exists or not.\n * @param key\n * @returns {boolean}\n */\n has(key) {\n return this._entries.has(nameOf(key));\n }\n /**\n * The set() method adds or updates an element with a specified key and value to a Map object.\n * @param key Required. The key of the element to add to the Map object.\n * @param metadata Required. The value of the element to add to the Map object.\n */\n set(key, metadata) {\n this._entries.set(nameOf(key), metadata);\n return this;\n }\n /**\n * The delete() method removes the specified element from a Map object.\n * @param key Required. The key of the element to remove from the Map object.\n * @returns {boolean} Returns true if an element in the Map object existed and has been removed, or false if the element does not exist.\n */\n delete(key) {\n return this._entries.delete(nameOf(key));\n }\n /**\n * Merge given value with existing value.\n * @param key\n * @param value\n * @param inverse Change the merge order. Get the existing value and apply over given value\n * @returns {Store}\n */\n merge(key, value, inverse = false) {\n let _value_ = this.get(key);\n if (_value_) {\n value = deepClone(value);\n _value_ = deepClone(_value_);\n value = inverse ? deepMerge(value, _value_) : deepMerge(_value_, value);\n }\n this.set(key, value);\n return this;\n }\n toJson() {\n return [...this._entries.entries()].reduce((obj, [key, value]) => {\n return {\n ...obj,\n [key]: value\n };\n }, {});\n }\n}\n","import { Store } from \"../domain/Store\";\n/**\n * Create a store correctly configured from the parameters given by the decorator.\n * The `fn` can return a decorator that will be initialized with the parameters (target, propertyKey, descriptor).\n * @param {(store: Store, parameters: DecoratorParameters) => void} fn\n * @returns {Function}\n */\nexport function StoreFn(fn) {\n return (...parameters) => {\n const store = Store.from(...parameters);\n const result = fn(store, parameters);\n if (typeof result === \"function\") {\n result(...parameters);\n }\n return parameters[2];\n };\n}\n","import { StoreFn } from \"./storeFn\";\nexport function StoreMerge(key, value) {\n return StoreFn((store) => {\n store.merge(key, value);\n });\n}\n","import { StoreFn } from \"./storeFn\";\nexport function StoreSet(key, value) {\n return StoreFn((store) => {\n store.set(key, value);\n });\n}\n","export function isObject(target) {\n return typeof target === \"object\";\n}\n","export function isObservable(obj) {\n return !!obj && typeof obj.lift === \"function\" && typeof obj.subscribe === \"function\";\n}\n","/**\n * Tests to see if the object is an ES2015 (ES6) Promise\n * @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}\n * @param target\n * @returns {boolean}\n */\nexport function isPromise(target) {\n return (target === Promise ||\n target instanceof Promise ||\n (!!target && typeof target.subscribe !== \"function\" && typeof target.then === \"function\"));\n}\n","export function isStream(obj) {\n return obj !== null && typeof obj === \"object\" && typeof obj.pipe === \"function\";\n}\n","import { isObject } from \"../utils/objects/isObject\";\nimport { isObservable } from \"../utils/objects/isObservable\";\nimport { isPromise } from \"../utils/objects/isPromise\";\nimport { isStream } from \"../utils/objects/isStream\";\n/**\n * @ignore\n */\nfunction isResponse(obj) {\n return isObject(obj) && \"data\" in obj && \"headers\" in obj && \"status\" in obj && \"statusText\" in obj;\n}\n/**\n * @ignore\n */\nexport var AnyToPromiseStatus;\n(function (AnyToPromiseStatus) {\n AnyToPromiseStatus[\"PENDING\"] = \"PENDING\";\n AnyToPromiseStatus[\"CANCELED\"] = \"CANCELED\";\n AnyToPromiseStatus[\"RESOLVED\"] = \"RESOLVED\";\n AnyToPromiseStatus[\"REJECTED\"] = \"REJECTED\";\n})(AnyToPromiseStatus || (AnyToPromiseStatus = {}));\nexport var AnyToPromiseResponseTypes;\n(function (AnyToPromiseResponseTypes) {\n AnyToPromiseResponseTypes[\"STREAM\"] = \"STREAM\";\n AnyToPromiseResponseTypes[\"BUFFER\"] = \"BUFFER\";\n AnyToPromiseResponseTypes[\"DATA\"] = \"DATA\";\n})(AnyToPromiseResponseTypes || (AnyToPromiseResponseTypes = {}));\nexport class AnyToPromise {\n status = AnyToPromiseStatus.PENDING;\n args;\n #resolves;\n #rejects;\n #hasNextFunction = false;\n #promise;\n constructor({ hasNextFunction = false } = {}) {\n this.#hasNextFunction = hasNextFunction;\n this.#promise = new Promise((resolve, reject) => {\n this.#resolves = resolve;\n this.#rejects = reject;\n });\n }\n isDone() {\n return this.status !== AnyToPromiseStatus.PENDING;\n }\n get next() {\n this.#hasNextFunction = true;\n return (error) => {\n if (this.isDone()) {\n return;\n }\n return error ? this.reject(error) : this.resolve({ type: AnyToPromiseResponseTypes.DATA });\n };\n }\n /**\n *\n */\n call(cb) {\n if (this.isDone()) {\n return Promise.resolve(this);\n }\n try {\n this.handle(cb());\n }\n catch (er) {\n this.reject(er);\n }\n return this.#promise;\n }\n reject(er) {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.REJECTED);\n this.#rejects(er);\n }\n resolve(response = {}) {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.RESOLVED);\n this.#resolves({ ...response, state: AnyToPromiseStatus.RESOLVED });\n }\n destroy() { }\n cancel() {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.CANCELED);\n return this.#resolves({ state: AnyToPromiseStatus.CANCELED });\n }\n done(status) {\n this.destroy();\n this.status = status;\n }\n handle(process, additionalProps = {}) {\n if (this.isDone()) {\n return;\n }\n if (process) {\n if (this.isCanceledResponse(process)) {\n // ABANDON\n return this.cancel();\n }\n if (isObservable(process)) {\n process = process.toPromise();\n }\n if (isResponse(process)) {\n return this.handle(process.data, {\n ...additionalProps,\n status: process.status,\n headers: process.headers\n });\n }\n if (isStream(process)) {\n return this.resolve({ ...additionalProps, type: AnyToPromiseResponseTypes.STREAM, data: process });\n }\n if (isStream(process) || Buffer.isBuffer(process)) {\n return this.resolve({ ...additionalProps, type: AnyToPromiseResponseTypes.BUFFER, data: process });\n }\n if (isPromise(process)) {\n return process\n .then((result) => this.handle(result, additionalProps))\n .catch((error) => {\n if (error.response && isResponse(error.response)) {\n return this.handle(error.response);\n }\n return this.reject(error);\n });\n }\n }\n if (!this.#hasNextFunction) {\n // no next function and empty response\n return this.resolve({\n ...additionalProps,\n data: process,\n type: AnyToPromiseResponseTypes.DATA\n });\n }\n }\n isCanceledResponse(process) {\n return process === AnyToPromiseStatus.CANCELED;\n }\n}\n","/**\n *\n */\nexport var Env;\n(function (Env) {\n Env[\"PROD\"] = \"production\";\n Env[\"DEV\"] = \"development\";\n Env[\"TEST\"] = \"test\";\n})(Env || (Env = {}));\n/**\n * Fallback\n * @type {Env}\n */\n// tslint:disable-next-line: variable-name\nexport const EnvTypes = Env;\n","export class Hooks {\n #listeners = {};\n /**\n * Listen a hook event\n * @param event\n * @param cb\n */\n on(event, cb) {\n if (!this.#listeners[event]) {\n this.#listeners[event] = [];\n }\n this.#listeners[event].push(cb);\n return this;\n }\n /**\n * Remove a listener attached to an event\n * @param event\n * @param cb\n */\n off(event, cb) {\n if (this.#listeners[event]) {\n this.#listeners[event] = this.#listeners[event].filter((item) => item === cb);\n }\n return this;\n }\n /**\n * Trigger an event and call listener.\n * @param event\n * @param args\n * @param callThis\n */\n emit(event, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n cb.call(callThis, ...args);\n }\n }\n }\n /**\n * Trigger an event, listener alter given value and return it.\n * @param event\n * @param value\n * @param args\n * @param callThis\n */\n alter(event, value, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n value = cb.call(callThis, value, ...args);\n }\n }\n return value;\n }\n /**\n * Trigger an event and call async listener.\n * @param event\n * @param args\n * @param callThis\n */\n async asyncEmit(event, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n const promises = listeners.map((cb) => cb.call(callThis, ...args));\n await Promise.all(promises);\n }\n }\n /**\n * Trigger an event, async listener alter given value and return it.\n * @param event\n * @param value\n * @param args\n * @param callThis\n */\n async asyncAlter(event, value, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n value = await cb.call(callThis, value, ...args);\n }\n }\n return value;\n }\n destroy() {\n this.#listeners = {};\n }\n}\n","export const Type = Function;\n// @ts-ignore\nglobal.Type = Type;\n","import { decoratorTypeOf } from \"../utils/decorators/decoratorTypeOf\";\nimport { classOf } from \"../utils/objects/classOf\";\nimport { nameOf } from \"../utils/objects/nameOf\";\nexport class UnsupportedDecoratorType extends Error {\n name;\n constructor(decorator, args) {\n super(UnsupportedDecoratorType.buildMessage(decorator, args));\n }\n static buildMessage(decorator, args) {\n const [target, propertyKey, index] = args;\n const bindingType = decoratorTypeOf(args);\n const shortBinding = bindingType.split(\"/\")[0];\n const param = shortBinding === \"parameter\" ? \".[\" + index + \"]\" : \"\";\n const cstr = shortBinding === \"parameter\" ? \".constructor\" : \"\";\n const method = propertyKey ? \".\" + propertyKey : cstr;\n const path = nameOf(classOf(target)) + method + param;\n return `${decorator.name} cannot be used as ${bindingType} decorator on ${path}`;\n }\n}\n","export function catchError(cb) {\n try {\n cb();\n }\n catch (er) {\n return er;\n }\n}\nexport async function catchAsyncError(cb) {\n try {\n await cb();\n }\n catch (er) {\n return er;\n }\n}\n","/**\n * @param list\n */\nexport function uniq(list) {\n return Array.from(new Set(list).values());\n}\nexport function uniqBy(list, key = \"id\") {\n const map = new Map();\n list.forEach((item) => {\n map.set(item[key], item);\n });\n return Array.from(map.values());\n}\n","import { uniq } from \"./uniq\";\n/**\n * Create a complete and iterable trap.\n * @param self\n * @param options\n * @ignore\n */\nexport function proxyDelegation(self, options = {}) {\n const { handlers = {}, remove, ownKeys } = options;\n const get = options.getter || ((target, propertyKey) => target.get(propertyKey));\n const set = options.setter || ((target, propertyKey, value) => !!target.set(propertyKey, value));\n const itsOwnProp = (target, p) => Reflect.has(target, p) || typeof p === \"symbol\";\n return new Proxy(self, {\n getOwnPropertyDescriptor(target, p) {\n return Reflect.getOwnPropertyDescriptor(target, p);\n },\n has(target, p) {\n if (itsOwnProp(target, p)) {\n return Reflect.has(target, p);\n }\n return get(target, p) !== undefined;\n },\n get(target, p, receiver) {\n if (itsOwnProp(target, p)) {\n return Reflect.get(target, p, receiver);\n }\n return get(target, p);\n },\n set(target, p, value, receiver) {\n if (itsOwnProp(target, p)) {\n return Reflect.set(target, p, value, receiver);\n }\n return !!set(target, p, value, receiver);\n },\n deleteProperty(target, p) {\n if (itsOwnProp(target, p) || !remove) {\n return Reflect.deleteProperty(target, p);\n }\n return remove(target, p);\n },\n defineProperty(target, p, attributes) {\n return Reflect.defineProperty(target, p, attributes);\n },\n ownKeys(target) {\n return uniq(Reflect.ownKeys(target).concat((ownKeys && ownKeys(target)) || []));\n },\n ...handlers\n });\n}\n","export function ancestorOf(target) {\n return target && Object.getPrototypeOf(target);\n}\nexport function getInheritedClass(target) {\n return ancestorOf(target);\n}\n","import { classOf } from \"./classOf\";\nimport { getInheritedClass } from \"./ancestorOf\";\nimport { nameOf } from \"./nameOf\";\n/**\n *\n * @param target\n * @returns {Array}\n */\nexport function ancestorsOf(target) {\n const classes = [];\n let currentTarget = classOf(target);\n while (currentTarget && nameOf(currentTarget) !== \"\") {\n classes.unshift(currentTarget);\n currentTarget = getInheritedClass(currentTarget);\n }\n return classes;\n}\n","import { classOf } from \"./classOf\";\n/**\n * Return the prototype of the given class.\n * @param target\n * @returns {any}\n */\nexport function prototypeOf(target) {\n return classOf(target) === target ? target.prototype : target;\n}\n","import { classOf } from \"./classOf\";\nimport { ancestorsOf } from \"./ancestorsOf\";\nimport { prototypeOf } from \"./prototypeOf\";\n/**\n * Return all methods for a given class.\n * @param target\n */\nexport function methodsOf(target) {\n const methods = new Map();\n target = classOf(target);\n ancestorsOf(target).forEach((target) => {\n const keys = Reflect.ownKeys(prototypeOf(target));\n keys.forEach((propertyKey) => {\n if (propertyKey !== \"constructor\") {\n methods.set(propertyKey, { target, propertyKey });\n }\n });\n });\n return Array.from(methods.values());\n}\n","import { Store } from \"../../domain/Store\";\nimport { classOf } from \"../objects/classOf\";\nimport { descriptorOf } from \"../objects/descriptorOf\";\nimport { methodsOf } from \"../objects/methodsOf\";\nimport { prototypeOf } from \"../objects/prototypeOf\";\nexport function decorateMethodsOf(klass, decorator) {\n methodsOf(klass).forEach(({ target, propertyKey }) => {\n const proto = prototypeOf(klass);\n if (target !== classOf(klass)) {\n Object.defineProperty(proto, propertyKey, {\n writable: true,\n configurable: true,\n value(...args) {\n return prototypeOf(target)[propertyKey].apply(this, args);\n }\n });\n Store.mergeStoreMethodFrom(klass, target, propertyKey);\n }\n const newDescriptor = decorator(proto, propertyKey, descriptorOf(klass, propertyKey));\n if (newDescriptor) {\n Object.defineProperty(proto, propertyKey, newDescriptor);\n }\n });\n}\n","import { descriptorOf } from \"../objects/descriptorOf\";\nexport function decoratorArgs(target, propertyKey) {\n return [target, propertyKey, descriptorOf(target, propertyKey)];\n}\n","import { ancestorsOf } from \"../objects/ancestorsOf\";\nexport function inheritedDescriptorOf(target, propertyKey) {\n for (const klass of ancestorsOf(target)) {\n const descriptor = Object.getOwnPropertyDescriptor((klass && klass.prototype) || klass, propertyKey);\n if (descriptor) {\n return descriptor;\n }\n }\n return undefined;\n}\n","export function useDecorators(...decorators) {\n return (...args) => {\n decorators\n .filter((o) => !!o)\n .forEach((decorator) => {\n decorator(...args);\n });\n };\n}\n","import { descriptorOf } from \"../objects/descriptorOf\";\nexport function useMethodDecorator(decorator) {\n return (target, propertyKey) => decorator(target, propertyKey, descriptorOf(target, propertyKey));\n}\nexport function useMethodDecorators(...decorators) {\n return (target, propertyKey) => {\n decorators.filter(Boolean).forEach((decorator) => decorator(target, propertyKey, descriptorOf(target, propertyKey)));\n };\n}\n","export function getHostInfoFromPort(protocol, addressPort) {\n let address = \"0.0.0.0\";\n let port = addressPort;\n if (typeof addressPort === \"string\" && addressPort.indexOf(\":\") > -1) {\n [address, port] = addressPort.split(\":\");\n port = +port;\n }\n return {\n protocol,\n address,\n port: port,\n toString() {\n return [`${this.protocol}://${this.address}`, typeof this.port === \"number\" && this.port].filter(Boolean).join(\":\");\n }\n };\n}\n","export async function importPackage(packageName, loaderFn = () => import(packageName), optional = false) {\n try {\n return await loaderFn();\n }\n catch (e) {\n if (!optional) {\n throw e;\n }\n return {};\n }\n}\n","import { isProtectedKey } from \"./isProtectedKey\";\n/**\n * Remove undefined value\n * @param obj\n * @param ignore\n */\nexport function cleanObject(obj, ignore = []) {\n return Object.entries(obj).reduce((obj, [key, value]) => {\n if (isProtectedKey(key) || ignore.includes(key)) {\n return obj;\n }\n return value === undefined\n ? obj\n : {\n ...obj,\n [key]: value\n };\n }, {});\n}\n","/**\n * Get the class constructor\n * @param target\n */\nexport function getConstructor(target) {\n return typeof target === \"function\" ? target : target.constructor;\n}\n/**\n * Get the class constructor\n * @param target\n */\nexport function constructorOf(target) {\n return getConstructor(target);\n}\n","import { isFunction } from \"./isFunction\";\nexport function isArrowFn(target) {\n return target && isFunction(target) && !target.prototype;\n}\n","import { classOf } from \"./classOf\";\n/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isClassObject(target) {\n return target === Object;\n}\nexport function isPlainObject(target) {\n return isClassObject(classOf(target)) && target !== Object;\n}\n","import { isArrayOrArrayClass } from \"./isArray\";\nimport { isArrowFn } from \"./isArrowFn\";\nimport { isBuffer } from \"./isBuffer\";\nimport { isDate } from \"./isDate\";\nimport { isClassObject } from \"./isPlainObject\";\nimport { isPrimitiveOrPrimitiveClass } from \"./isPrimitive\";\nimport { isPromise } from \"./isPromise\";\nimport { isSymbol } from \"./isSymbol\";\nexport function isClass(target) {\n if (!target) {\n return false;\n }\n if (isArrowFn(target)) {\n return false;\n }\n return !(isSymbol(target) ||\n isPrimitiveOrPrimitiveClass(target) ||\n isClassObject(target) ||\n isDate(target) ||\n isPromise(target) ||\n isArrayOrArrayClass(target) ||\n isBuffer(target));\n}\n","import { classOf } from \"./classOf\";\nimport { isClass } from \"./isClass\";\nexport function getClassOrSymbol(target) {\n return isClass(target) ? classOf(target) : target;\n}\n","import { constructorOf } from \"./constructorOf\";\nexport function toStringConstructor(target) {\n const ctr = constructorOf(target);\n const strings = ctr.toString().split(\"\\n\");\n const ctrString = strings.find((s) => s.indexOf(\"constructor(\") > -1) || \"constructor()\";\n return `${ctrString.replace(\"{\", \"\").trim()}`;\n}\n","import { toStringConstructor } from \"./toStringConstructor\";\nexport function getConstructorArgNames(target) {\n return toStringConstructor(target)\n .split(\"constructor(\")[1]\n .split(\")\")[0]\n .split(\", \")\n .filter(Boolean)\n .map((s) => s.trim());\n}\n","import { inheritedDescriptorOf } from \"../decorators/inheritedDescriptorOf\";\nimport { classOf } from \"./classOf\";\n/**\n *\n * @param obj\n * @param key\n */\nexport function isEnumerable(obj, key) {\n const klass = classOf(obj);\n if (klass) {\n const descriptor = inheritedDescriptorOf(klass, key);\n if (descriptor) {\n return descriptor.enumerable;\n }\n }\n return Object.prototype.propertyIsEnumerable.call(obj, key);\n}\n","import { isEnumerable } from \"./isEnumerable\";\nimport { isProtectedKey } from \"./isProtectedKey\";\n/**\n * Return all enumerable keys of the given object\n * @param obj\n */\nexport function getEnumerableKeys(obj) {\n const keys = [];\n for (const key in obj) {\n if (!isProtectedKey(key) && isEnumerable(obj, key)) {\n keys.push(key);\n }\n }\n return keys;\n}\n","import { isFunction } from \"./isFunction\";\nimport { isObject } from \"./isObject\";\nimport { isString } from \"./isString\";\nconst mapOptions = (args) => {\n const [expression, scope, defaultValue, separator = \".\"] = args;\n if (isObject(scope) || isString(expression)) {\n return {\n expression,\n scope,\n defaultValue,\n separator\n };\n }\n return {\n expression: scope,\n scope: expression,\n defaultValue,\n separator\n };\n};\nexport function getValue(...args) {\n const options = mapOptions(args);\n let scope = options.scope;\n const { expression, defaultValue, separator } = options;\n if (!expression) {\n return scope;\n }\n if (!scope) {\n return defaultValue;\n }\n const keys = expression.split(separator);\n const getValue = (key) => {\n if (scope) {\n if (scope[key] !== undefined || (isObject(scope) && key in scope)) {\n return scope[key];\n }\n if (isFunction(scope.get)) {\n return scope.get(key);\n }\n }\n };\n while ((scope = getValue(keys.shift())) && keys.length) { }\n return scope === undefined ? defaultValue : scope;\n}\n","import { isArrayOrArrayClass } from \"./isArray\";\n/**\n * Return true if the target.\n * @param target\n * @returns {boolean}\n */\nexport function isCollection(target) {\n return (isArrayOrArrayClass(target) ||\n target === Map ||\n target instanceof Map ||\n target === Set ||\n target instanceof Set ||\n target === WeakMap ||\n target instanceof WeakMap ||\n target === WeakSet ||\n target instanceof WeakSet);\n}\n","import { isNil } from \"./isNil\";\n/**\n * Return true if the value is an empty string, null or undefined.\n * @param value\n * @returns {boolean}\n */\nexport function isEmpty(value) {\n return value === \"\" || isNil(value);\n}\n","import { classOf } from \"./classOf\";\nimport { ancestorOf } from \"./ancestorOf\";\nimport { nameOf } from \"./nameOf\";\nexport function isInheritedFrom(target, from, deep = 5) {\n if (!target || !from) {\n return false;\n }\n target = classOf(target);\n from = classOf(from);\n while (nameOf(target) !== \"\") {\n if (!deep) {\n return false;\n }\n if (target === from) {\n return true;\n }\n target = ancestorOf(target);\n deep--;\n }\n return false;\n}\n","import { isStream } from \"./isStream\";\nimport { isBoolean } from \"./isBoolean\";\nimport { isNumber } from \"./isNumber\";\nimport { isString } from \"./isString\";\nimport { isNil } from \"./isNil\";\nexport function isSerializable(data) {\n return !(Buffer.isBuffer(data) || isStream(data) || isBoolean(data) || isNumber(data) || isString(data) || isNil(data));\n}\n","import { isBooleanOrBooleanClass } from \"./isBoolean\";\nimport { isNumberOrNumberClass } from \"./isNumber\";\nimport { isStringOrStringClass } from \"./isString\";\nexport function primitiveOf(target) {\n if (isStringOrStringClass(target)) {\n return \"string\";\n }\n if (isNumberOrNumberClass(target)) {\n return \"number\";\n }\n if (isBooleanOrBooleanClass(target)) {\n return \"boolean\";\n }\n return \"any\";\n}\n","import { isProtectedKey } from \"./isProtectedKey\";\nexport function setValue(scope, expression, value, separator = \".\") {\n const keys = expression.split(separator);\n const setValue = (key, add) => {\n if (isProtectedKey(key)) {\n return false;\n }\n if (add) {\n if (typeof scope.set === \"function\") {\n scope.set(key, value);\n }\n else {\n scope[key] = value;\n }\n return false;\n }\n if (typeof scope.set === \"function\") {\n if (!scope.has(key)) {\n scope.set(key, {});\n }\n scope = scope.get(key);\n }\n else {\n scope = scope[key] = scope[key] || {};\n }\n return true;\n };\n while (setValue(keys.shift(), !keys.length)) { }\n}\n","import { isArray } from \"./isArray\";\nimport { isString } from \"./isString\";\nfunction createIdentityFn(keyOrFn) {\n if (!keyOrFn) {\n return (v, k) => String(k);\n }\n if (isString(keyOrFn)) {\n return (item) => {\n return item[keyOrFn];\n };\n }\n return keyOrFn;\n}\nexport function toMap(input, keyOrFn) {\n if (isArray(input)) {\n const identity = createIdentityFn(keyOrFn || \"id\");\n return input.reduce((map, value, index) => {\n const ids = [].concat(identity(value, index));\n ids.forEach((id) => {\n const item = map.get(id);\n value = item?.merge?.(value) || value;\n map.set(id, value);\n });\n return map;\n }, new Map());\n }\n const identity = createIdentityFn(keyOrFn);\n return Object.entries(input).reduce((map, [key, value]) => {\n return map.set(identity(value, key), value);\n }, new Map());\n}\n"],"names":["root","factory","exports","module","define","amd","self","Reflect","g","this","Function","exporter","makeExporter","target","previous","key","value","Object","defineProperty","configurable","writable","hasOwn","prototype","hasOwnProperty","supportsSymbol","Symbol","toPrimitiveSymbol","toPrimitive","iteratorSymbol","iterator","supportsCreate","create","supportsProto","__proto__","Array","downLevel","HashMap","MakeDictionary","has","map","call","get","undefined","functionPrototype","getPrototypeOf","usePolyfill","process","env","_Map","Map","entries","cacheSentinel","arraySentinel","MapIterator","keys","values","selector","_index","_keys","_values","_selector","next","index","length","result","done","throw","error","return","_cacheKey","_cacheIndex","enumerable","_find","set","delete","size","i","clear","getKey","getValue","getEntry","insert","indexOf","push","_","CreateMapPolyfill","_Set","Set","_map","add","Metadata","WeakMap","rootKey","CreateUniqueKey","_key","table","GetOrCreateWeakMapTable","CreateUUID","FillRandomBytes","buffer","Math","random","data","Uint8Array","crypto","getRandomValues","msCrypto","offset","byte","toString","toLowerCase","CreateWeakMapPolyfill","GetOrCreateMetadataMap","O","P","Create","targetMetadata","IsUndefined","metadataMap","OrdinaryHasMetadata","MetadataKey","OrdinaryHasOwnMetadata","parent","OrdinaryGetPrototypeOf","IsNull","OrdinaryGetMetadata","OrdinaryGetOwnMetadata","OrdinaryDefineOwnMetadata","MetadataValue","OrdinaryMetadataKeys","ownKeys","OrdinaryOwnMetadataKeys","parentKeys","_i","ownKeys_1","_a","parentKeys_1","obj","method","GetMethod","IsCallable","TypeError","IsObject","GetIterator","k","IteratorStep","nextValue","e","IteratorClose","Type","x","ToPrimitive","input","PreferredType","hint","exoticToPrim","toString_1","valueOf","toString_2","OrdinaryToPrimitive","ToPropertyKey","argument","ToString","IsArray","isArray","IsConstructor","V","func","f","proto","prototypeProto","constructor","__","decorators","propertyKey","attributes","decorated","decorator","DecorateConstructor","descriptor","DecorateProperty","metadataKey","metadataValue","IsPropertyKey","ctor","superCtor","super_","TempCtor","arg","copy","fill","readUInt8","formatRegExp","format","isString","objects","arguments","inspect","join","args","len","str","String","replace","Number","JSON","stringify","isNull","isObject","deprecate","fn","msg","isUndefined","apply","noDeprecation","warned","throwDeprecation","Error","traceDeprecation","console","trace","debugEnviron","debugs","opts","ctx","seen","stylize","stylizeNoColor","depth","colors","isBoolean","showHidden","_extend","customInspect","stylizeWithColor","formatValue","styleType","style","styles","recurseTimes","isFunction","ret","primitive","simple","isNumber","formatPrimitive","visibleKeys","array","hash","forEach","val","idx","arrayToHash","getOwnPropertyNames","isError","formatError","name","isRegExp","RegExp","isDate","Date","output","base","braces","toUTCString","l","formatProperty","match","formatArray","pop","reduce","prev","cur","reduceToSingleString","desc","getOwnPropertyDescriptor","split","line","substr","ar","re","objectToString","d","o","pad","n","debuglog","NODE_DEBUG","toUpperCase","test","pid","isNullOrUndefined","isSymbol","isPrimitive","isBuffer","months","timestamp","time","getHours","getMinutes","getSeconds","getDate","getMonth","prop","log","inherits","origin","webpackEmptyAsyncContext","req","Promise","resolve","then","code","id","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","definition","globalThis","window","r","toStringTag","descriptorOf","isMethodDescriptor","Configurable","DecoratorTypes","Deprecated","message","targetKey","originalMethod","Enumerable","NotConfigurable","NotEnumerable","Writable","Readonly","getClass","classOf","decoratorTypeOf","staticType","type","CLASS","isArrayOrArrayClass","isNaN","isNil","Boolean","isBooleanOrBooleanClass","isNumberOrNumberClass","isStringOrStringClass","isPrimitiveOrPrimitiveClass","isPrimitiveClass","includes","isSymbolOrSymbolClass","Buffer","deepClone","source","stack","dest","isBasicType","alloc","stacked","setPrototypeOf","createInstance","isProtectedKey","objectKeys","filter","mergeReducerBuilder","cb","collection","options","findIndex","item","deepMerge","defaultReducer","a","b","shouldReturnSource","shouldReturnObj","reducer","reducers","parentKey","getReducer","concat","out","cleanUndefinedProps","nameOfClass","targetClass","nameOfSymbol","sym","nameOf","DESIGN_PARAM_TYPES","DESIGN_TYPE","DESIGN_RETURN_TYPE","PROPERTIES","static","getMetadata","getOwnMetadata","hasMetadata","er","hasOwnMetadata","deleteMetadata","targets","classConstructor","defineMetadata","targetPrototype","CLASS_STORE","METHOD_STORE","PROPERTY_STORE","PARAM_STORE","stores","storeGet","Store","registry","getOwn","_entries","PARAM_CTOR","PARAM_STC","PARAM","store","PROP","PROP_STC","METHOD","METHOD_STC","defineStore","from","merge","mergeStoreFrom","defaultValue","metadata","inverse","_value_","toJson","StoreFn","parameters","StoreMerge","StoreSet","isObservable","lift","subscribe","isPromise","isStream","pipe","isResponse","AnyToPromiseStatus","AnyToPromiseResponseTypes","Env","AnyToPromise","status","PENDING","hasNextFunction","reject","isDone","DATA","handle","REJECTED","response","RESOLVED","state","destroy","cancel","CANCELED","additionalProps","isCanceledResponse","toPromise","headers","STREAM","BUFFER","catch","EnvTypes","Hooks","on","event","off","emit","callThis","listeners","alter","async","promises","all","UnsupportedDecoratorType","super","buildMessage","bindingType","shortBinding","param","path","catchError","catchAsyncError","uniq","list","uniqBy","proxyDelegation","handlers","remove","getter","setter","itsOwnProp","p","Proxy","receiver","deleteProperty","ancestorOf","getInheritedClass","ancestorsOf","classes","currentTarget","unshift","prototypeOf","methodsOf","methods","decorateMethodsOf","klass","mergeStoreMethodFrom","newDescriptor","decoratorArgs","inheritedDescriptorOf","useDecorators","useMethodDecorator","useMethodDecorators","getHostInfoFromPort","protocol","addressPort","address","port","importPackage","packageName","loaderFn","optional","cleanObject","ignore","getConstructor","constructorOf","isArrowFn","isClassObject","isPlainObject","isClass","getClassOrSymbol","toStringConstructor","find","s","trim","getConstructorArgNames","isEnumerable","propertyIsEnumerable","getEnumerableKeys","expression","scope","separator","mapOptions","shift","isCollection","WeakSet","isEmpty","isInheritedFrom","deep","isSerializable","primitiveOf","setValue","createIdentityFn","keyOrFn","v","toMap","identity"],"sourceRoot":""}
1
+ {"version":3,"file":"core.umd.min.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAc,KAAID,IAElBD,EAAW,KAAIC,GAChB,CATD,CASGK,MAAM,+BCKT,IAAIC,GACJ,SAAWA,IAGP,SAAWN,GACP,IAAID,EAAyB,iBAAX,EAAAQ,EAAsB,EAAAA,EACpB,iBAATF,KAAoBA,KACP,iBAATG,KAAoBA,KACvBC,SAAS,eA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,KACX,CCbO,SAAS4iB,GAASnB,EAAOD,EAAYrhB,EAAOuhB,EAAY,KAC3D,MAAMjf,EAAO+e,EAAWjR,MAAMmR,GAyB9B,KAxBkBxhB,EAwBFuC,EAAKmf,QAxBEhd,GAwBQnC,EAAKS,QAvB5B6S,EAAe7V,KAGf0E,GACyB,mBAAd6c,EAAM7d,IACb6d,EAAM7d,IAAI1D,EAAKC,GAGfshB,EAAMvhB,GAAOC,EAEV,IAEc,mBAAdshB,EAAM7d,KACR6d,EAAMhgB,IAAIvB,IACXuhB,EAAM7d,IAAI1D,EAAK,CAAC,GAEpBuhB,EAAQA,EAAM7f,IAAI1B,IAGlBuhB,EAAQA,EAAMvhB,GAAOuhB,EAAMvhB,IAAQ,CAAC,EAEjC,MAtBM,IAACA,EAAK0E,CAyB3B,CC1BA,SAASie,GAAiBC,GACtB,OAAKA,EAGDzX,EAASyX,GACDvM,GACGA,EAAKuM,GAGbA,EAPI,CAACC,EAAG5a,IAAM0D,OAAO1D,EAQhC,CACO,SAAS6a,GAAMra,EAAOma,GACzB,GAAIvZ,EAAQZ,GAAQ,CAChB,MAAMsa,EAAWJ,GAAiBC,GAAW,MAC7C,OAAOna,EAAMsH,QAAO,CAACvO,EAAKvB,EAAO8C,KACjB,GAAGiU,OAAO+L,EAAS9iB,EAAO8C,IAClC2L,SAASgE,IACT,MAAM2D,EAAO7U,EAAIE,IAAIgR,GACrBzS,EAAQoW,GAAMsD,QAAQ1Z,IAAUA,EAChCuB,EAAIkC,IAAIgP,EAAIzS,EAAM,IAEfuB,IACR,IAAIU,IACX,CACA,MAAM6gB,EAAWJ,GAAiBC,GAClC,OAAO1iB,OAAOiC,QAAQsG,GAAOsH,QAAO,CAACvO,GAAMxB,EAAKC,KACrCuB,EAAIkC,IAAIqf,EAAS9iB,EAAOD,GAAMC,IACtC,IAAIiC,IACX","sources":["webpack://core/webpack/universalModuleDefinition","webpack://core/../../node_modules/reflect-metadata/Reflect.js","webpack://core/../../node_modules/util/node_modules/inherits/inherits_browser.js","webpack://core/../../node_modules/util/support/isBufferBrowser.js","webpack://core/../../node_modules/util/util.js","webpack://core/./src/utils/imports/ lazy namespace object","webpack://core/webpack/bootstrap","webpack://core/webpack/runtime/define property getters","webpack://core/webpack/runtime/global","webpack://core/webpack/runtime/hasOwnProperty shorthand","webpack://core/webpack/runtime/make namespace object","webpack://core/./src/utils/objects/descriptorOf.ts","webpack://core/./src/decorators/configurable.ts","webpack://core/./src/domain/DecoratorTypes.ts","webpack://core/./src/decorators/deprecated.ts","webpack://core/./src/decorators/enumerable.ts","webpack://core/./src/decorators/notConfigurable.ts","webpack://core/./src/decorators/notEnumerable.ts","webpack://core/./src/decorators/writable.ts","webpack://core/./src/decorators/readOnly.ts","webpack://core/./src/utils/objects/classOf.ts","webpack://core/./src/utils/decorators/decoratorTypeOf.ts","webpack://core/./src/utils/objects/isArray.ts","webpack://core/./src/utils/objects/isDate.ts","webpack://core/./src/utils/objects/isFunction.ts","webpack://core/./src/utils/objects/isNil.ts","webpack://core/./src/utils/objects/isBoolean.ts","webpack://core/./src/utils/objects/isNumber.ts","webpack://core/./src/utils/objects/isString.ts","webpack://core/./src/utils/objects/isPrimitive.ts","webpack://core/./src/utils/objects/isSymbol.ts","webpack://core/./src/utils/objects/isBuffer.ts","webpack://core/./src/utils/objects/isRegExp.ts","webpack://core/./src/utils/objects/deepClone.ts","webpack://core/./src/utils/objects/createInstance.ts","webpack://core/./src/utils/objects/isProtectedKey.ts","webpack://core/./src/utils/objects/objectKeys.ts","webpack://core/./src/utils/objects/deepMerge.ts","webpack://core/./src/utils/objects/nameOf.ts","webpack://core/./src/domain/Metadata.ts","webpack://core/./src/domain/Store.ts","webpack://core/./src/decorators/storeFn.ts","webpack://core/./src/decorators/storeMerge.ts","webpack://core/./src/decorators/storeSet.ts","webpack://core/./src/utils/objects/isObject.ts","webpack://core/./src/utils/objects/isObservable.ts","webpack://core/./src/utils/objects/isPromise.ts","webpack://core/./src/utils/objects/isStream.ts","webpack://core/./src/domain/AnyToPromise.ts","webpack://core/./src/domain/Env.ts","webpack://core/./src/domain/Hooks.ts","webpack://core/./src/domain/Type.ts","webpack://core/./src/errors/UnsupportedDecoratorType.ts","webpack://core/./src/utils/catchError.ts","webpack://core/./src/utils/getRandomId.ts","webpack://core/./src/utils/uniq.ts","webpack://core/./src/utils/proxyDelegation.ts","webpack://core/./src/utils/objects/ancestorOf.ts","webpack://core/./src/utils/objects/ancestorsOf.ts","webpack://core/./src/utils/objects/prototypeOf.ts","webpack://core/./src/utils/objects/methodsOf.ts","webpack://core/./src/utils/decorators/decorateMethodsOf.ts","webpack://core/./src/utils/decorators/decoratorArgs.ts","webpack://core/./src/utils/decorators/inheritedDescriptorOf.ts","webpack://core/./src/utils/decorators/useDecorators.ts","webpack://core/./src/utils/decorators/useMethodDecorators.ts","webpack://core/./src/utils/http/getHostInfoFromPort.ts","webpack://core/./src/utils/imports/importPackage.ts","webpack://core/./src/utils/objects/cleanObject.ts","webpack://core/./src/utils/objects/constructorOf.ts","webpack://core/./src/utils/objects/isArrowFn.ts","webpack://core/./src/utils/objects/isPlainObject.ts","webpack://core/./src/utils/objects/isClass.ts","webpack://core/./src/utils/objects/getClassOrSymbol.ts","webpack://core/./src/utils/objects/toStringConstructor.ts","webpack://core/./src/utils/objects/getConstructorArgNames.ts","webpack://core/./src/utils/objects/isEnumerable.ts","webpack://core/./src/utils/objects/getEnumerableKeys.ts","webpack://core/./src/utils/objects/getValue.ts","webpack://core/./src/utils/objects/hasJsonMethod.ts","webpack://core/./src/utils/objects/isCollection.ts","webpack://core/./src/utils/objects/isEmpty.ts","webpack://core/./src/utils/objects/isInheritedFrom.ts","webpack://core/./src/utils/objects/isMomentObject.ts","webpack://core/./src/utils/objects/isMongooseObject.ts","webpack://core/./src/utils/objects/isSerializable.ts","webpack://core/./src/utils/objects/primitiveOf.ts","webpack://core/./src/utils/objects/setValue.ts","webpack://core/./src/utils/objects/toMap.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"core\"] = factory();\n\telse\n\t\troot[\"core\"] = factory();\n})(self, () => {\nreturn ","/*! *****************************************************************************\nCopyright (C) Microsoft. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\nvar Reflect;\n(function (Reflect) {\n // Metadata Proposal\n // https://rbuckton.github.io/reflect-metadata/\n (function (factory) {\n var root = typeof global === \"object\" ? global :\n typeof self === \"object\" ? self :\n typeof this === \"object\" ? this :\n Function(\"return this;\")();\n var exporter = makeExporter(Reflect);\n if (typeof root.Reflect === \"undefined\") {\n root.Reflect = Reflect;\n }\n else {\n exporter = makeExporter(root.Reflect, exporter);\n }\n factory(exporter);\n function makeExporter(target, previous) {\n return function (key, value) {\n if (typeof target[key] !== \"function\") {\n Object.defineProperty(target, key, { configurable: true, writable: true, value: value });\n }\n if (previous)\n previous(key, value);\n };\n }\n })(function (exporter) {\n var hasOwn = Object.prototype.hasOwnProperty;\n // feature test for Symbol support\n var supportsSymbol = typeof Symbol === \"function\";\n var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== \"undefined\" ? Symbol.toPrimitive : \"@@toPrimitive\";\n var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== \"undefined\" ? Symbol.iterator : \"@@iterator\";\n var supportsCreate = typeof Object.create === \"function\"; // feature test for Object.create support\n var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support\n var downLevel = !supportsCreate && !supportsProto;\n var HashMap = {\n // create an object in dictionary mode (a.k.a. \"slow\" mode in v8)\n create: supportsCreate\n ? function () { return MakeDictionary(Object.create(null)); }\n : supportsProto\n ? function () { return MakeDictionary({ __proto__: null }); }\n : function () { return MakeDictionary({}); },\n has: downLevel\n ? function (map, key) { return hasOwn.call(map, key); }\n : function (map, key) { return key in map; },\n get: downLevel\n ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }\n : function (map, key) { return map[key]; },\n };\n // Load global or shim versions of Map, Set, and WeakMap\n var functionPrototype = Object.getPrototypeOf(Function);\n var usePolyfill = typeof process === \"object\" && process.env && process.env[\"REFLECT_METADATA_USE_MAP_POLYFILL\"] === \"true\";\n var _Map = !usePolyfill && typeof Map === \"function\" && typeof Map.prototype.entries === \"function\" ? Map : CreateMapPolyfill();\n var _Set = !usePolyfill && typeof Set === \"function\" && typeof Set.prototype.entries === \"function\" ? Set : CreateSetPolyfill();\n var _WeakMap = !usePolyfill && typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\n // [[Metadata]] internal slot\n // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots\n var Metadata = new _WeakMap();\n /**\n * Applies a set of decorators to a property of a target object.\n * @param decorators An array of decorators.\n * @param target The target object.\n * @param propertyKey (Optional) The property key to decorate.\n * @param attributes (Optional) The property descriptor for the target key.\n * @remarks Decorators are applied in reverse order.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Example = Reflect.decorate(decoratorsArray, Example);\n *\n * // property (on constructor)\n * Reflect.decorate(decoratorsArray, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.decorate(decoratorsArray, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Object.defineProperty(Example, \"staticMethod\",\n * Reflect.decorate(decoratorsArray, Example, \"staticMethod\",\n * Object.getOwnPropertyDescriptor(Example, \"staticMethod\")));\n *\n * // method (on prototype)\n * Object.defineProperty(Example.prototype, \"method\",\n * Reflect.decorate(decoratorsArray, Example.prototype, \"method\",\n * Object.getOwnPropertyDescriptor(Example.prototype, \"method\")));\n *\n */\n function decorate(decorators, target, propertyKey, attributes) {\n if (!IsUndefined(propertyKey)) {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsObject(target))\n throw new TypeError();\n if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))\n throw new TypeError();\n if (IsNull(attributes))\n attributes = undefined;\n propertyKey = ToPropertyKey(propertyKey);\n return DecorateProperty(decorators, target, propertyKey, attributes);\n }\n else {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsConstructor(target))\n throw new TypeError();\n return DecorateConstructor(decorators, target);\n }\n }\n exporter(\"decorate\", decorate);\n // 4.1.2 Reflect.metadata(metadataKey, metadataValue)\n // https://rbuckton.github.io/reflect-metadata/#reflect.metadata\n /**\n * A default metadata decorator factory that can be used on a class, class member, or parameter.\n * @param metadataKey The key for the metadata entry.\n * @param metadataValue The value for the metadata entry.\n * @returns A decorator function.\n * @remarks\n * If `metadataKey` is already defined for the target and target key, the\n * metadataValue for that key will be overwritten.\n * @example\n *\n * // constructor\n * @Reflect.metadata(key, value)\n * class Example {\n * }\n *\n * // property (on constructor, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticProperty;\n * }\n *\n * // property (on prototype, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * property;\n * }\n *\n * // method (on constructor)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticMethod() { }\n * }\n *\n * // method (on prototype)\n * class Example {\n * @Reflect.metadata(key, value)\n * method() { }\n * }\n *\n */\n function metadata(metadataKey, metadataValue) {\n function decorator(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))\n throw new TypeError();\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n return decorator;\n }\n exporter(\"metadata\", metadata);\n /**\n * Define a unique metadata entry on the target.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param metadataValue A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey (Optional) The property key for the target.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): Decorator {\n * return (target, key?) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n *\n */\n function defineMetadata(metadataKey, metadataValue, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n exporter(\"defineMetadata\", defineMetadata);\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasMetadata\", hasMetadata);\n /**\n * Gets a value indicating whether the target object has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasOwnMetadata\", hasOwnMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getMetadata\", getMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getOwnMetadata\", getOwnMetadata);\n /**\n * Gets the metadata keys defined on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryMetadataKeys(target, propertyKey);\n }\n exporter(\"getMetadataKeys\", getMetadataKeys);\n /**\n * Gets the unique metadata keys defined on the target object.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getOwnMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryOwnMetadataKeys(target, propertyKey);\n }\n exporter(\"getOwnMetadataKeys\", getOwnMetadataKeys);\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function deleteMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n var metadataMap = GetOrCreateMetadataMap(target, propertyKey, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n if (!metadataMap.delete(metadataKey))\n return false;\n if (metadataMap.size > 0)\n return true;\n var targetMetadata = Metadata.get(target);\n targetMetadata.delete(propertyKey);\n if (targetMetadata.size > 0)\n return true;\n Metadata.delete(target);\n return true;\n }\n exporter(\"deleteMetadata\", deleteMetadata);\n function DecorateConstructor(decorators, target) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsConstructor(decorated))\n throw new TypeError();\n target = decorated;\n }\n }\n return target;\n }\n function DecorateProperty(decorators, target, propertyKey, descriptor) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target, propertyKey, descriptor);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsObject(decorated))\n throw new TypeError();\n descriptor = decorated;\n }\n }\n return descriptor;\n }\n function GetOrCreateMetadataMap(O, P, Create) {\n var targetMetadata = Metadata.get(O);\n if (IsUndefined(targetMetadata)) {\n if (!Create)\n return undefined;\n targetMetadata = new _Map();\n Metadata.set(O, targetMetadata);\n }\n var metadataMap = targetMetadata.get(P);\n if (IsUndefined(metadataMap)) {\n if (!Create)\n return undefined;\n metadataMap = new _Map();\n targetMetadata.set(P, metadataMap);\n }\n return metadataMap;\n }\n // 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata\n function OrdinaryHasMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return true;\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryHasMetadata(MetadataKey, parent, P);\n return false;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n return ToBoolean(metadataMap.has(MetadataKey));\n }\n // 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata\n function OrdinaryGetMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryGetMetadata(MetadataKey, parent, P);\n return undefined;\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true);\n metadataMap.set(MetadataKey, MetadataValue);\n }\n // 3.1.6.1 OrdinaryMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys\n function OrdinaryMetadataKeys(O, P) {\n var ownKeys = OrdinaryOwnMetadataKeys(O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (parent === null)\n return ownKeys;\n var parentKeys = OrdinaryMetadataKeys(parent, P);\n if (parentKeys.length <= 0)\n return ownKeys;\n if (ownKeys.length <= 0)\n return parentKeys;\n var set = new _Set();\n var keys = [];\n for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {\n var key = ownKeys_1[_i];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {\n var key = parentKeys_1[_a];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n return keys;\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var keys = [];\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return keys;\n var keysObj = metadataMap.keys();\n var iterator = GetIterator(keysObj);\n var k = 0;\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n keys.length = k;\n return keys;\n }\n var nextValue = IteratorValue(next);\n try {\n keys[k] = nextValue;\n }\n catch (e) {\n try {\n IteratorClose(iterator);\n }\n finally {\n throw e;\n }\n }\n k++;\n }\n }\n // 6 ECMAScript Data Typ0es and Values\n // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values\n function Type(x) {\n if (x === null)\n return 1 /* Null */;\n switch (typeof x) {\n case \"undefined\": return 0 /* Undefined */;\n case \"boolean\": return 2 /* Boolean */;\n case \"string\": return 3 /* String */;\n case \"symbol\": return 4 /* Symbol */;\n case \"number\": return 5 /* Number */;\n case \"object\": return x === null ? 1 /* Null */ : 6 /* Object */;\n default: return 6 /* Object */;\n }\n }\n // 6.1.1 The Undefined Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type\n function IsUndefined(x) {\n return x === undefined;\n }\n // 6.1.2 The Null Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type\n function IsNull(x) {\n return x === null;\n }\n // 6.1.5 The Symbol Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type\n function IsSymbol(x) {\n return typeof x === \"symbol\";\n }\n // 6.1.7 The Object Type\n // https://tc39.github.io/ecma262/#sec-object-type\n function IsObject(x) {\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\n }\n // 7.1 Type Conversion\n // https://tc39.github.io/ecma262/#sec-type-conversion\n // 7.1.1 ToPrimitive(input [, PreferredType])\n // https://tc39.github.io/ecma262/#sec-toprimitive\n function ToPrimitive(input, PreferredType) {\n switch (Type(input)) {\n case 0 /* Undefined */: return input;\n case 1 /* Null */: return input;\n case 2 /* Boolean */: return input;\n case 3 /* String */: return input;\n case 4 /* Symbol */: return input;\n case 5 /* Number */: return input;\n }\n var hint = PreferredType === 3 /* String */ ? \"string\" : PreferredType === 5 /* Number */ ? \"number\" : \"default\";\n var exoticToPrim = GetMethod(input, toPrimitiveSymbol);\n if (exoticToPrim !== undefined) {\n var result = exoticToPrim.call(input, hint);\n if (IsObject(result))\n throw new TypeError();\n return result;\n }\n return OrdinaryToPrimitive(input, hint === \"default\" ? \"number\" : hint);\n }\n // 7.1.1.1 OrdinaryToPrimitive(O, hint)\n // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive\n function OrdinaryToPrimitive(O, hint) {\n if (hint === \"string\") {\n var toString_1 = O.toString;\n if (IsCallable(toString_1)) {\n var result = toString_1.call(O);\n if (!IsObject(result))\n return result;\n }\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n else {\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n var toString_2 = O.toString;\n if (IsCallable(toString_2)) {\n var result = toString_2.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n throw new TypeError();\n }\n // 7.1.2 ToBoolean(argument)\n // https://tc39.github.io/ecma262/2016/#sec-toboolean\n function ToBoolean(argument) {\n return !!argument;\n }\n // 7.1.12 ToString(argument)\n // https://tc39.github.io/ecma262/#sec-tostring\n function ToString(argument) {\n return \"\" + argument;\n }\n // 7.1.14 ToPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-topropertykey\n function ToPropertyKey(argument) {\n var key = ToPrimitive(argument, 3 /* String */);\n if (IsSymbol(key))\n return key;\n return ToString(key);\n }\n // 7.2 Testing and Comparison Operations\n // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations\n // 7.2.2 IsArray(argument)\n // https://tc39.github.io/ecma262/#sec-isarray\n function IsArray(argument) {\n return Array.isArray\n ? Array.isArray(argument)\n : argument instanceof Object\n ? argument instanceof Array\n : Object.prototype.toString.call(argument) === \"[object Array]\";\n }\n // 7.2.3 IsCallable(argument)\n // https://tc39.github.io/ecma262/#sec-iscallable\n function IsCallable(argument) {\n // NOTE: This is an approximation as we cannot check for [[Call]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.4 IsConstructor(argument)\n // https://tc39.github.io/ecma262/#sec-isconstructor\n function IsConstructor(argument) {\n // NOTE: This is an approximation as we cannot check for [[Construct]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.7 IsPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-ispropertykey\n function IsPropertyKey(argument) {\n switch (Type(argument)) {\n case 3 /* String */: return true;\n case 4 /* Symbol */: return true;\n default: return false;\n }\n }\n // 7.3 Operations on Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-objects\n // 7.3.9 GetMethod(V, P)\n // https://tc39.github.io/ecma262/#sec-getmethod\n function GetMethod(V, P) {\n var func = V[P];\n if (func === undefined || func === null)\n return undefined;\n if (!IsCallable(func))\n throw new TypeError();\n return func;\n }\n // 7.4 Operations on Iterator Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects\n function GetIterator(obj) {\n var method = GetMethod(obj, iteratorSymbol);\n if (!IsCallable(method))\n throw new TypeError(); // from Call\n var iterator = method.call(obj);\n if (!IsObject(iterator))\n throw new TypeError();\n return iterator;\n }\n // 7.4.4 IteratorValue(iterResult)\n // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue\n function IteratorValue(iterResult) {\n return iterResult.value;\n }\n // 7.4.5 IteratorStep(iterator)\n // https://tc39.github.io/ecma262/#sec-iteratorstep\n function IteratorStep(iterator) {\n var result = iterator.next();\n return result.done ? false : result;\n }\n // 7.4.6 IteratorClose(iterator, completion)\n // https://tc39.github.io/ecma262/#sec-iteratorclose\n function IteratorClose(iterator) {\n var f = iterator[\"return\"];\n if (f)\n f.call(iterator);\n }\n // 9.1 Ordinary Object Internal Methods and Internal Slots\n // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots\n // 9.1.1.1 OrdinaryGetPrototypeOf(O)\n // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof\n function OrdinaryGetPrototypeOf(O) {\n var proto = Object.getPrototypeOf(O);\n if (typeof O !== \"function\" || O === functionPrototype)\n return proto;\n // TypeScript doesn't set __proto__ in ES5, as it's non-standard.\n // Try to determine the superclass constructor. Compatible implementations\n // must either set __proto__ on a subclass constructor to the superclass constructor,\n // or ensure each class has a valid `constructor` property on its prototype that\n // points back to the constructor.\n // If this is not the same as Function.[[Prototype]], then this is definately inherited.\n // This is the case when in ES6 or when using __proto__ in a compatible browser.\n if (proto !== functionPrototype)\n return proto;\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\n var prototype = O.prototype;\n var prototypeProto = prototype && Object.getPrototypeOf(prototype);\n if (prototypeProto == null || prototypeProto === Object.prototype)\n return proto;\n // If the constructor was not a function, then we cannot determine the heritage.\n var constructor = prototypeProto.constructor;\n if (typeof constructor !== \"function\")\n return proto;\n // If we have some kind of self-reference, then we cannot determine the heritage.\n if (constructor === O)\n return proto;\n // we have a pretty good guess at the heritage.\n return constructor;\n }\n // naive Map shim\n function CreateMapPolyfill() {\n var cacheSentinel = {};\n var arraySentinel = [];\n var MapIterator = /** @class */ (function () {\n function MapIterator(keys, values, selector) {\n this._index = 0;\n this._keys = keys;\n this._values = values;\n this._selector = selector;\n }\n MapIterator.prototype[\"@@iterator\"] = function () { return this; };\n MapIterator.prototype[iteratorSymbol] = function () { return this; };\n MapIterator.prototype.next = function () {\n var index = this._index;\n if (index >= 0 && index < this._keys.length) {\n var result = this._selector(this._keys[index], this._values[index]);\n if (index + 1 >= this._keys.length) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n else {\n this._index++;\n }\n return { value: result, done: false };\n }\n return { value: undefined, done: true };\n };\n MapIterator.prototype.throw = function (error) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n throw error;\n };\n MapIterator.prototype.return = function (value) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n return { value: value, done: true };\n };\n return MapIterator;\n }());\n return /** @class */ (function () {\n function Map() {\n this._keys = [];\n this._values = [];\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n Object.defineProperty(Map.prototype, \"size\", {\n get: function () { return this._keys.length; },\n enumerable: true,\n configurable: true\n });\n Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };\n Map.prototype.get = function (key) {\n var index = this._find(key, /*insert*/ false);\n return index >= 0 ? this._values[index] : undefined;\n };\n Map.prototype.set = function (key, value) {\n var index = this._find(key, /*insert*/ true);\n this._values[index] = value;\n return this;\n };\n Map.prototype.delete = function (key) {\n var index = this._find(key, /*insert*/ false);\n if (index >= 0) {\n var size = this._keys.length;\n for (var i = index + 1; i < size; i++) {\n this._keys[i - 1] = this._keys[i];\n this._values[i - 1] = this._values[i];\n }\n this._keys.length--;\n this._values.length--;\n if (key === this._cacheKey) {\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n return true;\n }\n return false;\n };\n Map.prototype.clear = function () {\n this._keys.length = 0;\n this._values.length = 0;\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n };\n Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };\n Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };\n Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };\n Map.prototype[\"@@iterator\"] = function () { return this.entries(); };\n Map.prototype[iteratorSymbol] = function () { return this.entries(); };\n Map.prototype._find = function (key, insert) {\n if (this._cacheKey !== key) {\n this._cacheIndex = this._keys.indexOf(this._cacheKey = key);\n }\n if (this._cacheIndex < 0 && insert) {\n this._cacheIndex = this._keys.length;\n this._keys.push(key);\n this._values.push(undefined);\n }\n return this._cacheIndex;\n };\n return Map;\n }());\n function getKey(key, _) {\n return key;\n }\n function getValue(_, value) {\n return value;\n }\n function getEntry(key, value) {\n return [key, value];\n }\n }\n // naive Set shim\n function CreateSetPolyfill() {\n return /** @class */ (function () {\n function Set() {\n this._map = new _Map();\n }\n Object.defineProperty(Set.prototype, \"size\", {\n get: function () { return this._map.size; },\n enumerable: true,\n configurable: true\n });\n Set.prototype.has = function (value) { return this._map.has(value); };\n Set.prototype.add = function (value) { return this._map.set(value, value), this; };\n Set.prototype.delete = function (value) { return this._map.delete(value); };\n Set.prototype.clear = function () { this._map.clear(); };\n Set.prototype.keys = function () { return this._map.keys(); };\n Set.prototype.values = function () { return this._map.values(); };\n Set.prototype.entries = function () { return this._map.entries(); };\n Set.prototype[\"@@iterator\"] = function () { return this.keys(); };\n Set.prototype[iteratorSymbol] = function () { return this.keys(); };\n return Set;\n }());\n }\n // naive WeakMap shim\n function CreateWeakMapPolyfill() {\n var UUID_SIZE = 16;\n var keys = HashMap.create();\n var rootKey = CreateUniqueKey();\n return /** @class */ (function () {\n function WeakMap() {\n this._key = CreateUniqueKey();\n }\n WeakMap.prototype.has = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.has(table, this._key) : false;\n };\n WeakMap.prototype.get = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.get(table, this._key) : undefined;\n };\n WeakMap.prototype.set = function (target, value) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ true);\n table[this._key] = value;\n return this;\n };\n WeakMap.prototype.delete = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? delete table[this._key] : false;\n };\n WeakMap.prototype.clear = function () {\n // NOTE: not a real clear, just makes the previous data unreachable\n this._key = CreateUniqueKey();\n };\n return WeakMap;\n }());\n function CreateUniqueKey() {\n var key;\n do\n key = \"@@WeakMap@@\" + CreateUUID();\n while (HashMap.has(keys, key));\n keys[key] = true;\n return key;\n }\n function GetOrCreateWeakMapTable(target, create) {\n if (!hasOwn.call(target, rootKey)) {\n if (!create)\n return undefined;\n Object.defineProperty(target, rootKey, { value: HashMap.create() });\n }\n return target[rootKey];\n }\n function FillRandomBytes(buffer, size) {\n for (var i = 0; i < size; ++i)\n buffer[i] = Math.random() * 0xff | 0;\n return buffer;\n }\n function GenRandomBytes(size) {\n if (typeof Uint8Array === \"function\") {\n if (typeof crypto !== \"undefined\")\n return crypto.getRandomValues(new Uint8Array(size));\n if (typeof msCrypto !== \"undefined\")\n return msCrypto.getRandomValues(new Uint8Array(size));\n return FillRandomBytes(new Uint8Array(size), size);\n }\n return FillRandomBytes(new Array(size), size);\n }\n function CreateUUID() {\n var data = GenRandomBytes(UUID_SIZE);\n // mark as random - RFC 4122 § 4.4\n data[6] = data[6] & 0x4f | 0x40;\n data[8] = data[8] & 0xbf | 0x80;\n var result = \"\";\n for (var offset = 0; offset < UUID_SIZE; ++offset) {\n var byte = data[offset];\n if (offset === 4 || offset === 6 || offset === 8)\n result += \"-\";\n if (byte < 16)\n result += \"0\";\n result += byte.toString(16).toLowerCase();\n }\n return result;\n }\n }\n // uses a heuristic used by v8 and chakra to force an object into dictionary mode.\n function MakeDictionary(obj) {\n obj.__ = undefined;\n delete obj.__;\n return obj;\n }\n });\n})(Reflect || (Reflect = {}));\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n","module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n // Allow for deprecating things in the process of starting up.\n if (isUndefined(global.process)) {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n if (process.noDeprecation === true) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('./support/isBuffer');\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = require('inherits');\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n","function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(() => {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = () => ([]);\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 340;\nmodule.exports = webpackEmptyAsyncContext;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Return the descriptor for a given class and propertyKey\n * @param target\n * @param {string} propertyKey\n * @returns {PropertyDescriptor}\n */\nexport function descriptorOf(target, propertyKey) {\n return Object.getOwnPropertyDescriptor((target && target.prototype) || target, propertyKey);\n}\nexport function isMethodDescriptor(target, propertyKey) {\n return descriptorOf(target, propertyKey)?.value;\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf\";\nexport function Configurable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { writable: true, enumerable: true };\n descriptor.configurable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","export var DecoratorTypes;\n(function (DecoratorTypes) {\n DecoratorTypes[\"PARAM\"] = \"parameter\";\n DecoratorTypes[\"PARAM_CTOR\"] = \"parameter.constructor\";\n DecoratorTypes[\"PARAM_STC\"] = \"parameter.static\";\n DecoratorTypes[\"PROP\"] = \"property\";\n DecoratorTypes[\"PROP_STC\"] = \"property.static\";\n DecoratorTypes[\"METHOD\"] = \"method\";\n DecoratorTypes[\"METHOD_STC\"] = \"method.static\";\n DecoratorTypes[\"CLASS\"] = \"class\";\n})(DecoratorTypes || (DecoratorTypes = {}));\n","import { deprecate } from \"util\";\n/**\n * The `@Deprecated()` decorators wraps the given method in such a way that it is marked as deprecated.\n *\n * ```typescript\n * provide Foo {\n *\n * @Deprecated(\"Foo.method: Use Foo.method2 instead\")\n * public method() {\n *\n * }\n * ```\n *\n * When called, @Deprecated() will return a function that will emit a `DeprecationWarning` using the `process.on('warning')` event.\n * By default, this warning will be emitted and printed to `stderr` exactly once, the first time it is called. After the warning is emitted, the wrapped method is called.\n *\n * If either the `--no-deprecation` or `--no-warnings` command line flags are used, or if the `process.noDeprecation`\n * property is set to `true` prior to the first deprecation warning, the `@Deprecated()` decorators does nothing.\n *\n * If the `--trace-deprecation` or `--trace-warnings` command line flags are set, or the `process.traceDeprecation`\n * property is set to `true`, a warning and a stack trace are printed to stderr the first time the deprecated function is called.\n *\n * If the `--throw-deprecation` command line flag is set, or the `process.throwDeprecation` property is set to `true`,\n * then an exception will be thrown when the deprecated function is called.\n *\n * The `--throw-deprecation` command line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation`\n * and `process.traceDeprecation`.\n *\n * @param message\n * @returns {Function}\n * @decorator\n */\nexport function Deprecated(message) {\n return (target, targetKey, descriptor) => {\n const originalMethod = descriptor.value;\n descriptor.value = deprecate(originalMethod, message);\n return descriptor;\n };\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf\";\nexport function Enumerable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { writable: true, configurable: true };\n descriptor.enumerable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","import { Configurable } from \"./configurable\";\nexport function NotConfigurable() {\n return Configurable(false);\n}\n","import { Enumerable } from \"./enumerable\";\nexport function NotEnumerable() {\n return Enumerable(false);\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf\";\nexport function Writable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { configurable: true, enumerable: true };\n descriptor.writable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","import { Writable } from \"./writable\";\nexport function Readonly() {\n return Writable(false);\n}\n","/**\n * Get the provide constructor if target is an instance.\n * @param target\n * @returns {*}\n */\nexport function getClass(target) {\n return target.prototype ? target : target.constructor;\n}\n/**\n * Get the provide constructor if target is an instance.\n * @param target\n * @returns {*}\n * @alias getClass\n */\nexport function classOf(target) {\n return getClass(target);\n}\n","import { DecoratorTypes } from \"../../domain/DecoratorTypes\";\nimport { classOf } from \"../objects/classOf\";\nexport function decoratorTypeOf(args) {\n const [target, propertyKey, descriptor] = args;\n const staticType = (type) => {\n return target !== classOf(target) ? type : `${type}.static`;\n };\n if (typeof descriptor === \"number\") {\n return propertyKey ? staticType(\"parameter\") : \"parameter.constructor\";\n }\n if (descriptor && descriptor.value) {\n return staticType(\"method\");\n }\n if ((propertyKey && descriptor === undefined) || descriptor) {\n return staticType(\"property\");\n }\n return DecoratorTypes.CLASS;\n}\n","/**\n * Return true if value is an array\n * @param target\n * @returns {boolean}\n */\nexport function isArray(target) {\n return Array.isArray(target);\n}\n/**\n * Return true if the clazz is an array.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isArrayOrArrayClass(target) {\n return target === Array || isArray(target);\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isDate(target) {\n return target === Date || (target instanceof Date && !isNaN(+target));\n}\n","export function isFunction(target) {\n return typeof target === \"function\";\n}\n","export function isNil(value) {\n return value === undefined || value === null;\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isBoolean(target) {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\nexport function isBooleanOrBooleanClass(target) {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isNumber(target) {\n return typeof target === \"number\";\n}\nexport function isNumberOrNumberClass(target) {\n return typeof target === \"number\" || target instanceof Number || target === Number;\n}\n","/**\n * @param target\n * @returns {boolean}\n */\nexport function isString(target) {\n return typeof target === \"string\";\n}\nexport function isStringOrStringClass(target) {\n return typeof target === \"string\" || target instanceof String || target === String;\n}\n","import { isBoolean, isBooleanOrBooleanClass } from \"./isBoolean\";\nimport { isNumber, isNumberOrNumberClass } from \"./isNumber\";\nimport { isString, isStringOrStringClass } from \"./isString\";\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isPrimitiveOrPrimitiveClass(target) {\n return isStringOrStringClass(target) || isNumberOrNumberClass(target) || isBooleanOrBooleanClass(target);\n}\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n */\nexport function isPrimitive(target) {\n return isString(target) || isNumber(target) || isBoolean(target);\n}\nexport function isPrimitiveClass(target) {\n return [String, Number, Boolean].includes(target);\n}\n","/**\n *\n * @param target\n */\nexport function isSymbol(target) {\n return typeof target === \"symbol\";\n}\nexport function isSymbolOrSymbolClass(target) {\n return typeof target === \"symbol\" || target instanceof Symbol || target === Symbol;\n}\n","/**\n * Tests to see if the object is Buffer\n * @param target\n * @returns {boolean}\n */\nexport function isBuffer(target) {\n return !!(target && (target === Buffer || target instanceof Buffer));\n}\n","export function isRegExp(target) {\n return target instanceof RegExp;\n}\n","import { isArray } from \"./isArray\";\nimport { isDate } from \"./isDate\";\nimport { isFunction } from \"./isFunction\";\nimport { isNil } from \"./isNil\";\nimport { isPrimitive } from \"./isPrimitive\";\nimport { isSymbol } from \"./isSymbol\";\nimport { isBuffer } from \"./isBuffer\";\nimport { isRegExp } from \"./isRegExp\";\nconst isBasicType = (source) => isNil(source) || isPrimitive(source) || isSymbol(source) || isFunction(source);\n/**\n * Return a cloned value\n * @param source\n * @param stack\n */\nexport function deepClone(source, stack = new WeakMap()) {\n let dest;\n if (isBasicType(source)) {\n return source;\n }\n if (isBuffer(source)) {\n const copy = Buffer.alloc(source.length);\n source.copy(copy);\n return copy;\n }\n if (isDate(source)) {\n return new Date(source);\n }\n if (isRegExp(source)) {\n return new RegExp(source);\n }\n const stacked = stack.get(source);\n if (stacked) {\n // See issue #1619\n return stacked;\n }\n if (isArray(source)) {\n dest = [];\n }\n else {\n dest = {};\n stack.set(source, dest);\n }\n for (const key in source) {\n // Use getOwnPropertyDescriptor instead of source[key] to prevent from triggering setter/getter.\n const descriptor = Object.getOwnPropertyDescriptor(source, key);\n if (descriptor) {\n if (!isFunction(descriptor.value)) {\n dest[key] = deepClone(descriptor.value, stack);\n }\n else {\n Object.defineProperty(dest, key, descriptor);\n }\n }\n }\n if (!isArray(source)) {\n const prototype = Reflect.getPrototypeOf(source);\n Reflect.setPrototypeOf(dest, prototype);\n }\n return dest;\n}\n","import { classOf } from \"./classOf\";\nexport function createInstance(obj) {\n return obj ? (classOf(obj) !== Object ? Object.create(obj) : {}) : {};\n}\n","/**\n * Prevent prototype pollution vulnerability\n * @param key\n */\nexport function isProtectedKey(key) {\n return [\"__proto__\", \"constructor\", \"prototype\"].includes(key);\n}\n","import { isProtectedKey } from \"./isProtectedKey\";\nexport function objectKeys(obj) {\n return Object.keys(obj).filter((key) => !isProtectedKey(key));\n}\n","import { createInstance } from \"./createInstance\";\nimport { isFunction } from \"./isFunction\";\nimport { isPrimitive } from \"./isPrimitive\";\nimport { isSymbol } from \"./isSymbol\";\nimport { objectKeys } from \"./objectKeys\";\nexport function mergeReducerBuilder(cb) {\n return (collection, value, options) => {\n const index = collection.findIndex((item) => cb(item, value));\n if (index === -1) {\n return [...collection, value];\n }\n collection[index] = deepMerge(collection[index], value, options);\n return collection;\n };\n}\nconst defaultReducer = mergeReducerBuilder((a, b) => a === b);\nfunction getReducer({ reducers, parentKey }) {\n if (!reducers) {\n return defaultReducer;\n }\n if (parentKey && reducers[parentKey]) {\n return reducers[parentKey];\n }\n return reducers[\"default\"] || defaultReducer;\n}\nfunction shouldReturnObj(obj, source) {\n return isPrimitive(obj) || isSymbol(obj) || isFunction(obj) || source === undefined;\n}\nfunction shouldReturnSource(obj, source) {\n return obj === undefined || obj === null || (obj === \"\" && source !== \"\");\n}\nexport function deepMerge(source, obj, options = {}) {\n if (shouldReturnSource(obj, source)) {\n return source;\n }\n if (shouldReturnObj(obj, source)) {\n return obj;\n }\n if (Array.isArray(source)) {\n const reducer = getReducer(options);\n return [].concat(obj).reduce((out, value) => reducer(out, value, options), [...source]);\n }\n return [...objectKeys(source), ...objectKeys(obj)].reduce((out, key) => {\n const src = source && source[key];\n const value = deepMerge(src, obj && obj[key], {\n ...options,\n parentKey: key\n });\n if (options.cleanUndefinedProps && value === undefined) {\n return out;\n }\n return {\n ...out,\n [key]: value\n };\n }, createInstance(source));\n}\n","/**\n * Get the provide name.\n * @param targetClass\n */\nexport function nameOfClass(targetClass) {\n return typeof targetClass === \"function\" ? targetClass.name : targetClass.constructor.name;\n}\n/**\n * Get symbol name.\n * @param sym\n */\nexport const nameOfSymbol = (sym) => sym.toString().replace(\"Symbol(\", \"\").replace(\")\", \"\");\n/**\n * Get object name\n */\nexport function nameOf(obj) {\n switch (typeof obj) {\n default:\n return \"\" + obj;\n case \"symbol\":\n return nameOfSymbol(obj);\n case \"function\":\n return nameOfClass(obj);\n }\n}\n","import \"reflect-metadata\";\nimport { classOf } from \"../utils/objects/classOf\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_PARAM_TYPES = \"design:paramtypes\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_TYPE = \"design:type\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_RETURN_TYPE = \"design:returntype\";\n/**\n * Properties collections\n * @private\n * @type {string}\n */\nconst PROPERTIES = new Map();\n/**\n * @stable\n */\nclass Metadata {\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.get(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.get(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.get(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.get(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.get(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static get(key, target, propertyKey) {\n return Reflect.getMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.getOwn(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwn(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.getOwn(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.getOwn(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.getOwn(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static getOwn(key, target, propertyKey) {\n return Reflect.getOwnMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getType(Example, \"staticMethod\");\n * ```\n *\n */\n static getType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getOwnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getOwnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_RETURN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getReturnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getReturnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getReturnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getReturnType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_RETURN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_RETURN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getOwnReturnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwnReturnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getOwnReturnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnReturnType(target, propertyKey) {\n return Reflect.getOwnMetadata(DESIGN_RETURN_TYPE, target, propertyKey);\n }\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.has(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.has(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.has(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.has(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.has(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static has(key, target, propertyKey) {\n try {\n return Reflect.hasMetadata(key, classOf(target), propertyKey);\n }\n catch (er) { }\n return false;\n }\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.has(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.hasOwn(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.hasOwn(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.hasOwn(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.hasOwn(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static hasOwn(key, target, propertyKey) {\n return Reflect.hasOwnMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.delete(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.delete(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.delete(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.delete(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.delete(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static delete(key, target, propertyKey) {\n return Reflect.deleteMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Set the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @param value A value that contains attached metadata.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.setParamTypes(Example, undefined, [Object]);\n *\n * // property (on constructor)\n * result = Metadata.setParamTypes(Example, \"staticProperty\", [Object]);\n *\n * // property (on prototype)\n * result = Metadata.setParamTypes(Example.prototype, \"property\", [Object]);\n *\n * // method (on constructor)\n * result = Metadata.setParamTypes(Example, \"staticMethod\", [Object]);\n *\n * // method (on prototype)\n * result = Metadata.setParamTypes(Example.prototype, \"method\", [Object]);\n * ```\n *\n */\n static setParamTypes(target, propertyKey, value) {\n return this.set(DESIGN_PARAM_TYPES, value, target.prototype, propertyKey);\n }\n /**\n * Get all metadata for a metadataKey.\n * @param metadataKey\n */\n static getTargetsFromPropertyKey = (metadataKey) => PROPERTIES.has(metadataKey) ? PROPERTIES.get(metadataKey) || [] : [];\n /**\n * Define a unique metadata entry on the target.\n * @param key A key used to store and retrieve metadata.\n * @param value A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey The property key for the target.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): PropertyDecorator {\n * return (target, key) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n * ```\n *\n */\n static set(key, value, target, propertyKey) {\n const targets = PROPERTIES.has(key) ? PROPERTIES.get(key) || [] : [];\n const classConstructor = classOf(target);\n if (targets.indexOf(classConstructor) === -1) {\n targets.push(classConstructor);\n PROPERTIES.set(key, targets);\n }\n Reflect.defineMetadata(key, value, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param targetPrototype\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getParamTypes(Example.prototype);\n *\n * // property (on constructor)\n * result = Metadata.getParamTypes(Example.prototype, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getParamTypes(Example.prototype, \"staticMethod\");\n * ```\n *\n */\n static getParamTypes(targetPrototype, propertyKey) {\n return Reflect.getMetadata(DESIGN_PARAM_TYPES, targetPrototype, propertyKey) || [];\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getParamTypes(Example);\n *\n * // property (on constructor)\n * result = Metadata.getParamTypes(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getParamTypes(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnParamTypes(target, propertyKey) {\n return Reflect.getOwnMetadata(DESIGN_PARAM_TYPES, target, propertyKey) || [];\n }\n}\nexport { Metadata };\n","import { DecoratorTypes } from \"../domain/DecoratorTypes\";\nimport { decoratorTypeOf } from \"../utils/decorators/decoratorTypeOf\";\nimport { deepClone } from \"../utils/objects/deepClone\";\nimport { deepMerge } from \"../utils/objects/deepMerge\";\nimport { descriptorOf } from \"../utils/objects/descriptorOf\";\nimport { isSymbol } from \"../utils/objects/isSymbol\";\nimport { nameOf } from \"../utils/objects/nameOf\";\nimport { Metadata } from \"./Metadata\";\n/**\n * @ignore\n */\nexport const CLASS_STORE = \"tsed:class:store\";\n/**\n * @ignore\n */\nexport const METHOD_STORE = \"tsed:method:store\";\n/**\n * @ignore\n */\nexport const PROPERTY_STORE = \"tsed:property:store\";\n/**\n * @ignore\n */\nexport const PARAM_STORE = \"tsed:param:store\";\nconst stores = new Map();\nfunction storeGet(key, ...args) {\n if (isSymbol(args[0])) {\n if (!stores.has(args[0])) {\n stores.set(args[0], new Store());\n }\n return stores.get(args[0]);\n }\n else {\n const registry = Metadata;\n if (!registry.hasOwn(key, ...args)) {\n registry.set(key, new Store(), ...args);\n }\n return registry.getOwn(key, ...args);\n }\n}\nfunction defineStore(args) {\n const [target, propertyKey, descriptor] = args;\n switch (decoratorTypeOf(args)) {\n case DecoratorTypes.PARAM_CTOR:\n case DecoratorTypes.PARAM_STC:\n case DecoratorTypes.PARAM:\n const store = storeGet(PARAM_STORE, target, propertyKey);\n if (!store.has(\"\" + descriptor)) {\n store.set(\"\" + descriptor, new Store());\n }\n return store.get(\"\" + descriptor);\n case DecoratorTypes.PROP:\n case DecoratorTypes.PROP_STC:\n return storeGet(PROPERTY_STORE, target, propertyKey);\n case DecoratorTypes.METHOD:\n case DecoratorTypes.METHOD_STC:\n return storeGet(METHOD_STORE, target, propertyKey);\n case DecoratorTypes.CLASS:\n return storeGet(CLASS_STORE, target);\n }\n}\nexport class Store {\n _entries = new Map();\n /**\n * Create or get a Store from args {target + methodName + descriptor}\n * @param args\n * @returns {Store}\n */\n static from(...args) {\n return defineStore(args);\n }\n /**\n * Create store on the method.\n * @param target\n * @param {string} propertyKey\n * @returns {Store}\n */\n static fromMethod(target, propertyKey) {\n return Store.from(target, propertyKey, descriptorOf(target, propertyKey));\n }\n static mergeStoreFrom(target, source, ...args) {\n const store = Store.from(target, ...args);\n Store.from(source, ...args)._entries.forEach((value, key) => {\n store.merge(key, value);\n });\n return store;\n }\n static mergeStoreMethodFrom(target, source, propertyKey) {\n return this.mergeStoreFrom(target, source, propertyKey, descriptorOf(target, propertyKey));\n }\n /**\n * The get() method returns a specified element from a Map object.\n * @param key Required. The key of the element to return from the Map object.\n * @param defaultValue\n * @returns {T} Returns the element associated with the specified key or undefined if the key can't be found in the Map object.\n */\n get(key, defaultValue) {\n return this._entries.get(nameOf(key)) || defaultValue;\n }\n /**\n * The has() method returns a boolean indicating whether an element with the specified key exists or not.\n * @param key\n * @returns {boolean}\n */\n has(key) {\n return this._entries.has(nameOf(key));\n }\n /**\n * The set() method adds or updates an element with a specified key and value to a Map object.\n * @param key Required. The key of the element to add to the Map object.\n * @param metadata Required. The value of the element to add to the Map object.\n */\n set(key, metadata) {\n this._entries.set(nameOf(key), metadata);\n return this;\n }\n /**\n * The delete() method removes the specified element from a Map object.\n * @param key Required. The key of the element to remove from the Map object.\n * @returns {boolean} Returns true if an element in the Map object existed and has been removed, or false if the element does not exist.\n */\n delete(key) {\n return this._entries.delete(nameOf(key));\n }\n /**\n * Merge given value with existing value.\n * @param key\n * @param value\n * @param inverse Change the merge order. Get the existing value and apply over given value\n * @returns {Store}\n */\n merge(key, value, inverse = false) {\n let _value_ = this.get(key);\n if (_value_) {\n value = deepClone(value);\n _value_ = deepClone(_value_);\n value = inverse ? deepMerge(value, _value_) : deepMerge(_value_, value);\n }\n this.set(key, value);\n return this;\n }\n toJson() {\n return [...this._entries.entries()].reduce((obj, [key, value]) => {\n return {\n ...obj,\n [key]: value\n };\n }, {});\n }\n}\n","import { Store } from \"../domain/Store\";\n/**\n * Create a store correctly configured from the parameters given by the decorator.\n * The `fn` can return a decorator that will be initialized with the parameters (target, propertyKey, descriptor).\n * @param {(store: Store, parameters: DecoratorParameters) => void} fn\n * @returns {Function}\n */\nexport function StoreFn(fn) {\n return (...parameters) => {\n const store = Store.from(...parameters);\n const result = fn(store, parameters);\n if (typeof result === \"function\") {\n result(...parameters);\n }\n return parameters[2];\n };\n}\n","import { StoreFn } from \"./storeFn\";\nexport function StoreMerge(key, value) {\n return StoreFn((store) => {\n store.merge(key, value);\n });\n}\n","import { StoreFn } from \"./storeFn\";\nexport function StoreSet(key, value) {\n return StoreFn((store) => {\n store.set(key, value);\n });\n}\n","export function isObject(target) {\n return typeof target === \"object\";\n}\n","export function isObservable(obj) {\n return !!obj && typeof obj.lift === \"function\" && typeof obj.subscribe === \"function\";\n}\n","/**\n * Tests to see if the object is an ES2015 (ES6) Promise\n * @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}\n * @param target\n * @returns {boolean}\n */\nexport function isPromise(target) {\n return (target === Promise ||\n target instanceof Promise ||\n (!!target && typeof target.subscribe !== \"function\" && typeof target.then === \"function\"));\n}\n","export function isStream(obj) {\n return obj !== null && typeof obj === \"object\" && typeof obj.pipe === \"function\";\n}\n","import { isObject } from \"../utils/objects/isObject\";\nimport { isObservable } from \"../utils/objects/isObservable\";\nimport { isPromise } from \"../utils/objects/isPromise\";\nimport { isStream } from \"../utils/objects/isStream\";\n/**\n * @ignore\n */\nfunction isResponse(obj) {\n return isObject(obj) && \"data\" in obj && \"headers\" in obj && \"status\" in obj && \"statusText\" in obj;\n}\n/**\n * @ignore\n */\nexport var AnyToPromiseStatus;\n(function (AnyToPromiseStatus) {\n AnyToPromiseStatus[\"PENDING\"] = \"PENDING\";\n AnyToPromiseStatus[\"CANCELED\"] = \"CANCELED\";\n AnyToPromiseStatus[\"RESOLVED\"] = \"RESOLVED\";\n AnyToPromiseStatus[\"REJECTED\"] = \"REJECTED\";\n})(AnyToPromiseStatus || (AnyToPromiseStatus = {}));\nexport var AnyToPromiseResponseTypes;\n(function (AnyToPromiseResponseTypes) {\n AnyToPromiseResponseTypes[\"STREAM\"] = \"STREAM\";\n AnyToPromiseResponseTypes[\"BUFFER\"] = \"BUFFER\";\n AnyToPromiseResponseTypes[\"DATA\"] = \"DATA\";\n})(AnyToPromiseResponseTypes || (AnyToPromiseResponseTypes = {}));\nexport class AnyToPromise {\n status = AnyToPromiseStatus.PENDING;\n args;\n #resolves;\n #rejects;\n #hasNextFunction = false;\n #promise;\n constructor({ hasNextFunction = false } = {}) {\n this.#hasNextFunction = hasNextFunction;\n this.#promise = new Promise((resolve, reject) => {\n this.#resolves = resolve;\n this.#rejects = reject;\n });\n }\n isDone() {\n return this.status !== AnyToPromiseStatus.PENDING;\n }\n get next() {\n this.#hasNextFunction = true;\n return (error) => {\n if (this.isDone()) {\n return;\n }\n return error ? this.reject(error) : this.resolve({ type: AnyToPromiseResponseTypes.DATA });\n };\n }\n /**\n *\n */\n call(cb) {\n if (this.isDone()) {\n return Promise.resolve(this);\n }\n try {\n this.handle(cb());\n }\n catch (er) {\n this.reject(er);\n }\n return this.#promise;\n }\n reject(er) {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.REJECTED);\n this.#rejects(er);\n }\n resolve(response = {}) {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.RESOLVED);\n this.#resolves({ ...response, state: AnyToPromiseStatus.RESOLVED });\n }\n destroy() { }\n cancel() {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.CANCELED);\n return this.#resolves({ state: AnyToPromiseStatus.CANCELED });\n }\n done(status) {\n this.destroy();\n this.status = status;\n }\n handle(process, additionalProps = {}) {\n if (this.isDone()) {\n return;\n }\n if (process) {\n if (this.isCanceledResponse(process)) {\n // ABANDON\n return this.cancel();\n }\n if (isObservable(process)) {\n process = process.toPromise();\n }\n if (isResponse(process)) {\n return this.handle(process.data, {\n ...additionalProps,\n status: process.status,\n headers: process.headers\n });\n }\n if (isStream(process)) {\n return this.resolve({ ...additionalProps, type: AnyToPromiseResponseTypes.STREAM, data: process });\n }\n if (isStream(process) || Buffer.isBuffer(process)) {\n return this.resolve({ ...additionalProps, type: AnyToPromiseResponseTypes.BUFFER, data: process });\n }\n if (isPromise(process)) {\n return process\n .then((result) => this.handle(result, additionalProps))\n .catch((error) => {\n if (error.response && isResponse(error.response)) {\n return this.handle(error.response);\n }\n return this.reject(error);\n });\n }\n }\n if (!this.#hasNextFunction) {\n // no next function and empty response\n return this.resolve({\n ...additionalProps,\n data: process,\n type: AnyToPromiseResponseTypes.DATA\n });\n }\n }\n isCanceledResponse(process) {\n return process === AnyToPromiseStatus.CANCELED;\n }\n}\n","/**\n *\n */\nexport var Env;\n(function (Env) {\n Env[\"PROD\"] = \"production\";\n Env[\"DEV\"] = \"development\";\n Env[\"TEST\"] = \"test\";\n})(Env || (Env = {}));\n/**\n * Fallback\n * @type {Env}\n */\n// tslint:disable-next-line: variable-name\nexport const EnvTypes = Env;\n","export class Hooks {\n #listeners = {};\n has(event) {\n return !!this.#listeners[event];\n }\n /**\n * Listen a hook event\n * @param event\n * @param cb\n */\n on(event, cb) {\n if (!this.#listeners[event]) {\n this.#listeners[event] = [];\n }\n this.#listeners[event].push(cb);\n return this;\n }\n /**\n * Remove a listener attached to an event\n * @param event\n * @param cb\n */\n off(event, cb) {\n if (this.#listeners[event]) {\n this.#listeners[event] = this.#listeners[event].filter((item) => item === cb);\n }\n return this;\n }\n /**\n * Trigger an event and call listener.\n * @param event\n * @param args\n * @param callThis\n */\n emit(event, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n cb.call(callThis, ...args);\n }\n }\n }\n /**\n * Trigger an event, listener alter given value and return it.\n * @param event\n * @param value\n * @param args\n * @param callThis\n */\n alter(event, value, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n value = cb.call(callThis, value, ...args);\n }\n }\n return value;\n }\n /**\n * Trigger an event and call async listener.\n * @param event\n * @param args\n * @param callThis\n */\n async asyncEmit(event, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n const promises = listeners.map((cb) => cb.call(callThis, ...args));\n await Promise.all(promises);\n }\n }\n /**\n * Trigger an event, async listener alter given value and return it.\n * @param event\n * @param value\n * @param args\n * @param callThis\n */\n async asyncAlter(event, value, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n value = await cb.call(callThis, value, ...args);\n }\n }\n return value;\n }\n destroy() {\n this.#listeners = {};\n }\n}\n","export const Type = Function;\n// @ts-ignore\nglobal.Type = Type;\n","import { decoratorTypeOf } from \"../utils/decorators/decoratorTypeOf\";\nimport { classOf } from \"../utils/objects/classOf\";\nimport { nameOf } from \"../utils/objects/nameOf\";\nexport class UnsupportedDecoratorType extends Error {\n name;\n constructor(decorator, args) {\n super(UnsupportedDecoratorType.buildMessage(decorator, args));\n }\n static buildMessage(decorator, args) {\n const [target, propertyKey, index] = args;\n const bindingType = decoratorTypeOf(args);\n const shortBinding = bindingType.split(\"/\")[0];\n const param = shortBinding === \"parameter\" ? \".[\" + index + \"]\" : \"\";\n const cstr = shortBinding === \"parameter\" ? \".constructor\" : \"\";\n const method = propertyKey ? \".\" + propertyKey : cstr;\n const path = nameOf(classOf(target)) + method + param;\n return `${decorator.name} cannot be used as ${bindingType} decorator on ${path}`;\n }\n}\n","export function catchError(cb) {\n try {\n cb();\n }\n catch (er) {\n return er;\n }\n}\nexport async function catchAsyncError(cb) {\n try {\n await cb();\n }\n catch (er) {\n return er;\n }\n}\n","export function getRandomId() {\n return `e${Math.random().toString(36).substring(7)}`;\n}\n","/**\n * @param list\n */\nexport function uniq(list) {\n return Array.from(new Set(list).values());\n}\nexport function uniqBy(list, key = \"id\") {\n const map = new Map();\n list.forEach((item) => {\n map.set(item[key], item);\n });\n return Array.from(map.values());\n}\n","import { uniq } from \"./uniq\";\n/**\n * Create a complete and iterable trap.\n * @param self\n * @param options\n * @ignore\n */\nexport function proxyDelegation(self, options = {}) {\n const { handlers = {}, remove, ownKeys } = options;\n const get = options.getter || ((target, propertyKey) => target.get(propertyKey));\n const set = options.setter || ((target, propertyKey, value) => !!target.set(propertyKey, value));\n const itsOwnProp = (target, p) => Reflect.has(target, p) || typeof p === \"symbol\";\n return new Proxy(self, {\n getOwnPropertyDescriptor(target, p) {\n return Reflect.getOwnPropertyDescriptor(target, p);\n },\n has(target, p) {\n if (itsOwnProp(target, p)) {\n return Reflect.has(target, p);\n }\n return get(target, p) !== undefined;\n },\n get(target, p, receiver) {\n if (itsOwnProp(target, p)) {\n return Reflect.get(target, p, receiver);\n }\n return get(target, p);\n },\n set(target, p, value, receiver) {\n if (itsOwnProp(target, p)) {\n return Reflect.set(target, p, value, receiver);\n }\n return !!set(target, p, value, receiver);\n },\n deleteProperty(target, p) {\n if (itsOwnProp(target, p) || !remove) {\n return Reflect.deleteProperty(target, p);\n }\n return remove(target, p);\n },\n defineProperty(target, p, attributes) {\n return Reflect.defineProperty(target, p, attributes);\n },\n ownKeys(target) {\n return uniq(Reflect.ownKeys(target).concat((ownKeys && ownKeys(target)) || []));\n },\n ...handlers\n });\n}\n","export function ancestorOf(target) {\n return target && Object.getPrototypeOf(target);\n}\nexport function getInheritedClass(target) {\n return ancestorOf(target);\n}\n","import { classOf } from \"./classOf\";\nimport { getInheritedClass } from \"./ancestorOf\";\nimport { nameOf } from \"./nameOf\";\n/**\n *\n * @param target\n * @returns {Array}\n */\nexport function ancestorsOf(target) {\n const classes = [];\n let currentTarget = classOf(target);\n while (currentTarget && nameOf(currentTarget) !== \"\") {\n classes.unshift(currentTarget);\n currentTarget = getInheritedClass(currentTarget);\n }\n return classes;\n}\n","import { classOf } from \"./classOf\";\n/**\n * Return the prototype of the given class.\n * @param target\n * @returns {any}\n */\nexport function prototypeOf(target) {\n return classOf(target) === target ? target.prototype : target;\n}\n","import { classOf } from \"./classOf\";\nimport { ancestorsOf } from \"./ancestorsOf\";\nimport { prototypeOf } from \"./prototypeOf\";\n/**\n * Return all methods for a given class.\n * @param target\n */\nexport function methodsOf(target) {\n const methods = new Map();\n target = classOf(target);\n ancestorsOf(target).forEach((target) => {\n const keys = Reflect.ownKeys(prototypeOf(target));\n keys.forEach((propertyKey) => {\n if (propertyKey !== \"constructor\") {\n methods.set(propertyKey, { target, propertyKey });\n }\n });\n });\n return Array.from(methods.values());\n}\n","import { Store } from \"../../domain/Store\";\nimport { classOf } from \"../objects/classOf\";\nimport { descriptorOf } from \"../objects/descriptorOf\";\nimport { methodsOf } from \"../objects/methodsOf\";\nimport { prototypeOf } from \"../objects/prototypeOf\";\nexport function decorateMethodsOf(klass, decorator) {\n methodsOf(klass).forEach(({ target, propertyKey }) => {\n const proto = prototypeOf(klass);\n if (target !== classOf(klass)) {\n Object.defineProperty(proto, propertyKey, {\n writable: true,\n configurable: true,\n value(...args) {\n return prototypeOf(target)[propertyKey].apply(this, args);\n }\n });\n Store.mergeStoreMethodFrom(klass, target, propertyKey);\n }\n const newDescriptor = decorator(proto, propertyKey, descriptorOf(klass, propertyKey));\n if (newDescriptor) {\n Object.defineProperty(proto, propertyKey, newDescriptor);\n }\n });\n}\n","import { descriptorOf } from \"../objects/descriptorOf\";\nexport function decoratorArgs(target, propertyKey) {\n return [target, propertyKey, descriptorOf(target, propertyKey)];\n}\n","import { ancestorsOf } from \"../objects/ancestorsOf\";\nexport function inheritedDescriptorOf(target, propertyKey) {\n for (const klass of ancestorsOf(target)) {\n const descriptor = Object.getOwnPropertyDescriptor((klass && klass.prototype) || klass, propertyKey);\n if (descriptor) {\n return descriptor;\n }\n }\n return undefined;\n}\n","export function useDecorators(...decorators) {\n return (...args) => {\n decorators\n .filter((o) => !!o)\n .forEach((decorator) => {\n decorator(...args);\n });\n };\n}\n","import { descriptorOf } from \"../objects/descriptorOf\";\nexport function useMethodDecorator(decorator) {\n return (target, propertyKey) => decorator(target, propertyKey, descriptorOf(target, propertyKey));\n}\nexport function useMethodDecorators(...decorators) {\n return (target, propertyKey) => {\n decorators.filter(Boolean).forEach((decorator) => decorator(target, propertyKey, descriptorOf(target, propertyKey)));\n };\n}\n","export function getHostInfoFromPort(protocol, addressPort) {\n let address = \"0.0.0.0\";\n let port = addressPort;\n if (typeof addressPort === \"string\" && addressPort.indexOf(\":\") > -1) {\n [address, port] = addressPort.split(\":\");\n port = +port;\n }\n return {\n protocol,\n address,\n port: port,\n toString() {\n return [`${this.protocol}://${this.address}`, typeof this.port === \"number\" && this.port].filter(Boolean).join(\":\");\n }\n };\n}\n","export async function importPackage(packageName, loaderFn = () => import(packageName), optional = false) {\n try {\n return await loaderFn();\n }\n catch (e) {\n if (!optional) {\n throw e;\n }\n return {};\n }\n}\n","import { isProtectedKey } from \"./isProtectedKey\";\n/**\n * Remove undefined value\n * @param obj\n * @param ignore\n */\nexport function cleanObject(obj, ignore = []) {\n return Object.entries(obj).reduce((obj, [key, value]) => {\n if (isProtectedKey(key) || ignore.includes(key)) {\n return obj;\n }\n return value === undefined\n ? obj\n : {\n ...obj,\n [key]: value\n };\n }, {});\n}\n","/**\n * Get the class constructor\n * @param target\n */\nexport function getConstructor(target) {\n return typeof target === \"function\" ? target : target.constructor;\n}\n/**\n * Get the class constructor\n * @param target\n */\nexport function constructorOf(target) {\n return getConstructor(target);\n}\n","import { isFunction } from \"./isFunction\";\nexport function isArrowFn(target) {\n return target && isFunction(target) && !target.prototype;\n}\n","import { classOf } from \"./classOf\";\n/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isClassObject(target) {\n return target === Object;\n}\nexport function isPlainObject(target) {\n return isClassObject(classOf(target)) && target !== Object;\n}\n","import { isArrayOrArrayClass } from \"./isArray\";\nimport { isArrowFn } from \"./isArrowFn\";\nimport { isBuffer } from \"./isBuffer\";\nimport { isDate } from \"./isDate\";\nimport { isClassObject } from \"./isPlainObject\";\nimport { isPrimitiveOrPrimitiveClass } from \"./isPrimitive\";\nimport { isPromise } from \"./isPromise\";\nimport { isSymbol } from \"./isSymbol\";\nexport function isClass(target) {\n if (!target) {\n return false;\n }\n if (isArrowFn(target)) {\n return false;\n }\n return !(isSymbol(target) ||\n isPrimitiveOrPrimitiveClass(target) ||\n isClassObject(target) ||\n isDate(target) ||\n isPromise(target) ||\n isArrayOrArrayClass(target) ||\n isBuffer(target));\n}\n","import { classOf } from \"./classOf\";\nimport { isClass } from \"./isClass\";\nexport function getClassOrSymbol(target) {\n return isClass(target) ? classOf(target) : target;\n}\n","import { constructorOf } from \"./constructorOf\";\nexport function toStringConstructor(target) {\n const ctr = constructorOf(target);\n const strings = ctr.toString().split(\"\\n\");\n const ctrString = strings.find((s) => s.indexOf(\"constructor(\") > -1) || \"constructor()\";\n return `${ctrString.replace(\"{\", \"\").trim()}`;\n}\n","import { toStringConstructor } from \"./toStringConstructor\";\nexport function getConstructorArgNames(target) {\n return toStringConstructor(target)\n .split(\"constructor(\")[1]\n .split(\")\")[0]\n .split(\", \")\n .filter(Boolean)\n .map((s) => s.trim());\n}\n","import { inheritedDescriptorOf } from \"../decorators/inheritedDescriptorOf\";\nimport { classOf } from \"./classOf\";\n/**\n *\n * @param obj\n * @param key\n */\nexport function isEnumerable(obj, key) {\n const klass = classOf(obj);\n if (klass) {\n const descriptor = inheritedDescriptorOf(klass, key);\n if (descriptor) {\n return descriptor.enumerable;\n }\n }\n return Object.prototype.propertyIsEnumerable.call(obj, key);\n}\n","import { isEnumerable } from \"./isEnumerable\";\nimport { isProtectedKey } from \"./isProtectedKey\";\n/**\n * Return all enumerable keys of the given object\n * @param obj\n */\nexport function getEnumerableKeys(obj) {\n const keys = [];\n for (const key in obj) {\n if (!isProtectedKey(key) && isEnumerable(obj, key)) {\n keys.push(key);\n }\n }\n return keys;\n}\n","import { isFunction } from \"./isFunction\";\nimport { isObject } from \"./isObject\";\nimport { isString } from \"./isString\";\nconst mapOptions = (args) => {\n const [expression, scope, defaultValue, separator = \".\"] = args;\n if (isObject(scope) || isString(expression)) {\n return {\n expression,\n scope,\n defaultValue,\n separator\n };\n }\n return {\n expression: scope,\n scope: expression,\n defaultValue,\n separator\n };\n};\nexport function getValue(...args) {\n const options = mapOptions(args);\n let scope = options.scope;\n const { expression, defaultValue, separator } = options;\n if (!expression) {\n return scope;\n }\n if (!scope) {\n return defaultValue;\n }\n const keys = expression.split(separator);\n const getValue = (key) => {\n if (scope) {\n if (scope[key] !== undefined || (isObject(scope) && key in scope)) {\n return scope[key];\n }\n if (isFunction(scope.get)) {\n return scope.get(key);\n }\n }\n };\n while ((scope = getValue(keys.shift())) && keys.length) { }\n return scope === undefined ? defaultValue : scope;\n}\n","export function hasJsonMethod(obj) {\n return obj && typeof obj.toJSON === \"function\";\n}\n","import { isArrayOrArrayClass } from \"./isArray\";\n/**\n * Return true if the target.\n * @param target\n * @returns {boolean}\n */\nexport function isCollection(target) {\n return (isArrayOrArrayClass(target) ||\n target === Map ||\n target instanceof Map ||\n target === Set ||\n target instanceof Set ||\n target === WeakMap ||\n target instanceof WeakMap ||\n target === WeakSet ||\n target instanceof WeakSet);\n}\n","import { isNil } from \"./isNil\";\n/**\n * Return true if the value is an empty string, null or undefined.\n * @param value\n * @returns {boolean}\n */\nexport function isEmpty(value) {\n return value === \"\" || isNil(value);\n}\n","import { classOf } from \"./classOf\";\nimport { ancestorOf } from \"./ancestorOf\";\nimport { nameOf } from \"./nameOf\";\nexport function isInheritedFrom(target, from, deep = 5) {\n if (!target || !from) {\n return false;\n }\n target = classOf(target);\n from = classOf(from);\n while (nameOf(target) !== \"\") {\n if (!deep) {\n return false;\n }\n if (target === from) {\n return true;\n }\n target = ancestorOf(target);\n deep--;\n }\n return false;\n}\n","export function isMomentObject(obj) {\n return !!(obj && obj?._isAMomentObject);\n}\n","import { hasJsonMethod } from \"./hasJsonMethod\";\nexport function isObjectID(obj) {\n return obj && obj._bsontype;\n}\nexport function isMongooseObject(obj) {\n return !!((hasJsonMethod(obj) && obj.$isMongooseModelPrototype) || isObjectID(obj));\n}\n","import { isStream } from \"./isStream\";\nimport { isBoolean } from \"./isBoolean\";\nimport { isNumber } from \"./isNumber\";\nimport { isString } from \"./isString\";\nimport { isNil } from \"./isNil\";\nexport function isSerializable(data) {\n return !(Buffer.isBuffer(data) || isStream(data) || isBoolean(data) || isNumber(data) || isString(data) || isNil(data));\n}\n","import { isBooleanOrBooleanClass } from \"./isBoolean\";\nimport { isNumberOrNumberClass } from \"./isNumber\";\nimport { isStringOrStringClass } from \"./isString\";\nexport function primitiveOf(target) {\n if (isStringOrStringClass(target)) {\n return \"string\";\n }\n if (isNumberOrNumberClass(target)) {\n return \"number\";\n }\n if (isBooleanOrBooleanClass(target)) {\n return \"boolean\";\n }\n return \"any\";\n}\n","import { isProtectedKey } from \"./isProtectedKey\";\nexport function setValue(scope, expression, value, separator = \".\") {\n const keys = expression.split(separator);\n const setValue = (key, add) => {\n if (isProtectedKey(key)) {\n return false;\n }\n if (add) {\n if (typeof scope.set === \"function\") {\n scope.set(key, value);\n }\n else {\n scope[key] = value;\n }\n return false;\n }\n if (typeof scope.set === \"function\") {\n if (!scope.has(key)) {\n scope.set(key, {});\n }\n scope = scope.get(key);\n }\n else {\n scope = scope[key] = scope[key] || {};\n }\n return true;\n };\n while (setValue(keys.shift(), !keys.length)) { }\n}\n","import { isArray } from \"./isArray\";\nimport { isString } from \"./isString\";\nfunction createIdentityFn(keyOrFn) {\n if (!keyOrFn) {\n return (v, k) => String(k);\n }\n if (isString(keyOrFn)) {\n return (item) => {\n return item[keyOrFn];\n };\n }\n return keyOrFn;\n}\nexport function toMap(input, keyOrFn) {\n if (isArray(input)) {\n const identity = createIdentityFn(keyOrFn || \"id\");\n return input.reduce((map, value, index) => {\n const ids = [].concat(identity(value, index));\n ids.forEach((id) => {\n const item = map.get(id);\n value = item?.merge?.(value) || value;\n map.set(id, value);\n });\n return map;\n }, new Map());\n }\n const identity = createIdentityFn(keyOrFn);\n return Object.entries(input).reduce((map, [key, value]) => {\n return map.set(identity(value, key), value);\n }, new Map());\n}\n"],"names":["root","factory","exports","module","define","amd","self","Reflect","g","this","Function","exporter","makeExporter","target","previous","key","value","Object","defineProperty","configurable","writable","hasOwn","prototype","hasOwnProperty","supportsSymbol","Symbol","toPrimitiveSymbol","toPrimitive","iteratorSymbol","iterator","supportsCreate","create","supportsProto","__proto__","Array","downLevel","HashMap","MakeDictionary","has","map","call","get","undefined","functionPrototype","getPrototypeOf","usePolyfill","process","env","_Map","Map","entries","cacheSentinel","arraySentinel","MapIterator","keys","values","selector","_index","_keys","_values","_selector","next","index","length","result","done","throw","error","return","_cacheKey","_cacheIndex","enumerable","_find","set","delete","size","i","clear","getKey","getValue","getEntry","insert","indexOf","push","_","CreateMapPolyfill","_Set","Set","_map","add","Metadata","WeakMap","rootKey","CreateUniqueKey","_key","table","GetOrCreateWeakMapTable","CreateUUID","FillRandomBytes","buffer","Math","random","data","Uint8Array","crypto","getRandomValues","msCrypto","offset","byte","toString","toLowerCase","CreateWeakMapPolyfill","GetOrCreateMetadataMap","O","P","Create","targetMetadata","IsUndefined","metadataMap","OrdinaryHasMetadata","MetadataKey","OrdinaryHasOwnMetadata","parent","OrdinaryGetPrototypeOf","IsNull","OrdinaryGetMetadata","OrdinaryGetOwnMetadata","OrdinaryDefineOwnMetadata","MetadataValue","OrdinaryMetadataKeys","ownKeys","OrdinaryOwnMetadataKeys","parentKeys","_i","ownKeys_1","_a","parentKeys_1","obj","method","GetMethod","IsCallable","TypeError","IsObject","GetIterator","k","IteratorStep","nextValue","e","IteratorClose","Type","x","ToPrimitive","input","PreferredType","hint","exoticToPrim","toString_1","valueOf","toString_2","OrdinaryToPrimitive","ToPropertyKey","argument","ToString","IsArray","isArray","IsConstructor","V","func","f","proto","prototypeProto","constructor","__","decorators","propertyKey","attributes","decorated","decorator","DecorateConstructor","descriptor","DecorateProperty","metadataKey","metadataValue","IsPropertyKey","ctor","superCtor","super_","TempCtor","arg","copy","fill","readUInt8","formatRegExp","format","isString","objects","arguments","inspect","join","args","len","str","String","replace","Number","JSON","stringify","isNull","isObject","deprecate","fn","msg","isUndefined","apply","noDeprecation","warned","throwDeprecation","Error","traceDeprecation","console","trace","debugEnviron","debugs","opts","ctx","seen","stylize","stylizeNoColor","depth","colors","isBoolean","showHidden","_extend","customInspect","stylizeWithColor","formatValue","styleType","style","styles","recurseTimes","isFunction","ret","primitive","simple","isNumber","formatPrimitive","visibleKeys","array","hash","forEach","val","idx","arrayToHash","getOwnPropertyNames","isError","formatError","name","isRegExp","RegExp","isDate","Date","output","base","braces","toUTCString","l","formatProperty","match","formatArray","pop","reduce","prev","cur","reduceToSingleString","desc","getOwnPropertyDescriptor","split","line","substr","ar","re","objectToString","d","o","pad","n","debuglog","NODE_DEBUG","toUpperCase","test","pid","isNullOrUndefined","isSymbol","isPrimitive","isBuffer","months","timestamp","time","getHours","getMinutes","getSeconds","getDate","getMonth","prop","log","inherits","origin","webpackEmptyAsyncContext","req","Promise","resolve","then","code","id","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","definition","globalThis","window","r","toStringTag","descriptorOf","isMethodDescriptor","Configurable","DecoratorTypes","Deprecated","message","targetKey","originalMethod","Enumerable","NotConfigurable","NotEnumerable","Writable","Readonly","getClass","classOf","decoratorTypeOf","staticType","type","CLASS","isArrayOrArrayClass","isNaN","isNil","Boolean","isBooleanOrBooleanClass","isNumberOrNumberClass","isStringOrStringClass","isPrimitiveOrPrimitiveClass","isPrimitiveClass","includes","isSymbolOrSymbolClass","Buffer","deepClone","source","stack","dest","isBasicType","alloc","stacked","setPrototypeOf","createInstance","isProtectedKey","objectKeys","filter","mergeReducerBuilder","cb","collection","options","findIndex","item","deepMerge","defaultReducer","a","b","shouldReturnSource","shouldReturnObj","reducer","reducers","parentKey","getReducer","concat","out","cleanUndefinedProps","nameOfClass","targetClass","nameOfSymbol","sym","nameOf","DESIGN_PARAM_TYPES","DESIGN_TYPE","DESIGN_RETURN_TYPE","PROPERTIES","static","getMetadata","getOwnMetadata","hasMetadata","er","hasOwnMetadata","deleteMetadata","targets","classConstructor","defineMetadata","targetPrototype","CLASS_STORE","METHOD_STORE","PROPERTY_STORE","PARAM_STORE","stores","storeGet","Store","registry","getOwn","_entries","PARAM_CTOR","PARAM_STC","PARAM","store","PROP","PROP_STC","METHOD","METHOD_STC","defineStore","from","merge","mergeStoreFrom","defaultValue","metadata","inverse","_value_","toJson","StoreFn","parameters","StoreMerge","StoreSet","isObservable","lift","subscribe","isPromise","isStream","pipe","isResponse","AnyToPromiseStatus","AnyToPromiseResponseTypes","Env","AnyToPromise","status","PENDING","hasNextFunction","reject","isDone","DATA","handle","REJECTED","response","RESOLVED","state","destroy","cancel","CANCELED","additionalProps","isCanceledResponse","toPromise","headers","STREAM","BUFFER","catch","EnvTypes","Hooks","event","on","off","emit","callThis","listeners","alter","async","promises","all","UnsupportedDecoratorType","super","buildMessage","bindingType","shortBinding","param","path","catchError","catchAsyncError","getRandomId","substring","uniq","list","uniqBy","proxyDelegation","handlers","remove","getter","setter","itsOwnProp","p","Proxy","receiver","deleteProperty","ancestorOf","getInheritedClass","ancestorsOf","classes","currentTarget","unshift","prototypeOf","methodsOf","methods","decorateMethodsOf","klass","mergeStoreMethodFrom","newDescriptor","decoratorArgs","inheritedDescriptorOf","useDecorators","useMethodDecorator","useMethodDecorators","getHostInfoFromPort","protocol","addressPort","address","port","importPackage","packageName","loaderFn","optional","cleanObject","ignore","getConstructor","constructorOf","isArrowFn","isClassObject","isPlainObject","isClass","getClassOrSymbol","toStringConstructor","find","s","trim","getConstructorArgNames","isEnumerable","propertyIsEnumerable","getEnumerableKeys","expression","scope","separator","mapOptions","shift","hasJsonMethod","toJSON","isCollection","WeakSet","isEmpty","isInheritedFrom","deep","isMomentObject","_isAMomentObject","isObjectID","_bsontype","isMongooseObject","$isMongooseModelPrototype","isSerializable","primitiveOf","setValue","createIdentityFn","keyOrFn","v","toMap","identity"],"sourceRoot":""}