code-server
Version:
Run VS Code on a remote server.
38 lines • 211 kB
JavaScript
"use strict";(()=>{var hf=Object.create;var Gr=Object.defineProperty;var Lo=Object.getOwnPropertyDescriptor;var gf=Object.getOwnPropertyNames;var mf=Object.getPrototypeOf,yf=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 vf=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of gf(e))!yf.call(t,i)&&i!==n&&Gr(t,i,{get:()=>e[i],enumerable:!(r=Lo(e,i))||r.enumerable});return t};var Q=(t,e,n)=>(n=t!=null?hf(mf(t)):{},vf(e||!t||!t.__esModule?Gr(n,"default",{value:t,enumerable:!0}):n,t));var mn=(t,e,n,r)=>{for(var i=r>1?void 0:r?Lo(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&&Gr(e,n,i),i};var Fo=g(()=>{var jo;(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 qr(Object.create(null))}:c?function(){return qr({__proto__:null})}:function(){return qr({})},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:cf(),w=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:lf(),C=typeof WeakMap=="function"?WeakMap:ff(),E=i?Symbol.for("@reflect-metadata:registry"):void 0,R=sf(),H=af(R);function ae(f,d,h,y){if(O(h)){if(!Oo(f))throw new TypeError;if(!No(d))throw new TypeError;return Xl(f,d)}else{if(!Oo(f))throw new TypeError;if(!k(d))throw new TypeError;if(!k(y)&&!O(y)&&!pt(y))throw new TypeError;return pt(y)&&(y=void 0),h=be(h),Ql(f,d,h,y)}}e("decorate",ae);function dt(f,d){function h(y,A){if(!k(y))throw new TypeError;if(!O(A)&&!rf(A))throw new TypeError;Eo(f,d,y,A)}return h}e("metadata",dt);function he(f,d,h,y){if(!k(h))throw new TypeError;return O(y)||(y=be(y)),Eo(f,d,h,y)}e("defineMetadata",he);function _e(f,d,h){if(!k(d))throw new TypeError;return O(h)||(h=be(h)),wo(f,d,h)}e("hasMetadata",_e);function Qe(f,d,h){if(!k(d))throw new TypeError;return O(h)||(h=be(h)),jr(f,d,h)}e("hasOwnMetadata",Qe);function $e(f,d,h){if(!k(d))throw new TypeError;return O(h)||(h=be(h)),So(f,d,h)}e("getMetadata",$e);function gn(f,d,h){if(!k(d))throw new TypeError;return O(h)||(h=be(h)),To(f,d,h)}e("getOwnMetadata",gn);function jt(f,d){if(!k(f))throw new TypeError;return O(d)||(d=be(d)),xo(f,d)}e("getMetadataKeys",jt);function Lr(f,d){if(!k(f))throw new TypeError;return O(d)||(d=be(d)),Co(f,d)}e("getOwnMetadataKeys",Lr);function Jl(f,d,h){if(!k(d))throw new TypeError;if(O(h)||(h=be(h)),!k(d))throw new TypeError;O(h)||(h=be(h));var y=Ft(d,h,!1);return O(y)?!1:y.OrdinaryDeleteMetadata(f,d,h)}e("deleteMetadata",Jl);function Xl(f,d){for(var h=f.length-1;h>=0;--h){var y=f[h],A=y(d);if(!O(A)&&!pt(A)){if(!No(A))throw new TypeError;d=A}}return d}function Ql(f,d,h,y){for(var A=f.length-1;A>=0;--A){var B=f[A],q=B(d,h,y);if(!O(q)&&!pt(q)){if(!k(q))throw new TypeError;y=q}}return y}function wo(f,d,h){var y=jr(f,d,h);if(y)return!0;var A=Ur(d);return pt(A)?!1:wo(f,A,h)}function jr(f,d,h){var y=Ft(d,h,!1);return O(y)?!1:Io(y.OrdinaryHasOwnMetadata(f,d,h))}function So(f,d,h){var y=jr(f,d,h);if(y)return To(f,d,h);var A=Ur(d);if(!pt(A))return So(f,A,h)}function To(f,d,h){var y=Ft(d,h,!1);if(!O(y))return y.OrdinaryGetOwnMetadata(f,d,h)}function Eo(f,d,h,y){var A=Ft(h,y,!0);A.OrdinaryDefineOwnMetadata(f,d,h,y)}function xo(f,d){var h=Co(f,d),y=Ur(f);if(y===null)return h;var A=xo(y,d);if(A.length<=0)return h;if(h.length<=0)return A;for(var B=new w,q=[],N=0,v=h;N<v.length;N++){var T=v[N],S=B.has(T);S||(B.add(T),q.push(T))}for(var x=0,P=A;x<P.length;x++){var T=P[x],S=B.has(T);S||(B.add(T),q.push(T))}return q}function Co(f,d){var h=Ft(f,d,!1);return h?h.OrdinaryOwnMetadataKeys(f,d):[]}function Ao(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 pt(f){return f===null}function Zl(f){return typeof f=="symbol"}function k(f){return typeof f=="object"?f!==null:typeof f=="function"}function ef(f,d){switch(Ao(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=Po(f,o);if(y!==void 0){var A=y.call(f,h);if(k(A))throw new TypeError;return A}return tf(f,h==="default"?"number":h)}function tf(f,d){if(d==="string"){var h=f.toString;if(ht(h)){var y=h.call(f);if(!k(y))return y}var A=f.valueOf;if(ht(A)){var y=A.call(f);if(!k(y))return y}}else{var A=f.valueOf;if(ht(A)){var y=A.call(f);if(!k(y))return y}var B=f.toString;if(ht(B)){var y=B.call(f);if(!k(y))return y}}throw new TypeError}function Io(f){return!!f}function nf(f){return""+f}function be(f){var d=ef(f,3);return Zl(d)?d:nf(d)}function Oo(f){return Array.isArray?Array.isArray(f):f instanceof Object?f instanceof Array:Object.prototype.toString.call(f)==="[object Array]"}function ht(f){return typeof f=="function"}function No(f){return typeof f=="function"}function rf(f){switch(Ao(f)){case 3:return!0;case 4:return!0;default:return!1}}function Fr(f,d){return f===d||f!==f&&d!==d}function Po(f,d){var h=f[d];if(h!=null){if(!ht(h))throw new TypeError;return h}}function Ro(f){var d=Po(f,s);if(!ht(d))throw new TypeError;var h=d.call(f);if(!k(h))throw new TypeError;return h}function Mo(f){return f.value}function Do(f){var d=f.next();return d.done?!1:d}function ko(f){var d=f.return;d&&d.call(f)}function Ur(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 A=y.constructor;return typeof A!="function"||A===f?d:A}function of(){var f;!O(E)&&typeof n.Reflect<"u"&&!(E in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(f=uf(n.Reflect));var d,h,y,A=new C,B={registerProvider:q,getProvider:v,setProvider:S};return B;function q(x){if(!Object.isExtensible(B))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case f===x:break;case O(d):d=x;break;case d===x:break;case O(h):h=x;break;case h===x:break;default:y===void 0&&(y=new w),y.add(x);break}}function N(x,P){if(!O(d)){if(d.isProviderFor(x,P))return d;if(!O(h)){if(h.isProviderFor(x,P))return d;if(!O(y))for(var D=Ro(y);;){var L=Do(D);if(!L)return;var ge=Mo(L);if(ge.isProviderFor(x,P))return ko(D),ge}}}if(!O(f)&&f.isProviderFor(x,P))return f}function v(x,P){var D=A.get(x),L;return O(D)||(L=D.get(P)),O(L)&&(L=N(x,P),O(L)||(O(D)&&(D=new m,A.set(x,D)),D.set(P,L))),L}function T(x){if(O(x))throw new TypeError;return d===x||h===x||!O(y)&&y.has(x)}function S(x,P,D){if(!T(D))throw new Error("Metadata provider not registered.");var L=v(x,P);if(L!==D){if(!O(L))return!1;var ge=A.get(x);O(ge)&&(ge=new m,A.set(x,ge)),ge.set(P,D)}return!0}}function sf(){var f;return!O(E)&&k(n.Reflect)&&Object.isExtensible(n.Reflect)&&(f=n.Reflect[E]),O(f)&&(f=of()),!O(E)&&k(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,E,{enumerable:!1,configurable:!1,writable:!1,value:f}),f}function af(f){var d=new C,h={isProviderFor:function(T,S){var x=d.get(T);return O(x)?!1:x.has(S)},OrdinaryDefineOwnMetadata:q,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:N,OrdinaryDeleteMetadata:v};return R.registerProvider(h),h;function y(T,S,x){var P=d.get(T),D=!1;if(O(P)){if(!x)return;P=new m,d.set(T,P),D=!0}var L=P.get(S);if(O(L)){if(!x)return;if(L=new m,P.set(S,L),!f.setProvider(T,S,h))throw P.delete(S),D&&d.delete(T),new Error("Wrong provider for target.")}return L}function A(T,S,x){var P=y(S,x,!1);return O(P)?!1:Io(P.has(T))}function B(T,S,x){var P=y(S,x,!1);if(!O(P))return P.get(T)}function q(T,S,x,P){var D=y(x,P,!0);D.set(T,S)}function N(T,S){var x=[],P=y(T,S,!1);if(O(P))return x;for(var D=P.keys(),L=Ro(D),ge=0;;){var Bo=Do(L);if(!Bo)return x.length=ge,x;var df=Mo(Bo);try{x[ge]=df}catch(pf){try{ko(L)}finally{throw pf}}ge++}}function v(T,S,x){var P=y(S,x,!1);if(O(P)||!P.delete(T))return!1;if(P.size===0){var D=d.get(S);O(D)||(D.delete(x),D.size===0&&d.delete(D))}return!0}}function uf(f){var d=f.defineMetadata,h=f.hasOwnMetadata,y=f.getOwnMetadata,A=f.getOwnMetadataKeys,B=f.deleteMetadata,q=new C,N={isProviderFor:function(v,T){var S=q.get(v);return O(S)?A(v,T).length?(O(S)&&(S=new w,q.set(v,S)),S.add(T),!0):!1:S.has(T)},OrdinaryDefineOwnMetadata:d,OrdinaryHasOwnMetadata:h,OrdinaryGetOwnMetadata:y,OrdinaryOwnMetadataKeys:A,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,H))return H;throw new Error("Illegal state.")}}function cf(){var f={},d=[],h=function(){function N(v,T,S){this._index=0,this._keys=v,this._values=T,this._selector=S}return N.prototype["@@iterator"]=function(){return this},N.prototype[s]=function(){return this},N.prototype.next=function(){var v=this._index;if(v>=0&&v<this._keys.length){var T=this._selector(this._keys[v],this._values[v]);return v+1>=this._keys.length?(this._index=-1,this._keys=d,this._values=d):this._index++,{value:T,done:!1}}return{value:void 0,done:!0}},N.prototype.throw=function(v){throw this._index>=0&&(this._index=-1,this._keys=d,this._values=d),v},N.prototype.return=function(v){return this._index>=0&&(this._index=-1,this._keys=d,this._values=d),{value:v,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(v){return this._find(v,!1)>=0},N.prototype.get=function(v){var T=this._find(v,!1);return T>=0?this._values[T]:void 0},N.prototype.set=function(v,T){var S=this._find(v,!0);return this._values[S]=T,this},N.prototype.delete=function(v){var T=this._find(v,!1);if(T>=0){for(var S=this._keys.length,x=T+1;x<S;x++)this._keys[x-1]=this._keys[x],this._values[x-1]=this._values[x];return this._keys.length--,this._values.length--,Fr(v,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,A)},N.prototype.values=function(){return new h(this._keys,this._values,B)},N.prototype.entries=function(){return new h(this._keys,this._values,q)},N.prototype["@@iterator"]=function(){return this.entries()},N.prototype[s]=function(){return this.entries()},N.prototype._find=function(v,T){if(!Fr(this._cacheKey,v)){this._cacheIndex=-1;for(var S=0;S<this._keys.length;S++)if(Fr(this._keys[S],v)){this._cacheIndex=S;break}}return this._cacheIndex<0&&T&&(this._cacheIndex=this._keys.length,this._keys.push(v),this._values.push(void 0)),this._cacheIndex},N}();return y;function A(N,v){return N}function B(N,v){return v}function q(N,v){return[N,v]}}function lf(){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 v(){this._key=y()}return v.prototype.has=function(T){var S=A(T,!1);return S!==void 0?l.has(S,this._key):!1},v.prototype.get=function(T){var S=A(T,!1);return S!==void 0?l.get(S,this._key):void 0},v.prototype.set=function(T,S){var x=A(T,!0);return x[this._key]=S,this},v.prototype.delete=function(T){var S=A(T,!1);return S!==void 0?delete S[this._key]:!1},v.prototype.clear=function(){this._key=y()},v}();function y(){var v;do v="@@WeakMap@@"+N();while(l.has(d,v));return d[v]=!0,v}function A(v,T){if(!r.call(v,h)){if(!T)return;Object.defineProperty(v,h,{value:l.create()})}return v[h]}function B(v,T){for(var S=0;S<T;++S)v[S]=Math.random()*255|0;return v}function q(v){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(v)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(v)):B(new Uint8Array(v),v):B(new Array(v),v)}function N(){var v=q(f);v[6]=v[6]&79|64,v[8]=v[8]&191|128;for(var T="",S=0;S<f;++S){var x=v[S];(S===4||S===6||S===8)&&(T+="-"),x<16&&(T+="0"),T+=x.toString(16).toLowerCase()}return T}}function qr(f){return f.__=void 0,delete f.__,f}})})(jo||(jo={}))});var F=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 bf(){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=bf()});var ue=g(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.TargetTypeEnum=He.BindingTypeEnum=He.BindingScopeEnum=void 0;var wf={Request:"Request",Singleton:"Singleton",Transient:"Transient"};He.BindingScopeEnum=wf;var Sf={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};He.BindingTypeEnum=Sf;var Tf={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};He.TargetTypeEnum=Tf});var Ke=g(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.id=void 0;var Ef=0;function xf(){return Ef++}yn.id=xf});var qo=g(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.Binding=void 0;var Uo=ue(),Cf=Ke(),Af=function(){function t(e,n){this.id=(0,Cf.id)(),this.activated=!1,this.serviceIdentifier=e,this.scope=n,this.type=Uo.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===Uo.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}();vn.Binding=Af});var K=g(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.STACK_OVERFLOW=b.CIRCULAR_DEPENDENCY_IN_FACTORY=b.ON_DEACTIVATION_ERROR=b.PRE_DESTROY_ERROR=b.POST_CONSTRUCT_ERROR=b.ASYNC_UNBIND_REQUIRED=b.MULTIPLE_POST_CONSTRUCT_METHODS=b.MULTIPLE_PRE_DESTROY_METHODS=b.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=b.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=b.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=b.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=b.ARGUMENTS_LENGTH_MISMATCH=b.INVALID_DECORATOR_OPERATION=b.INVALID_TO_SELF_VALUE=b.LAZY_IN_SYNC=b.INVALID_FUNCTION_BINDING=b.INVALID_MIDDLEWARE_RETURN=b.NO_MORE_SNAPSHOTS_AVAILABLE=b.INVALID_BINDING_TYPE=b.NOT_IMPLEMENTED=b.CIRCULAR_DEPENDENCY=b.UNDEFINED_INJECT_ANNOTATION=b.MISSING_INJECT_ANNOTATION=b.MISSING_INJECTABLE_ANNOTATION=b.NOT_REGISTERED=b.CANNOT_UNBIND=b.AMBIGUOUS_MATCH=b.KEY_NOT_FOUND=b.NULL_ARGUMENT=b.DUPLICATED_METADATA=b.DUPLICATED_INJECTABLE_DECORATOR=void 0;b.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.";b.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:";b.NULL_ARGUMENT="NULL argument";b.KEY_NOT_FOUND="Key Not Found";b.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:";b.CANNOT_UNBIND="Could not unbind serviceIdentifier:";b.NOT_REGISTERED="No matching bindings found for serviceIdentifier:";b.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:";b.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:";var If=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."};b.UNDEFINED_INJECT_ANNOTATION=If;b.CIRCULAR_DEPENDENCY="Circular dependency found:";b.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.";b.INVALID_BINDING_TYPE="Invalid binding type:";b.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.";b.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!";b.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!";var Of=function(t){return"You are attempting to construct '"+t+`' in a synchronous way
but it has asynchronous dependencies.`};b.LAZY_IN_SYNC=Of;b.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier";b.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 Nf=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.")};b.ARGUMENTS_LENGTH_MISMATCH=Nf;b.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.";b.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE='Invalid Container option. Default scope must be a string ("singleton" or "transient").';b.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean";b.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean";b.MULTIPLE_PRE_DESTROY_METHODS="Cannot apply @preDestroy decorator multiple times in the same class";b.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";b.ASYNC_UNBIND_REQUIRED="Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)";var Pf=function(t,e){return"@postConstruct error in class "+t+": "+e};b.POST_CONSTRUCT_ERROR=Pf;var Rf=function(t,e){return"@preDestroy error in class "+t+": "+e};b.PRE_DESTROY_ERROR=Rf;var Mf=function(t,e){return"onDeactivation() error in class "+t+": "+e};b.ON_DEACTIVATION_ERROR=Mf;var Df=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+"'.")};b.CIRCULAR_DEPENDENCY_IN_FACTORY=Df;b.STACK_OVERFLOW="Maximum call stack size exceeded"});var Vr=g(we=>{"use strict";var kf=we&&we.__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]}),Bf=we&&we.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Lf=we&&we.__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)&&kf(e,t,n);return Bf(e,t),e};Object.defineProperty(we,"__esModule",{value:!0});we.MetadataReader=void 0;var Wr=Lf(F()),jf=function(){function t(){}return t.prototype.getConstructorMetadata=function(e){var n=Reflect.getMetadata(Wr.PARAM_TYPES,e),r=Reflect.getMetadata(Wr.TAGGED,e);return{compilerGeneratedMetadata:n,userGeneratedMetadata:r||{}}},t.prototype.getPropertiesMetadata=function(e){var n=Reflect.getMetadata(Wr.TAGGED_PROP,e)||[];return n},t}();we.MetadataReader=jf});var Go=g(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.BindingCount=void 0;_n.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}});var $r=g(ce=>{"use strict";var Ff=ce&&ce.__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]}),Uf=ce&&ce.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),qf=ce&&ce.__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)&&Ff(e,t,n);return Uf(e,t),e};Object.defineProperty(ce,"__esModule",{value:!0});ce.tryAndThrowErrorIfStackOverflow=ce.isStackOverflowExeption=void 0;var Gf=qf(K());function Wo(t){return t instanceof RangeError||t.message===Gf.STACK_OVERFLOW}ce.isStackOverflowExeption=Wo;var Wf=function(t,e){try{return t()}catch(n){throw Wo(n)&&(n=e()),n}};ce.tryAndThrowErrorIfStackOverflow=Wf});var Ze=g(U=>{"use strict";var Vf=U&&U.__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]}),$f=U&&U.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Hf=U&&U.__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)&&Vf(e,t,n);return $f(e,t),e};Object.defineProperty(U,"__esModule",{value:!0});U.getSymbolDescription=U.circularDependencyToException=U.listMetadataForTarget=U.listRegisteredBindingsForServiceIdentifier=U.getServiceIdentifierAsString=U.getFunctionName=void 0;var Kf=Hf(K());function Vo(t){if(typeof t=="function"){var e=t;return e.name}else{if(typeof t=="symbol")return t.toString();var e=t;return e}}U.getServiceIdentifierAsString=Vo;function Yf(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=Ko(o.implementationType)),r=r+`
`+s,o.constraint.metaData&&(r=r+" - "+o.constraint.metaData)})),r}U.listRegisteredBindingsForServiceIdentifier=Yf;function $o(t,e){return t.parentRequest===null?!1:t.parentRequest.serviceIdentifier===e?!0:$o(t.parentRequest,e)}function zf(t){function e(r,i){i===void 0&&(i=[]);var o=Vo(r.serviceIdentifier);return i.push(o),r.parentRequest!==null?e(r.parentRequest,i):i}var n=e(t);return n.reverse().join(" --> ")}function Ho(t){t.childRequests.forEach(function(e){if($o(e,e.serviceIdentifier)){var n=zf(e);throw new Error(Kf.CIRCULAR_DEPENDENCY+" "+n)}else Ho(e)})}U.circularDependencyToException=Ho;function Jf(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}U.listMetadataForTarget=Jf;function Ko(t){if(t.name)return t.name;var e=t.toString(),n=e.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+e}U.getFunctionName=Ko;function Xf(t){return t.toString().slice(7,-1)}U.getSymbolDescription=Xf});var Yo=g(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.Context=void 0;var Qf=Ke(),Zf=function(){function t(e){this.id=(0,Qf.id)(),this.container=e}return t.prototype.addPlan=function(e){this.plan=e},t.prototype.setCurrentRequest=function(e){this.currentRequest=e},t}();bn.Context=Zf});var me=g(Se=>{"use strict";var ed=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]}),td=Se&&Se.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),nd=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)&&ed(e,t,n);return td(e,t),e};Object.defineProperty(Se,"__esModule",{value:!0});Se.Metadata=void 0;var rd=nd(F()),id=function(){function t(e,n){this.key=e,this.value=n}return t.prototype.toString=function(){return this.key===rd.NAMED_TAG?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},t}();Se.Metadata=id});var zo=g(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.Plan=void 0;var od=function(){function t(e,n){this.parentContext=e,this.rootRequest=n}return t}();wn.Plan=od});var Tn=g(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.LazyServiceIdentifier=void 0;var sd=function(){function t(e){this._cb=e}return t.prototype.unwrap=function(){return this._cb()},t}();Sn.LazyServiceIdentifier=sd});var Jo=g(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.QueryableString=void 0;var ad=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}();En.QueryableString=ad});var Hr=g(Te=>{"use strict";var ud=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]}),cd=Te&&Te.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ld=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)&&ud(e,t,n);return cd(e,t),e};Object.defineProperty(Te,"__esModule",{value:!0});Te.Target=void 0;var Fe=ld(F()),fd=Ke(),dd=Ze(),Xo=me(),pd=Jo(),hd=function(){function t(e,n,r,i){this.id=(0,fd.id)(),this.type=e,this.serviceIdentifier=r;var o=typeof n=="symbol"?(0,dd.getSymbolDescription)(n):n;this.name=new pd.QueryableString(o||""),this.identifier=n,this.metadata=new Array;var s=null;typeof i=="string"?s=new Xo.Metadata(Fe.NAMED_TAG,i):i instanceof Xo.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(Fe.MULTI_INJECT_TAG)},t.prototype.matchesArray=function(e){return this.matchesTag(Fe.MULTI_INJECT_TAG)(e)},t.prototype.isNamed=function(){return this.hasTag(Fe.NAMED_TAG)},t.prototype.isTagged=function(){return this.metadata.some(function(e){return Fe.NON_CUSTOM_TAG_KEYS.every(function(n){return e.key!==n})})},t.prototype.isOptional=function(){return this.matchesTag(Fe.OPTIONAL_TAG)(!0)},t.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(e){return e.key===Fe.NAMED_TAG})[0]:null},t.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(e){return Fe.NON_CUSTOM_TAG_KEYS.every(function(n){return e.key!==n})}):null},t.prototype.matchesNamedTag=function(e){return this.matchesTag(Fe.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}();Te.Target=hd});var os=g(Y=>{"use strict";var gd=Y&&Y.__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]}),md=Y&&Y.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qo=Y&&Y.__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)&&gd(e,t,n);return md(e,t),e},xn=Y&&Y.__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(Y,"__esModule",{value:!0});Y.getFunctionName=Y.getBaseClassDependencyCount=Y.getDependencies=void 0;var yd=Tn(),Kr=Qo(K()),Zo=ue(),Ut=Qo(F()),Yr=Ze();Object.defineProperty(Y,"getFunctionName",{enumerable:!0,get:function(){return Yr.getFunctionName}});var es=Hr();function vd(t,e){var n=(0,Yr.getFunctionName)(e);return ts(t,n,e,!1)}Y.getDependencies=vd;function ts(t,e,n,r){var i=t.getConstructorMetadata(n),o=i.compilerGeneratedMetadata;if(o===void 0){var s=Kr.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=bd(r,e,o,u,p),w=ns(t,n,e),C=xn(xn([],m,!0),w,!0);return C}function _d(t,e,n,r,i){var o=i[t.toString()]||[],s=is(o),u=s.unmanaged!==!0,c=r[t],a=s.inject||s.multiInject;if(c=a||c,c instanceof yd.LazyServiceIdentifier&&(c=c.unwrap()),u){var l=c===Object,p=c===Function,m=c===void 0,w=l||p||m;if(!e&&w){var C=Kr.MISSING_INJECT_ANNOTATION+" argument "+t+" in class "+n+".";throw new Error(C)}var E=new es.Target(Zo.TargetTypeEnum.ConstructorArgument,s.targetName,c);return E.metadata=o,E}return null}function bd(t,e,n,r,i){for(var o=[],s=0;s<i;s++){var u=s,c=_d(u,t,e,n,r);c!==null&&o.push(c)}return o}function wd(t,e,n,r){var i=t||e;if(i===void 0){var o=Kr.MISSING_INJECTABLE_ANNOTATION+" for property "+String(n)+" in class "+r+".";throw new Error(o)}return i}function ns(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=is(p),w=m.targetName||l,C=wd(m.inject,m.multiInject,l,n),E=new es.Target(Zo.TargetTypeEnum.ClassProperty,w,C);E.metadata=p,i.push(E)}var R=Object.getPrototypeOf(e.prototype).constructor;if(R!==Object){var H=ns(t,R,n);i=xn(xn([],i,!0),H,!0)}return i}function rs(t,e){var n=Object.getPrototypeOf(e.prototype).constructor;if(n!==Object){var r=(0,Yr.getFunctionName)(n),i=ts(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:rs(t,n)}else return 0}Y.getBaseClassDependencyCount=rs;function is(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 ss=g(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.Request=void 0;var Sd=Ke(),Td=function(){function t(e,n,r,i,o){this.id=(0,Sd.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}();Cn.Request=Td});var Zr=g(re=>{"use strict";var Ed=re&&re.__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]}),xd=re&&re.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),cs=re&&re.__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)&&Ed(e,t,n);return xd(e,t),e};Object.defineProperty(re,"__esModule",{value:!0});re.getBindingDictionary=re.createMockRequest=re.plan=void 0;var An=Go(),Jr=cs(K()),ls=ue(),as=cs(F()),Cd=$r(),gt=Ze(),fs=Yo(),Xr=me(),Ad=zo(),zr=os(),Qr=ss(),ds=Hr();function ps(t){return t._bindingDictionary}re.getBindingDictionary=ps;function Id(t,e,n,r,i,o){var s=t?as.MULTI_INJECT_TAG:as.INJECT_TAG,u=new Xr.Metadata(s,n),c=new ds.Target(e,r,n,u);if(i!==void 0){var a=new Xr.Metadata(i,o);c.metadata.push(a)}return c}function us(t,e,n,r,i){var o=qt(n.container,i.serviceIdentifier),s=[];return o.length===An.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 Qr.Request(u.serviceIdentifier,n,r,u,i);return u.constraint(c)}),Od(i.serviceIdentifier,s,i,n.container),s}function Od(t,e,n,r){switch(e.length){case An.BindingCount.NoBindingsAvailable:if(n.isOptional())return e;var i=(0,gt.getServiceIdentifierAsString)(t),o=Jr.NOT_REGISTERED;throw o+=(0,gt.listMetadataForTarget)(i,n),o+=(0,gt.listRegisteredBindingsForServiceIdentifier)(r,i,qt),new Error(o);case An.BindingCount.OnlyOneBindingAvailable:return e;case An.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return e;var i=(0,gt.getServiceIdentifierAsString)(t),o=Jr.AMBIGUOUS_MATCH+" "+i;throw o+=(0,gt.listRegisteredBindingsForServiceIdentifier)(r,i,qt),new Error(o)}}function hs(t,e,n,r,i,o){var s,u;if(i===null){s=us(t,e,r,null,o),u=new Qr.Request(n,r,null,s,o);var c=new Ad.Plan(r,u);r.addPlan(c)}else s=us(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===ls.BindingTypeEnum.Instance&&a.implementationType!==null){var p=(0,zr.getDependencies)(t,a.implementationType);if(!r.container.options.skipBaseClassChecks){var m=(0,zr.getBaseClassDependencyCount)(t,a.implementationType);if(p.length<m){var w=Jr.ARGUMENTS_LENGTH_MISMATCH((0,zr.getFunctionName)(a.implementationType));throw new Error(w)}}p.forEach(function(C){hs(t,!1,C.serviceIdentifier,r,l,C)})}})}function qt(t,e){var n=[],r=ps(t);return r.hasKey(e)?n=r.get(e):t.parent!==null&&(n=qt(t.parent,e)),n}function Nd(t,e,n,r,i,o,s,u){u===void 0&&(u=!1);var c=new fs.Context(e),a=Id(n,r,i,"",o,s);try{return hs(t,u,i,c,null,a),c}catch(l){throw(0,Cd.isStackOverflowExeption)(l)&&(0,gt.circularDependencyToException)(c.plan.rootRequest),l}}re.plan=Nd;function Pd(t,e,n,r){var i=new ds.Target(ls.TargetTypeEnum.Variable,"",e,new Xr.Metadata(n,r)),o=new fs.Context(t),s=new Qr.Request(e,o,null,[],i);return s}re.createMockRequest=Pd});var Gt=g(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.isPromiseOrContainsPromise=mt.isPromise=void 0;function ei(t){var e=typeof t=="object"&&t!==null||typeof t=="function";return e&&typeof t.then=="function"}mt.isPromise=ei;function Rd(t){return ei(t)?!0:Array.isArray(t)&&t.some(ei)}mt.isPromiseOrContainsPromise=Rd});var gs=g(Ee=>{"use strict";var Md=Ee&&Ee.__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())})},Dd=Ee&&Ee.__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(Ee,"__esModule",{value:!0});Ee.saveToScope=Ee.tryGetFromScope=void 0;var In=ue(),kd=Gt(),Bd=function(t,e){return e.scope===In.BindingScopeEnum.Singleton&&e.activated?e.cache:e.scope===In.BindingScopeEnum.Request&&t.has(e.id)?t.get(e.id):null};Ee.tryGetFromScope=Bd;var Ld=function(t,e,n){e.scope===In.BindingScopeEnum.Singleton&&Fd(e,n),e.scope===In.BindingScopeEnum.Request&&jd(t,e,n)};Ee.saveToScope=Ld;var jd=function(t,e,n){t.has(e.id)||t.set(e.id,n)},Fd=function(t,e){t.cache=e,t.activated=!0,(0,kd.isPromise)(e)&&Ud(t,e)},Ud=function(t,e){return Md(void 0,void 0,void 0,function(){var n,r;return Dd(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 ms=g(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.FactoryType=void 0;var qd;(function(t){t.DynamicValue="toDynamicValue",t.Factory="toFactory",t.Provider="toProvider"})(qd=Wt.FactoryType||(Wt.FactoryType={}))});var ni=g(ie=>{"use strict";var Gd=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]}),Wd=ie&&ie.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Vd=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)&&Gd(e,t,n);return Wd(e,t),e};Object.defineProperty(ie,"__esModule",{value:!0});ie.getFactoryDetails=ie.ensureFullyBound=ie.multiBindToService=void 0;var $d=Ze(),Hd=Vd(K()),xe=ue(),ti=ms(),Kd=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)})}}};ie.multiBindToService=Kd;var Yd=function(t){var e=null;switch(t.type){case xe.BindingTypeEnum.ConstantValue:case xe.BindingTypeEnum.Function:e=t.cache;break;case xe.BindingTypeEnum.Constructor:case xe.BindingTypeEnum.Instance:e=t.implementationType;break;case xe.BindingTypeEnum.DynamicValue:e=t.dynamicValue;break;case xe.BindingTypeEnum.Provider:e=t.provider;break;case xe.BindingTypeEnum.Factory:e=t.factory;break}if(e===null){var n=(0,$d.getServiceIdentifierAsString)(t.serviceIdentifier);throw new Error(Hd.INVALID_BINDING_TYPE+" "+n)}};ie.ensureFullyBound=Yd;var zd=function(t){switch(t.type){case xe.BindingTypeEnum.Factory:return{factory:t.factory,factoryType:ti.FactoryType.Factory};case xe.BindingTypeEnum.Provider:return{factory:t.provider,factoryType:ti.FactoryType.Provider};case xe.BindingTypeEnum.DynamicValue:return{factory:t.dynamicValue,factoryType:ti.FactoryType.DynamicValue};default:throw new Error("Unexpected factory type "+t.type)}};ie.getFactoryDetails=zd});var Ss=g(W=>{"use strict";var yt=W&&W.__assign||function(){return yt=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},yt.apply(this,arguments)},Jd=W&&W.__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]}),Xd=W&&W.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qd=W&&W.__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)&&Jd(e,t,n);return Xd(e,t),e},_s=W&&W.__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())})},bs=W&&W.__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}}},Zd=W&&W.__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(W,"__esModule",{value:!0});W.resolveInstance=void 0;var ri=K(),oi=ue(),ii=Qd(F()),si=Gt();function ep(t,e){return t.reduce(function(n,r){var i=e(r),o=r.target.type;return o===oi.TargetTypeEnum.ConstructorArgument?n.constructorInjections.push(i):(n.propertyRequests.push(r),n.propertyInjections.push(i)),n.isAsync||(n.isAsync=(0,si.isPromiseOrContainsPromise)(i)),n},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}function tp(t,e,n){var r;if(e.length>0){var i=ep(e,n),o=yt(yt({},i),{constr:t});i.isAsync?r=np(o):r=ws(o)}else r=new t;return r}function ws(t){var e,n=new((e=t.constr).bind.apply(e,Zd([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 _s(this,void 0,void 0,function(){var e,n;return bs(this,function(r){switch(r.label){case 0:return[4,ys(t.constructorInjections)];case 1:return e=r.sent(),[4,ys(t.propertyInjections)];case 2:return n=r.sent(),[2,ws(yt(yt({},t),{constructorInjections:e,propertyInjections:n}))]}})})}function ys(t){return _s(this,void 0,void 0,function(){var e,n,r,i;return bs(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 vs(t,e){var n=rp(t,e);return(0,si.isPromise)(n)?n.then(function(){return e}):e}function rp(t,e){var n,r;if(Reflect.hasMetadata(ii.POST_CONSTRUCT,t)){var i=Reflect.getMetadata(ii.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,ri.POST_CONSTRUCT_ERROR)(t.name,o.message))}}}function ip(t,e){t.scope!==oi.BindingScopeEnum.Singleton&&op(t,e)}function op(t,e){var n="Class cannot be instantiated in "+(t.scope===oi.BindingScopeEnum.Request?"request":"transient")+" scope.";if(typeof t.onDeactivation=="function")throw new Error((0,ri.ON_DEACTIVATION_ERROR)(e.name,n));if(Reflect.hasMetadata(ii.PRE_DESTROY,e))throw new Error((0,ri.PRE_DESTROY_ERROR)(e.name,n))}function sp(t,e,n,r){ip(t,e);var i=tp(e,n,r);return(0,si.isPromise)(i)?i.then(function(o){return vs(e,o)}):vs(e,i)}W.resolveInstance=sp});var As=g(oe=>{"use strict";var ap=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]}),up=oe&&oe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),cp=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)&&ap(e,t,n);return up(e,t),e},lp=oe&&oe.__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=oe&&oe.__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(oe,"__esModule",{value:!0});oe.resolve=void 0;var dp=cp(K()),On=ue(),pp=Zr(),Ts=gs(),ai=Gt(),xs=ni(),hp=$r(),gp=Ss(),ui=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=ui(t);return c(u)});if(e.target.isOptional()&&n.length===0)return;var s=n[0];return _p(t,e,s)}},mp=function(t,e){var n=(0,xs.getFactoryDetails)(t);return(0,hp.tryAndThrowErrorIfStackOverflow)(function(){return n.factory.bind(t)(e)},function(){return new Error(dp.CIRCULAR_DEPENDENCY_IN_FACTORY(n.factoryType,e.currentRequest.serviceIdentifier.toString()))})},yp=function(t,e,n){var r,i=e.childRequests;switch((0,xs.ensureFullyBound)(n),n.type){case On.BindingTypeEnum.ConstantValue:case On.BindingTypeEnum.Function:r=n.cache;break;case On.BindingTypeEnum.Constructor:r=n.implementationType;break;case On.BindingTypeEnum.Instance:r=(0,gp.resolveInstance)(n,n.implementationType,i,ui(t));break;default:r=mp(n,e.parentContext)}return r},vp=function(t,e,n){var r=(0,Ts.tryGetFromScope)(t,e);return r!==null||(r=n(),(0,Ts.saveToScope)(t,e,r)),r},_p=function(t,e,n){return vp(t,n,function(){var r=yp(t,e,n);return(0,ai.isPromise)(r)?r=r.then(function(i){return Es(e,n,i)}):r=Es(e,n,r),r})};function Es(t,e,n){var r=bp(t.parentContext,e,n),i=Tp(t.parentContext.container),o,s=i.next();do{o=s.value;var u=t.parentContext,c=t.serviceIdentifier,a=Sp(o,c);(0,ai.isPromise)(r)?r=Cs(a,u,r):r=wp(a,u,r),s=i.next()}while(s.done!==!0&&!(0,pp.getBindingDictionary)(o).hasKey(t.serviceIdentifier));return r}var bp=function(t,e,n){var r;return typeof e.onActivation=="function"?r=e.onActivation(t,n):r=n,r},wp=function(t,e,n){for(var r=t.next();!r.done;){if(n=r.value(e,n),(0,ai.isPromise)(n))return Cs(t,e,n);r=t.next()}return n},Cs=function(t,e,n){return lp(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]}})})},Sp=function(t,e){var n=t._activations;return n.hasKey(e)?n.get(e).values():[].values()},Tp=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 Ep(t){var e=ui(t.plan.rootRequest.requestScope);return e(t.plan.rootRequest)}oe.resolve=Ep});var ci=g(z=>{"use strict";var xp=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]}),Cp=z&&z.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ap=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)&&xp(e,t,n);return Cp(e,t),e};Object.defineProperty(z,"__esModule",{value:!0});z.typeConstraint=z.namedConstraint=z.taggedConstraint=z.traverseAncerstors=void 0;var Ip=Ap(F()),Op=me(),Is=function(t,e){var n=t.parentRequest;return n!==null?e(n)?!0:Is(n,e):!1};z.traverseAncerstors=Is;var Os=function(t){return function(e){var n=function(r){return r!==null&&r.target!==null&&r.target.matchesTag(t)(e)};return n.metaData=new Op.Metadata(t,e),n}};z.taggedConstraint=Os;var Np=Os(Ip.NAMED_TAG);z.namedConstraint=Np;var Pp=function(t){return function(e){var n=null;if(e!==null)if(n=e.bindings[0],typeof t=="string"){var r=n.serviceIdentifier;return r===t}else{var i=e.bindings[0].implementationType;return t===i}return!1}};z.typeConstraint=Pp});var Pn=g(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.BindingWhenSyntax=void 0;var Z=Rn(),G=ci(),Rp=function(){function t(e){this._binding=e}return t.prototype.when=function(e){return this._binding.constraint=e,new Z.BindingOnSyntax(this._binding)},t.prototype.whenTargetNamed=function(e){return this._binding.constraint=(0,G.namedConstraint)(e),new Z.BindingOnSyntax(this._binding)},t.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){if(e===null)return!1;var n=e.target!==null&&!e.target.isNamed()&&!e.target.isTagged();return n},new Z.BindingOnSyntax(this._binding)},t.prototype.whenTargetTagged=function(e,n){return this._binding.constraint=(0,G.taggedConstraint)(e)(n),new Z.BindingOnSyntax(this._binding)},t.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(n){return n!==null&&(0,G.typeConstraint)(e)(n.parentRequest)},new Z.BindingOnSyntax(this._binding)},t.prototype.whenParentNamed=function(e){return this._binding.constraint=function(n){return n!==null&&(0,G.namedConstraint)(e)(n.parentRequest)},new Z.BindingOnSyntax(this._binding)},t.prototype.whenParentTagged=function(e,n){return this._binding.constraint=function(r){return r!==null&&(0,G.taggedConstraint)(e)(n)(r.parentRequest)},new Z.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(n){return n!==null&&(0,G.traverseAncerstors)(n,(0,G.typeConstraint)(e))},new Z.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(n){return n!==null&&!(0,G.traverseAncerstors)(n,(0,G.typeConstraint)(e))},new Z.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(n){return n!==null&&(0,G.traverseAncerstors)(n,(0,G.namedConstraint)(e))},new Z.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(n){return n!==null&&!(0,G.traverseAncerstors)(n,(0,G.namedConstraint)(e))},new Z.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorTagged=function(e,n){return this._binding.constraint=function(r){return r!==null&&(0,G.traverseAncerstors)(r,(0,G.taggedConstraint)(e)(n))},new Z.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorTagged=function(e,n){return this._binding.constraint=function(r){return r!==null&&!(0,G.traverseAncerstors)(r,(0,G.taggedConstraint)(e)(n))},new Z.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(n){return n!==null&&(0,G.traverseAncerstors)(n,e)},new Z.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(n){return n!==null&&!(0,G.traverseAncerstors)(n,e)},new Z.BindingOnSyntax(this._binding)},t}();Nn.BindingWhenSyntax=Rp});var Rn=g(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.BindingOnSyntax=void 0;var Ns=Pn(),Mp=function(){function t(e){this._binding=e}return t.prototype.onActivation=function(e){return this._binding.onActivation=e,new Ns.BindingWhenSyntax(this._binding)},t.prototype.onDeactivation=function(e){return this._binding.onDeactivation=e,new Ns.BindingWhenSyntax(this._binding)},t}();Mn.BindingOnSyntax=Mp});var li=g(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.BindingWhenOnSyntax=void 0;var Dp=Rn(),kp=Pn(),Bp=function(){function t(e){this._binding=e,this._bindingWhenSyntax=new kp.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new Dp.BindingOnSyntax(this._binding)}return t.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},t.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(e,n){return this._bindingWhenSyntax.whenTargetTagged(e,n)},t.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},t.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},t.prototype.whenParentTagged=function(e,n){return this._bindingWhenSyntax.whenParentTagged(e,n)},t.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},t.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},t.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},t.prototype.whenAnyAncestorTagged=function(e,n){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,n)},t.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},t.prototype.whenNoAncestorTagged=function(e,n){return this._bindingWhenSyntax.whenNoAncestorTagged(e,n)},t.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},t.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},t.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},t.prototype.onDeactivation=function(e){return this._bindingOnSyntax.onDeactivation(e)},t}();Dn.BindingWhenOnSyntax=Bp});var Ps=g(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.BindingInSyntax=void 0;var fi=ue(),di=li(),Lp=function(){function t(e){this._binding=e}return t.prototype.inRequestScope=function(){return this._binding.scope=fi.BindingScopeEnum.Request,new di.BindingWhenOnSyntax(this._binding)},t.prototype.inSingletonScope=function(){return this._binding.scope=fi.BindingScopeEnum.Singleton,new di.BindingWhenOnSyntax(this._binding)},t.prototype.inTransientScope=function(){return this._binding.scope=fi.BindingScopeEnum.Transient,new di.BindingWhenOnSyntax(this._binding)},t}();kn.BindingInSyntax=Lp});var Rs=g(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.BindingInWhenOnSyntax=void 0;var jp=Ps(),Fp=Rn(),Up=Pn(),qp=function(){function t(e){this._binding=e,this._bindingWhenSyntax=new Up.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new Fp.BindingOnSyntax(this._binding),this._bindingInSyntax=new jp.BindingInSyntax(e)}return t.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},t.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},t.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},t.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},t.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(e,n){return this._bindingWhenSyntax.whenTargetTagged(e,n)},t.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},t.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},t.prototype.whenParentTagged=function(e,n){return this._bindingWhenSyntax.whenParentTagged(e,n)},t.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},t.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},t.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},t.prototype.whenAnyAncestorTagged=function(e,n){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,n)},t.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},t.prototype.whenNoAncestorTagged=function(e,n){return this._bindingWhenSyntax.whenNoAncestorTagged(e,n)},t.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},t.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},t.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},t.prototype.onDeactivation=function(e){return this._bindingOnSyntax.onDeactivation(e)},t}();Bn.BindingInWhenOnSyntax=qp});var ks=g(Ce=>{"use strict";var Gp=Ce&&Ce.__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]}),Wp=Ce&&Ce.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Vp=Ce&&Ce.__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)&&Gp(e,t,n);return Wp(e,t),e};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.BindingToSyntax=void 0;var Ms=Vp(K()),ee=ue(),Ds=Rs(),vt=li(),$p=function(){function t(e){this._binding=e}return t.prototype.to=function(e){return this._binding.type=ee.BindingTypeEnum.Instance,this._binding.implementationType=e,new Ds.BindingInWhenOnSyntax(this._binding)},t.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+Ms.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},t.prototype.toConstantValue=function(e){return this._binding.type=ee.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=ee.BindingScopeEnum.Singleton,new vt.BindingWhenOnSyntax(this._binding)},t.prototype.toDynamicValue=function(e){return this._binding.type=ee.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new Ds.BindingInWhenOnSyntax(this._binding)},t.prototype.toConstructor=function(e){return this._binding.type=ee.BindingTypeEnum.Constructor,this._binding.implementationType=e,this._binding.scope=ee.BindingScopeEnum.Singleton,new vt.BindingWhenOnSyntax(this._binding)},t.prototype.toFactory=function(e){return this._binding.type=ee.BindingTypeEnum.Factory,this._binding.factory=e,this._binding.scope=ee.BindingScopeEnum.Singleton,new vt.BindingWhenOnSyntax(this._binding)},t.prototype.toFunction=function(e){if(typeof e!="function")throw new Error(Ms.INVALID_FUNCTION_BINDING);var n=this.toConstantValue(e);return this._binding.type=ee.BindingTypeEnum.Function,this._binding.scope=ee.BindingScopeEnum.Singleton,n},t.prototype.toAutoFactory=function(e){return this._binding.type=ee.BindingTypeEnum.Factory,this._binding.factory=function(n){var r=function(){return n.container.get(e)};return r},this._binding.scope=ee.BindingScopeEnum.Singleton,new vt.BindingWhenOnSyntax(this._binding)},t.prototype.toAutoNamedFactory=function(e){return this._binding.type=ee.BindingTypeEnum.Factory,this._binding.factory=function(n){return function(r){return n.container.getNamed(e,r)}},new vt.BindingWhenOnSyntax(this._binding)},t.prototype.toProvider=function(e){return this._binding.type=ee.BindingTypeEnum.Provider,this._binding.provider=e,this._binding.scope=ee.BindingScopeEnum.Singleton,new vt.BindingWhenOnSyntax(this._binding)},t.prototype.toService=function(e){this.toDynamicValue(function(n){return n.container.get(e)})},t}();Ce.BindingToSyntax=$p});var Bs=g(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.ContainerSnapshot=void 0;var Hp=function(){function t(){}return t.of=function(e,n,r,i,o){var s=new t;return s.bindings=e,s.middleware=n,s.deactivations=i,s.activations=r,s.moduleActivationStore=o,s},t}();Ln.ContainerSnapshot=Hp});var Ls=g(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.isClonable=void 0;function Kp(t){return typeof t=="object"&&t!==null&&"clone"in t&&typeof t.clone=="function"}jn.isClonable=Kp});var pi=g(Ae=>{"use strict";var Yp=Ae&&Ae.__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]}),zp=Ae&&Ae.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Jp=Ae&&Ae.__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)&&Yp(e,t,n);return zp(e,t),e};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Lookup=void 0;var et=Jp(K()),Xp=Ls(),Qp=function(){function t(){this._map=new Map}return t.prototype.getMap=function(){return this._map},t.prototype.add=function(e,n){if(e==null)throw new Error(et.NULL_ARGUMENT);if(n==null)throw new Error(et.NULL_ARGUMENT);var r=this._map.get(e);r!==void 0?r.push(n):this._map.set(e,[n])},t.prototype.get=function(e){if(e==null)throw new Error(et.NULL_ARGUMENT);var n=this._map.get(e);if(n!==void 0)return n;throw new Error(et.KEY_NOT_FOUND)},t.prototype.remove=function(e){if(e==null)throw new Error(et.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(et.KEY_NOT_FOUND)},t.prototype.removeIntersection=function(e){var n=this;this.traverse(function(r,i){var o=e.hasKey(r)?e.get(r):void 0;if(o!==void 0){var s=i.filter(function(u){return!o.some(function(c){return u===c})});n._setValue(r,s)}})},t.prototype.removeByCondition=function(e){var n=this,r=[];return this._map.forEach(function(i,o){for(var s=[],u=0,c=i;u<c.length;u++){var a=c[u],l=e(a);l?r.push(a):s.push(a)}n._setValue(o,s)}),r},t.prototype.hasKey=function(e){if(e==null)throw new Error(et.NULL_ARGUMENT);return this._map.has(e)},t.prototype.clone=function(){var e=new t;return this._map.forEach(function(n,r){n.forEach(function(i){return e.add(r,(0,Xp.isClonable)(i)?i.clone():i)})}),e},t.prototype.traverse=function(e){this._map.forEach(function(n,r){e(r,n)})},t.prototype._setValue=function(e,n){n.length>0?this._map.set(e,n):this._map.delete(e)},t}();Ae.Lookup=Qp});var Fs=g(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.ModuleActivationStore=void 0;var js=pi(),Zp=function(){function t(){this._map=new Map}return t.prototype.remove=function(e){if(this._map.has(e)){var n=this._map.get(e);return this._map.delete(e),n}return this._getEmptyHandlersStore()},t.prototype.addDeactivation=function(e,n,r){this._getModuleActivationHandlers(e).onDeactivations.add(n,r)},t.prototype.addActivation=function(e,n,r){this._getModuleActivationHandlers(e).onActivations.add(n,r)},t.prototype.clone=function(){var e=new t;return this._map.forEach(function(n,r){e._map.set(r,{onActivations:n.onActivations.clone(),onDeactivations:n.onDeactivations.clone()})}),e},t.prototype._getModuleActivationHandlers=function(e){var n=this._map.get(e);return n===void 0&&(n=this._getEmptyHandlersStore(),this._map.set(e,n)),n},t.prototype._getEmptyHandlersStore=function(){var e={onActivations:new js.Lookup,onDeactivations:new js.Lookup};return e},t}();Fn.ModuleActivationStore=Zp});var qs=g(V=>{"use strict";var qn=V&&V.__assign||function(){return qn=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},qn.apply(this,arguments)},eh=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]}),th=V&&V.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Us=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)&&eh(e,t,n);return th(e,t),e},le=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())})},fe=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}}},nh=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.Container=void 0;var rh=qo(),ye=Us(K()),_t=ue(),tt=Us(F()),ih=Vr(),Un=Zr(),oh=As(),sh=ks(),nt=Gt(),ah=Ke(),uh=Ze(),ch=Bs(),Vt=pi(),lh=Fs(),fh=function(){function t(e){var n=e||{};if(typeof n!="object")throw new Error(""+ye.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(n.defaultScope===void 0)n.defaultScope=_t.BindingScopeEnum.Transient;else if(n.defaultScope!==_t.BindingScopeEnum.Singleton&&n.defaultScope!==_t.BindingScopeEnum.Transient&&n.defaultScope!==_t.BindingScopeEnum.Request)throw new Error(""+ye.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(n.autoBindInjectable===void 0)n.autoBindInjectable=!1;else if(typeof n.autoBindInjectable!="boolean")throw new Error(""+ye.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(n.skipBaseClassChecks===void 0)n.skipBaseClassChecks=!1;else if(typeof n.skipBaseClassChecks!="boolean")throw new Error(""+ye.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:n.autoBindInjectable,defaultScope:n.defaultScope,skipBaseClassChecks:n.skipBaseClassChecks},this.id=(0,ah.id)(),this._bindingDictionary=new Vt.Lookup,this._snapshots=[],this._middleware=null,this._activations=new Vt.Lookup,this._deactivations=new Vt.Lookup,this.parent=null,this._metadataReader=new ih.MetadataReader,this._moduleActivationStore=new lh.ModuleActivationStore}return t.merge=function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=new t,s=nh([e,n],r,!0).map(function(a){return(0,Un.getBindingDictionary)(a)}),u=(0,Un.getBindingDictionary)(o);function c(a,l){a.traverse(function(p,m){m.forEach(function(w){l.add(w.serviceIdentifier,w.clone())})})}return s.forEach(function(a){c(a,u)}),o},t.prototype.load=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=this._getContainerModuleHelpersFactory(),i=0,o=e;i<o.length;i++){var s=o[i],u=r(s.id);s.registry(u.bindFunction,u.unbindFunction,u.isboundFunction,u.rebindFunction,u.unbindAsyncFunction,u.onActivationFunction,u.onDeactivationFunction)}},t.prototype.loadAsync=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return le(this,void 0,void 0,function(){var r,i,o,s,u;return fe(this,function(c){switch(c.label){case 0:r=this._getContainerModuleHelpersFactory(),i=0,o=e,c.label=1;case 1:return i<o.length?(s=o[i],u=r(s.id),[4,s.registry(u.bindFunction,u.unbindFunction,u.isboundFunction,u.rebindFunction,u.unbindAsyncFunction,u.onActivationFunction,u.onDeactivationFunction)]):[3,4];case 2:c.sent(),c.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},t.prototype.unload=function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];n.forEach(function(i){var o=e._removeModuleBindings(i.id);e._deactivateSingletons(o),e._removeModuleHandlers(i.id)})},t.prototype.unloadAsync=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return le(this,void 0,void 0,function(){var r,i,o,s;return fe(this,function(u){switch(u.label){case 0:r=0,i=e,u.label=1;case 1:return r<i.length?(o=i[r],s=this._removeModuleBindings(o.id),[4,this._deactivateSingletonsAsync(s)]):[3,4];case 2:u.sent(),this._removeModuleHandlers(o.id),u.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},t.prototype.bind=function(e){var n=this.options.defaultScope||_t.BindingScopeEnum.Transient,r=new rh.Binding(e,n);return this._bindingDictionary.add(e,r),new sh.BindingToSyntax(r)},t.prototype.rebind=function(e){return this.unbind(e),this.bind(e)},t.prototype.rebindAsync=function(e){return le(this,void 0,void 0,function(){return fe(this,function(n){switch(n.label){case 0:return[4,this.unbindAsync(e)];case 1:return n.sent(),[2,this.bind(e)]}})})},t.prototype.unbind=function(e){if(this._bindingDictionary.hasKey(e)){var n=this._bindingDictionary.get(e);this._deactivateSingletons(n)}this._removeServiceFromDictionary(e)},t.prototype.unbindAsync=function(e){return le(this,void 0,void 0,function(){var n;return fe(this,function(r){switch(r.label){case 0:return this._bindingDictionary.hasKey(e)?(n=this._bindingDictionary.get(e),[4,this._deactivateSingletonsAsync(n)]):[3,2];case 1:r.sent(),r.label=2;case 2:return this._removeServiceFromDictionary(e),[2]}})})},t.prototype.unbindAll=function(){var e=this;this._bindingDictionary.traverse(function(n,r){e._deactivateSingletons(r)}),this._bindingDictionary=new Vt.Lookup},t.prototype.unbindAllAsync=function(){return le(this,void 0,void 0,function(){var e,n=this;return fe(this,function(r){switch(r.label){case 0:return e=[],this._bindingDictionary.traverse(function(i,o){e.push(n._deactivateSingletonsAsync(o))}),[4,Promise.all(e)];case 1:return r.sent(),this._bindingDictionary=new Vt.Lookup,[2]}})})},t.prototype.onActivation=function(e,n){this._activations.add(e,n)},t.prototype.onDeactivation=function(e,n){this._deactivations.add(e,n)},t.prototype.isBound=function(e){var n=this._bindingDictionary.hasKey(e);return!n&&this.parent&&(n=this.parent.isBound(e)),n},t.prototype.isCurrentBound=function(e){return this._bindingDictionary.hasKey(e)},t.prototype.isBoundNamed=function(e,n){return this.isBoundTagged(e,tt.NAMED_TAG,n)},t.prototype.isBoundTagged=function(e,n,r){var i=!1;if(this._bindingDictionary.hasKey(e)){var o=this._bindingDictionary.get(e),s=(0,Un.createMockRequest)(this,e,n,r);i=o.some(function(u){return u.constraint(s)})}return!i&&this.parent&&(i=this.parent.isBoundTagged(e,n,r)),i},t.prototype.snapshot=function(){this._snapshots.push(ch.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))},t.prototype.restore=function(){var e=this._snapshots.pop();if(e===void 0)throw new Error(ye.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=e.bindings,this._activations=e.activations,this._deactivations=e.deactivations,this._middleware=e.middleware,this._moduleActivationStore=e.moduleActivationStore},t.prototype.createChild=function(e){var n=new t(e||this.options);return n.parent=this,n},t.prototype.applyMiddleware=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this._middleware?this._middleware:this._planAndResolve();this._middleware=e.reduce(function(i,o){return o(i)},r)},t.prototype.applyCustomMetadataReader=function(e){this._metadataReader=e},t.prototype.get=function(e){var n=this._getNotAllArgs(e,!1);return this._getButThrowIfAsync(n)},t.prototype.getAsync=function(e){return le(this,void 0,void 0,function(){var n;return fe(this,function(r){return n=this._getNotAllArgs(e,!1),[2,this._get(n)]})})},t.prototype.getTagged=function(e,n,r){var i=this._getNotAllArgs(e,!1,n,r);return this._getButThrowIfAsync(i)},t.prototype.getTaggedAsync=function(e,n,r){return le(this,void 0,void 0,function(){var i;return fe(this,function(o){return i=this._getNotAllArgs(e,!1,n,r),[2,this._get(i)]})})},t.prototype.getNamed=function(e,n){return this.getTagged(e,tt.NAMED_TAG,n)},t.prototype.getNamedAsync=function(e,n){return this.getTaggedAsync(e,tt.NAMED_TAG,n)},t.prototype.getAll=function(e){var n=this._getAllArgs(e);return this._getButThrowIfAsync(n)},t.prototype.getAllAsync=function(e){var n=this._getAllArgs(e);return this._getAll(n)},t.prototype.getAllTagged=function(e,n,r){var i=this._getNotAllArgs(e,!0,n,r);return this._getButThrowIfAsync(i)},t.prototype.getAllTaggedAsync=function(e,n,r){var i=this._getNotAllArgs(e,!0,n,r);return this._getAll(i)},t.prototype.getAllNamed=function(e,n){return this.getAllTagged(e,tt.NAMED_TAG,n)},t.prototype.getAllNamedAsync=function(e,n){return this.getAllTaggedAsync(e,tt.NAMED_TAG,n)},t.prototype.resolve=function(e){var n=this.isBound(e);n||this.bind(e).toSelf();var r=this.get(e);return n||this.unbind(e),r},t.prototype._preDestroy=function(e,n){var r,i;if(Reflect.hasMetadata(tt.PRE_DESTROY,e)){var o=Reflect.getMetadata(tt.PRE_DESTROY,e);return(i=(r=n)[o.value])===null||i===void 0?void 0:i.call(r)}},t.prototype._removeModuleHandlers=function(e){var n=this._moduleActivationStore.remove(e);this._activations.removeIntersection(n.onActivations),this._deactivations.removeIntersection(n.onDeactivations)},t.prototype._removeModuleBindings=function(e){return this._bindingDictionary.removeByCondition(function(n){return n.moduleId===e})},t.prototype._deactivate=function(e,n){var r=this,i=Object.getPrototypeOf(n).constructor;try{if(this._deactivations.hasKey(e.serviceIdentifier)){var o=this._deactivateContainer(n,this._deactivations.get(e.serviceIdentifier).values());if((0,nt.isPromise)(o))return this._handleDeactivationError(o.then(function(){return r._propagateContainerDeactivationThenBindingAndPreDestroyAsync(e,n,i)}),i)}var s=this._propagateContainerDeactivationThenBindingAndPreDestroy(e,n,i);if((0,nt.isPromise)(s))return this._handleDeactivationError(s,i)}catch(u){if(u instanceof Error)throw new Error(ye.ON_DEACTIVATION_ERROR(i.name,u.message))}},t.prototype._handleDeactivationError=function(e,n){return le(this,void 0,void 0,function(){var r;return fe(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e];case 1:return i.sent(),[3,3];case 2:if(r=i.sent(),r instanceof Error)throw new Error(ye.ON_DEACTIVATION_ERROR(n.name,r.message));return[3,3];case 3:return[2]}})})},t.prototype._deactivateContainer=function(e,n){for(var r=this,i=n.next();i.value;){var o=i.value(e);if((0,nt.isPromise)(o))return o.then(function(){return r._deactivateContainerAsync(e,n)});i=n.next()}},t.prototype._deactivateContainerAsync=function(e,n){return le(this,void 0,void 0,function(){var r;return fe(this,function(i){switch(i.label){case 0:r=n.next(),i.label=1;case 1:return r.value?[4,r.value(e)]:[3,3];case 2:return i.sent(),r=n.next(),[3,1];case 3:return[2]}})})},t.prototype._getContainerModuleHelpersFactory=function(){var e=this,n=function(l,p){l._binding.moduleId=p},r=function(l){return function(p){var m=e.bind(p);return n(m,l),m}},i=function(){return function(l){return e.unbind(l)}},o=function(){return function(l){return e.unbindAsync(l)}},s=function(){return function(l){return e.isBound(l)}},u=function(l){return function(p){var m=e.rebind(p);return n(m,l),m}},c=function(l){return function(p,m){e._moduleActivationStore.addActivation(l,p,m),e.onActivation(p,m)}},a=function(l){return function(p,m){e._moduleActivationStore.addDeactivation(l,p,m),e.onDeactivation(p,m)}};return function(l){return{bindFunction:r(l),isboundFunction:s(),onActivationFunction:c(l),onDeactivationFunction:a(l),rebindFunction:u(l),unbindFunction:i(),unbindAsyncFunction:o()}}},t.prototype._getAll=function(e){return Promise.all(this._get(e))},t.prototype._get=function(e){var n=qn(qn({},e),{contextInterceptor:function(i){return i},targetType:_t.TargetTypeEnum.Variable});if(this._middleware){var r=this._middleware(n);if(r==null)throw new Error(ye.INVALID_MIDDLEWARE_RETURN);return r}return this._planAndResolve()(n)},t.prototype._getButThrowIfAsync=function(e){var n=this._get(e);if((0,nt.isPromiseOrContainsPromise)(n))throw new Error(ye.LAZY_IN_SYNC(e.serviceIdentifier));return n},t.prototype._getAllArgs=function(e){var n={avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:e};return n},t.prototype._getNotAllArgs=function(e,n,r,i){var o={avoidConstraints:!1,isMultiInject:n,serviceIdentifier:e,key:r,value:i};return o},t.prototype._planAndResolve=function(){var e=this;return function(n){var r=(0,Un.plan)(e._metadataReader,e,n.isMultiInject,n.targetType,n.serviceIdentifier,n.key,n.value,n.avoidConstraints);r=n.contextInterceptor(r);var i=(0,oh.resolve)(r);return i}},t.prototype._deactivateIfSingleton=function(e){var n=this;if(e.activated)return(0,nt.isPromise)(e.cache)?e.cache.then(function(r){return n._deactivate(e,r)}):this._deactivate(e,e.cache)},t.prototype._deactivateSingletons=function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=this._deactivateIfSingleton(i);if((0,nt.isPromise)(o))throw new Error(ye.ASYNC_UNBIND_REQUIRED)}},t.prototype._deactivateSingletonsAsync=function(e){return le(this,void 0,void 0,function(){var n=this;return fe(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(i){return n._deactivateIfSingleton(i)}))];case 1:return r.sent(),[2]}})})},t.prototype._propagateContainerDeactivationThenBindingAndPreDestroy=function(e,n,r){return this.parent?this._deactivate.bind(this.parent)(e,n):this._bindingDeactivationAndPreDestroy(e,n,r)},t.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync=function(e,n,r){return le(this,void 0,void 0,function(){return fe(this,function(i){switch(i.label){case 0:return this.parent?[4,this._deactivate.bind(this.parent)(e,n)]:[3,2];case 1:return i.sent(),[3,4];case 2:return[4,this._bindingDeactivationAndPreDestroyAsync(e,n,r)];case 3:i.sent(),i.label=4;case 4:return[2]}})})},t.prototype._removeServiceFromDictionary=function(e){try{this._bindingDictionary.remove(e)}catch{throw new Error(ye.CANNOT_UNBIND+" "+(0,uh.getServiceIdentifierAsString)(e))}},t.prototype._bindingDeactivationAndPreDestroy=function(e,n,r){var i=this;if(typeof e.onDeactivation=="function"){var o=e.onDeactivation(n);if((0,nt.isPromise)(o))return o.then(function(){return i._preDestroy(r,n)})}return this._preDestroy(r,n)},t.prototype._bindingDeactivationAndPreDestroyAsync=function(e,n,r){return le(this,void 0,void 0,function(){return fe(this,function(i){switch(i.label){case 0:return typeof e.onDeactivation!="function"?[3,2]:[4,e.onDeactivation(n)];case 1:i.sent(),i.label=2;case 2:return[4,this._preDestroy(r,n)];case 3:return i.sent(),[2]}})})},t}();V.Container=fh});var Ws=g(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.AsyncContainerModule=bt.ContainerModule=void 0;var Gs=Ke(),dh=function(){function t(e){this.id=(0,Gs.id)(),this.registry=e}return t}();bt.ContainerModule=dh;var ph=function(){function t(e){this.id=(0,Gs.id)(),this.registry=e}return t}();bt.AsyncContainerModule=ph});var Vs=g(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.getFirstArrayDuplicate=void 0;function hh(t){for(var e=new Set,n=0,r=t;n<r.length;n++){var i=r[n];if(e.has(i))return i;e.add(i)}}Gn.getFirstArrayDuplicate=hh});var Ue=g(J=>{"use strict";var gh=J&&J.__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]}),mh=J&&J.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Hs=J&&J.__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)&&gh(e,t,n);return mh(e,t),e};Object.defineProperty(J,"__esModule",{value:!0});J.createTaggedDecorator=J.tagProperty=J.tagParameter=J.decorate=void 0;var Wn=Hs(K()),Ks=Hs(F()),yh=Vs();function vh(t){return t.prototype!==void 0}function _h(t){if(t!==void 0)throw new Error(Wn.INVALID_DECORATOR_OPERATION)}function Ys(t,e,n,r){_h(e),Js(Ks.TAGGED,t,n.toString(),r)}J.tagParameter=Ys;function zs(t,e,n){if(vh(t))throw new Error(Wn.INVALID_DECORATOR_OPERATION);Js(Ks.TAGGED_PROP,t.constructor,e,n)}J.tagProperty=zs;function bh(t){var e=[];if(Array.isArray(t)){e=t;var n=(0,yh.getFirstArrayDuplicate)(e.map(function(r){return r.key}));if(n!==void 0)throw new Error(Wn.DUPLICATED_METADATA+" "+n.toString())}else e=[t];return e}function Js(t,e,n,r){var i=bh(r),o={};Reflect.hasOwnMetadata(t,e)&&(o=Reflect.getMetadata(t,e));var s=o[n];if(s===void 0)s=[];else for(var u=function(p){if(i.some(function(m){return m.key===p.key}))throw new Error(Wn.DUPLICATED_METADATA+" "+p.key.toString())},c=0,a=s;c<a.length;c++){var l=a[c];u(l)}s.push.apply(s,i),o[n]=s,Reflect.defineMetadata(t,o,e)}function wh(t){return function(e,n,r){typeof r=="number"?Ys(e,n,r,t):zs(e,n,t)}}J.createTaggedDecorator=wh;function $s(t,e){Reflect.decorate(t,e)}function Sh(t,e){return function(n,r){e(n,r,t)}}function Th(t,e,n){typeof n=="number"?$s([Sh(n,t)],e):typeof n=="string"?Reflect.decorate([t],e,n):$s([t],e)}J.decorate=Th});var Qs=g(Ie=>{"use strict";var Eh=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]}),xh=Ie&&Ie.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Xs=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)&&Eh(e,t,n);return xh(e,t),e};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.injectable=void 0;var Ch=Xs(K()),hi=Xs(F());function Ah(){return function(t){if(Reflect.hasOwnMetadata(hi.PARAM_TYPES,t))throw new Error(Ch.DUPLICATED_INJECTABLE_DECORATOR);var e=Reflect.getMetadata(hi.DESIGN_PARAM_TYPES,t)||[];return Reflect.defineMetadata(hi.PARAM_TYPES,e,t),t}}Ie.injectable=Ah});var Zs=g(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.tagged=void 0;var Ih=me(),Oh=Ue();function Nh(t,e){return(0,Oh.createTaggedDecorator)(new Ih.Metadata(t,e))}Vn.tagged=Nh});var ea=g(Oe=>{"use strict";var Ph=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]}),Rh=Oe&&Oe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Mh=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)&&Ph(e,t,n);return Rh(e,t),e};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.named=void 0;var Dh=Mh(F()),kh=me(),Bh=Ue();function Lh(t){return(0,Bh.createTaggedDecorator)(new kh.Metadata(Dh.NAMED_TAG,t))}Oe.named=Lh});var gi=g($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.injectBase=void 0;var jh=K(),Fh=me(),Uh=Ue();function qh(t){return function(e){return function(n,r,i){if(e===void 0){var o=typeof n=="function"?n.name:n.constructor.name;throw new Error((0,jh.UNDEFINED_INJECT_ANNOTATION)(o))}return(0,Uh.createTaggedDecorator)(new Fh.Metadata(t,e))(n,r,i)}}}$n.injectBase=qh});var ta=g(Ne=>{"use strict";var Gh=Ne&&Ne.__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]}),Wh=Ne&&Ne.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Vh=Ne&&Ne.__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)&&Gh(e,t,n);return Wh(e,t),e};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.inject=void 0;var $h=Vh(F()),Hh=gi(),Kh=(0,Hh.injectBase)($h.INJECT_TAG);Ne.inject=Kh});var na=g(Pe=>{"use strict";var Yh=Pe&&Pe.__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]}),zh=Pe&&Pe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Jh=Pe&&Pe.__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)&&Yh(e,t,n);return zh(e,t),e};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.optional=void 0;var Xh=Jh(F()),Qh=me(),Zh=Ue();function eg(){return(0,Zh.createTaggedDecorator)(new Qh.Metadata(Xh.OPTIONAL_TAG,!0))}Pe.optional=eg});var ra=g(Re=>{"use strict";var tg=Re&&Re.__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]}),ng=Re&&Re.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),rg=Re&&Re.__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)&&tg(e,t,n);return ng(e,t),e};Object.defineProperty(Re,"__esModule",{value:!0});Re.unmanaged=void 0;var ig=rg(F()),og=me(),sg=Ue();function ag(){return function(t,e,n){var r=new og.Metadata(ig.UNMANAGED_TAG,!0);(0,sg.tagParameter)(t,e,n,r)}}Re.unmanaged=ag});var ia=g(Me=>{"use strict";var ug=Me&&Me.__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]}),cg=Me&&Me.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lg=Me&&Me.__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)&&ug(e,t,n);return cg(e,t),e};Object.defineProperty(Me,"__esModule",{value:!0});Me.multiInject=void 0;var fg=lg(F()),dg=gi(),pg=(0,dg.injectBase)(fg.MULTI_INJECT_TAG);Me.multiInject=pg});var oa=g(De=>{"use strict";var hg=De&&De.__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]}),gg=De&&De.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mg=De&&De.__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)&&hg(e,t,n);return gg(e,t),e};Object.defineProperty(De,"__esModule",{value:!0});De.targetName=void 0;var yg=mg(F()),vg=me(),_g=Ue();function bg(t){return function(e,n,r){var i=new vg.Metadata(yg.NAME_TAG,t);(0,_g.tagParameter)(e,n,r,i)}}De.targetName=bg});var mi=g(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.propertyEventDecorator=void 0;var wg=me();function Sg(t,e){return function(){return function(n,r){var i=new wg.Metadata(t,r);if(Reflect.hasOwnMetadata(t,n.constructor))throw new Error(e);Reflect.defineMetadata(t,i,n.constructor)}}}Hn.propertyEventDecorator=Sg});var aa=g(ke=>{"use strict";var Tg=ke&&ke.__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]}),Eg=ke&&ke.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),sa=ke&&ke.__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)&&Tg(e,t,n);return Eg(e,t),e};Object.defineProperty(ke,"__esModule",{value:!0});ke.postConstruct=void 0;var xg=sa(K()),Cg=sa(F()),Ag=mi(),Ig=(0,Ag.propertyEventDecorator)(Cg.POST_CONSTRUCT,xg.MULTIPLE_POST_CONSTRUCT_METHODS);ke.postConstruct=Ig});var ca=g(Be=>{"use strict";var Og=Be&&Be.__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]}),Ng=Be&&Be.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ua=Be&&Be.__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)&&Og(e,t,n);return Ng(e,t),e};Object.defineProperty(Be,"__esModule",{value:!0});Be.preDestroy=void 0;var Pg=ua(K()),Rg=ua(F()),Mg=mi(),Dg=(0,Mg.propertyEventDecorator)(Rg.PRE_DESTROY,Pg.MULTIPLE_PRE_DESTROY_METHODS);Be.preDestroy=Dg});var la=g(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.interfaces=void 0;var yi;yi||(yi={});Kn.interfaces=yi});var _i=g(_=>{"use strict";var kg=_&&_.__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]}),Bg=_&&_.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Lg=_&&_.__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)&&kg(e,t,n);return Bg(e,t),e};Object.defineProperty(_,"__esModule",{value:!0});_.multiBindToService=_.getServiceIdentifierAsString=_.typeConstraint=_.namedConstraint=_.taggedConstraint=_.traverseAncerstors=_.decorate=_.interfaces=_.id=_.MetadataReader=_.preDestroy=_.postConstruct=_.targetName=_.multiInject=_.unmanaged=_.optional=_.LazyServiceIdentifer=_.LazyServiceIdentifier=_.inject=_.named=_.tagged=_.injectable=_.createTaggedDecorator=_.ContainerModule=_.AsyncContainerModule=_.TargetTypeEnum=_.BindingTypeEnum=_.BindingScopeEnum=_.Container=_.METADATA_KEY=void 0;var jg=Lg(F());_.METADATA_KEY=jg;var Fg=qs();Object.defineProperty(_,"Container",{enumerable:!0,get:function(){return Fg.Container}});var vi=ue();Object.defineProperty(_,"BindingScopeEnum",{enumerable:!0,get:function(){return vi.BindingScopeEnum}});Object.defineProperty(_,"BindingTypeEnum",{enumerable:!0,get:function(){return vi.BindingTypeEnum}});Object.defineProperty(_,"TargetTypeEnum",{enumerable:!0,get:function(){return vi.TargetTypeEnum}});var fa=Ws();Object.defineProperty(_,"AsyncContainerModule",{enumerable:!0,get:function(){return fa.AsyncContainerModule}});Object.defineProperty(_,"ContainerModule",{enumerable:!0,get:function(){return fa.ContainerModule}});var Ug=Ue();Object.defineProperty(_,"createTaggedDecorator",{enumerable:!0,get:function(){return Ug.createTaggedDecorator}});var qg=Qs();Object.defineProperty(_,"injectable",{enumerable:!0,get:function(){return qg.injectable}});var Gg=Zs();Object.defineProperty(_,"tagged",{enumerable:!0,get:function(){return Gg.tagged}});var Wg=ea();Object.defineProperty(_,"named",{enumerable:!0,get:function(){return Wg.named}});var Vg=ta();Object.defineProperty(_,"inject",{enumerable:!0,get:function(){return Vg.inject}});var $g=Tn();Object.defineProperty(_,"LazyServiceIdentifier",{enumerable:!0,get:function(){return $g.LazyServiceIdentifier}});var Hg=Tn();Object.defineProperty(_,"LazyServiceIdentifer",{enumerable:!0,get:function(){return Hg.LazyServiceIdentifier}});var Kg=na();Object.defineProperty(_,"optional",{enumerable:!0,get:function(){return Kg.optional}});var Yg=ra();Object.defineProperty(_,"unmanaged",{enumerable:!0,get:function(){return Yg.unmanaged}});var zg=ia();Object.defineProperty(_,"multiInject",{enumerable:!0,get:function(){return zg.multiInject}});var Jg=oa();Object.defineProperty(_,"targetName",{enumerable:!0,get:function(){return Jg.targetName}});var Xg=aa();Object.defineProperty(_,"postConstruct",{enumerable:!0,get:function(){return Xg.postConstruct}});var Qg=ca();Object.defineProperty(_,"preDestroy",{enumerable:!0,get:function(){return Qg.preDestroy}});var Zg=Vr();Object.defineProperty(_,"MetadataReader",{enumerable:!0,get:function(){return Zg.MetadataReader}});var em=Ke();Object.defineProperty(_,"id",{enumerable:!0,get:function(){return em.id}});var tm=la();Object.defineProperty(_,"interfaces",{enumerable:!0,get:function(){return tm.interfaces}});var nm=Ue();Object.defineProperty(_,"decorate",{enumerable:!0,get:function(){return nm.decorate}});var Yn=ci();Object.defineProperty(_,"traverseAncerstors",{enumerable:!0,get:function(){return Yn.traverseAncerstors}});Object.defineProperty(_,"taggedConstraint",{enumerable:!0,get:function(){return Yn.taggedConstraint}});Object.defineProperty(_,"namedConstraint",{enumerable:!0,get:function(){return Yn.namedConstraint}});Object.defineProperty(_,"typeConstraint",{enumerable:!0,get:function(){return Yn.typeConstraint}});var rm=Ze();Object.defineProperty(_,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return rm.getServiceIdentifierAsString}});var im=ni();Object.defineProperty(_,"multiBindToService",{enumerable:!0,get:function(){return im.multiBindToService}})});var Ea=g((cS,Ta)=>{"use strict";var{Duplex:mm}=I("stream");function wa(t){t.emit("close")}function ym(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Sa(t){this.removeListener("error",Sa),this.destroy(),this.listenerCount("error")===0&&this.emit("error",t)}function vm(t,e){let n=!0,r=new mm({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return t.on("message",function(o,s){let u=!s&&r._readableState.objectMode?o.toString():o;r.push(u)||t.pause()}),t.once("error",function(o){r.destroyed||(n=!1,r.destroy(o))}),t.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(i,o){if(t.readyState===t.CLOSED){o(i),process.nextTick(wa,r);return}let s=!1;t.once("error",function(c){s=!0,o(c)}),t.once("close",function(){s||o(i),process.nextTick(wa,r)}),n&&t.terminate()},r._final=function(i){if(t.readyState===t.CONNECTING){t.once("open",function(){r._final(i)});return}t._socket!==null&&(t._socket._writableState.finished?(i(),r._readableState.endEmitted&&r.destroy()):(t._socket.once("finish",function(){i()}),t.close()))},r._read=function(){t.isPaused&&t.resume()},r._write=function(i,o,s){if(t.readyState===t.CONNECTING){t.once("open",function(){r._write(i,o,s)});return}t.send(i,s)},r.on("end",ym),r.on("error",Sa),r}Ta.exports=vm});var Ye=g((lS,xa)=>{"use strict";xa.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Ht=g((fS,tr)=>{"use strict";var{EMPTY_BUFFER:_m}=Ye(),Ai=Buffer[Symbol.species];function bm(t,e){if(t.length===0)return _m;if(t.length===1)return t[0];let n=Buffer.allocUnsafe(e),r=0;for(let i=0;i<t.length;i++){let o=t[i];n.set(o,r),r+=o.length}return r<e?new Ai(n.buffer,n.byteOffset,r):n}function Ca(t,e,n,r,i){for(let o=0;o<i;o++)n[r+o]=t[o]^e[o&3]}function Aa(t,e){for(let n=0;n<t.length;n++)t[n]^=e[n&3]}function wm(t){return t.length===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.length)}function Ii(t){if(Ii.readOnly=!0,Buffer.isBuffer(t))return t;let e;return t instanceof ArrayBuffer?e=new Ai(t):ArrayBuffer.isView(t)?e=new Ai(t.buffer,t.byteOffset,t.byteLength):(e=Buffer.from(t),Ii.readOnly=!1),e}tr.exports={concat:bm,mask:Ca,toArrayBuffer:wm,toBuffer:Ii,unmask:Aa};if(!process.env.WS_NO_BUFFER_UTIL)try{let t=I("bufferutil");tr.exports.mask=function(e,n,r,i,o){o<48?Ca(e,n,r,i,o):t.mask(e,n,r,i,o)},tr.exports.unmask=function(e,n){e.length<32?Aa(e,n):t.unmask(e,n)}}catch{}});var Na=g((dS,Oa)=>{"use strict";var Ia=Symbol("kDone"),Oi=Symbol("kRun"),Ni=class{constructor(e){this[Ia]=()=>{this.pending--,this[Oi]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[Oi]()}[Oi](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[Ia])}}};Oa.exports=Ni});var zt=g((pS,Da)=>{"use strict";var Kt=I("zlib"),Pa=Ht(),Sm=Na(),{kStatusCode:Ra}=Ye(),Tm=Buffer[Symbol.species],Em=Buffer.from([0,0,255,255]),ir=Symbol("permessage-deflate"),qe=Symbol("total-length"),Yt=Symbol("callback"),ze=Symbol("buffers"),rr=Symbol("error"),nr,Pi=class{constructor(e,n,r){if(this._maxPayload=r|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!n,this._deflate=null,this._inflate=null,this.params=null,!nr){let i=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;nr=new Sm(i)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[Yt];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let n=this._options,r=e.find(i=>!(n.serverNoContextTakeover===!1&&i.server_no_context_takeover||i.server_max_window_bits&&(n.serverMaxWindowBits===!1||typeof n.serverMaxWindowBits=="number"&&n.serverMaxWindowBits>i.server_max_window_bits)||typeof n.clientMaxWindowBits=="number"&&!i.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return n.serverNoContextTakeover&&(r.server_no_context_takeover=!0),n.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof n.serverMaxWindowBits=="number"&&(r.server_max_window_bits=n.serverMaxWindowBits),typeof n.clientMaxWindowBits=="number"?r.client_max_window_bits=n.clientMaxWindowBits:(r.client_max_window_bits===!0||n.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let n=e[0];if(this._options.clientNoContextTakeover===!1&&n.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!n.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(n.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&n.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return n}normalizeParams(e){return e.forEach(n=>{Object.keys(n).forEach(r=>{let i=n[r];if(i.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(i=i[0],r==="client_max_window_bits"){if(i!==!0){let o=+i;if(!Number.isInteger(o)||o<8||o>15)throw new TypeError(`Invalid value for parameter "${r}": ${i}`);i=o}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${i}`)}else if(r==="server_max_window_bits"){let o=+i;if(!Number.isInteger(o)||o<8||o>15)throw new TypeError(`Invalid value for parameter "${r}": ${i}`);i=o}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(i!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${i}`)}else throw new Error(`Unknown parameter "${r}"`);n[r]=i})}),e}decompress(e,n,r){nr.add(i=>{this._decompress(e,n,(o,s)=>{i(),r(o,s)})})}compress(e,n,r){nr.add(i=>{this._compress(e,n,(o,s)=>{i(),r(o,s)})})}_decompress(e,n,r){let i=this._isServer?"client":"server";if(!this._inflate){let o=`${i}_max_window_bits`,s=typeof this.params[o]!="number"?Kt.Z_DEFAULT_WINDOWBITS:this.params[o];this._inflate=Kt.createInflateRaw({...this._options.zlibInflateOptions,windowBits:s}),this._inflate[ir]=this,this._inflate[qe]=0,this._inflate[ze]=[],this._inflate.on("error",Cm),this._inflate.on("data",Ma)}this._inflate[Yt]=r,this._inflate.write(e),n&&this._inflate.write(Em),this._inflate.flush(()=>{let o=this._inflate[rr];if(o){this._inflate.close(),this._inflate=null,r(o);return}let s=Pa.concat(this._inflate[ze],this._inflate[qe]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[qe]=0,this._inflate[ze]=[],n&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),r(null,s)})}_compress(e,n,r){let i=this._isServer?"server":"client";if(!this._deflate){let o=`${i}_max_window_bits`,s=typeof this.params[o]!="number"?Kt.Z_DEFAULT_WINDOWBITS:this.params[o];this._deflate=Kt.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:s}),this._deflate[qe]=0,this._deflate[ze]=[],this._deflate.on("data",xm)}this._deflate[Yt]=r,this._deflate.write(e),this._deflate.flush(Kt.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let o=Pa.concat(this._deflate[ze],this._deflate[qe]);n&&(o=new Tm(o.buffer,o.byteOffset,o.length-4)),this._deflate[Yt]=null,this._deflate[qe]=0,this._deflate[ze]=[],n&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),r(null,o)})}};Da.exports=Pi;function xm(t){this[ze].push(t),this[qe]+=t.length}function Ma(t){if(this[qe]+=t.length,this[ir]._maxPayload<1||this[qe]<=this[ir]._maxPayload){this[ze].push(t);return}this[rr]=new RangeError("Max payload size exceeded"),this[rr].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[rr][Ra]=1009,this.removeListener("data",Ma),this.reset()}function Cm(t){this[ir]._inflate=null,t[Ra]=1007,this[Yt](t)}});var Jt=g((hS,or)=>{"use strict";var{isUtf8:ka}=I("buffer"),Am=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function Im(t){return t>=1e3&&t<=1014&&t!==1004&&t!==1005&&t!==1006||t>=3e3&&t<=4999}function Ri(t){let e=t.length,n=0;for(;n<e;)if((t[n]&128)===0)n++;else if((t[n]&224)===192){if(n+1===e||(t[n+1]&192)!==128||(t[n]&254)===192)return!1;n+=2}else if((t[n]&240)===224){if(n+2>=e||(t[n+1]&192)!==128||(t[n+2]&192)!==128||t[n]===224&&(t[n+1]&224)===128||t[n]===237&&(t[n+1]&224)===160)return!1;n+=3}else if((t[n]&248)===240){if(n+3>=e||(t[n+1]&192)!==128||(t[n+2]&192)!==128||(t[n+3]&192)!==128||t[n]===240&&(t[n+1]&240)===128||t[n]===244&&t[n+1]>143||t[n]>244)return!1;n+=4}else return!1;return!0}or.exports={isValidStatusCode:Im,isValidUTF8:Ri,tokenChars:Am};if(ka)or.exports.isValidUTF8=function(t){return t.length<24?Ri(t):ka(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let t=I("utf-8-validate");or.exports.isValidUTF8=function(e){return e.length<32?Ri(e):t(e)}}catch{}});var Li=g((gS,Ga)=>{"use strict";var{Writable:Om}=I("stream"),Ba=zt(),{BINARY_TYPES:Nm,EMPTY_BUFFER:La,kStatusCode:Pm,kWebSocket:Rm}=Ye(),{concat:Mi,toArrayBuffer:Mm,unmask:Dm}=Ht(),{isValidStatusCode:km,isValidUTF8:ja}=Jt(),sr=Buffer[Symbol.species],pe=0,Fa=1,Ua=2,qa=3,Di=4,ki=5,ar=6,Bi=class extends Om{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||Nm[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[Rm]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=pe}_write(e,n,r){if(this._opcode===8&&this._state==pe)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new sr(r.buffer,r.byteOffset+e,r.length-e),new sr(r.buffer,r.byteOffset,e)}let n=Buffer.allocUnsafe(e);do{let r=this._buffers[0],i=n.length-e;e>=r.length?n.set(this._buffers.shift(),i):(n.set(new Uint8Array(r.buffer,r.byteOffset,e),i),this._buffers[0]=new sr(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length}while(e>0);return n}startLoop(e){this._loop=!0;do switch(this._state){case pe:this.getInfo(e);break;case Fa:this.getPayloadLength16(e);break;case Ua:this.getPayloadLength64(e);break;case qa:this.getMask();break;case Di:this.getData(e);break;case ki:case ar:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let n=this.consume(2);if((n[0]&48)!==0){let i=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(i);return}let r=(n[0]&64)===64;if(r&&!this._extensions[Ba.extensionName]){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(this._fin=(n[0]&128)===128,this._opcode=n[0]&15,this._payloadLength=n[1]&127,this._opcode===0){if(r){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(!this._fragmented){let i=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let i=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(i);return}if(r){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let i=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(i);return}}else{let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(n[1]&128)===128,this._isServer){if(!this._masked){let i=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(i);return}}else if(this._masked){let i=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(i);return}this._payloadLength===126?this._state=Fa:this._payloadLength===127?this._state=Ua:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let n=this.consume(8),r=n.readUInt32BE(0);if(r>Math.pow(2,21)-1){let i=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(i);return}this._payloadLength=r*Math.pow(2,32)+n.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let n=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(n);return}this._masked?this._state=qa:this._state=Di}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=Di}getData(e){let n=La;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}n=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&Dm(n,this._mask)}if(this._opcode>7){this.controlMessage(n,e);return}if(this._compressed){this._state=ki,this.decompress(n,e);return}n.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(n)),this.dataMessage(e)}decompress(e,n){this._extensions[Ba.extensionName].decompress(e,this._fin,(i,o)=>{if(i)return n(i);if(o.length){if(this._messageLength+=o.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let s=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");n(s);return}this._fragments.push(o)}this.dataMessage(n),this._state===pe&&this.startLoop(n)})}dataMessage(e){if(!this._fin){this._state=pe;return}let n=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let i;this._binaryType==="nodebuffer"?i=Mi(r,n):this._binaryType==="arraybuffer"?i=Mm(Mi(r,n)):i=r,this._allowSynchronousEvents?(this.emit("message",i,!0),this._state=pe):(this._state=ar,setImmediate(()=>{this.emit("message",i,!0),this._state=pe,this.startLoop(e)}))}else{let i=Mi(r,n);if(!this._skipUTF8Validation&&!ja(i)){let o=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(o);return}this._state===ki||this._allowSynchronousEvents?(this.emit("message",i,!1),this._state=pe):(this._state=ar,setImmediate(()=>{this.emit("message",i,!1),this._state=pe,this.startLoop(e)}))}}controlMessage(e,n){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,La),this.end();else{let r=e.readUInt16BE(0);if(!km(r)){let o=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");n(o);return}let i=new sr(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!ja(i)){let o=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");n(o);return}this._loop=!1,this.emit("conclude",r,i),this.end()}this._state=pe;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=pe):(this._state=ar,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=pe,this.startLoop(n)}))}createError(e,n,r,i,o){this._loop=!1,this._errored=!0;let s=new e(r?`Invalid WebSocket frame: ${n}`:n);return Error.captureStackTrace(s,this.createError),s.code=o,s[Pm]=i,s}};Ga.exports=Bi});var Fi=g((yS,$a)=>{"use strict";var{Duplex:mS}=I("stream"),{randomFillSync:Bm}=I("crypto"),Wa=zt(),{EMPTY_BUFFER:Lm}=Ye(),{isValidStatusCode:jm}=Jt(),{mask:Va,toBuffer:Tt}=Ht(),ve=Symbol("kByteLength"),Fm=Buffer.alloc(4),ur=8*1024,rt,Et=ur,ji=class t{constructor(e,n,r){this._extensions=n||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,n){let r,i=!1,o=2,s=!1;n.mask&&(r=n.maskBuffer||Fm,n.generateMask?n.generateMask(r):(Et===ur&&(rt===void 0&&(rt=Buffer.alloc(ur)),Bm(rt,0,ur),Et=0),r[0]=rt[Et++],r[1]=rt[Et++],r[2]=rt[Et++],r[3]=rt[Et++]),s=(r[0]|r[1]|r[2]|r[3])===0,o=6);let u;typeof e=="string"?(!n.mask||s)&&n[ve]!==void 0?u=n[ve]:(e=Buffer.from(e),u=e.length):(u=e.length,i=n.mask&&n.readOnly&&!s);let c=u;u>=65536?(o+=8,c=127):u>125&&(o+=2,c=126);let a=Buffer.allocUnsafe(i?u+o:o);return a[0]=n.fin?n.opcode|128:n.opcode,n.rsv1&&(a[0]|=64),a[1]=c,c===126?a.writeUInt16BE(u,2):c===127&&(a[2]=a[3]=0,a.writeUIntBE(u,4,6)),n.mask?(a[1]|=128,a[o-4]=r[0],a[o-3]=r[1],a[o-2]=r[2],a[o-1]=r[3],s?[a,e]:i?(Va(e,r,a,o,u),[a]):(Va(e,r,e,0,u),[a,e])):[a,e]}close(e,n,r,i){let o;if(e===void 0)o=Lm;else{if(typeof e!="number"||!jm(e))throw new TypeError("First argument must be a valid error code number");if(n===void 0||!n.length)o=Buffer.allocUnsafe(2),o.writeUInt16BE(e,0);else{let u=Buffer.byteLength(n);if(u>123)throw new RangeError("The message must not be greater than 123 bytes");o=Buffer.allocUnsafe(2+u),o.writeUInt16BE(e,0),typeof n=="string"?o.write(n,2):o.set(n,2)}}let s={[ve]:o.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,o,!1,s,i]):this.sendFrame(t.frame(o,s),i)}ping(e,n,r){let i,o;if(typeof e=="string"?(i=Buffer.byteLength(e),o=!1):(e=Tt(e),i=e.length,o=Tt.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let s={[ve]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:o,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,s,r]):this.sendFrame(t.frame(e,s),r)}pong(e,n,r){let i,o;if(typeof e=="string"?(i=Buffer.byteLength(e),o=!1):(e=Tt(e),i=e.length,o=Tt.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let s={[ve]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:o,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,s,r]):this.sendFrame(t.frame(e,s),r)}send(e,n,r){let i=this._extensions[Wa.extensionName],o=n.binary?2:1,s=n.compress,u,c;if(typeof e=="string"?(u=Buffer.byteLength(e),c=!1):(e=Tt(e),u=e.length,c=Tt.readOnly),this._firstFragment?(this._firstFragment=!1,s&&i&&i.params[i._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(s=u>=i._threshold),this._compress=s):(s=!1,o=0),n.fin&&(this._firstFragment=!0),i){let a={[ve]:u,fin:n.fin,generateMask:this._generateMask,mask:n.mask,maskBuffer:this._maskBuffer,opcode:o,readOnly:c,rsv1:s};this._deflating?this.enqueue([this.dispatch,e,this._compress,a,r]):this.dispatch(e,this._compress,a,r)}else this.sendFrame(t.frame(e,{[ve]:u,fin:n.fin,generateMask:this._generateMask,mask:n.mask,maskBuffer:this._maskBuffer,opcode:o,readOnly:c,rsv1:!1}),r)}dispatch(e,n,r,i){if(!n){this.sendFrame(t.frame(e,r),i);return}let o=this._extensions[Wa.extensionName];this._bufferedBytes+=r[ve],this._deflating=!0,o.compress(e,r.fin,(s,u)=>{if(this._socket.destroyed){let c=new Error("The socket was closed while data was being compressed");typeof i=="function"&&i(c);for(let a=0;a<this._queue.length;a++){let l=this._queue[a],p=l[l.length-1];typeof p=="function"&&p(c)}return}this._bufferedBytes-=r[ve],this._deflating=!1,r.readOnly=!1,this.sendFrame(t.frame(u,r),i),this.dequeue()})}dequeue(){for(;!this._deflating&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][ve],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][ve],this._queue.push(e)}sendFrame(e,n){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],n),this._socket.uncork()):this._socket.write(e[0],n)}};$a.exports=ji});var eu=g((vS,Za)=>{"use strict";var{kForOnEventAttribute:Xt,kListener:Ui}=Ye(),Ha=Symbol("kCode"),Ka=Symbol("kData"),Ya=Symbol("kError"),za=Symbol("kMessage"),Ja=Symbol("kReason"),xt=Symbol("kTarget"),Xa=Symbol("kType"),Qa=Symbol("kWasClean"),Ge=class{constructor(e){this[xt]=null,this[Xa]=e}get target(){return this[xt]}get type(){return this[Xa]}};Object.defineProperty(Ge.prototype,"target",{enumerable:!0});Object.defineProperty(Ge.prototype,"type",{enumerable:!0});var it=class extends Ge{constructor(e,n={}){super(e),this[Ha]=n.code===void 0?0:n.code,this[Ja]=n.reason===void 0?"":n.reason,this[Qa]=n.wasClean===void 0?!1:n.wasClean}get code(){return this[Ha]}get reason(){return this[Ja]}get wasClean(){return this[Qa]}};Object.defineProperty(it.prototype,"code",{enumerable:!0});Object.defineProperty(it.prototype,"reason",{enumerable:!0});Object.defineProperty(it.prototype,"wasClean",{enumerable:!0});var Ct=class extends Ge{constructor(e,n={}){super(e),this[Ya]=n.error===void 0?null:n.error,this[za]=n.message===void 0?"":n.message}get error(){return this[Ya]}get message(){return this[za]}};Object.defineProperty(Ct.prototype,"error",{enumerable:!0});Object.defineProperty(Ct.prototype,"message",{enumerable:!0});var Qt=class extends Ge{constructor(e,n={}){super(e),this[Ka]=n.data===void 0?null:n.data}get data(){return this[Ka]}};Object.defineProperty(Qt.prototype,"data",{enumerable:!0});var Um={addEventListener(t,e,n={}){for(let i of this.listeners(t))if(!n[Xt]&&i[Ui]===e&&!i[Xt])return;let r;if(t==="message")r=function(o,s){let u=new Qt("message",{data:s?o:o.toString()});u[xt]=this,cr(e,this,u)};else if(t==="close")r=function(o,s){let u=new it("close",{code:o,reason:s.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});u[xt]=this,cr(e,this,u)};else if(t==="error")r=function(o){let s=new Ct("error",{error:o,message:o.message});s[xt]=this,cr(e,this,s)};else if(t==="open")r=function(){let o=new Ge("open");o[xt]=this,cr(e,this,o)};else return;r[Xt]=!!n[Xt],r[Ui]=e,n.once?this.once(t,r):this.on(t,r)},removeEventListener(t,e){for(let n of this.listeners(t))if(n[Ui]===e&&!n[Xt]){this.removeListener(t,n);break}}};Za.exports={CloseEvent:it,ErrorEvent:Ct,Event:Ge,EventTarget:Um,MessageEvent:Qt};function cr(t,e,n){typeof t=="object"&&t.handleEvent?t.handleEvent.call(t,n):t.call(e,n)}});var qi=g((_S,tu)=>{"use strict";var{tokenChars:Zt}=Jt();function Le(t,e,n){t[e]===void 0?t[e]=[n]:t[e].push(n)}function qm(t){let e=Object.create(null),n=Object.create(null),r=!1,i=!1,o=!1,s,u,c=-1,a=-1,l=-1,p=0;for(;p<t.length;p++)if(a=t.charCodeAt(p),s===void 0)if(l===-1&&Zt[a]===1)c===-1&&(c=p);else if(p!==0&&(a===32||a===9))l===-1&&c!==-1&&(l=p);else if(a===59||a===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${p}`);l===-1&&(l=p);let w=t.slice(c,l);a===44?(Le(e,w,n),n=Object.create(null)):s=w,c=l=-1}else throw new SyntaxError(`Unexpected character at index ${p}`);else if(u===void 0)if(l===-1&&Zt[a]===1)c===-1&&(c=p);else if(a===32||a===9)l===-1&&c!==-1&&(l=p);else if(a===59||a===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${p}`);l===-1&&(l=p),Le(n,t.slice(c,l),!0),a===44&&(Le(e,s,n),n=Object.create(null),s=void 0),c=l=-1}else if(a===61&&c!==-1&&l===-1)u=t.slice(c,p),c=l=-1;else throw new SyntaxError(`Unexpected character at index ${p}`);else if(i){if(Zt[a]!==1)throw new SyntaxError(`Unexpected character at index ${p}`);c===-1?c=p:r||(r=!0),i=!1}else if(o)if(Zt[a]===1)c===-1&&(c=p);else if(a===34&&c!==-1)o=!1,l=p;else if(a===92)i=!0;else throw new SyntaxError(`Unexpected character at index ${p}`);else if(a===34&&t.charCodeAt(p-1)===61)o=!0;else if(l===-1&&Zt[a]===1)c===-1&&(c=p);else if(c!==-1&&(a===32||a===9))l===-1&&(l=p);else if(a===59||a===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${p}`);l===-1&&(l=p);let w=t.slice(c,l);r&&(w=w.replace(/\\/g,""),r=!1),Le(n,u,w),a===44&&(Le(e,s,n),n=Object.create(null),s=void 0),u=void 0,c=l=-1}else throw new SyntaxError(`Unexpected character at index ${p}`);if(c===-1||o||a===32||a===9)throw new SyntaxError("Unexpected end of input");l===-1&&(l=p);let m=t.slice(c,l);return s===void 0?Le(e,m,n):(u===void 0?Le(n,m,!0):r?Le(n,u,m.replace(/\\/g,"")):Le(n,u,m),Le(e,s,n)),e}function Gm(t){return Object.keys(t).map(e=>{let n=t[e];return Array.isArray(n)||(n=[n]),n.map(r=>[e].concat(Object.keys(r).map(i=>{let o=r[i];return Array.isArray(o)||(o=[o]),o.map(s=>s===!0?i:`${i}=${s}`).join("; ")})).join("; ")).join(", ")}).join(", ")}tu.exports={format:Gm,parse:qm}});var Hi=g((SS,du)=>{"use strict";var Wm=I("events"),Vm=I("https"),$m=I("http"),iu=I("net"),Hm=I("tls"),{randomBytes:Km,createHash:Ym}=I("crypto"),{Duplex:bS,Readable:wS}=I("stream"),{URL:Gi}=I("url"),Je=zt(),zm=Li(),Jm=Fi(),{BINARY_TYPES:nu,EMPTY_BUFFER:lr,GUID:Xm,kForOnEventAttribute:Wi,kListener:Qm,kStatusCode:Zm,kWebSocket:X,NOOP:ou}=Ye(),{EventTarget:{addEventListener:ey,removeEventListener:ty}}=eu(),{format:ny,parse:ry}=qi(),{toBuffer:iy}=Ht(),oy=30*1e3,su=Symbol("kAborted"),Vi=[8,13],We=["CONNECTING","OPEN","CLOSING","CLOSED"],sy=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,j=class t extends Wm{constructor(e,n,r){super(),this._binaryType=nu[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=lr,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=t.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n=="object"&&n!==null?(r=n,n=[]):n=[n]),au(this,e,n,r)):(this._autoPong=r.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){nu.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,n,r){let i=new zm({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation});this._sender=new Jm(e,this._extensions,r.generateMask),this._receiver=i,this._socket=e,i[X]=this,e[X]=this,i.on("conclude",cy),i.on("drain",ly),i.on("error",fy),i.on("message",dy),i.on("ping",py),i.on("pong",hy),e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),n.length>0&&e.unshift(n),e.on("close",cu),e.on("data",dr),e.on("end",lu),e.on("error",fu),this._readyState=t.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[Je.extensionName]&&this._extensions[Je.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,n){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){se(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===t.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=t.CLOSING,this._sender.close(e,n,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),oy)}}pause(){this.readyState===t.CONNECTING||this.readyState===t.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,n,r){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=n=void 0):typeof n=="function"&&(r=n,n=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){$i(this,e,r);return}n===void 0&&(n=!this._isServer),this._sender.ping(e||lr,n,r)}pong(e,n,r){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=n=void 0):typeof n=="function"&&(r=n,n=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){$i(this,e,r);return}n===void 0&&(n=!this._isServer),this._sender.pong(e||lr,n,r)}resume(){this.readyState===t.CONNECTING||this.readyState===t.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,n,r){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof n=="function"&&(r=n,n={}),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){$i(this,e,r);return}let i={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...n};this._extensions[Je.extensionName]||(i.compress=!1),this._sender.send(e||lr,i,r)}terminate(){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){se(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=t.CLOSING,this._socket.destroy())}}};Object.defineProperty(j,"CONNECTING",{enumerable:!0,value:We.indexOf("CONNECTING")});Object.defineProperty(j.prototype,"CONNECTING",{enumerable:!0,value:We.indexOf("CONNECTING")});Object.defineProperty(j,"OPEN",{enumerable:!0,value:We.indexOf("OPEN")});Object.defineProperty(j.prototype,"OPEN",{enumerable:!0,value:We.indexOf("OPEN")});Object.defineProperty(j,"CLOSING",{enumerable:!0,value:We.indexOf("CLOSING")});Object.defineProperty(j.prototype,"CLOSING",{enumerable:!0,value:We.indexOf("CLOSING")});Object.defineProperty(j,"CLOSED",{enumerable:!0,value:We.indexOf("CLOSED")});Object.defineProperty(j.prototype,"CLOSED",{enumerable:!0,value:We.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(t=>{Object.defineProperty(j.prototype,t,{enumerable:!0})});["open","error","close","message"].forEach(t=>{Object.defineProperty(j.prototype,`on${t}`,{enumerable:!0,get(){for(let e of this.listeners(t))if(e[Wi])return e[Qm];return null},set(e){for(let n of this.listeners(t))if(n[Wi]){this.removeListener(t,n);break}typeof e=="function"&&this.addEventListener(t,e,{[Wi]:!0})}})});j.prototype.addEventListener=ey;j.prototype.removeEventListener=ty;du.exports=j;function au(t,e,n,r){let i={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:Vi[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(t._autoPong=i.autoPong,!Vi.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${Vi.join(", ")})`);let o;if(e instanceof Gi)o=e;else try{o=new Gi(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}o.protocol==="http:"?o.protocol="ws:":o.protocol==="https:"&&(o.protocol="wss:"),t._url=o.href;let s=o.protocol==="wss:",u=o.protocol==="ws+unix:",c;if(o.protocol!=="ws:"&&!s&&!u?c=`The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`:u&&!o.pathname?c="The URL's pathname is empty":o.hash&&(c="The URL contains a fragment identifier"),c){let E=new SyntaxError(c);if(t._redirects===0)throw E;fr(t,E);return}let a=s?443:80,l=Km(16).toString("base64"),p=s?Vm.request:$m.request,m=new Set,w;if(i.createConnection=i.createConnection||(s?uy:ay),i.defaultPort=i.defaultPort||a,i.port=o.port||a,i.host=o.hostname.startsWith("[")?o.hostname.slice(1,-1):o.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":l,Connection:"Upgrade",Upgrade:"websocket"},i.path=o.pathname+o.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(w=new Je(i.perMessageDeflate!==!0?i.perMessageDeflate:{},!1,i.maxPayload),i.headers["Sec-WebSocket-Extensions"]=ny({[Je.extensionName]:w.offer()})),n.length){for(let E of n){if(typeof E!="string"||!sy.test(E)||m.has(E))throw new SyntaxError("An invalid or duplicated subprotocol was specified");m.add(E)}i.headers["Sec-WebSocket-Protocol"]=n.join(",")}if(i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(o.username||o.password)&&(i.auth=`${o.username}:${o.password}`),u){let E=i.path.split(":");i.socketPath=E[0],i.path=E[1]}let C;if(i.followRedirects){if(t._redirects===0){t._originalIpc=u,t._originalSecure=s,t._originalHostOrSocketPath=u?i.socketPath:o.host;let E=r&&r.headers;if(r={...r,headers:{}},E)for(let[R,H]of Object.entries(E))r.headers[R.toLowerCase()]=H}else if(t.listenerCount("redirect")===0){let E=u?t._originalIpc?i.socketPath===t._originalHostOrSocketPath:!1:t._originalIpc?!1:o.host===t._originalHostOrSocketPath;(!E||t._originalSecure&&!s)&&(delete i.headers.authorization,delete i.headers.cookie,E||delete i.headers.host,i.auth=void 0)}i.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64")),C=t._req=p(i),t._redirects&&t.emit("redirect",t.url,C)}else C=t._req=p(i);i.timeout&&C.on("timeout",()=>{se(t,C,"Opening handshake has timed out")}),C.on("error",E=>{C===null||C[su]||(C=t._req=null,fr(t,E))}),C.on("response",E=>{let R=E.headers.location,H=E.statusCode;if(R&&i.followRedirects&&H>=300&&H<400){if(++t._redirects>i.maxRedirects){se(t,C,"Maximum redirects exceeded");return}C.abort();let ae;try{ae=new Gi(R,e)}catch{let he=new SyntaxError(`Invalid URL: ${R}`);fr(t,he);return}au(t,ae,n,r)}else t.emit("unexpected-response",C,E)||se(t,C,`Unexpected server response: ${E.statusCode}`)}),C.on("upgrade",(E,R,H)=>{if(t.emit("upgrade",E),t.readyState!==j.CONNECTING)return;C=t._req=null;let ae=E.headers.upgrade;if(ae===void 0||ae.toLowerCase()!=="websocket"){se(t,R,"Invalid Upgrade header");return}let dt=Ym("sha1").update(l+Xm).digest("base64");if(E.headers["sec-websocket-accept"]!==dt){se(t,R,"Invalid Sec-WebSocket-Accept header");return}let he=E.headers["sec-websocket-protocol"],_e;if(he!==void 0?m.size?m.has(he)||(_e="Server sent an invalid subprotocol"):_e="Server sent a subprotocol but none was requested":m.size&&(_e="Server sent no subprotocol"),_e){se(t,R,_e);return}he&&(t._protocol=he);let Qe=E.headers["sec-websocket-extensions"];if(Qe!==void 0){if(!w){se(t,R,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let $e;try{$e=ry(Qe)}catch{se(t,R,"Invalid Sec-WebSocket-Extensions header");return}let gn=Object.keys($e);if(gn.length!==1||gn[0]!==Je.extensionName){se(t,R,"Server indicated an extension that was not requested");return}try{w.accept($e[Je.extensionName])}catch{se(t,R,"Invalid Sec-WebSocket-Extensions header");return}t._extensions[Je.extensionName]=w}t.setSocket(R,H,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})}),i.finishRequest?i.finishRequest(C,t):C.end()}function fr(t,e){t._readyState=j.CLOSING,t.emit("error",e),t.emitClose()}function ay(t){return t.path=t.socketPath,iu.connect(t)}function uy(t){return t.path=void 0,!t.servername&&t.servername!==""&&(t.servername=iu.isIP(t.host)?"":t.host),Hm.connect(t)}function se(t,e,n){t._readyState=j.CLOSING;let r=new Error(n);Error.captureStackTrace(r,se),e.setHeader?(e[su]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(fr,t,r)):(e.destroy(r),e.once("error",t.emit.bind(t,"error")),e.once("close",t.emitClose.bind(t)))}function $i(t,e,n){if(e){let r=iy(e).length;t._socket?t._sender._bufferedBytes+=r:t._bufferedAmount+=r}if(n){let r=new Error(`WebSocket is not open: readyState ${t.readyState} (${We[t.readyState]})`);process.nextTick(n,r)}}function cy(t,e){let n=this[X];n._closeFrameReceived=!0,n._closeMessage=e,n._closeCode=t,n._socket[X]!==void 0&&(n._socket.removeListener("data",dr),process.nextTick(uu,n._socket),t===1005?n.close():n.close(t,e))}function ly(){let t=this[X];t.isPaused||t._socket.resume()}function fy(t){let e=this[X];e._socket[X]!==void 0&&(e._socket.removeListener("data",dr),process.nextTick(uu,e._socket),e.close(t[Zm])),e.emit("error",t)}function ru(){this[X].emitClose()}function dy(t,e){this[X].emit("message",t,e)}function py(t){let e=this[X];e._autoPong&&e.pong(t,!this._isServer,ou),e.emit("ping",t)}function hy(t){this[X].emit("pong",t)}function uu(t){t.resume()}function cu(){let t=this[X];this.removeListener("close",cu),this.removeListener("data",dr),this.removeListener("end",lu),t._readyState=j.CLOSING;let e;!this._readableState.endEmitted&&!t._closeFrameReceived&&!t._receiver._writableState.errorEmitted&&(e=t._socket.read())!==null&&t._receiver.write(e),t._receiver.end(),this[X]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",ru),t._receiver.on("finish",ru))}function dr(t){this[X]._receiver.write(t)||this.pause()}function lu(){let t=this[X];t._readyState=j.CLOSING,t._receiver.end(),this.end()}function fu(){let t=this[X];this.removeListener("error",fu),this.on("error",ou),t&&(t._readyState=j.CLOSING,this.destroy())}});var hu=g((TS,pu)=>{"use strict";var{tokenChars:gy}=Jt();function my(t){let e=new Set,n=-1,r=-1,i=0;for(i;i<t.length;i++){let s=t.charCodeAt(i);if(r===-1&&gy[s]===1)n===-1&&(n=i);else if(i!==0&&(s===32||s===9))r===-1&&n!==-1&&(r=i);else if(s===44){if(n===-1)throw new SyntaxError(`Unexpected character at index ${i}`);r===-1&&(r=i);let u=t.slice(n,r);if(e.has(u))throw new SyntaxError(`The "${u}" subprotocol is duplicated`);e.add(u),n=r=-1}else throw new SyntaxError(`Unexpected character at index ${i}`)}if(n===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let o=t.slice(n,i);if(e.has(o))throw new SyntaxError(`The "${o}" subprotocol is duplicated`);return e.add(o),e}pu.exports={parse:my}});var wu=g((xS,bu)=>{"use strict";var yy=I("events"),pr=I("http"),{Duplex:ES}=I("stream"),{createHash:vy}=I("crypto"),gu=qi(),ot=zt(),_y=hu(),by=Hi(),{GUID:wy,kWebSocket:Sy}=Ye(),Ty=/^[+/0-9A-Za-z]{22}==$/,mu=0,yu=1,_u=2,Ki=class extends yy{constructor(e,n){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:by,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=pr.createServer((r,i)=>{let o=pr.STATUS_CODES[426];i.writeHead(426,{"Content-Length":o.length,"Content-Type":"text/plain"}),i.end(o)}),this._server.listen(e.port,e.host,e.backlog,n)):e.server&&(this._server=e.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=Ey(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(i,o,s)=>{this.handleUpgrade(i,o,s,r)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=mu}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===_u){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(en,this);return}if(e&&this.once("close",e),this._state!==yu)if(this._state=yu,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(en,this):process.nextTick(en,this);else{let n=this._server;this._removeListeners(),this._removeListeners=this._server=null,n.close(()=>{en(this)})}}shouldHandle(e){if(this.options.path){let n=e.url.indexOf("?");if((n!==-1?e.url.slice(0,n):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,n,r,i){n.on("error",vu);let o=e.headers["sec-websocket-key"],s=e.headers.upgrade,u=+e.headers["sec-websocket-version"];if(e.method!=="GET"){st(this,e,n,405,"Invalid HTTP method");return}if(s===void 0||s.toLowerCase()!=="websocket"){st(this,e,n,400,"Invalid Upgrade header");return}if(o===void 0||!Ty.test(o)){st(this,e,n,400,"Missing or invalid Sec-WebSocket-Key header");return}if(u!==8&&u!==13){st(this,e,n,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(e)){tn(n,400);return}let c=e.headers["sec-websocket-protocol"],a=new Set;if(c!==void 0)try{a=_y.parse(c)}catch{st(this,e,n,400,"Invalid Sec-WebSocket-Protocol header");return}let l=e.headers["sec-websocket-extensions"],p={};if(this.options.perMessageDeflate&&l!==void 0){let m=new ot(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let w=gu.parse(l);w[ot.extensionName]&&(m.accept(w[ot.extensionName]),p[ot.extensionName]=m)}catch{st(this,e,n,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let m={origin:e.headers[`${u===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(m,(w,C,E,R)=>{if(!w)return tn(n,C||401,E,R);this.completeUpgrade(p,o,a,e,n,r,i)});return}if(!this.options.verifyClient(m))return tn(n,401)}this.completeUpgrade(p,o,a,e,n,r,i)}completeUpgrade(e,n,r,i,o,s,u){if(!o.readable||!o.writable)return o.destroy();if(o[Sy])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>mu)return tn(o,503);let a=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${vy("sha1").update(n+wy).digest("base64")}`],l=new this.options.WebSocket(null,void 0,this.options);if(r.size){let p=this.options.handleProtocols?this.options.handleProtocols(r,i):r.values().next().value;p&&(a.push(`Sec-WebSocket-Protocol: ${p}`),l._protocol=p)}if(e[ot.extensionName]){let p=e[ot.extensionName].params,m=gu.format({[ot.extensionName]:[p]});a.push(`Sec-WebSocket-Extensions: ${m}`),l._extensions=e}this.emit("headers",a,i),o.write(a.concat(`\r
`).join(`\r
`)),o.removeListener("error",vu),l.setSocket(o,s,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(l),l.on("close",()=>{this.clients.delete(l),this._shouldEmitClose&&!this.clients.size&&process.nextTick(en,this)})),u(l,i)}};bu.exports=Ki;function Ey(t,e){for(let n of Object.keys(e))t.on(n,e[n]);return function(){for(let r of Object.keys(e))t.removeListener(r,e[r])}}function en(t){t._state=_u,t.emit("close")}function vu(){this.destroy()}function tn(t,e,n,r){n=n||pr.STATUS_CODES[e],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(n),...r},t.once("finish",t.destroy),t.end(`HTTP/1.1 ${e} ${pr.STATUS_CODES[e]}\r
`+Object.keys(r).map(i=>`${i}: ${r[i]}`).join(`\r
`)+`\r
\r
`+n)}function st(t,e,n,r,i){if(t.listenerCount("wsClientError")){let o=new Error(i);Error.captureStackTrace(o,st),t.emit("wsClientError",o,n,e)}else tn(n,r,i)}});var ic=g((tT,rc)=>{rc.exports=nc;nc.sync=Qy;var ec=I("fs");function Xy(t,e){var n=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!n||(n=n.split(";"),n.indexOf("")!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function tc(t,e,n){return!t.isSymbolicLink()&&!t.isFile()?!1:Xy(e,n)}function nc(t,e,n){ec.stat(t,function(r,i){n(r,r?!1:tc(i,t,e))})}function Qy(t,e){return tc(ec.statSync(t),t,e)}});var cc=g((nT,uc)=>{uc.exports=sc;sc.sync=Zy;var oc=I("fs");function sc(t,e,n){oc.stat(t,function(r,i){n(r,r?!1:ac(i,e))})}function Zy(t,e){return ac(oc.statSync(t),e)}function ac(t,e){return t.isFile()&&ev(t,e)}function ev(t,e){var n=t.mode,r=t.uid,i=t.gid,o=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),s=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),u=parseInt("100",8),c=parseInt("010",8),a=parseInt("001",8),l=u|c,p=n&a||n&c&&i===s||n&u&&r===o||n&l&&o===0;return p}});var fc=g((iT,lc)=>{var rT=I("fs"),wr;process.platform==="win32"||global.TESTING_WINDOWS?wr=ic():wr=cc();lc.exports=Qi;Qi.sync=tv;function Qi(t,e,n){if(typeof e=="function"&&(n=e,e={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,i){Qi(t,e||{},function(o,s){o?i(o):r(s)})})}wr(t,e||{},function(r,i){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,i=!1),n(r,i)})}function tv(t,e){try{return wr.sync(t,e||{})}catch(n){if(e&&e.ignoreErrors||n.code==="EACCES")return!1;throw n}}});var vc=g((oT,yc)=>{var Rt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",dc=I("path"),nv=Rt?";":":",pc=fc(),hc=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),gc=(t,e)=>{let n=e.colon||nv,r=t.match(/\//)||Rt&&t.match(/\\/)?[""]:[...Rt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(n)],i=Rt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Rt?i.split(n):[""];return Rt&&t.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:r,pathExt:o,pathExtExe:i}},mc=(t,e,n)=>{typeof e=="function"&&(n=e,e={}),e||(e={});let{pathEnv:r,pathExt:i,pathExtExe:o}=gc(t,e),s=[],u=a=>new Promise((l,p)=>{if(a===r.length)return e.all&&s.length?l(s):p(hc(t));let m=r[a],w=/^".*"$/.test(m)?m.slice(1,-1):m,C=dc.join(w,t),E=!w&&/^\.[\\\/]/.test(t)?t.slice(0,2)+C:C;l(c(E,a,0))}),c=(a,l,p)=>new Promise((m,w)=>{if(p===i.length)return m(u(l+1));let C=i[p];pc(a+C,{pathExt:o},(E,R)=>{if(!E&&R)if(e.all)s.push(a+C);else return m(a+C);return m(c(a,l,p+1))})});return n?u(0).then(a=>n(null,a),n):u(0)},rv=(t,e)=>{e=e||{};let{pathEnv:n,pathExt:r,pathExtExe:i}=gc(t,e),o=[];for(let s=0;s<n.length;s++){let u=n[s],c=/^".*"$/.test(u)?u.slice(1,-1):u,a=dc.join(c,t),l=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+a:a;for(let p=0;p<r.length;p++){let m=l+r[p];try{if(pc.sync(m,{pathExt:i}))if(e.all)o.push(m);else return m}catch{}}}if(e.all&&o.length)return o;if(e.nothrow)return null;throw hc(t)};yc.exports=mc;mc.sync=rv});var eo=g((sT,Zi)=>{"use strict";var _c=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};Zi.exports=_c;Zi.exports.default=_c});var Tc=g((aT,Sc)=>{"use strict";var bc=I("path"),iv=vc(),ov=eo();function wc(t,e){let n=t.options.env||process.env,r=process.cwd(),i=t.options.cwd!=null,o=i&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(t.options.cwd)}catch{}let s;try{s=iv.sync(t.command,{path:n[ov({env:n})],pathExt:e?bc.delimiter:void 0})}catch{}finally{o&&process.chdir(r)}return s&&(s=bc.resolve(i?t.options.cwd:"",s)),s}function sv(t){return wc(t)||wc(t,!0)}Sc.exports=sv});var Ec=g((uT,no)=>{"use strict";var to=/([()\][%!^"`<>&|;, *?])/g;function av(t){return t=t.replace(to,"^$1"),t}function uv(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(to,"^$1"),e&&(t=t.replace(to,"^$1")),t}no.exports.command=av;no.exports.argument=uv});var Cc=g((cT,xc)=>{"use strict";xc.exports=/^#!(.*)/});var Ic=g((lT,Ac)=>{"use strict";var cv=Cc();Ac.exports=(t="")=>{let e=t.match(cv);if(!e)return null;let[n,r]=e[0].replace(/#! ?/,"").split(" "),i=n.split("/").pop();return i==="env"?r:r?`${i} ${r}`:i}});var Nc=g((fT,Oc)=>{"use strict";var ro=I("fs"),lv=Ic();function fv(t){let n=Buffer.alloc(150),r;try{r=ro.openSync(t,"r"),ro.readSync(r,n,0,150,0),ro.closeSync(r)}catch{}return lv(n.toString())}Oc.exports=fv});var Dc=g((dT,Mc)=>{"use strict";var dv=I("path"),Pc=Tc(),Rc=Ec(),pv=Nc(),hv=process.platform==="win32",gv=/\.(?:com|exe)$/i,mv=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function yv(t){t.file=Pc(t);let e=t.file&&pv(t.file);return e?(t.args.unshift(t.file),t.command=e,Pc(t)):t.file}function vv(t){if(!hv)return t;let e=yv(t),n=!gv.test(e);if(t.options.forceShell||n){let r=mv.test(e);t.command=dv.normalize(t.command),t.command=Rc.command(t.command),t.args=t.args.map(o=>Rc.argument(o,r));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function _v(t,e,n){e&&!Array.isArray(e)&&(n=e,e=null),e=e?e.slice(0):[],n=Object.assign({},n);let r={command:t,args:e,options:n,file:void 0,original:{command:t,args:e}};return n.shell?r:vv(r)}Mc.exports=_v});var Lc=g((pT,Bc)=>{"use strict";var io=process.platform==="win32";function oo(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function bv(t,e){if(!io)return;let n=t.emit;t.emit=function(r,i){if(r==="exit"){let o=kc(i,e);if(o)return n.call(t,"error",o)}return n.apply(t,arguments)}}function kc(t,e){return io&&t===1&&!e.file?oo(e.original,"spawn"):null}function wv(t,e){return io&&t===1&&!e.file?oo(e.original,"spawnSync"):null}Bc.exports={hookChildProcess:bv,verifyENOENT:kc,verifyENOENTSync:wv,notFoundError:oo}});var Uc=g((hT,Mt)=>{"use strict";var jc=I("child_process"),so=Dc(),ao=Lc();function Fc(t,e,n){let r=so(t,e,n),i=jc.spawn(r.command,r.args,r.options);return ao.hookChildProcess(i,r),i}function Sv(t,e,n){let r=so(t,e,n),i=jc.spawnSync(r.command,r.args,r.options);return i.error=i.error||ao.verifyENOENTSync(i.status,r),i}Mt.exports=Fc;Mt.exports.spawn=Fc;Mt.exports.sync=Sv;Mt.exports._parse=so;Mt.exports._enoent=ao});var Gc=g((gT,qc)=>{"use strict";qc.exports=t=>{let e=typeof t=="string"?`
`:10,n=typeof t=="string"?"\r":13;return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t}});var $c=g((mT,an)=>{"use strict";var sn=I("path"),Wc=eo(),Vc=t=>{t={cwd:process.cwd(),path:process.env[Wc()],execPath:process.execPath,...t};let e,n=sn.resolve(t.cwd),r=[];for(;e!==n;)r.push(sn.join(n,"node_modules/.bin")),e=n,n=sn.resolve(n,"..");let i=sn.resolve(t.cwd,t.execPath,"..");return r.push(i),r.concat(t.path).join(sn.delimiter)};an.exports=Vc;an.exports.default=Vc;an.exports.env=t=>{t={env:process.env,...t};let e={...t.env},n=Wc({env:e});return t.path=e[n],e[n]=an.exports(t),e}});var Kc=g((yT,uo)=>{"use strict";var Hc=(t,e)=>{for(let n of Reflect.ownKeys(e))Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t};uo.exports=Hc;uo.exports.default=Hc});var zc=g((vT,Tr)=>{"use strict";var Tv=Kc(),Sr=new WeakMap,Yc=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let n,r=0,i=t.displayName||t.name||"<anonymous>",o=function(...s){if(Sr.set(o,++r),r===1)n=t.apply(this,s),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return n};return Tv(o,t),Sr.set(o,r),o};Tr.exports=Yc;Tr.exports.default=Yc;Tr.exports.callCount=t=>{if(!Sr.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Sr.get(t)}});var Jc=g(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.SIGNALS=void 0;var Ev=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Er.SIGNALS=Ev});var co=g(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.SIGRTMAX=Dt.getRealtimeSignals=void 0;var xv=function(){let t=Qc-Xc+1;return Array.from({length:t},Cv)};Dt.getRealtimeSignals=xv;var Cv=function(t,e){return{name:`SIGRT${e+1}`,number:Xc+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Xc=34,Qc=64;Dt.SIGRTMAX=Qc});var Zc=g(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.getSignals=void 0;var Av=I("os"),Iv=Jc(),Ov=co(),Nv=function(){let t=(0,Ov.getRealtimeSignals)();return[...Iv.SIGNALS,...t].map(Pv)};xr.getSignals=Nv;var Pv=function({name:t,number:e,description:n,action:r,forced:i=!1,standard:o}){let{signals:{[t]:s}}=Av.constants,u=s!==void 0;return{name:t,number:u?s:e,description:n,supported:u,action:r,forced:i,standard:o}}});var tl=g(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.signalsByNumber=kt.signalsByName=void 0;var Rv=I("os"),el=Zc(),Mv=co(),Dv=function(){return(0,el.getSignals)().reduce(kv,{})},kv=function(t,{name:e,number:n,description:r,supported:i,action:o,forced:s,standard:u}){return{...t,[e]:{name:e,number:n,description:r,supported:i,action:o,forced:s,standard:u}}},Bv=Dv();kt.signalsByName=Bv;var Lv=function(){let t=(0,el.getSignals)(),e=Mv.SIGRTMAX+1,n=Array.from({length:e},(r,i)=>jv(i,t));return Object.assign({},...n)},jv=function(t,e){let n=Fv(t,e);if(n===void 0)return{};let{name:r,description:i,supported:o,action:s,forced:u,standard:c}=n;return{[t]:{name:r,number:t,description:i,supported:o,action:s,forced:u,standard:c}}},Fv=function(t,e){let n=e.find(({name:r})=>Rv.constants.signals[r]===t);return n!==void 0?n:e.find(r=>r.number===t)},Uv=Lv();kt.signalsByNumber=Uv});var rl=g((TT,nl)=>{"use strict";var{signalsByName:qv}=tl(),Gv=({timedOut:t,timeout:e,errorCode:n,signal:r,signalDescription:i,exitCode:o,isCanceled:s})=>t?`timed out after ${e} milliseconds`:s?"was canceled":n!==void 0?`failed with ${n}`:r!==void 0?`was killed with ${r} (${i})`:o!==void 0?`failed with exit code ${o}`:"failed",Wv=({stdout:t,stderr:e,all:n,error:r,signal:i,exitCode:o,command:s,escapedCommand:u,timedOut:c,isCanceled:a,killed:l,parsed:{options:{timeout:p}}})=>{o=o===null?void 0:o,i=i===null?void 0:i;let m=i===void 0?void 0:qv[i].description,w=r&&r.code,E=`Command ${Gv({timedOut:c,timeout:p,errorCode:w,signal:i,signalDescription:m,exitCode:o,isCanceled:a})}: ${s}`,R=Object.prototype.toString.call(r)==="[object Error]",H=R?`${E}
${r.message}`:E,ae=[H,e,t].filter(Boolean).join(`
`);return R?(r.originalMessage=r.message,r.message=ae):r=new Error(ae),r.shortMessage=H,r.command=s,r.escapedCommand=u,r.exitCode=o,r.signal=i,r.signalDescription=m,r.stdout=t,r.stderr=e,n!==void 0&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!c,r.isCanceled=a,r.killed=l&&!c,r};nl.exports=Wv});var ol=g((ET,lo)=>{"use strict";var Cr=["stdin","stdout","stderr"],Vv=t=>Cr.some(e=>t[e]!==void 0),il=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Cr.map(r=>t[r]);if(Vv(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Cr.map(r=>`\`${r}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let n=Math.max(e.length,Cr.length);return Array.from({length:n},(r,i)=>e[i])};lo.exports=il;lo.exports.node=t=>{let e=il(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var sl=g((xT,Ar)=>{Ar.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ar.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ar.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var cl=g((CT,ln)=>{var $v=I("assert"),un=sl(),Hv=/^win/i.test(process.platform),Ir=I("events");typeof Ir!="function"&&(Ir=Ir.EventEmitter);var $;process.__signal_exit_emitter__?$=process.__signal_exit_emitter__:($=process.__signal_exit_emitter__=new Ir,$.count=0,$.emitted={});$.infinite||($.setMaxListeners(1/0),$.infinite=!0);ln.exports=function(t,e){$v.equal(typeof t,"function","a callback must be provided for exit handler"),cn===!1&&al();var n="exit";e&&e.alwaysLast&&(n="afterexit");var r=function(){$.removeListener(n,t),$.listeners("exit").length===0&&$.listeners("afterexit").length===0&&po()};return $.on(n,t),r};ln.exports.unload=po;function po(){cn&&(cn=!1,un.forEach(function(t){try{process.removeListener(t,ho[t])}catch{}}),process.emit=fo,process.reallyExit=ul,$.count-=1)}function Bt(t,e,n){$.emitted[t]||($.emitted[t]=!0,$.emit(t,e,n))}var ho={};un.forEach(function(t){ho[t]=function(){var n=process.listeners(t);n.length===$.count&&(po(),Bt("exit",null,t),Bt("afterexit",null,t),Hv&&t==="SIGHUP"&&(t="SIGINT"),process.kill(process.pid,t))}});ln.exports.signals=function(){return un};ln.exports.load=al;var cn=!1;function al(){cn||(cn=!0,$.count+=1,un=un.filter(function(t){try{return process.on(t,ho[t]),!0}catch{return!1}}),process.emit=Yv,process.reallyExit=Kv)}var ul=process.reallyExit;function Kv(t){process.exitCode=t||0,Bt("exit",process.exitCode,null),Bt("afterexit",process.exitCode,null),ul.call(process,process.exitCode)}var fo=process.emit;function Yv(t,e){if(t==="exit"){e!==void 0&&(process.exitCode=e);var n=fo.apply(this,arguments);return Bt("exit",process.exitCode,null),Bt("afterexit",process.exitCode,null),n}else return fo.apply(this,arguments)}});var fl=g((AT,ll)=>{"use strict";var zv=I("os"),Jv=cl(),Xv=1e3*5,Qv=(t,e="SIGTERM",n={})=>{let r=t(e);return Zv(t,e,n,r),r},Zv=(t,e,n,r)=>{if(!e_(e,n,r))return;let i=n_(n),o=setTimeout(()=>{t("SIGKILL")},i);o.unref&&o.unref()},e_=(t,{forceKillAfterTimeout:e},n)=>t_(t)&&e!==!1&&n,t_=t=>t===zv.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",n_=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return Xv;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},r_=(t,e)=>{t.kill()&&(e.isCanceled=!0)},i_=(t,e,n)=>{t.kill(e),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},o_=(t,{timeout:e,killSignal:n="SIGTERM"},r)=>{if(e===0||e===void 0)return r;let i,o=new Promise((u,c)=>{i=setTimeout(()=>{i_(t,n,c)},e)}),s=r.finally(()=>{clearTimeout(i)});return Promise.race([o,s])},s_=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},a_=async(t,{cleanup:e,detached:n},r)=>{if(!e||n)return r;let i=Jv(()=>{t.kill()});return r.finally(()=>{i()})};ll.exports={spawnedKill:Qv,spawnedCancel:r_,setupTimeout:o_,validateTimeout:s_,setExitHandler:a_}});var pl=g((IT,dl)=>{"use strict";var je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";je.writable=t=>je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";je.readable=t=>je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";je.duplex=t=>je.writable(t)&&je.readable(t);je.transform=t=>je.duplex(t)&&typeof t._transform=="function"&&typeof t._transformState=="object";dl.exports=je});var gl=g((OT,hl)=>{"use strict";var{PassThrough:u_}=I("stream");hl.exports=t=>{t={...t};let{array:e}=t,{encoding:n}=t,r=n==="buffer",i=!1;e?i=!(n||r):n=n||"utf8",r&&(n=null);let o=new u_({objectMode:i});n&&o.setEncoding(n);let s=0,u=[];return o.on("data",c=>{u.push(c),i?s=u.length:s+=c.length}),o.getBufferedValue=()=>e?u:r?Buffer.concat(u,s):u.join(""),o.getBufferedLength=()=>s,o}});var ml=g((NT,fn)=>{"use strict";var{constants:c_}=I("buffer"),l_=I("stream"),{promisify:f_}=I("util"),d_=gl(),p_=f_(l_.pipeline),Or=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function go(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:n}=e,r=d_(e);return await new Promise((i,o)=>{let s=u=>{u&&r.getBufferedLength()<=c_.MAX_LENGTH&&(u.bufferedData=r.getBufferedValue()),o(u)};(async()=>{try{await p_(t,r),i()}catch(u){s(u)}})(),r.on("data",()=>{r.getBufferedLength()>n&&s(new Or)})}),r.getBufferedValue()}fn.exports=go;fn.exports.buffer=(t,e)=>go(t,{...e,encoding:"buffer"});fn.exports.array=(t,e)=>go(t,{...e,array:!0});fn.exports.MaxBufferError=Or});var vl=g((PT,yl)=>{"use strict";var{PassThrough:h_}=I("stream");yl.exports=function(){var t=[],e=new h_({objectMode:!0});return e.setMaxListeners(0),e.add=n,e.isEmpty=r,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(n),e;function n(o){return Array.isArray(o)?(o.forEach(n),this):(t.push(o),o.once("end",i.bind(null,o)),o.once("error",e.emit.bind(e,"error")),o.pipe(e,{end:!1}),this)}function r(){return t.length==0}function i(o){t=t.filter(function(s){return s!==o}),!t.length&&e.readable&&e.end()}}});var Sl=g((RT,wl)=>{"use strict";var bl=pl(),_l=ml(),g_=vl(),m_=(t,e)=>{e===void 0||t.stdin===void 0||(bl(e)?e.pipe(t.stdin):t.stdin.end(e))},y_=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let n=g_();return t.stdout&&n.add(t.stdout),t.stderr&&n.add(t.stderr),n},mo=async(t,e)=>{if(t){t.destroy();try{return await e}catch(n){return n.bufferedData}}},yo=(t,{encoding:e,buffer:n,maxBuffer:r})=>{if(!(!t||!n))return e?_l(t,{encoding:e,maxBuffer:r}):_l.buffer(t,{maxBuffer:r})},v_=async({stdout:t,stderr:e,all:n},{encoding:r,buffer:i,maxBuffer:o},s)=>{let u=yo(t,{encoding:r,buffer:i,maxBuffer:o}),c=yo(e,{encoding:r,buffer:i,maxBuffer:o}),a=yo(n,{encoding:r,buffer:i,maxBuffer:o*2});try{return await Promise.all([s,u,c,a])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},mo(t,u),mo(e,c),mo(n,a)])}},__=({input:t})=>{if(bl(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};wl.exports={handleInput:m_,makeAllStream:y_,getSpawnedResult:v_,validateInputSync:__}});var El=g((MT,Tl)=>{"use strict";var b_=(async()=>{})().constructor.prototype,w_=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(b_,t)]),S_=(t,e)=>{for(let[n,r]of w_){let i=typeof e=="function"?(...o)=>Reflect.apply(r.value,e(),o):r.value.bind(e);Reflect.defineProperty(t,n,{...r,value:i})}return t},T_=t=>new Promise((e,n)=>{t.on("exit",(r,i)=>{e({exitCode:r,signal:i})}),t.on("error",r=>{n(r)}),t.stdin&&t.stdin.on("error",r=>{n(r)})});Tl.exports={mergePromise:S_,getSpawnedPromise:T_}});var Al=g((DT,Cl)=>{"use strict";var xl=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],E_=/^[\w.-]+$/,x_=/"/g,C_=t=>typeof t!="string"||E_.test(t)?t:`"${t.replace(x_,'\\"')}"`,A_=(t,e)=>xl(t,e).join(" "),I_=(t,e)=>xl(t,e).map(n=>C_(n)).join(" "),O_=/ +/g,N_=t=>{let e=[];for(let n of t.trim().split(O_)){let r=e[e.length-1];r&&r.endsWith("\\")?e[e.length-1]=`${r.slice(0,-1)} ${n}`:e.push(n)}return e};Cl.exports={joinCommand:A_,getEscapedCommand:I_,parseCommand:N_}});var Dl=g((kT,Lt)=>{"use strict";var P_=I("path"),vo=I("child_process"),R_=Uc(),M_=Gc(),D_=$c(),k_=zc(),Nr=rl(),Ol=ol(),{spawnedKill:B_,spawnedCancel:L_,setupTimeout:j_,validateTimeout:F_,setExitHandler:U_}=fl(),{handleInput:q_,getSpawnedResult:G_,makeAllStream:W_,validateInputSync:V_}=Sl(),{mergePromise:Il,getSpawnedPromise:$_}=El(),{joinCommand:Nl,parseCommand:Pl,getEscapedCommand:Rl}=Al(),H_=1e3*1e3*100,K_=({env:t,extendEnv:e,preferLocal:n,localDir:r,execPath:i})=>{let o=e?{...process.env,...t}:t;return n?D_.env({env:o,cwd:r,execPath:i}):o},Ml=(t,e,n={})=>{let r=R_._parse(t,e,n);return t=r.command,e=r.args,n=r.options,n={maxBuffer:H_,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n},n.env=K_(n),n.stdio=Ol(n),process.platform==="win32"&&P_.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:n,parsed:r}},dn=(t,e,n)=>typeof e!="string"&&!Buffer.isBuffer(e)?n===void 0?void 0:"":t.stripFinalNewline?M_(e):e,Pr=(t,e,n)=>{let r=Ml(t,e,n),i=Nl(t,e),o=Rl(t,e);F_(r.options);let s;try{s=vo.spawn(r.file,r.args,r.options)}catch(w){let C=new vo.ChildProcess,E=Promise.reject(Nr({error:w,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return Il(C,E)}let u=$_(s),c=j_(s,r.options,u),a=U_(s,r.options,c),l={isCanceled:!1};s.kill=B_.bind(null,s.kill.bind(s)),s.cancel=L_.bind(null,s,l);let m=k_(async()=>{let[{error:w,exitCode:C,signal:E,timedOut:R},H,ae,dt]=await G_(s,r.options,a),he=dn(r.options,H),_e=dn(r.options,ae),Qe=dn(r.options,dt);if(w||C!==0||E!==null){let $e=Nr({error:w,exitCode:C,signal:E,stdout:he,stderr:_e,all:Qe,command:i,escapedCommand:o,parsed:r,timedOut:R,isCanceled:l.isCanceled,killed:s.killed});if(!r.options.reject)return $e;throw $e}return{command:i,escapedCommand:o,exitCode:0,stdout:he,stderr:_e,all:Qe,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return q_(s,r.options.input),s.all=W_(s,r.options),Il(s,m)};Lt.exports=Pr;Lt.exports.sync=(t,e,n)=>{let r=Ml(t,e,n),i=Nl(t,e),o=Rl(t,e);V_(r.options);let s;try{s=vo.spawnSync(r.file,r.args,r.options)}catch(a){throw Nr({error:a,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}let u=dn(r.options,s.stdout,s.error),c=dn(r.options,s.stderr,s.error);if(s.error||s.status!==0||s.signal!==null){let a=Nr({stdout:u,stderr:c,error:s.error,signal:s.signal,exitCode:s.status,command:i,escapedCommand:o,parsed:r,timedOut:s.error&&s.error.code==="ETIMEDOUT",isCanceled:!1,killed:s.signal!==null});if(!r.options.reject)return a;throw a}return{command:i,escapedCommand:o,exitCode:0,stdout:u,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Lt.exports.command=(t,e)=>{let[n,...r]=Pl(t);return Pr(n,r,e)};Lt.exports.commandSync=(t,e)=>{let[n,...r]=Pl(t);return Pr.sync(n,r,e)};Lt.exports.node=(t,e,n={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(n=e,e=[]);let r=Ol.node(n),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:o=process.execPath,nodeOptions:s=i}=n;return Pr(o,[...s,t,...Array.isArray(e)?e:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:r,shell:!1})}});var lx=Q(Fo());var _f={runtime:null,"runtime.sourcecreate":null,"runtime.assertion":null,"runtime.launch":null,"runtime.target":null,"runtime.welcome":null,"runtime.exception":null,"runtime.sourcemap":null,"runtime.breakpoints":null,"sourcemap.parsing":null,"perf.function":null,"cdp.send":null,"cdp.receive":null,"dap.send":null,"dap.receive":null,internal:null,proxyActivity:null},ab=Object.keys(_f),ub=Symbol("ILogger");var ma=Q(_i()),Xn=Q(I("os"));var om={"pwa-extensionHost":null,"node-terminal":null,"pwa-node":null,"pwa-chrome":null,"pwa-msedge":null,"pwa-editor-browser":null},sm={"extension.js-debug.addCustomBreakpoints":null,"extension.js-debug.addXHRBreakpoints":null,"extension.js-debug.editXHRBreakpoints":null,"extension.pwa-node-debug.attachNodeProcess":null,"extension.js-debug.clearAutoAttachVariables":null,"extension.js-debug.setAutoAttachVariables":null,"extension.js-debug.autoAttachToProcess":null,"extension.js-debug.createDebuggerTerminal":null,"extension.js-debug.createDiagnostics":null,"extension.js-debug.getDiagnosticLogs":null,"extension.js-debug.debugLink":null,"extension.js-debug.npmScript":null,"extension.js-debug.pickNodeProcess":null,"extension.js-debug.prettyPrint":null,"extension.js-debug.removeXHRBreakpoint":null,"extension.js-debug.removeAllCustomBreakpoints":null,"extension.js-debug.revealPage":null,"extension.js-debug.startProfile":null,"extension.js-debug.stopProfile":null,"extension.js-debug.toggleSkippingFile":null,"extension.node-debug.startWithStopOnEntry":null,"extension.js-debug.requestCDPProxy":null,"extension.js-debug.openEdgeDevTools":null,"extension.js-debug.callers.add":null,"extension.js-debug.callers.goToCaller":null,"extension.js-debug.callers.gotToTarget":null,"extension.js-debug.callers.remove":null,"extension.js-debug.callers.removeAll":null,"extension.js-debug.enableSourceMapStepping":null,"extension.js-debug.disableSourceMapStepping":null,"extension.js-debug.network.viewRequest":null,"extension.js-debug.network.copyUri":null,"extension.js-debug.network.openBody":null,"extension.js-debug.network.openBodyInHex":null,"extension.js-debug.network.replayXHR":null,"extension.js-debug.network.clear":null,"extension.js-debug.completion.nodeTool":null},cw=new Set(Object.keys(sm)),lw=new Set(Object.keys(om));var da="<node_internals>";var bi=Symbol("unset");function wi(t){let e=bi,n=(...r)=>(e===bi&&(n.value=e=t(...r)),e);return n.forget=()=>{e=bi,n.value=void 0},n.value=void 0,n}function pa(t){let e=new Map,n=r=>{if(e.has(r))return e.get(r);let i=t(r);return e.set(r,i),i};return n.clear=()=>e.clear(),n}var pw=2**31-1;var ww=Symbol("AnyLaunchConfiguration"),Si={type:"",name:"",request:"",trace:!1,outputCapture:"console",timeout:1e4,timeouts:{},showAsyncStacks:!0,skipFiles:[],smartStep:!0,sourceMaps:!0,sourceMapRenames:!0,pauseForSourceMap:!0,resolveSourceMapLocations:null,rootPath:"${workspaceFolder}",outFiles:["${workspaceFolder}/**/*.(m|c|)js","!**/node_modules/**"],sourceMapPathOverrides:Ti("${workspaceFolder}"),enableContentValidation:!0,cascadeTerminateToConfigurations:[],enableDWARF:!0,__workspaceFolder:"",__remoteFilePrefix:void 0,__breakOnConditionalError:!1,customDescriptionGenerator:void 0,customPropertiesGenerator:void 0},$t={...Si,cwd:"${workspaceFolder}",env:{},envFile:null,pauseForSourceMap:!1,sourceMaps:!0,localRoot:null,remoteRoot:null,resolveSourceMapLocations:["**","!**/node_modules/**"],autoAttachChildProcesses:!0,runtimeSourcemapPausePatterns:[],skipFiles:[`${da}/**`]},am={...$t,showAsyncStacks:{onceBreakpointResolved:16},type:"node-terminal",request:"launch",name:"JavaScript Debug Terminal"},Sw={...$t,type:"node-terminal",request:"attach",name:am.name,showAsyncStacks:{onceBreakpointResolved:16},delegateId:-1},Tw={...$t,type:"pwa-extensionHost",name:"Debug Extension",request:"launch",args:["--extensionDevelopmentPath=${workspaceFolder}"],outFiles:["${workspaceFolder}/out/**/*.js"],resolveSourceMapLocations:["${workspaceFolder}/**","!**/node_modules/**"],rendererDebugOptions:{},runtimeExecutable:"${execPath}",autoAttachChildProcesses:!1,debugWebviews:!1,debugWebWorkerHost:!1,__sessionId:""},Ew={...$t,type:"pwa-node",request:"launch",program:"",cwd:"${workspaceFolder}",stopOnEntry:!1,console:"internalConsole",restart:!1,args:[],runtimeExecutable:"node",runtimeVersion:"default",runtimeArgs:[],profileStartup:!1,attachSimplePort:null,experimentalNetworking:"auto",killBehavior:"forceful"},ha={...Si,type:"pwa-chrome",request:"attach",address:"localhost",port:0,disableNetworkCache:!0,pathMapping:{},url:null,restart:!1,urlFilter:"",sourceMapPathOverrides:Ti("${webRoot}"),webRoot:"${workspaceFolder}",server:null,browserAttachLocation:"workspace",targetSelection:"automatic",vueComponentPaths:["${workspaceFolder}/**/*.vue","!**/node_modules/**"],perScriptSourcemaps:"auto"},xw={...ha,type:"pwa-msedge",useWebView:!1},um={...ha,type:"pwa-chrome",request:"launch",cwd:null,file:null,env:{},urlFilter:"*",includeDefaultArgs:!0,includeLaunchArgs:!0,runtimeArgs:null,runtimeExecutable:"*",userDataDir:!0,browserLaunchLocation:"workspace",profileStartup:!1,cleanUp:"wholeBrowser",killBehavior:"forceful"},Cw={...um,type:"pwa-msedge",useWebView:!1},ga={...Si,disableNetworkCache:!0,pathMapping:{},url:null,urlFilter:"",sourceMapPathOverrides:Ti("${webRoot}"),webRoot:"${workspaceFolder}",server:null,vueComponentPaths:["${workspaceFolder}/**/*.vue","!**/node_modules/**"],perScriptSourcemaps:"auto"},Aw={...ga,type:"pwa-editor-browser",request:"attach"},Iw={...ga,type:"pwa-editor-browser",request:"launch",url:"http://localhost:8080"},Ow={...$t,type:"pwa-node",attachExistingChildren:!0,address:"localhost",port:9229,restart:!1,request:"attach",continueOnAttach:!1};function Ti(t){return{"webpack:///./~/*":`${t}/node_modules/*`,"webpack:////*":"/*","webpack://@?:*/?:*/*":`${t}/*`,"webpack://?:*/*":`${t}/*`,"webpack:///([a-z]):/(.+)":"$1:/$2","meteor://\u{1F4BB}app/*":`${t}/*`,"turbopack://[project]/*":"${workspaceFolder}/*","turbopack:///[project]/*":"${workspaceFolder}/*"}}var zn="js-debug",Ei="1.117.0",cm="ms-vscode",Nw=zn.includes("nightly"),Pw=`${cm}.${zn}`;var Jn=class{async setup(){}dispose(){}write(e){if(e.level>2)throw new Error(e.message);console.log(JSON.stringify(e))}};var xi=class{constructor(e=512){this.size=e;this.items=[];this.i=0}write(e){this.items[this.i]=e,this.i=(this.i+1)%this.size}read(){return this.items.slice(this.i).concat(this.items.slice(0,this.i))}},de=class{constructor(){this.logTarget={queue:[]};this.logBuffer=new xi(1)}static async test(){let e=new de;return e.setup({sinks:[new Jn],showWelcome:!1}),e}info(e,n,r){this.log({tag:e,timestamp:Date.now(),message:n,metadata:r,level:1})}verbose(e,n,r){this.log({tag:e,timestamp:Date.now(),message:n,metadata:r,level:0})}warn(e,n,r){this.log({tag:e,timestamp:Date.now(),message:n,metadata:r,level:2})}error(e,n,r){this.log({tag:e,timestamp:Date.now(),message:n,metadata:r,level:3})}fatal(e,n,r){this.log({tag:e,timestamp:Date.now(),message:n,metadata:r,level:4})}assert(e,n){if(e===!1||e===void 0||e===null){if(this.error("runtime.assertion",n,{error:new Error("Assertion failed")}),process.env.JS_DEBUG_THROW_ASSERTIONS)throw new Error(n);debugger;return!1}return!0}log(e){if(this.logBuffer.write(e),"queue"in this.logTarget){this.logTarget.queue.push(e);return}for(let n of this.logTarget.sinks)n.write(e)}getRecentLogs(){return this.logBuffer.read()}dispose(){if("sinks"in this.logTarget){for(let e of this.logTarget.sinks)e.dispose();this.logTarget={queue:[]}}}forTarget(){return this}async setup(e){if(await Promise.all(e.sinks.map(r=>r.setup())),e.showWelcome!==!1){let r=fm();for(let i of e.sinks)i.write(r)}let n=this.logTarget;this.logTarget={sinks:e.sinks.slice()},"sinks"in n?n.sinks.forEach(r=>r.dispose()):n.queue.forEach(r=>this.log(r))}};de.null=(()=>{let e=new de;return e.setup({sinks:[]}),e})(),de=mn([(0,ma.injectable)()],de);var fm=()=>({timestamp:Date.now(),tag:"runtime.welcome",level:1,message:`${zn} v${Ei} started`,metadata:{os:`${Xn.platform()} ${Xn.arch()}`,nodeVersion:process.version,adapterVersion:Ei}});var ya=Q(_i());var te=class{constructor(){this._listeners=new Set;this.event=(e,n,r)=>{let i={listener:e,thisArg:n};this._listeners.add(i);let o={dispose:()=>{o.dispose=()=>{},this._listeners.delete(i)}};return r&&r.push(o),o}}get size(){return this._listeners.size}fire(e){let n=!this._deliveryQueue;this._deliveryQueue||(this._deliveryQueue=[]);for(let r of this._listeners)this._deliveryQueue.push({data:r,event:e});if(n){for(let r=0;r<this._deliveryQueue.length;r++){let{data:i,event:o}=this._deliveryQueue[r];i.listener.call(i.thisArg,o)}this._deliveryQueue=void 0}}dispose(){this._listeners.clear(),this._deliveryQueue&&(this._deliveryQueue=[])}};var wt=class{constructor(){this.flushEmitter=new te;this.onFlush=this.flushEmitter.event}report(){}reportOperation(){}attachDap(){}flush(){this.flushEmitter.fire()}dispose(){}};wt=mn([(0,ya.injectable)()],wt);var Qn=Q(I("path"));function _a(t,e,n){let r=va(t,e,"uncaughtException",n),i=va(t,e,"unhandledRejection",n);return process.addListener("uncaughtException",r),process.addListener("unhandledRejection",i),{dispose:()=>{process.removeListener("uncaughtException",r),process.removeListener("unhandledRejection",i)}}}var va=(t,e,n,r=!0)=>i=>{hm(i)&&(e.report("error",{"!error":i,error:r?void 0:i,exceptionType:n}),t.error("runtime.exception","Unhandled error in debug adapter",i))},dm=t=>typeof t=="object"&&!!t&&"stack"in t,pm=Qn.dirname(Qn.dirname(Qn.dirname(__dirname)));function hm(t){var e;return!gm||dm(t)&&!!((e=t.stack)!=null&&e.includes(pm))}var gm=!1;var zl=Q(I("net"));var St=class t{constructor(e=process.hrtime()){this.value=e}get ms(){return this.s*1e3}get s(){return this.value[0]+this.value[1]/1e9}elapsed(){return new t().subtract(this)}subtract(e){let n=this.value[1]-e.value[1],r=this.value[0]-e.value[0];return n<0&&(n+=1e9,r--),new t([r,n])}};var ba=I("stream"),Zn=class extends ba.Transform{constructor(n){super();this.prefix=[];this.splitSuffix=Buffer.alloc(0);if(typeof n=="string"&&n.length===1)this.splitter=n.charCodeAt(0);else if(typeof n=="number")this.splitter=n;else throw new Error("not implemented here")}_transform(n,r,i){let o=0;for(;o<n.length;){let s=n.indexOf(this.splitter,o);if(s===-1)break;let u=n.subarray(o,s),c=this.prefix.length||this.splitSuffix.length?Buffer.concat([...this.prefix,u,this.splitSuffix]):u;this.push(c),this.prefix.length=0,o=s+1}o<n.length&&this.prefix.push(n.subarray(o)),i()}_flush(n){this.prefix.length&&this.push(Buffer.concat([...this.prefix,this.splitSuffix])),n()}};var er=class{constructor(e,n,r){this.logger=e;this.pipeWrite=n;this.pipeRead=r;this.messageEmitter=new te;this.endEmitter=new te;this.onMessage=this.messageEmitter.event;this.onEnd=this.endEmitter.event;this.onceEnded=wi(()=>{var e;this.streams&&(this.beforeClose(),this.streams.read.removeAllListeners(),(e=this.pipeRead)==null||e.destroy(),this.streams.write.removeListener("end",this.onceEnded),this.streams.write.removeListener("error",this.onWriteError),this.streams.write.on("error",()=>{}),this.streams.write.end(),this.streams=void 0,this.endEmitter.fire())});this.onWriteError=e=>{this.logger.error("internal","pipeWrite error",{error:e})};let i=r||n;this.streams={read:i.on("error",o=>this.logger.error("internal","pipeRead error",{error:o})).pipe(new Zn(0)).on("data",o=>this.messageEmitter.fire([o.toString(),new St])).on("end",this.onceEnded),write:n.on("end",this.onceEnded).on("error",this.onWriteError)}}send(e){var n;(n=this.streams)==null||n.write.write(e+"\0")}dispose(){this.onceEnded()}beforeClose(){}};var xy=Q(Ea(),1),Cy=Q(Li(),1),Ay=Q(Fi(),1),Su=Q(Hi(),1),Iy=Q(wu(),1);var Tu=Su.default;var nn=class extends Error{get cause(){return this._cause}constructor(e){super("__errorMarker"in e?e.error.format:e.format),this._cause="__errorMarker"in e?e.error:e}};var Eu=t=>isFinite(t)?new Promise(e=>setTimeout(e,t)):new Promise(()=>{});function xu(){let t=null,e=null,n=!1,r,i=new Promise((o,s)=>{t=u=>{n=!0,r=u,o(u)},e=u=>{n=!0,s(u)}});return{resolve:t,reject:e,promise:i,get settledValue(){return r},hasSettled:()=>n}}var hr=class extends nn{constructor(e){super({id:9243,format:e,showUser:!0}),this._cause={id:9243,format:e,showUser:!0}}};function Cu(t,e,n){if(e.isCancellationRequested)return Promise.reject(new hr(n||"Task cancelled"));let r=xu(),i=e.onCancellationRequested(r.resolve);return Promise.race([r.promise.then(()=>{throw new hr(n||"Task cancelled")}),t.then(o=>(i.dispose(),o)).catch(o=>{throw i.dispose(),o})])}var Au=Object.freeze(function(t,e){let n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}}),Oy=Object.freeze({isCancellationRequested:!1,onCancellationRequested:()=>({dispose:()=>{}})}),Ny=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Au}),It=class t{constructor(e){this._token=void 0;this._parentListener=void 0;this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}static withTimeout(e,n){let r=new t(n),i=r._token=new At,o=setTimeout(()=>i.cancel(),e);return i.onCancellationRequested(()=>clearTimeout(o)),r}get token(){return this._token||(this._token=new At),this._token}cancel(){this._token?this._token instanceof At&&this._token.cancel():this._token=Ny}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof At&&this._token.dispose():this._token=Oy}},At=class{constructor(){this._isCancelled=!1;this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Au:(this._emitter||(this._emitter=new te),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}};var Vl=I("dns"),ft=Q(I("path")),hn=I("url");var Ve=class{constructor(e,n){this.lineNumber=e;this.columnNumber=n}get base0(){return this}get base1(){return new gr(this.lineNumber+1,this.columnNumber+1)}get base01(){return new mr(this.lineNumber,this.columnNumber+1)}compare(e){let n=e.base0;return this.lineNumber-n.lineNumber||this.columnNumber-n.columnNumber}},gr=class{constructor(e,n){this.lineNumber=e;this.columnNumber=n}get base0(){return new Ve(this.lineNumber-1,this.columnNumber-1)}get base1(){return this}get base01(){return new mr(this.lineNumber-1,this.columnNumber)}compare(e){let n=e.base1;return this.lineNumber-n.lineNumber||this.columnNumber-n.columnNumber||0}},mr=class{constructor(e,n){this.lineNumber=e;this.columnNumber=n}get base0(){return new Ve(this.lineNumber-1,this.columnNumber)}get base1(){return new gr(this.lineNumber,this.columnNumber+1)}get base01(){return this}compare(e){let n=e.base01;return this.lineNumber-n.lineNumber||this.columnNumber-n.columnNumber}},at=class at{constructor(e,n){this.begin=e;this.end=n}static simplify(e){if(e.length===0)return[];let n=e.slice().sort((o,s)=>o.begin.compare(s.begin)),r=[],i=n[0];for(let o=1;o<n.length;o++){let s=n[o];i.end.compare(s.begin)>=0?i=new at(i.begin,s.end):(r.push(i),i=s)}return r.push(i),r}contains(e){return e.compare(this.begin)>=0&&e.compare(this.end)<=0}containsRange(e){return this.contains(e.begin)&&this.contains(e.end)}toString(){let e=this.begin.base0,n=this.end.base0;return`Range[${e.lineNumber}:${e.columnNumber} -> ${n.lineNumber}:${n.columnNumber}]`}};at.ZERO=new at(new Ve(0,0),new Ve(0,0)),at.INFINITE=new at(new Ve(0,0),new Ve(1/0,1/0));var Yi=at;var Py=44;var Iu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ry=new Uint8Array(64),Nu=new Uint8Array(128);for(let t=0;t<Iu.length;t++){let e=Iu.charCodeAt(t);Ry[t]=e,Nu[e]=t}function rn(t,e){let n=0,r=0,i=0;do{let s=t.next();i=Nu[s],n|=(i&31)<<r,r+=5}while(i&32);let o=n&1;return n>>>=1,o&&(n=-2147483648|-n),e+n}function Ou(t,e){return t.pos>=e?!1:t.peek()!==Py}var FS=1024*16;var My=class{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){let{buffer:e,pos:n}=this,r=e.indexOf(t,n);return r===-1?e.length:r}};function Pu(t){let{length:e}=t,n=new My(t),r=[],i=0,o=0,s=0,u=0,c=0;do{let a=n.indexOf(";"),l=[],p=!0,m=0;for(i=0;n.pos<a;){let w;i=rn(n,i),i<m&&(p=!1),m=i,Ou(n,a)?(o=rn(n,o),s=rn(n,s),u=rn(n,u),Ou(n,a)?(c=rn(n,c),w=[i,o,s,u,c]):w=[i,o,s,u]):w=[i],l.push(w),n.pos++}p||Dy(l),r.push(l),n.pos=a+1}while(n.pos<=e);return r}function Dy(t){t.sort(ky)}function ky(t,e){return t[0]-e[0]}var Ru;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(Ru||(Ru={}));var Xe=0,Mu=1,Du=2,ku=3,Ly=4,Bu=1,Lu=2;function jy(t,e){return t[Xe]-e[Xe]}function Fy(t,e){let n=e.map(()=>[]);for(let r=0;r<t.length;r++){let i=t[r];for(let o=0;o<i.length;o++){let s=i[o];if(s.length===1)continue;let u=s[Mu],c=s[Du],a=s[ku],l=n[u];(l[c]||(l[c]=[])).push([a,r,s[Xe]])}}for(let r=0;r<n.length;r++){let i=n[r];for(let o=0;o<i.length;o++){let s=i[o];s&&s.sort(jy)}}return n}var ut=!1;function Uy(t,e,n,r){for(;n<=r;){let i=n+(r-n>>1),o=t[i][Xe]-e;if(o===0)return ut=!0,i;o<0?n=i+1:r=i-1}return ut=!1,n-1}function ju(t,e,n){for(let r=n+1;r<t.length&&t[r][Xe]===e;n=r++);return n}function Fu(t,e,n){for(let r=n-1;r>=0&&t[r][Xe]===e;n=r--);return n}function qy(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Gy(t,e,n,r){let{lastKey:i,lastNeedle:o,lastIndex:s}=n,u=0,c=t.length-1;if(r===i){if(e===o)return ut=s!==-1&&t[s][Xe]===e,s;e>=o?u=s===-1?0:s:c=s}return n.lastKey=r,n.lastNeedle=e,n.lastIndex=Uy(t,e,u,c)}var Uu="`line` must be greater than 0 (lines start at line 1)",qu="`column` must be greater than or equal to 0 (columns start at column 0)",vr=-1,Ot=1;function Nt(t){var e;return(e=t)._decoded||(e._decoded=Pu(t._encoded))}function Gu(t,e){let{line:n,column:r,bias:i}=e;if(n--,n<0)throw new Error(Uu);if(r<0)throw new Error(qu);let o=Nt(t);if(n>=o.length)return yr(null,null,null,null);let s=o[n],u=zi(s,t._decodedMemo,n,r,i||Ot);if(u===-1)return yr(null,null,null,null);let c=s[u];if(c.length===1)return yr(null,null,null,null);let{names:a,resolvedSources:l}=t;return yr(l[c[Mu]],c[Du]+1,c[ku],c.length===5?a[c[Ly]]:null)}function Wu(t,e){let{source:n,line:r,column:i,bias:o}=e;return Hu(t,n,r,i,o||Ot,!1)}function Vu(t,e){let{source:n,line:r,column:i,bias:o}=e;return Hu(t,n,r,i,o||vr,!0)}function $u(t,e){let n=Nt(t),{names:r,resolvedSources:i}=t;for(let o=0;o<n.length;o++){let s=n[o];for(let u=0;u<s.length;u++){let c=s[u],a=o+1,l=c[0],p=null,m=null,w=null,C=null;c.length!==1&&(p=i[c[1]],m=c[2]+1,w=c[3]),c.length===5&&(C=r[c[4]]),e({generatedLine:a,generatedColumn:l,source:p,originalLine:m,originalColumn:w,name:C})}}}function yr(t,e,n,r){return{source:t,line:e,column:n,name:r}}function on(t,e){return{line:t,column:e}}function zi(t,e,n,r,i){let o=Gy(t,r,e,n);return ut?o=(i===vr?ju:Fu)(t,r,o):i===vr&&o++,o===-1||o===t.length?-1:o}function Wy(t,e,n,r,i){let o=zi(t,e,n,r,Ot);if(!ut&&i===vr&&o++,o===-1||o===t.length)return[];let s=ut?r:t[o][Xe];ut||(o=Fu(t,s,o));let u=ju(t,s,o),c=[];for(;o<=u;o++){let a=t[o];c.push(on(a[Bu]+1,a[Lu]))}return c}function Hu(t,e,n,r,i,o){var s,u;if(n--,n<0)throw new Error(Uu);if(r<0)throw new Error(qu);let{sources:c,resolvedSources:a}=t,l=c.indexOf(e);if(l===-1&&(l=a.indexOf(e)),l===-1)return o?[]:on(null,null);let p=(s=t)._bySourceMemos||(s._bySourceMemos=c.map(qy)),w=((u=t)._bySources||(u._bySources=Fy(Nt(t),p)))[l][n];if(w==null)return o?[]:on(null,null);let C=p[l];if(o)return Wy(w,C,n,r,i);let E=zi(w,C,n,r,i);if(E===-1)return on(null,null);let R=w[E];return on(R[Bu]+1,R[Lu])}var{stringify:$y}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var _r={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},ct=17;function Pt(t,e){let{generator:n}=t;if(t.write("("),e!=null&&e.length>0){n[e[0].type](e[0],t);let{length:r}=e;for(let i=1;i<r;i++){let o=e[i];t.write(", "),n[o.type](o,t)}}t.write(")")}function Zu(t,e,n,r){let i=t.expressionsPrecedence[e.type];if(i===ct)return!0;let o=t.expressionsPrecedence[n.type];return i!==o?!r&&i===15&&o===14&&n.operator==="**"||i<o:i!==13&&i!==14?!1:e.operator==="**"&&n.operator==="**"?!r:i===13&&o===13&&(e.operator==="??"||n.operator==="??")?!0:r?_r[e.operator]<=_r[n.operator]:_r[e.operator]<_r[n.operator]}function br(t,e,n,r){let{generator:i}=t;Zu(t,e,n,r)?(t.write("("),i[e.type](e,t),t.write(")")):i[e.type](e,t)}function Hy(t,e,n,r){let i=e.split(`
`),o=i.length-1;if(t.write(i[0].trim()),o>0){t.write(r);for(let s=1;s<o;s++)t.write(n+i[s].trim()+r);t.write(n+i[o].trim())}}function ne(t,e,n,r){let{length:i}=e;for(let o=0;o<i;o++){let s=e[o];t.write(n),s.type[0]==="L"?t.write("// "+s.value.trim()+`
`,s):(t.write("/*"),Hy(t,s.value,n,r),t.write("*/"+r))}}function Ky(t){let e=t;for(;e!=null;){let{type:n}=e;if(n[0]==="C"&&n[1]==="a")return!0;if(n[0]==="M"&&n[1]==="e"&&n[2]==="m")e=e.object;else return!1}}function Ji(t,e){let{generator:n}=t,{declarations:r}=e;t.write(e.kind+" ");let{length:i}=r;if(i>0){n.VariableDeclarator(r[0],t);for(let o=1;o<i;o++)t.write(", "),n.VariableDeclarator(r[o],t)}}var Ku,Yu,zu,Ju,Xu,Qu,JS={Program(t,e){let n=e.indent.repeat(e.indentLevel),{lineEnd:r,writeComments:i}=e;i&&t.comments!=null&&ne(e,t.comments,n,r);let o=t.body,{length:s}=o;for(let u=0;u<s;u++){let c=o[u];i&&c.comments!=null&&ne(e,c.comments,n,r),e.write(n),this[c.type](c,e),e.write(r)}i&&t.trailingComments!=null&&ne(e,t.trailingComments,n,r)},BlockStatement:Qu=function(t,e){let n=e.indent.repeat(e.indentLevel++),{lineEnd:r,writeComments:i}=e,o=n+e.indent;e.write("{");let s=t.body;if(s!=null&&s.length>0){e.write(r),i&&t.comments!=null&&ne(e,t.comments,o,r);let{length:u}=s;for(let c=0;c<u;c++){let a=s[c];i&&a.comments!=null&&ne(e,a.comments,o,r),e.write(o),this[a.type](a,e),e.write(r)}e.write(n)}else i&&t.comments!=null&&(e.write(r),ne(e,t.comments,o,r),e.write(n));i&&t.trailingComments!=null&&ne(e,t.trailingComments,o,r),e.write("}"),e.indentLevel--},ClassBody:Qu,StaticBlock(t,e){e.write("static "),this.BlockStatement(t,e)},EmptyStatement(t,e){e.write(";")},ExpressionStatement(t,e){let n=e.expressionsPrecedence[t.expression.type];n===ct||n===3&&t.expression.left.type[0]==="O"?(e.write("("),this[t.expression.type](t.expression,e),e.write(")")):this[t.expression.type](t.expression,e),e.write(";")},IfStatement(t,e){e.write("if ("),this[t.test.type](t.test,e),e.write(") "),this[t.consequent.type](t.consequent,e),t.alternate!=null&&(e.write(" else "),this[t.alternate.type](t.alternate,e))},LabeledStatement(t,e){this[t.label.type](t.label,e),e.write(": "),this[t.body.type](t.body,e)},BreakStatement(t,e){e.write("break"),t.label!=null&&(e.write(" "),this[t.label.type](t.label,e)),e.write(";")},ContinueStatement(t,e){e.write("continue"),t.label!=null&&(e.write(" "),this[t.label.type](t.label,e)),e.write(";")},WithStatement(t,e){e.write("with ("),this[t.object.type](t.object,e),e.write(") "),this[t.body.type](t.body,e)},SwitchStatement(t,e){let n=e.indent.repeat(e.indentLevel++),{lineEnd:r,writeComments:i}=e;e.indentLevel++;let o=n+e.indent,s=o+e.indent;e.write("switch ("),this[t.discriminant.type](t.discriminant,e),e.write(") {"+r);let{cases:u}=t,{length:c}=u;for(let a=0;a<c;a++){let l=u[a];i&&l.comments!=null&&ne(e,l.comments,o,r),l.test?(e.write(o+"case "),this[l.test.type](l.test,e),e.write(":"+r)):e.write(o+"default:"+r);let{consequent:p}=l,{length:m}=p;for(let w=0;w<m;w++){let C=p[w];i&&C.comments!=null&&ne(e,C.comments,s,r),e.write(s),this[C.type](C,e),e.write(r)}}e.indentLevel-=2,e.write(n+"}")},ReturnStatement(t,e){e.write("return"),t.argument&&(e.write(" "),this[t.argument.type](t.argument,e)),e.write(";")},ThrowStatement(t,e){e.write("throw "),this[t.argument.type](t.argument,e),e.write(";")},TryStatement(t,e){if(e.write("try "),this[t.block.type](t.block,e),t.handler){let{handler:n}=t;n.param==null?e.write(" catch "):(e.write(" catch ("),this[n.param.type](n.param,e),e.write(") ")),this[n.body.type](n.body,e)}t.finalizer&&(e.write(" finally "),this[t.finalizer.type](t.finalizer,e))},WhileStatement(t,e){e.write("while ("),this[t.test.type](t.test,e),e.write(") "),this[t.body.type](t.body,e)},DoWhileStatement(t,e){e.write("do "),this[t.body.type](t.body,e),e.write(" while ("),this[t.test.type](t.test,e),e.write(");")},ForStatement(t,e){if(e.write("for ("),t.init!=null){let{init:n}=t;n.type[0]==="V"?Ji(e,n):this[n.type](n,e)}e.write("; "),t.test&&this[t.test.type](t.test,e),e.write("; "),t.update&&this[t.update.type](t.update,e),e.write(") "),this[t.body.type](t.body,e)},ForInStatement:Ku=function(t,e){e.write(`for ${t.await?"await ":""}(`);let{left:n}=t;n.type[0]==="V"?Ji(e,n):this[n.type](n,e),e.write(t.type[3]==="I"?" in ":" of "),this[t.right.type](t.right,e),e.write(") "),this[t.body.type](t.body,e)},ForOfStatement:Ku,DebuggerStatement(t,e){e.write("debugger;",t)},FunctionDeclaration:Yu=function(t,e){e.write((t.async?"async ":"")+(t.generator?"function* ":"function ")+(t.id?t.id.name:""),t),Pt(e,t.params),e.write(" "),this[t.body.type](t.body,e)},FunctionExpression:Yu,VariableDeclaration(t,e){Ji(e,t),e.write(";")},VariableDeclarator(t,e){this[t.id.type](t.id,e),t.init!=null&&(e.write(" = "),this[t.init.type](t.init,e))},ClassDeclaration(t,e){if(e.write("class "+(t.id?`${t.id.name} `:""),t),t.superClass){e.write("extends ");let{superClass:n}=t,{type:r}=n,i=e.expressionsPrecedence[r];(r[0]!=="C"||r[1]!=="l"||r[5]!=="E")&&(i===ct||i<e.expressionsPrecedence.ClassExpression)?(e.write("("),this[t.superClass.type](n,e),e.write(")")):this[n.type](n,e),e.write(" ")}this.ClassBody(t.body,e)},ImportDeclaration(t,e){e.write("import ");let{specifiers:n}=t,{length:r}=n,i=0;if(r>0){for(;i<r;){i>0&&e.write(", ");let o=n[i],s=o.type[6];if(s==="D")e.write(o.local.name,o),i++;else if(s==="N")e.write("* as "+o.local.name,o),i++;else break}if(i<r){for(e.write("{");;){let o=n[i],{name:s}=o.imported;if(e.write(s,o),s!==o.local.name&&e.write(" as "+o.local.name),++i<r)e.write(", ");else break}e.write("}")}e.write(" from ")}this.Literal(t.source,e),e.write(";")},ImportExpression(t,e){e.write("import("),this[t.source.type](t.source,e),e.write(")")},ExportDefaultDeclaration(t,e){e.write("export default "),this[t.declaration.type](t.declaration,e),e.expressionsPrecedence[t.declaration.type]!=null&&t.declaration.type[0]!=="F"&&e.write(";")},ExportNamedDeclaration(t,e){if(e.write("export "),t.declaration)this[t.declaration.type](t.declaration,e);else{e.write("{");let{specifiers:n}=t,{length:r}=n;if(r>0)for(let i=0;;){let o=n[i],{name:s}=o.local;if(e.write(s,o),s!==o.exported.name&&e.write(" as "+o.exported.name),++i<r)e.write(", ");else break}e.write("}"),t.source&&(e.write(" from "),this.Literal(t.source,e)),e.write(";")}},ExportAllDeclaration(t,e){t.exported!=null?e.write("export * as "+t.exported.name+" from "):e.write("export * from "),this.Literal(t.source,e),e.write(";")},MethodDefinition(t,e){t.static&&e.write("static ");let n=t.kind[0];(n==="g"||n==="s")&&e.write(t.kind+" "),t.value.async&&e.write("async "),t.value.generator&&e.write("*"),t.computed?(e.write("["),this[t.key.type](t.key,e),e.write("]")):this[t.key.type](t.key,e),Pt(e,t.value.params),e.write(" "),this[t.value.body.type](t.value.body,e)},ClassExpression(t,e){this.ClassDeclaration(t,e)},ArrowFunctionExpression(t,e){e.write(t.async?"async ":"",t);let{params:n}=t;n!=null&&(n.length===1&&n[0].type[0]==="I"?e.write(n[0].name,n[0]):Pt(e,t.params)),e.write(" => "),t.body.type[0]==="O"?(e.write("("),this.ObjectExpression(t.body,e),e.write(")")):this[t.body.type](t.body,e)},ThisExpression(t,e){e.write("this",t)},Super(t,e){e.write("super",t)},RestElement:zu=function(t,e){e.write("..."),this[t.argument.type](t.argument,e)},SpreadElement:zu,YieldExpression(t,e){e.write(t.delegate?"yield*":"yield"),t.argument&&(e.write(" "),this[t.argument.type](t.argument,e))},AwaitExpression(t,e){e.write("await ",t),br(e,t.argument,t)},TemplateLiteral(t,e){let{quasis:n,expressions:r}=t;e.write("`");let{length:i}=r;for(let s=0;s<i;s++){let u=r[s],c=n[s];e.write(c.value.raw,c),e.write("${"),this[u.type](u,e),e.write("}")}let o=n[n.length-1];e.write(o.value.raw,o),e.write("`")},TemplateElement(t,e){e.write(t.value.raw,t)},TaggedTemplateExpression(t,e){br(e,t.tag,t),this[t.quasi.type](t.quasi,e)},ArrayExpression:Xu=function(t,e){if(e.write("["),t.elements.length>0){let{elements:n}=t,{length:r}=n;for(let i=0;;){let o=n[i];if(o!=null&&this[o.type](o,e),++i<r)e.write(", ");else{o==null&&e.write(", ");break}}}e.write("]")},ArrayPattern:Xu,ObjectExpression(t,e){let n=e.indent.repeat(e.indentLevel++),{lineEnd:r,writeComments:i}=e,o=n+e.indent;if(e.write("{"),t.properties.length>0){e.write(r),i&&t.comments!=null&&ne(e,t.comments,o,r);let s=","+r,{properties:u}=t,{length:c}=u;for(let a=0;;){let l=u[a];if(i&&l.comments!=null&&ne(e,l.comments,o,r),e.write(o),this[l.type](l,e),++a<c)e.write(s);else break}e.write(r),i&&t.trailingComments!=null&&ne(e,t.trailingComments,o,r),e.write(n+"}")}else i?t.comments!=null?(e.write(r),ne(e,t.comments,o,r),t.trailingComments!=null&&ne(e,t.trailingComments,o,r),e.write(n+"}")):t.trailingComments!=null?(e.write(r),ne(e,t.trailingComments,o,r),e.write(n+"}")):e.write("}"):e.write("}");e.indentLevel--},Property(t,e){t.method||t.kind[0]!=="i"?this.MethodDefinition(t,e):(t.shorthand||(t.computed?(e.write("["),this[t.key.type](t.key,e),e.write("]")):this[t.key.type](t.key,e),e.write(": ")),this[t.value.type](t.value,e))},PropertyDefinition(t,e){if(t.static&&e.write("static "),t.computed&&e.write("["),this[t.key.type](t.key,e),t.computed&&e.write("]"),t.value==null){t.key.type[0]!=="F"&&e.write(";");return}e.write(" = "),this[t.value.type](t.value,e),e.write(";")},ObjectPattern(t,e){if(e.write("{"),t.properties.length>0){let{properties:n}=t,{length:r}=n;for(let i=0;this[n[i].type](n[i],e),++i<r;)e.write(", ")}e.write("}")},SequenceExpression(t,e){Pt(e,t.expressions)},UnaryExpression(t,e){if(t.prefix){let{operator:n,argument:r,argument:{type:i}}=t;e.write(n);let o=Zu(e,r,t);!o&&(n.length>1||i[0]==="U"&&(i[1]==="n"||i[1]==="p")&&r.prefix&&r.operator[0]===n&&(n==="+"||n==="-"))&&e.write(" "),o?(e.write(n.length>1?" (":"("),this[i](r,e),e.write(")")):this[i](r,e)}else this[t.argument.type](t.argument,e),e.write(t.operator)},UpdateExpression(t,e){t.prefix?(e.write(t.operator),this[t.argument.type](t.argument,e)):(this[t.argument.type](t.argument,e),e.write(t.operator))},AssignmentExpression(t,e){this[t.left.type](t.left,e),e.write(" "+t.operator+" "),this[t.right.type](t.right,e)},AssignmentPattern(t,e){this[t.left.type](t.left,e),e.write(" = "),this[t.right.type](t.right,e)},BinaryExpression:Ju=function(t,e){let n=t.operator==="in";n&&e.write("("),br(e,t.left,t,!1),e.write(" "+t.operator+" "),br(e,t.right,t,!0),n&&e.write(")")},LogicalExpression:Ju,ConditionalExpression(t,e){let{test:n}=t,r=e.expressionsPrecedence[n.type];r===ct||r<=e.expressionsPrecedence.ConditionalExpression?(e.write("("),this[n.type](n,e),e.write(")")):this[n.type](n,e),e.write(" ? "),this[t.consequent.type](t.consequent,e),e.write(" : "),this[t.alternate.type](t.alternate,e)},NewExpression(t,e){e.write("new ");let n=e.expressionsPrecedence[t.callee.type];n===ct||n<e.expressionsPrecedence.CallExpression||Ky(t.callee)?(e.write("("),this[t.callee.type](t.callee,e),e.write(")")):this[t.callee.type](t.callee,e),Pt(e,t.arguments)},CallExpression(t,e){let n=e.expressionsPrecedence[t.callee.type];n===ct||n<e.expressionsPrecedence.CallExpression?(e.write("("),this[t.callee.type](t.callee,e),e.write(")")):this[t.callee.type](t.callee,e),t.optional&&e.write("?."),Pt(e,t.arguments)},ChainExpression(t,e){this[t.expression.type](t.expression,e)},MemberExpression(t,e){let n=e.expressionsPrecedence[t.object.type];n===ct||n<e.expressionsPrecedence.MemberExpression?(e.write("("),this[t.object.type](t.object,e),e.write(")")):this[t.object.type](t.object,e),t.computed?(t.optional&&e.write("?."),e.write("["),this[t.property.type](t.property,e),e.write("]")):(t.optional?e.write("?."):e.write("."),this[t.property.type](t.property,e))},MetaProperty(t,e){e.write(t.meta.name+"."+t.property.name,t)},Identifier(t,e){e.write(t.name,t)},PrivateIdentifier(t,e){e.write(`#${t.name}`,t)},Literal(t,e){t.raw!=null?e.write(t.raw,t):t.regex!=null?this.RegExpLiteral(t,e):t.bigint!=null?e.write(t.bigint+"n",t):e.write($y(t.value),t)},RegExpLiteral(t,e){let{regex:n}=t;e.write(`/${n.pattern}/${n.flags}`,t)}};var Xi={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},Yy=Object.keys(Xi);for(let t of Yy)Object.freeze(Xi[t]);Object.freeze(Xi);var Y_=Q(Dl()),Bl=I("os");var lt=Q(I("fs")),kl=Q(I("util"));var BT=kl.promisify(lt.writeFile);var LT=Symbol("FsUtils");var WT=process.platform==="win32"?"\\\\.\\pipe\\":(0,Bl.tmpdir)();var pn="file:///",Ll=t=>t.startsWith(pn)&&t[pn.length+1]===":";function z_(t,e=!1){if(!t)return t;if(Ll(t)){let n=pn.length;t=pn+t[n].toLowerCase()+t.substr(n+1)}else Fl(t)&&(t=(e?t[0].toUpperCase():t[0].toLowerCase())+t.substr(1));return t}function _o(t,e=!1){if(!t)return t;if(t=z_(t,e),Ll(t)){let n=pn.length;t=t.substr(0,n+1)+t.substr(n+1).replace(/\//g,"\\")}else Fl(t)&&(t=t.replace(/\//g,"\\"));return t}var jl=t=>t.startsWith("\\\\"),Fl=t=>/^[A-Za-z]:/.test(t)||jl(t);var Rr=class Rr{constructor(e,n,r,i,o){this.original=e;this.metadata=n;this.actualRoot=r;this.actualSources=i;this.hasNames=o;this.sourceActualToOriginal=new Map;this.sourceOriginalToActual=new Map;this.id=Rr.idCounter++;if(i.length!==e.sources.length)throw new Error("Expected actualSources.length === original.source.length");for(let s=0;s<i.length;s++){let u=i[s],c=e.sources[s];u!==null&&c!==null&&(this.sourceActualToOriginal.set(u,c),this.sourceOriginalToActual.set(c,u))}}get sources(){return this.actualSources.slice()}get sourceRoot(){return this.actualRoot}computedSourceUrl(e){return _o(Ul(ql(this.metadata.sourceMapUrl)?this.metadata.compiledPath:this.metadata.sourceMapUrl,this.sourceRoot+e))}originalPositionFor(e){var r;let n=Gu(this.original,e);return n.source&&(n.source=(r=this.sourceOriginalToActual.get(n.source))!=null?r:n.source),n}generatedPositionFor(e){var r;let n=(r=this.sourceActualToOriginal.get(e.source))!=null?r:e.source;if(!isFinite(e.line)){let i=e.bias||Ot;return this.getBestGeneratedForOriginal(n,(o,s)=>J_(o,s)*i)}return Wu(this.original,{...e,source:n})}allGeneratedPositionsFor(e){var n;return Vu(this.original,{...e,source:(n=this.sourceActualToOriginal.get(e.source))!=null?n:e.source})}sourceContentFor(e){var r,i,o;e=(r=this.sourceActualToOriginal.get(e))!=null?r:e;let n=this.original.sources.indexOf(e);return n===-1?null:(o=(i=this.original.sourcesContent)==null?void 0:i[n])!=null?o:null}eachMapping(e){$u(this.original,e)}decodedMappings(){return Nt(this.original)}names(){return this.original.names}getBestGeneratedForOriginal(e,n){let r;return this.eachMapping(i=>{i.source===e&&(!r||n(i,r)>0)&&(r=i)}),r?{column:r.generatedColumn,line:r.generatedLine}:{column:null,line:null}}};Rr.idCounter=0;var bo=Rr,J_=({originalLine:t,originalColumn:e},{originalLine:n,originalColumn:r})=>(t||0)-(n||0)||(e||0)-(r||0);var HE=process.platform!=="win32";var Wl,KE=process.platform==="win32"?(Wl=process.env.PATHEXT)==null?void 0:Wl.toLowerCase().split(";"):void 0;var Q_=new Set(["localhost","127.0.0.1","::1"]);var Gl=t=>Q_.has(t.toLowerCase()),Z_=t=>{try{return new hn.URL(t).hostname.replace(/^\[|\]$/g,"")}catch{return t}};var $l=pa(async t=>{let e=Z_(t);if(Gl(e))return!0;try{let n=await Vl.promises.lookup(e);return Gl(n.address)}catch{return!1}});function Ul(t,e){try{return new hn.URL(e),e}catch{}let n;try{n=new hn.URL(t||"")}catch{return e}let r=n.protocol+"//";return n.username&&(r+=n.username+":"+n.password+"@"),r+=n.host,r+=ft.dirname(n.pathname),r[r.length-1]!=="/"&&(r+="/"),r+=e,r}function ql(t){return!!t&&t.startsWith("data:")}var YE=process.platform;var eb=50,Mr=class t{constructor(e){this.messageEmitter=new te;this.endEmitter=new te;this.onMessage=this.messageEmitter.event;this.onEnd=this.endEmitter.event;this._ws=e,this._ws.addEventListener("message",n=>{this.messageEmitter.fire([n.data.toString("utf-8"),new St])}),this._ws.addEventListener("close",()=>{this.endEmitter.fire(),this._ws=void 0}),this._ws.addEventListener("error",()=>{})}static async create(e,n,r){let i=!e.startsWith("ws://"),o=await $l(e);for(;;){let s=Date.now()+eb;try{let u={headers:{host:r!=null?r:"localhost"},perMessageDeflate:!1,maxPayload:268435456,rejectUnauthorized:!(i&&o),followRedirects:!0},c=new Tu(e,[],u);return await Cu(new Promise((a,l)=>{c.addEventListener("open",()=>a(new t(c))),c.addEventListener("error",p=>{let m=e===c.url?e:c.url.replace(/^http(s?):/,"ws$1:");if(m===e){l(p.error);return}this.create(m,n,r).then(a,l)})}),It.withTimeout(2e3,n).token,`Could not open ${e}`).catch(a=>{throw c.close(),a})}catch(u){if(n.isCancellationRequested)throw u;let c=s-Date.now();c>0&&await Eu(c)}}}send(e){var n;(n=this._ws)==null||n.send(e)}dispose(){return new Promise(e=>{if(!this._ws)return e();this._ws.addEventListener("close",()=>e()),this._ws.close()})}};var Hl=I("crypto"),Kl=()=>(0,Hl.randomBytes)(12).toString("hex");var Yl,Dr=class t{constructor(e,n){this.info=e;this.server=n;this.onEndEmitter=new te;this.cts=new It;this.gracefulExit=!1;this.targetAlive=!1;this.targetInfo={targetId:(Yl=this.info.ownId)!=null?Yl:Kl(),processId:Number(this.info.pid)||0,type:this.info.waitForDebugger?"waitingForDebugger":"",title:this.info.scriptName,url:"file://"+this.info.scriptName,openerId:this.info.openerId,attached:!0,canAccessOpener:!1,processInspectorPort:Number(new URL(this.info.inspectorURL).port)};this.onEnd=this.onEndEmitter.event;this.listenToServer()}get isTargetAlive(){return this.targetAlive}static async attach(e){let n=await new Promise((i,o)=>{let s=zl.createConnection(e.ipcAddress,()=>i(s));s.on("error",o)}),r=new er(de.null,n);return new t(e,r)}listenToServer(){let{server:e,targetInfo:n}=this;e.send(JSON.stringify({method:"Target.targetCreated",params:{targetInfo:n}})),e.onMessage(async([r])=>{if(this.target&&!r.includes("Target.attachToTarget")&&!r.includes("Target.detachFromTarget")){this.target.send(r);return}let i=await this.execute(r);i&&e.send(JSON.stringify(i))}),e.onEnd(()=>{this.disposeTarget(),this.onEndEmitter.fire({killed:this.gracefulExit,code:this.gracefulExit?0:1})})}dispose(){this.gracefulExit=!0,this.cts.dispose(!0),this.disposeTarget(),this.server.dispose()}async execute(e){var r;let n=JSON.parse(e);switch(n.method){case"Target.attachToTarget":return this.target&&this.disposeTarget(),this.target=await this.createTarget(),{id:n.id,result:{sessionId:this.targetInfo.targetId,__dynamicAttach:this.info.dynamicAttach?!0:void 0}};case"Target.detachFromTarget":return this.gracefulExit=!0,this.disposeTarget(),{id:n.id,result:{}};default:(r=this.target)==null||r.send(n);return}}async createTarget(){this.gracefulExit=!1;let e=await Mr.create(this.info.inspectorURL,this.cts.token,this.info.remoteHostHeader);return e.onMessage(([n])=>this.server.send(n)),e.onEnd(()=>{e&&this.server.send(JSON.stringify({method:"Target.targetDestroyed",params:{targetId:this.targetInfo.targetId,sessionId:this.targetInfo.targetId}})),this.targetAlive=!1,this.server.dispose()}),e}disposeTarget(){this.target&&(this.target.dispose(),this.target=void 0)}};var kr=JSON.parse(process.env.NODE_INSPECTOR_INFO),Br=new de;Br.setup({sinks:[]});_a(Br,new wt);(async()=>{process.on("exit",()=>{Br.info("runtime","Process exiting"),Br.dispose(),kr.pid&&!kr.dynamicAttach&&(!t||t.isTargetAlive)&&process.kill(Number(kr.pid))});let t=await Dr.attach(kr);t.onEnd(()=>process.exit())})();})();
/*! Bundled license information:
reflect-metadata/Reflect.js:
(*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** *)
*/
//# sourceMappingURL=watchdog.js.map