Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@decaf-ts/reflection

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@decaf-ts/reflection - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

2

dist/esm/reflection.bundle.min.esm.js
/*! For license information please see reflection.bundle.min.esm.js.LICENSE.txt */
var t={640:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionKeys=void 0,function(t){t.TYPE="design:type"}(r||(e.ReflectionKeys=r={}))},503:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.metadata=function(t,e){return(r,n,o)=>{o?Reflect.defineMetadata(t,e,o.value):n?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata(t,e,r)}},e.apply=function(...t){return(e,r,n)=>{for(const o of t)e instanceof Function&&!n?o(e):o(e,r,n)}},r(630)},233:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function t(e,r,...n){if(e===r)return!0;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(!e||!r||"object"!=typeof e&&"object"!=typeof r)return e===r;if(null==e||null==r)return!1;if(typeof e!=typeof r)return!1;if(e.prototype!==r.prototype)return!1;const o=Object.keys(e).filter((t=>-1===n.indexOf(t)));return o.length===Object.keys(r).filter((t=>-1===n.indexOf(t))).length&&o.every((o=>-1!==n.indexOf(o)||t(e[o],r[o],...n)))}},729:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,o(r(640),e),o(r(503),e),o(r(233),e),o(r(732),e),o(r(552),e),e.VERSION="0.3.1"},732:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},552:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getPropertyDecorators=i,e.getTypeFromDecorator=function(t,e){const r=i(n.ReflectionKeys.TYPE,t,e,!1);if(!r||!r.decorators)return;const o=r.decorators.shift(),a=o.props?o.props.name:void 0;return"Function"!==a?a:void 0},e.getAllPropertyDecorators=function(t,...e){if(e&&e.length)return Object.getOwnPropertyNames(t).reduce(((r,n)=>(e.forEach(((e,o)=>{const a=i(e,t,n,0!==o);r||(r={}),function(t,e,r){r&&r.length&&(t[e]||(t[e]=[]),t[e].push(...r))}(r,n,a.decorators)})),r)),void 0)},e.getAllProperties=function(t,e=!0,r="Object"){const n=[];let o=t;const i=function(){if(!e)return;const t=Object.getPrototypeOf(o);return t&&t.constructor.name!==r?(o=t,o):void 0};do{Object.getOwnPropertyNames(o).forEach((function(t){-1===n.indexOf(t)&&n.push(t)}))}while(i());return n},e.getClassDecorators=function(t,e){return Reflect.getOwnMetadataKeys(e.constructor).filter((e=>e.toString().startsWith(t))).reduce(((r,n)=>{const o={key:n.substring(t.length),props:Reflect.getMetadata(n,e.constructor)};return r.concat(o)}),[])},e.checkType=a,e.checkTypes=u,e.evaluateDesignTypes=function(t,e){switch(typeof e){case"string":return a(t,e);case"object":return!Array.isArray(e)||u(t,e);case"function":return!e.name||"Object"===e.name||a(t,e.name);default:return!0}},r(630);const n=r(640),o=r(233);function i(t,e,r,a=!1,u=!0,c){const f=function(t,e,r,o=!1,i){const a=Reflect.getMetadataKeys(e,r).filter((e=>o?e.toString().startsWith(t):e===n.ReflectionKeys.TYPE||e.toString().startsWith(t))).reduce(((o,i)=>{const a={key:i!==n.ReflectionKeys.TYPE?i.substring(t.length):i,props:Reflect.getMetadata(i,e,r)};return o.concat(a)}),i||[]);return{prop:r.toString(),decorators:a}}(t,e,r,a,c);return u&&Object.getPrototypeOf(e)!==Object.prototype?i(t,Object.getPrototypeOf(e.constructor),r,!0,u,f.decorators):{prop:f.prop,decorators:function(t){const r={};return t.filter((t=>t.key in r?((0,o.isEqual)(t.props,r[t.key])||console.log(`Found a similar decorator for the ${t.key} propertyof a ${e.constructor.name} model but with different attributes.The original one will be kept`),!1):(r[t.key.toString()]=t.props,!0)))}(f.decorators)}}function a(t,e){return typeof t===e||t.constructor&&t.constructor.name.toLowerCase()===e.toLowerCase()}function u(t,e){return!e.every((e=>!a(t,e)))}},630:(t,e,r)=>{var n;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),n=o(t);function o(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(n=o(e.Reflect,n)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,c=!a&&!u,f={create:a?function(){return Y(Object.create(null))}:u?function(){return Y({__proto__:null})}:function(){return Y({})},has:c?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:c?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},s=Object.getPrototypeOf(Function),y="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,D(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,o)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!D(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(D(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new y}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),p="function"==typeof WeakMap?WeakMap:function(){var t=f.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&f.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?f.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(f.has(t,e));return t[e]=!0,e}function o(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:f.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),d=n?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var t;return!m(d)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[d]),m(t)&&(t=function(){var t,r,n,o;m(d)||void 0===e.Reflect||d in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p;return{isProviderFor:function(t,e){var r=a.get(t);return!(m(r)||!r.has(e))||!!o(t,e).length&&(m(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new p,a={registerProvider:u,getProvider:f,setProvider:h};return a;function u(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case m(r):r=e;break;case r===e:break;case m(n):n=e;break;case n===e:break;default:void 0===o&&(o=new l),o.add(e)}}function c(e,i){if(!m(r)){if(r.isProviderFor(e,i))return r;if(!m(n)){if(n.isProviderFor(e,i))return r;if(!m(o))for(var a=I(o);;){var u=W(a);if(!u)return;var c=C(u);if(c.isProviderFor(e,i))return z(a),c}}}if(!m(t)&&t.isProviderFor(e,i))return t}function f(t,e){var r,n=i.get(t);return m(n)||(r=n.get(e)),m(r)?(m(r=c(t,e))||(m(n)&&(n=new y,i.set(t,n)),n.set(e,r)),r):r}function s(t){if(m(t))throw new TypeError;return r===t||n===t||!m(o)&&o.has(t)}function h(t,e,r){if(!s(r))throw new Error("Metadata provider not registered.");var n=f(t,e);if(n!==r){if(!m(n))return!1;var o=i.get(t);m(o)&&(o=new y,i.set(t,o)),o.set(e,r)}return!0}}()),!m(d)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,d,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new p,r={isProviderFor:function(t,r){var n=e.get(t);return!m(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!m(o)&&x(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!m(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(m(o))return r;for(var i=I(o.keys()),a=0;;){var u=W(i);if(!u)return r.length=a,r;var c=C(u);try{r[a]=c}catch(t){try{z(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(m(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(r);m(a)||(a.delete(o),0===a.size&&e.delete(a))}return!0}};return h.registerProvider(r),r;function n(n,o,i){var a=e.get(n),u=!1;if(m(a)){if(!i)return;a=new y,e.set(n,a),u=!0}var c=a.get(o);if(m(c)){if(!i)return;if(c=new y,a.set(o,c),!t.setProvider(n,o,r))throw a.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return c}}(h);function w(t,e,r){if(g(t,e,r))return!0;var n=N(e);return!P(n)&&w(t,n,r)}function g(t,e,r){var n=V(e,r,!1);return!m(n)&&x(n.OrdinaryHasOwnMetadata(t,e,r))}function _(t,e,r){if(g(t,e,r))return b(t,e,r);var n=N(e);return P(n)?void 0:_(t,n,r)}function b(t,e,r){var n=V(e,r,!1);if(!m(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){V(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function k(t,e){var r=M(t,e),n=N(t);if(null===n)return r;var o=k(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new l,a=[],u=0,c=r;u<c.length;u++){var f=c[u];i.has(f)||(i.add(f),a.push(f))}for(var s=0,y=o;s<y.length;s++)f=y[s],i.has(f)||(i.add(f),a.push(f));return a}function M(t,e){var r=V(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function j(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function m(t){return void 0===t}function P(t){return null===t}function E(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(j(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=F(t,o);if(void 0!==n){var i=n.call(t,r);if(E(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(K(r)&&!E(o=r.call(t)))return o;if(K(n=t.valueOf)&&!E(o=n.call(t)))return o}else{var n;if(K(n=t.valueOf)&&!E(o=n.call(t)))return o;var o,i=t.toString;if(K(i)&&!E(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function x(t){return!!t}function R(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function S(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function K(t){return"function"==typeof t}function A(t){return"function"==typeof t}function D(t,e){return t===e||t!=t&&e!=e}function F(t,e){var r=t[e];if(null!=r){if(!K(r))throw new TypeError;return r}}function I(t){var e=F(t,i);if(!K(e))throw new TypeError;var r=e.call(t);if(!E(r))throw new TypeError;return r}function C(t){return t.value}function W(t){var e=t.next();return!e.done&&e}function z(t){var e=t.return;e&&e.call(t)}function N(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===s)return e;if(e!==s)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function V(t,e,r){var n=h.getProvider(t,e);if(!m(n))return n;if(r){if(h.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function Y(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(m(r)){if(!S(t))throw new TypeError;if(!A(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!m(n)&&!P(n)){if(!A(n))throw new TypeError;e=n}}return e}(t,e)}if(!S(t))throw new TypeError;if(!E(e))throw new TypeError;if(!E(n)&&!m(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!m(i)&&!P(i)){if(!E(i))throw new TypeError;n=i}}return n}(t,e,r=R(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!E(r))throw new TypeError;if(!m(n)&&!function(t){switch(j(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}})),t("defineMetadata",(function(t,e,r,n){if(!E(r))throw new TypeError;return m(n)||(n=R(n)),O(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return m(r)||(r=R(r)),w(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return m(r)||(r=R(r)),g(t,e,r)})),t("getMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return m(r)||(r=R(r)),_(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return m(r)||(r=R(r)),b(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!E(t))throw new TypeError;return m(e)||(e=R(e)),k(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!E(t))throw new TypeError;return m(e)||(e=R(e)),M(t,e)})),t("deleteMetadata",(function(t,e,r){if(!E(e))throw new TypeError;if(m(r)||(r=R(r)),!E(e))throw new TypeError;m(r)||(r=R(r));var n=V(e,r,!1);return!m(n)&&n.OrdinaryDeleteMetadata(t,e,r)}))}(n,e),void 0===e.Reflect&&(e.Reflect=t)}()}(n||(n={}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(729);
var t={640:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionKeys=void 0,function(t){t.TYPE="design:type"}(r||(e.ReflectionKeys=r={}))},503:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.metadata=function(t,e){return(r,n,o)=>{o?Reflect.defineMetadata(t,e,o.value):n?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata(t,e,r)}},e.apply=function(...t){return(e,r,n)=>{for(const o of t)e instanceof Function&&!n?o(e):o(e,r,n)}},r(630)},233:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function t(e,r,...n){if(e===r)return!0;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(!e||!r||"object"!=typeof e&&"object"!=typeof r)return e===r;if(null==e||null==r)return!1;if(typeof e!=typeof r)return!1;if(e.prototype!==r.prototype)return!1;const o=Object.keys(e).filter((t=>-1===n.indexOf(t)));return o.length===Object.keys(r).filter((t=>-1===n.indexOf(t))).length&&o.every((o=>-1!==n.indexOf(o)||t(e[o],r[o],...n)))}},729:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,o(r(640),e),o(r(503),e),o(r(233),e),o(r(732),e),o(r(552),e),e.VERSION="0.3.2"},732:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},552:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getPropertyDecorators=i,e.getTypeFromDecorator=function(t,e){const r=i(n.ReflectionKeys.TYPE,t,e,!1);if(!r||!r.decorators)return;const o=r.decorators.shift(),a=o.props?o.props.name:void 0;return"Function"!==a?a:void 0},e.getAllPropertyDecorators=function(t,...e){if(e&&e.length)return Object.getOwnPropertyNames(t).reduce(((r,n)=>(e.forEach(((e,o)=>{const a=i(e,t,n,0!==o);r||(r={}),function(t,e,r){r&&r.length&&(t[e]||(t[e]=[]),t[e].push(...r))}(r,n,a.decorators)})),r)),void 0)},e.getAllProperties=function(t,e=!0,r="Object"){const n=[];let o=t;const i=function(){if(!e)return;const t=Object.getPrototypeOf(o);return t&&t.constructor.name!==r?(o=t,o):void 0};do{Object.getOwnPropertyNames(o).forEach((function(t){-1===n.indexOf(t)&&n.push(t)}))}while(i());return n},e.getClassDecorators=function(t,e){return Reflect.getOwnMetadataKeys(e.constructor).filter((e=>e.toString().startsWith(t))).reduce(((r,n)=>{const o={key:n.substring(t.length),props:Reflect.getMetadata(n,e.constructor)};return r.concat(o)}),[])},e.checkType=a,e.checkTypes=u,e.evaluateDesignTypes=function(t,e){switch(typeof e){case"string":return a(t,e);case"object":return!Array.isArray(e)||u(t,e);case"function":return!e.name||"Object"===e.name||a(t,e.name);default:return!0}},r(630);const n=r(640),o=r(233);function i(t,e,r,a=!1,u=!0,c){const f=function(t,e,r,o=!1,i){const a=Reflect.getMetadataKeys(e,r).filter((e=>o?e.toString().startsWith(t):e===n.ReflectionKeys.TYPE||e.toString().startsWith(t))).reduce(((o,i)=>{const a={key:i!==n.ReflectionKeys.TYPE?i.substring(t.length):i,props:Reflect.getMetadata(i,e,r)};return o.concat(a)}),i||[]);return{prop:r.toString(),decorators:a}}(t,e,r,a,c);return u&&Object.getPrototypeOf(e)!==Object.prototype?i(t,Object.getPrototypeOf(e.constructor),r,!0,u,f.decorators):{prop:f.prop,decorators:function(t){const r={};return t.filter((t=>t.key in r?((0,o.isEqual)(t.props,r[t.key])||console.log(`Found a similar decorator for the ${t.key} propertyof a ${e.constructor.name} model but with different attributes.The original one will be kept`),!1):(r[t.key.toString()]=t.props,!0)))}(f.decorators)}}function a(t,e){return typeof t===e||t.constructor&&t.constructor.name.toLowerCase()===e.toLowerCase()}function u(t,e){return!e.every((e=>!a(t,e)))}},630:(t,e,r)=>{var n;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),n=o(t);function o(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(n=o(e.Reflect,n)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,c=!a&&!u,f={create:a?function(){return Y(Object.create(null))}:u?function(){return Y({__proto__:null})}:function(){return Y({})},has:c?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:c?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},s=Object.getPrototypeOf(Function),y="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,D(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,o)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!D(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(D(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new y}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),p="function"==typeof WeakMap?WeakMap:function(){var t=f.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&f.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?f.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(f.has(t,e));return t[e]=!0,e}function o(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:f.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),d=n?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var t;return!m(d)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[d]),m(t)&&(t=function(){var t,r,n,o;m(d)||void 0===e.Reflect||d in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p;return{isProviderFor:function(t,e){var r=a.get(t);return!(m(r)||!r.has(e))||!!o(t,e).length&&(m(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new p,a={registerProvider:u,getProvider:f,setProvider:h};return a;function u(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case m(r):r=e;break;case r===e:break;case m(n):n=e;break;case n===e:break;default:void 0===o&&(o=new l),o.add(e)}}function c(e,i){if(!m(r)){if(r.isProviderFor(e,i))return r;if(!m(n)){if(n.isProviderFor(e,i))return r;if(!m(o))for(var a=I(o);;){var u=W(a);if(!u)return;var c=C(u);if(c.isProviderFor(e,i))return z(a),c}}}if(!m(t)&&t.isProviderFor(e,i))return t}function f(t,e){var r,n=i.get(t);return m(n)||(r=n.get(e)),m(r)?(m(r=c(t,e))||(m(n)&&(n=new y,i.set(t,n)),n.set(e,r)),r):r}function s(t){if(m(t))throw new TypeError;return r===t||n===t||!m(o)&&o.has(t)}function h(t,e,r){if(!s(r))throw new Error("Metadata provider not registered.");var n=f(t,e);if(n!==r){if(!m(n))return!1;var o=i.get(t);m(o)&&(o=new y,i.set(t,o)),o.set(e,r)}return!0}}()),!m(d)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,d,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new p,r={isProviderFor:function(t,r){var n=e.get(t);return!m(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!m(o)&&x(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!m(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(m(o))return r;for(var i=I(o.keys()),a=0;;){var u=W(i);if(!u)return r.length=a,r;var c=C(u);try{r[a]=c}catch(t){try{z(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(m(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(r);m(a)||(a.delete(o),0===a.size&&e.delete(a))}return!0}};return h.registerProvider(r),r;function n(n,o,i){var a=e.get(n),u=!1;if(m(a)){if(!i)return;a=new y,e.set(n,a),u=!0}var c=a.get(o);if(m(c)){if(!i)return;if(c=new y,a.set(o,c),!t.setProvider(n,o,r))throw a.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return c}}(h);function w(t,e,r){if(g(t,e,r))return!0;var n=N(e);return!P(n)&&w(t,n,r)}function g(t,e,r){var n=V(e,r,!1);return!m(n)&&x(n.OrdinaryHasOwnMetadata(t,e,r))}function _(t,e,r){if(g(t,e,r))return b(t,e,r);var n=N(e);return P(n)?void 0:_(t,n,r)}function b(t,e,r){var n=V(e,r,!1);if(!m(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){V(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function k(t,e){var r=M(t,e),n=N(t);if(null===n)return r;var o=k(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new l,a=[],u=0,c=r;u<c.length;u++){var f=c[u];i.has(f)||(i.add(f),a.push(f))}for(var s=0,y=o;s<y.length;s++)f=y[s],i.has(f)||(i.add(f),a.push(f));return a}function M(t,e){var r=V(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function j(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function m(t){return void 0===t}function P(t){return null===t}function E(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(j(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=F(t,o);if(void 0!==n){var i=n.call(t,r);if(E(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(K(r)&&!E(o=r.call(t)))return o;if(K(n=t.valueOf)&&!E(o=n.call(t)))return o}else{var n;if(K(n=t.valueOf)&&!E(o=n.call(t)))return o;var o,i=t.toString;if(K(i)&&!E(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function x(t){return!!t}function R(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function S(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function K(t){return"function"==typeof t}function A(t){return"function"==typeof t}function D(t,e){return t===e||t!=t&&e!=e}function F(t,e){var r=t[e];if(null!=r){if(!K(r))throw new TypeError;return r}}function I(t){var e=F(t,i);if(!K(e))throw new TypeError;var r=e.call(t);if(!E(r))throw new TypeError;return r}function C(t){return t.value}function W(t){var e=t.next();return!e.done&&e}function z(t){var e=t.return;e&&e.call(t)}function N(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===s)return e;if(e!==s)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function V(t,e,r){var n=h.getProvider(t,e);if(!m(n))return n;if(r){if(h.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function Y(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(m(r)){if(!S(t))throw new TypeError;if(!A(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!m(n)&&!P(n)){if(!A(n))throw new TypeError;e=n}}return e}(t,e)}if(!S(t))throw new TypeError;if(!E(e))throw new TypeError;if(!E(n)&&!m(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!m(i)&&!P(i)){if(!E(i))throw new TypeError;n=i}}return n}(t,e,r=R(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!E(r))throw new TypeError;if(!m(n)&&!function(t){switch(j(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}})),t("defineMetadata",(function(t,e,r,n){if(!E(r))throw new TypeError;return m(n)||(n=R(n)),O(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return m(r)||(r=R(r)),w(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return m(r)||(r=R(r)),g(t,e,r)})),t("getMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return m(r)||(r=R(r)),_(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return m(r)||(r=R(r)),b(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!E(t))throw new TypeError;return m(e)||(e=R(e)),k(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!E(t))throw new TypeError;return m(e)||(e=R(e)),M(t,e)})),t("deleteMetadata",(function(t,e,r){if(!E(e))throw new TypeError;if(m(r)||(r=R(r)),!E(e))throw new TypeError;m(r)||(r=R(r));var n=V(e,r,!1);return!m(n)&&n.OrdinaryDeleteMetadata(t,e,r)}))}(n,e),void 0===e.Reflect&&(e.Reflect=t)}()}(n||(n={}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(729);
/*! For license information please see reflection.bundle.min.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("reflection",[],e):"object"==typeof exports?exports.reflection=e():t.reflection=e()}(this,(()=>(()=>{var t={640:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionKeys=void 0,function(t){t.TYPE="design:type"}(r||(e.ReflectionKeys=r={}))},503:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.metadata=function(t,e){return(r,n,o)=>{o?Reflect.defineMetadata(t,e,o.value):n?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata(t,e,r)}},e.apply=function(...t){return(e,r,n)=>{for(const o of t)e instanceof Function&&!n?o(e):o(e,r,n)}},r(630)},233:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function t(e,r,...n){if(e===r)return!0;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(!e||!r||"object"!=typeof e&&"object"!=typeof r)return e===r;if(null==e||null==r)return!1;if(typeof e!=typeof r)return!1;if(e.prototype!==r.prototype)return!1;const o=Object.keys(e).filter((t=>-1===n.indexOf(t)));return o.length===Object.keys(r).filter((t=>-1===n.indexOf(t))).length&&o.every((o=>-1!==n.indexOf(o)||t(e[o],r[o],...n)))}},729:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,o(r(640),e),o(r(503),e),o(r(233),e),o(r(732),e),o(r(552),e),e.VERSION="0.3.1"},732:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},552:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPropertyDecorators=i,e.getTypeFromDecorator=function(t,e){const r=i(n.ReflectionKeys.TYPE,t,e,!1);if(!r||!r.decorators)return;const o=r.decorators.shift(),a=o.props?o.props.name:void 0;return"Function"!==a?a:void 0},e.getAllPropertyDecorators=function(t,...e){if(e&&e.length)return Object.getOwnPropertyNames(t).reduce(((r,n)=>(e.forEach(((e,o)=>{const a=i(e,t,n,0!==o);r||(r={}),function(t,e,r){r&&r.length&&(t[e]||(t[e]=[]),t[e].push(...r))}(r,n,a.decorators)})),r)),void 0)},e.getAllProperties=function(t,e=!0,r="Object"){const n=[];let o=t;const i=function(){if(!e)return;const t=Object.getPrototypeOf(o);return t&&t.constructor.name!==r?(o=t,o):void 0};do{Object.getOwnPropertyNames(o).forEach((function(t){-1===n.indexOf(t)&&n.push(t)}))}while(i());return n},e.getClassDecorators=function(t,e){return Reflect.getOwnMetadataKeys(e.constructor).filter((e=>e.toString().startsWith(t))).reduce(((r,n)=>{const o={key:n.substring(t.length),props:Reflect.getMetadata(n,e.constructor)};return r.concat(o)}),[])},e.checkType=a,e.checkTypes=u,e.evaluateDesignTypes=function(t,e){switch(typeof e){case"string":return a(t,e);case"object":return!Array.isArray(e)||u(t,e);case"function":return!e.name||"Object"===e.name||a(t,e.name);default:return!0}},r(630);const n=r(640),o=r(233);function i(t,e,r,a=!1,u=!0,c){const f=function(t,e,r,o=!1,i){const a=Reflect.getMetadataKeys(e,r).filter((e=>o?e.toString().startsWith(t):e===n.ReflectionKeys.TYPE||e.toString().startsWith(t))).reduce(((o,i)=>{const a={key:i!==n.ReflectionKeys.TYPE?i.substring(t.length):i,props:Reflect.getMetadata(i,e,r)};return o.concat(a)}),i||[]);return{prop:r.toString(),decorators:a}}(t,e,r,a,c);return u&&Object.getPrototypeOf(e)!==Object.prototype?i(t,Object.getPrototypeOf(e.constructor),r,!0,u,f.decorators):{prop:f.prop,decorators:function(t){const r={};return t.filter((t=>t.key in r?((0,o.isEqual)(t.props,r[t.key])||console.log(`Found a similar decorator for the ${t.key} propertyof a ${e.constructor.name} model but with different attributes.The original one will be kept`),!1):(r[t.key.toString()]=t.props,!0)))}(f.decorators)}}function a(t,e){return typeof t===e||t.constructor&&t.constructor.name.toLowerCase()===e.toLowerCase()}function u(t,e){return!e.every((e=>!a(t,e)))}},630:(t,e,r)=>{var n;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),n=o(t);function o(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(n=o(e.Reflect,n)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,c=!a&&!u,f={create:a?function(){return Y(Object.create(null))}:u?function(){return Y({__proto__:null})}:function(){return Y({})},has:c?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:c?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},s=Object.getPrototypeOf(Function),y="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,D(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,o)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!D(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(D(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new y}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),p="function"==typeof WeakMap?WeakMap:function(){var t=f.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&f.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?f.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(f.has(t,e));return t[e]=!0,e}function o(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:f.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),d=n?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var t;return!M(d)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[d]),M(t)&&(t=function(){var t,r,n,o;M(d)||void 0===e.Reflect||d in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p;return{isProviderFor:function(t,e){var r=a.get(t);return!(M(r)||!r.has(e))||!!o(t,e).length&&(M(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new p,a={registerProvider:u,getProvider:f,setProvider:h};return a;function u(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case M(r):r=e;break;case r===e:break;case M(n):n=e;break;case n===e:break;default:void 0===o&&(o=new l),o.add(e)}}function c(e,i){if(!M(r)){if(r.isProviderFor(e,i))return r;if(!M(n)){if(n.isProviderFor(e,i))return r;if(!M(o))for(var a=I(o);;){var u=W(a);if(!u)return;var c=C(u);if(c.isProviderFor(e,i))return z(a),c}}}if(!M(t)&&t.isProviderFor(e,i))return t}function f(t,e){var r,n=i.get(t);return M(n)||(r=n.get(e)),M(r)?(M(r=c(t,e))||(M(n)&&(n=new y,i.set(t,n)),n.set(e,r)),r):r}function s(t){if(M(t))throw new TypeError;return r===t||n===t||!M(o)&&o.has(t)}function h(t,e,r){if(!s(r))throw new Error("Metadata provider not registered.");var n=f(t,e);if(n!==r){if(!M(n))return!1;var o=i.get(t);M(o)&&(o=new y,i.set(t,o)),o.set(e,r)}return!0}}()),!M(d)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,d,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new p,r={isProviderFor:function(t,r){var n=e.get(t);return!M(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!M(o)&&x(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!M(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(M(o))return r;for(var i=I(o.keys()),a=0;;){var u=W(i);if(!u)return r.length=a,r;var c=C(u);try{r[a]=c}catch(t){try{z(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(M(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(r);M(a)||(a.delete(o),0===a.size&&e.delete(a))}return!0}};return h.registerProvider(r),r;function n(n,o,i){var a=e.get(n),u=!1;if(M(a)){if(!i)return;a=new y,e.set(n,a),u=!0}var c=a.get(o);if(M(c)){if(!i)return;if(c=new y,a.set(o,c),!t.setProvider(n,o,r))throw a.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return c}}(h);function w(t,e,r){if(g(t,e,r))return!0;var n=N(e);return!P(n)&&w(t,n,r)}function g(t,e,r){var n=V(e,r,!1);return!M(n)&&x(n.OrdinaryHasOwnMetadata(t,e,r))}function _(t,e,r){if(g(t,e,r))return b(t,e,r);var n=N(e);return P(n)?void 0:_(t,n,r)}function b(t,e,r){var n=V(e,r,!1);if(!M(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){V(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function k(t,e){var r=j(t,e),n=N(t);if(null===n)return r;var o=k(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new l,a=[],u=0,c=r;u<c.length;u++){var f=c[u];i.has(f)||(i.add(f),a.push(f))}for(var s=0,y=o;s<y.length;s++)f=y[s],i.has(f)||(i.add(f),a.push(f));return a}function j(t,e){var r=V(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function m(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function M(t){return void 0===t}function P(t){return null===t}function E(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(m(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=F(t,o);if(void 0!==n){var i=n.call(t,r);if(E(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(K(r)&&!E(o=r.call(t)))return o;if(K(n=t.valueOf)&&!E(o=n.call(t)))return o}else{var n;if(K(n=t.valueOf)&&!E(o=n.call(t)))return o;var o,i=t.toString;if(K(i)&&!E(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function x(t){return!!t}function R(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function S(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function K(t){return"function"==typeof t}function A(t){return"function"==typeof t}function D(t,e){return t===e||t!=t&&e!=e}function F(t,e){var r=t[e];if(null!=r){if(!K(r))throw new TypeError;return r}}function I(t){var e=F(t,i);if(!K(e))throw new TypeError;var r=e.call(t);if(!E(r))throw new TypeError;return r}function C(t){return t.value}function W(t){var e=t.next();return!e.done&&e}function z(t){var e=t.return;e&&e.call(t)}function N(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===s)return e;if(e!==s)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function V(t,e,r){var n=h.getProvider(t,e);if(!M(n))return n;if(r){if(h.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function Y(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(M(r)){if(!S(t))throw new TypeError;if(!A(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!M(n)&&!P(n)){if(!A(n))throw new TypeError;e=n}}return e}(t,e)}if(!S(t))throw new TypeError;if(!E(e))throw new TypeError;if(!E(n)&&!M(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!M(i)&&!P(i)){if(!E(i))throw new TypeError;n=i}}return n}(t,e,r=R(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!E(r))throw new TypeError;if(!M(n)&&!function(t){switch(m(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}})),t("defineMetadata",(function(t,e,r,n){if(!E(r))throw new TypeError;return M(n)||(n=R(n)),O(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return M(r)||(r=R(r)),w(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return M(r)||(r=R(r)),g(t,e,r)})),t("getMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return M(r)||(r=R(r)),_(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return M(r)||(r=R(r)),b(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!E(t))throw new TypeError;return M(e)||(e=R(e)),k(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!E(t))throw new TypeError;return M(e)||(e=R(e)),j(t,e)})),t("deleteMetadata",(function(t,e,r){if(!E(e))throw new TypeError;if(M(r)||(r=R(r)),!E(e))throw new TypeError;M(r)||(r=R(r));var n=V(e,r,!1);return!M(n)&&n.OrdinaryDeleteMetadata(t,e,r)}))}(n,e),void 0===e.Reflect&&(e.Reflect=t)}()}(n||(n={}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(729)})()));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("reflection",[],e):"object"==typeof exports?exports.reflection=e():t.reflection=e()}(this,(()=>(()=>{var t={640:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionKeys=void 0,function(t){t.TYPE="design:type"}(r||(e.ReflectionKeys=r={}))},503:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.metadata=function(t,e){return(r,n,o)=>{o?Reflect.defineMetadata(t,e,o.value):n?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata(t,e,r)}},e.apply=function(...t){return(e,r,n)=>{for(const o of t)e instanceof Function&&!n?o(e):o(e,r,n)}},r(630)},233:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function t(e,r,...n){if(e===r)return!0;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(!e||!r||"object"!=typeof e&&"object"!=typeof r)return e===r;if(null==e||null==r)return!1;if(typeof e!=typeof r)return!1;if(e.prototype!==r.prototype)return!1;const o=Object.keys(e).filter((t=>-1===n.indexOf(t)));return o.length===Object.keys(r).filter((t=>-1===n.indexOf(t))).length&&o.every((o=>-1!==n.indexOf(o)||t(e[o],r[o],...n)))}},729:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,o(r(640),e),o(r(503),e),o(r(233),e),o(r(732),e),o(r(552),e),e.VERSION="0.3.2"},732:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},552:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPropertyDecorators=i,e.getTypeFromDecorator=function(t,e){const r=i(n.ReflectionKeys.TYPE,t,e,!1);if(!r||!r.decorators)return;const o=r.decorators.shift(),a=o.props?o.props.name:void 0;return"Function"!==a?a:void 0},e.getAllPropertyDecorators=function(t,...e){if(e&&e.length)return Object.getOwnPropertyNames(t).reduce(((r,n)=>(e.forEach(((e,o)=>{const a=i(e,t,n,0!==o);r||(r={}),function(t,e,r){r&&r.length&&(t[e]||(t[e]=[]),t[e].push(...r))}(r,n,a.decorators)})),r)),void 0)},e.getAllProperties=function(t,e=!0,r="Object"){const n=[];let o=t;const i=function(){if(!e)return;const t=Object.getPrototypeOf(o);return t&&t.constructor.name!==r?(o=t,o):void 0};do{Object.getOwnPropertyNames(o).forEach((function(t){-1===n.indexOf(t)&&n.push(t)}))}while(i());return n},e.getClassDecorators=function(t,e){return Reflect.getOwnMetadataKeys(e.constructor).filter((e=>e.toString().startsWith(t))).reduce(((r,n)=>{const o={key:n.substring(t.length),props:Reflect.getMetadata(n,e.constructor)};return r.concat(o)}),[])},e.checkType=a,e.checkTypes=u,e.evaluateDesignTypes=function(t,e){switch(typeof e){case"string":return a(t,e);case"object":return!Array.isArray(e)||u(t,e);case"function":return!e.name||"Object"===e.name||a(t,e.name);default:return!0}},r(630);const n=r(640),o=r(233);function i(t,e,r,a=!1,u=!0,c){const f=function(t,e,r,o=!1,i){const a=Reflect.getMetadataKeys(e,r).filter((e=>o?e.toString().startsWith(t):e===n.ReflectionKeys.TYPE||e.toString().startsWith(t))).reduce(((o,i)=>{const a={key:i!==n.ReflectionKeys.TYPE?i.substring(t.length):i,props:Reflect.getMetadata(i,e,r)};return o.concat(a)}),i||[]);return{prop:r.toString(),decorators:a}}(t,e,r,a,c);return u&&Object.getPrototypeOf(e)!==Object.prototype?i(t,Object.getPrototypeOf(e.constructor),r,!0,u,f.decorators):{prop:f.prop,decorators:function(t){const r={};return t.filter((t=>t.key in r?((0,o.isEqual)(t.props,r[t.key])||console.log(`Found a similar decorator for the ${t.key} propertyof a ${e.constructor.name} model but with different attributes.The original one will be kept`),!1):(r[t.key.toString()]=t.props,!0)))}(f.decorators)}}function a(t,e){return typeof t===e||t.constructor&&t.constructor.name.toLowerCase()===e.toLowerCase()}function u(t,e){return!e.every((e=>!a(t,e)))}},630:(t,e,r)=>{var n;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),n=o(t);function o(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(n=o(e.Reflect,n)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,c=!a&&!u,f={create:a?function(){return Y(Object.create(null))}:u?function(){return Y({__proto__:null})}:function(){return Y({})},has:c?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:c?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},s=Object.getPrototypeOf(Function),y="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,D(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,o)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!D(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(D(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new y}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),p="function"==typeof WeakMap?WeakMap:function(){var t=f.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&f.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?f.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(f.has(t,e));return t[e]=!0,e}function o(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:f.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),d=n?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var t;return!M(d)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[d]),M(t)&&(t=function(){var t,r,n,o;M(d)||void 0===e.Reflect||d in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p;return{isProviderFor:function(t,e){var r=a.get(t);return!(M(r)||!r.has(e))||!!o(t,e).length&&(M(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new p,a={registerProvider:u,getProvider:f,setProvider:h};return a;function u(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case M(r):r=e;break;case r===e:break;case M(n):n=e;break;case n===e:break;default:void 0===o&&(o=new l),o.add(e)}}function c(e,i){if(!M(r)){if(r.isProviderFor(e,i))return r;if(!M(n)){if(n.isProviderFor(e,i))return r;if(!M(o))for(var a=I(o);;){var u=W(a);if(!u)return;var c=C(u);if(c.isProviderFor(e,i))return z(a),c}}}if(!M(t)&&t.isProviderFor(e,i))return t}function f(t,e){var r,n=i.get(t);return M(n)||(r=n.get(e)),M(r)?(M(r=c(t,e))||(M(n)&&(n=new y,i.set(t,n)),n.set(e,r)),r):r}function s(t){if(M(t))throw new TypeError;return r===t||n===t||!M(o)&&o.has(t)}function h(t,e,r){if(!s(r))throw new Error("Metadata provider not registered.");var n=f(t,e);if(n!==r){if(!M(n))return!1;var o=i.get(t);M(o)&&(o=new y,i.set(t,o)),o.set(e,r)}return!0}}()),!M(d)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,d,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new p,r={isProviderFor:function(t,r){var n=e.get(t);return!M(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!M(o)&&x(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!M(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(M(o))return r;for(var i=I(o.keys()),a=0;;){var u=W(i);if(!u)return r.length=a,r;var c=C(u);try{r[a]=c}catch(t){try{z(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(M(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(r);M(a)||(a.delete(o),0===a.size&&e.delete(a))}return!0}};return h.registerProvider(r),r;function n(n,o,i){var a=e.get(n),u=!1;if(M(a)){if(!i)return;a=new y,e.set(n,a),u=!0}var c=a.get(o);if(M(c)){if(!i)return;if(c=new y,a.set(o,c),!t.setProvider(n,o,r))throw a.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return c}}(h);function w(t,e,r){if(g(t,e,r))return!0;var n=N(e);return!P(n)&&w(t,n,r)}function g(t,e,r){var n=V(e,r,!1);return!M(n)&&x(n.OrdinaryHasOwnMetadata(t,e,r))}function _(t,e,r){if(g(t,e,r))return b(t,e,r);var n=N(e);return P(n)?void 0:_(t,n,r)}function b(t,e,r){var n=V(e,r,!1);if(!M(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){V(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function k(t,e){var r=j(t,e),n=N(t);if(null===n)return r;var o=k(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new l,a=[],u=0,c=r;u<c.length;u++){var f=c[u];i.has(f)||(i.add(f),a.push(f))}for(var s=0,y=o;s<y.length;s++)f=y[s],i.has(f)||(i.add(f),a.push(f));return a}function j(t,e){var r=V(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function m(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function M(t){return void 0===t}function P(t){return null===t}function E(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(m(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=F(t,o);if(void 0!==n){var i=n.call(t,r);if(E(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(K(r)&&!E(o=r.call(t)))return o;if(K(n=t.valueOf)&&!E(o=n.call(t)))return o}else{var n;if(K(n=t.valueOf)&&!E(o=n.call(t)))return o;var o,i=t.toString;if(K(i)&&!E(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function x(t){return!!t}function R(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function S(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function K(t){return"function"==typeof t}function A(t){return"function"==typeof t}function D(t,e){return t===e||t!=t&&e!=e}function F(t,e){var r=t[e];if(null!=r){if(!K(r))throw new TypeError;return r}}function I(t){var e=F(t,i);if(!K(e))throw new TypeError;var r=e.call(t);if(!E(r))throw new TypeError;return r}function C(t){return t.value}function W(t){var e=t.next();return!e.done&&e}function z(t){var e=t.return;e&&e.call(t)}function N(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===s)return e;if(e!==s)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function V(t,e,r){var n=h.getProvider(t,e);if(!M(n))return n;if(r){if(h.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function Y(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(M(r)){if(!S(t))throw new TypeError;if(!A(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!M(n)&&!P(n)){if(!A(n))throw new TypeError;e=n}}return e}(t,e)}if(!S(t))throw new TypeError;if(!E(e))throw new TypeError;if(!E(n)&&!M(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!M(i)&&!P(i)){if(!E(i))throw new TypeError;n=i}}return n}(t,e,r=R(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!E(r))throw new TypeError;if(!M(n)&&!function(t){switch(m(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}})),t("defineMetadata",(function(t,e,r,n){if(!E(r))throw new TypeError;return M(n)||(n=R(n)),O(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return M(r)||(r=R(r)),w(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return M(r)||(r=R(r)),g(t,e,r)})),t("getMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return M(r)||(r=R(r)),_(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return M(r)||(r=R(r)),b(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!E(t))throw new TypeError;return M(e)||(e=R(e)),k(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!E(t))throw new TypeError;return M(e)||(e=R(e)),j(t,e)})),t("deleteMetadata",(function(t,e,r){if(!E(e))throw new TypeError;if(M(r)||(r=R(r)),!E(e))throw new TypeError;M(r)||(r=R(r));var n=V(e,r,!1);return!M(n)&&n.OrdinaryDeleteMetadata(t,e,r)}))}(n,e),void 0===e.Reflect&&(e.Reflect=t)}()}(n||(n={}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(729)})()));

@@ -35,2 +35,2 @@ export * from "./constants";

*/
export declare const VERSION = "0.3.1";
export declare const VERSION = "0.3.2";

@@ -35,4 +35,4 @@ export * from "./constants";

*/
export const VERSION = "0.3.1";
export const VERSION = "0.3.2";
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLFNBQVMsQ0FBQztBQUN4QixjQUFjLFNBQVMsQ0FBQztBQUV4Qjs7OztHQUlHO0FBRUg7Ozs7O0dBS0c7QUFFSDs7Ozs7R0FLRztBQUVIOzs7OztHQUtHO0FBRUg7Ozs7O0dBS0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY29uc3RhbnRzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kZWNvcmF0b3JzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9lcXVhbGl0eVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vdHlwZXNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3V0aWxzXCI7XG5cbi8qKlxuICogQHN1bW1hcnkgUmVmbGVjdGlvblxuICogQGRlc2NyaXB0aW9uIFByb3ZpZGVzIGNvbW1vbiByZWZsZWN0aW9uIGJhc2VkIGZ1bmN0aW9uYWxpdHlcbiAqIEBtb2R1bGUgcmVmbGVjdGlvblxuICovXG5cbi8qKlxuICogQHN1bW1hcnkgRGVjb3JhdG9yc1xuICogQGRlc2NyaXB0aW9uIFByb3ZpZGVzIGNvbW1vbiByZWZsZWN0aW9uIGJhc2VkIGZ1bmN0aW9uYWxpdHlcbiAqIEBuYW1lc3BhY2UgZGVjb3JhdG9yc1xuICogQG1lbWJlck9mIG1vZHVsZTpyZWZsZWN0aW9uXG4gKi9cblxuLyoqXG4gKiBAc3VtbWFyeSBFcXVhbGl0eVxuICogQGRlc2NyaXB0aW9uIFByb3ZpZGVzIGNvbW1vbiByZWZsZWN0aW9uIGJhc2VkIGZ1bmN0aW9uYWxpdHlcbiAqIEBuYW1lc3BhY2UgZXF1YWxpdHlcbiAqIEBtZW1iZXJPZiBtb2R1bGU6cmVmbGVjdGlvblxuICovXG5cbi8qKlxuICogQHN1bW1hcnkgRXF1YWxpdHlcbiAqIEBkZXNjcmlwdGlvbiBQcm92aWRlcyBjb21tb24gcmVmbGVjdGlvbiBiYXNlZCBmdW5jdGlvbmFsaXR5XG4gKiBAbmFtZXNwYWNlIHV0aWxzXG4gKiBAbWVtYmVyT2YgbW9kdWxlOnJlZmxlY3Rpb25cbiAqL1xuXG4vKipcbiAqIEBzdW1tYXJ5IHN0b3JlcyB0aGUgY3VycmVudCBwYWNrYWdlIHZlcnNpb25cbiAqIEBkZXNjcmlwdGlvbiB0aGlzIGlzIGhvdyB5b3Ugc2hvdWxkIGRvY3VtZW50IGEgY29uc3RhbnRcbiAqIEBjb25zdCBWRVJTSU9OXG4gKiBAbWVtYmVyT2YgbW9kdWxlOnRzLXdvcmtzcGFjZVxuICovXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IFwiMC4zLjFcIjtcbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLFNBQVMsQ0FBQztBQUN4QixjQUFjLFNBQVMsQ0FBQztBQUV4Qjs7OztHQUlHO0FBRUg7Ozs7O0dBS0c7QUFFSDs7Ozs7R0FLRztBQUVIOzs7OztHQUtHO0FBRUg7Ozs7O0dBS0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY29uc3RhbnRzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kZWNvcmF0b3JzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9lcXVhbGl0eVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vdHlwZXNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3V0aWxzXCI7XG5cbi8qKlxuICogQHN1bW1hcnkgUmVmbGVjdGlvblxuICogQGRlc2NyaXB0aW9uIFByb3ZpZGVzIGNvbW1vbiByZWZsZWN0aW9uIGJhc2VkIGZ1bmN0aW9uYWxpdHlcbiAqIEBtb2R1bGUgcmVmbGVjdGlvblxuICovXG5cbi8qKlxuICogQHN1bW1hcnkgRGVjb3JhdG9yc1xuICogQGRlc2NyaXB0aW9uIFByb3ZpZGVzIGNvbW1vbiByZWZsZWN0aW9uIGJhc2VkIGZ1bmN0aW9uYWxpdHlcbiAqIEBuYW1lc3BhY2UgZGVjb3JhdG9yc1xuICogQG1lbWJlck9mIG1vZHVsZTpyZWZsZWN0aW9uXG4gKi9cblxuLyoqXG4gKiBAc3VtbWFyeSBFcXVhbGl0eVxuICogQGRlc2NyaXB0aW9uIFByb3ZpZGVzIGNvbW1vbiByZWZsZWN0aW9uIGJhc2VkIGZ1bmN0aW9uYWxpdHlcbiAqIEBuYW1lc3BhY2UgZXF1YWxpdHlcbiAqIEBtZW1iZXJPZiBtb2R1bGU6cmVmbGVjdGlvblxuICovXG5cbi8qKlxuICogQHN1bW1hcnkgRXF1YWxpdHlcbiAqIEBkZXNjcmlwdGlvbiBQcm92aWRlcyBjb21tb24gcmVmbGVjdGlvbiBiYXNlZCBmdW5jdGlvbmFsaXR5XG4gKiBAbmFtZXNwYWNlIHV0aWxzXG4gKiBAbWVtYmVyT2YgbW9kdWxlOnJlZmxlY3Rpb25cbiAqL1xuXG4vKipcbiAqIEBzdW1tYXJ5IHN0b3JlcyB0aGUgY3VycmVudCBwYWNrYWdlIHZlcnNpb25cbiAqIEBkZXNjcmlwdGlvbiB0aGlzIGlzIGhvdyB5b3Ugc2hvdWxkIGRvY3VtZW50IGEgY29uc3RhbnRcbiAqIEBjb25zdCBWRVJTSU9OXG4gKiBAbWVtYmVyT2YgbW9kdWxlOnRzLXdvcmtzcGFjZVxuICovXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IFwiMC4zLjJcIjtcbiJdfQ==

@@ -35,2 +35,2 @@ export * from "./constants";

*/
export declare const VERSION = "0.3.1";
export declare const VERSION = "0.3.2";
{
"name": "@decaf-ts/reflection",
"version": "0.3.2",
"version": "0.3.3",
"description": "template for ts projects",

@@ -88,5 +88,5 @@ "type": "module",

},
"peerDependencies": {
"dependencies": {
"reflect-metadata": "^0.2.1"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc