@bool-ts/core 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var J0=Object.create;var{getPrototypeOf:Z0,defineProperty:r_,getOwnPropertyNames:B0}=Object;var V0=Object.prototype.hasOwnProperty;var N_=(_,T,A)=>{A=_!=null?J0(Z0(_)):{};let C=T||!_||!_.__esModule?r_(A,"default",{value:_,enumerable:!0}):A;for(let E of B0(_))if(!V0.call(C,E))r_(C,E,{get:()=>_[E],enumerable:!0});return C};var m=(_,T)=>()=>(T||_((T={exports:{}}).exports,T),T.exports);var D0=(_,T)=>{for(var A in T)r_(_,A,{get:T[A],enumerable:!0,configurable:!0,set:(C)=>T[A]=()=>C})};var G0=import.meta.require;var n_=m(()=>{/*! *****************************************************************************
2
+ var Jf=Object.create;var{getPrototypeOf:Zf,defineProperty:r_,getOwnPropertyNames:Bf}=Object;var Vf=Object.prototype.hasOwnProperty;var N_=(_,T,A)=>{A=_!=null?Jf(Zf(_)):{};let C=T||!_||!_.__esModule?r_(A,"default",{value:_,enumerable:!0}):A;for(let E of Bf(_))if(!Vf.call(C,E))r_(C,E,{get:()=>_[E],enumerable:!0});return C};var m=(_,T)=>()=>(T||_((T={exports:{}}).exports,T),T.exports);var Df=(_,T)=>{for(var A in T)r_(_,A,{get:T[A],enumerable:!0,configurable:!0,set:(C)=>T[A]=()=>C})};var Gf=import.meta.require;var $_=m(()=>{/*! *****************************************************************************
3
3
  Copyright (C) Microsoft. All rights reserved.
4
4
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
5
  this file except in compliance with the License. You may obtain a copy of the
@@ -12,9 +12,9 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
12
12
 
13
13
  See the Apache Version 2.0 License for specific language governing permissions
14
14
  and limitations under the License.
15
- ***************************************************************************** */var bC;(function(_){(function(T){var A=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:w(),C=E(_);if(typeof A.Reflect!=="undefined")C=E(A.Reflect,C);if(T(C,A),typeof A.Reflect==="undefined")A.Reflect=_;function E(L,Y){return function(F,J){if(Object.defineProperty(L,F,{configurable:!0,writable:!0,value:J}),Y)Y(F,J)}}function R(){try{return Function("return this;")()}catch(L){}}function c(){try{return(0,eval)("(function() { return this; })()")}catch(L){}}function w(){return R()||c()}})(function(T,A){var C=Object.prototype.hasOwnProperty,E=typeof Symbol==="function",R=E&&typeof Symbol.toPrimitive!=="undefined"?Symbol.toPrimitive:"@@toPrimitive",c=E&&typeof Symbol.iterator!=="undefined"?Symbol.iterator:"@@iterator",w=typeof Object.create==="function",L={__proto__:[]}instanceof Array,Y=!w&&!L,F={create:w?function(){return p_(Object.create(null))}:L?function(){return p_({__proto__:null})}:function(){return p_({})},has:Y?function(x,H){return C.call(x,H)}:function(x,H){return H in x},get:Y?function(x,H){return C.call(x,H)?x[H]:void 0}:function(x,H){return x[H]}},J=Object.getPrototypeOf(Function),S=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:Y0(),Z=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:Q0(),Q=typeof WeakMap==="function"?WeakMap:f0(),X=E?Symbol.for("@reflect-metadata:registry"):void 0,D=S0(),q=W0(D);function N(x,H,W,B){if(!O(W)){if(!$C(x))throw new TypeError;if(!y(H))throw new TypeError;if(!y(B)&&!O(B)&&!yT(B))throw new TypeError;if(yT(B))B=void 0;return W=FT(W),s(x,H,W,B)}else{if(!$C(x))throw new TypeError;if(!hC(H))throw new TypeError;return o(x,H)}}T("decorate",N);function U(x,H){function W(B,$){if(!y(B))throw new TypeError;if(!O($)&&!w0($))throw new TypeError;z_(x,H,B,$)}return W}T("metadata",U);function V(x,H,W,B){if(!y(W))throw new TypeError;if(!O(B))B=FT(B);return z_(x,H,W,B)}T("defineMetadata",V);function K(x,H,W){if(!y(H))throw new TypeError;if(!O(W))W=FT(W);return e(x,H,W)}T("hasMetadata",K);function a(x,H,W){if(!y(H))throw new TypeError;if(!O(W))W=FT(W);return TT(x,H,W)}T("hasOwnMetadata",a);function f(x,H,W){if(!y(H))throw new TypeError;if(!O(W))W=FT(W);return AT(x,H,W)}T("getMetadata",f);function P(x,H,W){if(!y(H))throw new TypeError;if(!O(W))W=FT(W);return IT(x,H,W)}T("getOwnMetadata",P);function h(x,H){if(!y(x))throw new TypeError;if(!O(H))H=FT(H);return A_(x,H)}T("getMetadataKeys",h);function M(x,H){if(!y(x))throw new TypeError;if(!O(H))H=FT(H);return lT(x,H)}T("getOwnMetadataKeys",M);function i(x,H,W){if(!y(H))throw new TypeError;if(!O(W))W=FT(W);if(!y(H))throw new TypeError;if(!O(W))W=FT(W);var B=E_(H,W,!1);if(O(B))return!1;return B.OrdinaryDeleteMetadata(x,H,W)}T("deleteMetadata",i);function o(x,H){for(var W=x.length-1;W>=0;--W){var B=x[W],$=B(H);if(!O($)&&!yT($)){if(!hC($))throw new TypeError;H=$}}return H}function s(x,H,W,B){for(var $=x.length-1;$>=0;--$){var j=x[$],p=j(H,W,B);if(!O(p)&&!yT(p)){if(!y(p))throw new TypeError;B=p}}return B}function e(x,H,W){var B=TT(x,H,W);if(B)return!0;var $=o_(H);if(!yT($))return e(x,$,W);return!1}function TT(x,H,W){var B=E_(H,W,!1);if(O(B))return!1;return IC(B.OrdinaryHasOwnMetadata(x,H,W))}function AT(x,H,W){var B=TT(x,H,W);if(B)return IT(x,H,W);var $=o_(H);if(!yT($))return AT(x,$,W);return}function IT(x,H,W){var B=E_(H,W,!1);if(O(B))return;return B.OrdinaryGetOwnMetadata(x,H,W)}function z_(x,H,W,B){var $=E_(W,B,!0);$.OrdinaryDefineOwnMetadata(x,H,W,B)}function A_(x,H){var W=lT(x,H),B=o_(x);if(B===null)return W;var $=A_(B,H);if($.length<=0)return W;if(W.length<=0)return $;var j=new Z,p=[];for(var u=0,G=W;u<G.length;u++){var z=G[u],n=j.has(z);if(!n)j.add(z),p.push(z)}for(var I=0,b=$;I<b.length;I++){var z=b[I],n=j.has(z);if(!n)j.add(z),p.push(z)}return p}function lT(x,H){var W=E_(x,H,!1);if(!W)return[];return W.OrdinaryOwnMetadataKeys(x,H)}function KC(x){if(x===null)return 1;switch(typeof x){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return x===null?1:6;default:return 6}}function O(x){return x===void 0}function yT(x){return x===null}function c0(x){return typeof x==="symbol"}function y(x){return typeof x==="object"?x!==null:typeof x==="function"}function x0(x,H){switch(KC(x)){case 0:return x;case 1:return x;case 2:return x;case 3:return x;case 4:return x;case 5:return x}var W=H===3?"string":H===5?"number":"default",B=mC(x,R);if(B!==void 0){var $=B.call(x,W);if(y($))throw new TypeError;return $}return L0(x,W==="default"?"number":W)}function L0(x,H){if(H==="string"){var W=x.toString;if(jT(W)){var B=W.call(x);if(!y(B))return B}var $=x.valueOf;if(jT($)){var B=$.call(x);if(!y(B))return B}}else{var $=x.valueOf;if(jT($)){var B=$.call(x);if(!y(B))return B}var j=x.toString;if(jT(j)){var B=j.call(x);if(!y(B))return B}}throw new TypeError}function IC(x){return!!x}function H0(x){return""+x}function FT(x){var H=x0(x,3);if(c0(H))return H;return H0(H)}function $C(x){return Array.isArray?Array.isArray(x):x instanceof Object?x instanceof Array:Object.prototype.toString.call(x)==="[object Array]"}function jT(x){return typeof x==="function"}function hC(x){return typeof x==="function"}function w0(x){switch(KC(x)){case 3:return!0;case 4:return!0;default:return!1}}function i_(x,H){return x===H||x!==x&&H!==H}function mC(x,H){var W=x[H];if(W===void 0||W===null)return;if(!jT(W))throw new TypeError;return W}function OC(x){var H=mC(x,c);if(!jT(H))throw new TypeError;var W=H.call(x);if(!y(W))throw new TypeError;return W}function MC(x){return x.value}function uC(x){var H=x.next();return H.done?!1:H}function gC(x){var H=x.return;if(H)H.call(x)}function o_(x){var H=Object.getPrototypeOf(x);if(typeof x!=="function"||x===J)return H;if(H!==J)return H;var W=x.prototype,B=W&&Object.getPrototypeOf(W);if(B==null||B===Object.prototype)return H;var $=B.constructor;if(typeof $!=="function")return H;if($===x)return H;return $}function F0(){var x;if(!O(X)&&typeof A.Reflect!=="undefined"&&!(X in A.Reflect)&&typeof A.Reflect.defineMetadata==="function")x=q0(A.Reflect);var H,W,B,$=new Q,j={registerProvider:p,getProvider:G,setProvider:n};return j;function p(I){if(!Object.isExtensible(j))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case x===I:break;case O(H):H=I;break;case H===I:break;case O(W):W=I;break;case W===I:break;default:if(B===void 0)B=new Z;B.add(I);break}}function u(I,b){if(!O(H)){if(H.isProviderFor(I,b))return H;if(!O(W)){if(W.isProviderFor(I,b))return H;if(!O(B)){var v=OC(B);while(!0){var d=uC(v);if(!d)return;var wT=MC(d);if(wT.isProviderFor(I,b))return gC(v),wT}}}}if(!O(x)&&x.isProviderFor(I,b))return x;return}function G(I,b){var v=$.get(I),d;if(!O(v))d=v.get(b);if(!O(d))return d;if(d=u(I,b),!O(d)){if(O(v))v=new S,$.set(I,v);v.set(b,d)}return d}function z(I){if(O(I))throw new TypeError;return H===I||W===I||!O(B)&&B.has(I)}function n(I,b,v){if(!z(v))throw new Error("Metadata provider not registered.");var d=G(I,b);if(d!==v){if(!O(d))return!1;var wT=$.get(I);if(O(wT))wT=new S,$.set(I,wT);wT.set(b,v)}return!0}}function S0(){var x;if(!O(X)&&y(A.Reflect)&&Object.isExtensible(A.Reflect))x=A.Reflect[X];if(O(x))x=F0();if(!O(X)&&y(A.Reflect)&&Object.isExtensible(A.Reflect))Object.defineProperty(A.Reflect,X,{enumerable:!1,configurable:!1,writable:!1,value:x});return x}function W0(x){var H=new Q,W={isProviderFor:function(z,n){var I=H.get(z);if(O(I))return!1;return I.has(n)},OrdinaryDefineOwnMetadata:p,OrdinaryHasOwnMetadata:$,OrdinaryGetOwnMetadata:j,OrdinaryOwnMetadataKeys:u,OrdinaryDeleteMetadata:G};return D.registerProvider(W),W;function B(z,n,I){var b=H.get(z),v=!1;if(O(b)){if(!I)return;b=new S,H.set(z,b),v=!0}var d=b.get(n);if(O(d)){if(!I)return;if(d=new S,b.set(n,d),!x.setProvider(z,n,W)){if(b.delete(n),v)H.delete(z);throw new Error("Wrong provider for target.")}}return d}function $(z,n,I){var b=B(n,I,!1);if(O(b))return!1;return IC(b.has(z))}function j(z,n,I){var b=B(n,I,!1);if(O(b))return;return b.get(z)}function p(z,n,I,b){var v=B(I,b,!0);v.set(z,n)}function u(z,n){var I=[],b=B(z,n,!1);if(O(b))return I;var v=b.keys(),d=OC(v),wT=0;while(!0){var PC=uC(d);if(!PC)return I.length=wT,I;var U0=MC(PC);try{I[wT]=U0}catch(X0){try{gC(d)}finally{throw X0}}wT++}}function G(z,n,I){var b=B(n,I,!1);if(O(b))return!1;if(!b.delete(z))return!1;if(b.size===0){var v=H.get(n);if(!O(v)){if(v.delete(I),v.size===0)H.delete(v)}}return!0}}function q0(x){var{defineMetadata:H,hasOwnMetadata:W,getOwnMetadata:B,getOwnMetadataKeys:$,deleteMetadata:j}=x,p=new Q,u={isProviderFor:function(G,z){var n=p.get(G);if(!O(n)&&n.has(z))return!0;if($(G,z).length){if(O(n))n=new Z,p.set(G,n);return n.add(z),!0}return!1},OrdinaryDefineOwnMetadata:H,OrdinaryHasOwnMetadata:W,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:$,OrdinaryDeleteMetadata:j};return u}function E_(x,H,W){var B=D.getProvider(x,H);if(!O(B))return B;if(W){if(D.setProvider(x,H,q))return q;throw new Error("Illegal state.")}return}function Y0(){var x={},H=[],W=function(){function u(G,z,n){this._index=0,this._keys=G,this._values=z,this._selector=n}return u.prototype["@@iterator"]=function(){return this},u.prototype[c]=function(){return this},u.prototype.next=function(){var G=this._index;if(G>=0&&G<this._keys.length){var z=this._selector(this._keys[G],this._values[G]);if(G+1>=this._keys.length)this._index=-1,this._keys=H,this._values=H;else this._index++;return{value:z,done:!1}}return{value:void 0,done:!0}},u.prototype.throw=function(G){if(this._index>=0)this._index=-1,this._keys=H,this._values=H;throw G},u.prototype.return=function(G){if(this._index>=0)this._index=-1,this._keys=H,this._values=H;return{value:G,done:!0}},u}(),B=function(){function u(){this._keys=[],this._values=[],this._cacheKey=x,this._cacheIndex=-2}return Object.defineProperty(u.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),u.prototype.has=function(G){return this._find(G,!1)>=0},u.prototype.get=function(G){var z=this._find(G,!1);return z>=0?this._values[z]:void 0},u.prototype.set=function(G,z){var n=this._find(G,!0);return this._values[n]=z,this},u.prototype.delete=function(G){var z=this._find(G,!1);if(z>=0){var n=this._keys.length;for(var I=z+1;I<n;I++)this._keys[I-1]=this._keys[I],this._values[I-1]=this._values[I];if(this._keys.length--,this._values.length--,i_(G,this._cacheKey))this._cacheKey=x,this._cacheIndex=-2;return!0}return!1},u.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=x,this._cacheIndex=-2},u.prototype.keys=function(){return new W(this._keys,this._values,$)},u.prototype.values=function(){return new W(this._keys,this._values,j)},u.prototype.entries=function(){return new W(this._keys,this._values,p)},u.prototype["@@iterator"]=function(){return this.entries()},u.prototype[c]=function(){return this.entries()},u.prototype._find=function(G,z){if(!i_(this._cacheKey,G)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(i_(this._keys[n],G)){this._cacheIndex=n;break}}if(this._cacheIndex<0&&z)this._cacheIndex=this._keys.length,this._keys.push(G),this._values.push(void 0);return this._cacheIndex},u}();return B;function $(u,G){return u}function j(u,G){return G}function p(u,G){return[u,G]}}function Q0(){var x=function(){function H(){this._map=new S}return Object.defineProperty(H.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),H.prototype.has=function(W){return this._map.has(W)},H.prototype.add=function(W){return this._map.set(W,W),this},H.prototype.delete=function(W){return this._map.delete(W)},H.prototype.clear=function(){this._map.clear()},H.prototype.keys=function(){return this._map.keys()},H.prototype.values=function(){return this._map.keys()},H.prototype.entries=function(){return this._map.entries()},H.prototype["@@iterator"]=function(){return this.keys()},H.prototype[c]=function(){return this.keys()},H}();return x}function f0(){var x=16,H=F.create(),W=B();return function(){function G(){this._key=B()}return G.prototype.has=function(z){var n=$(z,!1);return n!==void 0?F.has(n,this._key):!1},G.prototype.get=function(z){var n=$(z,!1);return n!==void 0?F.get(n,this._key):void 0},G.prototype.set=function(z,n){var I=$(z,!0);return I[this._key]=n,this},G.prototype.delete=function(z){var n=$(z,!1);return n!==void 0?delete n[this._key]:!1},G.prototype.clear=function(){this._key=B()},G}();function B(){var G;do G="@@WeakMap@@"+u();while(F.has(H,G));return H[G]=!0,G}function $(G,z){if(!C.call(G,W)){if(!z)return;Object.defineProperty(G,W,{value:F.create()})}return G[W]}function j(G,z){for(var n=0;n<z;++n)G[n]=Math.random()*255|0;return G}function p(G){if(typeof Uint8Array==="function"){var z=new Uint8Array(G);if(typeof crypto!=="undefined")crypto.getRandomValues(z);else if(typeof msCrypto!=="undefined")msCrypto.getRandomValues(z);else j(z,G);return z}return j(new Array(G),G)}function u(){var G=p(x);G[6]=G[6]&79|64,G[8]=G[8]&191|128;var z="";for(var n=0;n<x;++n){var I=G[n];if(n===4||n===6||n===8)z+="-";if(I<16)z+="0";z+=I.toString(16).toLowerCase()}return z}}function p_(x){return x.__=void 0,delete x.__,x}})})(bC||(bC={}))});var gT=m(($4,yC)=>{yC.exports=TypeError});var dC=m((h4,jC)=>{jC.exports=G0("util").inspect});var Y_=m((m4,FA)=>{var xC=typeof Map==="function"&&Map.prototype,e_=Object.getOwnPropertyDescriptor&&xC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,h_=xC&&e_&&typeof e_.get==="function"?e_.get:null,sC=xC&&Map.prototype.forEach,LC=typeof Set==="function"&&Set.prototype,a_=Object.getOwnPropertyDescriptor&&LC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,m_=LC&&a_&&typeof a_.get==="function"?a_.get:null,iC=LC&&Set.prototype.forEach,LR=typeof WeakMap==="function"&&WeakMap.prototype,S_=LR?WeakMap.prototype.has:null,HR=typeof WeakSet==="function"&&WeakSet.prototype,W_=HR?WeakSet.prototype.has:null,wR=typeof WeakRef==="function"&&WeakRef.prototype,oC=wR?WeakRef.prototype.deref:null,FR=Boolean.prototype.valueOf,SR=Object.prototype.toString,WR=Function.prototype.toString,qR=String.prototype.match,HC=String.prototype.slice,$T=String.prototype.replace,YR=String.prototype.toUpperCase,pC=String.prototype.toLowerCase,EA=RegExp.prototype.test,rC=Array.prototype.concat,BT=Array.prototype.join,QR=Array.prototype.slice,tC=Math.floor,CC=typeof BigInt==="function"?BigInt.prototype.valueOf:null,TC=Object.getOwnPropertySymbols,AC=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null,pT=typeof Symbol==="function"&&typeof Symbol.iterator==="object",q_=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===pT?"object":"symbol")?Symbol.toStringTag:null,RA=Object.prototype.propertyIsEnumerable,eC=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(_){return _.__proto__}:null);function aC(_,T){if(_===1/0||_===-1/0||_!==_||_&&_>-1000&&_<1000||EA.call(/e/,T))return T;var A=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof _==="number"){var C=_<0?-tC(-_):tC(_);if(C!==_){var E=String(C),R=HC.call(T,E.length+1);return $T.call(E,A,"$&_")+"."+$T.call($T.call(R,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $T.call(T,A,"$&_")}var EC=dC(),TA=EC.custom,_A=LA(TA)?TA:null,cA={__proto__:null,double:'"',single:"'"},fR={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};FA.exports=function _(T,A,C,E){var R=A||{};if(nT(R,"quoteStyle")&&!nT(cA,R.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(nT(R,"maxStringLength")&&(typeof R.maxStringLength==="number"?R.maxStringLength<0&&R.maxStringLength!==1/0:R.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=nT(R,"customInspect")?R.customInspect:!0;if(typeof c!=="boolean"&&c!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(nT(R,"indent")&&R.indent!==null&&R.indent!=="\t"&&!(parseInt(R.indent,10)===R.indent&&R.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(nT(R,"numericSeparator")&&typeof R.numericSeparator!=="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=R.numericSeparator;if(typeof T==="undefined")return"undefined";if(T===null)return"null";if(typeof T==="boolean")return T?"true":"false";if(typeof T==="string")return wA(T,R);if(typeof T==="number"){if(T===0)return 1/0/T>0?"0":"-0";var L=String(T);return w?aC(T,L):L}if(typeof T==="bigint"){var Y=String(T)+"n";return w?aC(T,Y):Y}var F=typeof R.depth==="undefined"?5:R.depth;if(typeof C==="undefined")C=0;if(C>=F&&F>0&&typeof T==="object")return RC(T)?"[Array]":"[Object]";var J=MR(R,C);if(typeof E==="undefined")E=[];else if(HA(E,T)>=0)return"[Circular]";function S(s,e,TT){if(e)E=QR.call(E),E.push(e);if(TT){var AT={depth:R.depth};if(nT(R,"quoteStyle"))AT.quoteStyle=R.quoteStyle;return _(s,AT,C+1,E)}return _(s,R,C+1,E)}if(typeof T==="function"&&!CA(T)){var Z=zR(T),Q=$_(T,S);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(Q.length>0?" { "+BT.call(Q,", ")+" }":"")}if(LA(T)){var X=pT?$T.call(String(T),/^(Symbol\(.*\))_[^)]*$/,"$1"):AC.call(T);return typeof T==="object"&&!pT?F_(X):X}if(hR(T)){var D="<"+pC.call(String(T.nodeName)),q=T.attributes||[];for(var N=0;N<q.length;N++)D+=" "+q[N].name+"="+xA(UR(q[N].value),"double",R);if(D+=">",T.childNodes&&T.childNodes.length)D+="...";return D+="</"+pC.call(String(T.nodeName))+">",D}if(RC(T)){if(T.length===0)return"[]";var U=$_(T,S);if(J&&!OR(U))return"["+cC(U,J)+"]";return"[ "+BT.call(U,", ")+" ]"}if(JR(T)){var V=$_(T,S);if(!("cause"in Error.prototype)&&"cause"in T&&!RA.call(T,"cause"))return"{ ["+String(T)+"] "+BT.call(rC.call("[cause]: "+S(T.cause),V),", ")+" }";if(V.length===0)return"["+String(T)+"]";return"{ ["+String(T)+"] "+BT.call(V,", ")+" }"}if(typeof T==="object"&&c){if(_A&&typeof T[_A]==="function"&&EC)return EC(T,{depth:F-C});else if(c!=="symbol"&&typeof T.inspect==="function")return T.inspect()}if(NR(T)){var K=[];if(sC)sC.call(T,function(s,e){K.push(S(e,T,!0)+" => "+S(s,T))});return AA("Map",h_.call(T),K,J)}if(IR(T)){var a=[];if(iC)iC.call(T,function(s){a.push(S(s,T))});return AA("Set",m_.call(T),a,J)}if(nR(T))return _C("WeakMap");if($R(T))return _C("WeakSet");if(KR(T))return _C("WeakRef");if(BR(T))return F_(S(Number(T)));if(DR(T))return F_(S(CC.call(T)));if(VR(T))return F_(FR.call(T));if(ZR(T))return F_(S(String(T)));if(typeof window!=="undefined"&&T===window)return"{ [object Window] }";if(typeof globalThis!=="undefined"&&T===globalThis||typeof global!=="undefined"&&T===global)return"{ [object globalThis] }";if(!XR(T)&&!CA(T)){var f=$_(T,S),P=eC?eC(T)===Object.prototype:T instanceof Object||T.constructor===Object,h=T instanceof Object?"":"null prototype",M=!P&&q_&&Object(T)===T&&q_ in T?HC.call(hT(T),8,-1):h?"Object":"",i=P||typeof T.constructor!=="function"?"":T.constructor.name?T.constructor.name+" ":"",o=i+(M||h?"["+BT.call(rC.call([],M||[],h||[]),": ")+"] ":"");if(f.length===0)return o+"{}";if(J)return o+"{"+cC(f,J)+"}";return o+"{ "+BT.call(f,", ")+" }"}return String(T)};function xA(_,T,A){var C=A.quoteStyle||T,E=cA[C];return E+_+E}function UR(_){return $T.call(String(_),/"/g,"&quot;")}function PT(_){return!q_||!(typeof _==="object"&&((q_ in _)||typeof _[q_]!=="undefined"))}function RC(_){return hT(_)==="[object Array]"&&PT(_)}function XR(_){return hT(_)==="[object Date]"&&PT(_)}function CA(_){return hT(_)==="[object RegExp]"&&PT(_)}function JR(_){return hT(_)==="[object Error]"&&PT(_)}function ZR(_){return hT(_)==="[object String]"&&PT(_)}function BR(_){return hT(_)==="[object Number]"&&PT(_)}function VR(_){return hT(_)==="[object Boolean]"&&PT(_)}function LA(_){if(pT)return _&&typeof _==="object"&&_ instanceof Symbol;if(typeof _==="symbol")return!0;if(!_||typeof _!=="object"||!AC)return!1;try{return AC.call(_),!0}catch(T){}return!1}function DR(_){if(!_||typeof _!=="object"||!CC)return!1;try{return CC.call(_),!0}catch(T){}return!1}var GR=Object.prototype.hasOwnProperty||function(_){return _ in this};function nT(_,T){return GR.call(_,T)}function hT(_){return SR.call(_)}function zR(_){if(_.name)return _.name;var T=qR.call(WR.call(_),/^function\s*([\w$]+)/);if(T)return T[1];return null}function HA(_,T){if(_.indexOf)return _.indexOf(T);for(var A=0,C=_.length;A<C;A++)if(_[A]===T)return A;return-1}function NR(_){if(!h_||!_||typeof _!=="object")return!1;try{h_.call(_);try{m_.call(_)}catch(T){return!0}return _ instanceof Map}catch(T){}return!1}function nR(_){if(!S_||!_||typeof _!=="object")return!1;try{S_.call(_,S_);try{W_.call(_,W_)}catch(T){return!0}return _ instanceof WeakMap}catch(T){}return!1}function KR(_){if(!oC||!_||typeof _!=="object")return!1;try{return oC.call(_),!0}catch(T){}return!1}function IR(_){if(!m_||!_||typeof _!=="object")return!1;try{m_.call(_);try{h_.call(_)}catch(T){return!0}return _ instanceof Set}catch(T){}return!1}function $R(_){if(!W_||!_||typeof _!=="object")return!1;try{W_.call(_,W_);try{S_.call(_,S_)}catch(T){return!0}return _ instanceof WeakSet}catch(T){}return!1}function hR(_){if(!_||typeof _!=="object")return!1;if(typeof HTMLElement!=="undefined"&&_ instanceof HTMLElement)return!0;return typeof _.nodeName==="string"&&typeof _.getAttribute==="function"}function wA(_,T){if(_.length>T.maxStringLength){var A=_.length-T.maxStringLength,C="... "+A+" more character"+(A>1?"s":"");return wA(HC.call(_,0,T.maxStringLength),T)+C}var E=fR[T.quoteStyle||"single"];E.lastIndex=0;var R=$T.call($T.call(_,E,"\\$1"),/[\x00-\x1f]/g,mR);return xA(R,"single",T)}function mR(_){var T=_.charCodeAt(0),A={8:"b",9:"t",10:"n",12:"f",13:"r"}[T];if(A)return"\\"+A;return"\\x"+(T<16?"0":"")+YR.call(T.toString(16))}function F_(_){return"Object("+_+")"}function _C(_){return _+" { ? }"}function AA(_,T,A,C){var E=C?cC(A,C):BT.call(A,", ");return _+" ("+T+") {"+E+"}"}function OR(_){for(var T=0;T<_.length;T++)if(HA(_[T],`
16
- `)>=0)return!1;return!0}function MR(_,T){var A;if(_.indent==="\t")A="\t";else if(typeof _.indent==="number"&&_.indent>0)A=BT.call(Array(_.indent+1)," ");else return null;return{base:A,prev:BT.call(Array(T+1),A)}}function cC(_,T){if(_.length===0)return"";var A=`
15
+ ***************************************************************************** */var kC;(function(_){(function(T){var A=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:H(),C=E(_);if(typeof A.Reflect<"u")C=E(A.Reflect,C);if(T(C,A),typeof A.Reflect>"u")A.Reflect=_;function E(c,q){return function(w,J){if(Object.defineProperty(c,w,{configurable:!0,writable:!0,value:J}),q)q(w,J)}}function f(){try{return Function("return this;")()}catch(c){}}function x(){try{return(0,eval)("(function() { return this; })()")}catch(c){}}function H(){return f()||x()}})(function(T,A){var C=Object.prototype.hasOwnProperty,E=typeof Symbol==="function",f=E&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",x=E&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",H=typeof Object.create==="function",c={__proto__:[]}instanceof Array,q=!H&&!c,w={create:H?function(){return o_(Object.create(null))}:c?function(){return o_({__proto__:null})}:function(){return o_({})},has:q?function(R,L){return C.call(R,L)}:function(R,L){return L in R},get:q?function(R,L){return C.call(R,L)?R[L]:void 0}:function(R,L){return R[L]}},J=Object.getPrototypeOf(Function),F=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:qf(),Z=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:Yf(),Y=typeof WeakMap==="function"?WeakMap:Qf(),X=E?Symbol.for("@reflect-metadata:registry"):void 0,D=Ff(),W=Sf(D);function N(R,L,S,B){if(!O(S)){if(!IC(R))throw TypeError();if(!y(L))throw TypeError();if(!y(B)&&!O(B)&&!yT(B))throw TypeError();if(yT(B))B=void 0;return S=wT(S),s(R,L,S,B)}else{if(!IC(R))throw TypeError();if(!hC(L))throw TypeError();return p(R,L)}}T("decorate",N);function U(R,L){function S(B,I){if(!y(B))throw TypeError();if(!O(I)&&!Hf(I))throw TypeError();z_(R,L,B,I)}return S}T("metadata",U);function V(R,L,S,B){if(!y(S))throw TypeError();if(!O(B))B=wT(B);return z_(R,L,S,B)}T("defineMetadata",V);function n(R,L,S){if(!y(L))throw TypeError();if(!O(S))S=wT(S);return e(R,L,S)}T("hasMetadata",n);function a(R,L,S){if(!y(L))throw TypeError();if(!O(S))S=wT(S);return TT(R,L,S)}T("hasOwnMetadata",a);function Q(R,L,S){if(!y(L))throw TypeError();if(!O(S))S=wT(S);return AT(R,L,S)}T("getMetadata",Q);function P(R,L,S){if(!y(L))throw TypeError();if(!O(S))S=wT(S);return KT(R,L,S)}T("getOwnMetadata",P);function h(R,L){if(!y(R))throw TypeError();if(!O(L))L=wT(L);return A_(R,L)}T("getMetadataKeys",h);function M(R,L){if(!y(R))throw TypeError();if(!O(L))L=wT(L);return lT(R,L)}T("getOwnMetadataKeys",M);function i(R,L,S){if(!y(L))throw TypeError();if(!O(S))S=wT(S);if(!y(L))throw TypeError();if(!O(S))S=wT(S);var B=E_(L,S,!1);if(O(B))return!1;return B.OrdinaryDeleteMetadata(R,L,S)}T("deleteMetadata",i);function p(R,L){for(var S=R.length-1;S>=0;--S){var B=R[S],I=B(L);if(!O(I)&&!yT(I)){if(!hC(I))throw TypeError();L=I}}return L}function s(R,L,S,B){for(var I=R.length-1;I>=0;--I){var j=R[I],o=j(L,S,B);if(!O(o)&&!yT(o)){if(!y(o))throw TypeError();B=o}}return B}function e(R,L,S){var B=TT(R,L,S);if(B)return!0;var I=p_(L);if(!yT(I))return e(R,I,S);return!1}function TT(R,L,S){var B=E_(L,S,!1);if(O(B))return!1;return KC(B.OrdinaryHasOwnMetadata(R,L,S))}function AT(R,L,S){var B=TT(R,L,S);if(B)return KT(R,L,S);var I=p_(L);if(!yT(I))return AT(R,I,S);return}function KT(R,L,S){var B=E_(L,S,!1);if(O(B))return;return B.OrdinaryGetOwnMetadata(R,L,S)}function z_(R,L,S,B){var I=E_(S,B,!0);I.OrdinaryDefineOwnMetadata(R,L,S,B)}function A_(R,L){var S=lT(R,L),B=p_(R);if(B===null)return S;var I=A_(B,L);if(I.length<=0)return S;if(S.length<=0)return I;var j=new Z,o=[];for(var u=0,G=S;u<G.length;u++){var z=G[u],$=j.has(z);if(!$)j.add(z),o.push(z)}for(var K=0,k=I;K<k.length;K++){var z=k[K],$=j.has(z);if(!$)j.add(z),o.push(z)}return o}function lT(R,L){var S=E_(R,L,!1);if(!S)return[];return S.OrdinaryOwnMetadataKeys(R,L)}function nC(R){if(R===null)return 1;switch(typeof R){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return R===null?1:6;default:return 6}}function O(R){return R===void 0}function yT(R){return R===null}function xf(R){return typeof R==="symbol"}function y(R){return typeof R==="object"?R!==null:typeof R==="function"}function Rf(R,L){switch(nC(R)){case 0:return R;case 1:return R;case 2:return R;case 3:return R;case 4:return R;case 5:return R}var S=L===3?"string":L===5?"number":"default",B=mC(R,f);if(B!==void 0){var I=B.call(R,S);if(y(I))throw TypeError();return I}return cf(R,S==="default"?"number":S)}function cf(R,L){if(L==="string"){var S=R.toString;if(jT(S)){var B=S.call(R);if(!y(B))return B}var I=R.valueOf;if(jT(I)){var B=I.call(R);if(!y(B))return B}}else{var I=R.valueOf;if(jT(I)){var B=I.call(R);if(!y(B))return B}var j=R.toString;if(jT(j)){var B=j.call(R);if(!y(B))return B}}throw TypeError()}function KC(R){return!!R}function Lf(R){return""+R}function wT(R){var L=Rf(R,3);if(xf(L))return L;return Lf(L)}function IC(R){return Array.isArray?Array.isArray(R):R instanceof Object?R instanceof Array:Object.prototype.toString.call(R)==="[object Array]"}function jT(R){return typeof R==="function"}function hC(R){return typeof R==="function"}function Hf(R){switch(nC(R)){case 3:return!0;case 4:return!0;default:return!1}}function i_(R,L){return R===L||R!==R&&L!==L}function mC(R,L){var S=R[L];if(S===void 0||S===null)return;if(!jT(S))throw TypeError();return S}function OC(R){var L=mC(R,x);if(!jT(L))throw TypeError();var S=L.call(R);if(!y(S))throw TypeError();return S}function MC(R){return R.value}function uC(R){var L=R.next();return L.done?!1:L}function gC(R){var L=R.return;if(L)L.call(R)}function p_(R){var L=Object.getPrototypeOf(R);if(typeof R!=="function"||R===J)return L;if(L!==J)return L;var S=R.prototype,B=S&&Object.getPrototypeOf(S);if(B==null||B===Object.prototype)return L;var I=B.constructor;if(typeof I!=="function")return L;if(I===R)return L;return I}function wf(){var R;if(!O(X)&&typeof A.Reflect<"u"&&!(X in A.Reflect)&&typeof A.Reflect.defineMetadata==="function")R=Wf(A.Reflect);var L,S,B,I=new Y,j={registerProvider:o,getProvider:G,setProvider:$};return j;function o(K){if(!Object.isExtensible(j))throw Error("Cannot add provider to a frozen registry.");switch(!0){case R===K:break;case O(L):L=K;break;case L===K:break;case O(S):S=K;break;case S===K:break;default:if(B===void 0)B=new Z;B.add(K);break}}function u(K,k){if(!O(L)){if(L.isProviderFor(K,k))return L;if(!O(S)){if(S.isProviderFor(K,k))return L;if(!O(B)){var b=OC(B);while(!0){var d=uC(b);if(!d)return;var HT=MC(d);if(HT.isProviderFor(K,k))return gC(b),HT}}}}if(!O(R)&&R.isProviderFor(K,k))return R;return}function G(K,k){var b=I.get(K),d;if(!O(b))d=b.get(k);if(!O(d))return d;if(d=u(K,k),!O(d)){if(O(b))b=new F,I.set(K,b);b.set(k,d)}return d}function z(K){if(O(K))throw TypeError();return L===K||S===K||!O(B)&&B.has(K)}function $(K,k,b){if(!z(b))throw Error("Metadata provider not registered.");var d=G(K,k);if(d!==b){if(!O(d))return!1;var HT=I.get(K);if(O(HT))HT=new F,I.set(K,HT);HT.set(k,b)}return!0}}function Ff(){var R;if(!O(X)&&y(A.Reflect)&&Object.isExtensible(A.Reflect))R=A.Reflect[X];if(O(R))R=wf();if(!O(X)&&y(A.Reflect)&&Object.isExtensible(A.Reflect))Object.defineProperty(A.Reflect,X,{enumerable:!1,configurable:!1,writable:!1,value:R});return R}function Sf(R){var L=new Y,S={isProviderFor:function(z,$){var K=L.get(z);if(O(K))return!1;return K.has($)},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:I,OrdinaryGetOwnMetadata:j,OrdinaryOwnMetadataKeys:u,OrdinaryDeleteMetadata:G};return D.registerProvider(S),S;function B(z,$,K){var k=L.get(z),b=!1;if(O(k)){if(!K)return;k=new F,L.set(z,k),b=!0}var d=k.get($);if(O(d)){if(!K)return;if(d=new F,k.set($,d),!R.setProvider(z,$,S)){if(k.delete($),b)L.delete(z);throw Error("Wrong provider for target.")}}return d}function I(z,$,K){var k=B($,K,!1);if(O(k))return!1;return KC(k.has(z))}function j(z,$,K){var k=B($,K,!1);if(O(k))return;return k.get(z)}function o(z,$,K,k){var b=B(K,k,!0);b.set(z,$)}function u(z,$){var K=[],k=B(z,$,!1);if(O(k))return K;var b=k.keys(),d=OC(b),HT=0;while(!0){var PC=uC(d);if(!PC)return K.length=HT,K;var Uf=MC(PC);try{K[HT]=Uf}catch(Xf){try{gC(d)}finally{throw Xf}}HT++}}function G(z,$,K){var k=B($,K,!1);if(O(k))return!1;if(!k.delete(z))return!1;if(k.size===0){var b=L.get($);if(!O(b)){if(b.delete(K),b.size===0)L.delete(b)}}return!0}}function Wf(R){var{defineMetadata:L,hasOwnMetadata:S,getOwnMetadata:B,getOwnMetadataKeys:I,deleteMetadata:j}=R,o=new Y,u={isProviderFor:function(G,z){var $=o.get(G);if(!O($)&&$.has(z))return!0;if(I(G,z).length){if(O($))$=new Z,o.set(G,$);return $.add(z),!0}return!1},OrdinaryDefineOwnMetadata:L,OrdinaryHasOwnMetadata:S,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:I,OrdinaryDeleteMetadata:j};return u}function E_(R,L,S){var B=D.getProvider(R,L);if(!O(B))return B;if(S){if(D.setProvider(R,L,W))return W;throw Error("Illegal state.")}return}function qf(){var R={},L=[],S=function(){function u(G,z,$){this._index=0,this._keys=G,this._values=z,this._selector=$}return u.prototype["@@iterator"]=function(){return this},u.prototype[x]=function(){return this},u.prototype.next=function(){var G=this._index;if(G>=0&&G<this._keys.length){var z=this._selector(this._keys[G],this._values[G]);if(G+1>=this._keys.length)this._index=-1,this._keys=L,this._values=L;else this._index++;return{value:z,done:!1}}return{value:void 0,done:!0}},u.prototype.throw=function(G){if(this._index>=0)this._index=-1,this._keys=L,this._values=L;throw G},u.prototype.return=function(G){if(this._index>=0)this._index=-1,this._keys=L,this._values=L;return{value:G,done:!0}},u}(),B=function(){function u(){this._keys=[],this._values=[],this._cacheKey=R,this._cacheIndex=-2}return Object.defineProperty(u.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),u.prototype.has=function(G){return this._find(G,!1)>=0},u.prototype.get=function(G){var z=this._find(G,!1);return z>=0?this._values[z]:void 0},u.prototype.set=function(G,z){var $=this._find(G,!0);return this._values[$]=z,this},u.prototype.delete=function(G){var z=this._find(G,!1);if(z>=0){var $=this._keys.length;for(var K=z+1;K<$;K++)this._keys[K-1]=this._keys[K],this._values[K-1]=this._values[K];if(this._keys.length--,this._values.length--,i_(G,this._cacheKey))this._cacheKey=R,this._cacheIndex=-2;return!0}return!1},u.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=R,this._cacheIndex=-2},u.prototype.keys=function(){return new S(this._keys,this._values,I)},u.prototype.values=function(){return new S(this._keys,this._values,j)},u.prototype.entries=function(){return new S(this._keys,this._values,o)},u.prototype["@@iterator"]=function(){return this.entries()},u.prototype[x]=function(){return this.entries()},u.prototype._find=function(G,z){if(!i_(this._cacheKey,G)){this._cacheIndex=-1;for(var $=0;$<this._keys.length;$++)if(i_(this._keys[$],G)){this._cacheIndex=$;break}}if(this._cacheIndex<0&&z)this._cacheIndex=this._keys.length,this._keys.push(G),this._values.push(void 0);return this._cacheIndex},u}();return B;function I(u,G){return u}function j(u,G){return G}function o(u,G){return[u,G]}}function Yf(){var R=function(){function L(){this._map=new F}return Object.defineProperty(L.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),L.prototype.has=function(S){return this._map.has(S)},L.prototype.add=function(S){return this._map.set(S,S),this},L.prototype.delete=function(S){return this._map.delete(S)},L.prototype.clear=function(){this._map.clear()},L.prototype.keys=function(){return this._map.keys()},L.prototype.values=function(){return this._map.keys()},L.prototype.entries=function(){return this._map.entries()},L.prototype["@@iterator"]=function(){return this.keys()},L.prototype[x]=function(){return this.keys()},L}();return R}function Qf(){var R=16,L=w.create(),S=B();return function(){function G(){this._key=B()}return G.prototype.has=function(z){var $=I(z,!1);return $!==void 0?w.has($,this._key):!1},G.prototype.get=function(z){var $=I(z,!1);return $!==void 0?w.get($,this._key):void 0},G.prototype.set=function(z,$){var K=I(z,!0);return K[this._key]=$,this},G.prototype.delete=function(z){var $=I(z,!1);return $!==void 0?delete $[this._key]:!1},G.prototype.clear=function(){this._key=B()},G}();function B(){var G;do G="@@WeakMap@@"+u();while(w.has(L,G));return L[G]=!0,G}function I(G,z){if(!C.call(G,S)){if(!z)return;Object.defineProperty(G,S,{value:w.create()})}return G[S]}function j(G,z){for(var $=0;$<z;++$)G[$]=Math.random()*255|0;return G}function o(G){if(typeof Uint8Array==="function"){var z=new Uint8Array(G);if(typeof crypto<"u")crypto.getRandomValues(z);else if(typeof msCrypto<"u")msCrypto.getRandomValues(z);else j(z,G);return z}return j(Array(G),G)}function u(){var G=o(R);G[6]=G[6]&79|64,G[8]=G[8]&191|128;var z="";for(var $=0;$<R;++$){var K=G[$];if($===4||$===6||$===8)z+="-";if(K<16)z+="0";z+=K.toString(16).toLowerCase()}return z}}function o_(R){return R.__=void 0,delete R.__,R}})})(kC||(kC={}))});var gT=m((hc,yC)=>{yC.exports=TypeError});var dC=m((mc,jC)=>{jC.exports=Gf("util").inspect});var q_=m((Oc,wA)=>{var RC=typeof Map==="function"&&Map.prototype,e_=Object.getOwnPropertyDescriptor&&RC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,h_=RC&&e_&&typeof e_.get==="function"?e_.get:null,sC=RC&&Map.prototype.forEach,cC=typeof Set==="function"&&Set.prototype,a_=Object.getOwnPropertyDescriptor&&cC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,m_=cC&&a_&&typeof a_.get==="function"?a_.get:null,iC=cC&&Set.prototype.forEach,L0=typeof WeakMap==="function"&&WeakMap.prototype,F_=L0?WeakMap.prototype.has:null,H0=typeof WeakSet==="function"&&WeakSet.prototype,S_=H0?WeakSet.prototype.has:null,w0=typeof WeakRef==="function"&&WeakRef.prototype,pC=w0?WeakRef.prototype.deref:null,F0=Boolean.prototype.valueOf,S0=Object.prototype.toString,W0=Function.prototype.toString,q0=String.prototype.match,LC=String.prototype.slice,IT=String.prototype.replace,Y0=String.prototype.toUpperCase,oC=String.prototype.toLowerCase,EA=RegExp.prototype.test,rC=Array.prototype.concat,BT=Array.prototype.join,Q0=Array.prototype.slice,tC=Math.floor,CC=typeof BigInt==="function"?BigInt.prototype.valueOf:null,TC=Object.getOwnPropertySymbols,AC=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null,oT=typeof Symbol==="function"&&typeof Symbol.iterator==="object",W_=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===oT?"object":"symbol")?Symbol.toStringTag:null,fA=Object.prototype.propertyIsEnumerable,eC=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(_){return _.__proto__}:null);function aC(_,T){if(_===1/0||_===-1/0||_!==_||_&&_>-1000&&_<1000||EA.call(/e/,T))return T;var A=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof _==="number"){var C=_<0?-tC(-_):tC(_);if(C!==_){var E=String(C),f=LC.call(T,E.length+1);return IT.call(E,A,"$&_")+"."+IT.call(IT.call(f,/([0-9]{3})/g,"$&_"),/_$/,"")}}return IT.call(T,A,"$&_")}var EC=dC(),TA=EC.custom,_A=cA(TA)?TA:null,xA={__proto__:null,double:'"',single:"'"},U0={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};wA.exports=function _(T,A,C,E){var f=A||{};if($T(f,"quoteStyle")&&!$T(xA,f.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if($T(f,"maxStringLength")&&(typeof f.maxStringLength==="number"?f.maxStringLength<0&&f.maxStringLength!==1/0:f.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var x=$T(f,"customInspect")?f.customInspect:!0;if(typeof x!=="boolean"&&x!=="symbol")throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($T(f,"indent")&&f.indent!==null&&f.indent!=="\t"&&!(parseInt(f.indent,10)===f.indent&&f.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($T(f,"numericSeparator")&&typeof f.numericSeparator!=="boolean")throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var H=f.numericSeparator;if(typeof T>"u")return"undefined";if(T===null)return"null";if(typeof T==="boolean")return T?"true":"false";if(typeof T==="string")return HA(T,f);if(typeof T==="number"){if(T===0)return 1/0/T>0?"0":"-0";var c=String(T);return H?aC(T,c):c}if(typeof T==="bigint"){var q=String(T)+"n";return H?aC(T,q):q}var w=typeof f.depth>"u"?5:f.depth;if(typeof C>"u")C=0;if(C>=w&&w>0&&typeof T==="object")return fC(T)?"[Array]":"[Object]";var J=u0(f,C);if(typeof E>"u")E=[];else if(LA(E,T)>=0)return"[Circular]";function F(s,e,TT){if(e)E=Q0.call(E),E.push(e);if(TT){var AT={depth:f.depth};if($T(f,"quoteStyle"))AT.quoteStyle=f.quoteStyle;return _(s,AT,C+1,E)}return _(s,f,C+1,E)}if(typeof T==="function"&&!CA(T)){var Z=N0(T),Y=I_(T,F);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(Y.length>0?" { "+BT.call(Y,", ")+" }":"")}if(cA(T)){var X=oT?IT.call(String(T),/^(Symbol\(.*\))_[^)]*$/,"$1"):AC.call(T);return typeof T==="object"&&!oT?w_(X):X}if(m0(T)){var D="<"+oC.call(String(T.nodeName)),W=T.attributes||[];for(var N=0;N<W.length;N++)D+=" "+W[N].name+"="+RA(X0(W[N].value),"double",f);if(D+=">",T.childNodes&&T.childNodes.length)D+="...";return D+="</"+oC.call(String(T.nodeName))+">",D}if(fC(T)){if(T.length===0)return"[]";var U=I_(T,F);if(J&&!M0(U))return"["+xC(U,J)+"]";return"[ "+BT.call(U,", ")+" ]"}if(Z0(T)){var V=I_(T,F);if(!("cause"in Error.prototype)&&"cause"in T&&!fA.call(T,"cause"))return"{ ["+String(T)+"] "+BT.call(rC.call("[cause]: "+F(T.cause),V),", ")+" }";if(V.length===0)return"["+String(T)+"]";return"{ ["+String(T)+"] "+BT.call(V,", ")+" }"}if(typeof T==="object"&&x){if(_A&&typeof T[_A]==="function"&&EC)return EC(T,{depth:w-C});else if(x!=="symbol"&&typeof T.inspect==="function")return T.inspect()}if($0(T)){var n=[];if(sC)sC.call(T,function(s,e){n.push(F(e,T,!0)+" => "+F(s,T))});return AA("Map",h_.call(T),n,J)}if(I0(T)){var a=[];if(iC)iC.call(T,function(s){a.push(F(s,T))});return AA("Set",m_.call(T),a,J)}if(n0(T))return _C("WeakMap");if(h0(T))return _C("WeakSet");if(K0(T))return _C("WeakRef");if(V0(T))return w_(F(Number(T)));if(G0(T))return w_(F(CC.call(T)));if(D0(T))return w_(F0.call(T));if(B0(T))return w_(F(String(T)));if(typeof window<"u"&&T===window)return"{ [object Window] }";if(typeof globalThis<"u"&&T===globalThis||typeof global<"u"&&T===global)return"{ [object globalThis] }";if(!J0(T)&&!CA(T)){var Q=I_(T,F),P=eC?eC(T)===Object.prototype:T instanceof Object||T.constructor===Object,h=T instanceof Object?"":"null prototype",M=!P&&W_&&Object(T)===T&&W_ in T?LC.call(hT(T),8,-1):h?"Object":"",i=P||typeof T.constructor!=="function"?"":T.constructor.name?T.constructor.name+" ":"",p=i+(M||h?"["+BT.call(rC.call([],M||[],h||[]),": ")+"] ":"");if(Q.length===0)return p+"{}";if(J)return p+"{"+xC(Q,J)+"}";return p+"{ "+BT.call(Q,", ")+" }"}return String(T)};function RA(_,T,A){var C=A.quoteStyle||T,E=xA[C];return E+_+E}function X0(_){return IT.call(String(_),/"/g,"&quot;")}function PT(_){return!W_||!(typeof _==="object"&&((W_ in _)||typeof _[W_]<"u"))}function fC(_){return hT(_)==="[object Array]"&&PT(_)}function J0(_){return hT(_)==="[object Date]"&&PT(_)}function CA(_){return hT(_)==="[object RegExp]"&&PT(_)}function Z0(_){return hT(_)==="[object Error]"&&PT(_)}function B0(_){return hT(_)==="[object String]"&&PT(_)}function V0(_){return hT(_)==="[object Number]"&&PT(_)}function D0(_){return hT(_)==="[object Boolean]"&&PT(_)}function cA(_){if(oT)return _&&typeof _==="object"&&_ instanceof Symbol;if(typeof _==="symbol")return!0;if(!_||typeof _!=="object"||!AC)return!1;try{return AC.call(_),!0}catch(T){}return!1}function G0(_){if(!_||typeof _!=="object"||!CC)return!1;try{return CC.call(_),!0}catch(T){}return!1}var z0=Object.prototype.hasOwnProperty||function(_){return _ in this};function $T(_,T){return z0.call(_,T)}function hT(_){return S0.call(_)}function N0(_){if(_.name)return _.name;var T=q0.call(W0.call(_),/^function\s*([\w$]+)/);if(T)return T[1];return null}function LA(_,T){if(_.indexOf)return _.indexOf(T);for(var A=0,C=_.length;A<C;A++)if(_[A]===T)return A;return-1}function $0(_){if(!h_||!_||typeof _!=="object")return!1;try{h_.call(_);try{m_.call(_)}catch(T){return!0}return _ instanceof Map}catch(T){}return!1}function n0(_){if(!F_||!_||typeof _!=="object")return!1;try{F_.call(_,F_);try{S_.call(_,S_)}catch(T){return!0}return _ instanceof WeakMap}catch(T){}return!1}function K0(_){if(!pC||!_||typeof _!=="object")return!1;try{return pC.call(_),!0}catch(T){}return!1}function I0(_){if(!m_||!_||typeof _!=="object")return!1;try{m_.call(_);try{h_.call(_)}catch(T){return!0}return _ instanceof Set}catch(T){}return!1}function h0(_){if(!S_||!_||typeof _!=="object")return!1;try{S_.call(_,S_);try{F_.call(_,F_)}catch(T){return!0}return _ instanceof WeakSet}catch(T){}return!1}function m0(_){if(!_||typeof _!=="object")return!1;if(typeof HTMLElement<"u"&&_ instanceof HTMLElement)return!0;return typeof _.nodeName==="string"&&typeof _.getAttribute==="function"}function HA(_,T){if(_.length>T.maxStringLength){var A=_.length-T.maxStringLength,C="... "+A+" more character"+(A>1?"s":"");return HA(LC.call(_,0,T.maxStringLength),T)+C}var E=U0[T.quoteStyle||"single"];E.lastIndex=0;var f=IT.call(IT.call(_,E,"\\$1"),/[\x00-\x1f]/g,O0);return RA(f,"single",T)}function O0(_){var T=_.charCodeAt(0),A={8:"b",9:"t",10:"n",12:"f",13:"r"}[T];if(A)return"\\"+A;return"\\x"+(T<16?"0":"")+Y0.call(T.toString(16))}function w_(_){return"Object("+_+")"}function _C(_){return _+" { ? }"}function AA(_,T,A,C){var E=C?xC(A,C):BT.call(A,", ");return _+" ("+T+") {"+E+"}"}function M0(_){for(var T=0;T<_.length;T++)if(LA(_[T],`
16
+ `)>=0)return!1;return!0}function u0(_,T){var A;if(_.indent==="\t")A="\t";else if(typeof _.indent==="number"&&_.indent>0)A=BT.call(Array(_.indent+1)," ");else return null;return{base:A,prev:BT.call(Array(T+1),A)}}function xC(_,T){if(_.length===0)return"";var A=`
17
17
  `+T.prev+T.base;return A+BT.call(_,","+A)+`
18
- `+T.prev}function $_(_,T){var A=RC(_),C=[];if(A){C.length=_.length;for(var E=0;E<_.length;E++)C[E]=nT(_,E)?T(_[E],_):""}var R=typeof TC==="function"?TC(_):[],c;if(pT){c={};for(var w=0;w<R.length;w++)c["$"+R[w]]=R[w]}for(var L in _){if(!nT(_,L))continue;if(A&&String(Number(L))===L&&L<_.length)continue;if(pT&&c["$"+L]instanceof Symbol)continue;else if(EA.call(/[^\w$]/,L))C.push(T(L,_)+": "+T(_[L],_));else C.push(L+": "+T(_[L],_))}if(typeof TC==="function"){for(var Y=0;Y<R.length;Y++)if(RA.call(_,R[Y]))C.push("["+T(R[Y])+"]: "+T(_[R[Y]],_))}return C}});var WA=m((O4,SA)=>{var uR=Y_(),gR=gT(),O_=function(_,T,A){var C=_,E;for(;(E=C.next)!=null;C=E)if(E.key===T){if(C.next=E.next,!A)E.next=_.next,_.next=E;return E}},PR=function(_,T){if(!_)return;var A=O_(_,T);return A&&A.value},bR=function(_,T,A){var C=O_(_,T);if(C)C.value=A;else _.next={key:T,next:_.next,value:A}},kR=function(_,T){if(!_)return!1;return!!O_(_,T)},vR=function(_,T){if(_)return O_(_,T,!0)};SA.exports=function _(){var T,A={assert:function(C){if(!A.has(C))throw new gR("Side channel does not contain "+uR(C))},delete:function(C){var E=T&&T.next,R=vR(T,C);if(R&&E&&E===R)T=void 0;return!!R},get:function(C){return PR(T,C)},has:function(C){return kR(T,C)},set:function(C,E){if(!T)T={next:void 0};bR(T,C,E)}};return A}});var wC=m((M4,qA)=>{qA.exports=Object});var QA=m((u4,YA)=>{YA.exports=Error});var UA=m((g4,fA)=>{fA.exports=EvalError});var JA=m((P4,XA)=>{XA.exports=RangeError});var BA=m((b4,ZA)=>{ZA.exports=ReferenceError});var DA=m((k4,VA)=>{VA.exports=SyntaxError});var zA=m((v4,GA)=>{GA.exports=URIError});var nA=m((l4,NA)=>{NA.exports=Math.abs});var IA=m((y4,KA)=>{KA.exports=Math.floor});var hA=m((j4,$A)=>{$A.exports=Math.max});var OA=m((d4,mA)=>{mA.exports=Math.min});var uA=m((s4,MA)=>{MA.exports=Math.pow});var PA=m((i4,gA)=>{gA.exports=Math.round});var kA=m((o4,bA)=>{bA.exports=Number.isNaN||function _(T){return T!==T}});var lA=m((p4,vA)=>{var lR=kA();vA.exports=function _(T){if(lR(T)||T===0)return T;return T<0?-1:1}});var jA=m((r4,yA)=>{yA.exports=Object.getOwnPropertyDescriptor});var FC=m((t4,dA)=>{var M_=jA();if(M_)try{M_([],"length")}catch(_){M_=null}dA.exports=M_});var iA=m((e4,sA)=>{var u_=Object.defineProperty||!1;if(u_)try{u_({},"a",{value:1})}catch(_){u_=!1}sA.exports=u_});var pA=m((a4,oA)=>{oA.exports=function _(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var T={},A=Symbol("test"),C=Object(A);if(typeof A==="string")return!1;if(Object.prototype.toString.call(A)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(C)!=="[object Symbol]")return!1;var E=42;T[A]=E;for(var R in T)return!1;if(typeof Object.keys==="function"&&Object.keys(T).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(T).length!==0)return!1;var c=Object.getOwnPropertySymbols(T);if(c.length!==1||c[0]!==A)return!1;if(!Object.prototype.propertyIsEnumerable.call(T,A))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var w=Object.getOwnPropertyDescriptor(T,A);if(w.value!==E||w.enumerable!==!0)return!1}return!0}});var eA=m((Tx,tA)=>{var rA=typeof Symbol!=="undefined"&&Symbol,yR=pA();tA.exports=function _(){if(typeof rA!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof rA("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return yR()}});var SC=m((_x,aA)=>{aA.exports=typeof Reflect!=="undefined"&&Reflect.getPrototypeOf||null});var WC=m((Cx,TE)=>{var jR=wC();TE.exports=jR.getPrototypeOf||null});var AE=m((Ax,CE)=>{var dR="Function.prototype.bind called on incompatible ",sR=Object.prototype.toString,iR=Math.max,oR="[object Function]",_E=function _(T,A){var C=[];for(var E=0;E<T.length;E+=1)C[E]=T[E];for(var R=0;R<A.length;R+=1)C[R+T.length]=A[R];return C},pR=function _(T,A){var C=[];for(var E=A||0,R=0;E<T.length;E+=1,R+=1)C[R]=T[E];return C},rR=function(_,T){var A="";for(var C=0;C<_.length;C+=1)if(A+=_[C],C+1<_.length)A+=T;return A};CE.exports=function _(T){var A=this;if(typeof A!=="function"||sR.apply(A)!==oR)throw new TypeError(dR+A);var C=pR(arguments,1),E,R=function(){if(this instanceof E){var F=A.apply(this,_E(C,arguments));if(Object(F)===F)return F;return this}return A.apply(T,_E(C,arguments))},c=iR(0,A.length-C.length),w=[];for(var L=0;L<c;L++)w[L]="$"+L;if(E=Function("binder","return function ("+rR(w,",")+"){ return binder.apply(this,arguments); }")(R),A.prototype){var Y=function F(){};Y.prototype=A.prototype,E.prototype=new Y,Y.prototype=null}return E}});var Q_=m((Ex,EE)=>{var tR=AE();EE.exports=Function.prototype.bind||tR});var g_=m((Rx,RE)=>{RE.exports=Function.prototype.call});var qC=m((cx,cE)=>{cE.exports=Function.prototype.apply});var LE=m((xx,xE)=>{xE.exports=typeof Reflect!=="undefined"&&Reflect&&Reflect.apply});var wE=m((Lx,HE)=>{var eR=Q_(),aR=qC(),Tc=g_(),_c=LE();HE.exports=_c||eR.call(Tc,aR)});var YC=m((Hx,FE)=>{var Cc=Q_(),Ac=gT(),Ec=g_(),Rc=wE();FE.exports=function _(T){if(T.length<1||typeof T[0]!=="function")throw new Ac("a function is required");return Rc(Cc,Ec,T)}});var fE=m((wx,QE)=>{var cc=YC(),SE=FC(),qE;try{qE=[].__proto__===Array.prototype}catch(_){if(!_||typeof _!=="object"||!("code"in _)||_.code!=="ERR_PROTO_ACCESS")throw _}var QC=!!qE&&SE&&SE(Object.prototype,"__proto__"),YE=Object,WE=YE.getPrototypeOf;QE.exports=QC&&typeof QC.get==="function"?cc([QC.get]):typeof WE==="function"?function _(T){return WE(T==null?T:YE(T))}:!1});var BE=m((Fx,ZE)=>{var UE=SC(),XE=WC(),JE=fE();ZE.exports=UE?function _(T){return UE(T)}:XE?function _(T){if(!T||typeof T!=="object"&&typeof T!=="function")throw new TypeError("getProto: not an object");return XE(T)}:JE?function _(T){return JE(T)}:null});var DE=m((Sx,VE)=>{var xc=Function.prototype.call,Lc=Object.prototype.hasOwnProperty,Hc=Q_();VE.exports=Hc.call(xc,Lc)});var k_=m((Wx,KE)=>{var g,wc=wC(),Fc=QA(),Sc=UA(),Wc=JA(),qc=BA(),aT=DA(),eT=gT(),Yc=zA(),Qc=nA(),fc=IA(),Uc=hA(),Xc=OA(),Jc=uA(),Zc=PA(),Bc=lA(),NE=Function,fC=function(_){try{return NE('"use strict"; return ('+_+").constructor;")()}catch(T){}},f_=FC(),Vc=iA(),UC=function(){throw new eT},Dc=f_?function(){try{return arguments.callee,UC}catch(_){try{return f_(arguments,"callee").get}catch(T){return UC}}}():UC,rT=eA()(),t=BE(),Gc=WC(),zc=SC(),nE=qC(),U_=g_(),tT={},Nc=typeof Uint8Array==="undefined"||!t?g:t(Uint8Array),bT={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?g:ArrayBuffer,"%ArrayIteratorPrototype%":rT&&t?t([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":tT,"%AsyncGenerator%":tT,"%AsyncGeneratorFunction%":tT,"%AsyncIteratorPrototype%":tT,"%Atomics%":typeof Atomics==="undefined"?g:Atomics,"%BigInt%":typeof BigInt==="undefined"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Fc,"%eval%":eval,"%EvalError%":Sc,"%Float16Array%":typeof Float16Array==="undefined"?g:Float16Array,"%Float32Array%":typeof Float32Array==="undefined"?g:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?g:FinalizationRegistry,"%Function%":NE,"%GeneratorFunction%":tT,"%Int8Array%":typeof Int8Array==="undefined"?g:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?g:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":rT&&t?t(t([][Symbol.iterator]())):g,"%JSON%":typeof JSON==="object"?JSON:g,"%Map%":typeof Map==="undefined"?g:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!rT||!t?g:t(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":wc,"%Object.getOwnPropertyDescriptor%":f_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?g:Promise,"%Proxy%":typeof Proxy==="undefined"?g:Proxy,"%RangeError%":Wc,"%ReferenceError%":qc,"%Reflect%":typeof Reflect==="undefined"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?g:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!rT||!t?g:t(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":rT&&t?t(""[Symbol.iterator]()):g,"%Symbol%":rT?Symbol:g,"%SyntaxError%":aT,"%ThrowTypeError%":Dc,"%TypedArray%":Nc,"%TypeError%":eT,"%Uint8Array%":typeof Uint8Array==="undefined"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?g:Uint32Array,"%URIError%":Yc,"%WeakMap%":typeof WeakMap==="undefined"?g:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?g:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?g:WeakSet,"%Function.prototype.call%":U_,"%Function.prototype.apply%":nE,"%Object.defineProperty%":Vc,"%Object.getPrototypeOf%":Gc,"%Math.abs%":Qc,"%Math.floor%":fc,"%Math.max%":Uc,"%Math.min%":Xc,"%Math.pow%":Jc,"%Math.round%":Zc,"%Math.sign%":Bc,"%Reflect.getPrototypeOf%":zc};if(t)try{null.error}catch(_){XC=t(t(_)),bT["%Error.prototype%"]=XC}var XC,nc=function _(T){var A;if(T==="%AsyncFunction%")A=fC("async function () {}");else if(T==="%GeneratorFunction%")A=fC("function* () {}");else if(T==="%AsyncGeneratorFunction%")A=fC("async function* () {}");else if(T==="%AsyncGenerator%"){var C=_("%AsyncGeneratorFunction%");if(C)A=C.prototype}else if(T==="%AsyncIteratorPrototype%"){var E=_("%AsyncGenerator%");if(E&&t)A=t(E.prototype)}return bT[T]=A,A},GE={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},X_=Q_(),P_=DE(),Kc=X_.call(U_,Array.prototype.concat),Ic=X_.call(nE,Array.prototype.splice),zE=X_.call(U_,String.prototype.replace),b_=X_.call(U_,String.prototype.slice),$c=X_.call(U_,RegExp.prototype.exec),hc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mc=/\\(\\)?/g,Oc=function _(T){var A=b_(T,0,1),C=b_(T,-1);if(A==="%"&&C!=="%")throw new aT("invalid intrinsic syntax, expected closing `%`");else if(C==="%"&&A!=="%")throw new aT("invalid intrinsic syntax, expected opening `%`");var E=[];return zE(T,hc,function(R,c,w,L){E[E.length]=w?zE(L,mc,"$1"):c||R}),E},Mc=function _(T,A){var C=T,E;if(P_(GE,C))E=GE[C],C="%"+E[0]+"%";if(P_(bT,C)){var R=bT[C];if(R===tT)R=nc(C);if(typeof R==="undefined"&&!A)throw new eT("intrinsic "+T+" exists, but is not available. Please file an issue!");return{alias:E,name:C,value:R}}throw new aT("intrinsic "+T+" does not exist!")};KE.exports=function _(T,A){if(typeof T!=="string"||T.length===0)throw new eT("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof A!=="boolean")throw new eT('"allowMissing" argument must be a boolean');if($c(/^%?[^%]*%?$/,T)===null)throw new aT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var C=Oc(T),E=C.length>0?C[0]:"",R=Mc("%"+E+"%",A),c=R.name,w=R.value,L=!1,Y=R.alias;if(Y)E=Y[0],Ic(C,Kc([0,1],Y));for(var F=1,J=!0;F<C.length;F+=1){var S=C[F],Z=b_(S,0,1),Q=b_(S,-1);if((Z==='"'||Z==="'"||Z==="`"||(Q==='"'||Q==="'"||Q==="`"))&&Z!==Q)throw new aT("property names with quotes must have matching quotes");if(S==="constructor"||!J)L=!0;if(E+="."+S,c="%"+E+"%",P_(bT,c))w=bT[c];else if(w!=null){if(!(S in w)){if(!A)throw new eT("base intrinsic for "+T+" exists, but the property is not available.");return}if(f_&&F+1>=C.length){var X=f_(w,S);if(J=!!X,J&&"get"in X&&!("originalValue"in X.get))w=X.get;else w=w[S]}else J=P_(w,S),w=w[S];if(J&&!L)bT[c]=w}}return w}});var JC=m((qx,hE)=>{var IE=k_(),$E=YC(),uc=$E([IE("%String.prototype.indexOf%")]);hE.exports=function _(T,A){var C=IE(T,!!A);if(typeof C==="function"&&uc(T,".prototype.")>-1)return $E([C]);return C}});var ZC=m((Yx,OE)=>{var gc=k_(),J_=JC(),Pc=Y_(),bc=gT(),mE=gc("%Map%",!0),kc=J_("Map.prototype.get",!0),vc=J_("Map.prototype.set",!0),lc=J_("Map.prototype.has",!0),yc=J_("Map.prototype.delete",!0),jc=J_("Map.prototype.size",!0);OE.exports=!!mE&&function _(){var T,A={assert:function(C){if(!A.has(C))throw new bc("Side channel does not contain "+Pc(C))},delete:function(C){if(T){var E=yc(T,C);if(jc(T)===0)T=void 0;return E}return!1},get:function(C){if(T)return kc(T,C)},has:function(C){if(T)return lc(T,C);return!1},set:function(C,E){if(!T)T=new mE;vc(T,C,E)}};return A}});var uE=m((Qx,ME)=>{var dc=k_(),l_=JC(),sc=Y_(),v_=ZC(),ic=gT(),T_=dc("%WeakMap%",!0),oc=l_("WeakMap.prototype.get",!0),pc=l_("WeakMap.prototype.set",!0),rc=l_("WeakMap.prototype.has",!0),tc=l_("WeakMap.prototype.delete",!0);ME.exports=T_?function _(){var T,A,C={assert:function(E){if(!C.has(E))throw new ic("Side channel does not contain "+sc(E))},delete:function(E){if(T_&&E&&(typeof E==="object"||typeof E==="function")){if(T)return tc(T,E)}else if(v_){if(A)return A.delete(E)}return!1},get:function(E){if(T_&&E&&(typeof E==="object"||typeof E==="function")){if(T)return oc(T,E)}return A&&A.get(E)},has:function(E){if(T_&&E&&(typeof E==="object"||typeof E==="function")){if(T)return rc(T,E)}return!!A&&A.has(E)},set:function(E,R){if(T_&&E&&(typeof E==="object"||typeof E==="function")){if(!T)T=new T_;pc(T,E,R)}else if(v_){if(!A)A=v_();A.set(E,R)}}};return C}:v_});var PE=m((fx,gE)=>{var ec=gT(),ac=Y_(),T1=WA(),_1=ZC(),C1=uE(),A1=C1||_1||T1;gE.exports=function _(){var T,A={assert:function(C){if(!A.has(C))throw new ec("Side channel does not contain "+ac(C))},delete:function(C){return!!T&&T.delete(C)},get:function(C){return T&&T.get(C)},has:function(C){return!!T&&T.has(C)},set:function(C,E){if(!T)T=A1();T.set(C,E)}};return A}});var y_=m((Ux,bE)=>{var E1=String.prototype.replace,R1=/%20/g,BC={RFC1738:"RFC1738",RFC3986:"RFC3986"};bE.exports={default:BC.RFC3986,formatters:{RFC1738:function(_){return E1.call(_,R1,"+")},RFC3986:function(_){return String(_)}},RFC1738:BC.RFC1738,RFC3986:BC.RFC3986}});var GC=m((Xx,vE)=>{var c1=y_(),VC=Object.prototype.hasOwnProperty,kT=Array.isArray,VT=function(){var _=[];for(var T=0;T<256;++T)_.push("%"+((T<16?"0":"")+T.toString(16)).toUpperCase());return _}(),x1=function _(T){while(T.length>1){var A=T.pop(),C=A.obj[A.prop];if(kT(C)){var E=[];for(var R=0;R<C.length;++R)if(typeof C[R]!=="undefined")E.push(C[R]);A.obj[A.prop]=E}}},kE=function _(T,A){var C=A&&A.plainObjects?{__proto__:null}:{};for(var E=0;E<T.length;++E)if(typeof T[E]!=="undefined")C[E]=T[E];return C},L1=function _(T,A,C){if(!A)return T;if(typeof A!=="object"&&typeof A!=="function"){if(kT(T))T.push(A);else if(T&&typeof T==="object"){if(C&&(C.plainObjects||C.allowPrototypes)||!VC.call(Object.prototype,A))T[A]=!0}else return[T,A];return T}if(!T||typeof T!=="object")return[T].concat(A);var E=T;if(kT(T)&&!kT(A))E=kE(T,C);if(kT(T)&&kT(A))return A.forEach(function(R,c){if(VC.call(T,c)){var w=T[c];if(w&&typeof w==="object"&&R&&typeof R==="object")T[c]=_(w,R,C);else T.push(R)}else T[c]=R}),T;return Object.keys(A).reduce(function(R,c){var w=A[c];if(VC.call(R,c))R[c]=_(R[c],w,C);else R[c]=w;return R},E)},H1=function _(T,A){return Object.keys(A).reduce(function(C,E){return C[E]=A[E],C},T)},w1=function(_,T,A){var C=_.replace(/\+/g," ");if(A==="iso-8859-1")return C.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(C)}catch(E){return C}},DC=1024,F1=function _(T,A,C,E,R){if(T.length===0)return T;var c=T;if(typeof T==="symbol")c=Symbol.prototype.toString.call(T);else if(typeof T!=="string")c=String(T);if(C==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(Z){return"%26%23"+parseInt(Z.slice(2),16)+"%3B"});var w="";for(var L=0;L<c.length;L+=DC){var Y=c.length>=DC?c.slice(L,L+DC):c,F=[];for(var J=0;J<Y.length;++J){var S=Y.charCodeAt(J);if(S===45||S===46||S===95||S===126||S>=48&&S<=57||S>=65&&S<=90||S>=97&&S<=122||R===c1.RFC1738&&(S===40||S===41)){F[F.length]=Y.charAt(J);continue}if(S<128){F[F.length]=VT[S];continue}if(S<2048){F[F.length]=VT[192|S>>6]+VT[128|S&63];continue}if(S<55296||S>=57344){F[F.length]=VT[224|S>>12]+VT[128|S>>6&63]+VT[128|S&63];continue}J+=1,S=65536+((S&1023)<<10|Y.charCodeAt(J)&1023),F[F.length]=VT[240|S>>18]+VT[128|S>>12&63]+VT[128|S>>6&63]+VT[128|S&63]}w+=F.join("")}return w},S1=function _(T){var A=[{obj:{o:T},prop:"o"}],C=[];for(var E=0;E<A.length;++E){var R=A[E],c=R.obj[R.prop],w=Object.keys(c);for(var L=0;L<w.length;++L){var Y=w[L],F=c[Y];if(typeof F==="object"&&F!==null&&C.indexOf(F)===-1)A.push({obj:c,prop:Y}),C.push(F)}}return x1(A),T},W1=function _(T){return Object.prototype.toString.call(T)==="[object RegExp]"},q1=function _(T){if(!T||typeof T!=="object")return!1;return!!(T.constructor&&T.constructor.isBuffer&&T.constructor.isBuffer(T))},Y1=function _(T,A){return[].concat(T,A)},Q1=function _(T,A){if(kT(T)){var C=[];for(var E=0;E<T.length;E+=1)C.push(A(T[E]));return C}return A(T)};vE.exports={arrayToObject:kE,assign:H1,combine:Y1,compact:S1,decode:w1,encode:F1,isBuffer:q1,isRegExp:W1,maybeMap:Q1,merge:L1}});var iE=m((Jx,sE)=>{var yE=PE(),j_=GC(),Z_=y_(),f1=Object.prototype.hasOwnProperty,jE={brackets:function _(T){return T+"[]"},comma:"comma",indices:function _(T,A){return T+"["+A+"]"},repeat:function _(T){return T}},DT=Array.isArray,U1=Array.prototype.push,dE=function(_,T){U1.apply(_,DT(T)?T:[T])},X1=Date.prototype.toISOString,lE=Z_.default,r={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:j_.encode,encodeValuesOnly:!1,filter:void 0,format:lE,formatter:Z_.formatters[lE],indices:!1,serializeDate:function _(T){return X1.call(T)},skipNulls:!1,strictNullHandling:!1},J1=function _(T){return typeof T==="string"||typeof T==="number"||typeof T==="boolean"||typeof T==="symbol"||typeof T==="bigint"},zC={},Z1=function _(T,A,C,E,R,c,w,L,Y,F,J,S,Z,Q,X,D,q,N){var U=T,V=N,K=0,a=!1;while((V=V.get(zC))!==void 0&&!a){var f=V.get(T);if(K+=1,typeof f!=="undefined")if(f===K)throw new RangeError("Cyclic object value");else a=!0;if(typeof V.get(zC)==="undefined")K=0}if(typeof F==="function")U=F(A,U);else if(U instanceof Date)U=Z(U);else if(C==="comma"&&DT(U))U=j_.maybeMap(U,function(lT){if(lT instanceof Date)return Z(lT);return lT});if(U===null){if(c)return Y&&!D?Y(A,r.encoder,q,"key",Q):A;U=""}if(J1(U)||j_.isBuffer(U)){if(Y){var P=D?A:Y(A,r.encoder,q,"key",Q);return[X(P)+"="+X(Y(U,r.encoder,q,"value",Q))]}return[X(A)+"="+X(String(U))]}var h=[];if(typeof U==="undefined")return h;var M;if(C==="comma"&&DT(U)){if(D&&Y)U=j_.maybeMap(U,Y);M=[{value:U.length>0?U.join(",")||null:void 0}]}else if(DT(F))M=F;else{var i=Object.keys(U);M=J?i.sort(J):i}var o=L?String(A).replace(/\./g,"%2E"):String(A),s=E&&DT(U)&&U.length===1?o+"[]":o;if(R&&DT(U)&&U.length===0)return s+"[]";for(var e=0;e<M.length;++e){var TT=M[e],AT=typeof TT==="object"&&TT&&typeof TT.value!=="undefined"?TT.value:U[TT];if(w&&AT===null)continue;var IT=S&&L?String(TT).replace(/\./g,"%2E"):String(TT),z_=DT(U)?typeof C==="function"?C(s,IT):s:s+(S?"."+IT:"["+IT+"]");N.set(T,K);var A_=yE();A_.set(zC,N),dE(h,_(AT,z_,C,E,R,c,w,L,C==="comma"&&D&&DT(U)?null:Y,F,J,S,Z,Q,X,D,q,A_))}return h},B1=function _(T){if(!T)return r;if(typeof T.allowEmptyArrays!=="undefined"&&typeof T.allowEmptyArrays!=="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof T.encodeDotInKeys!=="undefined"&&typeof T.encodeDotInKeys!=="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(T.encoder!==null&&typeof T.encoder!=="undefined"&&typeof T.encoder!=="function")throw new TypeError("Encoder has to be a function.");var A=T.charset||r.charset;if(typeof T.charset!=="undefined"&&T.charset!=="utf-8"&&T.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var C=Z_.default;if(typeof T.format!=="undefined"){if(!f1.call(Z_.formatters,T.format))throw new TypeError("Unknown format option provided.");C=T.format}var E=Z_.formatters[C],R=r.filter;if(typeof T.filter==="function"||DT(T.filter))R=T.filter;var c;if(T.arrayFormat in jE)c=T.arrayFormat;else if("indices"in T)c=T.indices?"indices":"repeat";else c=r.arrayFormat;if("commaRoundTrip"in T&&typeof T.commaRoundTrip!=="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var w=typeof T.allowDots==="undefined"?T.encodeDotInKeys===!0?!0:r.allowDots:!!T.allowDots;return{addQueryPrefix:typeof T.addQueryPrefix==="boolean"?T.addQueryPrefix:r.addQueryPrefix,allowDots:w,allowEmptyArrays:typeof T.allowEmptyArrays==="boolean"?!!T.allowEmptyArrays:r.allowEmptyArrays,arrayFormat:c,charset:A,charsetSentinel:typeof T.charsetSentinel==="boolean"?T.charsetSentinel:r.charsetSentinel,commaRoundTrip:!!T.commaRoundTrip,delimiter:typeof T.delimiter==="undefined"?r.delimiter:T.delimiter,encode:typeof T.encode==="boolean"?T.encode:r.encode,encodeDotInKeys:typeof T.encodeDotInKeys==="boolean"?T.encodeDotInKeys:r.encodeDotInKeys,encoder:typeof T.encoder==="function"?T.encoder:r.encoder,encodeValuesOnly:typeof T.encodeValuesOnly==="boolean"?T.encodeValuesOnly:r.encodeValuesOnly,filter:R,format:C,formatter:E,serializeDate:typeof T.serializeDate==="function"?T.serializeDate:r.serializeDate,skipNulls:typeof T.skipNulls==="boolean"?T.skipNulls:r.skipNulls,sort:typeof T.sort==="function"?T.sort:null,strictNullHandling:typeof T.strictNullHandling==="boolean"?T.strictNullHandling:r.strictNullHandling}};sE.exports=function(_,T){var A=_,C=B1(T),E,R;if(typeof C.filter==="function")R=C.filter,A=R("",A);else if(DT(C.filter))R=C.filter,E=R;var c=[];if(typeof A!=="object"||A===null)return"";var w=jE[C.arrayFormat],L=w==="comma"&&C.commaRoundTrip;if(!E)E=Object.keys(A);if(C.sort)E.sort(C.sort);var Y=yE();for(var F=0;F<E.length;++F){var J=E[F],S=A[J];if(C.skipNulls&&S===null)continue;dE(c,Z1(S,J,w,L,C.allowEmptyArrays,C.strictNullHandling,C.skipNulls,C.encodeDotInKeys,C.encode?C.encoder:null,C.filter,C.sort,C.allowDots,C.serializeDate,C.format,C.formatter,C.encodeValuesOnly,C.charset,Y))}var Z=c.join(C.delimiter),Q=C.addQueryPrefix===!0?"?":"";if(C.charsetSentinel)if(C.charset==="iso-8859-1")Q+="utf8=%26%2310003%3B&";else Q+="utf8=%E2%9C%93&";return Z.length>0?Q+Z:""}});var tE=m((Zx,rE)=>{var vT=GC(),NC=Object.prototype.hasOwnProperty,oE=Array.isArray,l={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:vT.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1000,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},V1=function(_){return _.replace(/&#(\d+);/g,function(T,A){return String.fromCharCode(parseInt(A,10))})},pE=function(_,T,A){if(_&&typeof _==="string"&&T.comma&&_.indexOf(",")>-1)return _.split(",");if(T.throwOnLimitExceeded&&A>=T.arrayLimit)throw new RangeError("Array limit exceeded. Only "+T.arrayLimit+" element"+(T.arrayLimit===1?"":"s")+" allowed in an array.");return _},D1="utf8=%26%2310003%3B",G1="utf8=%E2%9C%93",z1=function _(T,A){var C={__proto__:null},E=A.ignoreQueryPrefix?T.replace(/^\?/,""):T;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var R=A.parameterLimit===1/0?void 0:A.parameterLimit,c=E.split(A.delimiter,A.throwOnLimitExceeded?R+1:R);if(A.throwOnLimitExceeded&&c.length>R)throw new RangeError("Parameter limit exceeded. Only "+R+" parameter"+(R===1?"":"s")+" allowed.");var w=-1,L,Y=A.charset;if(A.charsetSentinel){for(L=0;L<c.length;++L)if(c[L].indexOf("utf8=")===0){if(c[L]===G1)Y="utf-8";else if(c[L]===D1)Y="iso-8859-1";w=L,L=c.length}}for(L=0;L<c.length;++L){if(L===w)continue;var F=c[L],J=F.indexOf("]="),S=J===-1?F.indexOf("="):J+1,Z,Q;if(S===-1)Z=A.decoder(F,l.decoder,Y,"key"),Q=A.strictNullHandling?null:"";else Z=A.decoder(F.slice(0,S),l.decoder,Y,"key"),Q=vT.maybeMap(pE(F.slice(S+1),A,oE(C[Z])?C[Z].length:0),function(D){return A.decoder(D,l.decoder,Y,"value")});if(Q&&A.interpretNumericEntities&&Y==="iso-8859-1")Q=V1(String(Q));if(F.indexOf("[]=")>-1)Q=oE(Q)?[Q]:Q;var X=NC.call(C,Z);if(X&&A.duplicates==="combine")C[Z]=vT.combine(C[Z],Q);else if(!X||A.duplicates==="last")C[Z]=Q}return C},N1=function(_,T,A,C){var E=0;if(_.length>0&&_[_.length-1]==="[]"){var R=_.slice(0,-1).join("");E=Array.isArray(T)&&T[R]?T[R].length:0}var c=C?T:pE(T,A,E);for(var w=_.length-1;w>=0;--w){var L,Y=_[w];if(Y==="[]"&&A.parseArrays)L=A.allowEmptyArrays&&(c===""||A.strictNullHandling&&c===null)?[]:vT.combine([],c);else{L=A.plainObjects?{__proto__:null}:{};var F=Y.charAt(0)==="["&&Y.charAt(Y.length-1)==="]"?Y.slice(1,-1):Y,J=A.decodeDotInKeys?F.replace(/%2E/g,"."):F,S=parseInt(J,10);if(!A.parseArrays&&J==="")L={0:c};else if(!isNaN(S)&&Y!==J&&String(S)===J&&S>=0&&(A.parseArrays&&S<=A.arrayLimit))L=[],L[S]=c;else if(J!=="__proto__")L[J]=c}c=L}return c},n1=function _(T,A,C,E){if(!T)return;var R=C.allowDots?T.replace(/\.([^.[]+)/g,"[$1]"):T,c=/(\[[^[\]]*])/,w=/(\[[^[\]]*])/g,L=C.depth>0&&c.exec(R),Y=L?R.slice(0,L.index):R,F=[];if(Y){if(!C.plainObjects&&NC.call(Object.prototype,Y)){if(!C.allowPrototypes)return}F.push(Y)}var J=0;while(C.depth>0&&(L=w.exec(R))!==null&&J<C.depth){if(J+=1,!C.plainObjects&&NC.call(Object.prototype,L[1].slice(1,-1))){if(!C.allowPrototypes)return}F.push(L[1])}if(L){if(C.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+C.depth+" and strictDepth is true");F.push("["+R.slice(L.index)+"]")}return N1(F,A,C,E)},K1=function _(T){if(!T)return l;if(typeof T.allowEmptyArrays!=="undefined"&&typeof T.allowEmptyArrays!=="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof T.decodeDotInKeys!=="undefined"&&typeof T.decodeDotInKeys!=="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(T.decoder!==null&&typeof T.decoder!=="undefined"&&typeof T.decoder!=="function")throw new TypeError("Decoder has to be a function.");if(typeof T.charset!=="undefined"&&T.charset!=="utf-8"&&T.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof T.throwOnLimitExceeded!=="undefined"&&typeof T.throwOnLimitExceeded!=="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var A=typeof T.charset==="undefined"?l.charset:T.charset,C=typeof T.duplicates==="undefined"?l.duplicates:T.duplicates;if(C!=="combine"&&C!=="first"&&C!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var E=typeof T.allowDots==="undefined"?T.decodeDotInKeys===!0?!0:l.allowDots:!!T.allowDots;return{allowDots:E,allowEmptyArrays:typeof T.allowEmptyArrays==="boolean"?!!T.allowEmptyArrays:l.allowEmptyArrays,allowPrototypes:typeof T.allowPrototypes==="boolean"?T.allowPrototypes:l.allowPrototypes,allowSparse:typeof T.allowSparse==="boolean"?T.allowSparse:l.allowSparse,arrayLimit:typeof T.arrayLimit==="number"?T.arrayLimit:l.arrayLimit,charset:A,charsetSentinel:typeof T.charsetSentinel==="boolean"?T.charsetSentinel:l.charsetSentinel,comma:typeof T.comma==="boolean"?T.comma:l.comma,decodeDotInKeys:typeof T.decodeDotInKeys==="boolean"?T.decodeDotInKeys:l.decodeDotInKeys,decoder:typeof T.decoder==="function"?T.decoder:l.decoder,delimiter:typeof T.delimiter==="string"||vT.isRegExp(T.delimiter)?T.delimiter:l.delimiter,depth:typeof T.depth==="number"||T.depth===!1?+T.depth:l.depth,duplicates:C,ignoreQueryPrefix:T.ignoreQueryPrefix===!0,interpretNumericEntities:typeof T.interpretNumericEntities==="boolean"?T.interpretNumericEntities:l.interpretNumericEntities,parameterLimit:typeof T.parameterLimit==="number"?T.parameterLimit:l.parameterLimit,parseArrays:T.parseArrays!==!1,plainObjects:typeof T.plainObjects==="boolean"?T.plainObjects:l.plainObjects,strictDepth:typeof T.strictDepth==="boolean"?!!T.strictDepth:l.strictDepth,strictNullHandling:typeof T.strictNullHandling==="boolean"?T.strictNullHandling:l.strictNullHandling,throwOnLimitExceeded:typeof T.throwOnLimitExceeded==="boolean"?T.throwOnLimitExceeded:!1}};rE.exports=function(_,T){var A=K1(T);if(_===""||_===null||typeof _==="undefined")return A.plainObjects?{__proto__:null}:{};var C=typeof _==="string"?z1(_,A):_,E=A.plainObjects?{__proto__:null}:{},R=Object.keys(C);for(var c=0;c<R.length;++c){var w=R[c],L=n1(w,C[w],A,typeof _==="string");E=vT.merge(E,L,A)}if(A.allowSparse===!0)return E;return vT.compact(E)}});var aE=m((Bx,eE)=>{var I1=iE(),$1=tE(),h1=y_();eE.exports={formats:h1,parse:$1,stringify:I1}});var UL=N_(n_(),1);var kC={};D0(kC,{zodSchemaKey:()=>z0,webSocketServerArgsKey:()=>QT,webSocketMessageArgsKey:()=>MT,webSocketKey:()=>YT,webSocketEventKey:()=>OT,webSocketEventArgumentsKey:()=>_T,webSocketConnectionArgsKey:()=>fT,webSocketCloseReasonArgsKey:()=>c_,webSocketCloseCodeArgsKey:()=>R_,routeModelArgsKey:()=>LT,responseStatusTextArgsKey:()=>t_,responseStatusArgsKey:()=>H_,responseHeadersArgsKey:()=>CT,responseBodyArgsKey:()=>L_,requestHeadersArgsKey:()=>UT,requestHeaderArgsKey:()=>cT,requestBodyArgsKey:()=>XT,requestArgsKey:()=>xT,queryArgsKey:()=>x_,paramsArgsKey:()=>iT,paramArgsKey:()=>JT,moduleKey:()=>qT,middlewareKey:()=>WT,interceptorKey:()=>mT,injectableKey:()=>NT,injectKey:()=>sT,httpServerArgsKey:()=>RT,guardKey:()=>zT,controllerKey:()=>ST,controllerHttpKey:()=>dT,contextArgsKey:()=>ZT,containerKey:()=>ET,configKey:()=>K_,argumentsKey:()=>k});var k=Symbol("__bool:arguments__"),_T=Symbol("__bool:webSocketEventArguments__"),K_=Symbol("__bool:config__"),ST=Symbol("__bool:controller__"),mT=Symbol("__bool:interceptor__"),zT=Symbol("__bool:guard__"),dT=Symbol("__bool:controller.http__"),sT=Symbol("__bool:inject__"),NT=Symbol("__bool:injectable__"),WT=Symbol("__bool:middleware__"),qT=Symbol("__bool:module__"),ET=Symbol("__bool:container__"),z0=Symbol("__bool:zodSchema__"),YT=Symbol("__bool:webSocket__"),OT=Symbol("__bool:webSocket:event__"),QT=Symbol("__bool:webSocketArguments:server__"),fT=Symbol("__bool:webSocketArguments:connection__"),MT=Symbol("__bool:webSocketArguments:message__"),R_=Symbol("__bool:webSocketArguments:closeCode__"),c_=Symbol("__bool:webSocketArguments:closeReason__"),RT=Symbol("__bool:httpArguments:server__"),UT=Symbol("__bool:httpArguments:requestHeaders__"),cT=Symbol("__bool:httpArguments:requestHeader__"),XT=Symbol("__bool:httpArguments:requestBody__"),iT=Symbol("__bool:httpArguments:params__"),JT=Symbol("__bool:httpArguments:param__"),x_=Symbol("__bool:httpArguments:query__"),xT=Symbol("__bool:httpArguments:request__"),CT=Symbol("__bool:httpArguments:responseHeaders__"),ZT=Symbol("__bool:httpArguments:context__"),LT=Symbol("__bool:httpArguments:routeModel__"),L_=Symbol("__bool:httpArguments:responseBody__"),H_=Symbol("__bool:httpArguments:responseStatus__"),t_=Symbol("__bool:httpArguments:responseStatusText__");var N0=(_)=>(T,A,C)=>{if(!A)return;let E=Reflect.getOwnMetadata(k,T.constructor,A)||{};E[`argumentIndexes.${C}`]={index:C,type:UT,validationSchema:_},Reflect.defineMetadata(k,E,T.constructor,A)},n0=(_,T)=>(A,C,E)=>{if(!C)return;let R=Reflect.getOwnMetadata(k,A.constructor,C)||{};R[`argumentIndexes.${E}`]={index:E,type:cT,key:_,validationSchema:T},Reflect.defineMetadata(k,R,A.constructor,C)},K0=(_,T)=>(A,C,E)=>{if(!C)return;let R=Reflect.getOwnMetadata(k,A.constructor,C)||{};R[`argumentIndexes.${E}`]={index:E,type:XT,validationSchema:_,parser:T},Reflect.defineMetadata(k,R,A.constructor,C)},I0=(_)=>(T,A,C)=>{if(!A)return;let E=Reflect.getOwnMetadata(k,T.constructor,A)||{};E[`argumentIndexes.${C}`]={index:C,type:iT,validationSchema:_},Reflect.defineMetadata(k,E,T.constructor,A)},$0=(_,T)=>(A,C,E)=>{if(!C)return;let R=Reflect.getOwnMetadata(k,A.constructor,C)||{};R[`argumentIndexes.${E}`]={index:E,type:JT,key:_,validationSchema:T},Reflect.defineMetadata(k,R,A.constructor,C)},h0=(_)=>(T,A,C)=>{if(!A)return;let E=Reflect.getOwnMetadata(k,T.constructor,A)||{};E[`argumentIndexes.${C}`]={index:C,type:x_,validationSchema:_},Reflect.defineMetadata(k,E,T.constructor,A)},m0=(_)=>(T,A,C)=>{if(!A)return;let E=Reflect.getOwnMetadata(k,T.constructor,A)||{};E[`argumentIndexes.${C}`]={index:C,type:xT,validationSchema:_},Reflect.defineMetadata(k,E,T.constructor,A)},O0=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(k,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:CT},Reflect.defineMetadata(k,C,_.constructor,T)},M0=(_)=>(T,A,C)=>{if(!A)return;let E=Reflect.getOwnMetadata(k,T.constructor,A)||{};E[`argumentIndexes.${C}`]={index:C,type:ZT,key:_},Reflect.defineMetadata(k,E,T.constructor,A)},u0=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(k,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:LT},Reflect.defineMetadata(k,C,_.constructor,T)},g0=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(k,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:RT},Reflect.defineMetadata(k,C,_.constructor,T)};var P0=(_)=>(T)=>{let{modules:A,middlewares:C,guards:E,dependencies:R}=_||{};if(Reflect.hasOwnMetadata(qT,T))throw new Error(`Conflict detected! ${T.name} class cannot be both a Module and a Container.`);if(A){for(let c=0;c<A.length;c++)if(!Reflect.getOwnMetadataKeys(A[c]).includes(qT))throw Error(`${A[c].name} is not a module.`)}if(C){for(let c=0;c<C.length;c++)if(!Reflect.getOwnMetadataKeys(C[c]).includes(WT))throw Error(`${C[c].name} is not a middleware.`)}if(C){for(let c=0;c<C.length;c++)if(!Reflect.getOwnMetadataKeys(C[c]).includes(WT))throw Error(`${C[c].name} is not a middleware.`)}if(E){for(let c=0;c<E.length;c++)if(!Reflect.getOwnMetadataKeys(E[c]).includes(zT))throw Error(`${E[c].name} is not a guard.`)}if(R){for(let c=0;c<R.length;c++)if(!Reflect.getOwnMetadataKeys(R[c]).includes(NT))throw Error(`${R[c].name} is not an injectable.`)}Reflect.defineMetadata(ET,_,T)};var b0=(_)=>(T)=>{let A={prefix:!_?.startsWith("/")?`/${_||""}`:_,httpMetadata:[...Reflect.getOwnMetadata(dT,T)||[]]};Reflect.defineMetadata(ST,A,T)};var k0=()=>(_)=>{if(!("enforce"in _.prototype)||typeof _.prototype.enforce!=="function")return;let T=void 0;return Reflect.defineMetadata(zT,T,_),_};var oT=(_,T)=>(A,C,E)=>{if(!(E?.value instanceof Function))throw Error(`${T} decorator only use for class method.`);let R=Reflect.getOwnMetadata(k,A.constructor,C)||{},c=[...Reflect.getOwnMetadata(dT,A.constructor)||[],{path:!_.startsWith("/")?`/${_}`:_,httpMethod:T.toUpperCase(),methodName:C,descriptor:E,argumentsMetadata:R}];Reflect.defineMetadata(dT,c,A.constructor)},v0=(_="/")=>oT(_,"Get"),l0=(_="/")=>oT(_,"Post"),y0=(_="/")=>oT(_,"Put"),j0=(_="/")=>oT(_,"Patch"),d0=(_="/")=>oT(_,"Delete"),s0=(_="/")=>oT(_,"Options");var i0=(_)=>(T,A,C)=>{let E=Reflect.getMetadata(sT,T)||[];E[C]=_,Reflect.defineMetadata(sT,E,T)};var o0=()=>(_)=>Reflect.defineMetadata(NT,void 0,_);var p0=()=>(_)=>{Reflect.defineMetadata(mT,void 0,_)};var r0=()=>(_)=>{Reflect.defineMetadata(WT,void 0,_)};var t0=(_)=>(T)=>{if(Reflect.hasOwnMetadata(ET,T))throw new Error(`Conflict detected! ${T.name} class cannot be both a Module and a Container.`);let{middlewares:A,guards:C,interceptors:E,controllers:R,dependencies:c,webSockets:w}=_||{};if(A){for(let L=0;L<A.length;L++)if(!Reflect.getOwnMetadataKeys(A[L]).includes(WT))throw Error(`${A[L].name} is not a middleware.`)}if(C){for(let L=0;L<C.length;L++)if(!Reflect.getOwnMetadataKeys(C[L]).includes(zT))throw Error(`${C[L].name} is not a guard.`)}if(E){for(let L=0;L<E.length;L++)if(!Reflect.getOwnMetadataKeys(E[L]).includes(mT))throw Error(`${E[L].name} is not a interceptor.`)}if(R){for(let L=0;L<R.length;L++)if(!Reflect.getOwnMetadataKeys(R[L]).includes(ST))throw Error(`${R[L].name} is not a controller.`)}if(c){for(let L=0;L<c.length;L++)if(!Reflect.getOwnMetadataKeys(c[L]).includes(NT))throw Error(`${c[L].name} is not an injectable.`)}if(w){for(let L=0;L<w.length;L++)if(!Reflect.getOwnMetadataKeys(w[L]).includes(YT))throw Error(`${w[L].name} is not a websocket gateway.`)}Reflect.defineMetadata(qT,_,T)};var I_=Symbol("__bool:webSocket.upgrade__"),e0=(_,T,A)=>{let C=new URL(T.url);return _.upgrade(T,{data:{method:T.method.toUpperCase(),pathname:C.pathname,query:A}})},a0=(_)=>(T)=>{let{prefix:A}=_||{};T.prototype[I_]=e0;let C=Object.getOwnPropertyDescriptor(T.prototype,I_),E=!C?[]:[{path:"/",httpMethod:"GET",methodName:I_,descriptor:C,argumentsMetadata:{}},{path:"/",httpMethod:"POST",methodName:I_,descriptor:C,argumentsMetadata:{}}],R={prefix:!A?.startsWith("/")?`/${A||""}`:A,events:Reflect.getOwnMetadata(OT,T)||{},http:E};Reflect.defineMetadata(YT,R,T)};var TR=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:fT},Reflect.defineMetadata(_T,C,_.constructor,T)},_R=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:QT},Reflect.defineMetadata(_T,C,_.constructor,T)},CR=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:R_},Reflect.defineMetadata(_T,C,_.constructor,T)},AR=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:c_},Reflect.defineMetadata(_T,C,_.constructor,T)},ER=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:MT},Reflect.defineMetadata(_T,C,_.constructor,T)};var RR=(_)=>(T,A,C)=>{if(!(C.value instanceof Function))throw Error("WebSocketEvent decorator only use for class's method.");let E=Reflect.getOwnMetadata(_T,T.constructor,A),R=Object.freeze({methodName:A,descriptor:C,arguments:E}),c={...Reflect.getOwnMetadata(OT,T.constructor)||void 0,[_]:R};Reflect.defineMetadata(OT,R,T.constructor,A),Reflect.defineMetadata(OT,c,T.constructor)};var cR=Object.freeze({400:"BAD_REQUEST",401:"UNAUTHORIZED",402:"PAYMENT_REQUIRED",403:"FORBIDDEN",404:"NOT_FOUND",405:"METHOD_NOT_ALLOWED",406:"NOT_ACCEPTABLE",407:"PROXY_AUTHENCATION_REQUIRED",408:"REQUEST_TIMEOUT",409:"CONFLICT",410:"GONE",411:"LENGTH_REQUIRED",412:"PRECONDITION_FAILED",413:"PAYLOAD_TOO_LARGE",414:"URI_TOO_LONG",415:"UNSUPPORTED_MEDIA_TYPE",416:"RANGE_NOT_SATISFIABLE",417:"EXPECTATION_FAILED",418:"IM_A_TEAPOT",421:"MISDIRECTED_REQUEST",422:"UNPROCESSABLE_ENTITY",423:"LOCKED",424:"FAILED_DEPENDENCY",425:"TOO_EARLY_",426:"UPGRAGE_REQUIRED",428:"PRECONDITION_REQUIRED",429:"TOO_MANY_REQUESTS",431:"REQUEST_HEADER_FIELDS_TOO_LARGE",451:"UNAVAILABLE_FOR_LEGAL_REASONS"});class uT extends Error{httpCode;message;data;constructor({httpCode:_,data:T,message:A}){super();this.httpCode=_,this.message=!A?.trim()?cR[_]:A.trim(),this.data=T}}var xR=Object.freeze({500:"INTERNAL_SERVER_ERROR",501:"NOT_IMPLEMENTED",502:"BAD_GATEWAY",503:"SERVICE_UNAVAILABLE",504:"GATEWAY_TIMEOUT",505:"HTTP_VERSION_NOT_SUPPORTED",506:"VARIANT_ALSO_NEGOTIATES",507:"INSUFFICIENT_STORAGE",508:"LOOP_DETECTED",510:"NOT_EXTENDED",511:"NETWORK_AUTHENTICATION_REQUIRED"});class w_ extends Error{httpCode;message;data;constructor({httpCode:_,data:T,message:A}){super();this.httpCode=_,this.message=!A?.trim()?xR[_]:A.trim(),this.data=T}}var vC=(_,T=new Headers)=>{if(T.set("Content-Type","application/json"),_ instanceof uT||_ instanceof w_)return new Response(JSON.stringify(_),{status:_.httpCode,statusText:_.message,headers:T});return new Response(JSON.stringify((()=>{switch(typeof _){case"object":return!(_ instanceof Error)?_:{message:_.message,code:_.name,cause:_.cause};case"string":return{message:_};case"number":return{code:_};default:return}})()),{status:500,statusText:"INTERNAL SERVER ERROR",headers:T})};var HT;(function(_){_.year="year",_.month="month",_.day="day",_.hours="hours",_.minutes="minutes",_.seconds="seconds",_.miliseconds="miliseconds"})(HT||(HT={}));var lC=(_,T,A=HT.day)=>{let C=_ instanceof Date?_:new Date(_);switch(A){case HT.year:C.setFullYear(C.getFullYear()+T);break;case HT.month:C.setMonth(C.getMonth()+T);break;case HT.day:C.setDate(C.getDate()+T);break;case HT.hours:C.setHours(C.getHours()+T);break;case HT.minutes:C.setMinutes(C.getMinutes()+T);break;case HT.seconds:C.setSeconds(C.getSeconds()+T);break;case HT.miliseconds:C.setMilliseconds(C.getMilliseconds()+T);break}return C};var R0=N_(aE(),1);var Vx=async function(){}.constructor;var T0=Object.freeze({black:30,red:31,green:32,yellow:33,blue:34,magenta:35,cyan:36,white:37,gray:90}),_0=Object.freeze({black:40,red:41,green:42,yellow:43,blue:44,magenta:45,cyan:46,white:47,gray:100}),KT=(_,T={})=>{let{color:A,backgroundColor:C,bold:E,underline:R}=T,c="";if(E)c+="\x1B[1m";if(R)c+="\x1B[4m";if(A&&T0[A])c+=`\x1B[${T0[A]}m`;if(C&&_0[C])c+=`\x1B[${_0[C]}m`;return`${c}${_}\x1B[0m`};var C0=(_)=>{let{headers:T,method:A}=_,C=T.get("upgrade")?.toLowerCase()||"",E=T.get("connection")?.toLowerCase()||"";return A==="GET"&&C?.toLowerCase()==="websocket"&&E?.toLowerCase().includes("upgrade")};class B_{_staticMap=new Map;_dynamicMap=new Map;_options=void 0;constructor(..._){_.forEach((T)=>{T.staticEntries.forEach(([A,C])=>this.set(A,C,{isStatic:!0,isPassthrough:!0})),T.dynamicEntries.forEach(([A,C])=>this.set(A,C,{isStatic:!1}))})}get(_,T){return!(T||this._options)?.isStatic?this._dynamicMap.get(_):this._staticMap.get(_)}has(_,T){return!(T||this._options)?.isStatic?this._dynamicMap.has(_):this._staticMap.has(_)}set(_,T,A){let C=A||this._options;if(!C?.isStatic)this._dynamicMap.set(_,T);else if(!this._staticMap.has(_))this._staticMap.set(_,T);else if(!C.isPassthrough)throw Error(`${String(_)} already exists in context static collection.`);return this}setOptions(_){return this._options=_,this}get staticEntries(){return[...this._staticMap.entries()]}get dynamicEntries(){return[...this._dynamicMap.entries()]}}class GT{static rootPattern=":([a-z0-9A-Z_-]{1,})";static innerRootPattern="([a-z0-9A-Z_-]{1,})";alias;_map=new Map;constructor(_){this.alias=this._thinAlias(_)}test(_,T){try{let A=this._map.get(T),C=this.alias.split("/"),E=this._thinAlias(_).split("/");if(!A)return;if(C.length!==E.length)return;let R=Object(),c=this.alias.replace(new RegExp(GT.rootPattern,"g"),GT.innerRootPattern);if(!new RegExp(c).test(this._thinAlias(_)))return;for(let w=0;w<C.length;w++){let L=C[w],Y=E[w];if(!new RegExp(GT.rootPattern,"g").test(L)){if(L!==Y)return}else{let F=!1;if(L.replace(new RegExp(GT.rootPattern,"g"),(J,S,Z)=>{if(Z===0)Y.replace(new RegExp(GT.innerRootPattern,"g"),(Q,X,D)=>{if(D===0)Object.assign(R,{[S]:Q});return Q});return J}),F)return}continue}return Object.freeze({parameters:R,model:A})}catch(A){return console.error(A),!1}}isMatch(_,T){try{if(!this._map.get(T))return;let C=this.alias.split("/"),E=this._thinAlias(_).split("/");if(C.length!==E.length)return!1;let R=Object();for(let c=0;c<C.length;c++){let w=C[c],L=E[c];if(!new RegExp(GT.rootPattern,"g").test(w)){if(w!==L)return!1}else{let Y=!1;if(w.replace(new RegExp(GT.rootPattern,"g"),(F,J,S)=>{if(!new RegExp(S,"g").test(L))Y=!0;else Object.assign(R,{[J]:L});return""}),Y)return!1}continue}return!0}catch(A){console.error(A);return}}get(_){if(!this._map.get("GET"))this._map.set("GET",_);return this}post(_){if(!this._map.get("POST"))this._map.set("POST",_);return this}put(_){if(!this._map.get("PUT"))this._map.set("PUT",_);return this}delete(_){if(!this._map.get("DELETE"))this._map.set("DELETE",_);return this}connect(_){if(!this._map.get("CONNECT"))return this._map.set("CONNECT",_);return this}options(_){if(!this._map.get("OPTIONS"))return this._map.set("OPTIONS",_);return this}trace(_){if(!this._map.get("TRACE"))return this._map.set("TRACE",_);return this}patch(_){if(!this._map.get("PATCH"))return this._map.set("PATCH",_);return this}_thinAlias(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get _fullPath(){return this.alias.split("/").map((A,C)=>{let E=new RegExp(":([a-z0-9A-Z_.-]{1,})(\\(.*?\\))","g");if(!E.test(A)){if(E=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!E.test(A))return A;return A.replace(E,(R,c)=>`${R}(.*?)`)}return A}).join("/")}get _filteredPath(){return this.alias.split("/").map((A,C)=>{let E=new RegExp(":([a-z0-9A-Z_.-]{1,})((.*?))","g");if(!E.test(A)){if(E=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!E.test(A))return A;return A.replace(E,(R,c)=>"(.*?)")}return A.replace(E,(R,c,w)=>w)}).join("/")}}var A0=GT;class V_{alias;_routes=new Map;constructor(_){this.alias=this._thinAlias(_)}route(_){let T=this._thinAlias(`${this.alias}/${_}`),A=this._routes.get(T),C=!A?new A0(`${this.alias}/${_}`):A;if(!A)this._routes.set(T,C);return C}_thinAlias(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get routes(){return this._routes}}class D_{_routers=new Map;add(..._){for(let T of _){if(this._routers.has(T.alias))continue;this._routers.set(T.alias,T)}return this}find(_,T){for(let A of this._routers.values())for(let C of A.routes.values()){let E=C.test(_,T);if(!E)continue;return E}return}}var gx=N_(n_(),1);class __{_mapper=new Map;constructor(..._){_.forEach((T)=>{T.entries.forEach(([A,C])=>{this._mapper.set(A,C)})})}get(_){if(this._mapper.has(_))return this._mapper.get(_);if(typeof _!=="function")return;let T=Reflect.getMetadataKeys(_);if(![NT,ST,WT,zT,mT,YT].some((R)=>T.includes(R)))throw Error("Missing dependency declaration, please check @Injectable() used on dependency(ies).");let C=(Reflect.getOwnMetadata(sT,_)||[]).map((R)=>this.get(R)),E=new _(...C);return this._mapper.set(_,E),E}set(_,T){if(this._mapper.has(_))throw Error(`${String(_)} already exists in injector collection.`);this._mapper.set(_,T)}get entries(){return[...this._mapper.entries()]}}class nC{error;constructor(_){this.error=_}}var E0=nC;class d_{eventName;metadata;_context=void 0;constructor({eventName:_,metadata:T}){this.eventName=_,this.metadata=T}bind(_){return this._context=_,this}execute(){if(this._context&&typeof this.metadata.descriptor.value==="function")this.metadata.descriptor.value=this.metadata.descriptor.value.bind(this._context);return Object.freeze({methodName:this.metadata.methodName,descriptor:this.metadata.descriptor,arguments:this.metadata.arguments})}}class G_{rawAlias;alias;routes=[];constructor(_="/"){this.rawAlias=_;this.alias=G_.thinAlias(_)}addRoutes(..._){for(let T of _)if(!this.routes.includes(T))this.routes.push(T);return this}bind(_){for(let T of this.routes)T.bind(_);return this}execute(){let _=new Map;for(let T of this.routes)_.set(`${this.alias}:::${T.eventName}`,T.execute());return _}static thinAlias(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}class C_{rawPrefix;prefix;routers=[];constructor(_="/"){this.rawPrefix=_;this.prefix=C_.thinPrefix(_)}addRouters(..._){for(let T=0;T<_.length;T++)if(!this.routers.includes(_[T]))this.routers.push(_[T]);for(let T of _)if(!this.routers.includes(T))this.routers.push(T);return this}execute(){let _=new Map;for(let T of this.routers){let A=T.execute();for(let[C,E]of A.entries())_.set(`/${C_.thinPrefix(`${this.prefix}/${C}`)}`,E)}return _}static thinPrefix(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}class s_{classConstructor;options;#_;#T;#E=new __;#C=new Map;#R;#c=900;#A;constructor(_,T){this.classConstructor=_;this.options=T;if(this.#T=Reflect.getOwnMetadataKeys(_),!this.#T.includes(ET)&&!this.#T.includes(qT))throw Error(`Can not detect! ${_.name} class is not a container or module.`);this.#c=typeof T.static?.cacheTimeInSeconds!=="number"?900:T.static.cacheTimeInSeconds,this.#R=Object.freeze({allowLogsMethods:this.options?.log?.methods||[],staticOption:this.options.static,allowOrigins:!this.options.cors?.origins?["*"]:typeof this.options.cors.origins!=="string"?this.options.cors.origins.includes("*")||this.options.cors.origins.length<1?["*"]:this.options.cors.origins:[this.options.cors.origins!=="*"?this.options.cors.origins:"*"],allowMethods:this.options.cors?.methods||["GET","POST","PUT","PATCH","DELETE","OPTIONS"],allowCredentials:!this.options.cors?.credentials?!1:!0,allowHeaders:!this.options.cors?.headers||this.options.cors.headers.includes("*")?["*"]:this.options.cors.headers})}useValidator(_){this.#A=_}async preLaunch(){if(this.#_)return this.#_;let _=!this.#T.includes(ET)?void 0:Reflect.getOwnMetadata(ET,this.classConstructor),T=!this.#T.includes(ET)?[this.classConstructor]:_?.modules||[],A=!_?void 0:await this.containerResolution({containerClass:this.classConstructor,options:this.options,extendInjector:this.#E}),C=await Promise.all(T.map((w)=>this.moduleResolution({moduleClass:w,options:this.options,extendInjector:!A?this.#E:A.injector})));if([...new Set(C.map((w)=>w.prefix))].length!==C.length)throw Error("Module prefix should be unique.");let R=new Map;for(let w of C){let L=w.webSocketRouterGroup.execute();for(let[Y,F]of L.entries())R.set(Y,F)}let c=Object.freeze({containerMetadata:_,modulesConverted:T,resolutedContainer:A,resolutedModules:C,webSocketsMap:R});return this.#_=c,c}async listen(){let{allowLogsMethods:_,allowOrigins:T,allowMethods:A,allowHeaders:C,allowCredentials:E,staticOption:R}=this.#R,{resolutedContainer:c,resolutedModules:w,webSocketsMap:L}=await this.preLaunch(),Y=Bun.serve({port:this.options.port,fetch:async(F,J)=>{let S=performance.now(),Z=new URL(F.url),Q=R0.parse(Z.searchParams.toString(),this.options.queryParser),X=F.headers.get("origin")||"*",D=F.method.toUpperCase(),q=new Headers,N=new B_().setOptions({isStatic:!0}).set(RT,J).set(xT,F).set(cT,F.headers).set(CT,q).set(x_,Q);try{let U=C0(F),V;if(U){for(let M of w){let i=M.webSocketHttpRouterGroup.find(Z.pathname,F.method);if(i){V=Object.freeze({route:i,resolution:M});break}}if(!V)return this.finalizeResponse(new Response(JSON.stringify({httpCode:404,message:"Route not found",data:void 0}),{status:404,statusText:"Not found.",headers:q}));let h=await this.webSocketFetcher({request:F,server:J},{query:Q,responseHeaders:q,route:V.route,moduleResolution:V.resolution});return h instanceof Response?h:void 0}if([...!E?[]:[{key:"Access-Control-Allow-Credentials",value:"true"}],{key:"Access-Control-Allow-Origin",value:T.includes("*")?"*":!T.includes(X)?T[0]:X},{key:"Access-Control-Allow-Methods",value:A.join(", ")},{key:"Access-Control-Allow-Headers",value:C.join(", ")}].forEach(({key:h,value:M})=>q.set(h,M)),!A.includes(D))return this.finalizeResponse(new Response(void 0,{status:405,statusText:"Method Not Allowed.",headers:q}));if(F.method.toUpperCase()==="OPTIONS")return this.finalizeResponse(T.includes("*")||T.includes(X)?new Response(void 0,{status:204,statusText:"No Content.",headers:q}):new Response(void 0,{status:417,statusText:"Expectation Failed.",headers:q}));if(R){let{path:h,headers:M}=R,i=`${h}/${Z.pathname}`,o=this.#C.get(i);if(!o){let s=Bun.file(i);if(await s.exists()){if(M)for(let[TT,AT]of Object.entries(M))q.set(TT,AT);return q.set("Content-Type",s.type),this.finalizeResponse(new Response(await s.arrayBuffer(),{status:200,statusText:"SUCCESS",headers:q}))}}else{let s=new Date>o.expiredAt;if(s)this.#C.delete(i);let e=!s?o.file:Bun.file(i);if(await e.exists()){if(this.#C.set(i,Object.freeze({expiredAt:lC(new Date,this.#c,HT.seconds),file:e})),M)for(let[AT,IT]of Object.entries(M))q.set(AT,IT);return q.set("Content-Type",e.type),this.finalizeResponse(new Response(await e.arrayBuffer(),{status:200,statusText:"SUCCESS",headers:q}))}}}if(c){let{context:h}=await this.httpFetcher({context:N,resolutedMap:{injector:c.injector,startMiddlewareGroup:c.startMiddlewareGroup,guardGroup:c.guardGroup},options:{isContainer:!0}});N=h}for(let h of w){let M=h.controllerRouterGroup.find(Z.pathname,D);if(M){V=Object.freeze({route:M,resolution:h});break}}if(!V)N.setOptions({isStatic:!1}).set(H_,404).set(t_,"Not found.").set(L_,{httpCode:404,message:"Route not found",data:void 0});else{let{context:h}=await this.httpFetcher({context:N,route:V.route,resolutedMap:V.resolution});N=h}if(c){let{context:h}=await this.httpFetcher({context:N,resolutedMap:{injector:c.injector,endMiddlewareGroup:c.endMiddlewareGroup},options:{isContainer:!0}});N=h}let K=N.get(CT,{isStatic:!0})||new Headers,a=N.get(L_,{isStatic:!1})||void 0,f=N.get(H_,{isStatic:!1}),P=N.get(H_,{isStatic:!1});return this.serializeResponse({status:typeof f!=="number"?void 0:f,statusText:typeof P!=="string"?void 0:P,headers:K,data:a})}catch(U){return this.options.debug&&console.error(U),this.finalizeResponse(vC(U,q))}finally{if(_){let U=performance.now(),V=KT(Z.pathname,{color:"blue"}),K=`${Bun.color("yellow","ansi")}${process.pid}`,a=KT(F.method,{color:"yellow",backgroundColor:"blue"}),f=KT(`${F.headers.get("x-forwarded-for")||F.headers.get("x-real-ip")||J.requestIP(F)?.address||"<Unknown>"}`,{color:"yellow"}),P=KT(`${Math.round((U-S+Number.EPSILON)*100)/100}ms`,{color:"yellow",backgroundColor:"blue"});_.includes(F.method.toUpperCase())&&console.info(`PID: ${K} - Method: ${a} - IP: ${f} - ${V} - Time: ${P}`)}}},websocket:{open:(F)=>{let J=`${F.data.pathname}:::open`,S=L.get(J);if(!S)return;let Z=S.arguments||{},Q=[];for(let[X,D]of Object.entries(Z))switch(D.type){case fT:Q[D.index]=F;break;case QT:Q[D.index]=Y;break}S.descriptor.value(...Q)},close:(F,J,S)=>{let Z=`${F.data.pathname}:::close`,Q=L.get(Z);if(!Q)return;let X=Q.arguments||{},D=[];for(let[q,N]of Object.entries(X))switch(N.type){case fT:D[N.index]=F;break;case QT:D[N.index]=Y;break;case R_:D[N.index]=J;break;case c_:D[N.index]=S;break}Q.descriptor.value(...D)},message:(F,J)=>{let S=`${F.data.pathname}:::message`,Z=L.get(S);if(!Z)return;let Q=Z.arguments||{},X=[];for(let[D,q]of Object.entries(Q))switch(q.type){case fT:X[q.index]=F;break;case MT:X[q.index]=J;break;case QT:X[q.index]=Y;break}Z.descriptor.value(...X)},drain:(F)=>{let J=`${F.data.pathname}:::drain`,S=L.get(J);if(!S)return;let Z=S.arguments||{},Q=[];for(let[X,D]of Object.entries(Z))switch(D.type){case fT:Q[D.index]=F;break;case QT:Q[D.index]=Y;break}S.descriptor.value(...Q)},ping:(F,J)=>{let S=`${F.data.pathname}:::ping`,Z=L.get(S);if(!Z)return;let Q=Z.arguments||{},X=[];for(let[D,q]of Object.entries(Q))switch(q.type){case fT:X[q.index]=F;break;case QT:X[q.index]=Y;break;case MT:X[q.index]=J;break}Z.descriptor.value(...X)},pong:(F,J)=>{let S=`${F.data.pathname}:::pong`,Z=L.get(S);if(!Z)return;let Q=Z.arguments||{},X=[];for(let[D,q]of Object.entries(Q))switch(q.type){case fT:X[q.index]=F;break;case QT:X[q.index]=Y;break;case MT:X[q.index]=J;break}Z.descriptor.value(...X)}}})}async containerResolution({containerClass:_,options:T,extendInjector:A}){if(!Reflect.getOwnMetadataKeys(_).includes(ET))throw Error(`${_.name} is not a container.`);let C=new __(A),E=Reflect.getOwnMetadata(ET,_),{loaders:R,middlewares:c,guards:w,dependencies:L,config:Y}=E||{},{config:F}=Object.freeze({config:{...typeof T.config!=="function"?T.config:await T.config(),...typeof Y!=="function"?typeof Y!=="object"?void 0:("key"in Y)&&("value"in Y)&&typeof Y.key==="symbol"?typeof Y.value!=="function"?Y.value:await Y.value():Y:await Y()}});if(C.set(Y&&"key"in Y&&"value"in Y&&typeof Y.key==="symbol"?Y.key:K_,F),R){let Q=[];for(let[D,q]of Object.entries(R))Q.push(async()=>{try{let N=await q({config:F});return console.info(`${KT(" INFO ",{color:"white",backgroundColor:"blue",bold:!0})} Loader [${D}] initialized successfully.`),N}catch(N){throw console.error(`${KT(" WARN ",{color:"yellow",backgroundColor:"red",bold:!0})} Loader [${D}] initialization failed.`),T.debug&&console.error(N),N}});let X=await Promise.all(Q.map((D)=>D()));for(let[D,q]of X)C.set(D,q)}!L||L.map((Q)=>C.get(Q));let J=[],S=[];!c||c.forEach((Q)=>{let X=C.get(Q);if(X.start&&typeof X.start==="function"){let D=Reflect.getOwnMetadata(k,Q,"start")||{};J.push(Object.freeze({class:Q,funcName:"start",func:X.start.bind(X),argumentsMetadata:D}))}if(X.end&&typeof X.end==="function"){let D=Reflect.getOwnMetadata(k,Q,"end")||{};S.push(Object.freeze({class:Q,funcName:"end",func:X.end.bind(X),argumentsMetadata:D}))}});let Z=!w?[]:w.map((Q)=>{let X=C.get(Q),D=Reflect.getOwnMetadata(k,Q,"enforce")||{};return Object.freeze({class:Q,funcName:"enforce",func:X.enforce.bind(X),argumentsMetadata:D})});return Object.freeze({injector:C,startMiddlewareGroup:J,endMiddlewareGroup:S,guardGroup:Z})}async moduleResolution({moduleClass:_,options:T,extendInjector:A}){if(!Reflect.getOwnMetadataKeys(_).includes(qT))throw Error(`${_.name} is not a module.`);let C=new __(A),E=Reflect.getOwnMetadata(qT,_),{loaders:R,middlewares:c,guards:w,interceptors:L,controllers:Y,dependencies:F,webSockets:J,prefix:S,config:Z}=E||{},Q=`${T.prefix||""}/${S||""}`,{config:X}=Object.freeze({config:{...typeof T.config!=="function"?T.config:await T.config(),...typeof Z!=="function"?typeof Z!=="object"?void 0:("key"in Z)&&("value"in Z)&&typeof Z.key==="symbol"?typeof Z.value!=="function"?Z.value:await Z.value():Z:await Z()}});if(C.set(Z&&"key"in Z&&"value"in Z&&typeof Z.key==="symbol"?Z.key:K_,X),R){let P=[];for(let[M,i]of Object.entries(R))P.push(async()=>{try{let o=await i({config:X});return console.info(`${KT(" INFO ",{color:"white",backgroundColor:"blue",bold:!0})} Loader [${M}] initialized successfully.`),o}catch(o){throw console.error(`${KT(" WARN ",{color:"yellow",backgroundColor:"red",bold:!0})} Loader [${M}] initialization failed.`),T.debug&&console.error(o),o}});let h=await Promise.all(P.map((M)=>M()));for(let M=0;M<h.length;M++){let[i,o]=h[M];C.set(i,o)}}!F||F.map((P)=>C.get(P));let D=[],q=[];!c||c.forEach((P)=>{let h=C.get(P);if(h.start&&typeof h.start==="function"){let M=Reflect.getOwnMetadata(k,P,"start")||{};D.push(Object.freeze({class:P,funcName:"start",func:h.start.bind(h),argumentsMetadata:M}))}if(h.end&&typeof h.end==="function"){let M=Reflect.getOwnMetadata(k,P,"end")||{};q.push(Object.freeze({class:P,funcName:"end",func:h.end.bind(h),argumentsMetadata:M}))}});let N=!w?[]:w.map((P)=>{let h=C.get(P),M=Reflect.getOwnMetadata(k,P,"enforce")||{};return Object.freeze({class:P,funcName:"enforce",func:h.enforce.bind(h),argumentsMetadata:M})}),U=[],V=[];!L||L.forEach((P)=>{let h=C.get(P);if(h.open&&typeof h.open==="function"){let M=Reflect.getOwnMetadata(k,P,"open")||{};U.push(Object.freeze({class:P,funcName:"open",func:h.open.bind(h),argumentsMetadata:M}))}if(h.close&&typeof h.close==="function"){let M=Reflect.getOwnMetadata(k,P,"close")||{};V.push(Object.freeze({class:P,funcName:"close",func:h.close.bind(h),argumentsMetadata:M}))}});let K=new D_;!Y||Y.forEach((P)=>this.initControllerInstance({controllerConstructor:P,httpRouterGroup:K,injector:C,prefix:Q}));let a=new D_,f=new C_;return J&&J.forEach((P)=>this.initWebSocketInstance({webSocketConstructor:P,httpRouterGroup:a,webSocketRouterGroup:f,injector:C,prefix:Q})),Object.freeze({prefix:S||"",injector:C,startMiddlewareGroup:D,endMiddlewareGroup:q,guardGroup:N,openInterceptorGroup:U,closeInterceptorGroup:V,controllerRouterGroup:K,webSocketHttpRouterGroup:a,webSocketRouterGroup:f})}async argumentsResolution(_,T,A,C){if(!this.#A)return _;try{let E=await this.#A.validate(_,T,A,C);if(!(E instanceof E0))return E;throw new uT({httpCode:400,message:`Validation at the [${C.toString()}] method fails at positional argument [${A}].`,data:E.error})}catch(E){if(E instanceof uT)throw E;throw new w_({httpCode:500,message:`Validation at the [${C.toString()}] method error at positional argument [${A}].`,data:!(E instanceof Error)?E:[{message:E.message,code:E.name,cause:E.cause}]})}}initControllerInstance({controllerConstructor:_,httpRouterGroup:T,injector:A,prefix:C}){if(!Reflect.getOwnMetadataKeys(_).includes(ST))throw Error(`${_.name} is not a controller.`);let E=A.get(_);if(!E)throw Error("Can not initialize controller.");let R=Reflect.getOwnMetadata(ST,_)||{prefix:"/",httpMetadata:[]},c=new V_(`/${C||""}/${R.prefix}`);return R.httpMetadata.forEach((w)=>{if(typeof w.descriptor.value!=="function")return;let L=c.route(w.path),Y=w.descriptor.value.bind(E),F=Object.freeze({class:_,funcName:w.methodName,func:Y,argumentsMetadata:w.argumentsMetadata});switch(w.httpMethod){case"GET":return L.get(F);case"POST":return L.post(F);case"PUT":return L.put(F);case"PATCH":return L.patch(F);case"DELETE":return L.delete(F);case"OPTIONS":return L.options(F)}}),T.add(c)}initWebSocketInstance({injector:_,httpRouterGroup:T,prefix:A,webSocketRouterGroup:C,webSocketConstructor:E}){if(!Reflect.getOwnMetadataKeys(E).includes(YT))throw Error(`${E.name} is not a websocket route.`);let R=_.get(E);if(!R)throw Error("Can not initialize webSocket.");let c=Reflect.getOwnMetadata(YT,E)||{prefix:"/",events:[],http:[]},w=`/${A||""}/${c.prefix}`,L=new V_(w);for(let[F,J]of Object.entries(c.http)){if(typeof J.descriptor?.value!=="function")continue;let S=L.route(J.path),Z=J.descriptor.value.bind(R),Q=Object.freeze({class:E,funcName:J.methodName,func:Z,argumentsMetadata:J.argumentsMetadata});switch(J.httpMethod){case"GET":S.get(Q);break;case"POST":S.post(Q);break}}T.add(L);let Y=new G_(w);for(let[F,J]of Object.entries(c.events)){let S=new d_({eventName:F,metadata:J});Y.addRoutes(S)}return Y.bind(R),C.addRouters(Y),Object.freeze({httpRouterGroup:T,webSocketRouterGroup:C})}serializeResponse({status:_,statusText:T,headers:A,data:C}){let E=A.get("Content-Type")||"text/plain";if(E.includes("application/json"))return this.finalizeResponse(new Response(C instanceof ReadableStream?C:JSON.stringify(C),{status:_,statusText:T,headers:A}));if(E.includes("text/plain")||E.includes("text/html"))return this.finalizeResponse(new Response(C instanceof ReadableStream?C:String(C),{status:_,statusText:T,headers:A}));if(E.includes("application/octet-stream")){if(C instanceof Uint8Array||C instanceof ArrayBuffer||C instanceof Blob||C instanceof ReadableStream)return this.finalizeResponse(new Response(C instanceof Uint8Array?String.fromCharCode(...new Uint8Array(C)):C,{status:_,statusText:T,headers:A}));throw new Error("Invalid data type for application/octet-stream")}if(E.includes("multipart/form-data")){if(C instanceof FormData)return this.finalizeResponse(new Response(C,{status:_,statusText:T,headers:A}));throw new Error("multipart/form-data requires FormData object")}return this.finalizeResponse(new Response(String(C),{status:_,statusText:T,headers:A}))}finalizeResponse(_){return _.headers.set("X-Powered-By","Bool Typescript"),_}async httpFetcher({context:_,route:T,options:A,resolutedMap:C}){let E={isStatic:!0},R=(!_?new B_:new B_(_)).setOptions(E);if(T)R.set(iT,T.parameters).set(LT,T.model);let c=R.get(RT,E)||void 0,w=R.get(xT,E)||void 0,L=R.get(cT,E)||void 0,Y=R.get(CT,E)||void 0,F=R.get(iT,E)||void 0,J=R.get(LT,E)||void 0;if(C){let{startMiddlewareGroup:S,guardGroup:Z}=C;if(S)for(let Q=0;Q<S.length;Q++){let X=[],{func:D,funcName:q,argumentsMetadata:N}=S[Q];for(let[U,V]of Object.entries(N))switch(V.type){case ZT:X[V.index]=!V.key?R:R.get(V.key,E);break;case xT:X[V.index]=!V.validationSchema?w:await this.argumentsResolution(w,V.validationSchema,V.index,q);break;case XT:X[V.index]=!V.validationSchema?await w?.[V.parser||"json"]():await this.argumentsResolution(await w?.[V.parser||"json"](),V.validationSchema,V.index,q);break;case UT:X[V.index]=!V.validationSchema?L:await this.argumentsResolution(L?.toJSON(),V.validationSchema,V.index,q);break;case cT:X[V.index]=!V.validationSchema?L?.get(V.key)||void 0:await this.argumentsResolution(L?.get(V.key)||void 0,V.validationSchema,V.index,q);break;case JT:X[V.index]=!V.validationSchema?F?.[V.key]||void 0:await this.argumentsResolution(F?.[V.key]||void 0,V.validationSchema,V.index,q);break;case LT:X[V.index]=J;break;case CT:X[V.index]=Y;break;case RT:X[V.index]=c;break;default:X[V.index]=!V.validationSchema?!R.has(V.type,E)?void 0:R.get(V.type,E):await this.argumentsResolution(!(V.type in R)?void 0:R.get(V.type,E),V.validationSchema,V.index,q);break}await D(...X)}if(Z)for(let Q=0;Q<Z.length;Q++){let X=[],{func:D,funcName:q,argumentsMetadata:N}=Z[Q];for(let[V,K]of Object.entries(N))switch(K.type){case xT:X[K.index]=!K.validationSchema?w:await this.argumentsResolution(w,K.validationSchema,K.index,q);break;case XT:X[K.index]=!K.validationSchema?await w?.[K.parser||"json"]():await this.argumentsResolution(await w?.[K.parser||"json"](),K.validationSchema,K.index,q);break;case ZT:X[K.index]=!K.key?R:R.get(K.key);break;case UT:X[K.index]=!K.validationSchema?L:await this.argumentsResolution(L?.toJSON(),K.validationSchema,K.index,q);break;case CT:X[K.index]=Y;break;case cT:X[K.index]=!K.validationSchema?L?.get(K.key)||void 0:await this.argumentsResolution(L?.get(K.key)||void 0,K.validationSchema,K.index,q);break;case JT:X[K.index]=!K.validationSchema?F?.[K.key]||void 0:await this.argumentsResolution(F?.[K.key],K.validationSchema,K.index,q);break;case LT:X[K.index]=J;break;case RT:X[K.index]=c;break;default:X[K.index]=!K.validationSchema?!R.has(K.type)?void 0:R.get(K.type):await this.argumentsResolution(R.get(K.type),K.validationSchema,K.index,q);break}let U=await D(...X);if(typeof U!=="boolean"||!U)throw new uT({httpCode:401,message:"Unauthorization.",data:void 0})}}if(J&&!A?.isContainer){if(C&&"openInterceptorGroup"in C&&C.openInterceptorGroup){let{openInterceptorGroup:D}=C;for(let q=0;q<D.length;q++){let N=[],{func:U,funcName:V,argumentsMetadata:K}=D[q];for(let[a,f]of Object.entries(K))switch(f.type){case xT:N[f.index]=!f.validationSchema?w:await this.argumentsResolution(w,f.validationSchema,f.index,V);break;case XT:N[f.index]=!f.validationSchema?await w?.[f.parser||"json"]():await this.argumentsResolution(await w?.[f.parser||"json"](),f.validationSchema,f.index,V);break;case ZT:N[f.index]=!f.key?R:R.get(f.key);break;case UT:N[f.index]=!f.validationSchema?L:await this.argumentsResolution(L?.toJSON(),f.validationSchema,f.index,V);break;case cT:N[f.index]=!f.validationSchema?L?.get(f.key)||void 0:await this.argumentsResolution(L?.get(f.key)||void 0,f.validationSchema,f.index,V);break;case CT:N[f.index]=Y;break;case JT:N[f.index]=!f.validationSchema?F?.[f.key]||void 0:await this.argumentsResolution(F?.[f.key]||void 0,f.validationSchema,f.index,V);break;case LT:N[f.index]=J;break;case RT:N[f.index]=c;break;default:N[f.index]=!f.validationSchema?!R.has(f.type)?void 0:R.get(f.type):await this.argumentsResolution(R.get(f.type),f.validationSchema,f.index,V);break}await U(...N)}}let S=[],{func:Z,funcName:Q,argumentsMetadata:X}=J;for(let[D,q]of Object.entries(X))switch(q.type){case xT:S[q.index]=!q.validationSchema?w:await this.argumentsResolution(w,q.validationSchema,q.index,Q);break;case XT:S[q.index]=!q.validationSchema?await w?.[q.parser||"json"]():await this.argumentsResolution(await w?.[q.parser||"json"](),q.validationSchema,q.index,Q);break;case ZT:S[q.index]=!q.key?R:R.get(q.key);break;case UT:S[q.index]=!q.validationSchema?L:await this.argumentsResolution(L?.toJSON(),q.validationSchema,q.index,Q);break;case cT:S[q.index]=!q.validationSchema?L?.get(q.key)||void 0:await this.argumentsResolution(L?.get(q.key)||void 0,q.validationSchema,q.index,Q);break;case CT:S[q.index]=Y;break;case JT:S[q.index]=!q.validationSchema?F?.[q.key]||void 0:await this.argumentsResolution(F?.[q.key]||void 0,q.validationSchema,q.index,Q);break;case LT:S[q.index]=J;break;case RT:S[q.index]=c;break;default:S[q.index]=!q.validationSchema?!R.has(q.type)?void 0:R.get(q.type):await this.argumentsResolution(R.get(q.type),q.validationSchema,q.index,Q);break}if(R.set(L_,await Z(...S),{isStatic:!1}),C&&"closeInterceptorGroup"in C&&C.closeInterceptorGroup){let{closeInterceptorGroup:D}=C;for(let q=0;q<D.length;q++){let N=[],{func:U,funcName:V,argumentsMetadata:K}=D[q];for(let[a,f]of Object.entries(K))switch(f.type){case xT:N[f.index]=!f.validationSchema?w:await this.argumentsResolution(w,f.validationSchema,f.index,V);break;case XT:N[f.index]=!f.validationSchema?await w?.[f.parser||"json"]():await this.argumentsResolution(await w?.[f.parser||"json"](),f.validationSchema,f.index,V);break;case ZT:N[f.index]=!f.key?R:R.get(f.key);break;case UT:N[f.index]=!f.validationSchema?L:await this.argumentsResolution(L?.toJSON(),f.validationSchema,f.index,V);break;case CT:N[f.index]=R.get(f.type);break;case cT:N[f.index]=!f.validationSchema?L?.get(f.key)||void 0:await this.argumentsResolution(L?.get(f.key)||void 0,f.validationSchema,f.index,V);break;case JT:N[f.index]=!f.validationSchema?F?.[f.key]||void 0:await this.argumentsResolution(F?.[f.key]||void 0,f.validationSchema,f.index,V);break;case LT:N[f.index]=J;break;case RT:N[f.index]=c;break;default:N[f.index]=!f.validationSchema?!R.has(f.type)?void 0:R.get(f.type):await this.argumentsResolution(R.get(f.type),f.validationSchema,f.index,V);break}await U(...N)}}}if(C){let{endMiddlewareGroup:S}=C;if(S)for(let Z=0;Z<S.length;Z++){let Q=[],{func:X,funcName:D,argumentsMetadata:q}=S[Z];for(let[N,U]of Object.entries(q))switch(U.type){case xT:Q[U.index]=!U.validationSchema?w:await this.argumentsResolution(w,U.validationSchema,U.index,D);break;case XT:Q[U.index]=!U.validationSchema?await w?.[U.parser||"json"]():await this.argumentsResolution(await w?.[U.parser||"json"](),U.validationSchema,U.index,D);break;case ZT:Q[U.index]=!U.key?R:R.get(U.key);break;case UT:Q[U.index]=!U.validationSchema?L:await this.argumentsResolution(L?.toJSON(),U.validationSchema,U.index,D);break;case CT:Q[U.index]=R.get(U.type);break;case cT:Q[U.index]=!U.validationSchema?L?.get(U.key)||void 0:await this.argumentsResolution(L?.get(U.key)||void 0,U.validationSchema,U.index,D);break;case JT:Q[U.index]=!U.validationSchema?F?.[U.key]||void 0:await this.argumentsResolution(F?.[U.key]||void 0,U.validationSchema,U.index,D);break;case LT:Q[U.index]=J;break;case RT:Q[U.index]=c;break;default:Q[U.index]=!U.validationSchema?!R.has(U.type)?void 0:R.get(U.type):await this.argumentsResolution(!(U.type in R)?void 0:R.get(U.type),U.validationSchema,U.index,D);break}await X(...Q)}}return Object.freeze({context:R})}async webSocketFetcher(_,T){let{request:A,server:C}=_,{query:E,responseHeaders:R,route:{model:c}}=T,w=await c.func(...[C,A,E]);if(typeof w!=="boolean")return this.finalizeResponse(new Response(JSON.stringify({httpCode:500,message:"Can not detect webSocket upgrade result.",data:void 0}),{status:500,statusText:"Internal server error.",headers:R}));if(!w)return this.finalizeResponse(new Response(JSON.stringify({httpCode:500,message:"Can not upgrade.",data:void 0}),{status:500,statusText:"Internal server error.",headers:R}));return w}}var SL=N_(n_(),1);var m1=async(_,T)=>{try{let A=new s_(_,T);return await A.preLaunch(),A}catch(A){throw T.debug&&console.error(A),A}};export{vC as jsonErrorInfer,xR as httpServerErrors,cR as httpClientErrors,_R as WebSocketServer,C_ as WebSocketRouterGroup,G_ as WebSocketRouter,d_ as WebSocketRoute,ER as WebSocketMessage,RR as WebSocketEvent,TR as WebSocketConnection,AR as WebSocketCloseReason,CR as WebSocketCloseCode,a0 as WebSocket,nC as ValidationFailed,u0 as RouteModel,O0 as ResponseHeaders,N0 as RequestHeaders,n0 as RequestHeader,K0 as RequestBody,m0 as Request,h0 as Query,y0 as Put,l0 as Post,j0 as Patch,I0 as Params,$0 as Param,s0 as Options,t0 as Module,r0 as Middleware,kC as Keys,p0 as Interceptor,__ as Injector,o0 as Injectable,i0 as Inject,w_ as HttpServerError,g0 as HttpServer,D_ as HttpRouterGroup,V_ as HttpRouter,GT as HttpRoute,uT as HttpClientError,k0 as Guard,v0 as Get,d0 as Delete,b0 as Controller,M0 as Context,P0 as Container,m1 as BoolFactory,s_ as Application};
18
+ `+T.prev}function I_(_,T){var A=fC(_),C=[];if(A){C.length=_.length;for(var E=0;E<_.length;E++)C[E]=$T(_,E)?T(_[E],_):""}var f=typeof TC==="function"?TC(_):[],x;if(oT){x={};for(var H=0;H<f.length;H++)x["$"+f[H]]=f[H]}for(var c in _){if(!$T(_,c))continue;if(A&&String(Number(c))===c&&c<_.length)continue;if(oT&&x["$"+c]instanceof Symbol)continue;else if(EA.call(/[^\w$]/,c))C.push(T(c,_)+": "+T(_[c],_));else C.push(c+": "+T(_[c],_))}if(typeof TC==="function"){for(var q=0;q<f.length;q++)if(fA.call(_,f[q]))C.push("["+T(f[q])+"]: "+T(_[f[q]],_))}return C}});var SA=m((Mc,FA)=>{var g0=q_(),P0=gT(),O_=function(_,T,A){var C=_,E;for(;(E=C.next)!=null;C=E)if(E.key===T){if(C.next=E.next,!A)E.next=_.next,_.next=E;return E}},k0=function(_,T){if(!_)return;var A=O_(_,T);return A&&A.value},v0=function(_,T,A){var C=O_(_,T);if(C)C.value=A;else _.next={key:T,next:_.next,value:A}},b0=function(_,T){if(!_)return!1;return!!O_(_,T)},l0=function(_,T){if(_)return O_(_,T,!0)};FA.exports=function(){var T,A={assert:function(C){if(!A.has(C))throw new P0("Side channel does not contain "+g0(C))},delete:function(C){var E=T&&T.next,f=l0(T,C);if(f&&E&&E===f)T=void 0;return!!f},get:function(C){return k0(T,C)},has:function(C){return b0(T,C)},set:function(C,E){if(!T)T={next:void 0};v0(T,C,E)}};return A}});var HC=m((uc,WA)=>{WA.exports=Object});var YA=m((gc,qA)=>{qA.exports=Error});var UA=m((Pc,QA)=>{QA.exports=EvalError});var JA=m((kc,XA)=>{XA.exports=RangeError});var BA=m((vc,ZA)=>{ZA.exports=ReferenceError});var DA=m((bc,VA)=>{VA.exports=SyntaxError});var zA=m((lc,GA)=>{GA.exports=URIError});var $A=m((yc,NA)=>{NA.exports=Math.abs});var KA=m((jc,nA)=>{nA.exports=Math.floor});var hA=m((dc,IA)=>{IA.exports=Math.max});var OA=m((sc,mA)=>{mA.exports=Math.min});var uA=m((ic,MA)=>{MA.exports=Math.pow});var PA=m((pc,gA)=>{gA.exports=Math.round});var vA=m((oc,kA)=>{kA.exports=Number.isNaN||function(T){return T!==T}});var lA=m((rc,bA)=>{var y0=vA();bA.exports=function(T){if(y0(T)||T===0)return T;return T<0?-1:1}});var jA=m((tc,yA)=>{yA.exports=Object.getOwnPropertyDescriptor});var wC=m((ec,dA)=>{var M_=jA();if(M_)try{M_([],"length")}catch(_){M_=null}dA.exports=M_});var iA=m((ac,sA)=>{var u_=Object.defineProperty||!1;if(u_)try{u_({},"a",{value:1})}catch(_){u_=!1}sA.exports=u_});var oA=m((T1,pA)=>{pA.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var T={},A=Symbol("test"),C=Object(A);if(typeof A==="string")return!1;if(Object.prototype.toString.call(A)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(C)!=="[object Symbol]")return!1;var E=42;T[A]=E;for(var f in T)return!1;if(typeof Object.keys==="function"&&Object.keys(T).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(T).length!==0)return!1;var x=Object.getOwnPropertySymbols(T);if(x.length!==1||x[0]!==A)return!1;if(!Object.prototype.propertyIsEnumerable.call(T,A))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var H=Object.getOwnPropertyDescriptor(T,A);if(H.value!==E||H.enumerable!==!0)return!1}return!0}});var eA=m((_1,tA)=>{var rA=typeof Symbol<"u"&&Symbol,j0=oA();tA.exports=function(){if(typeof rA!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof rA("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return j0()}});var FC=m((C1,aA)=>{aA.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var SC=m((A1,TE)=>{var d0=HC();TE.exports=d0.getPrototypeOf||null});var AE=m((E1,CE)=>{var s0="Function.prototype.bind called on incompatible ",i0=Object.prototype.toString,p0=Math.max,o0="[object Function]",_E=function(T,A){var C=[];for(var E=0;E<T.length;E+=1)C[E]=T[E];for(var f=0;f<A.length;f+=1)C[f+T.length]=A[f];return C},r0=function(T,A){var C=[];for(var E=A||0,f=0;E<T.length;E+=1,f+=1)C[f]=T[E];return C},t0=function(_,T){var A="";for(var C=0;C<_.length;C+=1)if(A+=_[C],C+1<_.length)A+=T;return A};CE.exports=function(T){var A=this;if(typeof A!=="function"||i0.apply(A)!==o0)throw TypeError(s0+A);var C=r0(arguments,1),E,f=function(){if(this instanceof E){var w=A.apply(this,_E(C,arguments));if(Object(w)===w)return w;return this}return A.apply(T,_E(C,arguments))},x=p0(0,A.length-C.length),H=[];for(var c=0;c<x;c++)H[c]="$"+c;if(E=Function("binder","return function ("+t0(H,",")+"){ return binder.apply(this,arguments); }")(f),A.prototype){var q=function(){};q.prototype=A.prototype,E.prototype=new q,q.prototype=null}return E}});var Y_=m((f1,EE)=>{var e0=AE();EE.exports=Function.prototype.bind||e0});var g_=m((x1,fE)=>{fE.exports=Function.prototype.call});var WC=m((R1,xE)=>{xE.exports=Function.prototype.apply});var cE=m((c1,RE)=>{RE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var HE=m((L1,LE)=>{var a0=Y_(),Tx=WC(),_x=g_(),Cx=cE();LE.exports=Cx||a0.call(_x,Tx)});var qC=m((H1,wE)=>{var Ax=Y_(),Ex=gT(),fx=g_(),xx=HE();wE.exports=function(T){if(T.length<1||typeof T[0]!=="function")throw new Ex("a function is required");return xx(Ax,fx,T)}});var QE=m((w1,YE)=>{var Rx=qC(),FE=wC(),WE;try{WE=[].__proto__===Array.prototype}catch(_){if(!_||typeof _!=="object"||!("code"in _)||_.code!=="ERR_PROTO_ACCESS")throw _}var YC=!!WE&&FE&&FE(Object.prototype,"__proto__"),qE=Object,SE=qE.getPrototypeOf;YE.exports=YC&&typeof YC.get==="function"?Rx([YC.get]):typeof SE==="function"?function(T){return SE(T==null?T:qE(T))}:!1});var BE=m((F1,ZE)=>{var UE=FC(),XE=SC(),JE=QE();ZE.exports=UE?function(T){return UE(T)}:XE?function(T){if(!T||typeof T!=="object"&&typeof T!=="function")throw TypeError("getProto: not an object");return XE(T)}:JE?function(T){return JE(T)}:null});var DE=m((S1,VE)=>{var cx=Function.prototype.call,Lx=Object.prototype.hasOwnProperty,Hx=Y_();VE.exports=Hx.call(cx,Lx)});var v_=m((W1,nE)=>{var g,wx=HC(),Fx=YA(),Sx=UA(),Wx=JA(),qx=BA(),aT=DA(),eT=gT(),Yx=zA(),Qx=$A(),Ux=KA(),Xx=hA(),Jx=OA(),Zx=uA(),Bx=PA(),Vx=lA(),NE=Function,QC=function(_){try{return NE('"use strict"; return ('+_+").constructor;")()}catch(T){}},Q_=wC(),Dx=iA(),UC=function(){throw new eT},Gx=Q_?function(){try{return arguments.callee,UC}catch(_){try{return Q_(arguments,"callee").get}catch(T){return UC}}}():UC,rT=eA()(),t=BE(),zx=SC(),Nx=FC(),$E=WC(),U_=g_(),tT={},$x=typeof Uint8Array>"u"||!t?g:t(Uint8Array),kT={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":rT&&t?t([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":tT,"%AsyncGenerator%":tT,"%AsyncGeneratorFunction%":tT,"%AsyncIteratorPrototype%":tT,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Fx,"%eval%":eval,"%EvalError%":Sx,"%Float16Array%":typeof Float16Array>"u"?g:Float16Array,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":NE,"%GeneratorFunction%":tT,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":rT&&t?t(t([][Symbol.iterator]())):g,"%JSON%":typeof JSON==="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!rT||!t?g:t(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":wx,"%Object.getOwnPropertyDescriptor%":Q_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":Wx,"%ReferenceError%":qx,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!rT||!t?g:t(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":rT&&t?t(""[Symbol.iterator]()):g,"%Symbol%":rT?Symbol:g,"%SyntaxError%":aT,"%ThrowTypeError%":Gx,"%TypedArray%":$x,"%TypeError%":eT,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":Yx,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet,"%Function.prototype.call%":U_,"%Function.prototype.apply%":$E,"%Object.defineProperty%":Dx,"%Object.getPrototypeOf%":zx,"%Math.abs%":Qx,"%Math.floor%":Ux,"%Math.max%":Xx,"%Math.min%":Jx,"%Math.pow%":Zx,"%Math.round%":Bx,"%Math.sign%":Vx,"%Reflect.getPrototypeOf%":Nx};if(t)try{null.error}catch(_){XC=t(t(_)),kT["%Error.prototype%"]=XC}var XC,nx=function _(T){var A;if(T==="%AsyncFunction%")A=QC("async function () {}");else if(T==="%GeneratorFunction%")A=QC("function* () {}");else if(T==="%AsyncGeneratorFunction%")A=QC("async function* () {}");else if(T==="%AsyncGenerator%"){var C=_("%AsyncGeneratorFunction%");if(C)A=C.prototype}else if(T==="%AsyncIteratorPrototype%"){var E=_("%AsyncGenerator%");if(E&&t)A=t(E.prototype)}return kT[T]=A,A},GE={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},X_=Y_(),P_=DE(),Kx=X_.call(U_,Array.prototype.concat),Ix=X_.call($E,Array.prototype.splice),zE=X_.call(U_,String.prototype.replace),k_=X_.call(U_,String.prototype.slice),hx=X_.call(U_,RegExp.prototype.exec),mx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ox=/\\(\\)?/g,Mx=function(T){var A=k_(T,0,1),C=k_(T,-1);if(A==="%"&&C!=="%")throw new aT("invalid intrinsic syntax, expected closing `%`");else if(C==="%"&&A!=="%")throw new aT("invalid intrinsic syntax, expected opening `%`");var E=[];return zE(T,mx,function(f,x,H,c){E[E.length]=H?zE(c,Ox,"$1"):x||f}),E},ux=function(T,A){var C=T,E;if(P_(GE,C))E=GE[C],C="%"+E[0]+"%";if(P_(kT,C)){var f=kT[C];if(f===tT)f=nx(C);if(typeof f>"u"&&!A)throw new eT("intrinsic "+T+" exists, but is not available. Please file an issue!");return{alias:E,name:C,value:f}}throw new aT("intrinsic "+T+" does not exist!")};nE.exports=function(T,A){if(typeof T!=="string"||T.length===0)throw new eT("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof A!=="boolean")throw new eT('"allowMissing" argument must be a boolean');if(hx(/^%?[^%]*%?$/,T)===null)throw new aT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var C=Mx(T),E=C.length>0?C[0]:"",f=ux("%"+E+"%",A),x=f.name,H=f.value,c=!1,q=f.alias;if(q)E=q[0],Ix(C,Kx([0,1],q));for(var w=1,J=!0;w<C.length;w+=1){var F=C[w],Z=k_(F,0,1),Y=k_(F,-1);if((Z==='"'||Z==="'"||Z==="`"||(Y==='"'||Y==="'"||Y==="`"))&&Z!==Y)throw new aT("property names with quotes must have matching quotes");if(F==="constructor"||!J)c=!0;if(E+="."+F,x="%"+E+"%",P_(kT,x))H=kT[x];else if(H!=null){if(!(F in H)){if(!A)throw new eT("base intrinsic for "+T+" exists, but the property is not available.");return}if(Q_&&w+1>=C.length){var X=Q_(H,F);if(J=!!X,J&&"get"in X&&!("originalValue"in X.get))H=X.get;else H=H[F]}else J=P_(H,F),H=H[F];if(J&&!c)kT[x]=H}}return H}});var JC=m((q1,hE)=>{var KE=v_(),IE=qC(),gx=IE([KE("%String.prototype.indexOf%")]);hE.exports=function(T,A){var C=KE(T,!!A);if(typeof C==="function"&&gx(T,".prototype.")>-1)return IE([C]);return C}});var ZC=m((Y1,OE)=>{var Px=v_(),J_=JC(),kx=q_(),vx=gT(),mE=Px("%Map%",!0),bx=J_("Map.prototype.get",!0),lx=J_("Map.prototype.set",!0),yx=J_("Map.prototype.has",!0),jx=J_("Map.prototype.delete",!0),dx=J_("Map.prototype.size",!0);OE.exports=!!mE&&function(){var T,A={assert:function(C){if(!A.has(C))throw new vx("Side channel does not contain "+kx(C))},delete:function(C){if(T){var E=jx(T,C);if(dx(T)===0)T=void 0;return E}return!1},get:function(C){if(T)return bx(T,C)},has:function(C){if(T)return yx(T,C);return!1},set:function(C,E){if(!T)T=new mE;lx(T,C,E)}};return A}});var uE=m((Q1,ME)=>{var sx=v_(),l_=JC(),ix=q_(),b_=ZC(),px=gT(),T_=sx("%WeakMap%",!0),ox=l_("WeakMap.prototype.get",!0),rx=l_("WeakMap.prototype.set",!0),tx=l_("WeakMap.prototype.has",!0),ex=l_("WeakMap.prototype.delete",!0);ME.exports=T_?function(){var T,A,C={assert:function(E){if(!C.has(E))throw new px("Side channel does not contain "+ix(E))},delete:function(E){if(T_&&E&&(typeof E==="object"||typeof E==="function")){if(T)return ex(T,E)}else if(b_){if(A)return A.delete(E)}return!1},get:function(E){if(T_&&E&&(typeof E==="object"||typeof E==="function")){if(T)return ox(T,E)}return A&&A.get(E)},has:function(E){if(T_&&E&&(typeof E==="object"||typeof E==="function")){if(T)return tx(T,E)}return!!A&&A.has(E)},set:function(E,f){if(T_&&E&&(typeof E==="object"||typeof E==="function")){if(!T)T=new T_;rx(T,E,f)}else if(b_){if(!A)A=b_();A.set(E,f)}}};return C}:b_});var PE=m((U1,gE)=>{var ax=gT(),TR=q_(),_R=SA(),CR=ZC(),AR=uE(),ER=AR||CR||_R;gE.exports=function(){var T,A={assert:function(C){if(!A.has(C))throw new ax("Side channel does not contain "+TR(C))},delete:function(C){return!!T&&T.delete(C)},get:function(C){return T&&T.get(C)},has:function(C){return!!T&&T.has(C)},set:function(C,E){if(!T)T=ER();T.set(C,E)}};return A}});var y_=m((X1,kE)=>{var fR=String.prototype.replace,xR=/%20/g,BC={RFC1738:"RFC1738",RFC3986:"RFC3986"};kE.exports={default:BC.RFC3986,formatters:{RFC1738:function(_){return fR.call(_,xR,"+")},RFC3986:function(_){return String(_)}},RFC1738:BC.RFC1738,RFC3986:BC.RFC3986}});var GC=m((J1,bE)=>{var RR=y_(),VC=Object.prototype.hasOwnProperty,vT=Array.isArray,VT=function(){var _=[];for(var T=0;T<256;++T)_.push("%"+((T<16?"0":"")+T.toString(16)).toUpperCase());return _}(),cR=function(T){while(T.length>1){var A=T.pop(),C=A.obj[A.prop];if(vT(C)){var E=[];for(var f=0;f<C.length;++f)if(typeof C[f]<"u")E.push(C[f]);A.obj[A.prop]=E}}},vE=function(T,A){var C=A&&A.plainObjects?{__proto__:null}:{};for(var E=0;E<T.length;++E)if(typeof T[E]<"u")C[E]=T[E];return C},LR=function _(T,A,C){if(!A)return T;if(typeof A!=="object"&&typeof A!=="function"){if(vT(T))T.push(A);else if(T&&typeof T==="object"){if(C&&(C.plainObjects||C.allowPrototypes)||!VC.call(Object.prototype,A))T[A]=!0}else return[T,A];return T}if(!T||typeof T!=="object")return[T].concat(A);var E=T;if(vT(T)&&!vT(A))E=vE(T,C);if(vT(T)&&vT(A))return A.forEach(function(f,x){if(VC.call(T,x)){var H=T[x];if(H&&typeof H==="object"&&f&&typeof f==="object")T[x]=_(H,f,C);else T.push(f)}else T[x]=f}),T;return Object.keys(A).reduce(function(f,x){var H=A[x];if(VC.call(f,x))f[x]=_(f[x],H,C);else f[x]=H;return f},E)},HR=function(T,A){return Object.keys(A).reduce(function(C,E){return C[E]=A[E],C},T)},wR=function(_,T,A){var C=_.replace(/\+/g," ");if(A==="iso-8859-1")return C.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(C)}catch(E){return C}},DC=1024,FR=function(T,A,C,E,f){if(T.length===0)return T;var x=T;if(typeof T==="symbol")x=Symbol.prototype.toString.call(T);else if(typeof T!=="string")x=String(T);if(C==="iso-8859-1")return escape(x).replace(/%u[0-9a-f]{4}/gi,function(Z){return"%26%23"+parseInt(Z.slice(2),16)+"%3B"});var H="";for(var c=0;c<x.length;c+=DC){var q=x.length>=DC?x.slice(c,c+DC):x,w=[];for(var J=0;J<q.length;++J){var F=q.charCodeAt(J);if(F===45||F===46||F===95||F===126||F>=48&&F<=57||F>=65&&F<=90||F>=97&&F<=122||f===RR.RFC1738&&(F===40||F===41)){w[w.length]=q.charAt(J);continue}if(F<128){w[w.length]=VT[F];continue}if(F<2048){w[w.length]=VT[192|F>>6]+VT[128|F&63];continue}if(F<55296||F>=57344){w[w.length]=VT[224|F>>12]+VT[128|F>>6&63]+VT[128|F&63];continue}J+=1,F=65536+((F&1023)<<10|q.charCodeAt(J)&1023),w[w.length]=VT[240|F>>18]+VT[128|F>>12&63]+VT[128|F>>6&63]+VT[128|F&63]}H+=w.join("")}return H},SR=function(T){var A=[{obj:{o:T},prop:"o"}],C=[];for(var E=0;E<A.length;++E){var f=A[E],x=f.obj[f.prop],H=Object.keys(x);for(var c=0;c<H.length;++c){var q=H[c],w=x[q];if(typeof w==="object"&&w!==null&&C.indexOf(w)===-1)A.push({obj:x,prop:q}),C.push(w)}}return cR(A),T},WR=function(T){return Object.prototype.toString.call(T)==="[object RegExp]"},qR=function(T){if(!T||typeof T!=="object")return!1;return!!(T.constructor&&T.constructor.isBuffer&&T.constructor.isBuffer(T))},YR=function(T,A){return[].concat(T,A)},QR=function(T,A){if(vT(T)){var C=[];for(var E=0;E<T.length;E+=1)C.push(A(T[E]));return C}return A(T)};bE.exports={arrayToObject:vE,assign:HR,combine:YR,compact:SR,decode:wR,encode:FR,isBuffer:qR,isRegExp:WR,maybeMap:QR,merge:LR}});var iE=m((Z1,sE)=>{var yE=PE(),j_=GC(),Z_=y_(),UR=Object.prototype.hasOwnProperty,jE={brackets:function(T){return T+"[]"},comma:"comma",indices:function(T,A){return T+"["+A+"]"},repeat:function(T){return T}},DT=Array.isArray,XR=Array.prototype.push,dE=function(_,T){XR.apply(_,DT(T)?T:[T])},JR=Date.prototype.toISOString,lE=Z_.default,r={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:j_.encode,encodeValuesOnly:!1,filter:void 0,format:lE,formatter:Z_.formatters[lE],indices:!1,serializeDate:function(T){return JR.call(T)},skipNulls:!1,strictNullHandling:!1},ZR=function(T){return typeof T==="string"||typeof T==="number"||typeof T==="boolean"||typeof T==="symbol"||typeof T==="bigint"},zC={},BR=function _(T,A,C,E,f,x,H,c,q,w,J,F,Z,Y,X,D,W,N){var U=T,V=N,n=0,a=!1;while((V=V.get(zC))!==void 0&&!a){var Q=V.get(T);if(n+=1,typeof Q<"u")if(Q===n)throw RangeError("Cyclic object value");else a=!0;if(typeof V.get(zC)>"u")n=0}if(typeof w==="function")U=w(A,U);else if(U instanceof Date)U=Z(U);else if(C==="comma"&&DT(U))U=j_.maybeMap(U,function(lT){if(lT instanceof Date)return Z(lT);return lT});if(U===null){if(x)return q&&!D?q(A,r.encoder,W,"key",Y):A;U=""}if(ZR(U)||j_.isBuffer(U)){if(q){var P=D?A:q(A,r.encoder,W,"key",Y);return[X(P)+"="+X(q(U,r.encoder,W,"value",Y))]}return[X(A)+"="+X(String(U))]}var h=[];if(typeof U>"u")return h;var M;if(C==="comma"&&DT(U)){if(D&&q)U=j_.maybeMap(U,q);M=[{value:U.length>0?U.join(",")||null:void 0}]}else if(DT(w))M=w;else{var i=Object.keys(U);M=J?i.sort(J):i}var p=c?String(A).replace(/\./g,"%2E"):String(A),s=E&&DT(U)&&U.length===1?p+"[]":p;if(f&&DT(U)&&U.length===0)return s+"[]";for(var e=0;e<M.length;++e){var TT=M[e],AT=typeof TT==="object"&&TT&&typeof TT.value<"u"?TT.value:U[TT];if(H&&AT===null)continue;var KT=F&&c?String(TT).replace(/\./g,"%2E"):String(TT),z_=DT(U)?typeof C==="function"?C(s,KT):s:s+(F?"."+KT:"["+KT+"]");N.set(T,n);var A_=yE();A_.set(zC,N),dE(h,_(AT,z_,C,E,f,x,H,c,C==="comma"&&D&&DT(U)?null:q,w,J,F,Z,Y,X,D,W,A_))}return h},VR=function(T){if(!T)return r;if(typeof T.allowEmptyArrays<"u"&&typeof T.allowEmptyArrays!=="boolean")throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof T.encodeDotInKeys<"u"&&typeof T.encodeDotInKeys!=="boolean")throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(T.encoder!==null&&typeof T.encoder<"u"&&typeof T.encoder!=="function")throw TypeError("Encoder has to be a function.");var A=T.charset||r.charset;if(typeof T.charset<"u"&&T.charset!=="utf-8"&&T.charset!=="iso-8859-1")throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var C=Z_.default;if(typeof T.format<"u"){if(!UR.call(Z_.formatters,T.format))throw TypeError("Unknown format option provided.");C=T.format}var E=Z_.formatters[C],f=r.filter;if(typeof T.filter==="function"||DT(T.filter))f=T.filter;var x;if(T.arrayFormat in jE)x=T.arrayFormat;else if("indices"in T)x=T.indices?"indices":"repeat";else x=r.arrayFormat;if("commaRoundTrip"in T&&typeof T.commaRoundTrip!=="boolean")throw TypeError("`commaRoundTrip` must be a boolean, or absent");var H=typeof T.allowDots>"u"?T.encodeDotInKeys===!0?!0:r.allowDots:!!T.allowDots;return{addQueryPrefix:typeof T.addQueryPrefix==="boolean"?T.addQueryPrefix:r.addQueryPrefix,allowDots:H,allowEmptyArrays:typeof T.allowEmptyArrays==="boolean"?!!T.allowEmptyArrays:r.allowEmptyArrays,arrayFormat:x,charset:A,charsetSentinel:typeof T.charsetSentinel==="boolean"?T.charsetSentinel:r.charsetSentinel,commaRoundTrip:!!T.commaRoundTrip,delimiter:typeof T.delimiter>"u"?r.delimiter:T.delimiter,encode:typeof T.encode==="boolean"?T.encode:r.encode,encodeDotInKeys:typeof T.encodeDotInKeys==="boolean"?T.encodeDotInKeys:r.encodeDotInKeys,encoder:typeof T.encoder==="function"?T.encoder:r.encoder,encodeValuesOnly:typeof T.encodeValuesOnly==="boolean"?T.encodeValuesOnly:r.encodeValuesOnly,filter:f,format:C,formatter:E,serializeDate:typeof T.serializeDate==="function"?T.serializeDate:r.serializeDate,skipNulls:typeof T.skipNulls==="boolean"?T.skipNulls:r.skipNulls,sort:typeof T.sort==="function"?T.sort:null,strictNullHandling:typeof T.strictNullHandling==="boolean"?T.strictNullHandling:r.strictNullHandling}};sE.exports=function(_,T){var A=_,C=VR(T),E,f;if(typeof C.filter==="function")f=C.filter,A=f("",A);else if(DT(C.filter))f=C.filter,E=f;var x=[];if(typeof A!=="object"||A===null)return"";var H=jE[C.arrayFormat],c=H==="comma"&&C.commaRoundTrip;if(!E)E=Object.keys(A);if(C.sort)E.sort(C.sort);var q=yE();for(var w=0;w<E.length;++w){var J=E[w],F=A[J];if(C.skipNulls&&F===null)continue;dE(x,BR(F,J,H,c,C.allowEmptyArrays,C.strictNullHandling,C.skipNulls,C.encodeDotInKeys,C.encode?C.encoder:null,C.filter,C.sort,C.allowDots,C.serializeDate,C.format,C.formatter,C.encodeValuesOnly,C.charset,q))}var Z=x.join(C.delimiter),Y=C.addQueryPrefix===!0?"?":"";if(C.charsetSentinel)if(C.charset==="iso-8859-1")Y+="utf8=%26%2310003%3B&";else Y+="utf8=%E2%9C%93&";return Z.length>0?Y+Z:""}});var tE=m((B1,rE)=>{var bT=GC(),NC=Object.prototype.hasOwnProperty,pE=Array.isArray,l={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:bT.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1000,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},DR=function(_){return _.replace(/&#(\d+);/g,function(T,A){return String.fromCharCode(parseInt(A,10))})},oE=function(_,T,A){if(_&&typeof _==="string"&&T.comma&&_.indexOf(",")>-1)return _.split(",");if(T.throwOnLimitExceeded&&A>=T.arrayLimit)throw RangeError("Array limit exceeded. Only "+T.arrayLimit+" element"+(T.arrayLimit===1?"":"s")+" allowed in an array.");return _},GR="utf8=%26%2310003%3B",zR="utf8=%E2%9C%93",NR=function(T,A){var C={__proto__:null},E=A.ignoreQueryPrefix?T.replace(/^\?/,""):T;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var f=A.parameterLimit===1/0?void 0:A.parameterLimit,x=E.split(A.delimiter,A.throwOnLimitExceeded?f+1:f);if(A.throwOnLimitExceeded&&x.length>f)throw RangeError("Parameter limit exceeded. Only "+f+" parameter"+(f===1?"":"s")+" allowed.");var H=-1,c,q=A.charset;if(A.charsetSentinel){for(c=0;c<x.length;++c)if(x[c].indexOf("utf8=")===0){if(x[c]===zR)q="utf-8";else if(x[c]===GR)q="iso-8859-1";H=c,c=x.length}}for(c=0;c<x.length;++c){if(c===H)continue;var w=x[c],J=w.indexOf("]="),F=J===-1?w.indexOf("="):J+1,Z,Y;if(F===-1)Z=A.decoder(w,l.decoder,q,"key"),Y=A.strictNullHandling?null:"";else Z=A.decoder(w.slice(0,F),l.decoder,q,"key"),Y=bT.maybeMap(oE(w.slice(F+1),A,pE(C[Z])?C[Z].length:0),function(D){return A.decoder(D,l.decoder,q,"value")});if(Y&&A.interpretNumericEntities&&q==="iso-8859-1")Y=DR(String(Y));if(w.indexOf("[]=")>-1)Y=pE(Y)?[Y]:Y;var X=NC.call(C,Z);if(X&&A.duplicates==="combine")C[Z]=bT.combine(C[Z],Y);else if(!X||A.duplicates==="last")C[Z]=Y}return C},$R=function(_,T,A,C){var E=0;if(_.length>0&&_[_.length-1]==="[]"){var f=_.slice(0,-1).join("");E=Array.isArray(T)&&T[f]?T[f].length:0}var x=C?T:oE(T,A,E);for(var H=_.length-1;H>=0;--H){var c,q=_[H];if(q==="[]"&&A.parseArrays)c=A.allowEmptyArrays&&(x===""||A.strictNullHandling&&x===null)?[]:bT.combine([],x);else{c=A.plainObjects?{__proto__:null}:{};var w=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,J=A.decodeDotInKeys?w.replace(/%2E/g,"."):w,F=parseInt(J,10);if(!A.parseArrays&&J==="")c={0:x};else if(!isNaN(F)&&q!==J&&String(F)===J&&F>=0&&(A.parseArrays&&F<=A.arrayLimit))c=[],c[F]=x;else if(J!=="__proto__")c[J]=x}x=c}return x},nR=function(T,A,C,E){if(!T)return;var f=C.allowDots?T.replace(/\.([^.[]+)/g,"[$1]"):T,x=/(\[[^[\]]*])/,H=/(\[[^[\]]*])/g,c=C.depth>0&&x.exec(f),q=c?f.slice(0,c.index):f,w=[];if(q){if(!C.plainObjects&&NC.call(Object.prototype,q)){if(!C.allowPrototypes)return}w.push(q)}var J=0;while(C.depth>0&&(c=H.exec(f))!==null&&J<C.depth){if(J+=1,!C.plainObjects&&NC.call(Object.prototype,c[1].slice(1,-1))){if(!C.allowPrototypes)return}w.push(c[1])}if(c){if(C.strictDepth===!0)throw RangeError("Input depth exceeded depth option of "+C.depth+" and strictDepth is true");w.push("["+f.slice(c.index)+"]")}return $R(w,A,C,E)},KR=function(T){if(!T)return l;if(typeof T.allowEmptyArrays<"u"&&typeof T.allowEmptyArrays!=="boolean")throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof T.decodeDotInKeys<"u"&&typeof T.decodeDotInKeys!=="boolean")throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(T.decoder!==null&&typeof T.decoder<"u"&&typeof T.decoder!=="function")throw TypeError("Decoder has to be a function.");if(typeof T.charset<"u"&&T.charset!=="utf-8"&&T.charset!=="iso-8859-1")throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof T.throwOnLimitExceeded<"u"&&typeof T.throwOnLimitExceeded!=="boolean")throw TypeError("`throwOnLimitExceeded` option must be a boolean");var A=typeof T.charset>"u"?l.charset:T.charset,C=typeof T.duplicates>"u"?l.duplicates:T.duplicates;if(C!=="combine"&&C!=="first"&&C!=="last")throw TypeError("The duplicates option must be either combine, first, or last");var E=typeof T.allowDots>"u"?T.decodeDotInKeys===!0?!0:l.allowDots:!!T.allowDots;return{allowDots:E,allowEmptyArrays:typeof T.allowEmptyArrays==="boolean"?!!T.allowEmptyArrays:l.allowEmptyArrays,allowPrototypes:typeof T.allowPrototypes==="boolean"?T.allowPrototypes:l.allowPrototypes,allowSparse:typeof T.allowSparse==="boolean"?T.allowSparse:l.allowSparse,arrayLimit:typeof T.arrayLimit==="number"?T.arrayLimit:l.arrayLimit,charset:A,charsetSentinel:typeof T.charsetSentinel==="boolean"?T.charsetSentinel:l.charsetSentinel,comma:typeof T.comma==="boolean"?T.comma:l.comma,decodeDotInKeys:typeof T.decodeDotInKeys==="boolean"?T.decodeDotInKeys:l.decodeDotInKeys,decoder:typeof T.decoder==="function"?T.decoder:l.decoder,delimiter:typeof T.delimiter==="string"||bT.isRegExp(T.delimiter)?T.delimiter:l.delimiter,depth:typeof T.depth==="number"||T.depth===!1?+T.depth:l.depth,duplicates:C,ignoreQueryPrefix:T.ignoreQueryPrefix===!0,interpretNumericEntities:typeof T.interpretNumericEntities==="boolean"?T.interpretNumericEntities:l.interpretNumericEntities,parameterLimit:typeof T.parameterLimit==="number"?T.parameterLimit:l.parameterLimit,parseArrays:T.parseArrays!==!1,plainObjects:typeof T.plainObjects==="boolean"?T.plainObjects:l.plainObjects,strictDepth:typeof T.strictDepth==="boolean"?!!T.strictDepth:l.strictDepth,strictNullHandling:typeof T.strictNullHandling==="boolean"?T.strictNullHandling:l.strictNullHandling,throwOnLimitExceeded:typeof T.throwOnLimitExceeded==="boolean"?T.throwOnLimitExceeded:!1}};rE.exports=function(_,T){var A=KR(T);if(_===""||_===null||typeof _>"u")return A.plainObjects?{__proto__:null}:{};var C=typeof _==="string"?NR(_,A):_,E=A.plainObjects?{__proto__:null}:{},f=Object.keys(C);for(var x=0;x<f.length;++x){var H=f[x],c=nR(H,C[H],A,typeof _==="string");E=bT.merge(E,c,A)}if(A.allowSparse===!0)return E;return bT.compact(E)}});var aE=m((V1,eE)=>{var IR=iE(),hR=tE(),mR=y_();eE.exports={formats:mR,parse:hR,stringify:IR}});var X4=N_($_(),1);var vC={};Df(vC,{zodSchemaKey:()=>zf,webSocketServerArgsKey:()=>YT,webSocketMessageArgsKey:()=>MT,webSocketKey:()=>qT,webSocketEventKey:()=>OT,webSocketEventArgumentsKey:()=>_T,webSocketConnectionArgsKey:()=>QT,webSocketCloseReasonArgsKey:()=>x_,webSocketCloseCodeArgsKey:()=>f_,routeModelArgsKey:()=>cT,responseStatusTextArgsKey:()=>t_,responseStatusArgsKey:()=>L_,responseHeadersArgsKey:()=>CT,responseBodyArgsKey:()=>c_,requestHeadersArgsKey:()=>UT,requestHeaderArgsKey:()=>xT,requestBodyArgsKey:()=>XT,requestArgsKey:()=>RT,queryArgsKey:()=>R_,paramsArgsKey:()=>iT,paramArgsKey:()=>JT,moduleKey:()=>WT,middlewareKey:()=>ST,interceptorKey:()=>mT,injectableKey:()=>NT,injectKey:()=>sT,httpServerArgsKey:()=>fT,guardKey:()=>zT,controllerKey:()=>FT,controllerHttpKey:()=>dT,contextArgsKey:()=>ZT,containerKey:()=>ET,configKey:()=>n_,argumentsKey:()=>v});var v=Symbol.for("____boolTypescriptCore:arguments__"),_T=Symbol.for("____boolTypescriptCore:webSocketEventArguments__"),n_=Symbol.for("____boolTypescriptCore:config__"),FT=Symbol.for("____boolTypescriptCore:controller__"),mT=Symbol.for("____boolTypescriptCore:interceptor__"),zT=Symbol.for("____boolTypescriptCore:guard__"),dT=Symbol.for("____boolTypescriptCore:controller.http__"),sT=Symbol.for("____boolTypescriptCore:inject__"),NT=Symbol.for("____boolTypescriptCore:injectable__"),ST=Symbol.for("____boolTypescriptCore:middleware__"),WT=Symbol.for("____boolTypescriptCore:module__"),ET=Symbol.for("____boolTypescriptCore:container__"),zf=Symbol.for("____boolTypescriptCore:zodSchema__"),qT=Symbol.for("____boolTypescriptCore:webSocket__"),OT=Symbol.for("____boolTypescriptCore:webSocket:event__"),YT=Symbol.for("____boolTypescriptCore:webSocketArguments:server__"),QT=Symbol.for("____boolTypescriptCore:webSocketArguments:connection__"),MT=Symbol.for("____boolTypescriptCore:webSocketArguments:message__"),f_=Symbol.for("____boolTypescriptCore:webSocketArguments:closeCode__"),x_=Symbol.for("____boolTypescriptCore:webSocketArguments:closeReason__"),fT=Symbol.for("____boolTypescriptCore:httpArguments:server__"),UT=Symbol.for("____boolTypescriptCore:httpArguments:requestHeaders__"),xT=Symbol.for("____boolTypescriptCore:httpArguments:requestHeader__"),XT=Symbol.for("____boolTypescriptCore:httpArguments:requestBody__"),iT=Symbol.for("____boolTypescriptCore:httpArguments:params__"),JT=Symbol.for("____boolTypescriptCore:httpArguments:param__"),R_=Symbol.for("____boolTypescriptCore:httpArguments:query__"),RT=Symbol.for("____boolTypescriptCore:httpArguments:request__"),CT=Symbol.for("____boolTypescriptCore:httpArguments:responseHeaders__"),ZT=Symbol.for("____boolTypescriptCore:httpArguments:context__"),cT=Symbol.for("____boolTypescriptCore:httpArguments:routeModel__"),c_=Symbol.for("____boolTypescriptCore:httpArguments:responseBody__"),L_=Symbol.for("____boolTypescriptCore:httpArguments:responseStatus__"),t_=Symbol.for("____boolTypescriptCore:httpArguments:responseStatusText__");var Nf=(_)=>(T,A,C)=>{if(!A)return;let E=Reflect.getOwnMetadata(v,T.constructor,A)||{};E[`argumentIndexes.${C}`]={index:C,type:UT,validationSchema:_},Reflect.defineMetadata(v,E,T.constructor,A)},$f=(_,T)=>(A,C,E)=>{if(!C)return;let f=Reflect.getOwnMetadata(v,A.constructor,C)||{};f[`argumentIndexes.${E}`]={index:E,type:xT,key:_,validationSchema:T},Reflect.defineMetadata(v,f,A.constructor,C)},nf=(_,T)=>(A,C,E)=>{if(!C)return;let f=Reflect.getOwnMetadata(v,A.constructor,C)||{};f[`argumentIndexes.${E}`]={index:E,type:XT,validationSchema:_,parser:T},Reflect.defineMetadata(v,f,A.constructor,C)},Kf=(_)=>(T,A,C)=>{if(!A)return;let E=Reflect.getOwnMetadata(v,T.constructor,A)||{};E[`argumentIndexes.${C}`]={index:C,type:iT,validationSchema:_},Reflect.defineMetadata(v,E,T.constructor,A)},If=(_,T)=>(A,C,E)=>{if(!C)return;let f=Reflect.getOwnMetadata(v,A.constructor,C)||{};f[`argumentIndexes.${E}`]={index:E,type:JT,key:_,validationSchema:T},Reflect.defineMetadata(v,f,A.constructor,C)},hf=(_)=>(T,A,C)=>{if(!A)return;let E=Reflect.getOwnMetadata(v,T.constructor,A)||{};E[`argumentIndexes.${C}`]={index:C,type:R_,validationSchema:_},Reflect.defineMetadata(v,E,T.constructor,A)},mf=(_)=>(T,A,C)=>{if(!A)return;let E=Reflect.getOwnMetadata(v,T.constructor,A)||{};E[`argumentIndexes.${C}`]={index:C,type:RT,validationSchema:_},Reflect.defineMetadata(v,E,T.constructor,A)},Of=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(v,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:CT},Reflect.defineMetadata(v,C,_.constructor,T)},Mf=(_)=>(T,A,C)=>{if(!A)return;let E=Reflect.getOwnMetadata(v,T.constructor,A)||{};E[`argumentIndexes.${C}`]={index:C,type:ZT,key:_},Reflect.defineMetadata(v,E,T.constructor,A)},uf=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(v,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:cT},Reflect.defineMetadata(v,C,_.constructor,T)},gf=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(v,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:fT},Reflect.defineMetadata(v,C,_.constructor,T)};var Pf=(_)=>(T)=>{let{modules:A,middlewares:C,guards:E,dependencies:f}=_||{};if(Reflect.hasOwnMetadata(WT,T))throw Error(`Conflict detected! ${T.name} class cannot be both a Module and a Container.`);if(A){for(let x=0;x<A.length;x++)if(!Reflect.getOwnMetadataKeys(A[x]).includes(WT))throw Error(`${A[x].name} is not a module.`)}if(C){for(let x=0;x<C.length;x++)if(!Reflect.getOwnMetadataKeys(C[x]).includes(ST))throw Error(`${C[x].name} is not a middleware.`)}if(C){for(let x=0;x<C.length;x++)if(!Reflect.getOwnMetadataKeys(C[x]).includes(ST))throw Error(`${C[x].name} is not a middleware.`)}if(E){for(let x=0;x<E.length;x++)if(!Reflect.getOwnMetadataKeys(E[x]).includes(zT))throw Error(`${E[x].name} is not a guard.`)}if(f){for(let x=0;x<f.length;x++)if(!Reflect.getOwnMetadataKeys(f[x]).includes(NT))throw Error(`${f[x].name} is not an injectable.`)}Reflect.defineMetadata(ET,_,T)};var kf=(_)=>(T)=>{let A={prefix:!_?.startsWith("/")?`/${_||""}`:_,httpMetadata:[...Reflect.getOwnMetadata(dT,T)||[]]};Reflect.defineMetadata(FT,A,T)};var vf=()=>(_)=>{if(!("enforce"in _.prototype)||typeof _.prototype.enforce!=="function")return;let T=void 0;return Reflect.defineMetadata(zT,T,_),_};var pT=(_,T)=>(A,C,E)=>{if(!(E?.value instanceof Function))throw Error(`${T} decorator only use for class method.`);let f=Reflect.getOwnMetadata(v,A.constructor,C)||{},x=[...Reflect.getOwnMetadata(dT,A.constructor)||[],{path:!_.startsWith("/")?`/${_}`:_,httpMethod:T.toUpperCase(),methodName:C,descriptor:E,argumentsMetadata:f}];Reflect.defineMetadata(dT,x,A.constructor)},bf=(_="/")=>pT(_,"Get"),lf=(_="/")=>pT(_,"Post"),yf=(_="/")=>pT(_,"Put"),jf=(_="/")=>pT(_,"Patch"),df=(_="/")=>pT(_,"Delete"),sf=(_="/")=>pT(_,"Options");var pf=(_)=>(T,A,C)=>{let E=Reflect.getMetadata(sT,T)||[];E[C]=_,Reflect.defineMetadata(sT,E,T)};var of=()=>(_)=>Reflect.defineMetadata(NT,void 0,_);var rf=()=>(_)=>{Reflect.defineMetadata(mT,void 0,_)};var tf=()=>(_)=>{Reflect.defineMetadata(ST,void 0,_)};var ef=(_)=>(T)=>{if(Reflect.hasOwnMetadata(ET,T))throw Error(`Conflict detected! ${T.name} class cannot be both a Module and a Container.`);let{middlewares:A,guards:C,interceptors:E,controllers:f,dependencies:x,webSockets:H}=_||{};if(A){for(let c=0;c<A.length;c++)if(!Reflect.getOwnMetadataKeys(A[c]).includes(ST))throw Error(`${A[c].name} is not a middleware.`)}if(C){for(let c=0;c<C.length;c++)if(!Reflect.getOwnMetadataKeys(C[c]).includes(zT))throw Error(`${C[c].name} is not a guard.`)}if(E){for(let c=0;c<E.length;c++)if(!Reflect.getOwnMetadataKeys(E[c]).includes(mT))throw Error(`${E[c].name} is not a interceptor.`)}if(f){for(let c=0;c<f.length;c++)if(!Reflect.getOwnMetadataKeys(f[c]).includes(FT))throw Error(`${f[c].name} is not a controller.`)}if(x){for(let c=0;c<x.length;c++)if(!Reflect.getOwnMetadataKeys(x[c]).includes(NT))throw Error(`${x[c].name} is not an injectable.`)}if(H){for(let c=0;c<H.length;c++)if(!Reflect.getOwnMetadataKeys(H[c]).includes(qT))throw Error(`${H[c].name} is not a websocket gateway.`)}Reflect.defineMetadata(WT,_,T)};var K_=Symbol("__bool:webSocket.upgrade__"),af=(_,T,A)=>{let C=new URL(T.url);return _.upgrade(T,{data:{method:T.method.toUpperCase(),pathname:C.pathname,query:A}})},T0=(_)=>(T)=>{let{prefix:A}=_||{};T.prototype[K_]=af;let C=Object.getOwnPropertyDescriptor(T.prototype,K_),E=!C?[]:[{path:"/",httpMethod:"GET",methodName:K_,descriptor:C,argumentsMetadata:{}},{path:"/",httpMethod:"POST",methodName:K_,descriptor:C,argumentsMetadata:{}}],f={prefix:!A?.startsWith("/")?`/${A||""}`:A,events:Reflect.getOwnMetadata(OT,T)||{},http:E};Reflect.defineMetadata(qT,f,T)};var _0=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:QT},Reflect.defineMetadata(_T,C,_.constructor,T)},C0=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:YT},Reflect.defineMetadata(_T,C,_.constructor,T)},A0=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:f_},Reflect.defineMetadata(_T,C,_.constructor,T)},E0=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:x_},Reflect.defineMetadata(_T,C,_.constructor,T)},f0=()=>(_,T,A)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${A}`]={index:A,type:MT},Reflect.defineMetadata(_T,C,_.constructor,T)};var x0=(_)=>(T,A,C)=>{if(!(C.value instanceof Function))throw Error("WebSocketEvent decorator only use for class's method.");let E=Reflect.getOwnMetadata(_T,T.constructor,A),f=Object.freeze({methodName:A,descriptor:C,arguments:E}),x={...Reflect.getOwnMetadata(OT,T.constructor)||void 0,[_]:f};Reflect.defineMetadata(OT,f,T.constructor,A),Reflect.defineMetadata(OT,x,T.constructor)};var R0=Object.freeze({400:"BAD_REQUEST",401:"UNAUTHORIZED",402:"PAYMENT_REQUIRED",403:"FORBIDDEN",404:"NOT_FOUND",405:"METHOD_NOT_ALLOWED",406:"NOT_ACCEPTABLE",407:"PROXY_AUTHENCATION_REQUIRED",408:"REQUEST_TIMEOUT",409:"CONFLICT",410:"GONE",411:"LENGTH_REQUIRED",412:"PRECONDITION_FAILED",413:"PAYLOAD_TOO_LARGE",414:"URI_TOO_LONG",415:"UNSUPPORTED_MEDIA_TYPE",416:"RANGE_NOT_SATISFIABLE",417:"EXPECTATION_FAILED",418:"IM_A_TEAPOT",421:"MISDIRECTED_REQUEST",422:"UNPROCESSABLE_ENTITY",423:"LOCKED",424:"FAILED_DEPENDENCY",425:"TOO_EARLY_",426:"UPGRAGE_REQUIRED",428:"PRECONDITION_REQUIRED",429:"TOO_MANY_REQUESTS",431:"REQUEST_HEADER_FIELDS_TOO_LARGE",451:"UNAVAILABLE_FOR_LEGAL_REASONS"});class uT extends Error{httpCode;message;data;constructor({httpCode:_,data:T,message:A}){super();this.httpCode=_,this.message=!A?.trim()?R0[_]:A.trim(),this.data=T}}var c0=Object.freeze({500:"INTERNAL_SERVER_ERROR",501:"NOT_IMPLEMENTED",502:"BAD_GATEWAY",503:"SERVICE_UNAVAILABLE",504:"GATEWAY_TIMEOUT",505:"HTTP_VERSION_NOT_SUPPORTED",506:"VARIANT_ALSO_NEGOTIATES",507:"INSUFFICIENT_STORAGE",508:"LOOP_DETECTED",510:"NOT_EXTENDED",511:"NETWORK_AUTHENTICATION_REQUIRED"});class H_ extends Error{httpCode;message;data;constructor({httpCode:_,data:T,message:A}){super();this.httpCode=_,this.message=!A?.trim()?c0[_]:A.trim(),this.data=T}}var bC=(_,T=new Headers)=>{if(T.set("Content-Type","application/json"),_ instanceof uT||_ instanceof H_)return new Response(JSON.stringify(_),{status:_.httpCode,statusText:_.message,headers:T});return new Response(JSON.stringify((()=>{switch(typeof _){case"object":return!(_ instanceof Error)?_:{message:_.message,code:_.name,cause:_.cause};case"string":return{message:_};case"number":return{code:_};default:return}})()),{status:500,statusText:"INTERNAL SERVER ERROR",headers:T})};var LT;(function(_){_.year="year",_.month="month",_.day="day",_.hours="hours",_.minutes="minutes",_.seconds="seconds",_.miliseconds="miliseconds"})(LT||(LT={}));var lC=(_,T,A=LT.day)=>{let C=_ instanceof Date?_:new Date(_);switch(A){case LT.year:C.setFullYear(C.getFullYear()+T);break;case LT.month:C.setMonth(C.getMonth()+T);break;case LT.day:C.setDate(C.getDate()+T);break;case LT.hours:C.setHours(C.getHours()+T);break;case LT.minutes:C.setMinutes(C.getMinutes()+T);break;case LT.seconds:C.setSeconds(C.getSeconds()+T);break;case LT.miliseconds:C.setMilliseconds(C.getMilliseconds()+T);break}return C};var ff=N_(aE(),1);var D1=async function(){}.constructor;var Tf=Object.freeze({black:30,red:31,green:32,yellow:33,blue:34,magenta:35,cyan:36,white:37,gray:90}),_f=Object.freeze({black:40,red:41,green:42,yellow:43,blue:44,magenta:45,cyan:46,white:47,gray:100}),nT=(_,T={})=>{let{color:A,backgroundColor:C,bold:E,underline:f}=T,x="";if(E)x+="\x1B[1m";if(f)x+="\x1B[4m";if(A&&Tf[A])x+=`\x1B[${Tf[A]}m`;if(C&&_f[C])x+=`\x1B[${_f[C]}m`;return`${x}${_}\x1B[0m`};var Cf=(_)=>{let{headers:T,method:A}=_,C=T.get("upgrade")?.toLowerCase()||"",E=T.get("connection")?.toLowerCase()||"";return A==="GET"&&C?.toLowerCase()==="websocket"&&E?.toLowerCase().includes("upgrade")};class B_{_staticMap=new Map;_dynamicMap=new Map;_options=void 0;constructor(..._){_.forEach((T)=>{T.staticEntries.forEach(([A,C])=>this.set(A,C,{isStatic:!0,isPassthrough:!0})),T.dynamicEntries.forEach(([A,C])=>this.set(A,C,{isStatic:!1}))})}get(_,T){return!(T||this._options)?.isStatic?this._dynamicMap.get(_):this._staticMap.get(_)}has(_,T){return!(T||this._options)?.isStatic?this._dynamicMap.has(_):this._staticMap.has(_)}set(_,T,A){let C=A||this._options;if(!C?.isStatic)this._dynamicMap.set(_,T);else if(!this._staticMap.has(_))this._staticMap.set(_,T);else if(!C.isPassthrough)throw Error(`${String(_)} already exists in context static collection.`);return this}setOptions(_){return this._options=_,this}get staticEntries(){return[...this._staticMap.entries()]}get dynamicEntries(){return[...this._dynamicMap.entries()]}}class GT{static rootPattern=":([a-z0-9A-Z_-]{1,})";static innerRootPattern="([a-z0-9A-Z_-]{1,})";alias;_map=new Map;constructor(_){this.alias=this._thinAlias(_)}test(_,T){try{let A=this._map.get(T),C=this.alias.split("/"),E=this._thinAlias(_).split("/");if(!A)return;if(C.length!==E.length)return;let f=Object(),x=this.alias.replace(new RegExp(GT.rootPattern,"g"),GT.innerRootPattern);if(!new RegExp(x).test(this._thinAlias(_)))return;for(let H=0;H<C.length;H++){let c=C[H],q=E[H];if(!new RegExp(GT.rootPattern,"g").test(c)){if(c!==q)return}else{let w=!1;if(c.replace(new RegExp(GT.rootPattern,"g"),(J,F,Z)=>{if(Z===0)q.replace(new RegExp(GT.innerRootPattern,"g"),(Y,X,D)=>{if(D===0)Object.assign(f,{[F]:Y});return Y});return J}),w)return}continue}return Object.freeze({parameters:f,model:A})}catch(A){return console.error(A),!1}}isMatch(_,T){try{if(!this._map.get(T))return;let C=this.alias.split("/"),E=this._thinAlias(_).split("/");if(C.length!==E.length)return!1;let f=Object();for(let x=0;x<C.length;x++){let H=C[x],c=E[x];if(!new RegExp(GT.rootPattern,"g").test(H)){if(H!==c)return!1}else{let q=!1;if(H.replace(new RegExp(GT.rootPattern,"g"),(w,J,F)=>{if(!new RegExp(F,"g").test(c))q=!0;else Object.assign(f,{[J]:c});return""}),q)return!1}continue}return!0}catch(A){console.error(A);return}}get(_){if(!this._map.get("GET"))this._map.set("GET",_);return this}post(_){if(!this._map.get("POST"))this._map.set("POST",_);return this}put(_){if(!this._map.get("PUT"))this._map.set("PUT",_);return this}delete(_){if(!this._map.get("DELETE"))this._map.set("DELETE",_);return this}connect(_){if(!this._map.get("CONNECT"))return this._map.set("CONNECT",_);return this}options(_){if(!this._map.get("OPTIONS"))return this._map.set("OPTIONS",_);return this}trace(_){if(!this._map.get("TRACE"))return this._map.set("TRACE",_);return this}patch(_){if(!this._map.get("PATCH"))return this._map.set("PATCH",_);return this}_thinAlias(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get _fullPath(){return this.alias.split("/").map((A,C)=>{let E=new RegExp(":([a-z0-9A-Z_.-]{1,})(\\(.*?\\))","g");if(!E.test(A)){if(E=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!E.test(A))return A;return A.replace(E,(f,x)=>`${f}(.*?)`)}return A}).join("/")}get _filteredPath(){return this.alias.split("/").map((A,C)=>{let E=new RegExp(":([a-z0-9A-Z_.-]{1,})((.*?))","g");if(!E.test(A)){if(E=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!E.test(A))return A;return A.replace(E,(f,x)=>"(.*?)")}return A.replace(E,(f,x,H)=>H)}).join("/")}}var Af=GT;class V_{alias;_routes=new Map;constructor(_){this.alias=this._thinAlias(_)}route(_){let T=this._thinAlias(`${this.alias}/${_}`),A=this._routes.get(T),C=!A?new Af(`${this.alias}/${_}`):A;if(!A)this._routes.set(T,C);return C}_thinAlias(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get routes(){return this._routes}}class D_{_routers=new Map;add(..._){for(let T of _){if(this._routers.has(T.alias))continue;this._routers.set(T.alias,T)}return this}find(_,T){for(let A of this._routers.values())for(let C of A.routes.values()){let E=C.test(_,T);if(!E)continue;return E}return}}var P1=N_($_(),1);class __{_mapper=new Map;constructor(..._){_.forEach((T)=>{T.entries.forEach(([A,C])=>{this._mapper.set(A,C)})})}get(_){if(this._mapper.has(_))return this._mapper.get(_);if(typeof _!=="function")return;let T=Reflect.getMetadataKeys(_);if(![NT,FT,ST,zT,mT,qT].some((f)=>T.includes(f)))throw Error("Missing dependency declaration, please check @Injectable() used on dependency(ies).");let C=(Reflect.getOwnMetadata(sT,_)||[]).map((f)=>this.get(f)),E=new _(...C);return this._mapper.set(_,E),E}set(_,T){if(this._mapper.has(_))throw Error(`${String(_)} already exists in injector collection.`);this._mapper.set(_,T)}get entries(){return[...this._mapper.entries()]}}class $C{error;constructor(_){this.error=_}}var Ef=$C;class d_{eventName;metadata;_context=void 0;constructor({eventName:_,metadata:T}){this.eventName=_,this.metadata=T}bind(_){return this._context=_,this}execute(){if(this._context&&typeof this.metadata.descriptor.value==="function")this.metadata.descriptor.value=this.metadata.descriptor.value.bind(this._context);return Object.freeze({methodName:this.metadata.methodName,descriptor:this.metadata.descriptor,arguments:this.metadata.arguments})}}class G_{rawAlias;alias;routes=[];constructor(_="/"){this.rawAlias=_;this.alias=G_.thinAlias(_)}addRoutes(..._){for(let T of _)if(!this.routes.includes(T))this.routes.push(T);return this}bind(_){for(let T of this.routes)T.bind(_);return this}execute(){let _=new Map;for(let T of this.routes)_.set(`${this.alias}:::${T.eventName}`,T.execute());return _}static thinAlias(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}class C_{rawPrefix;prefix;routers=[];constructor(_="/"){this.rawPrefix=_;this.prefix=C_.thinPrefix(_)}addRouters(..._){for(let T=0;T<_.length;T++)if(!this.routers.includes(_[T]))this.routers.push(_[T]);for(let T of _)if(!this.routers.includes(T))this.routers.push(T);return this}execute(){let _=new Map;for(let T of this.routers){let A=T.execute();for(let[C,E]of A.entries())_.set(`/${C_.thinPrefix(`${this.prefix}/${C}`)}`,E)}return _}static thinPrefix(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}class s_{classConstructor;options;#_;#T;#E=new __;#C=new Map;#f;#x=900;#A;constructor(_,T){this.classConstructor=_;this.options=T;if(this.#T=Reflect.getOwnMetadataKeys(_),!this.#T.includes(ET)&&!this.#T.includes(WT))throw Error(`Can not detect! ${_.name} class is not a container or module.`);this.#x=typeof T.static?.cacheTimeInSeconds!=="number"?900:T.static.cacheTimeInSeconds,this.#f=Object.freeze({allowLogsMethods:this.options?.log?.methods||[],staticOption:this.options.static,allowOrigins:!this.options.cors?.origins?["*"]:typeof this.options.cors.origins!=="string"?this.options.cors.origins.includes("*")||this.options.cors.origins.length<1?["*"]:this.options.cors.origins:[this.options.cors.origins!=="*"?this.options.cors.origins:"*"],allowMethods:this.options.cors?.methods||["GET","POST","PUT","PATCH","DELETE","OPTIONS"],allowCredentials:!this.options.cors?.credentials?!1:!0,allowHeaders:!this.options.cors?.headers||this.options.cors.headers.includes("*")?["*"]:this.options.cors.headers})}useValidator(_){this.#A=_}async preLaunch(){if(this.#_)return this.#_;let _=!this.#T.includes(ET)?void 0:Reflect.getOwnMetadata(ET,this.classConstructor),T=!this.#T.includes(ET)?[this.classConstructor]:_?.modules||[],A=!_?void 0:await this.containerResolution({containerClass:this.classConstructor,options:this.options,extendInjector:this.#E}),C=await Promise.all(T.map((H)=>this.moduleResolution({moduleClass:H,options:this.options,extendInjector:!A?this.#E:A.injector})));if([...new Set(C.map((H)=>H.prefix))].length!==C.length)throw Error("Module prefix should be unique.");let f=new Map;for(let H of C){let c=H.webSocketRouterGroup.execute();for(let[q,w]of c.entries())f.set(q,w)}let x=Object.freeze({containerMetadata:_,modulesConverted:T,resolutedContainer:A,resolutedModules:C,webSocketsMap:f});return this.#_=x,x}async listen(){let{allowLogsMethods:_,allowOrigins:T,allowMethods:A,allowHeaders:C,allowCredentials:E,staticOption:f}=this.#f,{resolutedContainer:x,resolutedModules:H,webSocketsMap:c}=await this.preLaunch(),q=Bun.serve({port:this.options.port,fetch:async(w,J)=>{let F=performance.now(),Z=new URL(w.url),Y=ff.parse(Z.searchParams.toString(),this.options.queryParser),X=w.headers.get("origin")||"*",D=w.method.toUpperCase(),W=new Headers,N=new B_().setOptions({isStatic:!0}).set(fT,J).set(RT,w).set(xT,w.headers).set(CT,W).set(R_,Y);try{let U=Cf(w),V;if(U){for(let M of H){let i=M.webSocketHttpRouterGroup.find(Z.pathname,w.method);if(i){V=Object.freeze({route:i,resolution:M});break}}if(!V)return this.finalizeResponse(new Response(JSON.stringify({httpCode:404,message:"Route not found",data:void 0}),{status:404,statusText:"Not found.",headers:W}));let h=await this.webSocketFetcher({request:w,server:J},{query:Y,responseHeaders:W,route:V.route,moduleResolution:V.resolution});return h instanceof Response?h:void 0}if([...!E?[]:[{key:"Access-Control-Allow-Credentials",value:"true"}],{key:"Access-Control-Allow-Origin",value:T.includes("*")?"*":!T.includes(X)?T[0]:X},{key:"Access-Control-Allow-Methods",value:A.join(", ")},{key:"Access-Control-Allow-Headers",value:C.join(", ")}].forEach(({key:h,value:M})=>W.set(h,M)),!A.includes(D))return this.finalizeResponse(new Response(void 0,{status:405,statusText:"Method Not Allowed.",headers:W}));if(w.method.toUpperCase()==="OPTIONS")return this.finalizeResponse(T.includes("*")||T.includes(X)?new Response(void 0,{status:204,statusText:"No Content.",headers:W}):new Response(void 0,{status:417,statusText:"Expectation Failed.",headers:W}));if(f){let{path:h,headers:M}=f,i=`${h}/${Z.pathname}`,p=this.#C.get(i);if(!p){let s=Bun.file(i);if(await s.exists()){if(M)for(let[TT,AT]of Object.entries(M))W.set(TT,AT);return W.set("Content-Type",s.type),this.finalizeResponse(new Response(await s.arrayBuffer(),{status:200,statusText:"SUCCESS",headers:W}))}}else{let s=new Date>p.expiredAt;if(s)this.#C.delete(i);let e=!s?p.file:Bun.file(i);if(await e.exists()){if(this.#C.set(i,Object.freeze({expiredAt:lC(new Date,this.#x,LT.seconds),file:e})),M)for(let[AT,KT]of Object.entries(M))W.set(AT,KT);return W.set("Content-Type",e.type),this.finalizeResponse(new Response(await e.arrayBuffer(),{status:200,statusText:"SUCCESS",headers:W}))}}}if(x){let{context:h}=await this.httpFetcher({context:N,resolutedMap:{injector:x.injector,startMiddlewareGroup:x.startMiddlewareGroup,guardGroup:x.guardGroup},options:{isContainer:!0}});N=h}for(let h of H){let M=h.controllerRouterGroup.find(Z.pathname,D);if(M){V=Object.freeze({route:M,resolution:h});break}}if(!V)N.setOptions({isStatic:!1}).set(L_,404).set(t_,"Not found.").set(c_,{httpCode:404,message:"Route not found",data:void 0});else{let{context:h}=await this.httpFetcher({context:N,route:V.route,resolutedMap:V.resolution});N=h}if(x){let{context:h}=await this.httpFetcher({context:N,resolutedMap:{injector:x.injector,endMiddlewareGroup:x.endMiddlewareGroup},options:{isContainer:!0}});N=h}let n=N.get(CT,{isStatic:!0})||new Headers,a=N.get(c_,{isStatic:!1})||void 0,Q=N.get(L_,{isStatic:!1}),P=N.get(L_,{isStatic:!1});return this.serializeResponse({status:typeof Q!=="number"?void 0:Q,statusText:typeof P!=="string"?void 0:P,headers:n,data:a})}catch(U){return this.options.debug&&console.error(U),this.finalizeResponse(bC(U,W))}finally{if(_){let U=performance.now(),V=nT(Z.pathname,{color:"blue"}),n=`${Bun.color("yellow","ansi")}${process.pid}`,a=nT(w.method,{color:"yellow",backgroundColor:"blue"}),Q=nT(`${w.headers.get("x-forwarded-for")||w.headers.get("x-real-ip")||J.requestIP(w)?.address||"<Unknown>"}`,{color:"yellow"}),P=nT(`${Math.round((U-F+Number.EPSILON)*100)/100}ms`,{color:"yellow",backgroundColor:"blue"});_.includes(w.method.toUpperCase())&&console.info(`PID: ${n} - Method: ${a} - IP: ${Q} - ${V} - Time: ${P}`)}}},websocket:{open:(w)=>{let J=`${w.data.pathname}:::open`,F=c.get(J);if(!F)return;let Z=F.arguments||{},Y=[];for(let[X,D]of Object.entries(Z))switch(D.type){case QT:Y[D.index]=w;break;case YT:Y[D.index]=q;break}F.descriptor.value(...Y)},close:(w,J,F)=>{let Z=`${w.data.pathname}:::close`,Y=c.get(Z);if(!Y)return;let X=Y.arguments||{},D=[];for(let[W,N]of Object.entries(X))switch(N.type){case QT:D[N.index]=w;break;case YT:D[N.index]=q;break;case f_:D[N.index]=J;break;case x_:D[N.index]=F;break}Y.descriptor.value(...D)},message:(w,J)=>{let F=`${w.data.pathname}:::message`,Z=c.get(F);if(!Z)return;let Y=Z.arguments||{},X=[];for(let[D,W]of Object.entries(Y))switch(W.type){case QT:X[W.index]=w;break;case MT:X[W.index]=J;break;case YT:X[W.index]=q;break}Z.descriptor.value(...X)},drain:(w)=>{let J=`${w.data.pathname}:::drain`,F=c.get(J);if(!F)return;let Z=F.arguments||{},Y=[];for(let[X,D]of Object.entries(Z))switch(D.type){case QT:Y[D.index]=w;break;case YT:Y[D.index]=q;break}F.descriptor.value(...Y)},ping:(w,J)=>{let F=`${w.data.pathname}:::ping`,Z=c.get(F);if(!Z)return;let Y=Z.arguments||{},X=[];for(let[D,W]of Object.entries(Y))switch(W.type){case QT:X[W.index]=w;break;case YT:X[W.index]=q;break;case MT:X[W.index]=J;break}Z.descriptor.value(...X)},pong:(w,J)=>{let F=`${w.data.pathname}:::pong`,Z=c.get(F);if(!Z)return;let Y=Z.arguments||{},X=[];for(let[D,W]of Object.entries(Y))switch(W.type){case QT:X[W.index]=w;break;case YT:X[W.index]=q;break;case MT:X[W.index]=J;break}Z.descriptor.value(...X)}}})}async containerResolution({containerClass:_,options:T,extendInjector:A}){if(!Reflect.getOwnMetadataKeys(_).includes(ET))throw Error(`${_.name} is not a container.`);let C=new __(A),E=Reflect.getOwnMetadata(ET,_),{loaders:f,middlewares:x,guards:H,dependencies:c,config:q}=E||{},{config:w}=Object.freeze({config:{...typeof T.config!=="function"?T.config:await T.config(),...typeof q!=="function"?typeof q!=="object"?void 0:("key"in q)&&("value"in q)&&typeof q.key==="symbol"?typeof q.value!=="function"?q.value:await q.value():q:await q()}});if(C.set(q&&"key"in q&&"value"in q&&typeof q.key==="symbol"?q.key:n_,w),f){let Y=[];for(let[D,W]of Object.entries(f))Y.push(async()=>{try{let N=await W({config:w});return console.info(`${nT(" INFO ",{color:"white",backgroundColor:"blue",bold:!0})} Loader [${D}] initialized successfully.`),N}catch(N){throw console.error(`${nT(" WARN ",{color:"yellow",backgroundColor:"red",bold:!0})} Loader [${D}] initialization failed.`),T.debug&&console.error(N),N}});let X=await Promise.all(Y.map((D)=>D()));for(let[D,W]of X)C.set(D,W)}!c||c.map((Y)=>C.get(Y));let J=[],F=[];!x||x.forEach((Y)=>{let X=C.get(Y);if(X.start&&typeof X.start==="function"){let D=Reflect.getOwnMetadata(v,Y,"start")||{};J.push(Object.freeze({class:Y,funcName:"start",func:X.start.bind(X),argumentsMetadata:D}))}if(X.end&&typeof X.end==="function"){let D=Reflect.getOwnMetadata(v,Y,"end")||{};F.push(Object.freeze({class:Y,funcName:"end",func:X.end.bind(X),argumentsMetadata:D}))}});let Z=!H?[]:H.map((Y)=>{let X=C.get(Y),D=Reflect.getOwnMetadata(v,Y,"enforce")||{};return Object.freeze({class:Y,funcName:"enforce",func:X.enforce.bind(X),argumentsMetadata:D})});return Object.freeze({injector:C,startMiddlewareGroup:J,endMiddlewareGroup:F,guardGroup:Z})}async moduleResolution({moduleClass:_,options:T,extendInjector:A}){if(!Reflect.getOwnMetadataKeys(_).includes(WT))throw Error(`${_.name} is not a module.`);let C=new __(A),E=Reflect.getOwnMetadata(WT,_),{loaders:f,middlewares:x,guards:H,interceptors:c,controllers:q,dependencies:w,webSockets:J,prefix:F,config:Z}=E||{},Y=`${T.prefix||""}/${F||""}`,{config:X}=Object.freeze({config:{...typeof T.config!=="function"?T.config:await T.config(),...typeof Z!=="function"?typeof Z!=="object"?void 0:("key"in Z)&&("value"in Z)&&typeof Z.key==="symbol"?typeof Z.value!=="function"?Z.value:await Z.value():Z:await Z()}});if(C.set(Z&&"key"in Z&&"value"in Z&&typeof Z.key==="symbol"?Z.key:n_,X),f){let P=[];for(let[M,i]of Object.entries(f))P.push(async()=>{try{let p=await i({config:X});return console.info(`${nT(" INFO ",{color:"white",backgroundColor:"blue",bold:!0})} Loader [${M}] initialized successfully.`),p}catch(p){throw console.error(`${nT(" WARN ",{color:"yellow",backgroundColor:"red",bold:!0})} Loader [${M}] initialization failed.`),T.debug&&console.error(p),p}});let h=await Promise.all(P.map((M)=>M()));for(let M=0;M<h.length;M++){let[i,p]=h[M];C.set(i,p)}}!w||w.map((P)=>C.get(P));let D=[],W=[];!x||x.forEach((P)=>{let h=C.get(P);if(h.start&&typeof h.start==="function"){let M=Reflect.getOwnMetadata(v,P,"start")||{};D.push(Object.freeze({class:P,funcName:"start",func:h.start.bind(h),argumentsMetadata:M}))}if(h.end&&typeof h.end==="function"){let M=Reflect.getOwnMetadata(v,P,"end")||{};W.push(Object.freeze({class:P,funcName:"end",func:h.end.bind(h),argumentsMetadata:M}))}});let N=!H?[]:H.map((P)=>{let h=C.get(P),M=Reflect.getOwnMetadata(v,P,"enforce")||{};return Object.freeze({class:P,funcName:"enforce",func:h.enforce.bind(h),argumentsMetadata:M})}),U=[],V=[];!c||c.forEach((P)=>{let h=C.get(P);if(h.open&&typeof h.open==="function"){let M=Reflect.getOwnMetadata(v,P,"open")||{};U.push(Object.freeze({class:P,funcName:"open",func:h.open.bind(h),argumentsMetadata:M}))}if(h.close&&typeof h.close==="function"){let M=Reflect.getOwnMetadata(v,P,"close")||{};V.push(Object.freeze({class:P,funcName:"close",func:h.close.bind(h),argumentsMetadata:M}))}});let n=new D_;!q||q.forEach((P)=>this.initControllerInstance({controllerConstructor:P,httpRouterGroup:n,injector:C,prefix:Y}));let a=new D_,Q=new C_;return J&&J.forEach((P)=>this.initWebSocketInstance({webSocketConstructor:P,httpRouterGroup:a,webSocketRouterGroup:Q,injector:C,prefix:Y})),Object.freeze({prefix:F||"",injector:C,startMiddlewareGroup:D,endMiddlewareGroup:W,guardGroup:N,openInterceptorGroup:U,closeInterceptorGroup:V,controllerRouterGroup:n,webSocketHttpRouterGroup:a,webSocketRouterGroup:Q})}async argumentsResolution(_,T,A,C){if(!this.#A)return _;try{let E=await this.#A.validate(_,T,A,C);if(!(E instanceof Ef))return E;throw new uT({httpCode:400,message:`Validation at the [${C.toString()}] method fails at positional argument [${A}].`,data:E.error})}catch(E){if(E instanceof uT)throw E;throw new H_({httpCode:500,message:`Validation at the [${C.toString()}] method error at positional argument [${A}].`,data:!(E instanceof Error)?E:[{message:E.message,code:E.name,cause:E.cause}]})}}initControllerInstance({controllerConstructor:_,httpRouterGroup:T,injector:A,prefix:C}){if(!Reflect.getOwnMetadataKeys(_).includes(FT))throw Error(`${_.name} is not a controller.`);let E=A.get(_);if(!E)throw Error("Can not initialize controller.");let f=Reflect.getOwnMetadata(FT,_)||{prefix:"/",httpMetadata:[]},x=new V_(`/${C||""}/${f.prefix}`);return f.httpMetadata.forEach((H)=>{if(typeof H.descriptor.value!=="function")return;let c=x.route(H.path),q=H.descriptor.value.bind(E),w=Object.freeze({class:_,funcName:H.methodName,func:q,argumentsMetadata:H.argumentsMetadata});switch(H.httpMethod){case"GET":return c.get(w);case"POST":return c.post(w);case"PUT":return c.put(w);case"PATCH":return c.patch(w);case"DELETE":return c.delete(w);case"OPTIONS":return c.options(w)}}),T.add(x)}initWebSocketInstance({injector:_,httpRouterGroup:T,prefix:A,webSocketRouterGroup:C,webSocketConstructor:E}){if(!Reflect.getOwnMetadataKeys(E).includes(qT))throw Error(`${E.name} is not a websocket route.`);let f=_.get(E);if(!f)throw Error("Can not initialize webSocket.");let x=Reflect.getOwnMetadata(qT,E)||{prefix:"/",events:[],http:[]},H=`/${A||""}/${x.prefix}`,c=new V_(H);for(let[w,J]of Object.entries(x.http)){if(typeof J.descriptor?.value!=="function")continue;let F=c.route(J.path),Z=J.descriptor.value.bind(f),Y=Object.freeze({class:E,funcName:J.methodName,func:Z,argumentsMetadata:J.argumentsMetadata});switch(J.httpMethod){case"GET":F.get(Y);break;case"POST":F.post(Y);break}}T.add(c);let q=new G_(H);for(let[w,J]of Object.entries(x.events)){let F=new d_({eventName:w,metadata:J});q.addRoutes(F)}return q.bind(f),C.addRouters(q),Object.freeze({httpRouterGroup:T,webSocketRouterGroup:C})}serializeResponse({status:_,statusText:T,headers:A,data:C}){let E=A.get("Content-Type")||"text/plain";if(E.includes("application/json"))return this.finalizeResponse(new Response(C instanceof ReadableStream?C:JSON.stringify(C),{status:_,statusText:T,headers:A}));if(E.includes("text/plain")||E.includes("text/html"))return this.finalizeResponse(new Response(C instanceof ReadableStream?C:String(C),{status:_,statusText:T,headers:A}));if(E.includes("application/octet-stream")){if(C instanceof Uint8Array||C instanceof ArrayBuffer||C instanceof Blob||C instanceof ReadableStream)return this.finalizeResponse(new Response(C instanceof Uint8Array?String.fromCharCode(...new Uint8Array(C)):C,{status:_,statusText:T,headers:A}));throw Error("Invalid data type for application/octet-stream")}if(E.includes("multipart/form-data")){if(C instanceof FormData)return this.finalizeResponse(new Response(C,{status:_,statusText:T,headers:A}));throw Error("multipart/form-data requires FormData object")}return this.finalizeResponse(new Response(String(C),{status:_,statusText:T,headers:A}))}finalizeResponse(_){return _.headers.set("X-Powered-By","Bool Typescript"),_}async httpFetcher({context:_,route:T,options:A,resolutedMap:C}){let E={isStatic:!0},f=(!_?new B_:new B_(_)).setOptions(E);if(T)f.set(iT,T.parameters).set(cT,T.model);let x=f.get(fT,E)||void 0,H=f.get(RT,E)||void 0,c=f.get(xT,E)||void 0,q=f.get(CT,E)||void 0,w=f.get(iT,E)||void 0,J=f.get(cT,E)||void 0;if(C){let{startMiddlewareGroup:F,guardGroup:Z}=C;if(F)for(let Y=0;Y<F.length;Y++){let X=[],{func:D,funcName:W,argumentsMetadata:N}=F[Y];for(let[U,V]of Object.entries(N))switch(V.type){case ZT:X[V.index]=!V.key?f:f.get(V.key,E);break;case RT:X[V.index]=!V.validationSchema?H:await this.argumentsResolution(H,V.validationSchema,V.index,W);break;case XT:X[V.index]=!V.validationSchema?await H?.[V.parser||"json"]():await this.argumentsResolution(await H?.[V.parser||"json"](),V.validationSchema,V.index,W);break;case UT:X[V.index]=!V.validationSchema?c:await this.argumentsResolution(c?.toJSON(),V.validationSchema,V.index,W);break;case xT:X[V.index]=!V.validationSchema?c?.get(V.key)||void 0:await this.argumentsResolution(c?.get(V.key)||void 0,V.validationSchema,V.index,W);break;case JT:X[V.index]=!V.validationSchema?w?.[V.key]||void 0:await this.argumentsResolution(w?.[V.key]||void 0,V.validationSchema,V.index,W);break;case cT:X[V.index]=J;break;case CT:X[V.index]=q;break;case fT:X[V.index]=x;break;default:X[V.index]=!V.validationSchema?!f.has(V.type,E)?void 0:f.get(V.type,E):await this.argumentsResolution(!(V.type in f)?void 0:f.get(V.type,E),V.validationSchema,V.index,W);break}await D(...X)}if(Z)for(let Y=0;Y<Z.length;Y++){let X=[],{func:D,funcName:W,argumentsMetadata:N}=Z[Y];for(let[V,n]of Object.entries(N))switch(n.type){case RT:X[n.index]=!n.validationSchema?H:await this.argumentsResolution(H,n.validationSchema,n.index,W);break;case XT:X[n.index]=!n.validationSchema?await H?.[n.parser||"json"]():await this.argumentsResolution(await H?.[n.parser||"json"](),n.validationSchema,n.index,W);break;case ZT:X[n.index]=!n.key?f:f.get(n.key);break;case UT:X[n.index]=!n.validationSchema?c:await this.argumentsResolution(c?.toJSON(),n.validationSchema,n.index,W);break;case CT:X[n.index]=q;break;case xT:X[n.index]=!n.validationSchema?c?.get(n.key)||void 0:await this.argumentsResolution(c?.get(n.key)||void 0,n.validationSchema,n.index,W);break;case JT:X[n.index]=!n.validationSchema?w?.[n.key]||void 0:await this.argumentsResolution(w?.[n.key],n.validationSchema,n.index,W);break;case cT:X[n.index]=J;break;case fT:X[n.index]=x;break;default:X[n.index]=!n.validationSchema?!f.has(n.type)?void 0:f.get(n.type):await this.argumentsResolution(f.get(n.type),n.validationSchema,n.index,W);break}let U=await D(...X);if(typeof U!=="boolean"||!U)throw new uT({httpCode:401,message:"Unauthorization.",data:void 0})}}if(J&&!A?.isContainer){if(C&&"openInterceptorGroup"in C&&C.openInterceptorGroup){let{openInterceptorGroup:D}=C;for(let W=0;W<D.length;W++){let N=[],{func:U,funcName:V,argumentsMetadata:n}=D[W];for(let[a,Q]of Object.entries(n))switch(Q.type){case RT:N[Q.index]=!Q.validationSchema?H:await this.argumentsResolution(H,Q.validationSchema,Q.index,V);break;case XT:N[Q.index]=!Q.validationSchema?await H?.[Q.parser||"json"]():await this.argumentsResolution(await H?.[Q.parser||"json"](),Q.validationSchema,Q.index,V);break;case ZT:N[Q.index]=!Q.key?f:f.get(Q.key);break;case UT:N[Q.index]=!Q.validationSchema?c:await this.argumentsResolution(c?.toJSON(),Q.validationSchema,Q.index,V);break;case xT:N[Q.index]=!Q.validationSchema?c?.get(Q.key)||void 0:await this.argumentsResolution(c?.get(Q.key)||void 0,Q.validationSchema,Q.index,V);break;case CT:N[Q.index]=q;break;case JT:N[Q.index]=!Q.validationSchema?w?.[Q.key]||void 0:await this.argumentsResolution(w?.[Q.key]||void 0,Q.validationSchema,Q.index,V);break;case cT:N[Q.index]=J;break;case fT:N[Q.index]=x;break;default:N[Q.index]=!Q.validationSchema?!f.has(Q.type)?void 0:f.get(Q.type):await this.argumentsResolution(f.get(Q.type),Q.validationSchema,Q.index,V);break}await U(...N)}}let F=[],{func:Z,funcName:Y,argumentsMetadata:X}=J;for(let[D,W]of Object.entries(X))switch(W.type){case RT:F[W.index]=!W.validationSchema?H:await this.argumentsResolution(H,W.validationSchema,W.index,Y);break;case XT:F[W.index]=!W.validationSchema?await H?.[W.parser||"json"]():await this.argumentsResolution(await H?.[W.parser||"json"](),W.validationSchema,W.index,Y);break;case ZT:F[W.index]=!W.key?f:f.get(W.key);break;case UT:F[W.index]=!W.validationSchema?c:await this.argumentsResolution(c?.toJSON(),W.validationSchema,W.index,Y);break;case xT:F[W.index]=!W.validationSchema?c?.get(W.key)||void 0:await this.argumentsResolution(c?.get(W.key)||void 0,W.validationSchema,W.index,Y);break;case CT:F[W.index]=q;break;case JT:F[W.index]=!W.validationSchema?w?.[W.key]||void 0:await this.argumentsResolution(w?.[W.key]||void 0,W.validationSchema,W.index,Y);break;case cT:F[W.index]=J;break;case fT:F[W.index]=x;break;default:F[W.index]=!W.validationSchema?!f.has(W.type)?void 0:f.get(W.type):await this.argumentsResolution(f.get(W.type),W.validationSchema,W.index,Y);break}if(f.set(c_,await Z(...F),{isStatic:!1}),C&&"closeInterceptorGroup"in C&&C.closeInterceptorGroup){let{closeInterceptorGroup:D}=C;for(let W=0;W<D.length;W++){let N=[],{func:U,funcName:V,argumentsMetadata:n}=D[W];for(let[a,Q]of Object.entries(n))switch(Q.type){case RT:N[Q.index]=!Q.validationSchema?H:await this.argumentsResolution(H,Q.validationSchema,Q.index,V);break;case XT:N[Q.index]=!Q.validationSchema?await H?.[Q.parser||"json"]():await this.argumentsResolution(await H?.[Q.parser||"json"](),Q.validationSchema,Q.index,V);break;case ZT:N[Q.index]=!Q.key?f:f.get(Q.key);break;case UT:N[Q.index]=!Q.validationSchema?c:await this.argumentsResolution(c?.toJSON(),Q.validationSchema,Q.index,V);break;case CT:N[Q.index]=f.get(Q.type);break;case xT:N[Q.index]=!Q.validationSchema?c?.get(Q.key)||void 0:await this.argumentsResolution(c?.get(Q.key)||void 0,Q.validationSchema,Q.index,V);break;case JT:N[Q.index]=!Q.validationSchema?w?.[Q.key]||void 0:await this.argumentsResolution(w?.[Q.key]||void 0,Q.validationSchema,Q.index,V);break;case cT:N[Q.index]=J;break;case fT:N[Q.index]=x;break;default:N[Q.index]=!Q.validationSchema?!f.has(Q.type)?void 0:f.get(Q.type):await this.argumentsResolution(f.get(Q.type),Q.validationSchema,Q.index,V);break}await U(...N)}}}if(C){let{endMiddlewareGroup:F}=C;if(F)for(let Z=0;Z<F.length;Z++){let Y=[],{func:X,funcName:D,argumentsMetadata:W}=F[Z];for(let[N,U]of Object.entries(W))switch(U.type){case RT:Y[U.index]=!U.validationSchema?H:await this.argumentsResolution(H,U.validationSchema,U.index,D);break;case XT:Y[U.index]=!U.validationSchema?await H?.[U.parser||"json"]():await this.argumentsResolution(await H?.[U.parser||"json"](),U.validationSchema,U.index,D);break;case ZT:Y[U.index]=!U.key?f:f.get(U.key);break;case UT:Y[U.index]=!U.validationSchema?c:await this.argumentsResolution(c?.toJSON(),U.validationSchema,U.index,D);break;case CT:Y[U.index]=f.get(U.type);break;case xT:Y[U.index]=!U.validationSchema?c?.get(U.key)||void 0:await this.argumentsResolution(c?.get(U.key)||void 0,U.validationSchema,U.index,D);break;case JT:Y[U.index]=!U.validationSchema?w?.[U.key]||void 0:await this.argumentsResolution(w?.[U.key]||void 0,U.validationSchema,U.index,D);break;case cT:Y[U.index]=J;break;case fT:Y[U.index]=x;break;default:Y[U.index]=!U.validationSchema?!f.has(U.type)?void 0:f.get(U.type):await this.argumentsResolution(!(U.type in f)?void 0:f.get(U.type),U.validationSchema,U.index,D);break}await X(...Y)}}return Object.freeze({context:f})}async webSocketFetcher(_,T){let{request:A,server:C}=_,{query:E,responseHeaders:f,route:{model:x}}=T,H=await x.func(...[C,A,E]);if(typeof H!=="boolean")return this.finalizeResponse(new Response(JSON.stringify({httpCode:500,message:"Can not detect webSocket upgrade result.",data:void 0}),{status:500,statusText:"Internal server error.",headers:f}));if(!H)return this.finalizeResponse(new Response(JSON.stringify({httpCode:500,message:"Can not upgrade.",data:void 0}),{status:500,statusText:"Internal server error.",headers:f}));return H}}var S4=N_($_(),1);var OR=async(_,T)=>{try{let A=new s_(_,T);return await A.preLaunch(),A}catch(A){throw T.debug&&console.error(A),A}};export{bC as jsonErrorInfer,c0 as httpServerErrors,R0 as httpClientErrors,C0 as WebSocketServer,C_ as WebSocketRouterGroup,G_ as WebSocketRouter,d_ as WebSocketRoute,f0 as WebSocketMessage,x0 as WebSocketEvent,_0 as WebSocketConnection,E0 as WebSocketCloseReason,A0 as WebSocketCloseCode,T0 as WebSocket,$C as ValidationFailed,uf as RouteModel,Of as ResponseHeaders,Nf as RequestHeaders,$f as RequestHeader,nf as RequestBody,mf as Request,hf as Query,yf as Put,lf as Post,jf as Patch,Kf as Params,If as Param,sf as Options,ef as Module,tf as Middleware,vC as Keys,rf as Interceptor,__ as Injector,of as Injectable,pf as Inject,H_ as HttpServerError,gf as HttpServer,D_ as HttpRouterGroup,V_ as HttpRouter,GT as HttpRoute,uT as HttpClientError,vf as Guard,bf as Get,df as Delete,kf as Controller,Mf as Context,Pf as Container,OR as BoolFactory,s_ as Application};
19
19
 
20
- //# debugId=D56F0107D12484ED64756E2164756E21
20
+ //# debugId=11E1F65A5CA3429464756E2164756E21