code-server
Version:
Run VS Code on a remote server.
7 lines • 216 kB
JavaScript
"use strict";(()=>{var Gf=Object.create;var Yr=Object.defineProperty;var Ko=Object.getOwnPropertyDescriptor;var Wf=Object.getOwnPropertyNames;var Vf=Object.getPrototypeOf,$f=Object.prototype.hasOwnProperty;var I=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Hf=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Wf(e))!$f.call(t,i)&&i!==n&&Yr(t,i,{get:()=>e[i],enumerable:!(r=Ko(e,i))||r.enumerable});return t};var Z=(t,e,n)=>(n=t!=null?Gf(Vf(t)):{},Hf(e||!t||!t.__esModule?Yr(n,"default",{value:t,enumerable:!0}):n,t));var bn=(t,e,n,r)=>{for(var i=r>1?void 0:r?Ko(e,n):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(i=(r?s(e,n,i):s(i))||i);return r&&i&&Yr(e,n,i),i};var zo=g(()=>{var Yo;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:u(),r=i(t);typeof n.Reflect<"u"&&(r=i(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function i(c,a){return function(l,p){Object.defineProperty(c,l,{configurable:!0,writable:!0,value:p}),a&&a(l,p)}}function o(){try{return Function("return this;")()}catch{}}function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}function u(){return o()||s()}})(function(e,n){var r=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",u=typeof Object.create=="function",c={__proto__:[]}instanceof Array,a=!u&&!c,l={create:u?function(){return Kr(Object.create(null))}:c?function(){return Kr({__proto__:null})}:function(){return Kr({})},has:a?function(f,d){return r.call(f,d)}:function(f,d){return d in f},get:a?function(f,d){return r.call(f,d)?f[d]:void 0}:function(f,d){return f[d]}},p=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Lf(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:jf(),T=typeof WeakMap=="function"?WeakMap:Ff(),w=i?Symbol.for("@reflect-metadata:registry"):void 0,R=Df(),K=kf(R);function ue(f,d,h,y){if(O(h)){if(!Fo(f))throw new TypeError;if(!Uo(d))throw new TypeError;return Af(f,d)}else{if(!Fo(f))throw new TypeError;if(!k(d))throw new TypeError;if(!k(y)&&!O(y)&&!ht(y))throw new TypeError;return ht(y)&&(y=void 0),h=we(h),Cf(f,d,h,y)}}e("decorate",ue);function pt(f,d){function h(y,C){if(!k(y))throw new TypeError;if(!O(C)&&!Rf(C))throw new TypeError;Do(f,d,y,C)}return h}e("metadata",pt);function ge(f,d,h,y){if(!k(h))throw new TypeError;return O(y)||(y=we(y)),Do(f,d,h,y)}e("defineMetadata",ge);function be(f,d,h){if(!k(d))throw new TypeError;return O(h)||(h=we(h)),Po(f,d,h)}e("hasMetadata",be);function Ze(f,d,h){if(!k(d))throw new TypeError;return O(h)||(h=we(h)),Vr(f,d,h)}e("hasOwnMetadata",Ze);function Ke(f,d,h){if(!k(d))throw new TypeError;return O(h)||(h=we(h)),Ro(f,d,h)}e("getMetadata",Ke);function vn(f,d,h){if(!k(d))throw new TypeError;return O(h)||(h=we(h)),Mo(f,d,h)}e("getOwnMetadata",vn);function jt(f,d){if(!k(f))throw new TypeError;return O(d)||(d=we(d)),ko(f,d)}e("getMetadataKeys",jt);function Wr(f,d){if(!k(f))throw new TypeError;return O(d)||(d=we(d)),Bo(f,d)}e("getOwnMetadataKeys",Wr);function xf(f,d,h){if(!k(d))throw new TypeError;if(O(h)||(h=we(h)),!k(d))throw new TypeError;O(h)||(h=we(h));var y=Ft(d,h,!1);return O(y)?!1:y.OrdinaryDeleteMetadata(f,d,h)}e("deleteMetadata",xf);function Af(f,d){for(var h=f.length-1;h>=0;--h){var y=f[h],C=y(d);if(!O(C)&&!ht(C)){if(!Uo(C))throw new TypeError;d=C}}return d}function Cf(f,d,h,y){for(var C=f.length-1;C>=0;--C){var B=f[C],G=B(d,h,y);if(!O(G)&&!ht(G)){if(!k(G))throw new TypeError;y=G}}return y}function Po(f,d,h){var y=Vr(f,d,h);if(y)return!0;var C=Hr(d);return ht(C)?!1:Po(f,C,h)}function Vr(f,d,h){var y=Ft(d,h,!1);return O(y)?!1:jo(y.OrdinaryHasOwnMetadata(f,d,h))}function Ro(f,d,h){var y=Vr(f,d,h);if(y)return Mo(f,d,h);var C=Hr(d);if(!ht(C))return Ro(f,C,h)}function Mo(f,d,h){var y=Ft(d,h,!1);if(!O(y))return y.OrdinaryGetOwnMetadata(f,d,h)}function Do(f,d,h,y){var C=Ft(h,y,!0);C.OrdinaryDefineOwnMetadata(f,d,h,y)}function ko(f,d){var h=Bo(f,d),y=Hr(f);if(y===null)return h;var C=ko(y,d);if(C.length<=0)return h;if(h.length<=0)return C;for(var B=new b,G=[],N=0,_=h;N<_.length;N++){var x=_[N],E=B.has(x);E||(B.add(x),G.push(x))}for(var A=0,P=C;A<P.length;A++){var x=P[A],E=B.has(x);E||(B.add(x),G.push(x))}return G}function Bo(f,d){var h=Ft(f,d,!1);return h?h.OrdinaryOwnMetadataKeys(f,d):[]}function Lo(f){if(f===null)return 1;switch(typeof f){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return f===null?1:6;default:return 6}}function O(f){return f===void 0}function ht(f){return f===null}function If(f){return typeof f=="symbol"}function k(f){return typeof f=="object"?f!==null:typeof f=="function"}function Of(f,d){switch(Lo(f)){case 0:return f;case 1:return f;case 2:return f;case 3:return f;case 4:return f;case 5:return f}var h=d===3?"string":d===5?"number":"default",y=qo(f,o);if(y!==void 0){var C=y.call(f,h);if(k(C))throw new TypeError;return C}return Nf(f,h==="default"?"number":h)}function Nf(f,d){if(d==="string"){var h=f.toString;if(gt(h)){var y=h.call(f);if(!k(y))return y}var C=f.valueOf;if(gt(C)){var y=C.call(f);if(!k(y))return y}}else{var C=f.valueOf;if(gt(C)){var y=C.call(f);if(!k(y))return y}var B=f.toString;if(gt(B)){var y=B.call(f);if(!k(y))return y}}throw new TypeError}function jo(f){return!!f}function Pf(f){return""+f}function we(f){var d=Of(f,3);return If(d)?d:Pf(d)}function Fo(f){return Array.isArray?Array.isArray(f):f instanceof Object?f instanceof Array:Object.prototype.toString.call(f)==="[object Array]"}function gt(f){return typeof f=="function"}function Uo(f){return typeof f=="function"}function Rf(f){switch(Lo(f)){case 3:return!0;case 4:return!0;default:return!1}}function $r(f,d){return f===d||f!==f&&d!==d}function qo(f,d){var h=f[d];if(h!=null){if(!gt(h))throw new TypeError;return h}}function Go(f){var d=qo(f,s);if(!gt(d))throw new TypeError;var h=d.call(f);if(!k(h))throw new TypeError;return h}function Wo(f){return f.value}function Vo(f){var d=f.next();return d.done?!1:d}function $o(f){var d=f.return;d&&d.call(f)}function Hr(f){var d=Object.getPrototypeOf(f);if(typeof f!="function"||f===p||d!==p)return d;var h=f.prototype,y=h&&Object.getPrototypeOf(h);if(y==null||y===Object.prototype)return d;var C=y.constructor;return typeof C!="function"||C===f?d:C}function Mf(){var f;!O(w)&&typeof n.Reflect<"u"&&!(w in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(f=Bf(n.Reflect));var d,h,y,C=new T,B={registerProvider:G,getProvider:_,setProvider:E};return B;function G(A){if(!Object.isExtensible(B))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case f===A:break;case O(d):d=A;break;case d===A:break;case O(h):h=A;break;case h===A:break;default:y===void 0&&(y=new b),y.add(A);break}}function N(A,P){if(!O(d)){if(d.isProviderFor(A,P))return d;if(!O(h)){if(h.isProviderFor(A,P))return d;if(!O(y))for(var D=Go(y);;){var L=Vo(D);if(!L)return;var me=Wo(L);if(me.isProviderFor(A,P))return $o(D),me}}}if(!O(f)&&f.isProviderFor(A,P))return f}function _(A,P){var D=C.get(A),L;return O(D)||(L=D.get(P)),O(L)&&(L=N(A,P),O(L)||(O(D)&&(D=new m,C.set(A,D)),D.set(P,L))),L}function x(A){if(O(A))throw new TypeError;return d===A||h===A||!O(y)&&y.has(A)}function E(A,P,D){if(!x(D))throw new Error("Metadata provider not registered.");var L=_(A,P);if(L!==D){if(!O(L))return!1;var me=C.get(A);O(me)&&(me=new m,C.set(A,me)),me.set(P,D)}return!0}}function Df(){var f;return!O(w)&&k(n.Reflect)&&Object.isExtensible(n.Reflect)&&(f=n.Reflect[w]),O(f)&&(f=Mf()),!O(w)&&k(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,w,{enumerable:!1,configurable:!1,writable:!1,value:f}),f}function kf(f){var d=new T,h={isProviderFor:function(x,E){var A=d.get(x);return O(A)?!1:A.has(E)},OrdinaryDefineOwnMetadata:G,OrdinaryHasOwnMetadata:C,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:N,OrdinaryDeleteMetadata:_};return R.registerProvider(h),h;function y(x,E,A){var P=d.get(x),D=!1;if(O(P)){if(!A)return;P=new m,d.set(x,P),D=!0}var L=P.get(E);if(O(L)){if(!A)return;if(L=new m,P.set(E,L),!f.setProvider(x,E,h))throw P.delete(E),D&&d.delete(x),new Error("Wrong provider for target.")}return L}function C(x,E,A){var P=y(E,A,!1);return O(P)?!1:jo(P.has(x))}function B(x,E,A){var P=y(E,A,!1);if(!O(P))return P.get(x)}function G(x,E,A,P){var D=y(A,P,!0);D.set(x,E)}function N(x,E){var A=[],P=y(x,E,!1);if(O(P))return A;for(var D=P.keys(),L=Go(D),me=0;;){var Ho=Vo(L);if(!Ho)return A.length=me,A;var Uf=Wo(Ho);try{A[me]=Uf}catch(qf){try{$o(L)}finally{throw qf}}me++}}function _(x,E,A){var P=y(E,A,!1);if(O(P)||!P.delete(x))return!1;if(P.size===0){var D=d.get(E);O(D)||(D.delete(A),D.size===0&&d.delete(D))}return!0}}function Bf(f){var d=f.defineMetadata,h=f.hasOwnMetadata,y=f.getOwnMetadata,C=f.getOwnMetadataKeys,B=f.deleteMetadata,G=new T,N={isProviderFor:function(_,x){var E=G.get(_);return O(E)?C(_,x).length?(O(E)&&(E=new b,G.set(_,E)),E.add(x),!0):!1:E.has(x)},OrdinaryDefineOwnMetadata:d,OrdinaryHasOwnMetadata:h,OrdinaryGetOwnMetadata:y,OrdinaryOwnMetadataKeys:C,OrdinaryDeleteMetadata:B};return N}function Ft(f,d,h){var y=R.getProvider(f,d);if(!O(y))return y;if(h){if(R.setProvider(f,d,K))return K;throw new Error("Illegal state.")}}function Lf(){var f={},d=[],h=function(){function N(_,x,E){this._index=0,this._keys=_,this._values=x,this._selector=E}return N.prototype["@@iterator"]=function(){return this},N.prototype[s]=function(){return this},N.prototype.next=function(){var _=this._index;if(_>=0&&_<this._keys.length){var x=this._selector(this._keys[_],this._values[_]);return _+1>=this._keys.length?(this._index=-1,this._keys=d,this._values=d):this._index++,{value:x,done:!1}}return{value:void 0,done:!0}},N.prototype.throw=function(_){throw this._index>=0&&(this._index=-1,this._keys=d,this._values=d),_},N.prototype.return=function(_){return this._index>=0&&(this._index=-1,this._keys=d,this._values=d),{value:_,done:!0}},N}(),y=function(){function N(){this._keys=[],this._values=[],this._cacheKey=f,this._cacheIndex=-2}return Object.defineProperty(N.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),N.prototype.has=function(_){return this._find(_,!1)>=0},N.prototype.get=function(_){var x=this._find(_,!1);return x>=0?this._values[x]:void 0},N.prototype.set=function(_,x){var E=this._find(_,!0);return this._values[E]=x,this},N.prototype.delete=function(_){var x=this._find(_,!1);if(x>=0){for(var E=this._keys.length,A=x+1;A<E;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,$r(_,this._cacheKey)&&(this._cacheKey=f,this._cacheIndex=-2),!0}return!1},N.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=f,this._cacheIndex=-2},N.prototype.keys=function(){return new h(this._keys,this._values,C)},N.prototype.values=function(){return new h(this._keys,this._values,B)},N.prototype.entries=function(){return new h(this._keys,this._values,G)},N.prototype["@@iterator"]=function(){return this.entries()},N.prototype[s]=function(){return this.entries()},N.prototype._find=function(_,x){if(!$r(this._cacheKey,_)){this._cacheIndex=-1;for(var E=0;E<this._keys.length;E++)if($r(this._keys[E],_)){this._cacheIndex=E;break}}return this._cacheIndex<0&&x&&(this._cacheIndex=this._keys.length,this._keys.push(_),this._values.push(void 0)),this._cacheIndex},N}();return y;function C(N,_){return N}function B(N,_){return _}function G(N,_){return[N,_]}}function jf(){var f=function(){function d(){this._map=new m}return Object.defineProperty(d.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),d.prototype.has=function(h){return this._map.has(h)},d.prototype.add=function(h){return this._map.set(h,h),this},d.prototype.delete=function(h){return this._map.delete(h)},d.prototype.clear=function(){this._map.clear()},d.prototype.keys=function(){return this._map.keys()},d.prototype.values=function(){return this._map.keys()},d.prototype.entries=function(){return this._map.entries()},d.prototype["@@iterator"]=function(){return this.keys()},d.prototype[s]=function(){return this.keys()},d}();return f}function Ff(){var f=16,d=l.create(),h=y();return function(){function _(){this._key=y()}return _.prototype.has=function(x){var E=C(x,!1);return E!==void 0?l.has(E,this._key):!1},_.prototype.get=function(x){var E=C(x,!1);return E!==void 0?l.get(E,this._key):void 0},_.prototype.set=function(x,E){var A=C(x,!0);return A[this._key]=E,this},_.prototype.delete=function(x){var E=C(x,!1);return E!==void 0?delete E[this._key]:!1},_.prototype.clear=function(){this._key=y()},_}();function y(){var _;do _="@@WeakMap@@"+N();while(l.has(d,_));return d[_]=!0,_}function C(_,x){if(!r.call(_,h)){if(!x)return;Object.defineProperty(_,h,{value:l.create()})}return _[h]}function B(_,x){for(var E=0;E<x;++E)_[E]=Math.random()*255|0;return _}function G(_){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(_)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(_)):B(new Uint8Array(_),_):B(new Array(_),_)}function N(){var _=G(f);_[6]=_[6]&79|64,_[8]=_[8]&191|128;for(var x="",E=0;E<f;++E){var A=_[E];(E===4||E===6||E===8)&&(x+="-"),A<16&&(x+="0"),x+=A.toString(16).toLowerCase()}return x}}function Kr(f){return f.__=void 0,delete f.__,f}})})(Yo||(Yo={}))});var U=g(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.NON_CUSTOM_TAG_KEYS=M.PRE_DESTROY=M.POST_CONSTRUCT=M.DESIGN_PARAM_TYPES=M.PARAM_TYPES=M.TAGGED_PROP=M.TAGGED=M.MULTI_INJECT_TAG=M.INJECT_TAG=M.OPTIONAL_TAG=M.UNMANAGED_TAG=M.NAME_TAG=M.NAMED_TAG=void 0;M.NAMED_TAG="named";M.NAME_TAG="name";M.UNMANAGED_TAG="unmanaged";M.OPTIONAL_TAG="optional";M.INJECT_TAG="inject";M.MULTI_INJECT_TAG="multi_inject";M.TAGGED="inversify:tagged";M.TAGGED_PROP="inversify:tagged_props";M.PARAM_TYPES="inversify:paramtypes";M.DESIGN_PARAM_TYPES="design:paramtypes";M.POST_CONSTRUCT="post_construct";M.PRE_DESTROY="pre_destroy";function Yf(){return[M.INJECT_TAG,M.MULTI_INJECT_TAG,M.NAME_TAG,M.UNMANAGED_TAG,M.NAMED_TAG,M.OPTIONAL_TAG]}M.NON_CUSTOM_TAG_KEYS=Yf()});var ce=g(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.TargetTypeEnum=Ye.BindingTypeEnum=Ye.BindingScopeEnum=void 0;var zf={Request:"Request",Singleton:"Singleton",Transient:"Transient"};Ye.BindingScopeEnum=zf;var Jf={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};Ye.BindingTypeEnum=Jf;var Xf={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};Ye.TargetTypeEnum=Xf});var ze=g(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.id=void 0;var Qf=0;function Zf(){return Qf++}wn.id=Zf});var Xo=g(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.Binding=void 0;var Jo=ce(),ed=ze(),td=function(){function t(e,n){this.id=(0,ed.id)(),this.activated=!1,this.serviceIdentifier=e,this.scope=n,this.type=Jo.BindingTypeEnum.Invalid,this.constraint=function(r){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}return t.prototype.clone=function(){var e=new t(this.serviceIdentifier,this.scope);return e.activated=e.scope===Jo.BindingScopeEnum.Singleton?this.activated:!1,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.factory=this.factory,e.provider=this.provider,e.constraint=this.constraint,e.onActivation=this.onActivation,e.onDeactivation=this.onDeactivation,e.cache=this.cache,e},t}();Sn.Binding=td});var Y=g(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.STACK_OVERFLOW=S.CIRCULAR_DEPENDENCY_IN_FACTORY=S.ON_DEACTIVATION_ERROR=S.PRE_DESTROY_ERROR=S.POST_CONSTRUCT_ERROR=S.ASYNC_UNBIND_REQUIRED=S.MULTIPLE_POST_CONSTRUCT_METHODS=S.MULTIPLE_PRE_DESTROY_METHODS=S.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=S.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=S.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=S.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=S.ARGUMENTS_LENGTH_MISMATCH=S.INVALID_DECORATOR_OPERATION=S.INVALID_TO_SELF_VALUE=S.LAZY_IN_SYNC=S.INVALID_FUNCTION_BINDING=S.INVALID_MIDDLEWARE_RETURN=S.NO_MORE_SNAPSHOTS_AVAILABLE=S.INVALID_BINDING_TYPE=S.NOT_IMPLEMENTED=S.CIRCULAR_DEPENDENCY=S.UNDEFINED_INJECT_ANNOTATION=S.MISSING_INJECT_ANNOTATION=S.MISSING_INJECTABLE_ANNOTATION=S.NOT_REGISTERED=S.CANNOT_UNBIND=S.AMBIGUOUS_MATCH=S.KEY_NOT_FOUND=S.NULL_ARGUMENT=S.DUPLICATED_METADATA=S.DUPLICATED_INJECTABLE_DECORATOR=void 0;S.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.";S.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:";S.NULL_ARGUMENT="NULL argument";S.KEY_NOT_FOUND="Key Not Found";S.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:";S.CANNOT_UNBIND="Could not unbind serviceIdentifier:";S.NOT_REGISTERED="No matching bindings found for serviceIdentifier:";S.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:";S.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:";var nd=function(t){return"@inject called with undefined this could mean that the class "+t+" has a circular dependency problem. You can use a LazyServiceIdentifier to overcome this limitation."};S.UNDEFINED_INJECT_ANNOTATION=nd;S.CIRCULAR_DEPENDENCY="Circular dependency found:";S.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.";S.INVALID_BINDING_TYPE="Invalid binding type:";S.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.";S.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!";S.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!";var rd=function(t){return"You are attempting to construct '"+t+`' in a synchronous way
but it has asynchronous dependencies.`};S.LAZY_IN_SYNC=rd;S.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier";S.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.";var id=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"The number of constructor arguments in the derived class "+(t[0]+" must be >= than the number of constructor arguments of its base class.")};S.ARGUMENTS_LENGTH_MISMATCH=id;S.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.";S.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE='Invalid Container option. Default scope must be a string ("singleton" or "transient").';S.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean";S.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean";S.MULTIPLE_PRE_DESTROY_METHODS="Cannot apply @preDestroy decorator multiple times in the same class";S.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";S.ASYNC_UNBIND_REQUIRED="Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)";var od=function(t,e){return"@postConstruct error in class "+t+": "+e};S.POST_CONSTRUCT_ERROR=od;var sd=function(t,e){return"@preDestroy error in class "+t+": "+e};S.PRE_DESTROY_ERROR=sd;var ad=function(t,e){return"onDeactivation() error in class "+t+": "+e};S.ON_DEACTIVATION_ERROR=ad;var ud=function(t,e){return"It looks like there is a circular dependency in one of the '"+t+"' bindings. Please investigate bindings with "+("service identifier '"+e+"'.")};S.CIRCULAR_DEPENDENCY_IN_FACTORY=ud;S.STACK_OVERFLOW="Maximum call stack size exceeded"});var Jr=g(Se=>{"use strict";var cd=Se&&Se.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),ld=Se&&Se.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),fd=Se&&Se.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&cd(e,t,n);return ld(e,t),e};Object.defineProperty(Se,"__esModule",{value:!0});Se.MetadataReader=void 0;var zr=fd(U()),dd=function(){function t(){}return t.prototype.getConstructorMetadata=function(e){var n=Reflect.getMetadata(zr.PARAM_TYPES,e),r=Reflect.getMetadata(zr.TAGGED,e);return{compilerGeneratedMetadata:n,userGeneratedMetadata:r||{}}},t.prototype.getPropertiesMetadata=function(e){var n=Reflect.getMetadata(zr.TAGGED_PROP,e)||[];return n},t}();Se.MetadataReader=dd});var Qo=g(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.BindingCount=void 0;Tn.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}});var Xr=g(le=>{"use strict";var pd=le&&le.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),hd=le&&le.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),gd=le&&le.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&pd(e,t,n);return hd(e,t),e};Object.defineProperty(le,"__esModule",{value:!0});le.tryAndThrowErrorIfStackOverflow=le.isStackOverflowExeption=void 0;var md=gd(Y());function Zo(t){return t instanceof RangeError||t.message===md.STACK_OVERFLOW}le.isStackOverflowExeption=Zo;var yd=function(t,e){try{return t()}catch(n){throw Zo(n)&&(n=e()),n}};le.tryAndThrowErrorIfStackOverflow=yd});var et=g(q=>{"use strict";var _d=q&&q.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),vd=q&&q.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bd=q&&q.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&_d(e,t,n);return vd(e,t),e};Object.defineProperty(q,"__esModule",{value:!0});q.getSymbolDescription=q.circularDependencyToException=q.listMetadataForTarget=q.listRegisteredBindingsForServiceIdentifier=q.getServiceIdentifierAsString=q.getFunctionName=void 0;var wd=bd(Y());function es(t){if(typeof t=="function"){var e=t;return e.name}else{if(typeof t=="symbol")return t.toString();var e=t;return e}}q.getServiceIdentifierAsString=es;function Sd(t,e,n){var r="",i=n(t,e);return i.length!==0&&(r=`
Registered bindings:`,i.forEach(function(o){var s="Object";o.implementationType!==null&&(s=rs(o.implementationType)),r=r+`
`+s,o.constraint.metaData&&(r=r+" - "+o.constraint.metaData)})),r}q.listRegisteredBindingsForServiceIdentifier=Sd;function ts(t,e){return t.parentRequest===null?!1:t.parentRequest.serviceIdentifier===e?!0:ts(t.parentRequest,e)}function Td(t){function e(r,i){i===void 0&&(i=[]);var o=es(r.serviceIdentifier);return i.push(o),r.parentRequest!==null?e(r.parentRequest,i):i}var n=e(t);return n.reverse().join(" --> ")}function ns(t){t.childRequests.forEach(function(e){if(ts(e,e.serviceIdentifier)){var n=Td(e);throw new Error(wd.CIRCULAR_DEPENDENCY+" "+n)}else ns(e)})}q.circularDependencyToException=ns;function Ed(t,e){if(e.isTagged()||e.isNamed()){var n="",r=e.getNamedTag(),i=e.getCustomTags();return r!==null&&(n+=r.toString()+`
`),i!==null&&i.forEach(function(o){n+=o.toString()+`
`})," "+t+`
`+t+" - "+n}else return" "+t}q.listMetadataForTarget=Ed;function rs(t){if(t.name)return t.name;var e=t.toString(),n=e.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+e}q.getFunctionName=rs;function xd(t){return t.toString().slice(7,-1)}q.getSymbolDescription=xd});var is=g(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.Context=void 0;var Ad=ze(),Cd=function(){function t(e){this.id=(0,Ad.id)(),this.container=e}return t.prototype.addPlan=function(e){this.plan=e},t.prototype.setCurrentRequest=function(e){this.currentRequest=e},t}();En.Context=Cd});var ye=g(Te=>{"use strict";var Id=Te&&Te.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Od=Te&&Te.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Nd=Te&&Te.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Id(e,t,n);return Od(e,t),e};Object.defineProperty(Te,"__esModule",{value:!0});Te.Metadata=void 0;var Pd=Nd(U()),Rd=function(){function t(e,n){this.key=e,this.value=n}return t.prototype.toString=function(){return this.key===Pd.NAMED_TAG?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},t}();Te.Metadata=Rd});var os=g(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.Plan=void 0;var Md=function(){function t(e,n){this.parentContext=e,this.rootRequest=n}return t}();xn.Plan=Md});var Cn=g(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.LazyServiceIdentifier=void 0;var Dd=function(){function t(e){this._cb=e}return t.prototype.unwrap=function(){return this._cb()},t}();An.LazyServiceIdentifier=Dd});var ss=g(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.QueryableString=void 0;var kd=function(){function t(e){this.str=e}return t.prototype.startsWith=function(e){return this.str.indexOf(e)===0},t.prototype.endsWith=function(e){var n="",r=e.split("").reverse().join("");return n=this.str.split("").reverse().join(""),this.startsWith.call({str:n},r)},t.prototype.contains=function(e){return this.str.indexOf(e)!==-1},t.prototype.equals=function(e){return this.str===e},t.prototype.value=function(){return this.str},t}();In.QueryableString=kd});var Qr=g(Ee=>{"use strict";var Bd=Ee&&Ee.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Ld=Ee&&Ee.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),jd=Ee&&Ee.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Bd(e,t,n);return Ld(e,t),e};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.Target=void 0;var Ge=jd(U()),Fd=ze(),Ud=et(),as=ye(),qd=ss(),Gd=function(){function t(e,n,r,i){this.id=(0,Fd.id)(),this.type=e,this.serviceIdentifier=r;var o=typeof n=="symbol"?(0,Ud.getSymbolDescription)(n):n;this.name=new qd.QueryableString(o||""),this.identifier=n,this.metadata=new Array;var s=null;typeof i=="string"?s=new as.Metadata(Ge.NAMED_TAG,i):i instanceof as.Metadata&&(s=i),s!==null&&this.metadata.push(s)}return t.prototype.hasTag=function(e){for(var n=0,r=this.metadata;n<r.length;n++){var i=r[n];if(i.key===e)return!0}return!1},t.prototype.isArray=function(){return this.hasTag(Ge.MULTI_INJECT_TAG)},t.prototype.matchesArray=function(e){return this.matchesTag(Ge.MULTI_INJECT_TAG)(e)},t.prototype.isNamed=function(){return this.hasTag(Ge.NAMED_TAG)},t.prototype.isTagged=function(){return this.metadata.some(function(e){return Ge.NON_CUSTOM_TAG_KEYS.every(function(n){return e.key!==n})})},t.prototype.isOptional=function(){return this.matchesTag(Ge.OPTIONAL_TAG)(!0)},t.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(e){return e.key===Ge.NAMED_TAG})[0]:null},t.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(e){return Ge.NON_CUSTOM_TAG_KEYS.every(function(n){return e.key!==n})}):null},t.prototype.matchesNamedTag=function(e){return this.matchesTag(Ge.NAMED_TAG)(e)},t.prototype.matchesTag=function(e){var n=this;return function(r){for(var i=0,o=n.metadata;i<o.length;i++){var s=o[i];if(s.key===e&&s.value===r)return!0}return!1}},t}();Ee.Target=Gd});var gs=g(z=>{"use strict";var Wd=z&&z.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Vd=z&&z.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),us=z&&z.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Wd(e,t,n);return Vd(e,t),e},On=z&&z.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(z,"__esModule",{value:!0});z.getFunctionName=z.getBaseClassDependencyCount=z.getDependencies=void 0;var $d=Cn(),Zr=us(Y()),cs=ce(),Ut=us(U()),ei=et();Object.defineProperty(z,"getFunctionName",{enumerable:!0,get:function(){return ei.getFunctionName}});var ls=Qr();function Hd(t,e){var n=(0,ei.getFunctionName)(e);return fs(t,n,e,!1)}z.getDependencies=Hd;function fs(t,e,n,r){var i=t.getConstructorMetadata(n),o=i.compilerGeneratedMetadata;if(o===void 0){var s=Zr.MISSING_INJECTABLE_ANNOTATION+" "+e+".";throw new Error(s)}var u=i.userGeneratedMetadata,c=Object.keys(u),a=n.length===0&&c.length>0,l=c.length>n.length,p=a||l?c.length:n.length,m=Yd(r,e,o,u,p),b=ds(t,n,e),T=On(On([],m,!0),b,!0);return T}function Kd(t,e,n,r,i){var o=i[t.toString()]||[],s=hs(o),u=s.unmanaged!==!0,c=r[t],a=s.inject||s.multiInject;if(c=a||c,c instanceof $d.LazyServiceIdentifier&&(c=c.unwrap()),u){var l=c===Object,p=c===Function,m=c===void 0,b=l||p||m;if(!e&&b){var T=Zr.MISSING_INJECT_ANNOTATION+" argument "+t+" in class "+n+".";throw new Error(T)}var w=new ls.Target(cs.TargetTypeEnum.ConstructorArgument,s.targetName,c);return w.metadata=o,w}return null}function Yd(t,e,n,r,i){for(var o=[],s=0;s<i;s++){var u=s,c=Kd(u,t,e,n,r);c!==null&&o.push(c)}return o}function zd(t,e,n,r){var i=t||e;if(i===void 0){var o=Zr.MISSING_INJECTABLE_ANNOTATION+" for property "+String(n)+" in class "+r+".";throw new Error(o)}return i}function ds(t,e,n){for(var r=t.getPropertiesMetadata(e),i=[],o=Object.getOwnPropertySymbols(r),s=Object.keys(r),u=s.concat(o),c=0,a=u;c<a.length;c++){var l=a[c],p=r[l],m=hs(p),b=m.targetName||l,T=zd(m.inject,m.multiInject,l,n),w=new ls.Target(cs.TargetTypeEnum.ClassProperty,b,T);w.metadata=p,i.push(w)}var R=Object.getPrototypeOf(e.prototype).constructor;if(R!==Object){var K=ds(t,R,n);i=On(On([],i,!0),K,!0)}return i}function ps(t,e){var n=Object.getPrototypeOf(e.prototype).constructor;if(n!==Object){var r=(0,ei.getFunctionName)(n),i=fs(t,r,n,!0),o=i.map(function(c){return c.metadata.filter(function(a){return a.key===Ut.UNMANAGED_TAG})}),s=[].concat.apply([],o).length,u=i.length-s;return u>0?u:ps(t,n)}else return 0}z.getBaseClassDependencyCount=ps;function hs(t){var e={};return t.forEach(function(n){e[n.key.toString()]=n.value}),{inject:e[Ut.INJECT_TAG],multiInject:e[Ut.MULTI_INJECT_TAG],targetName:e[Ut.NAME_TAG],unmanaged:e[Ut.UNMANAGED_TAG]}}});var ms=g(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.Request=void 0;var Jd=ze(),Xd=function(){function t(e,n,r,i,o){this.id=(0,Jd.id)(),this.serviceIdentifier=e,this.parentContext=n,this.parentRequest=r,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=r===null?new Map:null}return t.prototype.addChildRequest=function(e,n,r){var i=new t(e,this.parentContext,this,n,r);return this.childRequests.push(i),i},t}();Nn.Request=Xd});var oi=g(ie=>{"use strict";var Qd=ie&&ie.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Zd=ie&&ie.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),vs=ie&&ie.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Qd(e,t,n);return Zd(e,t),e};Object.defineProperty(ie,"__esModule",{value:!0});ie.getBindingDictionary=ie.createMockRequest=ie.plan=void 0;var Pn=Qo(),ni=vs(Y()),bs=ce(),ys=vs(U()),ep=Xr(),mt=et(),ws=is(),ri=ye(),tp=os(),ti=gs(),ii=ms(),Ss=Qr();function Ts(t){return t._bindingDictionary}ie.getBindingDictionary=Ts;function np(t,e,n,r,i,o){var s=t?ys.MULTI_INJECT_TAG:ys.INJECT_TAG,u=new ri.Metadata(s,n),c=new Ss.Target(e,r,n,u);if(i!==void 0){var a=new ri.Metadata(i,o);c.metadata.push(a)}return c}function _s(t,e,n,r,i){var o=qt(n.container,i.serviceIdentifier),s=[];return o.length===Pn.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&typeof i.serviceIdentifier=="function"&&t.getConstructorMetadata(i.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(i.serviceIdentifier).toSelf(),o=qt(n.container,i.serviceIdentifier)),e?s=o:s=o.filter(function(u){var c=new ii.Request(u.serviceIdentifier,n,r,u,i);return u.constraint(c)}),rp(i.serviceIdentifier,s,i,n.container),s}function rp(t,e,n,r){switch(e.length){case Pn.BindingCount.NoBindingsAvailable:if(n.isOptional())return e;var i=(0,mt.getServiceIdentifierAsString)(t),o=ni.NOT_REGISTERED;throw o+=(0,mt.listMetadataForTarget)(i,n),o+=(0,mt.listRegisteredBindingsForServiceIdentifier)(r,i,qt),new Error(o);case Pn.BindingCount.OnlyOneBindingAvailable:return e;case Pn.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return e;var i=(0,mt.getServiceIdentifierAsString)(t),o=ni.AMBIGUOUS_MATCH+" "+i;throw o+=(0,mt.listRegisteredBindingsForServiceIdentifier)(r,i,qt),new Error(o)}}function Es(t,e,n,r,i,o){var s,u;if(i===null){s=_s(t,e,r,null,o),u=new ii.Request(n,r,null,s,o);var c=new tp.Plan(r,u);r.addPlan(c)}else s=_s(t,e,r,i,o),u=i.addChildRequest(o.serviceIdentifier,s,o);s.forEach(function(a){var l=null;if(o.isArray())l=u.addChildRequest(a.serviceIdentifier,a,o);else{if(a.cache)return;l=u}if(a.type===bs.BindingTypeEnum.Instance&&a.implementationType!==null){var p=(0,ti.getDependencies)(t,a.implementationType);if(!r.container.options.skipBaseClassChecks){var m=(0,ti.getBaseClassDependencyCount)(t,a.implementationType);if(p.length<m){var b=ni.ARGUMENTS_LENGTH_MISMATCH((0,ti.getFunctionName)(a.implementationType));throw new Error(b)}}p.forEach(function(T){Es(t,!1,T.serviceIdentifier,r,l,T)})}})}function qt(t,e){var n=[],r=Ts(t);return r.hasKey(e)?n=r.get(e):t.parent!==null&&(n=qt(t.parent,e)),n}function ip(t,e,n,r,i,o,s,u){u===void 0&&(u=!1);var c=new ws.Context(e),a=np(n,r,i,"",o,s);try{return Es(t,u,i,c,null,a),c}catch(l){throw(0,ep.isStackOverflowExeption)(l)&&(0,mt.circularDependencyToException)(c.plan.rootRequest),l}}ie.plan=ip;function op(t,e,n,r){var i=new Ss.Target(bs.TargetTypeEnum.Variable,"",e,new ri.Metadata(n,r)),o=new ws.Context(t),s=new ii.Request(e,o,null,[],i);return s}ie.createMockRequest=op});var Gt=g(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.isPromiseOrContainsPromise=yt.isPromise=void 0;function si(t){var e=typeof t=="object"&&t!==null||typeof t=="function";return e&&typeof t.then=="function"}yt.isPromise=si;function sp(t){return si(t)?!0:Array.isArray(t)&&t.some(si)}yt.isPromiseOrContainsPromise=sp});var xs=g(xe=>{"use strict";var ap=xe&&xe.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function u(l){try{a(r.next(l))}catch(p){s(p)}}function c(l){try{a(r.throw(l))}catch(p){s(p)}}function a(l){l.done?o(l.value):i(l.value).then(u,c)}a((r=r.apply(t,e||[])).next())})},up=xe&&xe.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(l){return c([a,l])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=e.call(t,n)}catch(l){a=[6,l],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(xe,"__esModule",{value:!0});xe.saveToScope=xe.tryGetFromScope=void 0;var Rn=ce(),cp=Gt(),lp=function(t,e){return e.scope===Rn.BindingScopeEnum.Singleton&&e.activated?e.cache:e.scope===Rn.BindingScopeEnum.Request&&t.has(e.id)?t.get(e.id):null};xe.tryGetFromScope=lp;var fp=function(t,e,n){e.scope===Rn.BindingScopeEnum.Singleton&&pp(e,n),e.scope===Rn.BindingScopeEnum.Request&&dp(t,e,n)};xe.saveToScope=fp;var dp=function(t,e,n){t.has(e.id)||t.set(e.id,n)},pp=function(t,e){t.cache=e,t.activated=!0,(0,cp.isPromise)(e)&&hp(t,e)},hp=function(t,e){return ap(void 0,void 0,void 0,function(){var n,r;return up(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e];case 1:return n=i.sent(),t.cache=n,[3,3];case 2:throw r=i.sent(),t.cache=null,t.activated=!1,r;case 3:return[2]}})})}});var As=g(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.FactoryType=void 0;var gp;(function(t){t.DynamicValue="toDynamicValue",t.Factory="toFactory",t.Provider="toProvider"})(gp=Wt.FactoryType||(Wt.FactoryType={}))});var ui=g(oe=>{"use strict";var mp=oe&&oe.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),yp=oe&&oe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),_p=oe&&oe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&mp(e,t,n);return yp(e,t),e};Object.defineProperty(oe,"__esModule",{value:!0});oe.getFactoryDetails=oe.ensureFullyBound=oe.multiBindToService=void 0;var vp=et(),bp=_p(Y()),Ae=ce(),ai=As(),wp=function(t){return function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.forEach(function(i){return t.bind(i).toService(e)})}}};oe.multiBindToService=wp;var Sp=function(t){var e=null;switch(t.type){case Ae.BindingTypeEnum.ConstantValue:case Ae.BindingTypeEnum.Function:e=t.cache;break;case Ae.BindingTypeEnum.Constructor:case Ae.BindingTypeEnum.Instance:e=t.implementationType;break;case Ae.BindingTypeEnum.DynamicValue:e=t.dynamicValue;break;case Ae.BindingTypeEnum.Provider:e=t.provider;break;case Ae.BindingTypeEnum.Factory:e=t.factory;break}if(e===null){var n=(0,vp.getServiceIdentifierAsString)(t.serviceIdentifier);throw new Error(bp.INVALID_BINDING_TYPE+" "+n)}};oe.ensureFullyBound=Sp;var Tp=function(t){switch(t.type){case Ae.BindingTypeEnum.Factory:return{factory:t.factory,factoryType:ai.FactoryType.Factory};case Ae.BindingTypeEnum.Provider:return{factory:t.provider,factoryType:ai.FactoryType.Provider};case Ae.BindingTypeEnum.DynamicValue:return{factory:t.dynamicValue,factoryType:ai.FactoryType.DynamicValue};default:throw new Error("Unexpected factory type "+t.type)}};oe.getFactoryDetails=Tp});var Rs=g(V=>{"use strict";var _t=V&&V.__assign||function(){return _t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_t.apply(this,arguments)},Ep=V&&V.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),xp=V&&V.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ap=V&&V.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Ep(e,t,n);return xp(e,t),e},Os=V&&V.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function u(l){try{a(r.next(l))}catch(p){s(p)}}function c(l){try{a(r.throw(l))}catch(p){s(p)}}function a(l){l.done?o(l.value):i(l.value).then(u,c)}a((r=r.apply(t,e||[])).next())})},Ns=V&&V.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(l){return c([a,l])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=e.call(t,n)}catch(l){a=[6,l],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Cp=V&&V.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(V,"__esModule",{value:!0});V.resolveInstance=void 0;var ci=Y(),fi=ce(),li=Ap(U()),di=Gt();function Ip(t,e){return t.reduce(function(n,r){var i=e(r),o=r.target.type;return o===fi.TargetTypeEnum.ConstructorArgument?n.constructorInjections.push(i):(n.propertyRequests.push(r),n.propertyInjections.push(i)),n.isAsync||(n.isAsync=(0,di.isPromiseOrContainsPromise)(i)),n},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}function Op(t,e,n){var r;if(e.length>0){var i=Ip(e,n),o=_t(_t({},i),{constr:t});i.isAsync?r=Np(o):r=Ps(o)}else r=new t;return r}function Ps(t){var e,n=new((e=t.constr).bind.apply(e,Cp([void 0],t.constructorInjections,!1)));return t.propertyRequests.forEach(function(r,i){var o=r.target.identifier,s=t.propertyInjections[i];(!r.target.isOptional()||s!==void 0)&&(n[o]=s)}),n}function Np(t){return Os(this,void 0,void 0,function(){var e,n;return Ns(this,function(r){switch(r.label){case 0:return[4,Cs(t.constructorInjections)];case 1:return e=r.sent(),[4,Cs(t.propertyInjections)];case 2:return n=r.sent(),[2,Ps(_t(_t({},t),{constructorInjections:e,propertyInjections:n}))]}})})}function Cs(t){return Os(this,void 0,void 0,function(){var e,n,r,i;return Ns(this,function(o){for(e=[],n=0,r=t;n<r.length;n++)i=r[n],Array.isArray(i)?e.push(Promise.all(i)):e.push(i);return[2,Promise.all(e)]})})}function Is(t,e){var n=Pp(t,e);return(0,di.isPromise)(n)?n.then(function(){return e}):e}function Pp(t,e){var n,r;if(Reflect.hasMetadata(li.POST_CONSTRUCT,t)){var i=Reflect.getMetadata(li.POST_CONSTRUCT,t);try{return(r=(n=e)[i.value])===null||r===void 0?void 0:r.call(n)}catch(o){if(o instanceof Error)throw new Error((0,ci.POST_CONSTRUCT_ERROR)(t.name,o.message))}}}function Rp(t,e){t.scope!==fi.BindingScopeEnum.Singleton&&Mp(t,e)}function Mp(t,e){var n="Class cannot be instantiated in "+(t.scope===fi.BindingScopeEnum.Request?"request":"transient")+" scope.";if(typeof t.onDeactivation=="function")throw new Error((0,ci.ON_DEACTIVATION_ERROR)(e.name,n));if(Reflect.hasMetadata(li.PRE_DESTROY,e))throw new Error((0,ci.PRE_DESTROY_ERROR)(e.name,n))}function Dp(t,e,n,r){Rp(t,e);var i=Op(e,n,r);return(0,di.isPromise)(i)?i.then(function(o){return Is(e,o)}):Is(e,i)}V.resolveInstance=Dp});var Ls=g(se=>{"use strict";var kp=se&&se.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Bp=se&&se.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Lp=se&&se.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&kp(e,t,n);return Bp(e,t),e},jp=se&&se.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function u(l){try{a(r.next(l))}catch(p){s(p)}}function c(l){try{a(r.throw(l))}catch(p){s(p)}}function a(l){l.done?o(l.value):i(l.value).then(u,c)}a((r=r.apply(t,e||[])).next())})},Fp=se&&se.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(l){return c([a,l])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=e.call(t,n)}catch(l){a=[6,l],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(se,"__esModule",{value:!0});se.resolve=void 0;var Up=Lp(Y()),Mn=ce(),qp=oi(),Ms=xs(),pi=Gt(),ks=ui(),Gp=Xr(),Wp=Rs(),hi=function(t){return function(e){e.parentContext.setCurrentRequest(e);var n=e.bindings,r=e.childRequests,i=e.target&&e.target.isArray(),o=!e.parentRequest||!e.parentRequest.target||!e.target||!e.parentRequest.target.matchesArray(e.target.serviceIdentifier);if(i&&o)return r.map(function(u){var c=hi(t);return c(u)});if(e.target.isOptional()&&n.length===0)return;var s=n[0];return Kp(t,e,s)}},Vp=function(t,e){var n=(0,ks.getFactoryDetails)(t);return(0,Gp.tryAndThrowErrorIfStackOverflow)(function(){return n.factory.bind(t)(e)},function(){return new Error(Up.CIRCULAR_DEPENDENCY_IN_FACTORY(n.factoryType,e.currentRequest.serviceIdentifier.toString()))})},$p=function(t,e,n){var r,i=e.childRequests;switch((0,ks.ensureFullyBound)(n),n.type){case Mn.BindingTypeEnum.ConstantValue:case Mn.BindingTypeEnum.Function:r=n.cache;break;case Mn.BindingTypeEnum.Constructor:r=n.implementationType;break;case Mn.BindingTypeEnum.Instance:r=(0,Wp.resolveInstance)(n,n.implementationType,i,hi(t));break;default:r=Vp(n,e.parentContext)}return r},Hp=function(t,e,n){var r=(0,Ms.tryGetFromScope)(t,e);return r!==null||(r=n(),(0,Ms.saveToScope)(t,e,r)),r},Kp=function(t,e,n){return Hp(t,n,function(){var r=$p(t,e,n);return(0,pi.isPromise)(r)?r=r.then(function(i){return Ds(e,n,i)}):r=Ds(e,n,r),r})};function Ds(t,e,n){var r=Yp(t.parentContext,e,n),i=Xp(t.parentContext.container),o,s=i.next();do{o=s.value;var u=t.parentContext,c=t.serviceIdentifier,a=Jp(o,c);(0,pi.isPromise)(r)?r=Bs(a,u,r):r=zp(a,u,r),s=i.next()}while(s.done!==!0&&!(0,qp.getBindingDictionary)(o).hasKey(t.serviceIdentifier));return r}var Yp=function(t,e,n){var r;return typeof e.onActivation=="function"?r=e.onActivation(t,n):r=n,r},zp=function(t,e,n){for(var r=t.next();!r.done;){if(n=r.value(e,n),(0,pi.isPromise)(n))return Bs(t,e,n);r=t.next()}return n},Bs=function(t,e,n){return jp(void 0,void 0,void 0,function(){var r,i;return Fp(this,function(o){switch(o.label){case 0:return[4,n];case 1:r=o.sent(),i=t.next(),o.label=2;case 2:return i.done?[3,4]:[4,i.value(e,r)];case 3:return r=o.sent(),i=t.next(),[3,2];case 4:return[2,r]}})})},Jp=function(t,e){var n=t._activations;return n.hasKey(e)?n.get(e).values():[].values()},Xp=function(t){for(var e=[t],n=t.parent;n!==null;)e.push(n),n=n.parent;var r=function(){var o=e.pop();return o!==void 0?{done:!1,value:o}:{done:!0,value:void 0}},i={next:r};return i};function Qp(t){var e=hi(t.plan.rootRequest.requestScope)