fastman2 2.9.0 → 3.0.0-alpha.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/annotationman.js CHANGED
@@ -1,5 +1,1420 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return webpackJsonpfastman([2],{111:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,r){var o=r.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(o)));var i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var r=o.bind(this);return i=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){o=e,delete this[t]}}),i=!1,r},set:function(e){o=e}}}function i(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach(function(t){if("constructor"!==t){var r=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof r.value&&Object.defineProperty(e.prototype,t,o(e,t,r))}}),e}function u(){return 1===arguments.length?i.apply(void 0,arguments):o.apply(void 0,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.boundMethod=o,t.boundClass=i,t.default=u},112:function(e,t,r){"use strict";function n(e){return function(e){i.default._pool.has(e)||i.default._pool.set(e,!1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=r(15),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},113:function(e,t,r){"use strict";function n(e){return function(e,t,r){if(i.default._pool.has(e)){var n=i.default._pool.get(e);if(-1==n.indexOf(t)){var o=n.concat(t);i.default._pool.set(e,o),o=null}}else i.default._pool.set(e,[t])}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=r(15),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},114:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boundMethod=void 0;var n=r(111);t.boundMethod=n.boundMethod},115:function(e,t,r){"use strict";function n(){return function(e){var t=(0,u.getParamInfo)(e);return function(r){function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return r.apply(this,n.concat(t.slice(n.length).map(function(t,r){try{return a.instance.resolve(t)}catch(t){var o=r+n.length,i=e.toString().match(/constructor\(([\w, ]+)\)/)||[],u=i[1],c=void 0===u?null:u,f=c?c.split(",")[o]:"#"+o;throw"Cannot inject the dependency "+f+" of "+e.name+" constructor. "+t}})))||this}return i.__extends(n,r),n}(e)}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(76),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(o),u=r(32),a=r(16);t.default=n},116:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(115);Object.defineProperty(t,"autoInjectable",{enumerable:!0,get:function(){return n(o).default}});var i=r(117);Object.defineProperty(t,"inject",{enumerable:!0,get:function(){return n(i).default}});var u=r(53);Object.defineProperty(t,"injectable",{enumerable:!0,get:function(){return n(u).default}});var a=r(118);Object.defineProperty(t,"registry",{enumerable:!0,get:function(){return n(a).default}});var c=r(119);Object.defineProperty(t,"singleton",{enumerable:!0,get:function(){return n(c).default}})},117:function(e,t,r){"use strict";function n(e){return function(t,r,n){var i=Reflect.getOwnMetadata(o.INJECTION_TOKEN_METADATA_KEY,t)||{};i[n]=e,Reflect.defineMetadata(o.INJECTION_TOKEN_METADATA_KEY,i,t)}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(32);t.default=n},118:function(e,t,r){"use strict";function n(e){return void 0===e&&(e=[]),function(t){return e.forEach(function(e){var t=e.token,r=e.options,n=i.__rest(e,["token","options"]);return u.instance.register(t,n,r)}),t}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(76),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(o),u=r(16);t.default=n},119:function(e,t,r){"use strict";function n(){return function(e){(0,i.default)()(e),u.instance.registerSingleton(e)}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(53),i=function(e){return e&&e.__esModule?e:{default:e}}(o),u=r(16);t.default=n},120:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(121);Object.defineProperty(t,"instanceCachingFactory",{enumerable:!0,get:function(){return n(o).default}});var i=r(122);Object.defineProperty(t,"predicateAwareClassFactory",{enumerable:!0,get:function(){return n(i).default}})},121:function(e,t,r){"use strict";function n(e){var t;return function(r){return void 0==t&&(t=e(r)),t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},122:function(e,t,r){"use strict";function n(e,t,r,n){void 0===n&&(n=!0);var o,i;return function(u){var a=e(u);return n&&i===a||(o=(i=a)?u.resolve(t):u.resolve(r)),o}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},123:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(116);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})});var o=r(120);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=r(54);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var u=r(16);if(Object.defineProperty(t,"container",{enumerable:!0,get:function(){return u.instance}}),"undefined"==typeof Reflect||!Reflect.getMetadata)throw"tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point."},124:function(e,t,r){"use strict";function n(e){return!!e.useClass}Object.defineProperty(t,"__esModule",{value:!0}),t.isClassProvider=n},125:function(e,t,r){"use strict";function n(e){return!!e.useFactory}Object.defineProperty(t,"__esModule",{value:!0}),t.isFactoryProvider=n},126:function(e,t,r){"use strict";function n(e){return"string"==typeof e||"symbol"===(void 0===e?"undefined":o(e))}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isNormalToken=n},127:function(e,t,r){"use strict";function n(e){return!!e.useToken}Object.defineProperty(t,"__esModule",{value:!0}),t.isTokenProvider=n},128:function(e,t,r){"use strict";function n(e){return void 0!=e.useValue}Object.defineProperty(t,"__esModule",{value:!0}),t.isValueProvider=n},129:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.container=t.inject=t.autoInjectable=t.singleton=t.injectable=void 0,r(45);var n=r(123);t.injectable=n.injectable,t.singleton=n.singleton,t.autoInjectable=n.autoInjectable,t.inject=n.inject,t.container=n.container},130:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serialize=t.deserialize=t.Serializable=t.JsonProperty=void 0,r(45);var n=r(210);t.JsonProperty=n.JsonProperty,t.Serializable=n.Serializable,t.deserialize=n.deserialize,t.serialize=n.serialize},15:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i,u=r(22),a=function(e){return e&&e.__esModule?e:{default:e}}(u),c=(i=o=function e(){n(this,e)},o._pool=new a.default,i);t.default=c},16:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.typeInfo=void 0;var n=r(54),o=r(22),i=function(e){return e&&e.__esModule?e:{default:e}}(o),u=t.typeInfo=new i.default,a=function(){function e(e){this.parent=e,this._registry=new i.default}return e.prototype.register=function(e,t,r){if(void 0===r&&(r={singleton:!1}),r.singleton&&((0,n.isValueProvider)(t)||(0,n.isFactoryProvider)(t)))throw"Cannot use {singleton: true} with ValueProviders or FactoryProviders";return this._registry.set(e,{provider:t,options:r}),this},e.prototype.registerType=function(e,t){return(0,n.isNormalToken)(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if((0,n.isNormalToken)(e)){if((0,n.isNormalToken)(t))return this.register(e,{useToken:t},{singleton:!0});if(t)return this.register(e,{useClass:t},{singleton:!0});throw'Cannot register a type name as a singleton without a "to" token'}var r=e;return t&&!(0,n.isNormalToken)(t)&&(r=t),this.register(e,{useClass:r},{singleton:!0})},e.prototype.resolve=function(e){var t=this.getRegistration(e);if(!t&&(0,n.isNormalToken)(e))throw"Attempted to resolve unregistered dependency token: "+e.toString();return t?(0,n.isValueProvider)(t.provider)?t.provider.useValue:(0,n.isTokenProvider)(t.provider)?t.options.singleton?t.instance||(t.instance=this.resolve(t.provider.useToken)):this.resolve(t.provider.useToken):(0,n.isClassProvider)(t.provider)?t.options.singleton?t.instance||(t.instance=this.construct(t.provider.useClass)):this.construct(t.provider.useClass):(0,n.isFactoryProvider)(t.provider)?t.provider.useFactory(this):this.construct(t.provider):this.construct(e)},e.prototype.isRegistered=function(e){return this._registry.has(e)},e.prototype.reset=function(){this._registry.clear()},e.prototype.createChildContainer=function(){return new e(this)},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.construct=function(e){var t=this;if(0===e.length)return new e;var r=u.get(e);if(!r||0===r.length)throw"TypeInfo not known for "+e;var n=r.map(function(e){return t.resolve(e)});return new(e.bind.apply(e,[void 0].concat(n)))},e}(),c=t.instance=new a;t.default=c},2:function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(e){if(s===setTimeout)return setTimeout(e,0);if((s===r||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function i(e){if(l===clearTimeout)return clearTimeout(e);if((l===n||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function u(){h&&y&&(h=!1,y.length?d=y.concat(d):v=-1,d.length&&a())}function a(){if(!h){var e=o(u);h=!0;for(var t=d.length;t;){for(y=d,d=[];++v<t;)y&&y[v].run();v=-1,t=d.length}y=null,h=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function f(){}var s,l,p=e.exports={};!function(){try{s="function"==typeof setTimeout?setTimeout:r}catch(e){s=r}try{l="function"==typeof clearTimeout?clearTimeout:n}catch(e){l=n}}();var y,d=[],h=!1,v=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];d.push(new c(e,t)),1!==d.length||h||o(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=f,p.addListener=f,p.once=f,p.off=f,p.removeListener=f,p.removeAllListeners=f,p.emit=f,p.prependListener=f,p.prependOnceListener=f,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},210:function(e,t,r){"use strict";function n(e){for(var t,r=e.toString().replace(/(\/\*[\s\S]*?\*\/|\/\/.*$)/gm,""),n=/(?:this.*\.)([^\s=;]+)\s*=/gm,o=[];t=n.exec(r);){var i=t[1];i&&o.push(i)}return o}function o(e){return function(t,r,o){if(void 0===r&&t.prototype){var i=Reflect.getMetadata(b,t,r)[o];r=n(t.prototype.constructor)[o],t=t.prototype,Reflect.defineMetadata(_,i,t,r)}var u={},a=t.constructor.name,c=""+h+a;Reflect.hasMetadata(c,t)&&(u=Reflect.getMetadata(c,t)),u[r]=l(r,e),Reflect.defineMetadata(c,u,t)}}function i(e){return function(t){Reflect.defineMetadata(v,e,t)}}function u(e,t){var r=new t,n=r.constructor.name,o=Reflect.getMetadata(v,t),i=""+h+n,u=Reflect.hasMetadata(i,r),a={};if(!u&&!o)return r;if(a=Reflect.getMetadata(i,r),o){var c=Reflect.getMetadata(""+h+o,r);a=y(y({},a),c)}return Object.keys(a).forEach(function(t){void 0!==e[a[t].name]&&(r[t]=f(r,t,a[t],e[a[t].name]))}),r}function a(e,t){void 0===t&&(t=!0);var r={},n=e.constructor.name,o=Reflect.getMetadata(v,e.constructor),i=""+h+n,u=Reflect.hasMetadata(i,e),a={};if(!u&&!o)return r;if(a=Reflect.getMetadata(i,e),void 0!==o){var f=Reflect.getMetadata(""+h+o,e);a=y(y({},a),f)}var s=Object.keys(e);return Object.keys(a).forEach(function(n){if(s.includes(n)){var o=c(e,n,a[n],t);(!t||t&&void 0!==o)&&(r[a[n].name]=o)}}),r}function c(e,t,r,n){var o=e[t],i=Reflect.getMetadata(_,e,t),u=i.name.toLocaleLowerCase()===d.Array,c=r.predicate,f=r.onSerialize,l=r.type||i,p=s(l);if(f&&(o=f(o)),o&&(p||c)){if(u){var y=[];return o.forEach(function(e){y.push(a(e,n))}),y}return a(o,n)}return l.name.toLocaleLowerCase()===d.Date&&o?o.toISOString():o}function f(e,t,r,n){var o=Reflect.getMetadata(_,e,t),i=o.name.toLowerCase()===d.Array,a=r.predicate,c=r.onDeserialize,f=r.type||o,l=s(f);if(c&&(n=c(n)),!l&&!a)return p(f.name,n);if(i){var y=[];return n.forEach(function(e){a&&(f=a(e)),y.push(u(e,f))}),y}return f=a?a(n):f,u(n,f)}function s(e){return Reflect.hasOwnMetadata(v,e)}function l(e,t){if(!t)return{name:e.toString(),type:void 0,onDeserialize:void 0,onSerialize:void 0};var r=typeof t===d.String?t:t.name?t.name:e.toString();return t.predicate?{name:r,predicate:t.predicate,onDeserialize:t.onDeserialize,onSerialize:t.onSerialize}:{name:r,type:t.type,onDeserialize:t.onDeserialize,onSerialize:t.onSerialize}}function p(e,t){if(e=e.toLowerCase(),(typeof t).toLowerCase()===e)return t;switch(e){case d.String:return t.toString();case d.Number:var r=+t;if(isNaN(r))return;return r;case d.Boolean:return;case d.Date:if(isNaN(Date.parse(t)))return;return new Date(t);default:return t}}var y=this&&this.__assign||function(){return y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},y.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),r(45);var d,h="api:map:",v=h+"serializable",_="design:type",b="design:paramtypes";!function(e){e.Array="array",e.Boolean="boolean",e.Date="date",e.Number="number",e.String="string"}(d||(d={})),t.JsonProperty=o,t.Serializable=i,t.deserialize=u,t.serialize=a},211:function(e,t,r){e.exports=r(80)},22:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});/*! (c) Andrea Giammarchi - ISC */
2
- var n=this||{};try{n.Map=Map}catch(e){!function(e,t){function r(e){t(this,{_k:{value:[]},_v:{value:[]}}),e&&e.forEach(o,this)}function o(e){this.set(e[0],e[1])}function i(t,r){return-1<(e=t._k.indexOf(r))}function u(e,t){return[e,this[t]]}var a=t(r.prototype,{size:{configurable:!0,get:function(){return this._k.length}}});a.clear=function(){var e=this._k.length;this._k.splice(0,e),this._v.splice(0,e)},a.delete=function(t){var r=i(this,t);return r&&(this._k.splice(e,1),this._v.splice(e,1)),r},a.entries=function(){return this._k.map(u,this._v)},a.forEach=function(e,t){this._k.forEach(function(r,n){e.call(t,this._v[n],r,this)},this)},a.get=function(t){return i(this,t)?this._v[e]:void 0},a.has=function(e){return i(this,e)},a.keys=function(){return this._k.slice(0)},a.set=function(t,r){return this._v[i(this,t)?e:this._k.push(t)-1]=r,this},a.values=function(){return this._v.slice(0)},n.Map=r}(0,Object.defineProperties)}t.default=n.Map},32:function(e,t,r){"use strict";function n(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],r=Reflect.getOwnMetadata(o,e)||{};return Object.keys(r).forEach(function(e){t[+e]=r[e]}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.getParamInfo=n;var o=t.INJECTION_TOKEN_METADATA_KEY="injectionTokens"},45:function(e,t,r){(function(e,t){/*! *****************************************************************************
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["fastman"] = factory();
8
+ else
9
+ root["fastman"] = factory();
10
+ })(this, function() {
11
+ return webpackJsonpfastman([2],{
12
+
13
+ /***/ 111:
14
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
15
+
16
+ "use strict";
17
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
18
+ /* harmony export (immutable) */ __webpack_exports__["boundMethod"] = boundMethod;
19
+ /* harmony export (immutable) */ __webpack_exports__["boundClass"] = boundClass;
20
+ /* harmony export (immutable) */ __webpack_exports__["default"] = autobind;
21
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
22
+
23
+ /**
24
+ * Return a descriptor removing the value and returning a getter
25
+ * The getter will return a .bind version of the function
26
+ * and memoize the result against a symbol on the instance
27
+ */
28
+ function boundMethod(target, key, descriptor) {
29
+ var fn = descriptor.value;
30
+
31
+ if (typeof fn !== 'function') {
32
+ throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
33
+ } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
34
+ // getter for the property which is being replaced. This causes infinite
35
+ // recursion and an "Out of stack space" error.
36
+
37
+
38
+ var definingProperty = false;
39
+ return {
40
+ configurable: true,
41
+ get: function get() {
42
+ // eslint-disable-next-line no-prototype-builtins
43
+ if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
44
+ return fn;
45
+ }
46
+
47
+ var boundFn = fn.bind(this);
48
+ definingProperty = true;
49
+ Object.defineProperty(this, key, {
50
+ configurable: true,
51
+ get: function get() {
52
+ return boundFn;
53
+ },
54
+ set: function set(value) {
55
+ fn = value;
56
+ delete this[key];
57
+ }
58
+ });
59
+ definingProperty = false;
60
+ return boundFn;
61
+ },
62
+ set: function set(value) {
63
+ fn = value;
64
+ }
65
+ };
66
+ }
67
+ /**
68
+ * Use boundMethod to bind all methods on the target.prototype
69
+ */
70
+
71
+ function boundClass(target) {
72
+ // (Using reflect to get all keys including symbols)
73
+ var keys; // Use Reflect if exists
74
+
75
+ if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
76
+ keys = Reflect.ownKeys(target.prototype);
77
+ } else {
78
+ keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
79
+
80
+ if (typeof Object.getOwnPropertySymbols === 'function') {
81
+ keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
82
+ }
83
+ }
84
+
85
+ keys.forEach(function (key) {
86
+ // Ignore special case target method
87
+ if (key === 'constructor') {
88
+ return;
89
+ }
90
+
91
+ var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
92
+
93
+ if (typeof descriptor.value === 'function') {
94
+ Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
95
+ }
96
+ });
97
+ return target;
98
+ }
99
+ function autobind() {
100
+ if (arguments.length === 1) {
101
+ return boundClass.apply(void 0, arguments);
102
+ }
103
+
104
+ return boundMethod.apply(void 0, arguments);
105
+ }
106
+
107
+ /***/ }),
108
+
109
+ /***/ 112:
110
+ /***/ (function(module, exports, __webpack_require__) {
111
+
112
+ "use strict";
113
+
114
+
115
+ Object.defineProperty(exports, "__esModule", {
116
+ value: true
117
+ });
118
+ exports.default = action;
119
+
120
+ var _pool = __webpack_require__(15);
121
+
122
+ var _pool2 = _interopRequireDefault(_pool);
123
+
124
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
125
+
126
+ function action(config) {
127
+ return function (target) {
128
+ if (!_pool2.default._pool.has(target)) {
129
+ _pool2.default._pool.set(target, false);
130
+ }
131
+ };
132
+ }
133
+
134
+ /***/ }),
135
+
136
+ /***/ 113:
137
+ /***/ (function(module, exports, __webpack_require__) {
138
+
139
+ "use strict";
140
+
141
+
142
+ Object.defineProperty(exports, "__esModule", {
143
+ value: true
144
+ });
145
+ exports.default = exportAction;
146
+
147
+ var _pool = __webpack_require__(15);
148
+
149
+ var _pool2 = _interopRequireDefault(_pool);
150
+
151
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
152
+
153
+ function exportAction(config) {
154
+ return function (target, key, value) {
155
+ if (_pool2.default._pool.has(target)) {
156
+ // 类函数去重
157
+ var keys = _pool2.default._pool.get(target);
158
+ if (keys.indexOf(key) == -1) {
159
+ var _keys = keys.concat(key);
160
+ _pool2.default._pool.set(target, _keys);
161
+ _keys = null;
162
+ }
163
+ } else {
164
+ _pool2.default._pool.set(target, [key]);
165
+ }
166
+ };
167
+ } /*
168
+ * @Author: shenzhiwei
169
+ * @Date: 2019-07-03 21:29:53
170
+ * @LastEditors: shenzhiwei
171
+ * @LastEditTime: 2019-07-05 08:47:50
172
+ * @Description: 将effect和mutation暴露为action
173
+ */
174
+
175
+ /***/ }),
176
+
177
+ /***/ 114:
178
+ /***/ (function(module, exports, __webpack_require__) {
179
+
180
+ "use strict";
181
+
182
+
183
+ Object.defineProperty(exports, "__esModule", {
184
+ value: true
185
+ });
186
+ exports.boundMethod = undefined;
187
+
188
+ var _autobindDecorator = __webpack_require__(111);
189
+
190
+ exports.boundMethod = _autobindDecorator.boundMethod; /*
191
+ * @Author: shenzhiwei
192
+ * @Date: 2019-07-04 21:42:37
193
+ * @LastEditors: shenzhiwei
194
+ * @LastEditTime: 2019-07-04 21:44:52
195
+ * @Description: 自动绑定this
196
+ */
197
+
198
+ /***/ }),
199
+
200
+ /***/ 115:
201
+ /***/ (function(module, exports, __webpack_require__) {
202
+
203
+ "use strict";
204
+
205
+
206
+ Object.defineProperty(exports, "__esModule", {
207
+ value: true
208
+ });
209
+
210
+ var _tslib = __webpack_require__(76);
211
+
212
+ var tslib_1 = _interopRequireWildcard(_tslib);
213
+
214
+ var _reflectionHelpers = __webpack_require__(32);
215
+
216
+ var _dependencyContainer = __webpack_require__(16);
217
+
218
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
219
+
220
+ function autoInjectable() {
221
+ return function (target) {
222
+ var paramInfo = (0, _reflectionHelpers.getParamInfo)(target);
223
+ return function (_super) {
224
+ tslib_1.__extends(class_1, _super);
225
+ function class_1() {
226
+ var args = [];
227
+ for (var _i = 0; _i < arguments.length; _i++) {
228
+ args[_i] = arguments[_i];
229
+ }
230
+ return _super.apply(this, args.concat(paramInfo.slice(args.length).map(function (type, index) {
231
+ try {
232
+ return _dependencyContainer.instance.resolve(type);
233
+ } catch (e) {
234
+ var argIndex = index + args.length;
235
+ var _a = target.toString().match(/constructor\(([\w, ]+)\)/) || [],
236
+ _b = _a[1],
237
+ params = _b === void 0 ? null : _b;
238
+ var argName = params ? params.split(",")[argIndex] : "#" + argIndex;
239
+ throw "Cannot inject the dependency " + argName + " of " + target.name + " constructor. " + e;
240
+ }
241
+ }))) || this;
242
+ }
243
+ return class_1;
244
+ }(target);
245
+ };
246
+ }
247
+ exports.default = autoInjectable;
248
+
249
+ /***/ }),
250
+
251
+ /***/ 116:
252
+ /***/ (function(module, exports, __webpack_require__) {
253
+
254
+ "use strict";
255
+
256
+
257
+ Object.defineProperty(exports, "__esModule", {
258
+ value: true
259
+ });
260
+
261
+ var _autoInjectable = __webpack_require__(115);
262
+
263
+ Object.defineProperty(exports, "autoInjectable", {
264
+ enumerable: true,
265
+ get: function get() {
266
+ return _interopRequireDefault(_autoInjectable).default;
267
+ }
268
+ });
269
+
270
+ var _inject = __webpack_require__(117);
271
+
272
+ Object.defineProperty(exports, "inject", {
273
+ enumerable: true,
274
+ get: function get() {
275
+ return _interopRequireDefault(_inject).default;
276
+ }
277
+ });
278
+
279
+ var _injectable = __webpack_require__(53);
280
+
281
+ Object.defineProperty(exports, "injectable", {
282
+ enumerable: true,
283
+ get: function get() {
284
+ return _interopRequireDefault(_injectable).default;
285
+ }
286
+ });
287
+
288
+ var _registry = __webpack_require__(118);
289
+
290
+ Object.defineProperty(exports, "registry", {
291
+ enumerable: true,
292
+ get: function get() {
293
+ return _interopRequireDefault(_registry).default;
294
+ }
295
+ });
296
+
297
+ var _singleton = __webpack_require__(119);
298
+
299
+ Object.defineProperty(exports, "singleton", {
300
+ enumerable: true,
301
+ get: function get() {
302
+ return _interopRequireDefault(_singleton).default;
303
+ }
304
+ });
305
+
306
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
307
+
308
+ /***/ }),
309
+
310
+ /***/ 117:
311
+ /***/ (function(module, exports, __webpack_require__) {
312
+
313
+ "use strict";
314
+
315
+
316
+ Object.defineProperty(exports, "__esModule", {
317
+ value: true
318
+ });
319
+
320
+ var _reflectionHelpers = __webpack_require__(32);
321
+
322
+ function inject(token) {
323
+ return function (target, _propertyKey, parameterIndex) {
324
+ var injectionTokens = Reflect.getOwnMetadata(_reflectionHelpers.INJECTION_TOKEN_METADATA_KEY, target) || {};
325
+ injectionTokens[parameterIndex] = token;
326
+ Reflect.defineMetadata(_reflectionHelpers.INJECTION_TOKEN_METADATA_KEY, injectionTokens, target);
327
+ };
328
+ }
329
+ exports.default = inject;
330
+
331
+ /***/ }),
332
+
333
+ /***/ 118:
334
+ /***/ (function(module, exports, __webpack_require__) {
335
+
336
+ "use strict";
337
+
338
+
339
+ Object.defineProperty(exports, "__esModule", {
340
+ value: true
341
+ });
342
+
343
+ var _tslib = __webpack_require__(76);
344
+
345
+ var tslib_1 = _interopRequireWildcard(_tslib);
346
+
347
+ var _dependencyContainer = __webpack_require__(16);
348
+
349
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
350
+
351
+ function registry(registrations) {
352
+ if (registrations === void 0) {
353
+ registrations = [];
354
+ }
355
+ return function (target) {
356
+ registrations.forEach(function (_a) {
357
+ var token = _a.token,
358
+ options = _a.options,
359
+ provider = tslib_1.__rest(_a, ["token", "options"]);
360
+ return _dependencyContainer.instance.register(token, provider, options);
361
+ });
362
+ return target;
363
+ };
364
+ }
365
+ exports.default = registry;
366
+
367
+ /***/ }),
368
+
369
+ /***/ 119:
370
+ /***/ (function(module, exports, __webpack_require__) {
371
+
372
+ "use strict";
373
+
374
+
375
+ Object.defineProperty(exports, "__esModule", {
376
+ value: true
377
+ });
378
+
379
+ var _injectable = __webpack_require__(53);
380
+
381
+ var _injectable2 = _interopRequireDefault(_injectable);
382
+
383
+ var _dependencyContainer = __webpack_require__(16);
384
+
385
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
386
+
387
+ function singleton() {
388
+ return function (target) {
389
+ (0, _injectable2.default)()(target);
390
+ _dependencyContainer.instance.registerSingleton(target);
391
+ };
392
+ }
393
+ exports.default = singleton;
394
+
395
+ /***/ }),
396
+
397
+ /***/ 120:
398
+ /***/ (function(module, exports, __webpack_require__) {
399
+
400
+ "use strict";
401
+
402
+
403
+ Object.defineProperty(exports, "__esModule", {
404
+ value: true
405
+ });
406
+
407
+ var _instanceCachingFactory = __webpack_require__(121);
408
+
409
+ Object.defineProperty(exports, "instanceCachingFactory", {
410
+ enumerable: true,
411
+ get: function get() {
412
+ return _interopRequireDefault(_instanceCachingFactory).default;
413
+ }
414
+ });
415
+
416
+ var _predicateAwareClassFactory = __webpack_require__(122);
417
+
418
+ Object.defineProperty(exports, "predicateAwareClassFactory", {
419
+ enumerable: true,
420
+ get: function get() {
421
+ return _interopRequireDefault(_predicateAwareClassFactory).default;
422
+ }
423
+ });
424
+
425
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
426
+
427
+ /***/ }),
428
+
429
+ /***/ 121:
430
+ /***/ (function(module, exports, __webpack_require__) {
431
+
432
+ "use strict";
433
+
434
+
435
+ Object.defineProperty(exports, "__esModule", {
436
+ value: true
437
+ });
438
+ exports.default = instanceCachingFactory;
439
+ function instanceCachingFactory(factoryFunc) {
440
+ var instance;
441
+ return function (dependencyContainer) {
442
+ if (instance == undefined) {
443
+ instance = factoryFunc(dependencyContainer);
444
+ }
445
+ return instance;
446
+ };
447
+ }
448
+
449
+ /***/ }),
450
+
451
+ /***/ 122:
452
+ /***/ (function(module, exports, __webpack_require__) {
453
+
454
+ "use strict";
455
+
456
+
457
+ Object.defineProperty(exports, "__esModule", {
458
+ value: true
459
+ });
460
+ exports.default = predicateAwareClassFactory;
461
+ function predicateAwareClassFactory(predicate, trueConstructor, falseConstructor, useCaching) {
462
+ if (useCaching === void 0) {
463
+ useCaching = true;
464
+ }
465
+ var instance;
466
+ var previousPredicate;
467
+ return function (dependencyContainer) {
468
+ var currentPredicate = predicate(dependencyContainer);
469
+ if (!useCaching || previousPredicate !== currentPredicate) {
470
+ if (previousPredicate = currentPredicate) {
471
+ instance = dependencyContainer.resolve(trueConstructor);
472
+ } else {
473
+ instance = dependencyContainer.resolve(falseConstructor);
474
+ }
475
+ }
476
+ return instance;
477
+ };
478
+ }
479
+
480
+ /***/ }),
481
+
482
+ /***/ 123:
483
+ /***/ (function(module, exports, __webpack_require__) {
484
+
485
+ "use strict";
486
+
487
+
488
+ Object.defineProperty(exports, "__esModule", {
489
+ value: true
490
+ });
491
+
492
+ var _decorators = __webpack_require__(116);
493
+
494
+ Object.keys(_decorators).forEach(function (key) {
495
+ if (key === "default" || key === "__esModule") return;
496
+ Object.defineProperty(exports, key, {
497
+ enumerable: true,
498
+ get: function get() {
499
+ return _decorators[key];
500
+ }
501
+ });
502
+ });
503
+
504
+ var _factories = __webpack_require__(120);
505
+
506
+ Object.keys(_factories).forEach(function (key) {
507
+ if (key === "default" || key === "__esModule") return;
508
+ Object.defineProperty(exports, key, {
509
+ enumerable: true,
510
+ get: function get() {
511
+ return _factories[key];
512
+ }
513
+ });
514
+ });
515
+
516
+ var _providers = __webpack_require__(54);
517
+
518
+ Object.keys(_providers).forEach(function (key) {
519
+ if (key === "default" || key === "__esModule") return;
520
+ Object.defineProperty(exports, key, {
521
+ enumerable: true,
522
+ get: function get() {
523
+ return _providers[key];
524
+ }
525
+ });
526
+ });
527
+
528
+ var _dependencyContainer = __webpack_require__(16);
529
+
530
+ Object.defineProperty(exports, "container", {
531
+ enumerable: true,
532
+ get: function get() {
533
+ return _dependencyContainer.instance;
534
+ }
535
+ });
536
+ if (typeof Reflect === "undefined" || !Reflect.getMetadata) {
537
+ throw "tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.";
538
+ }
539
+
540
+ /***/ }),
541
+
542
+ /***/ 124:
543
+ /***/ (function(module, exports, __webpack_require__) {
544
+
545
+ "use strict";
546
+
547
+
548
+ Object.defineProperty(exports, "__esModule", {
549
+ value: true
550
+ });
551
+ exports.isClassProvider = isClassProvider;
552
+ function isClassProvider(provider) {
553
+ return !!provider.useClass;
554
+ }
555
+
556
+ /***/ }),
557
+
558
+ /***/ 125:
559
+ /***/ (function(module, exports, __webpack_require__) {
560
+
561
+ "use strict";
562
+
563
+
564
+ Object.defineProperty(exports, "__esModule", {
565
+ value: true
566
+ });
567
+ exports.isFactoryProvider = isFactoryProvider;
568
+ function isFactoryProvider(provider) {
569
+ return !!provider.useFactory;
570
+ }
571
+
572
+ /***/ }),
573
+
574
+ /***/ 126:
575
+ /***/ (function(module, exports, __webpack_require__) {
576
+
577
+ "use strict";
578
+
579
+
580
+ Object.defineProperty(exports, "__esModule", {
581
+ value: true
582
+ });
583
+
584
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
585
+
586
+ exports.isNormalToken = isNormalToken;
587
+ function isNormalToken(token) {
588
+ return typeof token === "string" || (typeof token === "undefined" ? "undefined" : _typeof(token)) === "symbol";
589
+ }
590
+
591
+ /***/ }),
592
+
593
+ /***/ 127:
594
+ /***/ (function(module, exports, __webpack_require__) {
595
+
596
+ "use strict";
597
+
598
+
599
+ Object.defineProperty(exports, "__esModule", {
600
+ value: true
601
+ });
602
+ exports.isTokenProvider = isTokenProvider;
603
+ function isTokenProvider(provider) {
604
+ return !!provider.useToken;
605
+ }
606
+
607
+ /***/ }),
608
+
609
+ /***/ 128:
610
+ /***/ (function(module, exports, __webpack_require__) {
611
+
612
+ "use strict";
613
+
614
+
615
+ Object.defineProperty(exports, "__esModule", {
616
+ value: true
617
+ });
618
+ exports.isValueProvider = isValueProvider;
619
+ function isValueProvider(provider) {
620
+ return provider.useValue != undefined;
621
+ }
622
+
623
+ /***/ }),
624
+
625
+ /***/ 129:
626
+ /***/ (function(module, exports, __webpack_require__) {
627
+
628
+ "use strict";
629
+
630
+
631
+ Object.defineProperty(exports, "__esModule", {
632
+ value: true
633
+ });
634
+ exports.container = exports.inject = exports.autoInjectable = exports.singleton = exports.injectable = undefined;
635
+
636
+ __webpack_require__(45);
637
+
638
+ var _index = __webpack_require__(123);
639
+
640
+ /*
641
+ * @Author: shenzhiwei
642
+ * @Date: 2019-07-03 21:13:49
643
+ * @LastEditors: Please set LastEditors
644
+ * @LastEditTime: 2019-08-20 18:47:13
645
+ * @Description: ioc容器实现
646
+ */
647
+ exports.injectable = _index.injectable;
648
+ exports.singleton = _index.singleton;
649
+ exports.autoInjectable = _index.autoInjectable;
650
+ exports.inject = _index.inject;
651
+ exports.container = _index.container;
652
+
653
+ /***/ }),
654
+
655
+ /***/ 130:
656
+ /***/ (function(module, exports, __webpack_require__) {
657
+
658
+ "use strict";
659
+
660
+
661
+ Object.defineProperty(exports, "__esModule", {
662
+ value: true
663
+ });
664
+ exports.serialize = exports.deserialize = exports.Serializable = exports.JsonProperty = undefined;
665
+
666
+ __webpack_require__(45);
667
+
668
+ var _typescriptJsonSerializer = __webpack_require__(210);
669
+
670
+ exports.JsonProperty = _typescriptJsonSerializer.JsonProperty;
671
+ exports.Serializable = _typescriptJsonSerializer.Serializable;
672
+ exports.deserialize = _typescriptJsonSerializer.deserialize;
673
+ exports.serialize = _typescriptJsonSerializer.serialize;
674
+
675
+ /***/ }),
676
+
677
+ /***/ 15:
678
+ /***/ (function(module, exports, __webpack_require__) {
679
+
680
+ "use strict";
681
+
682
+
683
+ Object.defineProperty(exports, "__esModule", {
684
+ value: true
685
+ });
686
+ exports.default = undefined;
687
+
688
+ var _class, _temp; /*
689
+ * @Author: shenzhiwei
690
+ * @Date: 2019-07-05 08:46:48
691
+ * @LastEditors: Please set LastEditors
692
+ * @LastEditTime: 2019-08-20 13:00:40
693
+ * @Description: 存储类构造类型和函数的对应关系
694
+ */
695
+
696
+
697
+ var _map = __webpack_require__(22);
698
+
699
+ var _map2 = _interopRequireDefault(_map);
700
+
701
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
702
+
703
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
704
+
705
+ // 存储类构造类型和函数的对应关系
706
+ var ExposeActionPool = (_temp = _class = function ExposeActionPool() {
707
+ _classCallCheck(this, ExposeActionPool);
708
+ }, _class._pool = new _map2.default(), _temp);
709
+ exports.default = ExposeActionPool;
710
+
711
+ /***/ }),
712
+
713
+ /***/ 16:
714
+ /***/ (function(module, exports, __webpack_require__) {
715
+
716
+ "use strict";
717
+
718
+
719
+ Object.defineProperty(exports, "__esModule", {
720
+ value: true
721
+ });
722
+ exports.instance = exports.typeInfo = undefined;
723
+
724
+ var _providers = __webpack_require__(54);
725
+
726
+ var _map = __webpack_require__(22);
727
+
728
+ var _map2 = _interopRequireDefault(_map);
729
+
730
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
731
+
732
+ /*
733
+ * @Author: shenzhiwei
734
+ * @Date: 1985-10-26 16:15:00
735
+ * @Company: orientsec.com.cn
736
+ * @Description: 使用内置的Map,否则低端机会抛出Map没有找到的错误
737
+ */
738
+ var typeInfo = exports.typeInfo = new _map2.default();
739
+ var InternalDependencyContainer = function () {
740
+ function InternalDependencyContainer(parent) {
741
+ this.parent = parent;
742
+ this._registry = new _map2.default();
743
+ }
744
+ InternalDependencyContainer.prototype.register = function (token, provider, options) {
745
+ if (options === void 0) {
746
+ options = { singleton: false };
747
+ }
748
+ if (options.singleton) {
749
+ if ((0, _providers.isValueProvider)(provider) || (0, _providers.isFactoryProvider)(provider)) {
750
+ throw "Cannot use {singleton: true} with ValueProviders or FactoryProviders";
751
+ }
752
+ }
753
+ this._registry.set(token, { provider: provider, options: options });
754
+ return this;
755
+ };
756
+ InternalDependencyContainer.prototype.registerType = function (from, to) {
757
+ if ((0, _providers.isNormalToken)(to)) {
758
+ return this.register(from, {
759
+ useToken: to
760
+ });
761
+ }
762
+ return this.register(from, {
763
+ useClass: to
764
+ });
765
+ };
766
+ InternalDependencyContainer.prototype.registerInstance = function (token, instance) {
767
+ return this.register(token, {
768
+ useValue: instance
769
+ });
770
+ };
771
+ InternalDependencyContainer.prototype.registerSingleton = function (from, to) {
772
+ if ((0, _providers.isNormalToken)(from)) {
773
+ if ((0, _providers.isNormalToken)(to)) {
774
+ return this.register(from, {
775
+ useToken: to
776
+ }, { singleton: true });
777
+ } else if (to) {
778
+ return this.register(from, {
779
+ useClass: to
780
+ }, { singleton: true });
781
+ }
782
+ throw "Cannot register a type name as a singleton without a \"to\" token";
783
+ }
784
+ var useClass = from;
785
+ if (to && !(0, _providers.isNormalToken)(to)) {
786
+ useClass = to;
787
+ }
788
+ return this.register(from, {
789
+ useClass: useClass
790
+ }, { singleton: true });
791
+ };
792
+ InternalDependencyContainer.prototype.resolve = function (token) {
793
+ var registration = this.getRegistration(token);
794
+ if (!registration) {
795
+ if ((0, _providers.isNormalToken)(token)) {
796
+ throw "Attempted to resolve unregistered dependency token: " + token.toString();
797
+ }
798
+ }
799
+ if (registration) {
800
+ if ((0, _providers.isValueProvider)(registration.provider)) {
801
+ return registration.provider.useValue;
802
+ } else if ((0, _providers.isTokenProvider)(registration.provider)) {
803
+ return registration.options.singleton ? registration.instance || (registration.instance = this.resolve(registration.provider.useToken)) : this.resolve(registration.provider.useToken);
804
+ } else if ((0, _providers.isClassProvider)(registration.provider)) {
805
+ return registration.options.singleton ? registration.instance || (registration.instance = this.construct(registration.provider.useClass)) : this.construct(registration.provider.useClass);
806
+ } else if ((0, _providers.isFactoryProvider)(registration.provider)) {
807
+ return registration.provider.useFactory(this);
808
+ } else {
809
+ return this.construct(registration.provider);
810
+ }
811
+ }
812
+ return this.construct(token);
813
+ };
814
+ InternalDependencyContainer.prototype.isRegistered = function (token) {
815
+ return this._registry.has(token);
816
+ };
817
+ InternalDependencyContainer.prototype.reset = function () {
818
+ this._registry.clear();
819
+ };
820
+ InternalDependencyContainer.prototype.createChildContainer = function () {
821
+ return new InternalDependencyContainer(this);
822
+ };
823
+ InternalDependencyContainer.prototype.getRegistration = function (token) {
824
+ if (this.isRegistered(token)) {
825
+ return this._registry.get(token);
826
+ }
827
+ if (this.parent) {
828
+ return this.parent.getRegistration(token);
829
+ }
830
+ return null;
831
+ };
832
+ InternalDependencyContainer.prototype.construct = function (ctor) {
833
+ var _this = this;
834
+ if (ctor.length === 0) {
835
+ return new ctor();
836
+ }
837
+ var paramInfo = typeInfo.get(ctor);
838
+ if (!paramInfo || paramInfo.length === 0) {
839
+ throw "TypeInfo not known for " + ctor;
840
+ }
841
+ var params = paramInfo.map(function (param) {
842
+ return _this.resolve(param);
843
+ });
844
+ return new (ctor.bind.apply(ctor, [void 0].concat(params)))();
845
+ };
846
+ return InternalDependencyContainer;
847
+ }();
848
+ var instance = exports.instance = new InternalDependencyContainer();
849
+ exports.default = instance;
850
+
851
+ /***/ }),
852
+
853
+ /***/ 2:
854
+ /***/ (function(module, exports) {
855
+
856
+ // shim for using process in browser
857
+ var process = module.exports = {};
858
+
859
+ // cached from whatever global is present so that test runners that stub it
860
+ // don't break things. But we need to wrap it in a try catch in case it is
861
+ // wrapped in strict mode code which doesn't define any globals. It's inside a
862
+ // function because try/catches deoptimize in certain engines.
863
+
864
+ var cachedSetTimeout;
865
+ var cachedClearTimeout;
866
+
867
+ function defaultSetTimout() {
868
+ throw new Error('setTimeout has not been defined');
869
+ }
870
+ function defaultClearTimeout () {
871
+ throw new Error('clearTimeout has not been defined');
872
+ }
873
+ (function () {
874
+ try {
875
+ if (typeof setTimeout === 'function') {
876
+ cachedSetTimeout = setTimeout;
877
+ } else {
878
+ cachedSetTimeout = defaultSetTimout;
879
+ }
880
+ } catch (e) {
881
+ cachedSetTimeout = defaultSetTimout;
882
+ }
883
+ try {
884
+ if (typeof clearTimeout === 'function') {
885
+ cachedClearTimeout = clearTimeout;
886
+ } else {
887
+ cachedClearTimeout = defaultClearTimeout;
888
+ }
889
+ } catch (e) {
890
+ cachedClearTimeout = defaultClearTimeout;
891
+ }
892
+ } ())
893
+ function runTimeout(fun) {
894
+ if (cachedSetTimeout === setTimeout) {
895
+ //normal enviroments in sane situations
896
+ return setTimeout(fun, 0);
897
+ }
898
+ // if setTimeout wasn't available but was latter defined
899
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
900
+ cachedSetTimeout = setTimeout;
901
+ return setTimeout(fun, 0);
902
+ }
903
+ try {
904
+ // when when somebody has screwed with setTimeout but no I.E. maddness
905
+ return cachedSetTimeout(fun, 0);
906
+ } catch(e){
907
+ try {
908
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
909
+ return cachedSetTimeout.call(null, fun, 0);
910
+ } catch(e){
911
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
912
+ return cachedSetTimeout.call(this, fun, 0);
913
+ }
914
+ }
915
+
916
+
917
+ }
918
+ function runClearTimeout(marker) {
919
+ if (cachedClearTimeout === clearTimeout) {
920
+ //normal enviroments in sane situations
921
+ return clearTimeout(marker);
922
+ }
923
+ // if clearTimeout wasn't available but was latter defined
924
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
925
+ cachedClearTimeout = clearTimeout;
926
+ return clearTimeout(marker);
927
+ }
928
+ try {
929
+ // when when somebody has screwed with setTimeout but no I.E. maddness
930
+ return cachedClearTimeout(marker);
931
+ } catch (e){
932
+ try {
933
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
934
+ return cachedClearTimeout.call(null, marker);
935
+ } catch (e){
936
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
937
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
938
+ return cachedClearTimeout.call(this, marker);
939
+ }
940
+ }
941
+
942
+
943
+
944
+ }
945
+ var queue = [];
946
+ var draining = false;
947
+ var currentQueue;
948
+ var queueIndex = -1;
949
+
950
+ function cleanUpNextTick() {
951
+ if (!draining || !currentQueue) {
952
+ return;
953
+ }
954
+ draining = false;
955
+ if (currentQueue.length) {
956
+ queue = currentQueue.concat(queue);
957
+ } else {
958
+ queueIndex = -1;
959
+ }
960
+ if (queue.length) {
961
+ drainQueue();
962
+ }
963
+ }
964
+
965
+ function drainQueue() {
966
+ if (draining) {
967
+ return;
968
+ }
969
+ var timeout = runTimeout(cleanUpNextTick);
970
+ draining = true;
971
+
972
+ var len = queue.length;
973
+ while(len) {
974
+ currentQueue = queue;
975
+ queue = [];
976
+ while (++queueIndex < len) {
977
+ if (currentQueue) {
978
+ currentQueue[queueIndex].run();
979
+ }
980
+ }
981
+ queueIndex = -1;
982
+ len = queue.length;
983
+ }
984
+ currentQueue = null;
985
+ draining = false;
986
+ runClearTimeout(timeout);
987
+ }
988
+
989
+ process.nextTick = function (fun) {
990
+ var args = new Array(arguments.length - 1);
991
+ if (arguments.length > 1) {
992
+ for (var i = 1; i < arguments.length; i++) {
993
+ args[i - 1] = arguments[i];
994
+ }
995
+ }
996
+ queue.push(new Item(fun, args));
997
+ if (queue.length === 1 && !draining) {
998
+ runTimeout(drainQueue);
999
+ }
1000
+ };
1001
+
1002
+ // v8 likes predictible objects
1003
+ function Item(fun, array) {
1004
+ this.fun = fun;
1005
+ this.array = array;
1006
+ }
1007
+ Item.prototype.run = function () {
1008
+ this.fun.apply(null, this.array);
1009
+ };
1010
+ process.title = 'browser';
1011
+ process.browser = true;
1012
+ process.env = {};
1013
+ process.argv = [];
1014
+ process.version = ''; // empty string to avoid regexp issues
1015
+ process.versions = {};
1016
+
1017
+ function noop() {}
1018
+
1019
+ process.on = noop;
1020
+ process.addListener = noop;
1021
+ process.once = noop;
1022
+ process.off = noop;
1023
+ process.removeListener = noop;
1024
+ process.removeAllListeners = noop;
1025
+ process.emit = noop;
1026
+ process.prependListener = noop;
1027
+ process.prependOnceListener = noop;
1028
+
1029
+ process.listeners = function (name) { return [] }
1030
+
1031
+ process.binding = function (name) {
1032
+ throw new Error('process.binding is not supported');
1033
+ };
1034
+
1035
+ process.cwd = function () { return '/' };
1036
+ process.chdir = function (dir) {
1037
+ throw new Error('process.chdir is not supported');
1038
+ };
1039
+ process.umask = function() { return 0; };
1040
+
1041
+
1042
+ /***/ }),
1043
+
1044
+ /***/ 210:
1045
+ /***/ (function(module, exports, __webpack_require__) {
1046
+
1047
+ "use strict";
1048
+
1049
+ var __assign = (this && this.__assign) || function () {
1050
+ __assign = Object.assign || function(t) {
1051
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1052
+ s = arguments[i];
1053
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1054
+ t[p] = s[p];
1055
+ }
1056
+ return t;
1057
+ };
1058
+ return __assign.apply(this, arguments);
1059
+ };
1060
+ Object.defineProperty(exports, "__esModule", { value: true });
1061
+ __webpack_require__(45);
1062
+ var apiMap = 'api:map:';
1063
+ var apiMapSerializable = apiMap + "serializable";
1064
+ var designType = 'design:type';
1065
+ var designParamTypes = 'design:paramtypes';
1066
+ // Enums
1067
+ var Type;
1068
+ (function (Type) {
1069
+ Type["Array"] = "array";
1070
+ Type["Boolean"] = "boolean";
1071
+ Type["Date"] = "date";
1072
+ Type["Number"] = "number";
1073
+ Type["String"] = "string";
1074
+ })(Type || (Type = {}));
1075
+ /**
1076
+ * Function to find the name of function parameters
1077
+ */
1078
+ function getParamNames(ctor) {
1079
+ // Remove all kind of comments
1080
+ var withoutComments = ctor.toString().replace(/(\/\*[\s\S]*?\*\/|\/\/.*$)/gm, '');
1081
+ // Parse function body
1082
+ var parameterPattern = /(?:this.*\.)([^\s=;]+)\s*=/gm;
1083
+ var paramNames = [];
1084
+ var match;
1085
+ // Get params
1086
+ while ((match = parameterPattern.exec(withoutComments))) {
1087
+ var paramName = match[1];
1088
+ if (paramName) {
1089
+ paramNames.push(paramName);
1090
+ }
1091
+ }
1092
+ return paramNames;
1093
+ }
1094
+ /**
1095
+ * Decorator JsonProperty
1096
+ */
1097
+ function JsonProperty(args) {
1098
+ return function (target, key, index) {
1099
+ if (key === undefined && target['prototype']) {
1100
+ var type = Reflect.getMetadata(designParamTypes, target, key)[index];
1101
+ var keys = getParamNames(target['prototype'].constructor);
1102
+ key = keys[index];
1103
+ target = target['prototype'];
1104
+ Reflect.defineMetadata(designType, type, target, key);
1105
+ }
1106
+ var map = {};
1107
+ var targetName = target.constructor.name;
1108
+ var apiMapTargetName = "" + apiMap + targetName;
1109
+ if (Reflect.hasMetadata(apiMapTargetName, target)) {
1110
+ map = Reflect.getMetadata(apiMapTargetName, target);
1111
+ }
1112
+ map[key] = getJsonPropertyValue(key, args);
1113
+ Reflect.defineMetadata(apiMapTargetName, map, target);
1114
+ };
1115
+ }
1116
+ exports.JsonProperty = JsonProperty;
1117
+ /**
1118
+ * Decorator Serializable
1119
+ */
1120
+ function Serializable(baseClassName) {
1121
+ return function (target) {
1122
+ Reflect.defineMetadata(apiMapSerializable, baseClassName, target);
1123
+ };
1124
+ }
1125
+ exports.Serializable = Serializable;
1126
+ /**
1127
+ * Function to deserialize json into a class
1128
+ */
1129
+ function deserialize(json, type) {
1130
+ var instance = new type();
1131
+ var instanceName = instance.constructor.name;
1132
+ var baseClassName = Reflect.getMetadata(apiMapSerializable, type);
1133
+ var apiMapInstanceName = "" + apiMap + instanceName;
1134
+ var hasMap = Reflect.hasMetadata(apiMapInstanceName, instance);
1135
+ var instanceMap = {};
1136
+ if (!hasMap && !baseClassName) {
1137
+ return instance;
1138
+ }
1139
+ else {
1140
+ instanceMap = Reflect.getMetadata(apiMapInstanceName, instance);
1141
+ }
1142
+ if (baseClassName) {
1143
+ var baseClassMap = Reflect.getMetadata("" + apiMap + baseClassName, instance);
1144
+ instanceMap = __assign(__assign({}, instanceMap), baseClassMap);
1145
+ }
1146
+ var keys = Object.keys(instanceMap);
1147
+ keys.forEach(function (key) {
1148
+ if (json[instanceMap[key].name] !== undefined) {
1149
+ instance[key] = convertDataToProperty(instance, key, instanceMap[key], json[instanceMap[key].name]);
1150
+ }
1151
+ });
1152
+ return instance;
1153
+ }
1154
+ exports.deserialize = deserialize;
1155
+ /**
1156
+ * Function to serialize a class into json
1157
+ */
1158
+ function serialize(instance, removeUndefined) {
1159
+ if (removeUndefined === void 0) { removeUndefined = true; }
1160
+ var json = {};
1161
+ var instanceName = instance.constructor.name;
1162
+ var baseClassName = Reflect.getMetadata(apiMapSerializable, instance.constructor);
1163
+ var apiMapInstanceName = "" + apiMap + instanceName;
1164
+ var hasMap = Reflect.hasMetadata(apiMapInstanceName, instance);
1165
+ var instanceMap = {};
1166
+ if (!hasMap && !baseClassName) {
1167
+ return json;
1168
+ }
1169
+ else {
1170
+ instanceMap = Reflect.getMetadata(apiMapInstanceName, instance);
1171
+ }
1172
+ if (baseClassName !== undefined) {
1173
+ var baseClassMap = Reflect.getMetadata("" + apiMap + baseClassName, instance);
1174
+ instanceMap = __assign(__assign({}, instanceMap), baseClassMap);
1175
+ }
1176
+ var instanceKeys = Object.keys(instance);
1177
+ Object.keys(instanceMap).forEach(function (key) {
1178
+ if (instanceKeys.includes(key)) {
1179
+ var data = convertPropertyToData(instance, key, instanceMap[key], removeUndefined);
1180
+ if (!removeUndefined || (removeUndefined && data !== undefined)) {
1181
+ json[instanceMap[key].name] = data;
1182
+ }
1183
+ }
1184
+ });
1185
+ return json;
1186
+ }
1187
+ exports.serialize = serialize;
1188
+ /**
1189
+ * Function to convert class property to json data
1190
+ */
1191
+ function convertPropertyToData(instance, key, value, removeUndefined) {
1192
+ var property = instance[key];
1193
+ var type = Reflect.getMetadata(designType, instance, key);
1194
+ var isArray = type.name.toLocaleLowerCase() === Type.Array;
1195
+ var predicate = value['predicate'];
1196
+ var onSerialize = value['onSerialize'];
1197
+ var propertyType = value['type'] || type;
1198
+ var isSerializableProperty = isSerializable(propertyType);
1199
+ if (onSerialize) {
1200
+ property = onSerialize(property);
1201
+ }
1202
+ if (property && (isSerializableProperty || predicate)) {
1203
+ if (isArray) {
1204
+ var array_1 = [];
1205
+ property.forEach(function (d) {
1206
+ array_1.push(serialize(d, removeUndefined));
1207
+ });
1208
+ return array_1;
1209
+ }
1210
+ return serialize(property, removeUndefined);
1211
+ }
1212
+ if (propertyType.name.toLocaleLowerCase() === Type.Date) {
1213
+ return property ? property.toISOString() : property;
1214
+ }
1215
+ return property;
1216
+ }
1217
+ /**
1218
+ * Function to convert json data to the class property
1219
+ */
1220
+ function convertDataToProperty(instance, key, value, data) {
1221
+ var type = Reflect.getMetadata(designType, instance, key);
1222
+ var isArray = type.name.toLowerCase() === Type.Array;
1223
+ var predicate = value['predicate'];
1224
+ var onDeserialize = value['onDeserialize'];
1225
+ var propertyType = value['type'] || type;
1226
+ var isSerializableProperty = isSerializable(propertyType);
1227
+ if (onDeserialize) {
1228
+ data = onDeserialize(data);
1229
+ }
1230
+ if (!isSerializableProperty && !predicate) {
1231
+ return castSimpleData(propertyType.name, data);
1232
+ }
1233
+ if (isArray) {
1234
+ var array_2 = [];
1235
+ data.forEach(function (d) {
1236
+ if (predicate) {
1237
+ propertyType = predicate(d);
1238
+ }
1239
+ array_2.push(deserialize(d, propertyType));
1240
+ });
1241
+ return array_2;
1242
+ }
1243
+ propertyType = predicate ? predicate(data) : propertyType;
1244
+ return deserialize(data, propertyType);
1245
+ }
1246
+ /**
1247
+ * Function to test if a class has the serializable decorator (metadata)
1248
+ */
1249
+ function isSerializable(type) {
1250
+ return Reflect.hasOwnMetadata(apiMapSerializable, type);
1251
+ }
1252
+ /**
1253
+ * Function to transform the JsonProperty value into an object like {name: string, type: Function, transform: Transform}
1254
+ */
1255
+ function getJsonPropertyValue(key, args) {
1256
+ if (!args) {
1257
+ return {
1258
+ name: key.toString(),
1259
+ type: undefined,
1260
+ onDeserialize: undefined,
1261
+ onSerialize: undefined
1262
+ };
1263
+ }
1264
+ var name = typeof args === Type.String ? args : args['name'] ? args['name'] : key.toString();
1265
+ return args['predicate']
1266
+ ? { name: name, predicate: args['predicate'], onDeserialize: args['onDeserialize'], onSerialize: args['onSerialize'] }
1267
+ : { name: name, type: args['type'], onDeserialize: args['onDeserialize'], onSerialize: args['onSerialize'] };
1268
+ }
1269
+ /**
1270
+ * Function to cast simple type data into the real class property type
1271
+ */
1272
+ function castSimpleData(type, data) {
1273
+ type = type.toLowerCase();
1274
+ if ((typeof data).toLowerCase() === type) {
1275
+ return data;
1276
+ }
1277
+ switch (type) {
1278
+ case Type.String:
1279
+ return data.toString();
1280
+ case Type.Number:
1281
+ var number = +data;
1282
+ if (isNaN(number)) {
1283
+ console.error(data + ": Type " + typeof data + " is not assignable to type " + type + ".");
1284
+ return undefined;
1285
+ }
1286
+ return number;
1287
+ case Type.Boolean:
1288
+ console.error(data + ": Type " + typeof data + " is not assignable to type " + type + ".");
1289
+ return undefined;
1290
+ case Type.Date:
1291
+ if (isNaN(Date.parse(data))) {
1292
+ console.error(data + ": Type " + typeof data + " is not assignable to type " + type + ".");
1293
+ return undefined;
1294
+ }
1295
+ return new Date(data);
1296
+ default:
1297
+ return data;
1298
+ }
1299
+ }
1300
+
1301
+
1302
+ /***/ }),
1303
+
1304
+ /***/ 211:
1305
+ /***/ (function(module, exports, __webpack_require__) {
1306
+
1307
+ module.exports = __webpack_require__(80);
1308
+
1309
+
1310
+ /***/ }),
1311
+
1312
+ /***/ 22:
1313
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1314
+
1315
+ "use strict";
1316
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1317
+ /*! (c) Andrea Giammarchi - ISC */
1318
+ var self = this || /* istanbul ignore next */ {};
1319
+ try { self.Map = Map; }
1320
+ catch (Map) {
1321
+ (function (i, dPs) {'use strict';
1322
+ var proto = dPs(Map.prototype, {size: {
1323
+ configurable: true,
1324
+ get: function () {
1325
+ return this._k.length;
1326
+ }
1327
+ }});
1328
+ proto.clear = function () {
1329
+ var length = this._k.length;
1330
+ this._k.splice(0, length);
1331
+ this._v.splice(0, length);
1332
+ };
1333
+ proto.delete = function (key) {
1334
+ var had = has(this, key);
1335
+ if (had) {
1336
+ this._k.splice(i, 1);
1337
+ this._v.splice(i, 1);
1338
+ }
1339
+ return had;
1340
+ };
1341
+ proto.entries = function () {
1342
+ return this._k.map(pair, this._v);
1343
+ };
1344
+ proto.forEach = function (callback, context) {
1345
+ this._k.forEach(
1346
+ function (key, i) {
1347
+ callback.call(context, this._v[i], key, this);
1348
+ },
1349
+ this
1350
+ );
1351
+ };
1352
+ proto.get = function (key) {
1353
+ return has(this, key) ? this._v[i] : void 0;
1354
+ };
1355
+ proto.has = function (key) {
1356
+ return has(this, key);
1357
+ };
1358
+ proto.keys = function () {
1359
+ return this._k.slice(0);
1360
+ };
1361
+ proto.set = function (key, value) {
1362
+ this._v[has(this, key) ? i : (this._k.push(key) - 1)] = value;
1363
+ return this;
1364
+ };
1365
+ proto.values = function () {
1366
+ return this._v.slice(0);
1367
+ };
1368
+ self.Map = Map;
1369
+ return Map;
1370
+ function Map(iterable) {
1371
+ dPs(this, {_k: {value: []}, _v: {value: []}});
1372
+ if (iterable)
1373
+ iterable.forEach(add, this);
1374
+ }
1375
+ function add(pair) {
1376
+ this.set(pair[0], pair[1]);
1377
+ }
1378
+ function has(self, value) {
1379
+ i = self._k.indexOf(value);
1380
+ return -1 < i;
1381
+ }
1382
+ function pair(v, i) {
1383
+ return [v, this[i]];
1384
+ }
1385
+ }(0, Object.defineProperties));
1386
+ }
1387
+ /* harmony default export */ __webpack_exports__["default"] = (self.Map);
1388
+
1389
+
1390
+ /***/ }),
1391
+
1392
+ /***/ 32:
1393
+ /***/ (function(module, exports, __webpack_require__) {
1394
+
1395
+ "use strict";
1396
+
1397
+
1398
+ Object.defineProperty(exports, "__esModule", {
1399
+ value: true
1400
+ });
1401
+ exports.getParamInfo = getParamInfo;
1402
+ var INJECTION_TOKEN_METADATA_KEY = exports.INJECTION_TOKEN_METADATA_KEY = "injectionTokens";
1403
+ function getParamInfo(target) {
1404
+ var params = Reflect.getMetadata("design:paramtypes", target) || [];
1405
+ var injectionTokens = Reflect.getOwnMetadata(INJECTION_TOKEN_METADATA_KEY, target) || {};
1406
+ Object.keys(injectionTokens).forEach(function (key) {
1407
+ params[+key] = injectionTokens[key];
1408
+ });
1409
+ return params;
1410
+ }
1411
+
1412
+ /***/ }),
1413
+
1414
+ /***/ 45:
1415
+ /***/ (function(module, exports, __webpack_require__) {
1416
+
1417
+ /* WEBPACK VAR INJECTION */(function(process, global) {/*! *****************************************************************************
3
1418
  Copyright (C) Microsoft. All rights reserved.
4
1419
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
1420
  this file except in compliance with the License. You may obtain a copy of the
@@ -13,18 +1428,1498 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
13
1428
  See the Apache Version 2.0 License for specific language governing permissions
14
1429
  and limitations under the License.
15
1430
  ***************************************************************************** */
16
- var r;!function(r){!function(n){function o(e,t){return function(r,n){"function"!=typeof e[r]&&Object.defineProperty(e,r,{configurable:!0,writable:!0,value:n}),t&&t(r,n)}}var i="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),u=o(r);void 0===i.Reflect?i.Reflect=r:u=o(i.Reflect,u),function(t){function r(e,t,r,n){if(j(r)){if(!z(e))throw new TypeError;if(!I(t))throw new TypeError;return p(e,t)}if(!z(e))throw new TypeError;if(!k(t))throw new TypeError;if(!k(n)&&!j(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),r=R(r),y(e,t,r,n)}function n(e,t){function r(r,n){if(!k(r))throw new TypeError;if(!j(n)&&!C(n))throw new TypeError;g(e,t,r,n)}return r}function o(e,t,r,n){if(!k(r))throw new TypeError;return j(n)||(n=R(n)),g(e,t,r,n)}function i(e,t,r){if(!k(t))throw new TypeError;return j(r)||(r=R(r)),h(e,t,r)}function u(e,t,r){if(!k(t))throw new TypeError;return j(r)||(r=R(r)),v(e,t,r)}function a(e,t,r){if(!k(t))throw new TypeError;return j(r)||(r=R(r)),_(e,t,r)}function c(e,t,r){if(!k(t))throw new TypeError;return j(r)||(r=R(r)),b(e,t,r)}function f(e,t){if(!k(e))throw new TypeError;return j(t)||(t=R(t)),m(e,t)}function s(e,t){if(!k(e))throw new TypeError;return j(t)||(t=R(t)),w(e,t)}function l(e,t,r){if(!k(t))throw new TypeError;j(r)||(r=R(r));var n=d(t,r,!1);if(j(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var o=re.get(t);return o.delete(r),o.size>0||(re.delete(t),!0)}function p(e,t){for(var r=e.length-1;r>=0;--r){var n=e[r],o=n(t);if(!j(o)&&!P(o)){if(!I(o))throw new TypeError;t=o}}return t}function y(e,t,r,n){for(var o=e.length-1;o>=0;--o){var i=e[o],u=i(t,r,n);if(!j(u)&&!P(u)){if(!k(u))throw new TypeError;n=u}}return n}function d(e,t,r){var n=re.get(e);if(j(n)){if(!r)return;n=new Z,re.set(e,n)}var o=n.get(t);if(j(o)){if(!r)return;o=new Z,n.set(t,o)}return o}function h(e,t,r){if(v(e,t,r))return!0;var n=V(t);return!P(n)&&h(e,n,r)}function v(e,t,r){var n=d(t,r,!1);return!j(n)&&E(n.has(e))}function _(e,t,r){if(v(e,t,r))return b(e,t,r);var n=V(t);return P(n)?void 0:_(e,n,r)}function b(e,t,r){var n=d(t,r,!1);if(!j(n))return n.get(e)}function g(e,t,r,n){d(r,n,!0).set(e,t)}function m(e,t){var r=w(e,t),n=V(e);if(null===n)return r;var o=m(n,t);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new ee,u=[],a=0,c=r;a<c.length;a++){var f=c[a],s=i.has(f);s||(i.add(f),u.push(f))}for(var l=0,p=o;l<p.length;l++){var f=p[l],s=i.has(f);s||(i.add(f),u.push(f))}return u}function w(e,t){var r=[],n=d(e,t,!1);if(j(n))return r;for(var o=n.keys(),i=D(o),u=0;;){var a=F(i);if(!a)return r.length=u,r;var c=L(a);try{r[u]=c}catch(e){try{K(i)}finally{throw e}}u++}}function O(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function P(e){return null===e}function M(e){return"symbol"==typeof e}function k(e){return"object"==typeof e?null!==e:"function"==typeof e}function T(e,t){switch(O(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",n=N(e,B);if(void 0!==n){var o=n.call(e,r);if(k(o))throw new TypeError;return o}return S(e,"default"===r?"number":r)}function S(e,t){if("string"===t){var r=e.toString;if(A(r)){var n=r.call(e);if(!k(n))return n}var o=e.valueOf;if(A(o)){var n=o.call(e);if(!k(n))return n}}else{var o=e.valueOf;if(A(o)){var n=o.call(e);if(!k(n))return n}var i=e.toString;if(A(i)){var n=i.call(e);if(!k(n))return n}}throw new TypeError}function E(e){return!!e}function x(e){return""+e}function R(e){var t=T(e,3);return M(t)?t:x(t)}function z(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function I(e){return"function"==typeof e}function C(e){switch(O(e)){case 3:case 4:return!0;default:return!1}}function N(e,t){var r=e[t];if(void 0!==r&&null!==r){if(!A(r))throw new TypeError;return r}}function D(e){var t=N(e,G);if(!A(t))throw new TypeError;var r=t.call(e);if(!k(r))throw new TypeError;return r}function L(e){return e.value}function F(e){var t=e.next();return!t.done&&t}function K(e){var t=e.return;t&&t.call(e)}function V(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===Q)return t;if(t!==Q)return t;var r=e.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return t;var o=n.constructor;return"function"!=typeof o?t:o===e?t:o}function J(e){return e.__=void 0,delete e.__,e}var U=Object.prototype.hasOwnProperty,Y="function"==typeof Symbol,B=Y&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",G=Y&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",W="function"==typeof Object.create,q={__proto__:[]}instanceof Array,$=!W&&!q,H={create:W?function(){return J(Object.create(null))}:q?function(){return J({__proto__:null})}:function(){return J({})},has:$?function(e,t){return U.call(e,t)}:function(e,t){return t in e},get:$?function(e,t){return U.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},Q=Object.getPrototypeOf(Function),X="object"==typeof e&&e.env&&"true"===e.env.REFLECT_METADATA_USE_MAP_POLYFILL,Z=X||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){function e(e,t){return e}function t(e,t){return t}function r(e,t){return[e,t]}var n={},o=[],i=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[G]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var t=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=o,this._values=o):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=o,this._values=o),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=o,this._values=o),{value:e,done:!0}},e}();return function(){function o(){this._keys=[],this._values=[],this._cacheKey=n,this._cacheIndex=-2}return Object.defineProperty(o.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),o.prototype.has=function(e){return this._find(e,!1)>=0},o.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},o.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},o.prototype.delete=function(e){var t=this._find(e,!1);if(t>=0){for(var r=this._keys.length,o=t+1;o<r;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=n,this._cacheIndex=-2),!0}return!1},o.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=n,this._cacheIndex=-2},o.prototype.keys=function(){return new i(this._keys,this._values,e)},o.prototype.values=function(){return new i(this._keys,this._values,t)},o.prototype.entries=function(){return new i(this._keys,this._values,r)},o.prototype["@@iterator"]=function(){return this.entries()},o.prototype[G]=function(){return this.entries()},o.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},o}()}():Map,ee=X||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){return function(){function e(){this._map=new Z}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[G]=function(){return this.keys()},e}()}():Set,te=X||"function"!=typeof WeakMap?function(){function e(){var e;do{e="@@WeakMap@@"+o()}while(H.has(u,e));return u[e]=!0,e}function t(e,t){if(!U.call(e,a)){if(!t)return;Object.defineProperty(e,a,{value:H.create()})}return e[a]}function r(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function n(e){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):r(new Uint8Array(e),e):r(new Array(e),e)}function o(){var e=n(i);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",r=0;r<i;++r){var o=e[r];4!==r&&6!==r&&8!==r||(t+="-"),o<16&&(t+="0"),t+=o.toString(16).toLowerCase()}return t}var i=16,u=H.create(),a=e();return function(){function r(){this._key=e()}return r.prototype.has=function(e){var r=t(e,!1);return void 0!==r&&H.has(r,this._key)},r.prototype.get=function(e){var r=t(e,!1);return void 0!==r?H.get(r,this._key):void 0},r.prototype.set=function(e,r){return t(e,!0)[this._key]=r,this},r.prototype.delete=function(e){var r=t(e,!1);return void 0!==r&&delete r[this._key]},r.prototype.clear=function(){this._key=e()},r}()}():WeakMap,re=new te;t("decorate",r),t("metadata",n),t("defineMetadata",o),t("hasMetadata",i),t("hasOwnMetadata",u),t("getMetadata",a),t("getOwnMetadata",c),t("getMetadataKeys",f),t("getOwnMetadataKeys",s),t("deleteMetadata",l)}(u)}()}(r||(r={}))}).call(t,r(2),r(3))},53:function(e,t,r){"use strict";function n(){return function(e){i.typeInfo.set(e,(0,o.getParamInfo)(e))}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(32),i=r(16);t.default=n},54:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(124);Object.defineProperty(t,"isClassProvider",{enumerable:!0,get:function(){return n.isClassProvider}});var o=r(125);Object.defineProperty(t,"isFactoryProvider",{enumerable:!0,get:function(){return o.isFactoryProvider}});var i=r(126);Object.defineProperty(t,"isNormalToken",{enumerable:!0,get:function(){return i.isNormalToken}});var u=r(127);Object.defineProperty(t,"isTokenProvider",{enumerable:!0,get:function(){return u.isTokenProvider}});var a=r(128);Object.defineProperty(t,"isValueProvider",{enumerable:!0,get:function(){return a.isValueProvider}})},76:function(e,t,r){"use strict";function n(e,t){function r(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function i(e,t,r,n){var o,i=arguments.length,u=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(u=(i<3?o(u):i>3?o(t,r,u):o(t,r))||u);return i>3&&u&&Object.defineProperty(t,r,u),u}function u(e,t){return function(r,n){t(r,n,e)}}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function u(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?r(e.value):o(e.value).then(u,a)}c((n=n.apply(e,t||[])).next())})}function f(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,i&&(u=2&r[0]?i.return:r[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,r[1])).done)return u;switch(i=0,u&&(r=[2&r[0],u.value]),r[0]){case 0:case 1:u=r;break;case 4:return c.label++,{value:r[1],done:!1};case 5:c.label++,i=r[1],r=[0];continue;case 7:r=c.ops.pop(),c.trys.pop();continue;default:if(u=c.trys,!(u=u.length>0&&u[u.length-1])&&(6===r[0]||2===r[0])){c=0;continue}if(3===r[0]&&(!u||r[1]>u[0]&&r[1]<u[3])){c.label=r[1];break}if(6===r[0]&&c.label<u[1]){c.label=u[1],u=r;break}if(u&&c.label<u[2]){c.label=u[2],c.ops.push(r);break}u[2]&&c.ops.pop(),c.trys.pop();continue}r=t.call(e,c)}catch(e){r=[6,e],i=0}finally{o=u=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}var o,i,u,a,c={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a}function s(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function l(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function d(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function h(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)n[o]=i[u];return n}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function _(e,t,r){function n(e){s[e]&&(f[e]=function(t){return new Promise(function(r,n){l.push([e,t,r,n])>1||o(e,t)})})}function o(e,t){try{i(s[e](t))}catch(e){c(l[0][3],e)}}function i(e){e.value instanceof v?Promise.resolve(e.value.v).then(u,a):c(l[0][2],e)}function u(e){o("next",e)}function a(e){o("throw",e)}function c(e,t){e(t),l.shift(),l.length&&o(l[0][0],l[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f,s=r.apply(e,t||[]),l=[];return f={},n("next"),n("throw"),n("return"),f[Symbol.asyncIterator]=function(){return this},f}function b(e){function t(t,o){r[t]=e[t]?function(r){return(n=!n)?{value:v(e[t](r)),done:"return"===t}:o?o(r):r}:o}var r,n;return r={},t("next"),t("throw",function(e){throw e}),t("return"),r[Symbol.iterator]=function(){return this},r}function g(e){function t(t){n[t]=e[t]&&function(n){return new Promise(function(o,i){n=e[t](n),r(o,i,n.done,n.value)})}}function r(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=e[Symbol.asyncIterator];return o?o.call(e):(e="function"==typeof p?p(e):e[Symbol.iterator](),n={},t("next"),t("throw"),t("return"),n[Symbol.asyncIterator]=function(){return this},n)}function m(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=n,r.d(t,"__assign",function(){return k}),t.__rest=o,t.__decorate=i,t.__param=u,t.__metadata=a,t.__awaiter=c,t.__generator=f,t.__createBinding=s,t.__exportStar=l,t.__values=p,t.__read=y,t.__spread=d,t.__spreadArrays=h,t.__await=v,t.__asyncGenerator=_,t.__asyncDelegator=b,t.__asyncValues=g,t.__makeTemplateObject=m,t.__importStar=w,t.__importDefault=O,t.__classPrivateFieldGet=j,t.__classPrivateFieldSet=P;/*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation.
18
-
19
- Permission to use, copy, modify, and/or distribute this software for any
20
- purpose with or without fee is hereby granted.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
- PERFORMANCE OF THIS SOFTWARE.
29
- ***************************************************************************** */
30
- var M=function(e,t){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},k=function(){return k=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},k.apply(this,arguments)}},80:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.serialize=t.deserialize=t.Serializable=t.JsonProperty=t.bind=t.action=t.exportAction=t.container=t.inject=t.singleton=t.injectable=void 0;var o=r(129),i=r(113),u=n(i),a=r(112),c=n(a),f=r(114),s=r(130);t.injectable=o.injectable,t.singleton=o.singleton,t.inject=o.inject,t.container=o.container,t.exportAction=u.default,t.action=c.default,t.bind=f.boundMethod,t.JsonProperty=s.JsonProperty,t.Serializable=s.Serializable,t.deserialize=s.deserialize,t.serialize=s.serialize}},[211])});
1431
+ var Reflect;
1432
+ (function (Reflect) {
1433
+ // Metadata Proposal
1434
+ // https://rbuckton.github.io/reflect-metadata/
1435
+ (function (factory) {
1436
+ var root = typeof global === "object" ? global :
1437
+ typeof self === "object" ? self :
1438
+ typeof this === "object" ? this :
1439
+ Function("return this;")();
1440
+ var exporter = makeExporter(Reflect);
1441
+ if (typeof root.Reflect === "undefined") {
1442
+ root.Reflect = Reflect;
1443
+ }
1444
+ else {
1445
+ exporter = makeExporter(root.Reflect, exporter);
1446
+ }
1447
+ factory(exporter);
1448
+ function makeExporter(target, previous) {
1449
+ return function (key, value) {
1450
+ if (typeof target[key] !== "function") {
1451
+ Object.defineProperty(target, key, { configurable: true, writable: true, value: value });
1452
+ }
1453
+ if (previous)
1454
+ previous(key, value);
1455
+ };
1456
+ }
1457
+ })(function (exporter) {
1458
+ var hasOwn = Object.prototype.hasOwnProperty;
1459
+ // feature test for Symbol support
1460
+ var supportsSymbol = typeof Symbol === "function";
1461
+ var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive";
1462
+ var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator";
1463
+ var supportsCreate = typeof Object.create === "function"; // feature test for Object.create support
1464
+ var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support
1465
+ var downLevel = !supportsCreate && !supportsProto;
1466
+ var HashMap = {
1467
+ // create an object in dictionary mode (a.k.a. "slow" mode in v8)
1468
+ create: supportsCreate
1469
+ ? function () { return MakeDictionary(Object.create(null)); }
1470
+ : supportsProto
1471
+ ? function () { return MakeDictionary({ __proto__: null }); }
1472
+ : function () { return MakeDictionary({}); },
1473
+ has: downLevel
1474
+ ? function (map, key) { return hasOwn.call(map, key); }
1475
+ : function (map, key) { return key in map; },
1476
+ get: downLevel
1477
+ ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }
1478
+ : function (map, key) { return map[key]; },
1479
+ };
1480
+ // Load global or shim versions of Map, Set, and WeakMap
1481
+ var functionPrototype = Object.getPrototypeOf(Function);
1482
+ var usePolyfill = typeof process === "object" && process["env" + ""] && process["env" + ""]["REFLECT_METADATA_USE_MAP_POLYFILL"] === "true";
1483
+ var _Map = !usePolyfill && typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : CreateMapPolyfill();
1484
+ var _Set = !usePolyfill && typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : CreateSetPolyfill();
1485
+ var _WeakMap = !usePolyfill && typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
1486
+ // [[Metadata]] internal slot
1487
+ // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots
1488
+ var Metadata = new _WeakMap();
1489
+ /**
1490
+ * Applies a set of decorators to a property of a target object.
1491
+ * @param decorators An array of decorators.
1492
+ * @param target The target object.
1493
+ * @param propertyKey (Optional) The property key to decorate.
1494
+ * @param attributes (Optional) The property descriptor for the target key.
1495
+ * @remarks Decorators are applied in reverse order.
1496
+ * @example
1497
+ *
1498
+ * class Example {
1499
+ * // property declarations are not part of ES6, though they are valid in TypeScript:
1500
+ * // static staticProperty;
1501
+ * // property;
1502
+ *
1503
+ * constructor(p) { }
1504
+ * static staticMethod(p) { }
1505
+ * method(p) { }
1506
+ * }
1507
+ *
1508
+ * // constructor
1509
+ * Example = Reflect.decorate(decoratorsArray, Example);
1510
+ *
1511
+ * // property (on constructor)
1512
+ * Reflect.decorate(decoratorsArray, Example, "staticProperty");
1513
+ *
1514
+ * // property (on prototype)
1515
+ * Reflect.decorate(decoratorsArray, Example.prototype, "property");
1516
+ *
1517
+ * // method (on constructor)
1518
+ * Object.defineProperty(Example, "staticMethod",
1519
+ * Reflect.decorate(decoratorsArray, Example, "staticMethod",
1520
+ * Object.getOwnPropertyDescriptor(Example, "staticMethod")));
1521
+ *
1522
+ * // method (on prototype)
1523
+ * Object.defineProperty(Example.prototype, "method",
1524
+ * Reflect.decorate(decoratorsArray, Example.prototype, "method",
1525
+ * Object.getOwnPropertyDescriptor(Example.prototype, "method")));
1526
+ *
1527
+ */
1528
+ function decorate(decorators, target, propertyKey, attributes) {
1529
+ if (!IsUndefined(propertyKey)) {
1530
+ if (!IsArray(decorators))
1531
+ throw new TypeError();
1532
+ if (!IsObject(target))
1533
+ throw new TypeError();
1534
+ if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))
1535
+ throw new TypeError();
1536
+ if (IsNull(attributes))
1537
+ attributes = undefined;
1538
+ propertyKey = ToPropertyKey(propertyKey);
1539
+ return DecorateProperty(decorators, target, propertyKey, attributes);
1540
+ }
1541
+ else {
1542
+ if (!IsArray(decorators))
1543
+ throw new TypeError();
1544
+ if (!IsConstructor(target))
1545
+ throw new TypeError();
1546
+ return DecorateConstructor(decorators, target);
1547
+ }
1548
+ }
1549
+ exporter("decorate", decorate);
1550
+ // 4.1.2 Reflect.metadata(metadataKey, metadataValue)
1551
+ // https://rbuckton.github.io/reflect-metadata/#reflect.metadata
1552
+ /**
1553
+ * A default metadata decorator factory that can be used on a class, class member, or parameter.
1554
+ * @param metadataKey The key for the metadata entry.
1555
+ * @param metadataValue The value for the metadata entry.
1556
+ * @returns A decorator function.
1557
+ * @remarks
1558
+ * If `metadataKey` is already defined for the target and target key, the
1559
+ * metadataValue for that key will be overwritten.
1560
+ * @example
1561
+ *
1562
+ * // constructor
1563
+ * @Reflect.metadata(key, value)
1564
+ * class Example {
1565
+ * }
1566
+ *
1567
+ * // property (on constructor, TypeScript only)
1568
+ * class Example {
1569
+ * @Reflect.metadata(key, value)
1570
+ * static staticProperty;
1571
+ * }
1572
+ *
1573
+ * // property (on prototype, TypeScript only)
1574
+ * class Example {
1575
+ * @Reflect.metadata(key, value)
1576
+ * property;
1577
+ * }
1578
+ *
1579
+ * // method (on constructor)
1580
+ * class Example {
1581
+ * @Reflect.metadata(key, value)
1582
+ * static staticMethod() { }
1583
+ * }
1584
+ *
1585
+ * // method (on prototype)
1586
+ * class Example {
1587
+ * @Reflect.metadata(key, value)
1588
+ * method() { }
1589
+ * }
1590
+ *
1591
+ */
1592
+ function metadata(metadataKey, metadataValue) {
1593
+ function decorator(target, propertyKey) {
1594
+ if (!IsObject(target))
1595
+ throw new TypeError();
1596
+ if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))
1597
+ throw new TypeError();
1598
+ OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
1599
+ }
1600
+ return decorator;
1601
+ }
1602
+ exporter("metadata", metadata);
1603
+ /**
1604
+ * Define a unique metadata entry on the target.
1605
+ * @param metadataKey A key used to store and retrieve metadata.
1606
+ * @param metadataValue A value that contains attached metadata.
1607
+ * @param target The target object on which to define metadata.
1608
+ * @param propertyKey (Optional) The property key for the target.
1609
+ * @example
1610
+ *
1611
+ * class Example {
1612
+ * // property declarations are not part of ES6, though they are valid in TypeScript:
1613
+ * // static staticProperty;
1614
+ * // property;
1615
+ *
1616
+ * constructor(p) { }
1617
+ * static staticMethod(p) { }
1618
+ * method(p) { }
1619
+ * }
1620
+ *
1621
+ * // constructor
1622
+ * Reflect.defineMetadata("custom:annotation", options, Example);
1623
+ *
1624
+ * // property (on constructor)
1625
+ * Reflect.defineMetadata("custom:annotation", options, Example, "staticProperty");
1626
+ *
1627
+ * // property (on prototype)
1628
+ * Reflect.defineMetadata("custom:annotation", options, Example.prototype, "property");
1629
+ *
1630
+ * // method (on constructor)
1631
+ * Reflect.defineMetadata("custom:annotation", options, Example, "staticMethod");
1632
+ *
1633
+ * // method (on prototype)
1634
+ * Reflect.defineMetadata("custom:annotation", options, Example.prototype, "method");
1635
+ *
1636
+ * // decorator factory as metadata-producing annotation.
1637
+ * function MyAnnotation(options): Decorator {
1638
+ * return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key);
1639
+ * }
1640
+ *
1641
+ */
1642
+ function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
1643
+ if (!IsObject(target))
1644
+ throw new TypeError();
1645
+ if (!IsUndefined(propertyKey))
1646
+ propertyKey = ToPropertyKey(propertyKey);
1647
+ return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
1648
+ }
1649
+ exporter("defineMetadata", defineMetadata);
1650
+ /**
1651
+ * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.
1652
+ * @param metadataKey A key used to store and retrieve metadata.
1653
+ * @param target The target object on which the metadata is defined.
1654
+ * @param propertyKey (Optional) The property key for the target.
1655
+ * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.
1656
+ * @example
1657
+ *
1658
+ * class Example {
1659
+ * // property declarations are not part of ES6, though they are valid in TypeScript:
1660
+ * // static staticProperty;
1661
+ * // property;
1662
+ *
1663
+ * constructor(p) { }
1664
+ * static staticMethod(p) { }
1665
+ * method(p) { }
1666
+ * }
1667
+ *
1668
+ * // constructor
1669
+ * result = Reflect.hasMetadata("custom:annotation", Example);
1670
+ *
1671
+ * // property (on constructor)
1672
+ * result = Reflect.hasMetadata("custom:annotation", Example, "staticProperty");
1673
+ *
1674
+ * // property (on prototype)
1675
+ * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "property");
1676
+ *
1677
+ * // method (on constructor)
1678
+ * result = Reflect.hasMetadata("custom:annotation", Example, "staticMethod");
1679
+ *
1680
+ * // method (on prototype)
1681
+ * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "method");
1682
+ *
1683
+ */
1684
+ function hasMetadata(metadataKey, target, propertyKey) {
1685
+ if (!IsObject(target))
1686
+ throw new TypeError();
1687
+ if (!IsUndefined(propertyKey))
1688
+ propertyKey = ToPropertyKey(propertyKey);
1689
+ return OrdinaryHasMetadata(metadataKey, target, propertyKey);
1690
+ }
1691
+ exporter("hasMetadata", hasMetadata);
1692
+ /**
1693
+ * Gets a value indicating whether the target object has the provided metadata key defined.
1694
+ * @param metadataKey A key used to store and retrieve metadata.
1695
+ * @param target The target object on which the metadata is defined.
1696
+ * @param propertyKey (Optional) The property key for the target.
1697
+ * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.
1698
+ * @example
1699
+ *
1700
+ * class Example {
1701
+ * // property declarations are not part of ES6, though they are valid in TypeScript:
1702
+ * // static staticProperty;
1703
+ * // property;
1704
+ *
1705
+ * constructor(p) { }
1706
+ * static staticMethod(p) { }
1707
+ * method(p) { }
1708
+ * }
1709
+ *
1710
+ * // constructor
1711
+ * result = Reflect.hasOwnMetadata("custom:annotation", Example);
1712
+ *
1713
+ * // property (on constructor)
1714
+ * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticProperty");
1715
+ *
1716
+ * // property (on prototype)
1717
+ * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "property");
1718
+ *
1719
+ * // method (on constructor)
1720
+ * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticMethod");
1721
+ *
1722
+ * // method (on prototype)
1723
+ * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "method");
1724
+ *
1725
+ */
1726
+ function hasOwnMetadata(metadataKey, target, propertyKey) {
1727
+ if (!IsObject(target))
1728
+ throw new TypeError();
1729
+ if (!IsUndefined(propertyKey))
1730
+ propertyKey = ToPropertyKey(propertyKey);
1731
+ return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
1732
+ }
1733
+ exporter("hasOwnMetadata", hasOwnMetadata);
1734
+ /**
1735
+ * Gets the metadata value for the provided metadata key on the target object or its prototype chain.
1736
+ * @param metadataKey A key used to store and retrieve metadata.
1737
+ * @param target The target object on which the metadata is defined.
1738
+ * @param propertyKey (Optional) The property key for the target.
1739
+ * @returns The metadata value for the metadata key if found; otherwise, `undefined`.
1740
+ * @example
1741
+ *
1742
+ * class Example {
1743
+ * // property declarations are not part of ES6, though they are valid in TypeScript:
1744
+ * // static staticProperty;
1745
+ * // property;
1746
+ *
1747
+ * constructor(p) { }
1748
+ * static staticMethod(p) { }
1749
+ * method(p) { }
1750
+ * }
1751
+ *
1752
+ * // constructor
1753
+ * result = Reflect.getMetadata("custom:annotation", Example);
1754
+ *
1755
+ * // property (on constructor)
1756
+ * result = Reflect.getMetadata("custom:annotation", Example, "staticProperty");
1757
+ *
1758
+ * // property (on prototype)
1759
+ * result = Reflect.getMetadata("custom:annotation", Example.prototype, "property");
1760
+ *
1761
+ * // method (on constructor)
1762
+ * result = Reflect.getMetadata("custom:annotation", Example, "staticMethod");
1763
+ *
1764
+ * // method (on prototype)
1765
+ * result = Reflect.getMetadata("custom:annotation", Example.prototype, "method");
1766
+ *
1767
+ */
1768
+ function getMetadata(metadataKey, target, propertyKey) {
1769
+ if (!IsObject(target))
1770
+ throw new TypeError();
1771
+ if (!IsUndefined(propertyKey))
1772
+ propertyKey = ToPropertyKey(propertyKey);
1773
+ return OrdinaryGetMetadata(metadataKey, target, propertyKey);
1774
+ }
1775
+ exporter("getMetadata", getMetadata);
1776
+ /**
1777
+ * Gets the metadata value for the provided metadata key on the target object.
1778
+ * @param metadataKey A key used to store and retrieve metadata.
1779
+ * @param target The target object on which the metadata is defined.
1780
+ * @param propertyKey (Optional) The property key for the target.
1781
+ * @returns The metadata value for the metadata key if found; otherwise, `undefined`.
1782
+ * @example
1783
+ *
1784
+ * class Example {
1785
+ * // property declarations are not part of ES6, though they are valid in TypeScript:
1786
+ * // static staticProperty;
1787
+ * // property;
1788
+ *
1789
+ * constructor(p) { }
1790
+ * static staticMethod(p) { }
1791
+ * method(p) { }
1792
+ * }
1793
+ *
1794
+ * // constructor
1795
+ * result = Reflect.getOwnMetadata("custom:annotation", Example);
1796
+ *
1797
+ * // property (on constructor)
1798
+ * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticProperty");
1799
+ *
1800
+ * // property (on prototype)
1801
+ * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "property");
1802
+ *
1803
+ * // method (on constructor)
1804
+ * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticMethod");
1805
+ *
1806
+ * // method (on prototype)
1807
+ * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "method");
1808
+ *
1809
+ */
1810
+ function getOwnMetadata(metadataKey, target, propertyKey) {
1811
+ if (!IsObject(target))
1812
+ throw new TypeError();
1813
+ if (!IsUndefined(propertyKey))
1814
+ propertyKey = ToPropertyKey(propertyKey);
1815
+ return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);
1816
+ }
1817
+ exporter("getOwnMetadata", getOwnMetadata);
1818
+ /**
1819
+ * Gets the metadata keys defined on the target object or its prototype chain.
1820
+ * @param target The target object on which the metadata is defined.
1821
+ * @param propertyKey (Optional) The property key for the target.
1822
+ * @returns An array of unique metadata keys.
1823
+ * @example
1824
+ *
1825
+ * class Example {
1826
+ * // property declarations are not part of ES6, though they are valid in TypeScript:
1827
+ * // static staticProperty;
1828
+ * // property;
1829
+ *
1830
+ * constructor(p) { }
1831
+ * static staticMethod(p) { }
1832
+ * method(p) { }
1833
+ * }
1834
+ *
1835
+ * // constructor
1836
+ * result = Reflect.getMetadataKeys(Example);
1837
+ *
1838
+ * // property (on constructor)
1839
+ * result = Reflect.getMetadataKeys(Example, "staticProperty");
1840
+ *
1841
+ * // property (on prototype)
1842
+ * result = Reflect.getMetadataKeys(Example.prototype, "property");
1843
+ *
1844
+ * // method (on constructor)
1845
+ * result = Reflect.getMetadataKeys(Example, "staticMethod");
1846
+ *
1847
+ * // method (on prototype)
1848
+ * result = Reflect.getMetadataKeys(Example.prototype, "method");
1849
+ *
1850
+ */
1851
+ function getMetadataKeys(target, propertyKey) {
1852
+ if (!IsObject(target))
1853
+ throw new TypeError();
1854
+ if (!IsUndefined(propertyKey))
1855
+ propertyKey = ToPropertyKey(propertyKey);
1856
+ return OrdinaryMetadataKeys(target, propertyKey);
1857
+ }
1858
+ exporter("getMetadataKeys", getMetadataKeys);
1859
+ /**
1860
+ * Gets the unique metadata keys defined on the target object.
1861
+ * @param target The target object on which the metadata is defined.
1862
+ * @param propertyKey (Optional) The property key for the target.
1863
+ * @returns An array of unique metadata keys.
1864
+ * @example
1865
+ *
1866
+ * class Example {
1867
+ * // property declarations are not part of ES6, though they are valid in TypeScript:
1868
+ * // static staticProperty;
1869
+ * // property;
1870
+ *
1871
+ * constructor(p) { }
1872
+ * static staticMethod(p) { }
1873
+ * method(p) { }
1874
+ * }
1875
+ *
1876
+ * // constructor
1877
+ * result = Reflect.getOwnMetadataKeys(Example);
1878
+ *
1879
+ * // property (on constructor)
1880
+ * result = Reflect.getOwnMetadataKeys(Example, "staticProperty");
1881
+ *
1882
+ * // property (on prototype)
1883
+ * result = Reflect.getOwnMetadataKeys(Example.prototype, "property");
1884
+ *
1885
+ * // method (on constructor)
1886
+ * result = Reflect.getOwnMetadataKeys(Example, "staticMethod");
1887
+ *
1888
+ * // method (on prototype)
1889
+ * result = Reflect.getOwnMetadataKeys(Example.prototype, "method");
1890
+ *
1891
+ */
1892
+ function getOwnMetadataKeys(target, propertyKey) {
1893
+ if (!IsObject(target))
1894
+ throw new TypeError();
1895
+ if (!IsUndefined(propertyKey))
1896
+ propertyKey = ToPropertyKey(propertyKey);
1897
+ return OrdinaryOwnMetadataKeys(target, propertyKey);
1898
+ }
1899
+ exporter("getOwnMetadataKeys", getOwnMetadataKeys);
1900
+ /**
1901
+ * Deletes the metadata entry from the target object with the provided key.
1902
+ * @param metadataKey A key used to store and retrieve metadata.
1903
+ * @param target The target object on which the metadata is defined.
1904
+ * @param propertyKey (Optional) The property key for the target.
1905
+ * @returns `true` if the metadata entry was found and deleted; otherwise, false.
1906
+ * @example
1907
+ *
1908
+ * class Example {
1909
+ * // property declarations are not part of ES6, though they are valid in TypeScript:
1910
+ * // static staticProperty;
1911
+ * // property;
1912
+ *
1913
+ * constructor(p) { }
1914
+ * static staticMethod(p) { }
1915
+ * method(p) { }
1916
+ * }
1917
+ *
1918
+ * // constructor
1919
+ * result = Reflect.deleteMetadata("custom:annotation", Example);
1920
+ *
1921
+ * // property (on constructor)
1922
+ * result = Reflect.deleteMetadata("custom:annotation", Example, "staticProperty");
1923
+ *
1924
+ * // property (on prototype)
1925
+ * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "property");
1926
+ *
1927
+ * // method (on constructor)
1928
+ * result = Reflect.deleteMetadata("custom:annotation", Example, "staticMethod");
1929
+ *
1930
+ * // method (on prototype)
1931
+ * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "method");
1932
+ *
1933
+ */
1934
+ function deleteMetadata(metadataKey, target, propertyKey) {
1935
+ if (!IsObject(target))
1936
+ throw new TypeError();
1937
+ if (!IsUndefined(propertyKey))
1938
+ propertyKey = ToPropertyKey(propertyKey);
1939
+ var metadataMap = GetOrCreateMetadataMap(target, propertyKey, /*Create*/ false);
1940
+ if (IsUndefined(metadataMap))
1941
+ return false;
1942
+ if (!metadataMap.delete(metadataKey))
1943
+ return false;
1944
+ if (metadataMap.size > 0)
1945
+ return true;
1946
+ var targetMetadata = Metadata.get(target);
1947
+ targetMetadata.delete(propertyKey);
1948
+ if (targetMetadata.size > 0)
1949
+ return true;
1950
+ Metadata.delete(target);
1951
+ return true;
1952
+ }
1953
+ exporter("deleteMetadata", deleteMetadata);
1954
+ function DecorateConstructor(decorators, target) {
1955
+ for (var i = decorators.length - 1; i >= 0; --i) {
1956
+ var decorator = decorators[i];
1957
+ var decorated = decorator(target);
1958
+ if (!IsUndefined(decorated) && !IsNull(decorated)) {
1959
+ if (!IsConstructor(decorated))
1960
+ throw new TypeError();
1961
+ target = decorated;
1962
+ }
1963
+ }
1964
+ return target;
1965
+ }
1966
+ function DecorateProperty(decorators, target, propertyKey, descriptor) {
1967
+ for (var i = decorators.length - 1; i >= 0; --i) {
1968
+ var decorator = decorators[i];
1969
+ var decorated = decorator(target, propertyKey, descriptor);
1970
+ if (!IsUndefined(decorated) && !IsNull(decorated)) {
1971
+ if (!IsObject(decorated))
1972
+ throw new TypeError();
1973
+ descriptor = decorated;
1974
+ }
1975
+ }
1976
+ return descriptor;
1977
+ }
1978
+ function GetOrCreateMetadataMap(O, P, Create) {
1979
+ var targetMetadata = Metadata.get(O);
1980
+ if (IsUndefined(targetMetadata)) {
1981
+ if (!Create)
1982
+ return undefined;
1983
+ targetMetadata = new _Map();
1984
+ Metadata.set(O, targetMetadata);
1985
+ }
1986
+ var metadataMap = targetMetadata.get(P);
1987
+ if (IsUndefined(metadataMap)) {
1988
+ if (!Create)
1989
+ return undefined;
1990
+ metadataMap = new _Map();
1991
+ targetMetadata.set(P, metadataMap);
1992
+ }
1993
+ return metadataMap;
1994
+ }
1995
+ // 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)
1996
+ // https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata
1997
+ function OrdinaryHasMetadata(MetadataKey, O, P) {
1998
+ var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
1999
+ if (hasOwn)
2000
+ return true;
2001
+ var parent = OrdinaryGetPrototypeOf(O);
2002
+ if (!IsNull(parent))
2003
+ return OrdinaryHasMetadata(MetadataKey, parent, P);
2004
+ return false;
2005
+ }
2006
+ // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)
2007
+ // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata
2008
+ function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
2009
+ var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
2010
+ if (IsUndefined(metadataMap))
2011
+ return false;
2012
+ return ToBoolean(metadataMap.has(MetadataKey));
2013
+ }
2014
+ // 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)
2015
+ // https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata
2016
+ function OrdinaryGetMetadata(MetadataKey, O, P) {
2017
+ var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
2018
+ if (hasOwn)
2019
+ return OrdinaryGetOwnMetadata(MetadataKey, O, P);
2020
+ var parent = OrdinaryGetPrototypeOf(O);
2021
+ if (!IsNull(parent))
2022
+ return OrdinaryGetMetadata(MetadataKey, parent, P);
2023
+ return undefined;
2024
+ }
2025
+ // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)
2026
+ // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata
2027
+ function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
2028
+ var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
2029
+ if (IsUndefined(metadataMap))
2030
+ return undefined;
2031
+ return metadataMap.get(MetadataKey);
2032
+ }
2033
+ // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)
2034
+ // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata
2035
+ function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
2036
+ var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true);
2037
+ metadataMap.set(MetadataKey, MetadataValue);
2038
+ }
2039
+ // 3.1.6.1 OrdinaryMetadataKeys(O, P)
2040
+ // https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys
2041
+ function OrdinaryMetadataKeys(O, P) {
2042
+ var ownKeys = OrdinaryOwnMetadataKeys(O, P);
2043
+ var parent = OrdinaryGetPrototypeOf(O);
2044
+ if (parent === null)
2045
+ return ownKeys;
2046
+ var parentKeys = OrdinaryMetadataKeys(parent, P);
2047
+ if (parentKeys.length <= 0)
2048
+ return ownKeys;
2049
+ if (ownKeys.length <= 0)
2050
+ return parentKeys;
2051
+ var set = new _Set();
2052
+ var keys = [];
2053
+ for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {
2054
+ var key = ownKeys_1[_i];
2055
+ var hasKey = set.has(key);
2056
+ if (!hasKey) {
2057
+ set.add(key);
2058
+ keys.push(key);
2059
+ }
2060
+ }
2061
+ for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {
2062
+ var key = parentKeys_1[_a];
2063
+ var hasKey = set.has(key);
2064
+ if (!hasKey) {
2065
+ set.add(key);
2066
+ keys.push(key);
2067
+ }
2068
+ }
2069
+ return keys;
2070
+ }
2071
+ // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)
2072
+ // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys
2073
+ function OrdinaryOwnMetadataKeys(O, P) {
2074
+ var keys = [];
2075
+ var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
2076
+ if (IsUndefined(metadataMap))
2077
+ return keys;
2078
+ var keysObj = metadataMap.keys();
2079
+ var iterator = GetIterator(keysObj);
2080
+ var k = 0;
2081
+ while (true) {
2082
+ var next = IteratorStep(iterator);
2083
+ if (!next) {
2084
+ keys.length = k;
2085
+ return keys;
2086
+ }
2087
+ var nextValue = IteratorValue(next);
2088
+ try {
2089
+ keys[k] = nextValue;
2090
+ }
2091
+ catch (e) {
2092
+ try {
2093
+ IteratorClose(iterator);
2094
+ }
2095
+ finally {
2096
+ throw e;
2097
+ }
2098
+ }
2099
+ k++;
2100
+ }
2101
+ }
2102
+ // 6 ECMAScript Data Typ0es and Values
2103
+ // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values
2104
+ function Type(x) {
2105
+ if (x === null)
2106
+ return 1 /* Null */;
2107
+ switch (typeof x) {
2108
+ case "undefined": return 0 /* Undefined */;
2109
+ case "boolean": return 2 /* Boolean */;
2110
+ case "string": return 3 /* String */;
2111
+ case "symbol": return 4 /* Symbol */;
2112
+ case "number": return 5 /* Number */;
2113
+ case "object": return x === null ? 1 /* Null */ : 6 /* Object */;
2114
+ default: return 6 /* Object */;
2115
+ }
2116
+ }
2117
+ // 6.1.1 The Undefined Type
2118
+ // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type
2119
+ function IsUndefined(x) {
2120
+ return x === undefined;
2121
+ }
2122
+ // 6.1.2 The Null Type
2123
+ // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type
2124
+ function IsNull(x) {
2125
+ return x === null;
2126
+ }
2127
+ // 6.1.5 The Symbol Type
2128
+ // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type
2129
+ function IsSymbol(x) {
2130
+ return typeof x === "symbol";
2131
+ }
2132
+ // 6.1.7 The Object Type
2133
+ // https://tc39.github.io/ecma262/#sec-object-type
2134
+ function IsObject(x) {
2135
+ return typeof x === "object" ? x !== null : typeof x === "function";
2136
+ }
2137
+ // 7.1 Type Conversion
2138
+ // https://tc39.github.io/ecma262/#sec-type-conversion
2139
+ // 7.1.1 ToPrimitive(input [, PreferredType])
2140
+ // https://tc39.github.io/ecma262/#sec-toprimitive
2141
+ function ToPrimitive(input, PreferredType) {
2142
+ switch (Type(input)) {
2143
+ case 0 /* Undefined */: return input;
2144
+ case 1 /* Null */: return input;
2145
+ case 2 /* Boolean */: return input;
2146
+ case 3 /* String */: return input;
2147
+ case 4 /* Symbol */: return input;
2148
+ case 5 /* Number */: return input;
2149
+ }
2150
+ var hint = PreferredType === 3 /* String */ ? "string" : PreferredType === 5 /* Number */ ? "number" : "default";
2151
+ var exoticToPrim = GetMethod(input, toPrimitiveSymbol);
2152
+ if (exoticToPrim !== undefined) {
2153
+ var result = exoticToPrim.call(input, hint);
2154
+ if (IsObject(result))
2155
+ throw new TypeError();
2156
+ return result;
2157
+ }
2158
+ return OrdinaryToPrimitive(input, hint === "default" ? "number" : hint);
2159
+ }
2160
+ // 7.1.1.1 OrdinaryToPrimitive(O, hint)
2161
+ // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive
2162
+ function OrdinaryToPrimitive(O, hint) {
2163
+ if (hint === "string") {
2164
+ var toString_1 = O.toString;
2165
+ if (IsCallable(toString_1)) {
2166
+ var result = toString_1.call(O);
2167
+ if (!IsObject(result))
2168
+ return result;
2169
+ }
2170
+ var valueOf = O.valueOf;
2171
+ if (IsCallable(valueOf)) {
2172
+ var result = valueOf.call(O);
2173
+ if (!IsObject(result))
2174
+ return result;
2175
+ }
2176
+ }
2177
+ else {
2178
+ var valueOf = O.valueOf;
2179
+ if (IsCallable(valueOf)) {
2180
+ var result = valueOf.call(O);
2181
+ if (!IsObject(result))
2182
+ return result;
2183
+ }
2184
+ var toString_2 = O.toString;
2185
+ if (IsCallable(toString_2)) {
2186
+ var result = toString_2.call(O);
2187
+ if (!IsObject(result))
2188
+ return result;
2189
+ }
2190
+ }
2191
+ throw new TypeError();
2192
+ }
2193
+ // 7.1.2 ToBoolean(argument)
2194
+ // https://tc39.github.io/ecma262/2016/#sec-toboolean
2195
+ function ToBoolean(argument) {
2196
+ return !!argument;
2197
+ }
2198
+ // 7.1.12 ToString(argument)
2199
+ // https://tc39.github.io/ecma262/#sec-tostring
2200
+ function ToString(argument) {
2201
+ return "" + argument;
2202
+ }
2203
+ // 7.1.14 ToPropertyKey(argument)
2204
+ // https://tc39.github.io/ecma262/#sec-topropertykey
2205
+ function ToPropertyKey(argument) {
2206
+ var key = ToPrimitive(argument, 3 /* String */);
2207
+ if (IsSymbol(key))
2208
+ return key;
2209
+ return ToString(key);
2210
+ }
2211
+ // 7.2 Testing and Comparison Operations
2212
+ // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations
2213
+ // 7.2.2 IsArray(argument)
2214
+ // https://tc39.github.io/ecma262/#sec-isarray
2215
+ function IsArray(argument) {
2216
+ return Array.isArray
2217
+ ? Array.isArray(argument)
2218
+ : argument instanceof Object
2219
+ ? argument instanceof Array
2220
+ : Object.prototype.toString.call(argument) === "[object Array]";
2221
+ }
2222
+ // 7.2.3 IsCallable(argument)
2223
+ // https://tc39.github.io/ecma262/#sec-iscallable
2224
+ function IsCallable(argument) {
2225
+ // NOTE: This is an approximation as we cannot check for [[Call]] internal method.
2226
+ return typeof argument === "function";
2227
+ }
2228
+ // 7.2.4 IsConstructor(argument)
2229
+ // https://tc39.github.io/ecma262/#sec-isconstructor
2230
+ function IsConstructor(argument) {
2231
+ // NOTE: This is an approximation as we cannot check for [[Construct]] internal method.
2232
+ return typeof argument === "function";
2233
+ }
2234
+ // 7.2.7 IsPropertyKey(argument)
2235
+ // https://tc39.github.io/ecma262/#sec-ispropertykey
2236
+ function IsPropertyKey(argument) {
2237
+ switch (Type(argument)) {
2238
+ case 3 /* String */: return true;
2239
+ case 4 /* Symbol */: return true;
2240
+ default: return false;
2241
+ }
2242
+ }
2243
+ // 7.3 Operations on Objects
2244
+ // https://tc39.github.io/ecma262/#sec-operations-on-objects
2245
+ // 7.3.9 GetMethod(V, P)
2246
+ // https://tc39.github.io/ecma262/#sec-getmethod
2247
+ function GetMethod(V, P) {
2248
+ var func = V[P];
2249
+ if (func === undefined || func === null)
2250
+ return undefined;
2251
+ if (!IsCallable(func))
2252
+ throw new TypeError();
2253
+ return func;
2254
+ }
2255
+ // 7.4 Operations on Iterator Objects
2256
+ // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects
2257
+ function GetIterator(obj) {
2258
+ var method = GetMethod(obj, iteratorSymbol);
2259
+ if (!IsCallable(method))
2260
+ throw new TypeError(); // from Call
2261
+ var iterator = method.call(obj);
2262
+ if (!IsObject(iterator))
2263
+ throw new TypeError();
2264
+ return iterator;
2265
+ }
2266
+ // 7.4.4 IteratorValue(iterResult)
2267
+ // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue
2268
+ function IteratorValue(iterResult) {
2269
+ return iterResult.value;
2270
+ }
2271
+ // 7.4.5 IteratorStep(iterator)
2272
+ // https://tc39.github.io/ecma262/#sec-iteratorstep
2273
+ function IteratorStep(iterator) {
2274
+ var result = iterator.next();
2275
+ return result.done ? false : result;
2276
+ }
2277
+ // 7.4.6 IteratorClose(iterator, completion)
2278
+ // https://tc39.github.io/ecma262/#sec-iteratorclose
2279
+ function IteratorClose(iterator) {
2280
+ var f = iterator["return"];
2281
+ if (f)
2282
+ f.call(iterator);
2283
+ }
2284
+ // 9.1 Ordinary Object Internal Methods and Internal Slots
2285
+ // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots
2286
+ // 9.1.1.1 OrdinaryGetPrototypeOf(O)
2287
+ // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof
2288
+ function OrdinaryGetPrototypeOf(O) {
2289
+ var proto = Object.getPrototypeOf(O);
2290
+ if (typeof O !== "function" || O === functionPrototype)
2291
+ return proto;
2292
+ // TypeScript doesn't set __proto__ in ES5, as it's non-standard.
2293
+ // Try to determine the superclass constructor. Compatible implementations
2294
+ // must either set __proto__ on a subclass constructor to the superclass constructor,
2295
+ // or ensure each class has a valid `constructor` property on its prototype that
2296
+ // points back to the constructor.
2297
+ // If this is not the same as Function.[[Prototype]], then this is definately inherited.
2298
+ // This is the case when in ES6 or when using __proto__ in a compatible browser.
2299
+ if (proto !== functionPrototype)
2300
+ return proto;
2301
+ // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.
2302
+ var prototype = O.prototype;
2303
+ var prototypeProto = prototype && Object.getPrototypeOf(prototype);
2304
+ if (prototypeProto == null || prototypeProto === Object.prototype)
2305
+ return proto;
2306
+ // If the constructor was not a function, then we cannot determine the heritage.
2307
+ var constructor = prototypeProto.constructor;
2308
+ if (typeof constructor !== "function")
2309
+ return proto;
2310
+ // If we have some kind of self-reference, then we cannot determine the heritage.
2311
+ if (constructor === O)
2312
+ return proto;
2313
+ // we have a pretty good guess at the heritage.
2314
+ return constructor;
2315
+ }
2316
+ // naive Map shim
2317
+ function CreateMapPolyfill() {
2318
+ var cacheSentinel = {};
2319
+ var arraySentinel = [];
2320
+ var MapIterator = /** @class */ (function () {
2321
+ function MapIterator(keys, values, selector) {
2322
+ this._index = 0;
2323
+ this._keys = keys;
2324
+ this._values = values;
2325
+ this._selector = selector;
2326
+ }
2327
+ MapIterator.prototype["@@iterator"] = function () { return this; };
2328
+ MapIterator.prototype[iteratorSymbol] = function () { return this; };
2329
+ MapIterator.prototype.next = function () {
2330
+ var index = this._index;
2331
+ if (index >= 0 && index < this._keys.length) {
2332
+ var result = this._selector(this._keys[index], this._values[index]);
2333
+ if (index + 1 >= this._keys.length) {
2334
+ this._index = -1;
2335
+ this._keys = arraySentinel;
2336
+ this._values = arraySentinel;
2337
+ }
2338
+ else {
2339
+ this._index++;
2340
+ }
2341
+ return { value: result, done: false };
2342
+ }
2343
+ return { value: undefined, done: true };
2344
+ };
2345
+ MapIterator.prototype.throw = function (error) {
2346
+ if (this._index >= 0) {
2347
+ this._index = -1;
2348
+ this._keys = arraySentinel;
2349
+ this._values = arraySentinel;
2350
+ }
2351
+ throw error;
2352
+ };
2353
+ MapIterator.prototype.return = function (value) {
2354
+ if (this._index >= 0) {
2355
+ this._index = -1;
2356
+ this._keys = arraySentinel;
2357
+ this._values = arraySentinel;
2358
+ }
2359
+ return { value: value, done: true };
2360
+ };
2361
+ return MapIterator;
2362
+ }());
2363
+ return /** @class */ (function () {
2364
+ function Map() {
2365
+ this._keys = [];
2366
+ this._values = [];
2367
+ this._cacheKey = cacheSentinel;
2368
+ this._cacheIndex = -2;
2369
+ }
2370
+ Object.defineProperty(Map.prototype, "size", {
2371
+ get: function () { return this._keys.length; },
2372
+ enumerable: true,
2373
+ configurable: true
2374
+ });
2375
+ Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };
2376
+ Map.prototype.get = function (key) {
2377
+ var index = this._find(key, /*insert*/ false);
2378
+ return index >= 0 ? this._values[index] : undefined;
2379
+ };
2380
+ Map.prototype.set = function (key, value) {
2381
+ var index = this._find(key, /*insert*/ true);
2382
+ this._values[index] = value;
2383
+ return this;
2384
+ };
2385
+ Map.prototype.delete = function (key) {
2386
+ var index = this._find(key, /*insert*/ false);
2387
+ if (index >= 0) {
2388
+ var size = this._keys.length;
2389
+ for (var i = index + 1; i < size; i++) {
2390
+ this._keys[i - 1] = this._keys[i];
2391
+ this._values[i - 1] = this._values[i];
2392
+ }
2393
+ this._keys.length--;
2394
+ this._values.length--;
2395
+ if (key === this._cacheKey) {
2396
+ this._cacheKey = cacheSentinel;
2397
+ this._cacheIndex = -2;
2398
+ }
2399
+ return true;
2400
+ }
2401
+ return false;
2402
+ };
2403
+ Map.prototype.clear = function () {
2404
+ this._keys.length = 0;
2405
+ this._values.length = 0;
2406
+ this._cacheKey = cacheSentinel;
2407
+ this._cacheIndex = -2;
2408
+ };
2409
+ Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };
2410
+ Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };
2411
+ Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };
2412
+ Map.prototype["@@iterator"] = function () { return this.entries(); };
2413
+ Map.prototype[iteratorSymbol] = function () { return this.entries(); };
2414
+ Map.prototype._find = function (key, insert) {
2415
+ if (this._cacheKey !== key) {
2416
+ this._cacheIndex = this._keys.indexOf(this._cacheKey = key);
2417
+ }
2418
+ if (this._cacheIndex < 0 && insert) {
2419
+ this._cacheIndex = this._keys.length;
2420
+ this._keys.push(key);
2421
+ this._values.push(undefined);
2422
+ }
2423
+ return this._cacheIndex;
2424
+ };
2425
+ return Map;
2426
+ }());
2427
+ function getKey(key, _) {
2428
+ return key;
2429
+ }
2430
+ function getValue(_, value) {
2431
+ return value;
2432
+ }
2433
+ function getEntry(key, value) {
2434
+ return [key, value];
2435
+ }
2436
+ }
2437
+ // naive Set shim
2438
+ function CreateSetPolyfill() {
2439
+ return /** @class */ (function () {
2440
+ function Set() {
2441
+ this._map = new _Map();
2442
+ }
2443
+ Object.defineProperty(Set.prototype, "size", {
2444
+ get: function () { return this._map.size; },
2445
+ enumerable: true,
2446
+ configurable: true
2447
+ });
2448
+ Set.prototype.has = function (value) { return this._map.has(value); };
2449
+ Set.prototype.add = function (value) { return this._map.set(value, value), this; };
2450
+ Set.prototype.delete = function (value) { return this._map.delete(value); };
2451
+ Set.prototype.clear = function () { this._map.clear(); };
2452
+ Set.prototype.keys = function () { return this._map.keys(); };
2453
+ Set.prototype.values = function () { return this._map.values(); };
2454
+ Set.prototype.entries = function () { return this._map.entries(); };
2455
+ Set.prototype["@@iterator"] = function () { return this.keys(); };
2456
+ Set.prototype[iteratorSymbol] = function () { return this.keys(); };
2457
+ return Set;
2458
+ }());
2459
+ }
2460
+ // naive WeakMap shim
2461
+ function CreateWeakMapPolyfill() {
2462
+ var UUID_SIZE = 16;
2463
+ var keys = HashMap.create();
2464
+ var rootKey = CreateUniqueKey();
2465
+ return /** @class */ (function () {
2466
+ function WeakMap() {
2467
+ this._key = CreateUniqueKey();
2468
+ }
2469
+ WeakMap.prototype.has = function (target) {
2470
+ var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2471
+ return table !== undefined ? HashMap.has(table, this._key) : false;
2472
+ };
2473
+ WeakMap.prototype.get = function (target) {
2474
+ var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2475
+ return table !== undefined ? HashMap.get(table, this._key) : undefined;
2476
+ };
2477
+ WeakMap.prototype.set = function (target, value) {
2478
+ var table = GetOrCreateWeakMapTable(target, /*create*/ true);
2479
+ table[this._key] = value;
2480
+ return this;
2481
+ };
2482
+ WeakMap.prototype.delete = function (target) {
2483
+ var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2484
+ return table !== undefined ? delete table[this._key] : false;
2485
+ };
2486
+ WeakMap.prototype.clear = function () {
2487
+ // NOTE: not a real clear, just makes the previous data unreachable
2488
+ this._key = CreateUniqueKey();
2489
+ };
2490
+ return WeakMap;
2491
+ }());
2492
+ function CreateUniqueKey() {
2493
+ var key;
2494
+ do
2495
+ key = "@@WeakMap@@" + CreateUUID();
2496
+ while (HashMap.has(keys, key));
2497
+ keys[key] = true;
2498
+ return key;
2499
+ }
2500
+ function GetOrCreateWeakMapTable(target, create) {
2501
+ if (!hasOwn.call(target, rootKey)) {
2502
+ if (!create)
2503
+ return undefined;
2504
+ Object.defineProperty(target, rootKey, { value: HashMap.create() });
2505
+ }
2506
+ return target[rootKey];
2507
+ }
2508
+ function FillRandomBytes(buffer, size) {
2509
+ for (var i = 0; i < size; ++i)
2510
+ buffer[i] = Math.random() * 0xff | 0;
2511
+ return buffer;
2512
+ }
2513
+ function GenRandomBytes(size) {
2514
+ if (typeof Uint8Array === "function") {
2515
+ if (typeof crypto !== "undefined")
2516
+ return crypto.getRandomValues(new Uint8Array(size));
2517
+ if (typeof msCrypto !== "undefined")
2518
+ return msCrypto.getRandomValues(new Uint8Array(size));
2519
+ return FillRandomBytes(new Uint8Array(size), size);
2520
+ }
2521
+ return FillRandomBytes(new Array(size), size);
2522
+ }
2523
+ function CreateUUID() {
2524
+ var data = GenRandomBytes(UUID_SIZE);
2525
+ // mark as random - RFC 4122 § 4.4
2526
+ data[6] = data[6] & 0x4f | 0x40;
2527
+ data[8] = data[8] & 0xbf | 0x80;
2528
+ var result = "";
2529
+ for (var offset = 0; offset < UUID_SIZE; ++offset) {
2530
+ var byte = data[offset];
2531
+ if (offset === 4 || offset === 6 || offset === 8)
2532
+ result += "-";
2533
+ if (byte < 16)
2534
+ result += "0";
2535
+ result += byte.toString(16).toLowerCase();
2536
+ }
2537
+ return result;
2538
+ }
2539
+ }
2540
+ // uses a heuristic used by v8 and chakra to force an object into dictionary mode.
2541
+ function MakeDictionary(obj) {
2542
+ obj.__ = undefined;
2543
+ delete obj.__;
2544
+ return obj;
2545
+ }
2546
+ });
2547
+ })(Reflect || (Reflect = {}));
2548
+
2549
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2), __webpack_require__(3)))
2550
+
2551
+ /***/ }),
2552
+
2553
+ /***/ 53:
2554
+ /***/ (function(module, exports, __webpack_require__) {
2555
+
2556
+ "use strict";
2557
+
2558
+
2559
+ Object.defineProperty(exports, "__esModule", {
2560
+ value: true
2561
+ });
2562
+
2563
+ var _reflectionHelpers = __webpack_require__(32);
2564
+
2565
+ var _dependencyContainer = __webpack_require__(16);
2566
+
2567
+ function injectable() {
2568
+ return function (target) {
2569
+ _dependencyContainer.typeInfo.set(target, (0, _reflectionHelpers.getParamInfo)(target));
2570
+ };
2571
+ }
2572
+ exports.default = injectable;
2573
+
2574
+ /***/ }),
2575
+
2576
+ /***/ 54:
2577
+ /***/ (function(module, exports, __webpack_require__) {
2578
+
2579
+ "use strict";
2580
+
2581
+
2582
+ Object.defineProperty(exports, "__esModule", {
2583
+ value: true
2584
+ });
2585
+
2586
+ var _classProvider = __webpack_require__(124);
2587
+
2588
+ Object.defineProperty(exports, "isClassProvider", {
2589
+ enumerable: true,
2590
+ get: function get() {
2591
+ return _classProvider.isClassProvider;
2592
+ }
2593
+ });
2594
+
2595
+ var _factoryProvider = __webpack_require__(125);
2596
+
2597
+ Object.defineProperty(exports, "isFactoryProvider", {
2598
+ enumerable: true,
2599
+ get: function get() {
2600
+ return _factoryProvider.isFactoryProvider;
2601
+ }
2602
+ });
2603
+
2604
+ var _injectionToken = __webpack_require__(126);
2605
+
2606
+ Object.defineProperty(exports, "isNormalToken", {
2607
+ enumerable: true,
2608
+ get: function get() {
2609
+ return _injectionToken.isNormalToken;
2610
+ }
2611
+ });
2612
+
2613
+ var _tokenProvider = __webpack_require__(127);
2614
+
2615
+ Object.defineProperty(exports, "isTokenProvider", {
2616
+ enumerable: true,
2617
+ get: function get() {
2618
+ return _tokenProvider.isTokenProvider;
2619
+ }
2620
+ });
2621
+
2622
+ var _valueProvider = __webpack_require__(128);
2623
+
2624
+ Object.defineProperty(exports, "isValueProvider", {
2625
+ enumerable: true,
2626
+ get: function get() {
2627
+ return _valueProvider.isValueProvider;
2628
+ }
2629
+ });
2630
+
2631
+ /***/ }),
2632
+
2633
+ /***/ 76:
2634
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2635
+
2636
+ "use strict";
2637
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
2638
+ /* harmony export (immutable) */ __webpack_exports__["__extends"] = __extends;
2639
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
2640
+ /* harmony export (immutable) */ __webpack_exports__["__rest"] = __rest;
2641
+ /* harmony export (immutable) */ __webpack_exports__["__decorate"] = __decorate;
2642
+ /* harmony export (immutable) */ __webpack_exports__["__param"] = __param;
2643
+ /* harmony export (immutable) */ __webpack_exports__["__metadata"] = __metadata;
2644
+ /* harmony export (immutable) */ __webpack_exports__["__awaiter"] = __awaiter;
2645
+ /* harmony export (immutable) */ __webpack_exports__["__generator"] = __generator;
2646
+ /* harmony export (immutable) */ __webpack_exports__["__createBinding"] = __createBinding;
2647
+ /* harmony export (immutable) */ __webpack_exports__["__exportStar"] = __exportStar;
2648
+ /* harmony export (immutable) */ __webpack_exports__["__values"] = __values;
2649
+ /* harmony export (immutable) */ __webpack_exports__["__read"] = __read;
2650
+ /* harmony export (immutable) */ __webpack_exports__["__spread"] = __spread;
2651
+ /* harmony export (immutable) */ __webpack_exports__["__spreadArrays"] = __spreadArrays;
2652
+ /* harmony export (immutable) */ __webpack_exports__["__await"] = __await;
2653
+ /* harmony export (immutable) */ __webpack_exports__["__asyncGenerator"] = __asyncGenerator;
2654
+ /* harmony export (immutable) */ __webpack_exports__["__asyncDelegator"] = __asyncDelegator;
2655
+ /* harmony export (immutable) */ __webpack_exports__["__asyncValues"] = __asyncValues;
2656
+ /* harmony export (immutable) */ __webpack_exports__["__makeTemplateObject"] = __makeTemplateObject;
2657
+ /* harmony export (immutable) */ __webpack_exports__["__importStar"] = __importStar;
2658
+ /* harmony export (immutable) */ __webpack_exports__["__importDefault"] = __importDefault;
2659
+ /* harmony export (immutable) */ __webpack_exports__["__classPrivateFieldGet"] = __classPrivateFieldGet;
2660
+ /* harmony export (immutable) */ __webpack_exports__["__classPrivateFieldSet"] = __classPrivateFieldSet;
2661
+ /*! *****************************************************************************
2662
+ Copyright (c) Microsoft Corporation.
2663
+
2664
+ Permission to use, copy, modify, and/or distribute this software for any
2665
+ purpose with or without fee is hereby granted.
2666
+
2667
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2668
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2669
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2670
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2671
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2672
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2673
+ PERFORMANCE OF THIS SOFTWARE.
2674
+ ***************************************************************************** */
2675
+ /* global Reflect, Promise */
2676
+
2677
+ var extendStatics = function(d, b) {
2678
+ extendStatics = Object.setPrototypeOf ||
2679
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2680
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2681
+ return extendStatics(d, b);
2682
+ };
2683
+
2684
+ function __extends(d, b) {
2685
+ extendStatics(d, b);
2686
+ function __() { this.constructor = d; }
2687
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2688
+ }
2689
+
2690
+ var __assign = function() {
2691
+ __assign = Object.assign || function __assign(t) {
2692
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2693
+ s = arguments[i];
2694
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2695
+ }
2696
+ return t;
2697
+ }
2698
+ return __assign.apply(this, arguments);
2699
+ }
2700
+
2701
+ function __rest(s, e) {
2702
+ var t = {};
2703
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2704
+ t[p] = s[p];
2705
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
2706
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2707
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2708
+ t[p[i]] = s[p[i]];
2709
+ }
2710
+ return t;
2711
+ }
2712
+
2713
+ function __decorate(decorators, target, key, desc) {
2714
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2715
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2716
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2717
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
2718
+ }
2719
+
2720
+ function __param(paramIndex, decorator) {
2721
+ return function (target, key) { decorator(target, key, paramIndex); }
2722
+ }
2723
+
2724
+ function __metadata(metadataKey, metadataValue) {
2725
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
2726
+ }
2727
+
2728
+ function __awaiter(thisArg, _arguments, P, generator) {
2729
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2730
+ return new (P || (P = Promise))(function (resolve, reject) {
2731
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2732
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
2733
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2734
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
2735
+ });
2736
+ }
2737
+
2738
+ function __generator(thisArg, body) {
2739
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
2740
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
2741
+ function verb(n) { return function (v) { return step([n, v]); }; }
2742
+ function step(op) {
2743
+ if (f) throw new TypeError("Generator is already executing.");
2744
+ while (_) try {
2745
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
2746
+ if (y = 0, t) op = [op[0] & 2, t.value];
2747
+ switch (op[0]) {
2748
+ case 0: case 1: t = op; break;
2749
+ case 4: _.label++; return { value: op[1], done: false };
2750
+ case 5: _.label++; y = op[1]; op = [0]; continue;
2751
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
2752
+ default:
2753
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
2754
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
2755
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
2756
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
2757
+ if (t[2]) _.ops.pop();
2758
+ _.trys.pop(); continue;
2759
+ }
2760
+ op = body.call(thisArg, _);
2761
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
2762
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
2763
+ }
2764
+ }
2765
+
2766
+ function __createBinding(o, m, k, k2) {
2767
+ if (k2 === undefined) k2 = k;
2768
+ o[k2] = m[k];
2769
+ }
2770
+
2771
+ function __exportStar(m, exports) {
2772
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
2773
+ }
2774
+
2775
+ function __values(o) {
2776
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
2777
+ if (m) return m.call(o);
2778
+ if (o && typeof o.length === "number") return {
2779
+ next: function () {
2780
+ if (o && i >= o.length) o = void 0;
2781
+ return { value: o && o[i++], done: !o };
2782
+ }
2783
+ };
2784
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
2785
+ }
2786
+
2787
+ function __read(o, n) {
2788
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
2789
+ if (!m) return o;
2790
+ var i = m.call(o), r, ar = [], e;
2791
+ try {
2792
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
2793
+ }
2794
+ catch (error) { e = { error: error }; }
2795
+ finally {
2796
+ try {
2797
+ if (r && !r.done && (m = i["return"])) m.call(i);
2798
+ }
2799
+ finally { if (e) throw e.error; }
2800
+ }
2801
+ return ar;
2802
+ }
2803
+
2804
+ function __spread() {
2805
+ for (var ar = [], i = 0; i < arguments.length; i++)
2806
+ ar = ar.concat(__read(arguments[i]));
2807
+ return ar;
2808
+ }
2809
+
2810
+ function __spreadArrays() {
2811
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
2812
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
2813
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
2814
+ r[k] = a[j];
2815
+ return r;
2816
+ };
2817
+
2818
+ function __await(v) {
2819
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
2820
+ }
2821
+
2822
+ function __asyncGenerator(thisArg, _arguments, generator) {
2823
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2824
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
2825
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
2826
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
2827
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
2828
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
2829
+ function fulfill(value) { resume("next", value); }
2830
+ function reject(value) { resume("throw", value); }
2831
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
2832
+ }
2833
+
2834
+ function __asyncDelegator(o) {
2835
+ var i, p;
2836
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
2837
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
2838
+ }
2839
+
2840
+ function __asyncValues(o) {
2841
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2842
+ var m = o[Symbol.asyncIterator], i;
2843
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
2844
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
2845
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
2846
+ }
2847
+
2848
+ function __makeTemplateObject(cooked, raw) {
2849
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
2850
+ return cooked;
2851
+ };
2852
+
2853
+ function __importStar(mod) {
2854
+ if (mod && mod.__esModule) return mod;
2855
+ var result = {};
2856
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
2857
+ result.default = mod;
2858
+ return result;
2859
+ }
2860
+
2861
+ function __importDefault(mod) {
2862
+ return (mod && mod.__esModule) ? mod : { default: mod };
2863
+ }
2864
+
2865
+ function __classPrivateFieldGet(receiver, privateMap) {
2866
+ if (!privateMap.has(receiver)) {
2867
+ throw new TypeError("attempted to get private field on non-instance");
2868
+ }
2869
+ return privateMap.get(receiver);
2870
+ }
2871
+
2872
+ function __classPrivateFieldSet(receiver, privateMap, value) {
2873
+ if (!privateMap.has(receiver)) {
2874
+ throw new TypeError("attempted to set private field on non-instance");
2875
+ }
2876
+ privateMap.set(receiver, value);
2877
+ return value;
2878
+ }
2879
+
2880
+
2881
+ /***/ }),
2882
+
2883
+ /***/ 80:
2884
+ /***/ (function(module, exports, __webpack_require__) {
2885
+
2886
+ "use strict";
2887
+
2888
+
2889
+ Object.defineProperty(exports, "__esModule", {
2890
+ value: true
2891
+ });
2892
+ exports.serialize = exports.deserialize = exports.Serializable = exports.JsonProperty = exports.bind = exports.action = exports.exportAction = exports.container = exports.inject = exports.singleton = exports.injectable = undefined;
2893
+
2894
+ var _index = __webpack_require__(129);
2895
+
2896
+ var _export = __webpack_require__(113);
2897
+
2898
+ var _export2 = _interopRequireDefault(_export);
2899
+
2900
+ var _action = __webpack_require__(112);
2901
+
2902
+ var _action2 = _interopRequireDefault(_action);
2903
+
2904
+ var _autoBind = __webpack_require__(114);
2905
+
2906
+ var _serializable = __webpack_require__(130);
2907
+
2908
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2909
+
2910
+ exports.injectable = _index.injectable;
2911
+ exports.singleton = _index.singleton;
2912
+ exports.inject = _index.inject;
2913
+ exports.container = _index.container;
2914
+ exports.exportAction = _export2.default;
2915
+ exports.action = _action2.default;
2916
+ exports.bind = _autoBind.boundMethod;
2917
+ exports.JsonProperty = _serializable.JsonProperty;
2918
+ exports.Serializable = _serializable.Serializable;
2919
+ exports.deserialize = _serializable.deserialize;
2920
+ exports.serialize = _serializable.serialize;
2921
+
2922
+ /***/ })
2923
+
2924
+ },[211]);
2925
+ });