@mcp-weave/webui 0.1.1
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.
- package/LICENSE +21 -0
- package/README.md +99 -0
- package/dist/index.d.mts +178 -0
- package/dist/index.d.ts +178 -0
- package/dist/index.js +2196 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2189 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/reflect-metadata@0.2.2/node_modules/reflect-metadata/Reflect.js","../src/index.ts","../src/server.ts"],"sourcesContent":["/*! *****************************************************************************\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 globalThis === \"object\" ? globalThis :\n typeof global === \"object\" ? global :\n typeof self === \"object\" ? self :\n typeof this === \"object\" ? this :\n sloppyModeThis();\n var exporter = makeExporter(Reflect);\n if (typeof root.Reflect !== \"undefined\") {\n exporter = makeExporter(root.Reflect, exporter);\n }\n factory(exporter, root);\n if (typeof root.Reflect === \"undefined\") {\n root.Reflect = Reflect;\n }\n function makeExporter(target, previous) {\n return function (key, value) {\n Object.defineProperty(target, key, { configurable: true, writable: true, value: value });\n if (previous)\n previous(key, value);\n };\n }\n function functionThis() {\n try {\n return Function(\"return this;\")();\n }\n catch (_) { }\n }\n function indirectEvalThis() {\n try {\n return (void 0, eval)(\"(function() { return this; })()\");\n }\n catch (_) { }\n }\n function sloppyModeThis() {\n return functionThis() || indirectEvalThis();\n }\n })(function (exporter, root) {\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 _Map = typeof Map === \"function\" && typeof Map.prototype.entries === \"function\" ? Map : CreateMapPolyfill();\n var _Set = typeof Set === \"function\" && typeof Set.prototype.entries === \"function\" ? Set : CreateSetPolyfill();\n var _WeakMap = typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\n var registrySymbol = supportsSymbol ? Symbol.for(\"@reflect-metadata:registry\") : undefined;\n var metadataRegistry = GetOrCreateMetadataRegistry();\n var metadataProvider = CreateMetadataProvider(metadataRegistry);\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 if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n var provider = GetMetadataProvider(target, propertyKey, /*Create*/ false);\n if (IsUndefined(provider))\n return false;\n return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);\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 // 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 provider = GetMetadataProvider(O, P, /*Create*/ false);\n if (IsUndefined(provider))\n return false;\n return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));\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 provider = GetMetadataProvider(O, P, /*Create*/ false);\n if (IsUndefined(provider))\n return;\n return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);\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 provider = GetMetadataProvider(O, P, /*Create*/ true);\n provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);\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 provider = GetMetadataProvider(O, P, /*create*/ false);\n if (!provider) {\n return [];\n }\n return provider.OrdinaryOwnMetadataKeys(O, P);\n }\n // 6 ECMAScript Data Types 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 function SameValueZero(x, y) {\n return x === y || x !== x && y !== y;\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 // Global metadata registry\n // - Allows `import \"reflect-metadata\"` and `import \"reflect-metadata/no-conflict\"` to interoperate.\n // - Uses isolated metadata if `Reflect` is frozen before the registry can be installed.\n /**\n * Creates a registry used to allow multiple `reflect-metadata` providers.\n */\n function CreateMetadataRegistry() {\n var fallback;\n if (!IsUndefined(registrySymbol) &&\n typeof root.Reflect !== \"undefined\" &&\n !(registrySymbol in root.Reflect) &&\n typeof root.Reflect.defineMetadata === \"function\") {\n // interoperate with older version of `reflect-metadata` that did not support a registry.\n fallback = CreateFallbackProvider(root.Reflect);\n }\n var first;\n var second;\n var rest;\n var targetProviderMap = new _WeakMap();\n var registry = {\n registerProvider: registerProvider,\n getProvider: getProvider,\n setProvider: setProvider,\n };\n return registry;\n function registerProvider(provider) {\n if (!Object.isExtensible(registry)) {\n throw new Error(\"Cannot add provider to a frozen registry.\");\n }\n switch (true) {\n case fallback === provider: break;\n case IsUndefined(first):\n first = provider;\n break;\n case first === provider: break;\n case IsUndefined(second):\n second = provider;\n break;\n case second === provider: break;\n default:\n if (rest === undefined)\n rest = new _Set();\n rest.add(provider);\n break;\n }\n }\n function getProviderNoCache(O, P) {\n if (!IsUndefined(first)) {\n if (first.isProviderFor(O, P))\n return first;\n if (!IsUndefined(second)) {\n if (second.isProviderFor(O, P))\n return first;\n if (!IsUndefined(rest)) {\n var iterator = GetIterator(rest);\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n return undefined;\n }\n var provider = IteratorValue(next);\n if (provider.isProviderFor(O, P)) {\n IteratorClose(iterator);\n return provider;\n }\n }\n }\n }\n }\n if (!IsUndefined(fallback) && fallback.isProviderFor(O, P)) {\n return fallback;\n }\n return undefined;\n }\n function getProvider(O, P) {\n var providerMap = targetProviderMap.get(O);\n var provider;\n if (!IsUndefined(providerMap)) {\n provider = providerMap.get(P);\n }\n if (!IsUndefined(provider)) {\n return provider;\n }\n provider = getProviderNoCache(O, P);\n if (!IsUndefined(provider)) {\n if (IsUndefined(providerMap)) {\n providerMap = new _Map();\n targetProviderMap.set(O, providerMap);\n }\n providerMap.set(P, provider);\n }\n return provider;\n }\n function hasProvider(provider) {\n if (IsUndefined(provider))\n throw new TypeError();\n return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);\n }\n function setProvider(O, P, provider) {\n if (!hasProvider(provider)) {\n throw new Error(\"Metadata provider not registered.\");\n }\n var existingProvider = getProvider(O, P);\n if (existingProvider !== provider) {\n if (!IsUndefined(existingProvider)) {\n return false;\n }\n var providerMap = targetProviderMap.get(O);\n if (IsUndefined(providerMap)) {\n providerMap = new _Map();\n targetProviderMap.set(O, providerMap);\n }\n providerMap.set(P, provider);\n }\n return true;\n }\n }\n /**\n * Gets or creates the shared registry of metadata providers.\n */\n function GetOrCreateMetadataRegistry() {\n var metadataRegistry;\n if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {\n metadataRegistry = root.Reflect[registrySymbol];\n }\n if (IsUndefined(metadataRegistry)) {\n metadataRegistry = CreateMetadataRegistry();\n }\n if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {\n Object.defineProperty(root.Reflect, registrySymbol, {\n enumerable: false,\n configurable: false,\n writable: false,\n value: metadataRegistry\n });\n }\n return metadataRegistry;\n }\n function CreateMetadataProvider(registry) {\n // [[Metadata]] internal slot\n // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots\n var metadata = new _WeakMap();\n var provider = {\n isProviderFor: function (O, P) {\n var targetMetadata = metadata.get(O);\n if (IsUndefined(targetMetadata))\n return false;\n return targetMetadata.has(P);\n },\n OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata,\n OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata,\n OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata,\n OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys,\n OrdinaryDeleteMetadata: OrdinaryDeleteMetadata,\n };\n metadataRegistry.registerProvider(provider);\n return provider;\n function GetOrCreateMetadataMap(O, P, Create) {\n var targetMetadata = metadata.get(O);\n var createdTargetMetadata = false;\n if (IsUndefined(targetMetadata)) {\n if (!Create)\n return undefined;\n targetMetadata = new _Map();\n metadata.set(O, targetMetadata);\n createdTargetMetadata = true;\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 if (!registry.setProvider(O, P, provider)) {\n targetMetadata.delete(P);\n if (createdTargetMetadata) {\n metadata.delete(O);\n }\n throw new Error(\"Wrong provider for target.\");\n }\n }\n return metadataMap;\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.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.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 function OrdinaryDeleteMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n if (!metadataMap.delete(MetadataKey))\n return false;\n if (metadataMap.size === 0) {\n var targetMetadata = metadata.get(O);\n if (!IsUndefined(targetMetadata)) {\n targetMetadata.delete(P);\n if (targetMetadata.size === 0) {\n metadata.delete(targetMetadata);\n }\n }\n }\n return true;\n }\n }\n function CreateFallbackProvider(reflect) {\n var defineMetadata = reflect.defineMetadata, hasOwnMetadata = reflect.hasOwnMetadata, getOwnMetadata = reflect.getOwnMetadata, getOwnMetadataKeys = reflect.getOwnMetadataKeys, deleteMetadata = reflect.deleteMetadata;\n var metadataOwner = new _WeakMap();\n var provider = {\n isProviderFor: function (O, P) {\n var metadataPropertySet = metadataOwner.get(O);\n if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {\n return true;\n }\n if (getOwnMetadataKeys(O, P).length) {\n if (IsUndefined(metadataPropertySet)) {\n metadataPropertySet = new _Set();\n metadataOwner.set(O, metadataPropertySet);\n }\n metadataPropertySet.add(P);\n return true;\n }\n return false;\n },\n OrdinaryDefineOwnMetadata: defineMetadata,\n OrdinaryHasOwnMetadata: hasOwnMetadata,\n OrdinaryGetOwnMetadata: getOwnMetadata,\n OrdinaryOwnMetadataKeys: getOwnMetadataKeys,\n OrdinaryDeleteMetadata: deleteMetadata,\n };\n return provider;\n }\n /**\n * Gets the metadata provider for an object. If the object has no metadata provider and this is for a create operation,\n * then this module's metadata provider is assigned to the object.\n */\n function GetMetadataProvider(O, P, Create) {\n var registeredProvider = metadataRegistry.getProvider(O, P);\n if (!IsUndefined(registeredProvider)) {\n return registeredProvider;\n }\n if (Create) {\n if (metadataRegistry.setProvider(O, P, metadataProvider)) {\n return metadataProvider;\n }\n throw new Error(\"Illegal state.\");\n }\n return undefined;\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 var Map = /** @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 (SameValueZero(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 (!SameValueZero(this._cacheKey, key)) {\n this._cacheIndex = -1;\n for (var i = 0; i < this._keys.length; i++) {\n if (SameValueZero(this._keys[i], key)) {\n this._cacheIndex = i;\n break;\n }\n }\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 return Map;\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 var Set = /** @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.keys(); };\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 return Set;\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 var array = new Uint8Array(size);\n if (typeof crypto !== \"undefined\") {\n crypto.getRandomValues(array);\n }\n else if (typeof msCrypto !== \"undefined\") {\n msCrypto.getRandomValues(array);\n }\n else {\n FillRandomBytes(array, size);\n }\n return array;\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","// @mcp-weave/webui\n// Web UI dashboard for testing MCP servers\n\nimport 'reflect-metadata';\n\nexport * from './server.js';\n\n// Version\nexport const VERSION = '0.1.0';\n","import 'reflect-metadata';\nimport { EventEmitter } from 'events';\nimport * as http from 'http';\nimport * as url from 'url';\nimport {\n isMcpServer,\n getServerMetadata,\n getToolsMetadata,\n getResourcesMetadata,\n getPromptsMetadata,\n} from '@mcp-weave/nestjs';\n\n/**\n * Web UI configuration options\n */\nexport interface McpWebUIOptions {\n /** Port to run the dashboard (default: 3000) */\n port?: number;\n /** Host to bind to (default: 'localhost') */\n host?: string;\n /** Dashboard title */\n title?: string;\n /** UI theme */\n theme?: 'light' | 'dark';\n /** Enable server logs panel */\n enableLogs?: boolean;\n}\n\n/**\n * Server information for the dashboard\n */\nexport interface ServerInfo {\n name: string;\n version: string;\n description?: string;\n tools: ToolInfo[];\n resources: ResourceInfo[];\n prompts: PromptInfo[];\n}\n\n/**\n * Tool information for display\n */\nexport interface ToolInfo {\n name: string;\n description?: string;\n method: string;\n inputSchema?: Record<string, unknown>;\n}\n\n/**\n * Resource information for display\n */\nexport interface ResourceInfo {\n uri: string;\n name: string;\n description?: string;\n mimeType?: string;\n method: string;\n}\n\n/**\n * Prompt information for display\n */\nexport interface PromptInfo {\n name: string;\n description?: string;\n method: string;\n arguments?: Array<{\n name: string;\n description?: string;\n required?: boolean;\n }>;\n}\n\n/**\n * Call history entry\n */\nexport interface CallHistoryEntry {\n id: string;\n type: 'tool' | 'resource' | 'prompt';\n name: string;\n input?: unknown;\n output?: unknown;\n error?: string;\n timestamp: Date;\n duration: number;\n}\n\n/**\n * McpWebUI - Web dashboard for testing MCP servers\n */\nexport class McpWebUI extends EventEmitter {\n private serverClass: new (...args: unknown[]) => unknown;\n private serverInstance: unknown;\n private options: Required<McpWebUIOptions>;\n private httpServer: http.Server | null = null;\n private serverInfo: ServerInfo | null = null;\n private callHistory: CallHistoryEntry[] = [];\n private logs: string[] = [];\n\n constructor(\n serverClass: new (...args: unknown[]) => unknown,\n options: McpWebUIOptions = {}\n ) {\n super();\n \n if (!isMcpServer(serverClass)) {\n throw new Error(`Class ${serverClass.name} is not decorated with @McpServer`);\n }\n \n this.serverClass = serverClass;\n this.options = {\n port: options.port ?? 3000,\n host: options.host ?? 'localhost',\n title: options.title ?? 'MCP Server Dashboard',\n theme: options.theme ?? 'dark',\n enableLogs: options.enableLogs ?? true,\n };\n }\n\n /**\n * Initialize server instance and extract metadata\n */\n private initialize(): void {\n this.serverInstance = new this.serverClass();\n \n const serverMeta = getServerMetadata(this.serverClass);\n const toolsMeta = getToolsMetadata(this.serverClass);\n const resourcesMeta = getResourcesMetadata(this.serverClass);\n const promptsMeta = getPromptsMetadata(this.serverClass);\n \n this.serverInfo = {\n name: serverMeta?.name ?? 'Unknown Server',\n version: serverMeta?.version ?? '1.0.0',\n description: serverMeta?.description,\n tools: toolsMeta.map(t => ({\n name: t.name,\n description: t.description,\n method: String(t.propertyKey),\n inputSchema: t.inputSchema as Record<string, unknown> | undefined,\n })),\n resources: resourcesMeta.map(r => ({\n uri: r.uri,\n name: r.name,\n description: r.description,\n mimeType: r.mimeType,\n method: String(r.propertyKey),\n })),\n prompts: promptsMeta.map(p => ({\n name: p.name,\n description: p.description,\n method: String(p.propertyKey),\n arguments: p.arguments,\n })),\n };\n }\n\n /**\n * Start the Web UI server\n */\n async start(): Promise<void> {\n this.initialize();\n \n return new Promise((resolve, reject) => {\n this.httpServer = http.createServer((req, res) => {\n this.handleRequest(req, res);\n });\n \n this.httpServer.on('error', reject);\n \n this.httpServer.listen(this.options.port, this.options.host, () => {\n // Get actual port (important when port: 0 was used)\n const address = this.httpServer!.address();\n if (address && typeof address === 'object') {\n this.options.port = address.port;\n }\n this.log(`🎨 MCP Web UI started at ${this.getUrl()}`);\n resolve();\n });\n });\n }\n\n /**\n * Stop the Web UI server\n */\n async stop(): Promise<void> {\n return new Promise((resolve, reject) => {\n if (!this.httpServer) {\n resolve();\n return;\n }\n \n this.httpServer.close((err) => {\n this.httpServer = null;\n if (err) reject(err);\n else resolve();\n });\n });\n }\n\n /**\n * Get the URL of the dashboard\n */\n getUrl(): string {\n return `http://${this.options.host}:${this.options.port}`;\n }\n\n /**\n * Get server information\n */\n getServerInfo(): ServerInfo | null {\n return this.serverInfo;\n }\n\n /**\n * Get call history\n */\n getCallHistory(): CallHistoryEntry[] {\n return this.callHistory;\n }\n\n /**\n * Log a message\n */\n private log(message: string): void {\n const timestamp = new Date().toISOString();\n const logEntry = `[${timestamp}] ${message}`;\n this.logs.push(logEntry);\n if (this.logs.length > 1000) {\n this.logs.shift();\n }\n this.emit('log', logEntry);\n }\n\n /**\n * Handle HTTP requests\n */\n private handleRequest(req: http.IncomingMessage, res: http.ServerResponse): void {\n const parsedUrl = url.parse(req.url ?? '/', true);\n const pathname = parsedUrl.pathname ?? '/';\n\n // CORS headers\n res.setHeader('Access-Control-Allow-Origin', '*');\n res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS');\n res.setHeader('Access-Control-Allow-Headers', 'Content-Type');\n\n if (req.method === 'OPTIONS') {\n res.writeHead(200);\n res.end();\n return;\n }\n\n // Route handlers\n if (pathname === '/' && req.method === 'GET') {\n this.serveDashboard(res);\n } else if (pathname === '/api/info' && req.method === 'GET') {\n this.serveServerInfo(res);\n } else if (pathname === '/api/tools' && req.method === 'GET') {\n this.serveTools(res);\n } else if (pathname === '/api/resources' && req.method === 'GET') {\n this.serveResources(res);\n } else if (pathname === '/api/prompts' && req.method === 'GET') {\n this.servePrompts(res);\n } else if (pathname === '/api/call-tool' && req.method === 'POST') {\n this.handleCallTool(req, res);\n } else if (pathname === '/api/read-resource' && req.method === 'POST') {\n this.handleReadResource(req, res);\n } else if (pathname === '/api/get-prompt' && req.method === 'POST') {\n this.handleGetPrompt(req, res);\n } else if (pathname === '/api/history' && req.method === 'GET') {\n this.serveHistory(res);\n } else if (pathname === '/api/logs' && req.method === 'GET') {\n this.serveLogs(res);\n } else {\n res.writeHead(404, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ error: 'Not Found' }));\n }\n }\n\n /**\n * Serve the main dashboard HTML\n */\n private serveDashboard(res: http.ServerResponse): void {\n const html = this.generateDashboardHTML();\n res.writeHead(200, { 'Content-Type': 'text/html' });\n res.end(html);\n }\n\n /**\n * Serve server info as JSON\n */\n private serveServerInfo(res: http.ServerResponse): void {\n res.writeHead(200, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify(this.serverInfo));\n }\n\n /**\n * Serve tools list\n */\n private serveTools(res: http.ServerResponse): void {\n res.writeHead(200, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify(this.serverInfo?.tools ?? []));\n }\n\n /**\n * Serve resources list\n */\n private serveResources(res: http.ServerResponse): void {\n res.writeHead(200, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify(this.serverInfo?.resources ?? []));\n }\n\n /**\n * Serve prompts list\n */\n private servePrompts(res: http.ServerResponse): void {\n res.writeHead(200, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify(this.serverInfo?.prompts ?? []));\n }\n\n /**\n * Serve call history\n */\n private serveHistory(res: http.ServerResponse): void {\n res.writeHead(200, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify(this.callHistory));\n }\n\n /**\n * Serve server logs\n */\n private serveLogs(res: http.ServerResponse): void {\n res.writeHead(200, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify(this.logs));\n }\n\n /**\n * Handle tool call request\n */\n private async handleCallTool(req: http.IncomingMessage, res: http.ServerResponse): Promise<void> {\n try {\n const body = await this.readBody(req);\n const { name, input } = JSON.parse(body);\n \n const tool = this.serverInfo?.tools.find(t => t.name === name);\n if (!tool) {\n res.writeHead(404, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ error: `Tool '${name}' not found` }));\n return;\n }\n\n const startTime = Date.now();\n const historyEntry: CallHistoryEntry = {\n id: this.generateId(),\n type: 'tool',\n name,\n input,\n timestamp: new Date(),\n duration: 0,\n };\n\n try {\n this.log(`Calling tool: ${name}`);\n this.emit('tool:call', name, input);\n \n const method = (this.serverInstance as Record<string, unknown>)[tool.method] as Function;\n const result = await method.call(this.serverInstance, input);\n \n historyEntry.output = result;\n historyEntry.duration = Date.now() - startTime;\n this.callHistory.unshift(historyEntry);\n \n this.log(`Tool ${name} completed in ${historyEntry.duration}ms`);\n this.emit('tool:result', name, result);\n \n res.writeHead(200, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ success: true, result }));\n } catch (error) {\n historyEntry.error = error instanceof Error ? error.message : String(error);\n historyEntry.duration = Date.now() - startTime;\n this.callHistory.unshift(historyEntry);\n \n this.log(`Tool ${name} failed: ${historyEntry.error}`);\n \n res.writeHead(500, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ success: false, error: historyEntry.error }));\n }\n } catch (error) {\n res.writeHead(400, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ error: 'Invalid request body' }));\n }\n }\n\n /**\n * Handle resource read request\n */\n private async handleReadResource(req: http.IncomingMessage, res: http.ServerResponse): Promise<void> {\n try {\n const body = await this.readBody(req);\n const { uri } = JSON.parse(body);\n \n const resource = this.serverInfo?.resources.find(r => {\n // Match exact URI or template pattern\n const pattern = r.uri.replace(/{[^}]+}/g, '[^/]+');\n const regex = new RegExp(`^${pattern}$`);\n return regex.test(uri);\n });\n \n if (!resource) {\n res.writeHead(404, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ error: `Resource matching '${uri}' not found` }));\n return;\n }\n\n const startTime = Date.now();\n const historyEntry: CallHistoryEntry = {\n id: this.generateId(),\n type: 'resource',\n name: uri,\n timestamp: new Date(),\n duration: 0,\n };\n\n try {\n this.log(`Reading resource: ${uri}`);\n this.emit('resource:read', uri);\n \n // Extract parameters from URI template\n const params = this.extractUriParams(resource.uri, uri);\n \n const method = (this.serverInstance as Record<string, unknown>)[resource.method] as Function;\n const result = await method.call(this.serverInstance, params);\n \n historyEntry.output = result;\n historyEntry.duration = Date.now() - startTime;\n this.callHistory.unshift(historyEntry);\n \n this.log(`Resource ${uri} read in ${historyEntry.duration}ms`);\n \n res.writeHead(200, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ success: true, result }));\n } catch (error) {\n historyEntry.error = error instanceof Error ? error.message : String(error);\n historyEntry.duration = Date.now() - startTime;\n this.callHistory.unshift(historyEntry);\n \n this.log(`Resource ${uri} failed: ${historyEntry.error}`);\n \n res.writeHead(500, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ success: false, error: historyEntry.error }));\n }\n } catch (error) {\n res.writeHead(400, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ error: 'Invalid request body' }));\n }\n }\n\n /**\n * Handle prompt get request\n */\n private async handleGetPrompt(req: http.IncomingMessage, res: http.ServerResponse): Promise<void> {\n try {\n const body = await this.readBody(req);\n const { name, args } = JSON.parse(body);\n \n const prompt = this.serverInfo?.prompts.find(p => p.name === name);\n if (!prompt) {\n res.writeHead(404, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ error: `Prompt '${name}' not found` }));\n return;\n }\n\n const startTime = Date.now();\n const historyEntry: CallHistoryEntry = {\n id: this.generateId(),\n type: 'prompt',\n name,\n input: args,\n timestamp: new Date(),\n duration: 0,\n };\n\n try {\n this.log(`Getting prompt: ${name}`);\n this.emit('prompt:get', name, args);\n \n const method = (this.serverInstance as Record<string, unknown>)[prompt.method] as Function;\n const result = await method.call(this.serverInstance, args);\n \n historyEntry.output = result;\n historyEntry.duration = Date.now() - startTime;\n this.callHistory.unshift(historyEntry);\n \n this.log(`Prompt ${name} completed in ${historyEntry.duration}ms`);\n \n res.writeHead(200, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ success: true, result }));\n } catch (error) {\n historyEntry.error = error instanceof Error ? error.message : String(error);\n historyEntry.duration = Date.now() - startTime;\n this.callHistory.unshift(historyEntry);\n \n this.log(`Prompt ${name} failed: ${historyEntry.error}`);\n \n res.writeHead(500, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ success: false, error: historyEntry.error }));\n }\n } catch (error) {\n res.writeHead(400, { 'Content-Type': 'application/json' });\n res.end(JSON.stringify({ error: 'Invalid request body' }));\n }\n }\n\n /**\n * Read request body\n */\n private readBody(req: http.IncomingMessage): Promise<string> {\n return new Promise((resolve, reject) => {\n let body = '';\n req.on('data', chunk => body += chunk);\n req.on('end', () => resolve(body));\n req.on('error', reject);\n });\n }\n\n /**\n * Extract parameters from URI template\n */\n private extractUriParams(template: string, uri: string): Record<string, string> {\n const params: Record<string, string> = {};\n const templateParts = template.split('/');\n const uriParts = uri.split('/');\n \n templateParts.forEach((part, index) => {\n const match = part.match(/^{([^}]+)}$/);\n const uriPart = uriParts[index];\n if (match && match[1] && uriPart) {\n params[match[1]] = uriPart;\n }\n });\n \n return params;\n }\n\n /**\n * Generate unique ID\n */\n private generateId(): string {\n return `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;\n }\n\n /**\n * Generate the dashboard HTML\n */\n private generateDashboardHTML(): string {\n const isDark = this.options.theme === 'dark';\n \n return `<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>${this.options.title}</title>\n <style>\n :root {\n --bg-primary: ${isDark ? '#1a1a2e' : '#ffffff'};\n --bg-secondary: ${isDark ? '#16213e' : '#f5f5f5'};\n --bg-card: ${isDark ? '#0f3460' : '#ffffff'};\n --text-primary: ${isDark ? '#ffffff' : '#1a1a2e'};\n --text-secondary: ${isDark ? '#a0a0a0' : '#666666'};\n --accent: #e94560;\n --accent-hover: #ff6b6b;\n --success: #4caf50;\n --error: #f44336;\n --border: ${isDark ? '#2a2a4a' : '#e0e0e0'};\n --code-bg: ${isDark ? '#0d1117' : '#f6f8fa'};\n }\n \n * { box-sizing: border-box; margin: 0; padding: 0; }\n \n body {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;\n background: var(--bg-primary);\n color: var(--text-primary);\n line-height: 1.6;\n }\n \n .container {\n max-width: 1400px;\n margin: 0 auto;\n padding: 20px;\n }\n \n header {\n background: var(--bg-secondary);\n padding: 20px;\n border-bottom: 1px solid var(--border);\n margin-bottom: 20px;\n }\n \n header h1 {\n color: var(--accent);\n font-size: 24px;\n display: flex;\n align-items: center;\n gap: 10px;\n }\n \n .server-info {\n display: flex;\n gap: 20px;\n margin-top: 10px;\n color: var(--text-secondary);\n font-size: 14px;\n }\n \n .badge {\n background: var(--accent);\n color: white;\n padding: 2px 8px;\n border-radius: 12px;\n font-size: 12px;\n }\n \n .grid {\n display: grid;\n grid-template-columns: 300px 1fr 350px;\n gap: 20px;\n height: calc(100vh - 150px);\n }\n \n .panel {\n background: var(--bg-card);\n border: 1px solid var(--border);\n border-radius: 8px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n }\n \n .panel-header {\n background: var(--bg-secondary);\n padding: 12px 16px;\n font-weight: 600;\n border-bottom: 1px solid var(--border);\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n \n .panel-content {\n padding: 16px;\n overflow-y: auto;\n flex: 1;\n }\n \n .tabs {\n display: flex;\n gap: 0;\n background: var(--bg-secondary);\n border-bottom: 1px solid var(--border);\n }\n \n .tab {\n padding: 10px 16px;\n cursor: pointer;\n border: none;\n background: transparent;\n color: var(--text-secondary);\n font-size: 14px;\n border-bottom: 2px solid transparent;\n transition: all 0.2s;\n }\n \n .tab:hover { color: var(--text-primary); }\n .tab.active {\n color: var(--accent);\n border-bottom-color: var(--accent);\n }\n \n .item {\n padding: 12px;\n border: 1px solid var(--border);\n border-radius: 6px;\n margin-bottom: 8px;\n cursor: pointer;\n transition: all 0.2s;\n }\n \n .item:hover {\n border-color: var(--accent);\n background: var(--bg-secondary);\n }\n \n .item.selected {\n border-color: var(--accent);\n background: var(--bg-secondary);\n }\n \n .item-name {\n font-weight: 600;\n color: var(--accent);\n }\n \n .item-desc {\n color: var(--text-secondary);\n font-size: 13px;\n margin-top: 4px;\n }\n \n .form-group {\n margin-bottom: 16px;\n }\n \n .form-group label {\n display: block;\n margin-bottom: 6px;\n font-weight: 500;\n font-size: 14px;\n }\n \n .form-group input,\n .form-group textarea {\n width: 100%;\n padding: 10px 12px;\n border: 1px solid var(--border);\n border-radius: 6px;\n background: var(--bg-primary);\n color: var(--text-primary);\n font-family: inherit;\n font-size: 14px;\n }\n \n .form-group textarea {\n min-height: 150px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 13px;\n }\n \n .form-group input:focus,\n .form-group textarea:focus {\n outline: none;\n border-color: var(--accent);\n }\n \n .btn {\n padding: 10px 20px;\n border: none;\n border-radius: 6px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.2s;\n font-size: 14px;\n }\n \n .btn-primary {\n background: var(--accent);\n color: white;\n }\n \n .btn-primary:hover { background: var(--accent-hover); }\n .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }\n \n .result {\n background: var(--code-bg);\n border-radius: 6px;\n padding: 16px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 13px;\n white-space: pre-wrap;\n word-break: break-all;\n max-height: 300px;\n overflow-y: auto;\n }\n \n .result.success { border-left: 3px solid var(--success); }\n .result.error { border-left: 3px solid var(--error); }\n \n .history-item {\n padding: 10px 12px;\n border: 1px solid var(--border);\n border-radius: 6px;\n margin-bottom: 8px;\n font-size: 13px;\n }\n \n .history-item .type {\n display: inline-block;\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 11px;\n text-transform: uppercase;\n font-weight: 600;\n }\n \n .history-item .type.tool { background: #2196f3; color: white; }\n .history-item .type.resource { background: #9c27b0; color: white; }\n .history-item .type.prompt { background: #ff9800; color: white; }\n \n .history-item .name {\n font-weight: 600;\n margin-left: 8px;\n }\n \n .history-item .time {\n color: var(--text-secondary);\n font-size: 12px;\n margin-top: 4px;\n }\n \n .history-item .duration {\n color: var(--success);\n }\n \n .history-item.error .duration { color: var(--error); }\n \n .empty-state {\n text-align: center;\n padding: 40px 20px;\n color: var(--text-secondary);\n }\n \n .spinner {\n border: 3px solid var(--border);\n border-top: 3px solid var(--accent);\n border-radius: 50%;\n width: 24px;\n height: 24px;\n animation: spin 1s linear infinite;\n margin: 20px auto;\n }\n \n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n \n .logs {\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n background: var(--code-bg);\n padding: 12px;\n border-radius: 6px;\n max-height: 200px;\n overflow-y: auto;\n }\n \n .log-entry {\n color: var(--text-secondary);\n margin-bottom: 4px;\n }\n </style>\n</head>\n<body>\n <header>\n <div class=\"container\">\n <h1>🔧 ${this.options.title}</h1>\n <div class=\"server-info\" id=\"server-info\">Loading...</div>\n </div>\n </header>\n \n <div class=\"container\">\n <div class=\"grid\">\n <!-- Left Panel: Items List -->\n <div class=\"panel\">\n <div class=\"tabs\">\n <button class=\"tab active\" data-tab=\"tools\">Tools</button>\n <button class=\"tab\" data-tab=\"resources\">Resources</button>\n <button class=\"tab\" data-tab=\"prompts\">Prompts</button>\n </div>\n <div class=\"panel-content\" id=\"items-list\">\n <div class=\"empty-state\">Loading...</div>\n </div>\n </div>\n \n <!-- Center Panel: Tester -->\n <div class=\"panel\">\n <div class=\"panel-header\">\n <span id=\"tester-title\">Select an item to test</span>\n </div>\n <div class=\"panel-content\" id=\"tester\">\n <div class=\"empty-state\">\n <p>Select a tool, resource, or prompt from the left panel to test it.</p>\n </div>\n </div>\n </div>\n \n <!-- Right Panel: History -->\n <div class=\"panel\">\n <div class=\"panel-header\">\n <span>Call History</span>\n <button class=\"btn\" onclick=\"clearHistory()\" style=\"padding: 4px 8px; font-size: 12px;\">Clear</button>\n </div>\n <div class=\"panel-content\" id=\"history\">\n <div class=\"empty-state\">No calls yet</div>\n </div>\n </div>\n </div>\n </div>\n \n <script>\n // State\n let serverInfo = null;\n let currentTab = 'tools';\n let selectedItem = null;\n let isLoading = false;\n let history = [];\n \n // Initialize\n async function init() {\n await loadServerInfo();\n await loadItems();\n setupTabs();\n pollHistory();\n }\n \n // Load server info\n async function loadServerInfo() {\n try {\n const res = await fetch('/api/info');\n serverInfo = await res.json();\n document.getElementById('server-info').innerHTML = \\`\n <span><strong>Name:</strong> \\${serverInfo.name}</span>\n <span><strong>Version:</strong> \\${serverInfo.version}</span>\n <span class=\"badge\">\\${serverInfo.tools.length} Tools</span>\n <span class=\"badge\">\\${serverInfo.resources.length} Resources</span>\n <span class=\"badge\">\\${serverInfo.prompts.length} Prompts</span>\n \\`;\n } catch (err) {\n console.error('Failed to load server info:', err);\n }\n }\n \n // Load items based on current tab\n async function loadItems() {\n const container = document.getElementById('items-list');\n let items = [];\n \n if (currentTab === 'tools') {\n items = serverInfo?.tools || [];\n } else if (currentTab === 'resources') {\n items = serverInfo?.resources || [];\n } else if (currentTab === 'prompts') {\n items = serverInfo?.prompts || [];\n }\n \n if (items.length === 0) {\n container.innerHTML = '<div class=\"empty-state\">No ' + currentTab + ' available</div>';\n return;\n }\n \n container.innerHTML = items.map((item, index) => \\`\n <div class=\"item\" onclick=\"selectItem('\\${currentTab}', \\${index})\">\n <div class=\"item-name\">\\${item.name || item.uri}</div>\n <div class=\"item-desc\">\\${item.description || ''}</div>\n </div>\n \\`).join('');\n }\n \n // Setup tabs\n function setupTabs() {\n document.querySelectorAll('.tab').forEach(tab => {\n tab.addEventListener('click', () => {\n document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));\n tab.classList.add('active');\n currentTab = tab.dataset.tab;\n loadItems();\n clearTester();\n });\n });\n }\n \n // Select an item\n function selectItem(type, index) {\n let items = type === 'tools' ? serverInfo.tools : \n type === 'resources' ? serverInfo.resources : \n serverInfo.prompts;\n selectedItem = { type, item: items[index] };\n renderTester();\n }\n \n // Clear tester\n function clearTester() {\n selectedItem = null;\n document.getElementById('tester-title').textContent = 'Select an item to test';\n document.getElementById('tester').innerHTML = \\`\n <div class=\"empty-state\">\n <p>Select a tool, resource, or prompt from the left panel to test it.</p>\n </div>\n \\`;\n }\n \n // Render tester for selected item\n function renderTester() {\n if (!selectedItem) return;\n \n const { type, item } = selectedItem;\n document.getElementById('tester-title').textContent = item.name || item.uri;\n \n let html = '';\n \n if (type === 'tools') {\n html = \\`\n <div class=\"form-group\">\n <label>Description</label>\n <p style=\"color: var(--text-secondary); font-size: 14px;\">\\${item.description || 'No description'}</p>\n </div>\n <div class=\"form-group\">\n <label>Input (JSON)</label>\n <textarea id=\"tool-input\" placeholder='{\"key\": \"value\"}'>{}</textarea>\n </div>\n <button class=\"btn btn-primary\" onclick=\"callTool()\" id=\"call-btn\">Call Tool</button>\n <div id=\"result-container\" style=\"margin-top: 16px;\"></div>\n \\`;\n } else if (type === 'resources') {\n html = \\`\n <div class=\"form-group\">\n <label>URI Template</label>\n <p style=\"color: var(--text-secondary); font-size: 14px;\">\\${item.uri}</p>\n </div>\n <div class=\"form-group\">\n <label>URI to Read</label>\n <input type=\"text\" id=\"resource-uri\" value=\"\\${item.uri.replace(/{[^}]+}/g, 'example')}\" />\n </div>\n <button class=\"btn btn-primary\" onclick=\"readResource()\" id=\"call-btn\">Read Resource</button>\n <div id=\"result-container\" style=\"margin-top: 16px;\"></div>\n \\`;\n } else if (type === 'prompts') {\n const args = item.arguments || [];\n html = \\`\n <div class=\"form-group\">\n <label>Description</label>\n <p style=\"color: var(--text-secondary); font-size: 14px;\">\\${item.description || 'No description'}</p>\n </div>\n <div class=\"form-group\">\n <label>Arguments (JSON)</label>\n <textarea id=\"prompt-args\" placeholder='{\"arg1\": \"value1\"}'>\\${JSON.stringify(args.reduce((acc, a) => ({ ...acc, [a.name]: '' }), {}), null, 2)}</textarea>\n </div>\n <button class=\"btn btn-primary\" onclick=\"getPrompt()\" id=\"call-btn\">Get Prompt</button>\n <div id=\"result-container\" style=\"margin-top: 16px;\"></div>\n \\`;\n }\n \n document.getElementById('tester').innerHTML = html;\n }\n \n // Call tool\n async function callTool() {\n if (isLoading) return;\n isLoading = true;\n \n const btn = document.getElementById('call-btn');\n btn.disabled = true;\n btn.textContent = 'Calling...';\n \n try {\n const input = JSON.parse(document.getElementById('tool-input').value || '{}');\n const res = await fetch('/api/call-tool', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ name: selectedItem.item.name, input })\n });\n const data = await res.json();\n showResult(data);\n } catch (err) {\n showResult({ success: false, error: err.message });\n } finally {\n isLoading = false;\n btn.disabled = false;\n btn.textContent = 'Call Tool';\n }\n }\n \n // Read resource\n async function readResource() {\n if (isLoading) return;\n isLoading = true;\n \n const btn = document.getElementById('call-btn');\n btn.disabled = true;\n btn.textContent = 'Reading...';\n \n try {\n const uri = document.getElementById('resource-uri').value;\n const res = await fetch('/api/read-resource', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ uri })\n });\n const data = await res.json();\n showResult(data);\n } catch (err) {\n showResult({ success: false, error: err.message });\n } finally {\n isLoading = false;\n btn.disabled = false;\n btn.textContent = 'Read Resource';\n }\n }\n \n // Get prompt\n async function getPrompt() {\n if (isLoading) return;\n isLoading = true;\n \n const btn = document.getElementById('call-btn');\n btn.disabled = true;\n btn.textContent = 'Getting...';\n \n try {\n const args = JSON.parse(document.getElementById('prompt-args').value || '{}');\n const res = await fetch('/api/get-prompt', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ name: selectedItem.item.name, args })\n });\n const data = await res.json();\n showResult(data);\n } catch (err) {\n showResult({ success: false, error: err.message });\n } finally {\n isLoading = false;\n btn.disabled = false;\n btn.textContent = 'Get Prompt';\n }\n }\n \n // Show result\n function showResult(data) {\n const container = document.getElementById('result-container');\n const success = data.success;\n const content = success ? JSON.stringify(data.result, null, 2) : data.error;\n \n container.innerHTML = \\`\n <div class=\"result \\${success ? 'success' : 'error'}\">\n \\${escapeHtml(content)}\n </div>\n \\`;\n \n refreshHistory();\n }\n \n // Escape HTML\n function escapeHtml(text) {\n const div = document.createElement('div');\n div.textContent = text;\n return div.innerHTML;\n }\n \n // Poll history\n async function pollHistory() {\n await refreshHistory();\n setTimeout(pollHistory, 2000);\n }\n \n // Refresh history\n async function refreshHistory() {\n try {\n const res = await fetch('/api/history');\n history = await res.json();\n renderHistory();\n } catch (err) {\n console.error('Failed to load history:', err);\n }\n }\n \n // Render history\n function renderHistory() {\n const container = document.getElementById('history');\n \n if (history.length === 0) {\n container.innerHTML = '<div class=\"empty-state\">No calls yet</div>';\n return;\n }\n \n container.innerHTML = history.slice(0, 50).map(entry => \\`\n <div class=\"history-item \\${entry.error ? 'error' : ''}\">\n <span class=\"type \\${entry.type}\">\\${entry.type}</span>\n <span class=\"name\">\\${entry.name}</span>\n <div class=\"time\">\n \\${new Date(entry.timestamp).toLocaleTimeString()} - \n <span class=\"duration\">\\${entry.duration}ms</span>\n \\${entry.error ? '<span style=\"color: var(--error);\"> - Error</span>' : ''}\n </div>\n </div>\n \\`).join('');\n }\n \n // Clear history\n function clearHistory() {\n history = [];\n renderHistory();\n }\n \n // Start\n init();\n </script>\n</body>\n</html>`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAcA,QAAIA;AACJ,KAAC,SAAUA,UAAS;AAGhB,OAAC,SAAU,SAAS;AAChB,YAAI,OAAO,OAAO,eAAe,WAAW,aACxC,OAAO,WAAW,WAAW,SACzB,OAAO,SAAS,WAAW,OACvB,OAAO,SAAS,WAAW,OACvB,eAAe;AAC/B,YAAI,WAAW,aAAaA,QAAO;AACnC,YAAI,OAAO,KAAK,YAAY,aAAa;AACrC,qBAAW,aAAa,KAAK,SAAS,QAAQ;AAAA,QAClD;AACA,gBAAQ,UAAU,IAAI;AACtB,YAAI,OAAO,KAAK,YAAY,aAAa;AACrC,eAAK,UAAUA;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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAuV/B;AACF;;;ADzqCO,IAAM,UAAU;","names":["Reflect","hasOwn","metadataRegistry","metadata","OrdinaryDefineOwnMetadata","OrdinaryHasOwnMetadata","OrdinaryGetOwnMetadata","OrdinaryOwnMetadataKeys","defineMetadata","hasOwnMetadata","getOwnMetadata","getOwnMetadataKeys","deleteMetadata","MapIterator","Map","Set","WeakMap","import_reflect_metadata"]}
|