@bool-ts/core 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var U4=Object.create;var{getPrototypeOf:J4,defineProperty:pT,getOwnPropertyNames:C4}=Object;var H4=Object.prototype.hasOwnProperty;var ST=(T,_,E)=>{E=T!=null?U4(J4(T)):{};let A=_||!T||!T.__esModule?pT(E,"default",{value:T,enumerable:!0}):E;for(let L of C4(T))if(!H4.call(A,L))pT(A,L,{get:()=>T[L],enumerable:!0});return A};var k=(T,_)=>()=>(_||T((_={exports:{}}).exports,_),_.exports);var B4=(T,_)=>{for(var E in _)pT(T,E,{get:_[E],enumerable:!0,configurable:!0,set:(A)=>_[E]=()=>A})};var D4=((T)=>typeof require!=="undefined"?require:typeof Proxy!=="undefined"?new Proxy(T,{get:(_,E)=>(typeof require!=="undefined"?require:_)[E]}):T)(function(T){if(typeof require!=="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+T+'" is not supported')});var wT=k(()=>{/*! *****************************************************************************
1
+ var UC=Object.create;var{getPrototypeOf:HC,defineProperty:pT,getOwnPropertyNames:XC}=Object;var JC=Object.prototype.hasOwnProperty;var VT=(T,_,E)=>{E=T!=null?UC(HC(T)):{};let A=_||!T||!T.__esModule?pT(E,"default",{value:T,enumerable:!0}):E;for(let C of XC(T))if(!JC.call(A,C))pT(A,C,{get:()=>T[C],enumerable:!0});return A};var c=(T,_)=>()=>(_||T((_={exports:{}}).exports,_),_.exports);var DC=(T,_)=>{for(var E in _)pT(T,E,{get:_[E],enumerable:!0,configurable:!0,set:(A)=>_[E]=()=>A})};var qC=((T)=>typeof require!=="undefined"?require:typeof Proxy!=="undefined"?new Proxy(T,{get:(_,E)=>(typeof require!=="undefined"?require:_)[E]}):T)(function(T){if(typeof require!=="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+T+'" is not supported')});var NT=c(()=>{/*! *****************************************************************************
2
2
  Copyright (C) Microsoft. All rights reserved.
3
3
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
4
  this file except in compliance with the License. You may obtain a copy of the
@@ -11,7 +11,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
- ***************************************************************************** */var vE;(function(T){(function(_){var E=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:C(),A=L(T);if(typeof E.Reflect!=="undefined")A=L(E.Reflect,A);if(_(A,E),typeof E.Reflect==="undefined")E.Reflect=T;function L(F,D){return function(N,q){if(Object.defineProperty(F,N,{configurable:!0,writable:!0,value:q}),D)D(N,q)}}function Y(){try{return Function("return this;")()}catch(F){}}function X(){try{return(0,eval)("(function() { return this; })()")}catch(F){}}function C(){return Y()||X()}})(function(_,E){var A=Object.prototype.hasOwnProperty,L=typeof Symbol==="function",Y=L&&typeof Symbol.toPrimitive!=="undefined"?Symbol.toPrimitive:"@@toPrimitive",X=L&&typeof Symbol.iterator!=="undefined"?Symbol.iterator:"@@iterator",C=typeof Object.create==="function",F={__proto__:[]}instanceof Array,D=!C&&!F,N={create:C?function(){return nT(Object.create(null))}:F?function(){return nT({__proto__:null})}:function(){return nT({})},has:D?function(Z,Q){return A.call(Z,Q)}:function(Z,Q){return Q in Z},get:D?function(Z,Q){return A.call(Z,Q)?Z[Q]:void 0}:function(Z,Q){return Z[Q]}},q=Object.getPrototypeOf(Function),H=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:Z4(),J=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:R4(),I=typeof WeakMap==="function"?WeakMap:Q4(),G=L?Symbol.for("@reflect-metadata:registry"):void 0,h=L4(),b=W4(h);function w(Z,Q,U,z){if(!v(U)){if(!fE(Z))throw new TypeError;if(!p(Q))throw new TypeError;if(!p(z)&&!v(z)&&!n_(z))throw new TypeError;if(n_(z))z=void 0;return U=C_(U),__(Z,Q,U,z)}else{if(!fE(Z))throw new TypeError;if(!$E(Q))throw new TypeError;return A_(Z,Q)}}_("decorate",w);function R(Z,Q){function U(z,K){if(!p(z))throw new TypeError;if(!v(K)&&!E4(K))throw new TypeError;l_(Z,Q,z,K)}return U}_("metadata",R);function B(Z,Q,U,z){if(!p(U))throw new TypeError;if(!v(z))z=C_(z);return l_(Z,Q,U,z)}_("defineMetadata",B);function P(Z,Q,U){if(!p(Q))throw new TypeError;if(!v(U))U=C_(U);return e(Z,Q,U)}_("hasMetadata",P);function O(Z,Q,U){if(!p(Q))throw new TypeError;if(!v(U))U=C_(U);return o(Z,Q,U)}_("hasOwnMetadata",O);function W(Z,Q,U){if(!p(Q))throw new TypeError;if(!v(U))U=C_(U);return F_(Z,Q,U)}_("getMetadata",W);function V(Z,Q,U){if(!p(Q))throw new TypeError;if(!v(U))U=C_(U);return J_(Z,Q,U)}_("getOwnMetadata",V);function u(Z,Q){if(!p(Z))throw new TypeError;if(!v(Q))Q=C_(Q);return AT(Z,Q)}_("getMetadataKeys",u);function y(Z,Q){if(!p(Z))throw new TypeError;if(!v(Q))Q=C_(Q);return d_(Z,Q)}_("getOwnMetadataKeys",y);function n(Z,Q,U){if(!p(Q))throw new TypeError;if(!v(U))U=C_(U);if(!p(Q))throw new TypeError;if(!v(U))U=C_(U);var z=LT(Q,U,!1);if(v(z))return!1;return z.OrdinaryDeleteMetadata(Z,Q,U)}_("deleteMetadata",n);function A_(Z,Q){for(var U=Z.length-1;U>=0;--U){var z=Z[U],K=z(Q);if(!v(K)&&!n_(K)){if(!$E(K))throw new TypeError;Q=K}}return Q}function __(Z,Q,U,z){for(var K=Z.length-1;K>=0;--K){var i=Z[K],r=i(Q,U,z);if(!v(r)&&!n_(r)){if(!p(r))throw new TypeError;z=r}}return z}function e(Z,Q,U){var z=o(Z,Q,U);if(z)return!0;var K=dT(Q);if(!n_(K))return e(Z,K,U);return!1}function o(Z,Q,U){var z=LT(Q,U,!1);if(v(z))return!1;return wE(z.OrdinaryHasOwnMetadata(Z,Q,U))}function F_(Z,Q,U){var z=o(Z,Q,U);if(z)return J_(Z,Q,U);var K=dT(Q);if(!n_(K))return F_(Z,K,U);return}function J_(Z,Q,U){var z=LT(Q,U,!1);if(v(z))return;return z.OrdinaryGetOwnMetadata(Z,Q,U)}function l_(Z,Q,U,z){var K=LT(U,z,!0);K.OrdinaryDefineOwnMetadata(Z,Q,U,z)}function AT(Z,Q){var U=d_(Z,Q),z=dT(Z);if(z===null)return U;var K=AT(z,Q);if(K.length<=0)return U;if(U.length<=0)return K;var i=new J,r=[];for(var m=0,S=U;m<S.length;m++){var f=S[m],$=i.has(f);if(!$)i.add(f),r.push(f)}for(var x=0,M=K;x<M.length;x++){var f=M[x],$=i.has(f);if(!$)i.add(f),r.push(f)}return r}function d_(Z,Q){var U=LT(Z,Q,!1);if(!U)return[];return U.OrdinaryOwnMetadataKeys(Z,Q)}function SE(Z){if(Z===null)return 1;switch(typeof Z){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return Z===null?1:6;default:return 6}}function v(Z){return Z===void 0}function n_(Z){return Z===null}function e1(Z){return typeof Z==="symbol"}function p(Z){return typeof Z==="object"?Z!==null:typeof Z==="function"}function a1(Z,Q){switch(SE(Z)){case 0:return Z;case 1:return Z;case 2:return Z;case 3:return Z;case 4:return Z;case 5:return Z}var U=Q===3?"string":Q===5?"number":"default",z=IE(Z,Y);if(z!==void 0){var K=z.call(Z,U);if(p(K))throw new TypeError;return K}return _4(Z,U==="default"?"number":U)}function _4(Z,Q){if(Q==="string"){var U=Z.toString;if(p_(U)){var z=U.call(Z);if(!p(z))return z}var K=Z.valueOf;if(p_(K)){var z=K.call(Z);if(!p(z))return z}}else{var K=Z.valueOf;if(p_(K)){var z=K.call(Z);if(!p(z))return z}var i=Z.toString;if(p_(i)){var z=i.call(Z);if(!p(z))return z}}throw new TypeError}function wE(Z){return!!Z}function T4(Z){return""+Z}function C_(Z){var Q=a1(Z,3);if(e1(Q))return Q;return T4(Q)}function fE(Z){return Array.isArray?Array.isArray(Z):Z instanceof Object?Z instanceof Array:Object.prototype.toString.call(Z)==="[object Array]"}function p_(Z){return typeof Z==="function"}function $E(Z){return typeof Z==="function"}function E4(Z){switch(SE(Z)){case 3:return!0;case 4:return!0;default:return!1}}function lT(Z,Q){return Z===Q||Z!==Z&&Q!==Q}function IE(Z,Q){var U=Z[Q];if(U===void 0||U===null)return;if(!p_(U))throw new TypeError;return U}function xE(Z){var Q=IE(Z,X);if(!p_(Q))throw new TypeError;var U=Q.call(Z);if(!p(U))throw new TypeError;return U}function KE(Z){return Z.value}function OE(Z){var Q=Z.next();return Q.done?!1:Q}function hE(Z){var Q=Z.return;if(Q)Q.call(Z)}function dT(Z){var Q=Object.getPrototypeOf(Z);if(typeof Z!=="function"||Z===q)return Q;if(Q!==q)return Q;var U=Z.prototype,z=U&&Object.getPrototypeOf(U);if(z==null||z===Object.prototype)return Q;var K=z.constructor;if(typeof K!=="function")return Q;if(K===Z)return Q;return K}function A4(){var Z;if(!v(G)&&typeof E.Reflect!=="undefined"&&!(G in E.Reflect)&&typeof E.Reflect.defineMetadata==="function")Z=Y4(E.Reflect);var Q,U,z,K=new I,i={registerProvider:r,getProvider:S,setProvider:$};return i;function r(x){if(!Object.isExtensible(i))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case Z===x:break;case v(Q):Q=x;break;case Q===x:break;case v(U):U=x;break;case U===x:break;default:if(z===void 0)z=new J;z.add(x);break}}function m(x,M){if(!v(Q)){if(Q.isProviderFor(x,M))return Q;if(!v(U)){if(U.isProviderFor(x,M))return Q;if(!v(z)){var l=xE(z);while(!0){var s=OE(l);if(!s)return;var X_=KE(s);if(X_.isProviderFor(x,M))return hE(l),X_}}}}if(!v(Z)&&Z.isProviderFor(x,M))return Z;return}function S(x,M){var l=K.get(x),s;if(!v(l))s=l.get(M);if(!v(s))return s;if(s=m(x,M),!v(s)){if(v(l))l=new H,K.set(x,l);l.set(M,s)}return s}function f(x){if(v(x))throw new TypeError;return Q===x||U===x||!v(z)&&z.has(x)}function $(x,M,l){if(!f(l))throw new Error("Metadata provider not registered.");var s=S(x,M);if(s!==l){if(!v(s))return!1;var X_=K.get(x);if(v(X_))X_=new H,K.set(x,X_);X_.set(M,l)}return!0}}function L4(){var Z;if(!v(G)&&p(E.Reflect)&&Object.isExtensible(E.Reflect))Z=E.Reflect[G];if(v(Z))Z=A4();if(!v(G)&&p(E.Reflect)&&Object.isExtensible(E.Reflect))Object.defineProperty(E.Reflect,G,{enumerable:!1,configurable:!1,writable:!1,value:Z});return Z}function W4(Z){var Q=new I,U={isProviderFor:function(f,$){var x=Q.get(f);if(v(x))return!1;return x.has($)},OrdinaryDefineOwnMetadata:r,OrdinaryHasOwnMetadata:K,OrdinaryGetOwnMetadata:i,OrdinaryOwnMetadataKeys:m,OrdinaryDeleteMetadata:S};return h.registerProvider(U),U;function z(f,$,x){var M=Q.get(f),l=!1;if(v(M)){if(!x)return;M=new H,Q.set(f,M),l=!0}var s=M.get($);if(v(s)){if(!x)return;if(s=new H,M.set($,s),!Z.setProvider(f,$,U)){if(M.delete($),l)Q.delete(f);throw new Error("Wrong provider for target.")}}return s}function K(f,$,x){var M=z($,x,!1);if(v(M))return!1;return wE(M.has(f))}function i(f,$,x){var M=z($,x,!1);if(v(M))return;return M.get(f)}function r(f,$,x,M){var l=z(x,M,!0);l.set(f,$)}function m(f,$){var x=[],M=z(f,$,!1);if(v(M))return x;var l=M.keys(),s=xE(l),X_=0;while(!0){var PE=OE(s);if(!PE)return x.length=X_,x;var F4=KE(PE);try{x[X_]=F4}catch(X4){try{hE(s)}finally{throw X4}}X_++}}function S(f,$,x){var M=z($,x,!1);if(v(M))return!1;if(!M.delete(f))return!1;if(M.size===0){var l=Q.get($);if(!v(l)){if(l.delete(x),l.size===0)Q.delete(l)}}return!0}}function Y4(Z){var{defineMetadata:Q,hasOwnMetadata:U,getOwnMetadata:z,getOwnMetadataKeys:K,deleteMetadata:i}=Z,r=new I,m={isProviderFor:function(S,f){var $=r.get(S);if(!v($)&&$.has(f))return!0;if(K(S,f).length){if(v($))$=new J,r.set(S,$);return $.add(f),!0}return!1},OrdinaryDefineOwnMetadata:Q,OrdinaryHasOwnMetadata:U,OrdinaryGetOwnMetadata:z,OrdinaryOwnMetadataKeys:K,OrdinaryDeleteMetadata:i};return m}function LT(Z,Q,U){var z=h.getProvider(Z,Q);if(!v(z))return z;if(U){if(h.setProvider(Z,Q,b))return b;throw new Error("Illegal state.")}return}function Z4(){var Z={},Q=[],U=function(){function m(S,f,$){this._index=0,this._keys=S,this._values=f,this._selector=$}return m.prototype["@@iterator"]=function(){return this},m.prototype[X]=function(){return this},m.prototype.next=function(){var S=this._index;if(S>=0&&S<this._keys.length){var f=this._selector(this._keys[S],this._values[S]);if(S+1>=this._keys.length)this._index=-1,this._keys=Q,this._values=Q;else this._index++;return{value:f,done:!1}}return{value:void 0,done:!0}},m.prototype.throw=function(S){if(this._index>=0)this._index=-1,this._keys=Q,this._values=Q;throw S},m.prototype.return=function(S){if(this._index>=0)this._index=-1,this._keys=Q,this._values=Q;return{value:S,done:!0}},m}(),z=function(){function m(){this._keys=[],this._values=[],this._cacheKey=Z,this._cacheIndex=-2}return Object.defineProperty(m.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),m.prototype.has=function(S){return this._find(S,!1)>=0},m.prototype.get=function(S){var f=this._find(S,!1);return f>=0?this._values[f]:void 0},m.prototype.set=function(S,f){var $=this._find(S,!0);return this._values[$]=f,this},m.prototype.delete=function(S){var f=this._find(S,!1);if(f>=0){var $=this._keys.length;for(var x=f+1;x<$;x++)this._keys[x-1]=this._keys[x],this._values[x-1]=this._values[x];if(this._keys.length--,this._values.length--,lT(S,this._cacheKey))this._cacheKey=Z,this._cacheIndex=-2;return!0}return!1},m.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=Z,this._cacheIndex=-2},m.prototype.keys=function(){return new U(this._keys,this._values,K)},m.prototype.values=function(){return new U(this._keys,this._values,i)},m.prototype.entries=function(){return new U(this._keys,this._values,r)},m.prototype["@@iterator"]=function(){return this.entries()},m.prototype[X]=function(){return this.entries()},m.prototype._find=function(S,f){if(!lT(this._cacheKey,S)){this._cacheIndex=-1;for(var $=0;$<this._keys.length;$++)if(lT(this._keys[$],S)){this._cacheIndex=$;break}}if(this._cacheIndex<0&&f)this._cacheIndex=this._keys.length,this._keys.push(S),this._values.push(void 0);return this._cacheIndex},m}();return z;function K(m,S){return m}function i(m,S){return S}function r(m,S){return[m,S]}}function R4(){var Z=function(){function Q(){this._map=new H}return Object.defineProperty(Q.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Q.prototype.has=function(U){return this._map.has(U)},Q.prototype.add=function(U){return this._map.set(U,U),this},Q.prototype.delete=function(U){return this._map.delete(U)},Q.prototype.clear=function(){this._map.clear()},Q.prototype.keys=function(){return this._map.keys()},Q.prototype.values=function(){return this._map.keys()},Q.prototype.entries=function(){return this._map.entries()},Q.prototype["@@iterator"]=function(){return this.keys()},Q.prototype[X]=function(){return this.keys()},Q}();return Z}function Q4(){var Z=16,Q=N.create(),U=z();return function(){function S(){this._key=z()}return S.prototype.has=function(f){var $=K(f,!1);return $!==void 0?N.has($,this._key):!1},S.prototype.get=function(f){var $=K(f,!1);return $!==void 0?N.get($,this._key):void 0},S.prototype.set=function(f,$){var x=K(f,!0);return x[this._key]=$,this},S.prototype.delete=function(f){var $=K(f,!1);return $!==void 0?delete $[this._key]:!1},S.prototype.clear=function(){this._key=z()},S}();function z(){var S;do S="@@WeakMap@@"+m();while(N.has(Q,S));return Q[S]=!0,S}function K(S,f){if(!A.call(S,U)){if(!f)return;Object.defineProperty(S,U,{value:N.create()})}return S[U]}function i(S,f){for(var $=0;$<f;++$)S[$]=Math.random()*255|0;return S}function r(S){if(typeof Uint8Array==="function"){var f=new Uint8Array(S);if(typeof crypto!=="undefined")crypto.getRandomValues(f);else if(typeof msCrypto!=="undefined")msCrypto.getRandomValues(f);else i(f,S);return f}return i(new Array(S),S)}function m(){var S=r(Z);S[6]=S[6]&79|64,S[8]=S[8]&191|128;var f="";for(var $=0;$<Z;++$){var x=S[$];if($===4||$===6||$===8)f+="-";if(x<16)f+="0";f+=x.toString(16).toLowerCase()}return f}}function nT(Z){return Z.__=void 0,delete Z.__,Z}})})(vE||(vE={}))});var M_=k((N3,mE)=>{mE.exports=TypeError});var UT=k((G3,T0)=>{var AE=typeof Map==="function"&&Map.prototype,sT=Object.getOwnPropertyDescriptor&&AE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,xT=AE&&sT&&typeof sT.get==="function"?sT.get:null,bE=AE&&Map.prototype.forEach,LE=typeof Set==="function"&&Set.prototype,oT=Object.getOwnPropertyDescriptor&&LE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,KT=LE&&oT&&typeof oT.get==="function"?oT.get:null,ME=LE&&Set.prototype.forEach,r4=typeof WeakMap==="function"&&WeakMap.prototype,FT=r4?WeakMap.prototype.has:null,t4=typeof WeakSet==="function"&&WeakSet.prototype,XT=t4?WeakSet.prototype.has:null,e4=typeof WeakRef==="function"&&WeakRef.prototype,jE=e4?WeakRef.prototype.deref:null,a4=Boolean.prototype.valueOf,_A=Object.prototype.toString,TA=Function.prototype.toString,EA=String.prototype.match,WE=String.prototype.slice,O_=String.prototype.replace,AA=String.prototype.toUpperCase,cE=String.prototype.toLowerCase,sE=RegExp.prototype.test,gE=Array.prototype.concat,w_=Array.prototype.join,LA=Array.prototype.slice,uE=Math.floor,eT=typeof BigInt==="function"?BigInt.prototype.valueOf:null,rT=Object.getOwnPropertySymbols,aT=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null,r_=typeof Symbol==="function"&&typeof Symbol.iterator==="object",L_=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===r_?"object":"symbol")?Symbol.toStringTag:null,oE=Object.prototype.propertyIsEnumerable,yE=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(T){return T.__proto__}:null);function lE(T,_){if(T===1/0||T===-1/0||T!==T||T&&T>-1000&&T<1000||sE.call(/e/,_))return _;var E=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof T==="number"){var A=T<0?-uE(-T):uE(T);if(A!==T){var L=String(A),Y=WE.call(_,L.length+1);return O_.call(L,E,"$&_")+"."+O_.call(O_.call(Y,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O_.call(_,E,"$&_")}var _E=(()=>({})),dE=_E.custom,nE=eE(dE)?dE:null,rE={__proto__:null,double:'"',single:"'"},WA={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};T0.exports=function T(_,E,A,L){var Y=E||{};if(x_(Y,"quoteStyle")&&!x_(rE,Y.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(x_(Y,"maxStringLength")&&(typeof Y.maxStringLength==="number"?Y.maxStringLength<0&&Y.maxStringLength!==1/0:Y.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var X=x_(Y,"customInspect")?Y.customInspect:!0;if(typeof X!=="boolean"&&X!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(x_(Y,"indent")&&Y.indent!==null&&Y.indent!=="\t"&&!(parseInt(Y.indent,10)===Y.indent&&Y.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(x_(Y,"numericSeparator")&&typeof Y.numericSeparator!=="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var C=Y.numericSeparator;if(typeof _==="undefined")return"undefined";if(_===null)return"null";if(typeof _==="boolean")return _?"true":"false";if(typeof _==="string")return _0(_,Y);if(typeof _==="number"){if(_===0)return 1/0/_>0?"0":"-0";var F=String(_);return C?lE(_,F):F}if(typeof _==="bigint"){var D=String(_)+"n";return C?lE(_,D):D}var N=typeof Y.depth==="undefined"?5:Y.depth;if(typeof A==="undefined")A=0;if(A>=N&&N>0&&typeof _==="object")return TE(_)?"[Array]":"[Object]";var q=SA(Y,A);if(typeof L==="undefined")L=[];else if(aE(L,_)>=0)return"[Circular]";function H(__,e,o){if(e)L=LA.call(L),L.push(e);if(o){var F_={depth:Y.depth};if(x_(Y,"quoteStyle"))F_.quoteStyle=Y.quoteStyle;return T(__,F_,A+1,L)}return T(__,Y,A+1,L)}if(typeof _==="function"&&!pE(_)){var J=CA(_),I=IT(_,H);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(I.length>0?" { "+w_.call(I,", ")+" }":"")}if(eE(_)){var G=r_?O_.call(String(_),/^(Symbol\(.*\))_[^)]*$/,"$1"):aT.call(_);return typeof _==="object"&&!r_?QT(G):G}if(NA(_)){var h="<"+cE.call(String(_.nodeName)),b=_.attributes||[];for(var w=0;w<b.length;w++)h+=" "+b[w].name+"="+tE(YA(b[w].value),"double",Y);if(h+=">",_.childNodes&&_.childNodes.length)h+="...";return h+="</"+cE.call(String(_.nodeName))+">",h}if(TE(_)){if(_.length===0)return"[]";var R=IT(_,H);if(q&&!qA(R))return"["+EE(R,q)+"]";return"[ "+w_.call(R,", ")+" ]"}if(RA(_)){var B=IT(_,H);if(!("cause"in Error.prototype)&&"cause"in _&&!oE.call(_,"cause"))return"{ ["+String(_)+"] "+w_.call(gE.call("[cause]: "+H(_.cause),B),", ")+" }";if(B.length===0)return"["+String(_)+"]";return"{ ["+String(_)+"] "+w_.call(B,", ")+" }"}if(typeof _==="object"&&X){if(nE&&typeof _[nE]==="function"&&_E)return _E(_,{depth:N-A});else if(X!=="symbol"&&typeof _.inspect==="function")return _.inspect()}if(HA(_)){var P=[];if(bE)bE.call(_,function(__,e){P.push(H(e,_,!0)+" => "+H(__,_))});return iE("Map",xT.call(_),P,q)}if(zA(_)){var O=[];if(ME)ME.call(_,function(__){O.push(H(__,_))});return iE("Set",KT.call(_),O,q)}if(BA(_))return tT("WeakMap");if(VA(_))return tT("WeakSet");if(DA(_))return tT("WeakRef");if(FA(_))return QT(H(Number(_)));if(UA(_))return QT(H(eT.call(_)));if(XA(_))return QT(a4.call(_));if(QA(_))return QT(H(String(_)));if(typeof window!=="undefined"&&_===window)return"{ [object Window] }";if(typeof globalThis!=="undefined"&&_===globalThis||typeof global!=="undefined"&&_===global)return"{ [object globalThis] }";if(!ZA(_)&&!pE(_)){var W=IT(_,H),V=yE?yE(_)===Object.prototype:_ instanceof Object||_.constructor===Object,u=_ instanceof Object?"":"null prototype",y=!V&&L_&&Object(_)===_&&L_ in _?WE.call(h_(_),8,-1):u?"Object":"",n=V||typeof _.constructor!=="function"?"":_.constructor.name?_.constructor.name+" ":"",A_=n+(y||u?"["+w_.call(gE.call([],y||[],u||[]),": ")+"] ":"");if(W.length===0)return A_+"{}";if(q)return A_+"{"+EE(W,q)+"}";return A_+"{ "+w_.call(W,", ")+" }"}return String(_)};function tE(T,_,E){var A=E.quoteStyle||_,L=rE[A];return L+T+L}function YA(T){return O_.call(String(T),/"/g,"&quot;")}function TE(T){return h_(T)==="[object Array]"&&(!L_||!(typeof T==="object"&&(L_ in T)))}function ZA(T){return h_(T)==="[object Date]"&&(!L_||!(typeof T==="object"&&(L_ in T)))}function pE(T){return h_(T)==="[object RegExp]"&&(!L_||!(typeof T==="object"&&(L_ in T)))}function RA(T){return h_(T)==="[object Error]"&&(!L_||!(typeof T==="object"&&(L_ in T)))}function QA(T){return h_(T)==="[object String]"&&(!L_||!(typeof T==="object"&&(L_ in T)))}function FA(T){return h_(T)==="[object Number]"&&(!L_||!(typeof T==="object"&&(L_ in T)))}function XA(T){return h_(T)==="[object Boolean]"&&(!L_||!(typeof T==="object"&&(L_ in T)))}function eE(T){if(r_)return T&&typeof T==="object"&&T instanceof Symbol;if(typeof T==="symbol")return!0;if(!T||typeof T!=="object"||!aT)return!1;try{return aT.call(T),!0}catch(_){}return!1}function UA(T){if(!T||typeof T!=="object"||!eT)return!1;try{return eT.call(T),!0}catch(_){}return!1}var JA=Object.prototype.hasOwnProperty||function(T){return T in this};function x_(T,_){return JA.call(T,_)}function h_(T){return _A.call(T)}function CA(T){if(T.name)return T.name;var _=EA.call(TA.call(T),/^function\s*([\w$]+)/);if(_)return _[1];return null}function aE(T,_){if(T.indexOf)return T.indexOf(_);for(var E=0,A=T.length;E<A;E++)if(T[E]===_)return E;return-1}function HA(T){if(!xT||!T||typeof T!=="object")return!1;try{xT.call(T);try{KT.call(T)}catch(_){return!0}return T instanceof Map}catch(_){}return!1}function BA(T){if(!FT||!T||typeof T!=="object")return!1;try{FT.call(T,FT);try{XT.call(T,XT)}catch(_){return!0}return T instanceof WeakMap}catch(_){}return!1}function DA(T){if(!jE||!T||typeof T!=="object")return!1;try{return jE.call(T),!0}catch(_){}return!1}function zA(T){if(!KT||!T||typeof T!=="object")return!1;try{KT.call(T);try{xT.call(T)}catch(_){return!0}return T instanceof Set}catch(_){}return!1}function VA(T){if(!XT||!T||typeof T!=="object")return!1;try{XT.call(T,XT);try{FT.call(T,FT)}catch(_){return!0}return T instanceof WeakSet}catch(_){}return!1}function NA(T){if(!T||typeof T!=="object")return!1;if(typeof HTMLElement!=="undefined"&&T instanceof HTMLElement)return!0;return typeof T.nodeName==="string"&&typeof T.getAttribute==="function"}function _0(T,_){if(T.length>_.maxStringLength){var E=T.length-_.maxStringLength,A="... "+E+" more character"+(E>1?"s":"");return _0(WE.call(T,0,_.maxStringLength),_)+A}var L=WA[_.quoteStyle||"single"];L.lastIndex=0;var Y=O_.call(O_.call(T,L,"\\$1"),/[\x00-\x1f]/g,GA);return tE(Y,"single",_)}function GA(T){var _=T.charCodeAt(0),E={8:"b",9:"t",10:"n",12:"f",13:"r"}[_];if(E)return"\\"+E;return"\\x"+(_<16?"0":"")+AA.call(_.toString(16))}function QT(T){return"Object("+T+")"}function tT(T){return T+" { ? }"}function iE(T,_,E,A){var L=A?EE(E,A):w_.call(E,", ");return T+" ("+_+") {"+L+"}"}function qA(T){for(var _=0;_<T.length;_++)if(aE(T[_],`
15
- `)>=0)return!1;return!0}function SA(T,_){var E;if(T.indent==="\t")E="\t";else if(typeof T.indent==="number"&&T.indent>0)E=w_.call(Array(T.indent+1)," ");else return null;return{base:E,prev:w_.call(Array(_+1),E)}}function EE(T,_){if(T.length===0)return"";var E=`
16
- `+_.prev+_.base;return E+w_.call(T,","+E)+`
17
- `+_.prev}function IT(T,_){var E=TE(T),A=[];if(E){A.length=T.length;for(var L=0;L<T.length;L++)A[L]=x_(T,L)?_(T[L],T):""}var Y=typeof rT==="function"?rT(T):[],X;if(r_){X={};for(var C=0;C<Y.length;C++)X["$"+Y[C]]=Y[C]}for(var F in T){if(!x_(T,F))continue;if(E&&String(Number(F))===F&&F<T.length)continue;if(r_&&X["$"+F]instanceof Symbol)continue;else if(sE.call(/[^\w$]/,F))A.push(_(F,T)+": "+_(T[F],T));else A.push(F+": "+_(T[F],T))}if(typeof rT==="function"){for(var D=0;D<Y.length;D++)if(oE.call(T,Y[D]))A.push("["+_(Y[D])+"]: "+_(T[Y[D]],T))}return A}});var A0=k((q3,E0)=>{var wA=UT(),fA=M_(),OT=function(T,_,E){var A=T,L;for(;(L=A.next)!=null;A=L)if(L.key===_){if(A.next=L.next,!E)L.next=T.next,T.next=L;return L}},$A=function(T,_){if(!T)return;var E=OT(T,_);return E&&E.value},IA=function(T,_,E){var A=OT(T,_);if(A)A.value=E;else T.next={key:_,next:T.next,value:E}},xA=function(T,_){if(!T)return!1;return!!OT(T,_)},KA=function(T,_){if(T)return OT(T,_,!0)};E0.exports=function T(){var _,E={assert:function(A){if(!E.has(A))throw new fA("Side channel does not contain "+wA(A))},delete:function(A){var L=_&&_.next,Y=KA(_,A);if(Y&&L&&L===Y)_=void 0;return!!Y},get:function(A){return $A(_,A)},has:function(A){return xA(_,A)},set:function(A,L){if(!_)_={next:void 0};IA(_,A,L)}};return E}});var YE=k((S3,L0)=>{L0.exports=Object});var Y0=k((w3,W0)=>{W0.exports=Error});var R0=k((f3,Z0)=>{Z0.exports=EvalError});var F0=k(($3,Q0)=>{Q0.exports=RangeError});var U0=k((I3,X0)=>{X0.exports=ReferenceError});var C0=k((x3,J0)=>{J0.exports=SyntaxError});var B0=k((K3,H0)=>{H0.exports=URIError});var z0=k((O3,D0)=>{D0.exports=Math.abs});var N0=k((h3,V0)=>{V0.exports=Math.floor});var q0=k((P3,G0)=>{G0.exports=Math.max});var w0=k((v3,S0)=>{S0.exports=Math.min});var $0=k((k3,f0)=>{f0.exports=Math.pow});var x0=k((m3,I0)=>{I0.exports=Math.round});var O0=k((b3,K0)=>{K0.exports=Number.isNaN||function T(_){return _!==_}});var P0=k((M3,h0)=>{var OA=O0();h0.exports=function T(_){if(OA(_)||_===0)return _;return _<0?-1:1}});var k0=k((j3,v0)=>{v0.exports=Object.getOwnPropertyDescriptor});var ZE=k((c3,m0)=>{var hT=k0();if(hT)try{hT([],"length")}catch(T){hT=null}m0.exports=hT});var M0=k((g3,b0)=>{var PT=Object.defineProperty||!1;if(PT)try{PT({},"a",{value:1})}catch(T){PT=!1}b0.exports=PT});var c0=k((u3,j0)=>{j0.exports=function T(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var _={},E=Symbol("test"),A=Object(E);if(typeof E==="string")return!1;if(Object.prototype.toString.call(E)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(A)!=="[object Symbol]")return!1;var L=42;_[E]=L;for(var Y in _)return!1;if(typeof Object.keys==="function"&&Object.keys(_).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(_).length!==0)return!1;var X=Object.getOwnPropertySymbols(_);if(X.length!==1||X[0]!==E)return!1;if(!Object.prototype.propertyIsEnumerable.call(_,E))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var C=Object.getOwnPropertyDescriptor(_,E);if(C.value!==L||C.enumerable!==!0)return!1}return!0}});var y0=k((y3,u0)=>{var g0=typeof Symbol!=="undefined"&&Symbol,hA=c0();u0.exports=function T(){if(typeof g0!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof g0("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return hA()}});var RE=k((l3,l0)=>{l0.exports=typeof Reflect!=="undefined"&&Reflect.getPrototypeOf||null});var QE=k((d3,d0)=>{var PA=YE();d0.exports=PA.getPrototypeOf||null});var i0=k((n3,p0)=>{var vA="Function.prototype.bind called on incompatible ",kA=Object.prototype.toString,mA=Math.max,bA="[object Function]",n0=function T(_,E){var A=[];for(var L=0;L<_.length;L+=1)A[L]=_[L];for(var Y=0;Y<E.length;Y+=1)A[Y+_.length]=E[Y];return A},MA=function T(_,E){var A=[];for(var L=E||0,Y=0;L<_.length;L+=1,Y+=1)A[Y]=_[L];return A},jA=function(T,_){var E="";for(var A=0;A<T.length;A+=1)if(E+=T[A],A+1<T.length)E+=_;return E};p0.exports=function T(_){var E=this;if(typeof E!=="function"||kA.apply(E)!==bA)throw new TypeError(vA+E);var A=MA(arguments,1),L,Y=function(){if(this instanceof L){var N=E.apply(this,n0(A,arguments));if(Object(N)===N)return N;return this}return E.apply(_,n0(A,arguments))},X=mA(0,E.length-A.length),C=[];for(var F=0;F<X;F++)C[F]="$"+F;if(L=Function("binder","return function ("+jA(C,",")+"){ return binder.apply(this,arguments); }")(Y),E.prototype){var D=function N(){};D.prototype=E.prototype,L.prototype=new D,D.prototype=null}return L}});var JT=k((p3,s0)=>{var cA=i0();s0.exports=Function.prototype.bind||cA});var vT=k((i3,o0)=>{o0.exports=Function.prototype.call});var FE=k((s3,r0)=>{r0.exports=Function.prototype.apply});var e0=k((o3,t0)=>{t0.exports=typeof Reflect!=="undefined"&&Reflect&&Reflect.apply});var _1=k((r3,a0)=>{var gA=JT(),uA=FE(),yA=vT(),lA=e0();a0.exports=lA||gA.call(yA,uA)});var XE=k((t3,T1)=>{var dA=JT(),nA=M_(),pA=vT(),iA=_1();T1.exports=function T(_){if(_.length<1||typeof _[0]!=="function")throw new nA("a function is required");return iA(dA,pA,_)}});var Z1=k((e3,Y1)=>{var sA=XE(),E1=ZE(),L1;try{L1=[].__proto__===Array.prototype}catch(T){if(!T||typeof T!=="object"||!("code"in T)||T.code!=="ERR_PROTO_ACCESS")throw T}var UE=!!L1&&E1&&E1(Object.prototype,"__proto__"),W1=Object,A1=W1.getPrototypeOf;Y1.exports=UE&&typeof UE.get==="function"?sA([UE.get]):typeof A1==="function"?function T(_){return A1(_==null?_:W1(_))}:!1});var U1=k((a3,X1)=>{var R1=RE(),Q1=QE(),F1=Z1();X1.exports=R1?function T(_){return R1(_)}:Q1?function T(_){if(!_||typeof _!=="object"&&typeof _!=="function")throw new TypeError("getProto: not an object");return Q1(_)}:F1?function T(_){return F1(_)}:null});var C1=k((_W,J1)=>{var oA=Function.prototype.call,rA=Object.prototype.hasOwnProperty,tA=JT();J1.exports=tA.call(oA,rA)});var bT=k((TW,N1)=>{var j,eA=YE(),aA=Y0(),_L=R0(),TL=F0(),EL=U0(),_T=C0(),a_=M_(),AL=B0(),LL=z0(),WL=N0(),YL=q0(),ZL=w0(),RL=$0(),QL=x0(),FL=P0(),z1=Function,JE=function(T){try{return z1('"use strict"; return ('+T+").constructor;")()}catch(_){}},CT=ZE(),XL=M0(),CE=function(){throw new a_},UL=CT?function(){try{return arguments.callee,CE}catch(T){try{return CT(arguments,"callee").get}catch(_){return CE}}}():CE,t_=y0()(),a=U1(),JL=QE(),CL=RE(),V1=FE(),HT=vT(),e_={},HL=typeof Uint8Array==="undefined"||!a?j:a(Uint8Array),j_={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?j:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?j:ArrayBuffer,"%ArrayIteratorPrototype%":t_&&a?a([][Symbol.iterator]()):j,"%AsyncFromSyncIteratorPrototype%":j,"%AsyncFunction%":e_,"%AsyncGenerator%":e_,"%AsyncGeneratorFunction%":e_,"%AsyncIteratorPrototype%":e_,"%Atomics%":typeof Atomics==="undefined"?j:Atomics,"%BigInt%":typeof BigInt==="undefined"?j:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?j:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?j:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?j:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":aA,"%eval%":eval,"%EvalError%":_L,"%Float32Array%":typeof Float32Array==="undefined"?j:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?j:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?j:FinalizationRegistry,"%Function%":z1,"%GeneratorFunction%":e_,"%Int8Array%":typeof Int8Array==="undefined"?j:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?j:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?j:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":t_&&a?a(a([][Symbol.iterator]())):j,"%JSON%":typeof JSON==="object"?JSON:j,"%Map%":typeof Map==="undefined"?j:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!t_||!a?j:a(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":eA,"%Object.getOwnPropertyDescriptor%":CT,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?j:Promise,"%Proxy%":typeof Proxy==="undefined"?j:Proxy,"%RangeError%":TL,"%ReferenceError%":EL,"%Reflect%":typeof Reflect==="undefined"?j:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?j:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!t_||!a?j:a(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?j:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":t_&&a?a(""[Symbol.iterator]()):j,"%Symbol%":t_?Symbol:j,"%SyntaxError%":_T,"%ThrowTypeError%":UL,"%TypedArray%":HL,"%TypeError%":a_,"%Uint8Array%":typeof Uint8Array==="undefined"?j:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?j:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?j:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?j:Uint32Array,"%URIError%":AL,"%WeakMap%":typeof WeakMap==="undefined"?j:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?j:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?j:WeakSet,"%Function.prototype.call%":HT,"%Function.prototype.apply%":V1,"%Object.defineProperty%":XL,"%Object.getPrototypeOf%":JL,"%Math.abs%":LL,"%Math.floor%":WL,"%Math.max%":YL,"%Math.min%":ZL,"%Math.pow%":RL,"%Math.round%":QL,"%Math.sign%":FL,"%Reflect.getPrototypeOf%":CL};if(a)try{null.error}catch(T){H1=a(a(T)),j_["%Error.prototype%"]=H1}var H1,BL=function T(_){var E;if(_==="%AsyncFunction%")E=JE("async function () {}");else if(_==="%GeneratorFunction%")E=JE("function* () {}");else if(_==="%AsyncGeneratorFunction%")E=JE("async function* () {}");else if(_==="%AsyncGenerator%"){var A=T("%AsyncGeneratorFunction%");if(A)E=A.prototype}else if(_==="%AsyncIteratorPrototype%"){var L=T("%AsyncGenerator%");if(L&&a)E=a(L.prototype)}return j_[_]=E,E},B1={__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"]},BT=JT(),kT=C1(),DL=BT.call(HT,Array.prototype.concat),zL=BT.call(V1,Array.prototype.splice),D1=BT.call(HT,String.prototype.replace),mT=BT.call(HT,String.prototype.slice),VL=BT.call(HT,RegExp.prototype.exec),NL=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,GL=/\\(\\)?/g,qL=function T(_){var E=mT(_,0,1),A=mT(_,-1);if(E==="%"&&A!=="%")throw new _T("invalid intrinsic syntax, expected closing `%`");else if(A==="%"&&E!=="%")throw new _T("invalid intrinsic syntax, expected opening `%`");var L=[];return D1(_,NL,function(Y,X,C,F){L[L.length]=C?D1(F,GL,"$1"):X||Y}),L},SL=function T(_,E){var A=_,L;if(kT(B1,A))L=B1[A],A="%"+L[0]+"%";if(kT(j_,A)){var Y=j_[A];if(Y===e_)Y=BL(A);if(typeof Y==="undefined"&&!E)throw new a_("intrinsic "+_+" exists, but is not available. Please file an issue!");return{alias:L,name:A,value:Y}}throw new _T("intrinsic "+_+" does not exist!")};N1.exports=function T(_,E){if(typeof _!=="string"||_.length===0)throw new a_("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof E!=="boolean")throw new a_('"allowMissing" argument must be a boolean');if(VL(/^%?[^%]*%?$/,_)===null)throw new _T("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var A=qL(_),L=A.length>0?A[0]:"",Y=SL("%"+L+"%",E),X=Y.name,C=Y.value,F=!1,D=Y.alias;if(D)L=D[0],zL(A,DL([0,1],D));for(var N=1,q=!0;N<A.length;N+=1){var H=A[N],J=mT(H,0,1),I=mT(H,-1);if((J==='"'||J==="'"||J==="`"||(I==='"'||I==="'"||I==="`"))&&J!==I)throw new _T("property names with quotes must have matching quotes");if(H==="constructor"||!q)F=!0;if(L+="."+H,X="%"+L+"%",kT(j_,X))C=j_[X];else if(C!=null){if(!(H in C)){if(!E)throw new a_("base intrinsic for "+_+" exists, but the property is not available.");return}if(CT&&N+1>=A.length){var G=CT(C,H);if(q=!!G,q&&"get"in G&&!("originalValue"in G.get))C=G.get;else C=C[H]}else q=kT(C,H),C=C[H];if(q&&!F)j_[X]=C}}return C}});var HE=k((EW,S1)=>{var G1=bT(),q1=XE(),wL=q1([G1("%String.prototype.indexOf%")]);S1.exports=function T(_,E){var A=G1(_,!!E);if(typeof A==="function"&&wL(_,".prototype.")>-1)return q1([A]);return A}});var BE=k((AW,f1)=>{var fL=bT(),DT=HE(),$L=UT(),IL=M_(),w1=fL("%Map%",!0),xL=DT("Map.prototype.get",!0),KL=DT("Map.prototype.set",!0),OL=DT("Map.prototype.has",!0),hL=DT("Map.prototype.delete",!0),PL=DT("Map.prototype.size",!0);f1.exports=!!w1&&function T(){var _,E={assert:function(A){if(!E.has(A))throw new IL("Side channel does not contain "+$L(A))},delete:function(A){if(_){var L=hL(_,A);if(PL(_)===0)_=void 0;return L}return!1},get:function(A){if(_)return xL(_,A)},has:function(A){if(_)return OL(_,A);return!1},set:function(A,L){if(!_)_=new w1;KL(_,A,L)}};return E}});var I1=k((LW,$1)=>{var vL=bT(),jT=HE(),kL=UT(),MT=BE(),mL=M_(),TT=vL("%WeakMap%",!0),bL=jT("WeakMap.prototype.get",!0),ML=jT("WeakMap.prototype.set",!0),jL=jT("WeakMap.prototype.has",!0),cL=jT("WeakMap.prototype.delete",!0);$1.exports=TT?function T(){var _,E,A={assert:function(L){if(!A.has(L))throw new mL("Side channel does not contain "+kL(L))},delete:function(L){if(TT&&L&&(typeof L==="object"||typeof L==="function")){if(_)return cL(_,L)}else if(MT){if(E)return E.delete(L)}return!1},get:function(L){if(TT&&L&&(typeof L==="object"||typeof L==="function")){if(_)return bL(_,L)}return E&&E.get(L)},has:function(L){if(TT&&L&&(typeof L==="object"||typeof L==="function")){if(_)return jL(_,L)}return!!E&&E.has(L)},set:function(L,Y){if(TT&&L&&(typeof L==="object"||typeof L==="function")){if(!_)_=new TT;ML(_,L,Y)}else if(MT){if(!E)E=MT();E.set(L,Y)}}};return A}:MT});var K1=k((WW,x1)=>{var gL=M_(),uL=UT(),yL=A0(),lL=BE(),dL=I1(),nL=dL||lL||yL;x1.exports=function T(){var _,E={assert:function(A){if(!E.has(A))throw new gL("Side channel does not contain "+uL(A))},delete:function(A){return!!_&&_.delete(A)},get:function(A){return _&&_.get(A)},has:function(A){return!!_&&_.has(A)},set:function(A,L){if(!_)_=nL();_.set(A,L)}};return E}});var cT=k((YW,O1)=>{var pL=String.prototype.replace,iL=/%20/g,DE={RFC1738:"RFC1738",RFC3986:"RFC3986"};O1.exports={default:DE.RFC3986,formatters:{RFC1738:function(T){return pL.call(T,iL,"+")},RFC3986:function(T){return String(T)}},RFC1738:DE.RFC1738,RFC3986:DE.RFC3986}});var NE=k((ZW,P1)=>{var sL=cT(),zE=Object.prototype.hasOwnProperty,c_=Array.isArray,f_=function(){var T=[];for(var _=0;_<256;++_)T.push("%"+((_<16?"0":"")+_.toString(16)).toUpperCase());return T}(),oL=function T(_){while(_.length>1){var E=_.pop(),A=E.obj[E.prop];if(c_(A)){var L=[];for(var Y=0;Y<A.length;++Y)if(typeof A[Y]!=="undefined")L.push(A[Y]);E.obj[E.prop]=L}}},h1=function T(_,E){var A=E&&E.plainObjects?{__proto__:null}:{};for(var L=0;L<_.length;++L)if(typeof _[L]!=="undefined")A[L]=_[L];return A},rL=function T(_,E,A){if(!E)return _;if(typeof E!=="object"&&typeof E!=="function"){if(c_(_))_.push(E);else if(_&&typeof _==="object"){if(A&&(A.plainObjects||A.allowPrototypes)||!zE.call(Object.prototype,E))_[E]=!0}else return[_,E];return _}if(!_||typeof _!=="object")return[_].concat(E);var L=_;if(c_(_)&&!c_(E))L=h1(_,A);if(c_(_)&&c_(E))return E.forEach(function(Y,X){if(zE.call(_,X)){var C=_[X];if(C&&typeof C==="object"&&Y&&typeof Y==="object")_[X]=T(C,Y,A);else _.push(Y)}else _[X]=Y}),_;return Object.keys(E).reduce(function(Y,X){var C=E[X];if(zE.call(Y,X))Y[X]=T(Y[X],C,A);else Y[X]=C;return Y},L)},tL=function T(_,E){return Object.keys(E).reduce(function(A,L){return A[L]=E[L],A},_)},eL=function(T,_,E){var A=T.replace(/\+/g," ");if(E==="iso-8859-1")return A.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(A)}catch(L){return A}},VE=1024,aL=function T(_,E,A,L,Y){if(_.length===0)return _;var X=_;if(typeof _==="symbol")X=Symbol.prototype.toString.call(_);else if(typeof _!=="string")X=String(_);if(A==="iso-8859-1")return escape(X).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});var C="";for(var F=0;F<X.length;F+=VE){var D=X.length>=VE?X.slice(F,F+VE):X,N=[];for(var q=0;q<D.length;++q){var H=D.charCodeAt(q);if(H===45||H===46||H===95||H===126||H>=48&&H<=57||H>=65&&H<=90||H>=97&&H<=122||Y===sL.RFC1738&&(H===40||H===41)){N[N.length]=D.charAt(q);continue}if(H<128){N[N.length]=f_[H];continue}if(H<2048){N[N.length]=f_[192|H>>6]+f_[128|H&63];continue}if(H<55296||H>=57344){N[N.length]=f_[224|H>>12]+f_[128|H>>6&63]+f_[128|H&63];continue}q+=1,H=65536+((H&1023)<<10|D.charCodeAt(q)&1023),N[N.length]=f_[240|H>>18]+f_[128|H>>12&63]+f_[128|H>>6&63]+f_[128|H&63]}C+=N.join("")}return C},_5=function T(_){var E=[{obj:{o:_},prop:"o"}],A=[];for(var L=0;L<E.length;++L){var Y=E[L],X=Y.obj[Y.prop],C=Object.keys(X);for(var F=0;F<C.length;++F){var D=C[F],N=X[D];if(typeof N==="object"&&N!==null&&A.indexOf(N)===-1)E.push({obj:X,prop:D}),A.push(N)}}return oL(E),_},T5=function T(_){return Object.prototype.toString.call(_)==="[object RegExp]"},E5=function T(_){if(!_||typeof _!=="object")return!1;return!!(_.constructor&&_.constructor.isBuffer&&_.constructor.isBuffer(_))},A5=function T(_,E){return[].concat(_,E)},L5=function T(_,E){if(c_(_)){var A=[];for(var L=0;L<_.length;L+=1)A.push(E(_[L]));return A}return E(_)};P1.exports={arrayToObject:h1,assign:tL,combine:A5,compact:_5,decode:eL,encode:aL,isBuffer:E5,isRegExp:T5,maybeMap:L5,merge:rL}});var j1=k((RW,M1)=>{var k1=K1(),gT=NE(),zT=cT(),W5=Object.prototype.hasOwnProperty,m1={brackets:function T(_){return _+"[]"},comma:"comma",indices:function T(_,E){return _+"["+E+"]"},repeat:function T(_){return _}},$_=Array.isArray,Y5=Array.prototype.push,b1=function(T,_){Y5.apply(T,$_(_)?_:[_])},Z5=Date.prototype.toISOString,v1=zT.default,t={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:gT.encode,encodeValuesOnly:!1,filter:void 0,format:v1,formatter:zT.formatters[v1],indices:!1,serializeDate:function T(_){return Z5.call(_)},skipNulls:!1,strictNullHandling:!1},R5=function T(_){return typeof _==="string"||typeof _==="number"||typeof _==="boolean"||typeof _==="symbol"||typeof _==="bigint"},GE={},Q5=function T(_,E,A,L,Y,X,C,F,D,N,q,H,J,I,G,h,b,w){var R=_,B=w,P=0,O=!1;while((B=B.get(GE))!==void 0&&!O){var W=B.get(_);if(P+=1,typeof W!=="undefined")if(W===P)throw new RangeError("Cyclic object value");else O=!0;if(typeof B.get(GE)==="undefined")P=0}if(typeof N==="function")R=N(E,R);else if(R instanceof Date)R=J(R);else if(A==="comma"&&$_(R))R=gT.maybeMap(R,function(d_){if(d_ instanceof Date)return J(d_);return d_});if(R===null){if(X)return D&&!h?D(E,t.encoder,b,"key",I):E;R=""}if(R5(R)||gT.isBuffer(R)){if(D){var V=h?E:D(E,t.encoder,b,"key",I);return[G(V)+"="+G(D(R,t.encoder,b,"value",I))]}return[G(E)+"="+G(String(R))]}var u=[];if(typeof R==="undefined")return u;var y;if(A==="comma"&&$_(R)){if(h&&D)R=gT.maybeMap(R,D);y=[{value:R.length>0?R.join(",")||null:void 0}]}else if($_(N))y=N;else{var n=Object.keys(R);y=q?n.sort(q):n}var A_=F?String(E).replace(/\./g,"%2E"):String(E),__=L&&$_(R)&&R.length===1?A_+"[]":A_;if(Y&&$_(R)&&R.length===0)return __+"[]";for(var e=0;e<y.length;++e){var o=y[e],F_=typeof o==="object"&&o&&typeof o.value!=="undefined"?o.value:R[o];if(C&&F_===null)continue;var J_=H&&F?String(o).replace(/\./g,"%2E"):String(o),l_=$_(R)?typeof A==="function"?A(__,J_):__:__+(H?"."+J_:"["+J_+"]");w.set(_,P);var AT=k1();AT.set(GE,w),b1(u,T(F_,l_,A,L,Y,X,C,F,A==="comma"&&h&&$_(R)?null:D,N,q,H,J,I,G,h,b,AT))}return u},F5=function T(_){if(!_)return t;if(typeof _.allowEmptyArrays!=="undefined"&&typeof _.allowEmptyArrays!=="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.encodeDotInKeys!=="undefined"&&typeof _.encodeDotInKeys!=="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(_.encoder!==null&&typeof _.encoder!=="undefined"&&typeof _.encoder!=="function")throw new TypeError("Encoder has to be a function.");var E=_.charset||t.charset;if(typeof _.charset!=="undefined"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var A=zT.default;if(typeof _.format!=="undefined"){if(!W5.call(zT.formatters,_.format))throw new TypeError("Unknown format option provided.");A=_.format}var L=zT.formatters[A],Y=t.filter;if(typeof _.filter==="function"||$_(_.filter))Y=_.filter;var X;if(_.arrayFormat in m1)X=_.arrayFormat;else if("indices"in _)X=_.indices?"indices":"repeat";else X=t.arrayFormat;if("commaRoundTrip"in _&&typeof _.commaRoundTrip!=="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var C=typeof _.allowDots==="undefined"?_.encodeDotInKeys===!0?!0:t.allowDots:!!_.allowDots;return{addQueryPrefix:typeof _.addQueryPrefix==="boolean"?_.addQueryPrefix:t.addQueryPrefix,allowDots:C,allowEmptyArrays:typeof _.allowEmptyArrays==="boolean"?!!_.allowEmptyArrays:t.allowEmptyArrays,arrayFormat:X,charset:E,charsetSentinel:typeof _.charsetSentinel==="boolean"?_.charsetSentinel:t.charsetSentinel,commaRoundTrip:!!_.commaRoundTrip,delimiter:typeof _.delimiter==="undefined"?t.delimiter:_.delimiter,encode:typeof _.encode==="boolean"?_.encode:t.encode,encodeDotInKeys:typeof _.encodeDotInKeys==="boolean"?_.encodeDotInKeys:t.encodeDotInKeys,encoder:typeof _.encoder==="function"?_.encoder:t.encoder,encodeValuesOnly:typeof _.encodeValuesOnly==="boolean"?_.encodeValuesOnly:t.encodeValuesOnly,filter:Y,format:A,formatter:L,serializeDate:typeof _.serializeDate==="function"?_.serializeDate:t.serializeDate,skipNulls:typeof _.skipNulls==="boolean"?_.skipNulls:t.skipNulls,sort:typeof _.sort==="function"?_.sort:null,strictNullHandling:typeof _.strictNullHandling==="boolean"?_.strictNullHandling:t.strictNullHandling}};M1.exports=function(T,_){var E=T,A=F5(_),L,Y;if(typeof A.filter==="function")Y=A.filter,E=Y("",E);else if($_(A.filter))Y=A.filter,L=Y;var X=[];if(typeof E!=="object"||E===null)return"";var C=m1[A.arrayFormat],F=C==="comma"&&A.commaRoundTrip;if(!L)L=Object.keys(E);if(A.sort)L.sort(A.sort);var D=k1();for(var N=0;N<L.length;++N){var q=L[N],H=E[q];if(A.skipNulls&&H===null)continue;b1(X,Q5(H,q,C,F,A.allowEmptyArrays,A.strictNullHandling,A.skipNulls,A.encodeDotInKeys,A.encode?A.encoder:null,A.filter,A.sort,A.allowDots,A.serializeDate,A.format,A.formatter,A.encodeValuesOnly,A.charset,D))}var J=X.join(A.delimiter),I=A.addQueryPrefix===!0?"?":"";if(A.charsetSentinel)if(A.charset==="iso-8859-1")I+="utf8=%26%2310003%3B&";else I+="utf8=%E2%9C%93&";return J.length>0?I+J:""}});var y1=k((QW,u1)=>{var g_=NE(),qE=Object.prototype.hasOwnProperty,c1=Array.isArray,d={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:g_.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1000,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},X5=function(T){return T.replace(/&#(\d+);/g,function(_,E){return String.fromCharCode(parseInt(E,10))})},g1=function(T,_,E){if(T&&typeof T==="string"&&_.comma&&T.indexOf(",")>-1)return T.split(",");if(_.throwOnLimitExceeded&&E>=_.arrayLimit)throw new RangeError("Array limit exceeded. Only "+_.arrayLimit+" element"+(_.arrayLimit===1?"":"s")+" allowed in an array.");return T},U5="utf8=%26%2310003%3B",J5="utf8=%E2%9C%93",C5=function T(_,E){var A={__proto__:null},L=E.ignoreQueryPrefix?_.replace(/^\?/,""):_;L=L.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var Y=E.parameterLimit===1/0?void 0:E.parameterLimit,X=L.split(E.delimiter,E.throwOnLimitExceeded?Y+1:Y);if(E.throwOnLimitExceeded&&X.length>Y)throw new RangeError("Parameter limit exceeded. Only "+Y+" parameter"+(Y===1?"":"s")+" allowed.");var C=-1,F,D=E.charset;if(E.charsetSentinel){for(F=0;F<X.length;++F)if(X[F].indexOf("utf8=")===0){if(X[F]===J5)D="utf-8";else if(X[F]===U5)D="iso-8859-1";C=F,F=X.length}}for(F=0;F<X.length;++F){if(F===C)continue;var N=X[F],q=N.indexOf("]="),H=q===-1?N.indexOf("="):q+1,J,I;if(H===-1)J=E.decoder(N,d.decoder,D,"key"),I=E.strictNullHandling?null:"";else J=E.decoder(N.slice(0,H),d.decoder,D,"key"),I=g_.maybeMap(g1(N.slice(H+1),E,c1(A[J])?A[J].length:0),function(h){return E.decoder(h,d.decoder,D,"value")});if(I&&E.interpretNumericEntities&&D==="iso-8859-1")I=X5(String(I));if(N.indexOf("[]=")>-1)I=c1(I)?[I]:I;var G=qE.call(A,J);if(G&&E.duplicates==="combine")A[J]=g_.combine(A[J],I);else if(!G||E.duplicates==="last")A[J]=I}return A},H5=function(T,_,E,A){var L=0;if(T.length>0&&T[T.length-1]==="[]"){var Y=T.slice(0,-1).join("");L=Array.isArray(_)&&_[Y]?_[Y].length:0}var X=A?_:g1(_,E,L);for(var C=T.length-1;C>=0;--C){var F,D=T[C];if(D==="[]"&&E.parseArrays)F=E.allowEmptyArrays&&(X===""||E.strictNullHandling&&X===null)?[]:g_.combine([],X);else{F=E.plainObjects?{__proto__:null}:{};var N=D.charAt(0)==="["&&D.charAt(D.length-1)==="]"?D.slice(1,-1):D,q=E.decodeDotInKeys?N.replace(/%2E/g,"."):N,H=parseInt(q,10);if(!E.parseArrays&&q==="")F={0:X};else if(!isNaN(H)&&D!==q&&String(H)===q&&H>=0&&(E.parseArrays&&H<=E.arrayLimit))F=[],F[H]=X;else if(q!=="__proto__")F[q]=X}X=F}return X},B5=function T(_,E,A,L){if(!_)return;var Y=A.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,X=/(\[[^[\]]*])/,C=/(\[[^[\]]*])/g,F=A.depth>0&&X.exec(Y),D=F?Y.slice(0,F.index):Y,N=[];if(D){if(!A.plainObjects&&qE.call(Object.prototype,D)){if(!A.allowPrototypes)return}N.push(D)}var q=0;while(A.depth>0&&(F=C.exec(Y))!==null&&q<A.depth){if(q+=1,!A.plainObjects&&qE.call(Object.prototype,F[1].slice(1,-1))){if(!A.allowPrototypes)return}N.push(F[1])}if(F){if(A.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+A.depth+" and strictDepth is true");N.push("["+Y.slice(F.index)+"]")}return H5(N,E,A,L)},D5=function T(_){if(!_)return d;if(typeof _.allowEmptyArrays!=="undefined"&&typeof _.allowEmptyArrays!=="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.decodeDotInKeys!=="undefined"&&typeof _.decodeDotInKeys!=="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(_.decoder!==null&&typeof _.decoder!=="undefined"&&typeof _.decoder!=="function")throw new TypeError("Decoder has to be a function.");if(typeof _.charset!=="undefined"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof _.throwOnLimitExceeded!=="undefined"&&typeof _.throwOnLimitExceeded!=="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var E=typeof _.charset==="undefined"?d.charset:_.charset,A=typeof _.duplicates==="undefined"?d.duplicates:_.duplicates;if(A!=="combine"&&A!=="first"&&A!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var L=typeof _.allowDots==="undefined"?_.decodeDotInKeys===!0?!0:d.allowDots:!!_.allowDots;return{allowDots:L,allowEmptyArrays:typeof _.allowEmptyArrays==="boolean"?!!_.allowEmptyArrays:d.allowEmptyArrays,allowPrototypes:typeof _.allowPrototypes==="boolean"?_.allowPrototypes:d.allowPrototypes,allowSparse:typeof _.allowSparse==="boolean"?_.allowSparse:d.allowSparse,arrayLimit:typeof _.arrayLimit==="number"?_.arrayLimit:d.arrayLimit,charset:E,charsetSentinel:typeof _.charsetSentinel==="boolean"?_.charsetSentinel:d.charsetSentinel,comma:typeof _.comma==="boolean"?_.comma:d.comma,decodeDotInKeys:typeof _.decodeDotInKeys==="boolean"?_.decodeDotInKeys:d.decodeDotInKeys,decoder:typeof _.decoder==="function"?_.decoder:d.decoder,delimiter:typeof _.delimiter==="string"||g_.isRegExp(_.delimiter)?_.delimiter:d.delimiter,depth:typeof _.depth==="number"||_.depth===!1?+_.depth:d.depth,duplicates:A,ignoreQueryPrefix:_.ignoreQueryPrefix===!0,interpretNumericEntities:typeof _.interpretNumericEntities==="boolean"?_.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof _.parameterLimit==="number"?_.parameterLimit:d.parameterLimit,parseArrays:_.parseArrays!==!1,plainObjects:typeof _.plainObjects==="boolean"?_.plainObjects:d.plainObjects,strictDepth:typeof _.strictDepth==="boolean"?!!_.strictDepth:d.strictDepth,strictNullHandling:typeof _.strictNullHandling==="boolean"?_.strictNullHandling:d.strictNullHandling,throwOnLimitExceeded:typeof _.throwOnLimitExceeded==="boolean"?_.throwOnLimitExceeded:!1}};u1.exports=function(T,_){var E=D5(_);if(T===""||T===null||typeof T==="undefined")return E.plainObjects?{__proto__:null}:{};var A=typeof T==="string"?C5(T,E):T,L=E.plainObjects?{__proto__:null}:{},Y=Object.keys(A);for(var X=0;X<Y.length;++X){var C=Y[X],F=B5(C,A[C],E,typeof T==="string");L=g_.merge(L,F,E)}if(E.allowSparse===!0)return L;return g_.compact(L)}});var d1=k((FW,l1)=>{var z5=j1(),V5=y1(),N5=cT();l1.exports={formats:N5,parse:V5,stringify:z5}});var TY=ST(wT(),1);var kE={};B4(kE,{zodSchemaKey:()=>fT,webSocketServerArgsKey:()=>D_,webSocketMessageArgsKey:()=>WT,webSocketKey:()=>B_,webSocketEventKey:()=>b_,webSocketEventArgumentsKey:()=>Z_,webSocketConnectionArgsKey:()=>z_,webSocketCloseReasonArgsKey:()=>ZT,webSocketCloseCodeArgsKey:()=>YT,routeModelArgsKey:()=>E_,responseHeadersArgsKey:()=>R_,responseBodyArgsKey:()=>W_,requestHeadersArgsKey:()=>U_,requestHeaderArgsKey:()=>V_,requestBodyArgsKey:()=>N_,requestArgsKey:()=>q_,queryArgsKey:()=>RT,paramsArgsKey:()=>T_,paramArgsKey:()=>G_,moduleKey:()=>s_,middlewareKey:()=>m_,injectableKey:()=>k_,injectKey:()=>i_,httpServerArgsKey:()=>z4,guardKey:()=>v_,dispatcherKey:()=>P_,controllerKey:()=>H_,controllerHttpKey:()=>K_,contextArgsKey:()=>S_,configKey:()=>iT,argumentsKey:()=>g});var g=Symbol("__bool:arguments__"),Z_=Symbol("__bool:webSocketEventArguments__"),iT=Symbol("__bool:config__"),H_=Symbol("__bool:controller__"),P_=Symbol("__bool:dispatcher__"),v_=Symbol("__bool:guard__"),K_=Symbol("__bool:controller.http__"),i_=Symbol("__bool:inject__"),k_=Symbol("__bool:injectable__"),m_=Symbol("__bool:middleware__"),s_=Symbol("__bool:module__"),fT=Symbol("__bool:zodSchema__"),B_=Symbol("__bool:webSocket__"),b_=Symbol("__bool:webSocket:event__"),D_=Symbol("__bool:webSocketArguments:server__"),z_=Symbol("__bool:webSocketArguments:connection__"),WT=Symbol("__bool:webSocketArguments:message__"),YT=Symbol("__bool:webSocketArguments:closeCode__"),ZT=Symbol("__bool:webSocketArguments:closeReason__"),z4=Symbol("__bool:httpArguments:server__"),U_=Symbol("__bool:httpArguments:requestHeaders__"),V_=Symbol("__bool:httpArguments:requestHeader__"),N_=Symbol("__bool:httpArguments:requestBody__"),T_=Symbol("__bool:httpArguments:params__"),G_=Symbol("__bool:httpArguments:param__"),RT=Symbol("__bool:httpArguments:query__"),q_=Symbol("__bool:httpArguments:request__"),R_=Symbol("__bool:httpArguments:responseHeaders__"),S_=Symbol("__bool:httpArguments:context__"),E_=Symbol("__bool:httpArguments:routeModel__"),W_=Symbol("__bool:httpArguments:responseBody__");var V4=(T)=>(_,E,A)=>{if(!E)return;let L=Reflect.getOwnMetadata(g,_.constructor,E)||{};L[`argumentIndexes.${A}`]={index:A,type:U_,zodSchema:T},Reflect.defineMetadata(g,L,_.constructor,E)},N4=(T,_)=>(E,A,L)=>{if(!A)return;let Y=Reflect.getOwnMetadata(g,E.constructor,A)||{};Y[`argumentIndexes.${L}`]={index:L,type:V_,key:T,zodSchema:_},Reflect.defineMetadata(g,Y,E.constructor,A)},G4=(T,_)=>(E,A,L)=>{if(!A)return;let Y=Reflect.getOwnMetadata(g,E.constructor,A)||{};Y[`argumentIndexes.${L}`]={index:L,type:N_,zodSchema:T,parser:_},Reflect.defineMetadata(g,Y,E.constructor,A)},q4=(T)=>(_,E,A)=>{if(!E)return;let L=Reflect.getOwnMetadata(g,_.constructor,E)||{};L[`argumentIndexes.${A}`]={index:A,type:T_,zodSchema:T},Reflect.defineMetadata(g,L,_.constructor,E)},S4=(T,_)=>(E,A,L)=>{if(!A)return;let Y=Reflect.getOwnMetadata(g,E.constructor,A)||{};Y[`argumentIndexes.${L}`]={index:L,type:G_,key:T,zodSchema:_},Reflect.defineMetadata(g,Y,E.constructor,A)},w4=(T)=>(_,E,A)=>{if(!E)return;let L=Reflect.getOwnMetadata(g,_.constructor,E)||{};L[`argumentIndexes.${A}`]={index:A,type:RT,zodSchema:T},Reflect.defineMetadata(g,L,_.constructor,E)},f4=(T)=>(_,E,A)=>{if(!E)return;let L=Reflect.getOwnMetadata(g,_.constructor,E)||{};L[`argumentIndexes.${A}`]={index:A,type:q_,zodSchema:T},Reflect.defineMetadata(g,L,_.constructor,E)},$4=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(g,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:R_},Reflect.defineMetadata(g,A,T.constructor,_)},I4=(T)=>(_,E,A)=>{if(!E)return;let L=Reflect.getOwnMetadata(g,_.constructor,E)||{};L[`argumentIndexes.${A}`]={index:A,type:S_,key:T},Reflect.defineMetadata(g,L,_.constructor,E)},x4=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(g,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:E_},Reflect.defineMetadata(g,A,T.constructor,_)};var K4=(T)=>(_)=>{let E={prefix:!T?.startsWith("/")?`/${T||""}`:T,httpMetadata:[...Reflect.getOwnMetadata(K_,_.constructor)||[]]};Reflect.defineMetadata(H_,E,_)};var O4=()=>(T)=>{Reflect.defineMetadata(P_,void 0,T)};var h4=()=>(T)=>{if(!("enforce"in T.prototype)||typeof T.prototype.enforce!=="function")return;let _=void 0;Reflect.defineMetadata(v_,_,T)};var o_=(T,_)=>(E,A,L)=>{if(!(L?.value instanceof Function))throw Error(`${_} decorator only use for class method.`);let Y=[...Reflect.getOwnMetadata(K_,E.constructor)||[],{path:!T.startsWith("/")?`/${T}`:T,httpMethod:_.toUpperCase(),methodName:A,descriptor:L}];Reflect.defineMetadata(K_,Y,E.constructor)},P4=(T="/")=>o_(T,"Get"),v4=(T="/")=>o_(T,"Post"),k4=(T="/")=>o_(T,"Put"),m4=(T="/")=>o_(T,"Patch"),b4=(T="/")=>o_(T,"Delete"),M4=(T="/")=>o_(T,"Options");var j4=(T)=>{return(_,E,A)=>{let L=Reflect.getMetadata(i_,_)||[];L[A]=T,Reflect.defineMetadata(i_,L,_)}};var c4=()=>(T)=>Reflect.defineMetadata(k_,void 0,T);var g4=()=>(T)=>{Reflect.defineMetadata(m_,void 0,T)};var u4=(T)=>(_)=>{let{middlewares:E,guards:A,dispatchers:L,controllers:Y,dependencies:X,webSockets:C}=T||{};if(E){for(let F=0;F<E.length;F++)if(!Reflect.getOwnMetadataKeys(E[F]).includes(m_))throw Error(`${E[F].name} is not a middleware.`)}if(A){for(let F=0;F<A.length;F++)if(!Reflect.getOwnMetadataKeys(A[F]).includes(v_))throw Error(`${A[F].name} is not a guard.`)}if(L){for(let F=0;F<L.length;F++)if(!Reflect.getOwnMetadataKeys(L[F]).includes(P_))throw Error(`${L[F].name} is not a dispatcher.`)}if(Y){for(let F=0;F<Y.length;F++)if(!Reflect.getOwnMetadataKeys(Y[F]).includes(H_))throw Error(`${Y[F].name} is not a controller.`)}if(X){for(let F=0;F<X.length;F++)if(!Reflect.getOwnMetadataKeys(X[F]).includes(k_))throw Error(`${X[F].name} is not an injectable.`)}if(C){for(let F=0;F<C.length;F++)if(!Reflect.getOwnMetadataKeys(C[F]).includes(B_))throw Error(`${C[F].name} is not a websocket gateway.`)}Reflect.defineMetadata(s_,T,_)};var $T=Symbol("__bool:webSocket.upgrade__"),y4=(T,_,E)=>{let A=new URL(_.url);return T.upgrade(_,{data:{method:_.method.toUpperCase(),pathname:A.pathname,query:E}})},l4=(T)=>(_)=>{let{prefix:E}=T||{};_.prototype[$T]=y4;let A=Object.getOwnPropertyDescriptor(_.prototype,$T),L=!A?[]:[{path:"/",httpMethod:"GET",methodName:$T,descriptor:A},{path:"/",httpMethod:"POST",methodName:$T,descriptor:A}],Y={prefix:!E?.startsWith("/")?`/${E||""}`:E,events:Reflect.getOwnMetadata(b_,_)||{},http:L};Reflect.defineMetadata(B_,Y,_)};var d4=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(Z_,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:z_},Reflect.defineMetadata(Z_,A,T.constructor,_)},n4=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(Z_,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:D_},Reflect.defineMetadata(Z_,A,T.constructor,_)},p4=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(Z_,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:YT},Reflect.defineMetadata(Z_,A,T.constructor,_)},i4=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(Z_,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:ZT},Reflect.defineMetadata(Z_,A,T.constructor,_)};var s4=(T)=>(_,E,A)=>{if(!(A.value instanceof Function))throw Error("WebSocketEvent decorator only use for class's method.");let L=Reflect.getOwnMetadata(Z_,_.constructor,E),Y=Object.freeze({methodName:E,descriptor:A,arguments:L}),X={...Reflect.getOwnMetadata(b_,_.constructor)||void 0,[T]:Y};Reflect.defineMetadata(b_,Y,_.constructor,E),Reflect.defineMetadata(b_,X,_.constructor)};var o4=(T)=>{return(_,E,A)=>{if(!E)return;let L=Reflect.getOwnMetadata(fT,_.constructor,E)||{};L[`paramterIndexes.${A}`]={index:A,schema:T},Reflect.defineMetadata(fT,L,_.constructor,E)}};var dW=ST(wT(),1),t1=ST(d1(),1);var Q_;(function(T){T.year="year",T.month="month",T.day="day",T.hours="hours",T.minutes="minutes",T.seconds="seconds",T.miliseconds="miliseconds"})(Q_||(Q_={}));var n1=(T,_,E=Q_.day)=>{let A=T instanceof Date?T:new Date(T);switch(E){case Q_.year:A.setFullYear(A.getFullYear()+_);break;case Q_.month:A.setMonth(A.getMonth()+_);break;case Q_.day:A.setDate(A.getDate()+_);break;case Q_.hours:A.setHours(A.getHours()+_);break;case Q_.minutes:A.setMinutes(A.getMinutes()+_);break;case Q_.seconds:A.setSeconds(A.getSeconds()+_);break;case Q_.miliseconds:A.setMilliseconds(A.getMilliseconds()+_);break}return A};class I_{static rootPattern=":([a-z0-9A-Z_-]{1,})";static innerRootPattern="([a-z0-9A-Z_-]{1,})";alias;_map=new Map;constructor(T){this.alias=this._thinAlias(T)}test(T,_){try{let E=this._map.get(_),A=this.alias.split("/"),L=this._thinAlias(T).split("/");if(!E)return;if(A.length!==L.length)return;let Y=Object(),X=this.alias.replace(new RegExp(I_.rootPattern,"g"),I_.innerRootPattern);if(!new RegExp(X).test(this._thinAlias(T)))return;for(let C=0;C<A.length;C++){let F=A[C],D=L[C];if(!new RegExp(I_.rootPattern,"g").test(F)){if(F!==D)return}else{let N=!1;if(F.replace(new RegExp(I_.rootPattern,"g"),(q,H,J)=>{if(J===0)D.replace(new RegExp(I_.innerRootPattern,"g"),(I,G,h)=>{if(h===0)Object.assign(Y,{[H]:I});return I});return q}),N)return}continue}return Object.freeze({parameters:Y,model:E})}catch(E){return console.error(E),!1}}isMatch(T,_){try{if(!this._map.get(_))return;let A=this.alias.split("/"),L=this._thinAlias(T).split("/");if(A.length!==L.length)return!1;let Y=Object();for(let X=0;X<A.length;X++){let C=A[X],F=L[X];if(!new RegExp(I_.rootPattern,"g").test(C)){if(C!==F)return!1}else{let D=!1;if(C.replace(new RegExp(I_.rootPattern,"g"),(N,q,H)=>{if(!new RegExp(H,"g").test(F))D=!0;else Object.assign(Y,{[q]:F});return""}),D)return!1}continue}return!0}catch(E){console.error(E);return}}get(T){if(!this._map.get("GET"))this._map.set("GET",T);return this}post(T){if(!this._map.get("POST"))this._map.set("POST",T);return this}put(T){if(!this._map.get("PUT"))this._map.set("PUT",T);return this}delete(T){if(!this._map.get("DELETE"))this._map.set("DELETE",T);return this}connect(T){if(!this._map.get("CONNECT"))return this._map.set("CONNECT",T);return this}options(T){if(!this._map.get("OPTIONS"))return this._map.set("OPTIONS",T);return this}trace(T){if(!this._map.get("TRACE"))return this._map.set("TRACE",T);return this}patch(T){if(!this._map.get("PATCH"))return this._map.set("PATCH",T);return this}_thinAlias(T){return T.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get _fullPath(){return this.alias.split("/").map((E,A)=>{let L=new RegExp(":([a-z0-9A-Z_.-]{1,})(\\(.*?\\))","g");if(!L.test(E)){if(L=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!L.test(E))return E;return E.replace(L,(Y,X)=>`${Y}(.*?)`)}return E}).join("/")}get _filteredPath(){return this.alias.split("/").map((E,A)=>{let L=new RegExp(":([a-z0-9A-Z_.-]{1,})((.*?))","g");if(!L.test(E)){if(L=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!L.test(E))return E;return E.replace(L,(Y,X)=>"(.*?)")}return E.replace(L,(Y,X,C)=>C)}).join("/")}}var p1=I_;class VT{alias;_routes=new Map;constructor(T){this.alias=this._thinAlias(T)}route(T){let _=this._thinAlias(`${this.alias}/${T}`),E=this._routes.get(_),A=!E?new p1(`${this.alias}/${T}`):E;if(!E)this._routes.set(_,A);return A}_thinAlias(T){return T.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get routes(){return this._routes}}class NT{_routers=new Map;add(...T){for(let _=0;_<T.length;_++){if(this._routers.has(T[_].alias))continue;this._routers.set(T[_].alias,T[_])}return this}find(T,_){for(let E of[...this._routers.values()])for(let A of E.routes.values()){let L=A.test(T,_);if(!L)continue;return L}return}}class uT{eventName;metadata;_context=void 0;constructor({eventName:T,metadata:_}){this.eventName=T,this.metadata=_}bind(T){return this._context=T,this}execute(){return Object.freeze({methodName:this.metadata.methodName,descriptor:!this._context||typeof this.metadata.descriptor.value!=="function"?this.metadata.descriptor:this.metadata.descriptor.value.bind(this._context),arguments:this.metadata.arguments})}}class GT{rawAlias;alias;routes=[];constructor(T="/"){this.rawAlias=T;this.alias=GT.thinAlias(T)}addRoutes(...T){for(let _ of T)if(!this.routes.includes(_))this.routes.push(_);return this}bind(T){for(let _ of this.routes)_.bind(T);return this}execute(){let T=new Map;for(let _ of this.routes)T.set(`${this.alias}:::${_.eventName}`,_.execute());return T}static thinAlias(T){return T.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}class ET{rawPrefix;prefix;routers=[];constructor(T="/"){this.rawPrefix=T;this.prefix=ET.thinPrefix(T)}addRouters(...T){for(let _=0;_<T.length;_++)if(!this.routers.includes(T[_]))this.routers.push(T[_]);for(let _ of T)if(!this.routers.includes(_))this.routers.push(_);return this}execute(){let T=new Map;for(let _ of this.routers){let E=_.execute();for(let[A,L]of E.entries())T.set(`/${ET.thinPrefix(`${this.prefix}/${A}`)}`,L)}return T}static thinPrefix(T){return T.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}var G5=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 u_ extends Error{httpCode;message;data;constructor({httpCode:T,data:_,message:E}){super();this.httpCode=T,this.message=!E?.trim()?G5[T]:E.trim(),this.data=_}}var q5=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 qT extends Error{httpCode;message;data;constructor({httpCode:T,data:_,message:E}){super();this.httpCode=T,this.message=!E?.trim()?q5[T]:E.trim(),this.data=_}}var i1=(T,_=new Headers)=>{if(_.set("Content-Type","application/json"),T instanceof u_||T instanceof qT)return new Response(JSON.stringify(T),{status:T.httpCode,statusText:T.message,headers:_});return new Response(JSON.stringify((()=>{switch(typeof T){case"object":return!(T instanceof Error)?T:{message:T.message,code:T.name,cause:T.cause};case"string":return{message:T};case"number":return{code:T};default:return}})()),{status:500,statusText:"INTERNAL SERVER ERROR",headers:_})};var vW=async function(){}.constructor;var s1=Object.freeze({black:30,red:31,green:32,yellow:33,blue:34,magenta:35,cyan:36,white:37,gray:90}),o1=Object.freeze({black:40,red:41,green:42,yellow:43,blue:44,magenta:45,cyan:46,white:47,gray:100}),y_=(T,_={})=>{let{color:E,backgroundColor:A,bold:L,underline:Y}=_,X="";if(L)X+="\x1B[1m";if(Y)X+="\x1B[4m";if(E&&s1[E])X+=`\x1B[${s1[E]}m`;if(A&&o1[A])X+=`\x1B[${o1[A]}m`;return`${X}${T}\x1B[0m`};var r1=(T)=>{let{headers:_,method:E}=T,A=_.get("upgrade")?.toLowerCase()||"",L=_.get("connection")?.toLowerCase()||"";return E==="GET"&&A?.toLowerCase()==="websocket"&&L?.toLowerCase().includes("upgrade")};var uW=ST(wT(),1);class yT{_mapper=new Map;get(T){if(this._mapper.has(T))return this._mapper.get(T);if(typeof T!=="function")return;let _=Reflect.getMetadataKeys(T);if(![k_,H_,m_,v_,P_,B_].some((Y)=>_.includes(Y)))throw Error("Missing dependency declaration, please check @Injectable() used on dependency(ies).");let A=(Reflect.getOwnMetadata(i_,T)||[]).map((Y)=>this.get(Y)),L=new T(...A);return this._mapper.set(T,L),L}set(T,_){this._mapper.set(T,_)}}var S5=900,Y_=(T)=>{return T.headers.set("X-Powered-By","Bool Typescript"),T},w5=({controllerConstructor:T,httpRouterGroup:_,injector:E,prefix:A})=>{if(!Reflect.getOwnMetadataKeys(T).includes(H_))throw Error(`${T.name} is not a controller.`);let L=E.get(T);if(!L)throw Error("Can not initialize controller.");let Y=Reflect.getOwnMetadata(H_,T)||{prefix:"/",httpMetadata:[]},X=Reflect.getOwnMetadata(K_,T)||[],C=new VT(`/${A||""}/${Y.prefix}`);return X.forEach((F)=>{if(typeof F.descriptor.value!=="function")return;let D=C.route(F.path),N=F.descriptor.value.bind(L),q=Object.freeze({class:T,funcName:F.methodName,func:N});switch(F.httpMethod){case"GET":return D.get(q);case"POST":return D.post(q);case"PUT":return D.put(q);case"PATCH":return D.patch(q);case"DELETE":return D.delete(q);case"OPTIONS":return D.options(q)}}),_.add(C)},f5=({injector:T,httpRouterGroup:_,prefix:E,webSocketRouterGroup:A,webSocketConstructor:L})=>{if(!Reflect.getOwnMetadataKeys(L).includes(B_))throw Error(`${L.name} is not a controller.`);let Y=T.get(L);if(!Y)throw Error("Can not initialize webSocket.");let X=Reflect.getOwnMetadata(B_,L)||{prefix:"/",events:[],http:[]},C=`/${E||""}/${X.prefix}`,F=new VT(C);for(let[N,q]of Object.entries(X.http)){if(typeof q.descriptor?.value!=="function")continue;let H=F.route(q.path),J=q.descriptor.value.bind(Y),I=Object.freeze({class:L,funcName:q.methodName,func:J});switch(q.httpMethod){case"GET":H.get(I);break;case"POST":H.post(I);break}}_.add(F);let D=new GT(C);for(let[N,q]of Object.entries(X.events)){let H=new uT({eventName:N,metadata:q});D.addRoutes(H)}return D.bind(Y),A.addRouters(D),Object.freeze({httpRouterGroup:_,webSocketRouterGroup:A})},c=async(T,_,E,A)=>{try{let L=await _.safeParseAsync(T);if(!L.success)throw new u_({httpCode:400,message:`Validation at the [${A.toString()}] method fails at positional argument [${E}].`,data:L.error.issues});return L.data}catch(L){if(L instanceof u_)throw L;throw new qT({httpCode:500,message:`Validation at the [${A.toString()}] method error at positional argument [${E}].`,data:!(L instanceof Error)?L:[{message:L.message,code:L.name,cause:L.cause}]})}},$5=async(T,_)=>{if(!Reflect.getOwnMetadataKeys(T).includes(s_))throw Error(`${T.name} is not a module.`);let E=new yT,A=Reflect.getOwnMetadata(s_,T);if(!A)return;let{loaders:L,middlewares:Y,guards:X,dispatchers:C,controllers:F,dependencies:D,webSockets:N,prefix:q,config:H}=A,J=`${_.prefix||""}/${q||""}`,{config:I}=Object.freeze({config:{...typeof _.config!=="function"?_.config:await _.config(),...typeof H!=="function"?typeof H!=="object"?void 0:H:await H()}});if(E.set(iT,I),L){let W=[];for(let[u,y]of Object.entries(L))W.push(async()=>{try{let n=await y({config:I});return console.info(`${y_(" INFO ",{color:"white",backgroundColor:"blue",bold:!0})} Loader [${u}] initialized successfully.`),n}catch(n){throw console.error(`${y_(" WARN ",{color:"yellow",backgroundColor:"red",bold:!0})} Loader [${u}] initialization failed.`),_.debug&&console.error(n),n}});let V=await Promise.all(W.map((u)=>u()));for(let u=0;u<V.length;u++){let[y,n]=V[u];E.set(y,n)}}!D||D.map((W)=>E.get(W));let G=[],h=[];Y&&Y.forEach((W)=>{let V=E.get(W);if(V.start&&typeof V.start==="function")G.push(Object.freeze({class:W,funcName:"start",func:V.start.bind(V)}));if(V.end&&typeof V.end==="function")h.push(Object.freeze({class:W,funcName:"end",func:V.end.bind(V)}))});let b=!X?[]:X.map((W)=>{let V=E.get(W);return Object.freeze({class:W,funcName:"enforce",func:V.enforce.bind(V)})}),w=[],R=[];C&&C.forEach((W)=>{let V=E.get(W);if(V.open&&typeof V.open==="function")w.push(Object.freeze({class:W,funcName:"open",func:V.open.bind(V)}));if(V.close&&typeof V.close==="function")R.push(Object.freeze({class:W,funcName:"close",func:V.close.bind(V)}))});let B=new NT;F&&F.forEach((W)=>w5({controllerConstructor:W,httpRouterGroup:B,injector:E,prefix:J}));let P=new NT,O=new ET;return N&&N.forEach((W)=>f5({webSocketConstructor:W,httpRouterGroup:P,webSocketRouterGroup:O,injector:E,prefix:J})),Object.freeze({prefix:A.prefix,injector:E,startMiddlewareGroup:G,endMiddlewareGroup:h,guardGroup:b,openDispatcherGroup:w,closeDispatcherGroup:R,controllerRouterGroup:B,webSocketHttpRouterGroup:P,webSocketRouterGroup:O})},I5=async(T,_)=>{let{request:E,server:A}=T,{query:L,responseHeaders:Y,route:{model:X}}=_,C=await X.func(...[A,E,L]);if(typeof C!=="boolean")return Y_(new Response(JSON.stringify({httpCode:500,message:"Can not detect webSocket upgrade result.",data:void 0}),{status:500,statusText:"Internal server error.",headers:Y}));if(!C)return Y_(new Response(JSON.stringify({httpCode:500,message:"Can not upgrade.",data:void 0}),{status:500,statusText:"Internal server error.",headers:Y}));return C},x5=async(T,_)=>{let{request:E,server:A}=T,{query:L,responseHeaders:Y,route:{parameters:X,model:C},moduleResolution:{startMiddlewareGroup:F,endMiddlewareGroup:D,guardGroup:N,openDispatcherGroup:q,closeDispatcherGroup:H}}=_,J={[U_]:E.headers,[R_]:Y,[RT]:L,[T_]:X,[E_]:C},I={get(w){return J[w]},set(w,R){if(w in J)throw Error(`${String(w)} already exists in context.`);J[w]=R}};for(let w=0;w<F.length;w++){let R=[],B=F[w],P=Reflect.getOwnMetadata(g,B.class,B.funcName)||{};if(P)for(let[O,W]of Object.entries(P))switch(W.type){case q_:R[W.index]=!W.zodSchema?E:await c(E,W.zodSchema,W.index,B.funcName);break;case N_:R[W.index]=!W.zodSchema?await E[W.parser||"json"]():await c(await E[W.parser||"json"](),W.zodSchema,W.index,B.funcName);break;case S_:R[W.index]=!W.key?I:I.get(W.key);break;case U_:R[W.index]=!W.zodSchema?E.headers:await c(E.headers.toJSON(),W.zodSchema,W.index,B.funcName);break;case R_:R[W.index]=J[W.type];break;case V_:R[W.index]=!W.zodSchema?E.headers.get(W.key)||void 0:await c(E.headers.get(W.key)||void 0,W.zodSchema,W.index,B.funcName);break;case G_:R[W.index]=!W.zodSchema?J[T_][W.key]||void 0:await c(J[T_][W.key],W.zodSchema,W.index,B.funcName);break;case E_:R[W.index]=J[E_];break;default:R[W.index]=!W.zodSchema?!(W.type in J)?void 0:J[W.type]:await c(!(W.type in J)?void 0:J[W.type],W.zodSchema,W.index,B.funcName);break}if(J[W_]=await B.func(...R),J[W_]instanceof Response)return Y_(J[W_])}for(let w=0;w<N.length;w++){let R=[],B=N[w],P=Reflect.getOwnMetadata(g,B.class,B.funcName)||{};if(P)for(let[W,V]of Object.entries(P))switch(V.type){case q_:R[V.index]=!V.zodSchema?E:await c(E,V.zodSchema,V.index,B.funcName);break;case N_:R[V.index]=!V.zodSchema?await E[V.parser||"json"]():await c(await E[V.parser||"json"](),V.zodSchema,V.index,B.funcName);break;case S_:R[V.index]=!V.key?I:I.get(V.key);break;case U_:R[V.index]=!V.zodSchema?E.headers:await c(E.headers.toJSON(),V.zodSchema,V.index,B.funcName);break;case R_:R[V.index]=J[V.type];break;case V_:R[V.index]=!V.zodSchema?E.headers.get(V.key)||void 0:await c(E.headers.get(V.key)||void 0,V.zodSchema,V.index,B.funcName);break;case G_:R[V.index]=!V.zodSchema?J[T_][V.key]||void 0:await c(J[T_][V.key],V.zodSchema,V.index,B.funcName);break;case E_:R[V.index]=J[E_];break;default:R[V.index]=!V.zodSchema?J[V.type]:await c(J[V.type],V.zodSchema,V.index,B.funcName);break}let O=await B.func(...R);if(typeof O!=="boolean"||!O)throw new u_({httpCode:401,message:"Unauthorization.",data:void 0})}for(let w=0;w<q.length;w++){let R=[],B=q[w],P=Reflect.getOwnMetadata(g,B.class,B.funcName)||{};if(P)for(let[O,W]of Object.entries(P))switch(W.type){case q_:R[W.index]=!W.zodSchema?E:await c(E,W.zodSchema,W.index,B.funcName);break;case N_:R[W.index]=!W.zodSchema?await E[W.parser||"json"]():await c(await E[W.parser||"json"](),W.zodSchema,W.index,B.funcName);break;case S_:R[W.index]=!W.key?I:I.get(W.key);break;case U_:R[W.index]=!W.zodSchema?E.headers:await c(E.headers.toJSON(),W.zodSchema,W.index,B.funcName);break;case R_:R[W.index]=J[W.type];break;case V_:R[W.index]=!W.zodSchema?E.headers.get(W.key)||void 0:await c(E.headers.get(W.key)||void 0,W.zodSchema,W.index,B.funcName);break;case G_:R[W.index]=!W.zodSchema?J[T_][W.key]||void 0:await c(J[T_][W.key],W.zodSchema,W.index,B.funcName);break;case E_:R[W.index]=J[E_];break;default:R[W.index]=!W.zodSchema?J[W.type]:await c(J[W.type],W.zodSchema,W.index,B.funcName);break}J[W_]=await B.func(...R)}let G=[],h=C,b=Reflect.getOwnMetadata(g,h.class,h.funcName)||{};if(b)for(let[w,R]of Object.entries(b))switch(R.type){case q_:G[R.index]=!R.zodSchema?E:await c(E,R.zodSchema,R.index,h.funcName);break;case N_:G[R.index]=!R.zodSchema?await E[R.parser||"json"]():await c(await E[R.parser||"json"](),R.zodSchema,R.index,h.funcName);break;case S_:G[R.index]=!R.key?I:I.get(R.key);break;case U_:G[R.index]=!R.zodSchema?E.headers:await c(E.headers.toJSON(),R.zodSchema,R.index,h.funcName);break;case R_:G[R.index]=J[R.type];break;case V_:G[R.index]=!R.zodSchema?E.headers.get(R.key)||void 0:await c(E.headers.get(R.key)||void 0,R.zodSchema,R.index,h.funcName);break;case G_:G[R.index]=!R.zodSchema?J[T_][R.key]||void 0:await c(J[T_][R.key],R.zodSchema,R.index,h.funcName);break;case E_:G[R.index]=J[E_];break;default:G[R.index]=!R.zodSchema?J[R.type]:await c(J[R.type],R.zodSchema,R.index,h.funcName);break}J[W_]=await h.func(...G);for(let w=0;w<H.length;w++){let R=[],B=H[w],P=Reflect.getOwnMetadata(g,B.class,B.funcName)||{};if(P)for(let[O,W]of Object.entries(P))switch(W.type){case q_:R[W.index]=!W.zodSchema?E:await c(E,W.zodSchema,W.index,B.funcName);break;case N_:R[W.index]=!W.zodSchema?await E[W.parser||"json"]():await c(await E[W.parser||"json"](),W.zodSchema,W.index,B.funcName);break;case S_:R[W.index]=!W.key?I:I.get(W.key);break;case U_:R[W.index]=!W.zodSchema?E.headers:await c(E.headers.toJSON(),W.zodSchema,W.index,B.funcName);break;case R_:R[W.index]=J[W.type];break;case V_:R[W.index]=!W.zodSchema?E.headers.get(W.key)||void 0:await c(E.headers.get(W.key)||void 0,W.zodSchema,W.index,B.funcName);break;case G_:R[W.index]=!W.zodSchema?J[T_][W.key]||void 0:await c(J[T_][W.key],W.zodSchema,W.index,B.funcName);break;case E_:R[W.index]=J[E_];break;default:R[W.index]=!W.zodSchema?J[W.type]:await c(J[W.type],W.zodSchema,W.index,B.funcName);break}await B.func(...R)}if(J[W_]instanceof Response)return Y_(J[W_]);for(let w=0;w<D.length;w++){let R=[],B=D[w],P=Reflect.getOwnMetadata(g,B.class,B.funcName)||{};if(P)for(let[O,W]of Object.entries(P))switch(W.type){case q_:R[W.index]=!W.zodSchema?E:await c(E,W.zodSchema,W.index,B.funcName);break;case N_:R[W.index]=!W.zodSchema?await E[W.parser||"json"]():await c(await E[W.parser||"json"](),W.zodSchema,W.index,B.funcName);break;case S_:R[W.index]=!W.key?I:I.get(W.key);break;case U_:R[W.index]=!W.zodSchema?E.headers:await c(E.headers.toJSON(),W.zodSchema,W.index,B.funcName);break;case R_:R[W.index]=J[W.type];break;case V_:R[W.index]=!W.zodSchema?E.headers.get(W.key)||void 0:await c(E.headers.get(W.key)||void 0,W.zodSchema,W.index,B.funcName);break;case G_:R[W.index]=!W.zodSchema?J[T_][W.key]||void 0:await c(J[T_][W.key],W.zodSchema,W.index,B.funcName);break;case E_:R[W.index]=J[E_];break;default:R[W.index]=!W.zodSchema?!(W.type in J)?void 0:J[W.type]:await c(!(W.type in J)?void 0:J[W.type],W.zodSchema,W.index,B.funcName);break}if(J[W_]=await B.func(...R),J[W_]instanceof Response)return Y_(J[W_])}return Y_(new Response(!J[W_]?void 0:JSON.stringify({httpCode:200,message:"SUCCESS",data:J[W_]}),{status:!J[W_]?204:200,statusText:"SUCCESS",headers:J[R_]}))},K5=async(T,_)=>{try{let E=new Map,A=!Array.isArray(T)?[T]:T,{allowLogsMethods:L,staticOption:Y,allowOrigins:X,allowMethods:C,allowCredentials:F,allowHeaders:D}=Object.freeze({allowLogsMethods:_?.log?.methods,staticOption:_.static,allowOrigins:!_.cors?.origins?["*"]:typeof _.cors.origins!=="string"?_.cors.origins.includes("*")||_.cors.origins.length<1?["*"]:_.cors.origins:[_.cors.origins!=="*"?_.cors.origins:"*"],allowMethods:_.cors?.methods||["GET","POST","PUT","PATCH","DELETE","OPTIONS"],allowCredentials:!_.cors?.credentials?!1:!0,allowHeaders:!_.cors?.headers||_.cors.headers.includes("*")?["*"]:_.cors.headers}),q=(await Promise.all(A.map((G)=>$5(G,_)))).filter((G)=>typeof G!=="undefined");if([...new Set(q.map((G)=>G.prefix))].length!==q.length)throw Error("Module prefix should be unique.");let J=new Map;for(let G of q){let h=G.webSocketRouterGroup.execute();for(let[b,w]of h.entries())J.set(b,w)}let I=Bun.serve({port:_.port,fetch:async(G,h)=>{let b=performance.now(),w=new URL(G.url),R=t1.default.parse(w.searchParams.toString(),_.queryParser),B=G.headers.get("origin")||"*",P=G.method.toUpperCase(),O=new Headers;try{let W=r1(G),V;if(W){for(let y of q){let n=y.webSocketHttpRouterGroup.find(w.pathname,G.method);if(n){V=Object.freeze({route:n,resolution:y});break}}if(!V)return Y_(new Response(JSON.stringify({httpCode:404,message:"Route not found",data:void 0}),{status:404,statusText:"Not found.",headers:O}));let u=await I5({request:G,server:h},{query:R,responseHeaders:O,route:V.route,moduleResolution:V.resolution});return u instanceof Response?u:void 0}if(F&&O.set("Access-Control-Allow-Credentials","true"),O.set("Access-Control-Allow-Methods",C.join(", ")),O.set("Access-Control-Allow-Headers",D.join(", ")),O.set("Access-Control-Allow-Origin",X.includes("*")?"*":!X.includes(B)?X[0]:B),!C.includes(P))return Y_(new Response(void 0,{status:405,statusText:"Method Not Allowed.",headers:O}));if(G.method.toUpperCase()==="OPTIONS")return Y_(X.includes("*")||X.includes(B)?new Response(void 0,{status:204,statusText:"No Content.",headers:O}):new Response(void 0,{status:417,statusText:"Expectation Failed.",headers:O}));if(Y){let{path:u,headers:y,cacheTimeInSeconds:n}=Y,A_=`${u}/${w.pathname}`,__=E.get(A_);if(!__){let e=Bun.file(A_);if(await e.exists()){if(y)for(let[F_,J_]of Object.entries(y))O.set(F_,J_);return O.set("Content-Type",e.type),Y_(new Response(await e.arrayBuffer(),{status:200,statusText:"SUCCESS",headers:O}))}}else{let e=new Date>__.expiredAt;if(e)E.delete(A_);let o=!e?__.file:Bun.file(A_);if(await o.exists()){if(E.set(A_,Object.freeze({expiredAt:n1(new Date,typeof n!=="number"?S5:n,Q_.seconds),file:o})),y)for(let[J_,l_]of Object.entries(y))O.set(J_,l_);return O.set("Content-Type",o.type),Y_(new Response(await o.arrayBuffer(),{status:200,statusText:"SUCCESS",headers:O}))}}}for(let u of q){let y=u.controllerRouterGroup.find(w.pathname,G.method);if(y){V=Object.freeze({route:y,resolution:u});break}}if(!V)return Y_(new Response(JSON.stringify({httpCode:404,message:"Route not found",data:void 0}),{status:404,statusText:"Not found.",headers:O}));return await x5({request:G,server:h},{query:R,responseHeaders:O,route:V.route,moduleResolution:V.resolution})}catch(W){return _.debug&&console.error(W),Y_(i1(W,O))}finally{if(L){let W=performance.now(),V=y_(w.pathname,{color:"blue"}),u=`${Bun.color("yellow","ansi")}${process.pid}`,y=y_(G.method,{color:"yellow",backgroundColor:"blue"}),n=y_(`${G.headers.get("x-forwarded-for")||G.headers.get("x-real-ip")||h.requestIP(G)?.address||"<Unknown>"}`,{color:"yellow"}),A_=y_(`${Math.round((W-b+Number.EPSILON)*100)/100}ms`,{color:"yellow",backgroundColor:"blue"});L.includes(G.method.toUpperCase())&&console.info(`PID: ${u} - Method: ${y} - IP: ${n} - ${V} - Time: ${A_}`)}}},websocket:{open:(G)=>{let h=`${G.data.pathname}:::open`,b=J.get(h);if(!b)return;let w=b.arguments||{},R=[];for(let[B,P]of Object.entries(w))switch(P.type){case z_:R[P.index]=G;break;case D_:R[P.index]=I;break}b.descriptor.value(...R)},close:(G,h,b)=>{let w=`${G.data.pathname}:::close`,R=J.get(w);if(!R)return;let B=R.arguments||{},P=[];for(let[O,W]of Object.entries(B))switch(W.type){case z_:P[W.index]=G;break;case D_:P[W.index]=I;break;case YT:P[W.index]=h;break;case ZT:P[W.index]=b;break}R.descriptor.value(...P)},message:(G,h)=>{let b=`${G.data.pathname}:::message`,w=J.get(b);if(!w)return;let R=w.arguments||{},B=[];for(let[P,O]of Object.entries(R))switch(O.type){case z_:B[O.index]=G;break;case WT:B[O.index]=h;break;case D_:B[O.index]=I;break}w.descriptor.value(...B)},drain:(G)=>{let h=`${G.data.pathname}:::drain`,b=J.get(h);if(!b)return;let w=b.arguments||{},R=[];for(let[B,P]of Object.entries(w))switch(P.type){case z_:R[P.index]=G;break;case D_:R[P.index]=I;break}b.descriptor.value(...R)},ping:(G,h)=>{let b=`${G.data.pathname}:::ping`,w=J.get(b);if(!w)return;let R=w.arguments||{},B=[];for(let[P,O]of Object.entries(R))switch(O.type){case z_:B[O.index]=G;break;case D_:B[O.index]=I;break;case WT:B[O.index]=h;break}w.descriptor.value(...B)},pong:(G,h)=>{let b=`${G.data.pathname}:::pong`,w=J.get(b);if(!w)return;let R=w.arguments||{},B=[];for(let[P,O]of Object.entries(R))switch(O.type){case z_:B[O.index]=G;break;case D_:B[O.index]=I;break;case WT:B[O.index]=h;break}w.descriptor.value(...B)}}})}catch(E){throw _.debug&&console.error(E),E}};export{i1 as jsonErrorInfer,q5 as httpServerErrors,G5 as httpClientErrors,o4 as ZodSchema,n4 as WebSocketServer,s4 as WebSocketEvent,d4 as WebSocketConnection,i4 as WebSocketCloseReason,p4 as WebSocketCloseCode,l4 as WebSocket,x4 as RouteModel,$4 as ResponseHeaders,V4 as RequestHeaders,N4 as RequestHeader,G4 as RequestBody,f4 as Request,w4 as Query,k4 as Put,v4 as Post,m4 as Patch,q4 as Params,S4 as Param,M4 as Options,u4 as Module,g4 as Middleware,kE as Keys,yT as Injector,c4 as Injectable,j4 as Inject,qT as HttpServerError,u_ as HttpClientError,h4 as Guard,P4 as Get,O4 as Dispatcher,b4 as Delete,K4 as Controller,I4 as Context,K5 as BoolFactory};
14
+ ***************************************************************************** */var cE;(function(T){(function(_){var E=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:H(),A=C(T);if(typeof E.Reflect!=="undefined")A=C(E.Reflect,A);if(_(A,E),typeof E.Reflect==="undefined")E.Reflect=T;function C(Z,z){return function(q,V){if(Object.defineProperty(Z,q,{configurable:!0,writable:!0,value:V}),z)z(q,V)}}function L(){try{return Function("return this;")()}catch(Z){}}function Q(){try{return(0,eval)("(function() { return this; })()")}catch(Z){}}function H(){return L()||Q()}})(function(_,E){var A=Object.prototype.hasOwnProperty,C=typeof Symbol==="function",L=C&&typeof Symbol.toPrimitive!=="undefined"?Symbol.toPrimitive:"@@toPrimitive",Q=C&&typeof Symbol.iterator!=="undefined"?Symbol.iterator:"@@iterator",H=typeof Object.create==="function",Z={__proto__:[]}instanceof Array,z=!H&&!Z,q={create:H?function(){return dT(Object.create(null))}:Z?function(){return dT({__proto__:null})}:function(){return dT({})},has:z?function(W,Y){return A.call(W,Y)}:function(W,Y){return Y in W},get:z?function(W,Y){return A.call(W,Y)?W[Y]:void 0}:function(W,Y){return W[Y]}},V=Object.getPrototypeOf(Function),J=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:WC(),X=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:YC(),x=typeof WeakMap==="function"?WeakMap:ZC(),w=C?Symbol.for("@reflect-metadata:registry"):void 0,k=CC(),m=RC(k);function v(W,Y,U,B){if(!P(U)){if(!fE(W))throw new TypeError;if(!p(Y))throw new TypeError;if(!p(B)&&!P(B)&&!n_(B))throw new TypeError;if(n_(B))B=void 0;return U=X_(U),__(W,Y,U,B)}else{if(!fE(W))throw new TypeError;if(!IE(Y))throw new TypeError;return A_(W,Y)}}_("decorate",v);function D(W,Y){function U(B,h){if(!p(B))throw new TypeError;if(!P(h)&&!EC(h))throw new TypeError;y_(W,Y,B,h)}return U}_("metadata",D);function F(W,Y,U,B){if(!p(U))throw new TypeError;if(!P(B))B=X_(B);return y_(W,Y,U,B)}_("defineMetadata",F);function b(W,Y,U){if(!p(Y))throw new TypeError;if(!P(U))U=X_(U);return e(W,Y,U)}_("hasMetadata",b);function S(W,Y,U){if(!p(Y))throw new TypeError;if(!P(U))U=X_(U);return o(W,Y,U)}_("hasOwnMetadata",S);function K(W,Y,U){if(!p(Y))throw new TypeError;if(!P(U))U=X_(U);return F_(W,Y,U)}_("getMetadata",K);function O(W,Y,U){if(!p(Y))throw new TypeError;if(!P(U))U=X_(U);return H_(W,Y,U)}_("getOwnMetadata",O);function R(W,Y){if(!p(W))throw new TypeError;if(!P(Y))Y=X_(Y);return AT(W,Y)}_("getMetadataKeys",R);function N(W,Y){if(!p(W))throw new TypeError;if(!P(Y))Y=X_(Y);return l_(W,Y)}_("getOwnMetadataKeys",N);function d(W,Y,U){if(!p(Y))throw new TypeError;if(!P(U))U=X_(U);if(!p(Y))throw new TypeError;if(!P(U))U=X_(U);var B=CT(Y,U,!1);if(P(B))return!1;return B.OrdinaryDeleteMetadata(W,Y,U)}_("deleteMetadata",d);function A_(W,Y){for(var U=W.length-1;U>=0;--U){var B=W[U],h=B(Y);if(!P(h)&&!n_(h)){if(!IE(h))throw new TypeError;Y=h}}return Y}function __(W,Y,U,B){for(var h=W.length-1;h>=0;--h){var s=W[h],r=s(Y,U,B);if(!P(r)&&!n_(r)){if(!p(r))throw new TypeError;B=r}}return B}function e(W,Y,U){var B=o(W,Y,U);if(B)return!0;var h=nT(Y);if(!n_(h))return e(W,h,U);return!1}function o(W,Y,U){var B=CT(Y,U,!1);if(P(B))return!1;return NE(B.OrdinaryHasOwnMetadata(W,Y,U))}function F_(W,Y,U){var B=o(W,Y,U);if(B)return H_(W,Y,U);var h=nT(Y);if(!n_(h))return F_(W,h,U);return}function H_(W,Y,U){var B=CT(Y,U,!1);if(P(B))return;return B.OrdinaryGetOwnMetadata(W,Y,U)}function y_(W,Y,U,B){var h=CT(U,B,!0);h.OrdinaryDefineOwnMetadata(W,Y,U,B)}function AT(W,Y){var U=l_(W,Y),B=nT(W);if(B===null)return U;var h=AT(B,Y);if(h.length<=0)return U;if(U.length<=0)return h;var s=new X,r=[];for(var M=0,G=U;M<G.length;M++){var f=G[M],I=s.has(f);if(!I)s.add(f),r.push(f)}for(var $=0,u=h;$<u.length;$++){var f=u[$],I=s.has(f);if(!I)s.add(f),r.push(f)}return r}function l_(W,Y){var U=CT(W,Y,!1);if(!U)return[];return U.OrdinaryOwnMetadataKeys(W,Y)}function VE(W){if(W===null)return 1;switch(typeof W){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return W===null?1:6;default:return 6}}function P(W){return W===void 0}function n_(W){return W===null}function e0(W){return typeof W==="symbol"}function p(W){return typeof W==="object"?W!==null:typeof W==="function"}function a0(W,Y){switch(VE(W)){case 0:return W;case 1:return W;case 2:return W;case 3:return W;case 4:return W;case 5:return W}var U=Y===3?"string":Y===5?"number":"default",B=xE(W,L);if(B!==void 0){var h=B.call(W,U);if(p(h))throw new TypeError;return h}return _C(W,U==="default"?"number":U)}function _C(W,Y){if(Y==="string"){var U=W.toString;if(d_(U)){var B=U.call(W);if(!p(B))return B}var h=W.valueOf;if(d_(h)){var B=h.call(W);if(!p(B))return B}}else{var h=W.valueOf;if(d_(h)){var B=h.call(W);if(!p(B))return B}var s=W.toString;if(d_(s)){var B=s.call(W);if(!p(B))return B}}throw new TypeError}function NE(W){return!!W}function TC(W){return""+W}function X_(W){var Y=a0(W,3);if(e0(Y))return Y;return TC(Y)}function fE(W){return Array.isArray?Array.isArray(W):W instanceof Object?W instanceof Array:Object.prototype.toString.call(W)==="[object Array]"}function d_(W){return typeof W==="function"}function IE(W){return typeof W==="function"}function EC(W){switch(VE(W)){case 3:return!0;case 4:return!0;default:return!1}}function lT(W,Y){return W===Y||W!==W&&Y!==Y}function xE(W,Y){var U=W[Y];if(U===void 0||U===null)return;if(!d_(U))throw new TypeError;return U}function $E(W){var Y=xE(W,Q);if(!d_(Y))throw new TypeError;var U=Y.call(W);if(!p(U))throw new TypeError;return U}function KE(W){return W.value}function hE(W){var Y=W.next();return Y.done?!1:Y}function OE(W){var Y=W.return;if(Y)Y.call(W)}function nT(W){var Y=Object.getPrototypeOf(W);if(typeof W!=="function"||W===V)return Y;if(Y!==V)return Y;var U=W.prototype,B=U&&Object.getPrototypeOf(U);if(B==null||B===Object.prototype)return Y;var h=B.constructor;if(typeof h!=="function")return Y;if(h===W)return Y;return h}function AC(){var W;if(!P(w)&&typeof E.Reflect!=="undefined"&&!(w in E.Reflect)&&typeof E.Reflect.defineMetadata==="function")W=LC(E.Reflect);var Y,U,B,h=new x,s={registerProvider:r,getProvider:G,setProvider:I};return s;function r($){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case W===$:break;case P(Y):Y=$;break;case Y===$:break;case P(U):U=$;break;case U===$:break;default:if(B===void 0)B=new X;B.add($);break}}function M($,u){if(!P(Y)){if(Y.isProviderFor($,u))return Y;if(!P(U)){if(U.isProviderFor($,u))return Y;if(!P(B)){var l=$E(B);while(!0){var i=hE(l);if(!i)return;var Q_=KE(i);if(Q_.isProviderFor($,u))return OE(l),Q_}}}}if(!P(W)&&W.isProviderFor($,u))return W;return}function G($,u){var l=h.get($),i;if(!P(l))i=l.get(u);if(!P(i))return i;if(i=M($,u),!P(i)){if(P(l))l=new J,h.set($,l);l.set(u,i)}return i}function f($){if(P($))throw new TypeError;return Y===$||U===$||!P(B)&&B.has($)}function I($,u,l){if(!f(l))throw new Error("Metadata provider not registered.");var i=G($,u);if(i!==l){if(!P(i))return!1;var Q_=h.get($);if(P(Q_))Q_=new J,h.set($,Q_);Q_.set(u,l)}return!0}}function CC(){var W;if(!P(w)&&p(E.Reflect)&&Object.isExtensible(E.Reflect))W=E.Reflect[w];if(P(W))W=AC();if(!P(w)&&p(E.Reflect)&&Object.isExtensible(E.Reflect))Object.defineProperty(E.Reflect,w,{enumerable:!1,configurable:!1,writable:!1,value:W});return W}function RC(W){var Y=new x,U={isProviderFor:function(f,I){var $=Y.get(f);if(P($))return!1;return $.has(I)},OrdinaryDefineOwnMetadata:r,OrdinaryHasOwnMetadata:h,OrdinaryGetOwnMetadata:s,OrdinaryOwnMetadataKeys:M,OrdinaryDeleteMetadata:G};return k.registerProvider(U),U;function B(f,I,$){var u=Y.get(f),l=!1;if(P(u)){if(!$)return;u=new J,Y.set(f,u),l=!0}var i=u.get(I);if(P(i)){if(!$)return;if(i=new J,u.set(I,i),!W.setProvider(f,I,U)){if(u.delete(I),l)Y.delete(f);throw new Error("Wrong provider for target.")}}return i}function h(f,I,$){var u=B(I,$,!1);if(P(u))return!1;return NE(u.has(f))}function s(f,I,$){var u=B(I,$,!1);if(P(u))return;return u.get(f)}function r(f,I,$,u){var l=B($,u,!0);l.set(f,I)}function M(f,I){var $=[],u=B(f,I,!1);if(P(u))return $;var l=u.keys(),i=$E(l),Q_=0;while(!0){var PE=hE(i);if(!PE)return $.length=Q_,$;var FC=KE(PE);try{$[Q_]=FC}catch(QC){try{OE(i)}finally{throw QC}}Q_++}}function G(f,I,$){var u=B(I,$,!1);if(P(u))return!1;if(!u.delete(f))return!1;if(u.size===0){var l=Y.get(I);if(!P(l)){if(l.delete($),l.size===0)Y.delete(l)}}return!0}}function LC(W){var{defineMetadata:Y,hasOwnMetadata:U,getOwnMetadata:B,getOwnMetadataKeys:h,deleteMetadata:s}=W,r=new x,M={isProviderFor:function(G,f){var I=r.get(G);if(!P(I)&&I.has(f))return!0;if(h(G,f).length){if(P(I))I=new X,r.set(G,I);return I.add(f),!0}return!1},OrdinaryDefineOwnMetadata:Y,OrdinaryHasOwnMetadata:U,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:h,OrdinaryDeleteMetadata:s};return M}function CT(W,Y,U){var B=k.getProvider(W,Y);if(!P(B))return B;if(U){if(k.setProvider(W,Y,m))return m;throw new Error("Illegal state.")}return}function WC(){var W={},Y=[],U=function(){function M(G,f,I){this._index=0,this._keys=G,this._values=f,this._selector=I}return M.prototype["@@iterator"]=function(){return this},M.prototype[Q]=function(){return this},M.prototype.next=function(){var G=this._index;if(G>=0&&G<this._keys.length){var f=this._selector(this._keys[G],this._values[G]);if(G+1>=this._keys.length)this._index=-1,this._keys=Y,this._values=Y;else this._index++;return{value:f,done:!1}}return{value:void 0,done:!0}},M.prototype.throw=function(G){if(this._index>=0)this._index=-1,this._keys=Y,this._values=Y;throw G},M.prototype.return=function(G){if(this._index>=0)this._index=-1,this._keys=Y,this._values=Y;return{value:G,done:!0}},M}(),B=function(){function M(){this._keys=[],this._values=[],this._cacheKey=W,this._cacheIndex=-2}return Object.defineProperty(M.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),M.prototype.has=function(G){return this._find(G,!1)>=0},M.prototype.get=function(G){var f=this._find(G,!1);return f>=0?this._values[f]:void 0},M.prototype.set=function(G,f){var I=this._find(G,!0);return this._values[I]=f,this},M.prototype.delete=function(G){var f=this._find(G,!1);if(f>=0){var I=this._keys.length;for(var $=f+1;$<I;$++)this._keys[$-1]=this._keys[$],this._values[$-1]=this._values[$];if(this._keys.length--,this._values.length--,lT(G,this._cacheKey))this._cacheKey=W,this._cacheIndex=-2;return!0}return!1},M.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=W,this._cacheIndex=-2},M.prototype.keys=function(){return new U(this._keys,this._values,h)},M.prototype.values=function(){return new U(this._keys,this._values,s)},M.prototype.entries=function(){return new U(this._keys,this._values,r)},M.prototype["@@iterator"]=function(){return this.entries()},M.prototype[Q]=function(){return this.entries()},M.prototype._find=function(G,f){if(!lT(this._cacheKey,G)){this._cacheIndex=-1;for(var I=0;I<this._keys.length;I++)if(lT(this._keys[I],G)){this._cacheIndex=I;break}}if(this._cacheIndex<0&&f)this._cacheIndex=this._keys.length,this._keys.push(G),this._values.push(void 0);return this._cacheIndex},M}();return B;function h(M,G){return M}function s(M,G){return G}function r(M,G){return[M,G]}}function YC(){var W=function(){function Y(){this._map=new J}return Object.defineProperty(Y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Y.prototype.has=function(U){return this._map.has(U)},Y.prototype.add=function(U){return this._map.set(U,U),this},Y.prototype.delete=function(U){return this._map.delete(U)},Y.prototype.clear=function(){this._map.clear()},Y.prototype.keys=function(){return this._map.keys()},Y.prototype.values=function(){return this._map.keys()},Y.prototype.entries=function(){return this._map.entries()},Y.prototype["@@iterator"]=function(){return this.keys()},Y.prototype[Q]=function(){return this.keys()},Y}();return W}function ZC(){var W=16,Y=q.create(),U=B();return function(){function G(){this._key=B()}return G.prototype.has=function(f){var I=h(f,!1);return I!==void 0?q.has(I,this._key):!1},G.prototype.get=function(f){var I=h(f,!1);return I!==void 0?q.get(I,this._key):void 0},G.prototype.set=function(f,I){var $=h(f,!0);return $[this._key]=I,this},G.prototype.delete=function(f){var I=h(f,!1);return I!==void 0?delete I[this._key]:!1},G.prototype.clear=function(){this._key=B()},G}();function B(){var G;do G="@@WeakMap@@"+M();while(q.has(Y,G));return Y[G]=!0,G}function h(G,f){if(!A.call(G,U)){if(!f)return;Object.defineProperty(G,U,{value:q.create()})}return G[U]}function s(G,f){for(var I=0;I<f;++I)G[I]=Math.random()*255|0;return G}function r(G){if(typeof Uint8Array==="function"){var f=new Uint8Array(G);if(typeof crypto!=="undefined")crypto.getRandomValues(f);else if(typeof msCrypto!=="undefined")msCrypto.getRandomValues(f);else s(f,G);return f}return s(new Array(G),G)}function M(){var G=r(W);G[6]=G[6]&79|64,G[8]=G[8]&191|128;var f="";for(var I=0;I<W;++I){var $=G[I];if(I===4||I===6||I===8)f+="-";if($<16)f+="0";f+=$.toString(16).toLowerCase()}return f}}function dT(W){return W.__=void 0,delete W.__,W}})})(cE||(cE={}))});var b_=c((wL,vE)=>{vE.exports=TypeError});var UT=c((GL,TA)=>{var AE=typeof Map==="function"&&Map.prototype,iT=Object.getOwnPropertyDescriptor&&AE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,$T=AE&&iT&&typeof iT.get==="function"?iT.get:null,bE=AE&&Map.prototype.forEach,CE=typeof Set==="function"&&Set.prototype,oT=Object.getOwnPropertyDescriptor&&CE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,KT=CE&&oT&&typeof oT.get==="function"?oT.get:null,mE=CE&&Set.prototype.forEach,tC=typeof WeakMap==="function"&&WeakMap.prototype,FT=tC?WeakMap.prototype.has:null,eC=typeof WeakSet==="function"&&WeakSet.prototype,QT=eC?WeakSet.prototype.has:null,aC=typeof WeakRef==="function"&&WeakRef.prototype,ME=aC?WeakRef.prototype.deref:null,_1=Boolean.prototype.valueOf,T1=Object.prototype.toString,E1=Function.prototype.toString,A1=String.prototype.match,RE=String.prototype.slice,K_=String.prototype.replace,C1=String.prototype.toUpperCase,uE=String.prototype.toLowerCase,iE=RegExp.prototype.test,gE=Array.prototype.concat,N_=Array.prototype.join,R1=Array.prototype.slice,jE=Math.floor,eT=typeof BigInt==="function"?BigInt.prototype.valueOf:null,rT=Object.getOwnPropertySymbols,aT=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null,r_=typeof Symbol==="function"&&typeof Symbol.iterator==="object",C_=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===r_?"object":"symbol")?Symbol.toStringTag:null,oE=Object.prototype.propertyIsEnumerable,yE=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(T){return T.__proto__}:null);function lE(T,_){if(T===1/0||T===-1/0||T!==T||T&&T>-1000&&T<1000||iE.call(/e/,_))return _;var E=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof T==="number"){var A=T<0?-jE(-T):jE(T);if(A!==T){var C=String(A),L=RE.call(_,C.length+1);return K_.call(C,E,"$&_")+"."+K_.call(K_.call(L,/([0-9]{3})/g,"$&_"),/_$/,"")}}return K_.call(_,E,"$&_")}var _E=(()=>({})),nE=_E.custom,dE=eE(nE)?nE:null,rE={__proto__:null,double:'"',single:"'"},L1={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};TA.exports=function T(_,E,A,C){var L=E||{};if($_(L,"quoteStyle")&&!$_(rE,L.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($_(L,"maxStringLength")&&(typeof L.maxStringLength==="number"?L.maxStringLength<0&&L.maxStringLength!==1/0:L.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Q=$_(L,"customInspect")?L.customInspect:!0;if(typeof Q!=="boolean"&&Q!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($_(L,"indent")&&L.indent!==null&&L.indent!=="\t"&&!(parseInt(L.indent,10)===L.indent&&L.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($_(L,"numericSeparator")&&typeof L.numericSeparator!=="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var H=L.numericSeparator;if(typeof _==="undefined")return"undefined";if(_===null)return"null";if(typeof _==="boolean")return _?"true":"false";if(typeof _==="string")return _A(_,L);if(typeof _==="number"){if(_===0)return 1/0/_>0?"0":"-0";var Z=String(_);return H?lE(_,Z):Z}if(typeof _==="bigint"){var z=String(_)+"n";return H?lE(_,z):z}var q=typeof L.depth==="undefined"?5:L.depth;if(typeof A==="undefined")A=0;if(A>=q&&q>0&&typeof _==="object")return TE(_)?"[Array]":"[Object]";var V=N1(L,A);if(typeof C==="undefined")C=[];else if(aE(C,_)>=0)return"[Circular]";function J(__,e,o){if(e)C=R1.call(C),C.push(e);if(o){var F_={depth:L.depth};if($_(L,"quoteStyle"))F_.quoteStyle=L.quoteStyle;return T(__,F_,A+1,C)}return T(__,L,A+1,C)}if(typeof _==="function"&&!pE(_)){var X=J1(_),x=xT(_,J);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(x.length>0?" { "+N_.call(x,", ")+" }":"")}if(eE(_)){var w=r_?K_.call(String(_),/^(Symbol\(.*\))_[^)]*$/,"$1"):aT.call(_);return typeof _==="object"&&!r_?ZT(w):w}if(w1(_)){var k="<"+uE.call(String(_.nodeName)),m=_.attributes||[];for(var v=0;v<m.length;v++)k+=" "+m[v].name+"="+tE(W1(m[v].value),"double",L);if(k+=">",_.childNodes&&_.childNodes.length)k+="...";return k+="</"+uE.call(String(_.nodeName))+">",k}if(TE(_)){if(_.length===0)return"[]";var D=xT(_,J);if(V&&!V1(D))return"["+EE(D,V)+"]";return"[ "+N_.call(D,", ")+" ]"}if(Z1(_)){var F=xT(_,J);if(!("cause"in Error.prototype)&&"cause"in _&&!oE.call(_,"cause"))return"{ ["+String(_)+"] "+N_.call(gE.call("[cause]: "+J(_.cause),F),", ")+" }";if(F.length===0)return"["+String(_)+"]";return"{ ["+String(_)+"] "+N_.call(F,", ")+" }"}if(typeof _==="object"&&Q){if(dE&&typeof _[dE]==="function"&&_E)return _E(_,{depth:q-A});else if(Q!=="symbol"&&typeof _.inspect==="function")return _.inspect()}if(D1(_)){var b=[];if(bE)bE.call(_,function(__,e){b.push(J(e,_,!0)+" => "+J(__,_))});return sE("Map",$T.call(_),b,V)}if(z1(_)){var S=[];if(mE)mE.call(_,function(__){S.push(J(__,_))});return sE("Set",KT.call(_),S,V)}if(q1(_))return tT("WeakMap");if(S1(_))return tT("WeakSet");if(B1(_))return tT("WeakRef");if(Q1(_))return ZT(J(Number(_)));if(H1(_))return ZT(J(eT.call(_)));if(U1(_))return ZT(_1.call(_));if(F1(_))return ZT(J(String(_)));if(typeof window!=="undefined"&&_===window)return"{ [object Window] }";if(typeof globalThis!=="undefined"&&_===globalThis||typeof global!=="undefined"&&_===global)return"{ [object globalThis] }";if(!Y1(_)&&!pE(_)){var K=xT(_,J),O=yE?yE(_)===Object.prototype:_ instanceof Object||_.constructor===Object,R=_ instanceof Object?"":"null prototype",N=!O&&C_&&Object(_)===_&&C_ in _?RE.call(h_(_),8,-1):R?"Object":"",d=O||typeof _.constructor!=="function"?"":_.constructor.name?_.constructor.name+" ":"",A_=d+(N||R?"["+N_.call(gE.call([],N||[],R||[]),": ")+"] ":"");if(K.length===0)return A_+"{}";if(V)return A_+"{"+EE(K,V)+"}";return A_+"{ "+N_.call(K,", ")+" }"}return String(_)};function tE(T,_,E){var A=E.quoteStyle||_,C=rE[A];return C+T+C}function W1(T){return K_.call(String(T),/"/g,"&quot;")}function TE(T){return h_(T)==="[object Array]"&&(!C_||!(typeof T==="object"&&(C_ in T)))}function Y1(T){return h_(T)==="[object Date]"&&(!C_||!(typeof T==="object"&&(C_ in T)))}function pE(T){return h_(T)==="[object RegExp]"&&(!C_||!(typeof T==="object"&&(C_ in T)))}function Z1(T){return h_(T)==="[object Error]"&&(!C_||!(typeof T==="object"&&(C_ in T)))}function F1(T){return h_(T)==="[object String]"&&(!C_||!(typeof T==="object"&&(C_ in T)))}function Q1(T){return h_(T)==="[object Number]"&&(!C_||!(typeof T==="object"&&(C_ in T)))}function U1(T){return h_(T)==="[object Boolean]"&&(!C_||!(typeof T==="object"&&(C_ in T)))}function eE(T){if(r_)return T&&typeof T==="object"&&T instanceof Symbol;if(typeof T==="symbol")return!0;if(!T||typeof T!=="object"||!aT)return!1;try{return aT.call(T),!0}catch(_){}return!1}function H1(T){if(!T||typeof T!=="object"||!eT)return!1;try{return eT.call(T),!0}catch(_){}return!1}var X1=Object.prototype.hasOwnProperty||function(T){return T in this};function $_(T,_){return X1.call(T,_)}function h_(T){return T1.call(T)}function J1(T){if(T.name)return T.name;var _=A1.call(E1.call(T),/^function\s*([\w$]+)/);if(_)return _[1];return null}function aE(T,_){if(T.indexOf)return T.indexOf(_);for(var E=0,A=T.length;E<A;E++)if(T[E]===_)return E;return-1}function D1(T){if(!$T||!T||typeof T!=="object")return!1;try{$T.call(T);try{KT.call(T)}catch(_){return!0}return T instanceof Map}catch(_){}return!1}function q1(T){if(!FT||!T||typeof T!=="object")return!1;try{FT.call(T,FT);try{QT.call(T,QT)}catch(_){return!0}return T instanceof WeakMap}catch(_){}return!1}function B1(T){if(!ME||!T||typeof T!=="object")return!1;try{return ME.call(T),!0}catch(_){}return!1}function z1(T){if(!KT||!T||typeof T!=="object")return!1;try{KT.call(T);try{$T.call(T)}catch(_){return!0}return T instanceof Set}catch(_){}return!1}function S1(T){if(!QT||!T||typeof T!=="object")return!1;try{QT.call(T,QT);try{FT.call(T,FT)}catch(_){return!0}return T instanceof WeakSet}catch(_){}return!1}function w1(T){if(!T||typeof T!=="object")return!1;if(typeof HTMLElement!=="undefined"&&T instanceof HTMLElement)return!0;return typeof T.nodeName==="string"&&typeof T.getAttribute==="function"}function _A(T,_){if(T.length>_.maxStringLength){var E=T.length-_.maxStringLength,A="... "+E+" more character"+(E>1?"s":"");return _A(RE.call(T,0,_.maxStringLength),_)+A}var C=L1[_.quoteStyle||"single"];C.lastIndex=0;var L=K_.call(K_.call(T,C,"\\$1"),/[\x00-\x1f]/g,G1);return tE(L,"single",_)}function G1(T){var _=T.charCodeAt(0),E={8:"b",9:"t",10:"n",12:"f",13:"r"}[_];if(E)return"\\"+E;return"\\x"+(_<16?"0":"")+C1.call(_.toString(16))}function ZT(T){return"Object("+T+")"}function tT(T){return T+" { ? }"}function sE(T,_,E,A){var C=A?EE(E,A):N_.call(E,", ");return T+" ("+_+") {"+C+"}"}function V1(T){for(var _=0;_<T.length;_++)if(aE(T[_],`
15
+ `)>=0)return!1;return!0}function N1(T,_){var E;if(T.indent==="\t")E="\t";else if(typeof T.indent==="number"&&T.indent>0)E=N_.call(Array(T.indent+1)," ");else return null;return{base:E,prev:N_.call(Array(_+1),E)}}function EE(T,_){if(T.length===0)return"";var E=`
16
+ `+_.prev+_.base;return E+N_.call(T,","+E)+`
17
+ `+_.prev}function xT(T,_){var E=TE(T),A=[];if(E){A.length=T.length;for(var C=0;C<T.length;C++)A[C]=$_(T,C)?_(T[C],T):""}var L=typeof rT==="function"?rT(T):[],Q;if(r_){Q={};for(var H=0;H<L.length;H++)Q["$"+L[H]]=L[H]}for(var Z in T){if(!$_(T,Z))continue;if(E&&String(Number(Z))===Z&&Z<T.length)continue;if(r_&&Q["$"+Z]instanceof Symbol)continue;else if(iE.call(/[^\w$]/,Z))A.push(_(Z,T)+": "+_(T[Z],T));else A.push(Z+": "+_(T[Z],T))}if(typeof rT==="function"){for(var z=0;z<L.length;z++)if(oE.call(T,L[z]))A.push("["+_(L[z])+"]: "+_(T[L[z]],T))}return A}});var AA=c((VL,EA)=>{var f1=UT(),I1=b_(),hT=function(T,_,E){var A=T,C;for(;(C=A.next)!=null;A=C)if(C.key===_){if(A.next=C.next,!E)C.next=T.next,T.next=C;return C}},x1=function(T,_){if(!T)return;var E=hT(T,_);return E&&E.value},$1=function(T,_,E){var A=hT(T,_);if(A)A.value=E;else T.next={key:_,next:T.next,value:E}},K1=function(T,_){if(!T)return!1;return!!hT(T,_)},h1=function(T,_){if(T)return hT(T,_,!0)};EA.exports=function T(){var _,E={assert:function(A){if(!E.has(A))throw new I1("Side channel does not contain "+f1(A))},delete:function(A){var C=_&&_.next,L=h1(_,A);if(L&&C&&C===L)_=void 0;return!!L},get:function(A){return x1(_,A)},has:function(A){return K1(_,A)},set:function(A,C){if(!_)_={next:void 0};$1(_,A,C)}};return E}});var LE=c((NL,CA)=>{CA.exports=Object});var LA=c((fL,RA)=>{RA.exports=Error});var YA=c((IL,WA)=>{WA.exports=EvalError});var FA=c((xL,ZA)=>{ZA.exports=RangeError});var UA=c(($L,QA)=>{QA.exports=ReferenceError});var XA=c((KL,HA)=>{HA.exports=SyntaxError});var DA=c((hL,JA)=>{JA.exports=URIError});var BA=c((OL,qA)=>{qA.exports=Math.abs});var SA=c((PL,zA)=>{zA.exports=Math.floor});var GA=c((cL,wA)=>{wA.exports=Math.max});var NA=c((kL,VA)=>{VA.exports=Math.min});var IA=c((vL,fA)=>{fA.exports=Math.pow});var $A=c((bL,xA)=>{xA.exports=Math.round});var hA=c((mL,KA)=>{KA.exports=Number.isNaN||function T(_){return _!==_}});var PA=c((ML,OA)=>{var O1=hA();OA.exports=function T(_){if(O1(_)||_===0)return _;return _<0?-1:1}});var kA=c((uL,cA)=>{cA.exports=Object.getOwnPropertyDescriptor});var WE=c((gL,vA)=>{var OT=kA();if(OT)try{OT([],"length")}catch(T){OT=null}vA.exports=OT});var mA=c((jL,bA)=>{var PT=Object.defineProperty||!1;if(PT)try{PT({},"a",{value:1})}catch(T){PT=!1}bA.exports=PT});var uA=c((yL,MA)=>{MA.exports=function T(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var _={},E=Symbol("test"),A=Object(E);if(typeof E==="string")return!1;if(Object.prototype.toString.call(E)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(A)!=="[object Symbol]")return!1;var C=42;_[E]=C;for(var L in _)return!1;if(typeof Object.keys==="function"&&Object.keys(_).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(_).length!==0)return!1;var Q=Object.getOwnPropertySymbols(_);if(Q.length!==1||Q[0]!==E)return!1;if(!Object.prototype.propertyIsEnumerable.call(_,E))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var H=Object.getOwnPropertyDescriptor(_,E);if(H.value!==C||H.enumerable!==!0)return!1}return!0}});var yA=c((lL,jA)=>{var gA=typeof Symbol!=="undefined"&&Symbol,P1=uA();jA.exports=function T(){if(typeof gA!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof gA("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return P1()}});var YE=c((nL,lA)=>{lA.exports=typeof Reflect!=="undefined"&&Reflect.getPrototypeOf||null});var ZE=c((dL,nA)=>{var c1=LE();nA.exports=c1.getPrototypeOf||null});var sA=c((pL,pA)=>{var k1="Function.prototype.bind called on incompatible ",v1=Object.prototype.toString,b1=Math.max,m1="[object Function]",dA=function T(_,E){var A=[];for(var C=0;C<_.length;C+=1)A[C]=_[C];for(var L=0;L<E.length;L+=1)A[L+_.length]=E[L];return A},M1=function T(_,E){var A=[];for(var C=E||0,L=0;C<_.length;C+=1,L+=1)A[L]=_[C];return A},u1=function(T,_){var E="";for(var A=0;A<T.length;A+=1)if(E+=T[A],A+1<T.length)E+=_;return E};pA.exports=function T(_){var E=this;if(typeof E!=="function"||v1.apply(E)!==m1)throw new TypeError(k1+E);var A=M1(arguments,1),C,L=function(){if(this instanceof C){var q=E.apply(this,dA(A,arguments));if(Object(q)===q)return q;return this}return E.apply(_,dA(A,arguments))},Q=b1(0,E.length-A.length),H=[];for(var Z=0;Z<Q;Z++)H[Z]="$"+Z;if(C=Function("binder","return function ("+u1(H,",")+"){ return binder.apply(this,arguments); }")(L),E.prototype){var z=function q(){};z.prototype=E.prototype,C.prototype=new z,z.prototype=null}return C}});var HT=c((sL,iA)=>{var g1=sA();iA.exports=Function.prototype.bind||g1});var cT=c((iL,oA)=>{oA.exports=Function.prototype.call});var FE=c((oL,rA)=>{rA.exports=Function.prototype.apply});var eA=c((rL,tA)=>{tA.exports=typeof Reflect!=="undefined"&&Reflect&&Reflect.apply});var _0=c((tL,aA)=>{var j1=HT(),y1=FE(),l1=cT(),n1=eA();aA.exports=n1||j1.call(l1,y1)});var QE=c((eL,T0)=>{var d1=HT(),p1=b_(),s1=cT(),i1=_0();T0.exports=function T(_){if(_.length<1||typeof _[0]!=="function")throw new p1("a function is required");return i1(d1,s1,_)}});var W0=c((aL,L0)=>{var o1=QE(),E0=WE(),C0;try{C0=[].__proto__===Array.prototype}catch(T){if(!T||typeof T!=="object"||!("code"in T)||T.code!=="ERR_PROTO_ACCESS")throw T}var UE=!!C0&&E0&&E0(Object.prototype,"__proto__"),R0=Object,A0=R0.getPrototypeOf;L0.exports=UE&&typeof UE.get==="function"?o1([UE.get]):typeof A0==="function"?function T(_){return A0(_==null?_:R0(_))}:!1});var U0=c((_W,Q0)=>{var Y0=YE(),Z0=ZE(),F0=W0();Q0.exports=Y0?function T(_){return Y0(_)}:Z0?function T(_){if(!_||typeof _!=="object"&&typeof _!=="function")throw new TypeError("getProto: not an object");return Z0(_)}:F0?function T(_){return F0(_)}:null});var X0=c((TW,H0)=>{var r1=Function.prototype.call,t1=Object.prototype.hasOwnProperty,e1=HT();H0.exports=e1.call(r1,t1)});var bT=c((EW,S0)=>{var g,a1=LE(),_4=LA(),T4=YA(),E4=FA(),A4=UA(),_T=XA(),a_=b_(),C4=DA(),R4=BA(),L4=SA(),W4=GA(),Y4=NA(),Z4=IA(),F4=$A(),Q4=PA(),B0=Function,HE=function(T){try{return B0('"use strict"; return ('+T+").constructor;")()}catch(_){}},XT=WE(),U4=mA(),XE=function(){throw new a_},H4=XT?function(){try{return arguments.callee,XE}catch(T){try{return XT(arguments,"callee").get}catch(_){return XE}}}():XE,t_=yA()(),a=U0(),X4=ZE(),J4=YE(),z0=FE(),JT=cT(),e_={},D4=typeof Uint8Array==="undefined"||!a?g:a(Uint8Array),m_={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?g:ArrayBuffer,"%ArrayIteratorPrototype%":t_&&a?a([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":e_,"%AsyncGenerator%":e_,"%AsyncGeneratorFunction%":e_,"%AsyncIteratorPrototype%":e_,"%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%":_4,"%eval%":eval,"%EvalError%":T4,"%Float32Array%":typeof Float32Array==="undefined"?g:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?g:FinalizationRegistry,"%Function%":B0,"%GeneratorFunction%":e_,"%Int8Array%":typeof Int8Array==="undefined"?g:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?g:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":t_&&a?a(a([][Symbol.iterator]())):g,"%JSON%":typeof JSON==="object"?JSON:g,"%Map%":typeof Map==="undefined"?g:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!t_||!a?g:a(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":a1,"%Object.getOwnPropertyDescriptor%":XT,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?g:Promise,"%Proxy%":typeof Proxy==="undefined"?g:Proxy,"%RangeError%":E4,"%ReferenceError%":A4,"%Reflect%":typeof Reflect==="undefined"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?g:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!t_||!a?g:a(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":t_&&a?a(""[Symbol.iterator]()):g,"%Symbol%":t_?Symbol:g,"%SyntaxError%":_T,"%ThrowTypeError%":H4,"%TypedArray%":D4,"%TypeError%":a_,"%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%":C4,"%WeakMap%":typeof WeakMap==="undefined"?g:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?g:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?g:WeakSet,"%Function.prototype.call%":JT,"%Function.prototype.apply%":z0,"%Object.defineProperty%":U4,"%Object.getPrototypeOf%":X4,"%Math.abs%":R4,"%Math.floor%":L4,"%Math.max%":W4,"%Math.min%":Y4,"%Math.pow%":Z4,"%Math.round%":F4,"%Math.sign%":Q4,"%Reflect.getPrototypeOf%":J4};if(a)try{null.error}catch(T){J0=a(a(T)),m_["%Error.prototype%"]=J0}var J0,q4=function T(_){var E;if(_==="%AsyncFunction%")E=HE("async function () {}");else if(_==="%GeneratorFunction%")E=HE("function* () {}");else if(_==="%AsyncGeneratorFunction%")E=HE("async function* () {}");else if(_==="%AsyncGenerator%"){var A=T("%AsyncGeneratorFunction%");if(A)E=A.prototype}else if(_==="%AsyncIteratorPrototype%"){var C=T("%AsyncGenerator%");if(C&&a)E=a(C.prototype)}return m_[_]=E,E},D0={__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"]},DT=HT(),kT=X0(),B4=DT.call(JT,Array.prototype.concat),z4=DT.call(z0,Array.prototype.splice),q0=DT.call(JT,String.prototype.replace),vT=DT.call(JT,String.prototype.slice),S4=DT.call(JT,RegExp.prototype.exec),w4=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G4=/\\(\\)?/g,V4=function T(_){var E=vT(_,0,1),A=vT(_,-1);if(E==="%"&&A!=="%")throw new _T("invalid intrinsic syntax, expected closing `%`");else if(A==="%"&&E!=="%")throw new _T("invalid intrinsic syntax, expected opening `%`");var C=[];return q0(_,w4,function(L,Q,H,Z){C[C.length]=H?q0(Z,G4,"$1"):Q||L}),C},N4=function T(_,E){var A=_,C;if(kT(D0,A))C=D0[A],A="%"+C[0]+"%";if(kT(m_,A)){var L=m_[A];if(L===e_)L=q4(A);if(typeof L==="undefined"&&!E)throw new a_("intrinsic "+_+" exists, but is not available. Please file an issue!");return{alias:C,name:A,value:L}}throw new _T("intrinsic "+_+" does not exist!")};S0.exports=function T(_,E){if(typeof _!=="string"||_.length===0)throw new a_("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof E!=="boolean")throw new a_('"allowMissing" argument must be a boolean');if(S4(/^%?[^%]*%?$/,_)===null)throw new _T("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var A=V4(_),C=A.length>0?A[0]:"",L=N4("%"+C+"%",E),Q=L.name,H=L.value,Z=!1,z=L.alias;if(z)C=z[0],z4(A,B4([0,1],z));for(var q=1,V=!0;q<A.length;q+=1){var J=A[q],X=vT(J,0,1),x=vT(J,-1);if((X==='"'||X==="'"||X==="`"||(x==='"'||x==="'"||x==="`"))&&X!==x)throw new _T("property names with quotes must have matching quotes");if(J==="constructor"||!V)Z=!0;if(C+="."+J,Q="%"+C+"%",kT(m_,Q))H=m_[Q];else if(H!=null){if(!(J in H)){if(!E)throw new a_("base intrinsic for "+_+" exists, but the property is not available.");return}if(XT&&q+1>=A.length){var w=XT(H,J);if(V=!!w,V&&"get"in w&&!("originalValue"in w.get))H=w.get;else H=H[J]}else V=kT(H,J),H=H[J];if(V&&!Z)m_[Q]=H}}return H}});var JE=c((AW,V0)=>{var w0=bT(),G0=QE(),f4=G0([w0("%String.prototype.indexOf%")]);V0.exports=function T(_,E){var A=w0(_,!!E);if(typeof A==="function"&&f4(_,".prototype.")>-1)return G0([A]);return A}});var DE=c((CW,f0)=>{var I4=bT(),qT=JE(),x4=UT(),$4=b_(),N0=I4("%Map%",!0),K4=qT("Map.prototype.get",!0),h4=qT("Map.prototype.set",!0),O4=qT("Map.prototype.has",!0),P4=qT("Map.prototype.delete",!0),c4=qT("Map.prototype.size",!0);f0.exports=!!N0&&function T(){var _,E={assert:function(A){if(!E.has(A))throw new $4("Side channel does not contain "+x4(A))},delete:function(A){if(_){var C=P4(_,A);if(c4(_)===0)_=void 0;return C}return!1},get:function(A){if(_)return K4(_,A)},has:function(A){if(_)return O4(_,A);return!1},set:function(A,C){if(!_)_=new N0;h4(_,A,C)}};return E}});var x0=c((RW,I0)=>{var k4=bT(),MT=JE(),v4=UT(),mT=DE(),b4=b_(),TT=k4("%WeakMap%",!0),m4=MT("WeakMap.prototype.get",!0),M4=MT("WeakMap.prototype.set",!0),u4=MT("WeakMap.prototype.has",!0),g4=MT("WeakMap.prototype.delete",!0);I0.exports=TT?function T(){var _,E,A={assert:function(C){if(!A.has(C))throw new b4("Side channel does not contain "+v4(C))},delete:function(C){if(TT&&C&&(typeof C==="object"||typeof C==="function")){if(_)return g4(_,C)}else if(mT){if(E)return E.delete(C)}return!1},get:function(C){if(TT&&C&&(typeof C==="object"||typeof C==="function")){if(_)return m4(_,C)}return E&&E.get(C)},has:function(C){if(TT&&C&&(typeof C==="object"||typeof C==="function")){if(_)return u4(_,C)}return!!E&&E.has(C)},set:function(C,L){if(TT&&C&&(typeof C==="object"||typeof C==="function")){if(!_)_=new TT;M4(_,C,L)}else if(mT){if(!E)E=mT();E.set(C,L)}}};return A}:mT});var K0=c((LW,$0)=>{var j4=b_(),y4=UT(),l4=AA(),n4=DE(),d4=x0(),p4=d4||n4||l4;$0.exports=function T(){var _,E={assert:function(A){if(!E.has(A))throw new j4("Side channel does not contain "+y4(A))},delete:function(A){return!!_&&_.delete(A)},get:function(A){return _&&_.get(A)},has:function(A){return!!_&&_.has(A)},set:function(A,C){if(!_)_=p4();_.set(A,C)}};return E}});var uT=c((WW,h0)=>{var s4=String.prototype.replace,i4=/%20/g,qE={RFC1738:"RFC1738",RFC3986:"RFC3986"};h0.exports={default:qE.RFC3986,formatters:{RFC1738:function(T){return s4.call(T,i4,"+")},RFC3986:function(T){return String(T)}},RFC1738:qE.RFC1738,RFC3986:qE.RFC3986}});var SE=c((YW,P0)=>{var o4=uT(),BE=Object.prototype.hasOwnProperty,M_=Array.isArray,f_=function(){var T=[];for(var _=0;_<256;++_)T.push("%"+((_<16?"0":"")+_.toString(16)).toUpperCase());return T}(),r4=function T(_){while(_.length>1){var E=_.pop(),A=E.obj[E.prop];if(M_(A)){var C=[];for(var L=0;L<A.length;++L)if(typeof A[L]!=="undefined")C.push(A[L]);E.obj[E.prop]=C}}},O0=function T(_,E){var A=E&&E.plainObjects?{__proto__:null}:{};for(var C=0;C<_.length;++C)if(typeof _[C]!=="undefined")A[C]=_[C];return A},t4=function T(_,E,A){if(!E)return _;if(typeof E!=="object"&&typeof E!=="function"){if(M_(_))_.push(E);else if(_&&typeof _==="object"){if(A&&(A.plainObjects||A.allowPrototypes)||!BE.call(Object.prototype,E))_[E]=!0}else return[_,E];return _}if(!_||typeof _!=="object")return[_].concat(E);var C=_;if(M_(_)&&!M_(E))C=O0(_,A);if(M_(_)&&M_(E))return E.forEach(function(L,Q){if(BE.call(_,Q)){var H=_[Q];if(H&&typeof H==="object"&&L&&typeof L==="object")_[Q]=T(H,L,A);else _.push(L)}else _[Q]=L}),_;return Object.keys(E).reduce(function(L,Q){var H=E[Q];if(BE.call(L,Q))L[Q]=T(L[Q],H,A);else L[Q]=H;return L},C)},e4=function T(_,E){return Object.keys(E).reduce(function(A,C){return A[C]=E[C],A},_)},a4=function(T,_,E){var A=T.replace(/\+/g," ");if(E==="iso-8859-1")return A.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(A)}catch(C){return A}},zE=1024,_R=function T(_,E,A,C,L){if(_.length===0)return _;var Q=_;if(typeof _==="symbol")Q=Symbol.prototype.toString.call(_);else if(typeof _!=="string")Q=String(_);if(A==="iso-8859-1")return escape(Q).replace(/%u[0-9a-f]{4}/gi,function(X){return"%26%23"+parseInt(X.slice(2),16)+"%3B"});var H="";for(var Z=0;Z<Q.length;Z+=zE){var z=Q.length>=zE?Q.slice(Z,Z+zE):Q,q=[];for(var V=0;V<z.length;++V){var J=z.charCodeAt(V);if(J===45||J===46||J===95||J===126||J>=48&&J<=57||J>=65&&J<=90||J>=97&&J<=122||L===o4.RFC1738&&(J===40||J===41)){q[q.length]=z.charAt(V);continue}if(J<128){q[q.length]=f_[J];continue}if(J<2048){q[q.length]=f_[192|J>>6]+f_[128|J&63];continue}if(J<55296||J>=57344){q[q.length]=f_[224|J>>12]+f_[128|J>>6&63]+f_[128|J&63];continue}V+=1,J=65536+((J&1023)<<10|z.charCodeAt(V)&1023),q[q.length]=f_[240|J>>18]+f_[128|J>>12&63]+f_[128|J>>6&63]+f_[128|J&63]}H+=q.join("")}return H},TR=function T(_){var E=[{obj:{o:_},prop:"o"}],A=[];for(var C=0;C<E.length;++C){var L=E[C],Q=L.obj[L.prop],H=Object.keys(Q);for(var Z=0;Z<H.length;++Z){var z=H[Z],q=Q[z];if(typeof q==="object"&&q!==null&&A.indexOf(q)===-1)E.push({obj:Q,prop:z}),A.push(q)}}return r4(E),_},ER=function T(_){return Object.prototype.toString.call(_)==="[object RegExp]"},AR=function T(_){if(!_||typeof _!=="object")return!1;return!!(_.constructor&&_.constructor.isBuffer&&_.constructor.isBuffer(_))},CR=function T(_,E){return[].concat(_,E)},RR=function T(_,E){if(M_(_)){var A=[];for(var C=0;C<_.length;C+=1)A.push(E(_[C]));return A}return E(_)};P0.exports={arrayToObject:O0,assign:e4,combine:CR,compact:TR,decode:a4,encode:_R,isBuffer:AR,isRegExp:ER,maybeMap:RR,merge:t4}});var M0=c((ZW,m0)=>{var k0=K0(),gT=SE(),BT=uT(),LR=Object.prototype.hasOwnProperty,v0={brackets:function T(_){return _+"[]"},comma:"comma",indices:function T(_,E){return _+"["+E+"]"},repeat:function T(_){return _}},I_=Array.isArray,WR=Array.prototype.push,b0=function(T,_){WR.apply(T,I_(_)?_:[_])},YR=Date.prototype.toISOString,c0=BT.default,t={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:gT.encode,encodeValuesOnly:!1,filter:void 0,format:c0,formatter:BT.formatters[c0],indices:!1,serializeDate:function T(_){return YR.call(_)},skipNulls:!1,strictNullHandling:!1},ZR=function T(_){return typeof _==="string"||typeof _==="number"||typeof _==="boolean"||typeof _==="symbol"||typeof _==="bigint"},wE={},FR=function T(_,E,A,C,L,Q,H,Z,z,q,V,J,X,x,w,k,m,v){var D=_,F=v,b=0,S=!1;while((F=F.get(wE))!==void 0&&!S){var K=F.get(_);if(b+=1,typeof K!=="undefined")if(K===b)throw new RangeError("Cyclic object value");else S=!0;if(typeof F.get(wE)==="undefined")b=0}if(typeof q==="function")D=q(E,D);else if(D instanceof Date)D=X(D);else if(A==="comma"&&I_(D))D=gT.maybeMap(D,function(l_){if(l_ instanceof Date)return X(l_);return l_});if(D===null){if(Q)return z&&!k?z(E,t.encoder,m,"key",x):E;D=""}if(ZR(D)||gT.isBuffer(D)){if(z){var O=k?E:z(E,t.encoder,m,"key",x);return[w(O)+"="+w(z(D,t.encoder,m,"value",x))]}return[w(E)+"="+w(String(D))]}var R=[];if(typeof D==="undefined")return R;var N;if(A==="comma"&&I_(D)){if(k&&z)D=gT.maybeMap(D,z);N=[{value:D.length>0?D.join(",")||null:void 0}]}else if(I_(q))N=q;else{var d=Object.keys(D);N=V?d.sort(V):d}var A_=Z?String(E).replace(/\./g,"%2E"):String(E),__=C&&I_(D)&&D.length===1?A_+"[]":A_;if(L&&I_(D)&&D.length===0)return __+"[]";for(var e=0;e<N.length;++e){var o=N[e],F_=typeof o==="object"&&o&&typeof o.value!=="undefined"?o.value:D[o];if(H&&F_===null)continue;var H_=J&&Z?String(o).replace(/\./g,"%2E"):String(o),y_=I_(D)?typeof A==="function"?A(__,H_):__:__+(J?"."+H_:"["+H_+"]");v.set(_,b);var AT=k0();AT.set(wE,v),b0(R,T(F_,y_,A,C,L,Q,H,Z,A==="comma"&&k&&I_(D)?null:z,q,V,J,X,x,w,k,m,AT))}return R},QR=function T(_){if(!_)return t;if(typeof _.allowEmptyArrays!=="undefined"&&typeof _.allowEmptyArrays!=="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.encodeDotInKeys!=="undefined"&&typeof _.encodeDotInKeys!=="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(_.encoder!==null&&typeof _.encoder!=="undefined"&&typeof _.encoder!=="function")throw new TypeError("Encoder has to be a function.");var E=_.charset||t.charset;if(typeof _.charset!=="undefined"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var A=BT.default;if(typeof _.format!=="undefined"){if(!LR.call(BT.formatters,_.format))throw new TypeError("Unknown format option provided.");A=_.format}var C=BT.formatters[A],L=t.filter;if(typeof _.filter==="function"||I_(_.filter))L=_.filter;var Q;if(_.arrayFormat in v0)Q=_.arrayFormat;else if("indices"in _)Q=_.indices?"indices":"repeat";else Q=t.arrayFormat;if("commaRoundTrip"in _&&typeof _.commaRoundTrip!=="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var H=typeof _.allowDots==="undefined"?_.encodeDotInKeys===!0?!0:t.allowDots:!!_.allowDots;return{addQueryPrefix:typeof _.addQueryPrefix==="boolean"?_.addQueryPrefix:t.addQueryPrefix,allowDots:H,allowEmptyArrays:typeof _.allowEmptyArrays==="boolean"?!!_.allowEmptyArrays:t.allowEmptyArrays,arrayFormat:Q,charset:E,charsetSentinel:typeof _.charsetSentinel==="boolean"?_.charsetSentinel:t.charsetSentinel,commaRoundTrip:!!_.commaRoundTrip,delimiter:typeof _.delimiter==="undefined"?t.delimiter:_.delimiter,encode:typeof _.encode==="boolean"?_.encode:t.encode,encodeDotInKeys:typeof _.encodeDotInKeys==="boolean"?_.encodeDotInKeys:t.encodeDotInKeys,encoder:typeof _.encoder==="function"?_.encoder:t.encoder,encodeValuesOnly:typeof _.encodeValuesOnly==="boolean"?_.encodeValuesOnly:t.encodeValuesOnly,filter:L,format:A,formatter:C,serializeDate:typeof _.serializeDate==="function"?_.serializeDate:t.serializeDate,skipNulls:typeof _.skipNulls==="boolean"?_.skipNulls:t.skipNulls,sort:typeof _.sort==="function"?_.sort:null,strictNullHandling:typeof _.strictNullHandling==="boolean"?_.strictNullHandling:t.strictNullHandling}};m0.exports=function(T,_){var E=T,A=QR(_),C,L;if(typeof A.filter==="function")L=A.filter,E=L("",E);else if(I_(A.filter))L=A.filter,C=L;var Q=[];if(typeof E!=="object"||E===null)return"";var H=v0[A.arrayFormat],Z=H==="comma"&&A.commaRoundTrip;if(!C)C=Object.keys(E);if(A.sort)C.sort(A.sort);var z=k0();for(var q=0;q<C.length;++q){var V=C[q],J=E[V];if(A.skipNulls&&J===null)continue;b0(Q,FR(J,V,H,Z,A.allowEmptyArrays,A.strictNullHandling,A.skipNulls,A.encodeDotInKeys,A.encode?A.encoder:null,A.filter,A.sort,A.allowDots,A.serializeDate,A.format,A.formatter,A.encodeValuesOnly,A.charset,z))}var X=Q.join(A.delimiter),x=A.addQueryPrefix===!0?"?":"";if(A.charsetSentinel)if(A.charset==="iso-8859-1")x+="utf8=%26%2310003%3B&";else x+="utf8=%E2%9C%93&";return X.length>0?x+X:""}});var y0=c((FW,j0)=>{var u_=SE(),GE=Object.prototype.hasOwnProperty,u0=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:u_.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1000,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},UR=function(T){return T.replace(/&#(\d+);/g,function(_,E){return String.fromCharCode(parseInt(E,10))})},g0=function(T,_,E){if(T&&typeof T==="string"&&_.comma&&T.indexOf(",")>-1)return T.split(",");if(_.throwOnLimitExceeded&&E>=_.arrayLimit)throw new RangeError("Array limit exceeded. Only "+_.arrayLimit+" element"+(_.arrayLimit===1?"":"s")+" allowed in an array.");return T},HR="utf8=%26%2310003%3B",XR="utf8=%E2%9C%93",JR=function T(_,E){var A={__proto__:null},C=E.ignoreQueryPrefix?_.replace(/^\?/,""):_;C=C.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var L=E.parameterLimit===1/0?void 0:E.parameterLimit,Q=C.split(E.delimiter,E.throwOnLimitExceeded?L+1:L);if(E.throwOnLimitExceeded&&Q.length>L)throw new RangeError("Parameter limit exceeded. Only "+L+" parameter"+(L===1?"":"s")+" allowed.");var H=-1,Z,z=E.charset;if(E.charsetSentinel){for(Z=0;Z<Q.length;++Z)if(Q[Z].indexOf("utf8=")===0){if(Q[Z]===XR)z="utf-8";else if(Q[Z]===HR)z="iso-8859-1";H=Z,Z=Q.length}}for(Z=0;Z<Q.length;++Z){if(Z===H)continue;var q=Q[Z],V=q.indexOf("]="),J=V===-1?q.indexOf("="):V+1,X,x;if(J===-1)X=E.decoder(q,n.decoder,z,"key"),x=E.strictNullHandling?null:"";else X=E.decoder(q.slice(0,J),n.decoder,z,"key"),x=u_.maybeMap(g0(q.slice(J+1),E,u0(A[X])?A[X].length:0),function(k){return E.decoder(k,n.decoder,z,"value")});if(x&&E.interpretNumericEntities&&z==="iso-8859-1")x=UR(String(x));if(q.indexOf("[]=")>-1)x=u0(x)?[x]:x;var w=GE.call(A,X);if(w&&E.duplicates==="combine")A[X]=u_.combine(A[X],x);else if(!w||E.duplicates==="last")A[X]=x}return A},DR=function(T,_,E,A){var C=0;if(T.length>0&&T[T.length-1]==="[]"){var L=T.slice(0,-1).join("");C=Array.isArray(_)&&_[L]?_[L].length:0}var Q=A?_:g0(_,E,C);for(var H=T.length-1;H>=0;--H){var Z,z=T[H];if(z==="[]"&&E.parseArrays)Z=E.allowEmptyArrays&&(Q===""||E.strictNullHandling&&Q===null)?[]:u_.combine([],Q);else{Z=E.plainObjects?{__proto__:null}:{};var q=z.charAt(0)==="["&&z.charAt(z.length-1)==="]"?z.slice(1,-1):z,V=E.decodeDotInKeys?q.replace(/%2E/g,"."):q,J=parseInt(V,10);if(!E.parseArrays&&V==="")Z={0:Q};else if(!isNaN(J)&&z!==V&&String(J)===V&&J>=0&&(E.parseArrays&&J<=E.arrayLimit))Z=[],Z[J]=Q;else if(V!=="__proto__")Z[V]=Q}Q=Z}return Q},qR=function T(_,E,A,C){if(!_)return;var L=A.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,Q=/(\[[^[\]]*])/,H=/(\[[^[\]]*])/g,Z=A.depth>0&&Q.exec(L),z=Z?L.slice(0,Z.index):L,q=[];if(z){if(!A.plainObjects&&GE.call(Object.prototype,z)){if(!A.allowPrototypes)return}q.push(z)}var V=0;while(A.depth>0&&(Z=H.exec(L))!==null&&V<A.depth){if(V+=1,!A.plainObjects&&GE.call(Object.prototype,Z[1].slice(1,-1))){if(!A.allowPrototypes)return}q.push(Z[1])}if(Z){if(A.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+A.depth+" and strictDepth is true");q.push("["+L.slice(Z.index)+"]")}return DR(q,E,A,C)},BR=function T(_){if(!_)return n;if(typeof _.allowEmptyArrays!=="undefined"&&typeof _.allowEmptyArrays!=="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.decodeDotInKeys!=="undefined"&&typeof _.decodeDotInKeys!=="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(_.decoder!==null&&typeof _.decoder!=="undefined"&&typeof _.decoder!=="function")throw new TypeError("Decoder has to be a function.");if(typeof _.charset!=="undefined"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof _.throwOnLimitExceeded!=="undefined"&&typeof _.throwOnLimitExceeded!=="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var E=typeof _.charset==="undefined"?n.charset:_.charset,A=typeof _.duplicates==="undefined"?n.duplicates:_.duplicates;if(A!=="combine"&&A!=="first"&&A!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var C=typeof _.allowDots==="undefined"?_.decodeDotInKeys===!0?!0:n.allowDots:!!_.allowDots;return{allowDots:C,allowEmptyArrays:typeof _.allowEmptyArrays==="boolean"?!!_.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof _.allowPrototypes==="boolean"?_.allowPrototypes:n.allowPrototypes,allowSparse:typeof _.allowSparse==="boolean"?_.allowSparse:n.allowSparse,arrayLimit:typeof _.arrayLimit==="number"?_.arrayLimit:n.arrayLimit,charset:E,charsetSentinel:typeof _.charsetSentinel==="boolean"?_.charsetSentinel:n.charsetSentinel,comma:typeof _.comma==="boolean"?_.comma:n.comma,decodeDotInKeys:typeof _.decodeDotInKeys==="boolean"?_.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof _.decoder==="function"?_.decoder:n.decoder,delimiter:typeof _.delimiter==="string"||u_.isRegExp(_.delimiter)?_.delimiter:n.delimiter,depth:typeof _.depth==="number"||_.depth===!1?+_.depth:n.depth,duplicates:A,ignoreQueryPrefix:_.ignoreQueryPrefix===!0,interpretNumericEntities:typeof _.interpretNumericEntities==="boolean"?_.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof _.parameterLimit==="number"?_.parameterLimit:n.parameterLimit,parseArrays:_.parseArrays!==!1,plainObjects:typeof _.plainObjects==="boolean"?_.plainObjects:n.plainObjects,strictDepth:typeof _.strictDepth==="boolean"?!!_.strictDepth:n.strictDepth,strictNullHandling:typeof _.strictNullHandling==="boolean"?_.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof _.throwOnLimitExceeded==="boolean"?_.throwOnLimitExceeded:!1}};j0.exports=function(T,_){var E=BR(_);if(T===""||T===null||typeof T==="undefined")return E.plainObjects?{__proto__:null}:{};var A=typeof T==="string"?JR(T,E):T,C=E.plainObjects?{__proto__:null}:{},L=Object.keys(A);for(var Q=0;Q<L.length;++Q){var H=L[Q],Z=qR(H,A[H],E,typeof T==="string");C=u_.merge(C,Z,E)}if(E.allowSparse===!0)return C;return u_.compact(C)}});var n0=c((QW,l0)=>{var zR=M0(),SR=y0(),wR=uT();l0.exports={formats:wR,parse:SR,stringify:zR}});var E5=VT(NT(),1);var kE={};DC(kE,{zodSchemaKey:()=>fT,webSocketServerArgsKey:()=>q_,webSocketMessageArgsKey:()=>RT,webSocketKey:()=>D_,webSocketEventKey:()=>v_,webSocketEventArgumentsKey:()=>W_,webSocketConnectionArgsKey:()=>B_,webSocketCloseReasonArgsKey:()=>WT,webSocketCloseCodeArgsKey:()=>LT,routeModelArgsKey:()=>E_,responseHeadersArgsKey:()=>Y_,responseBodyArgsKey:()=>R_,requestHeadersArgsKey:()=>U_,requestHeaderArgsKey:()=>z_,requestBodyArgsKey:()=>S_,requestArgsKey:()=>G_,queryArgsKey:()=>YT,paramsArgsKey:()=>T_,paramArgsKey:()=>w_,moduleKey:()=>i_,middlewareKey:()=>k_,injectableKey:()=>c_,injectKey:()=>s_,httpServerArgsKey:()=>zC,guardKey:()=>P_,dispatcherKey:()=>O_,controllerKey:()=>J_,controllerHttpKey:()=>p_,contextArgsKey:()=>V_,containerKey:()=>BC,configKey:()=>sT,argumentsKey:()=>y});var y=Symbol("__bool:arguments__"),W_=Symbol("__bool:webSocketEventArguments__"),sT=Symbol("__bool:config__"),J_=Symbol("__bool:controller__"),O_=Symbol("__bool:dispatcher__"),P_=Symbol("__bool:guard__"),p_=Symbol("__bool:controller.http__"),s_=Symbol("__bool:inject__"),c_=Symbol("__bool:injectable__"),k_=Symbol("__bool:middleware__"),i_=Symbol("__bool:module__"),BC=Symbol("__bool:container__"),fT=Symbol("__bool:zodSchema__"),D_=Symbol("__bool:webSocket__"),v_=Symbol("__bool:webSocket:event__"),q_=Symbol("__bool:webSocketArguments:server__"),B_=Symbol("__bool:webSocketArguments:connection__"),RT=Symbol("__bool:webSocketArguments:message__"),LT=Symbol("__bool:webSocketArguments:closeCode__"),WT=Symbol("__bool:webSocketArguments:closeReason__"),zC=Symbol("__bool:httpArguments:server__"),U_=Symbol("__bool:httpArguments:requestHeaders__"),z_=Symbol("__bool:httpArguments:requestHeader__"),S_=Symbol("__bool:httpArguments:requestBody__"),T_=Symbol("__bool:httpArguments:params__"),w_=Symbol("__bool:httpArguments:param__"),YT=Symbol("__bool:httpArguments:query__"),G_=Symbol("__bool:httpArguments:request__"),Y_=Symbol("__bool:httpArguments:responseHeaders__"),V_=Symbol("__bool:httpArguments:context__"),E_=Symbol("__bool:httpArguments:routeModel__"),R_=Symbol("__bool:httpArguments:responseBody__");var SC=(T)=>(_,E,A)=>{if(!E)return;let C=Reflect.getOwnMetadata(y,_.constructor,E)||{};C[`argumentIndexes.${A}`]={index:A,type:U_,zodSchema:T},Reflect.defineMetadata(y,C,_.constructor,E)},wC=(T,_)=>(E,A,C)=>{if(!A)return;let L=Reflect.getOwnMetadata(y,E.constructor,A)||{};L[`argumentIndexes.${C}`]={index:C,type:z_,key:T,zodSchema:_},Reflect.defineMetadata(y,L,E.constructor,A)},GC=(T,_)=>(E,A,C)=>{if(!A)return;let L=Reflect.getOwnMetadata(y,E.constructor,A)||{};L[`argumentIndexes.${C}`]={index:C,type:S_,zodSchema:T,parser:_},Reflect.defineMetadata(y,L,E.constructor,A)},VC=(T)=>(_,E,A)=>{if(!E)return;let C=Reflect.getOwnMetadata(y,_.constructor,E)||{};C[`argumentIndexes.${A}`]={index:A,type:T_,zodSchema:T},Reflect.defineMetadata(y,C,_.constructor,E)},NC=(T,_)=>(E,A,C)=>{if(!A)return;let L=Reflect.getOwnMetadata(y,E.constructor,A)||{};L[`argumentIndexes.${C}`]={index:C,type:w_,key:T,zodSchema:_},Reflect.defineMetadata(y,L,E.constructor,A)},fC=(T)=>(_,E,A)=>{if(!E)return;let C=Reflect.getOwnMetadata(y,_.constructor,E)||{};C[`argumentIndexes.${A}`]={index:A,type:YT,zodSchema:T},Reflect.defineMetadata(y,C,_.constructor,E)},IC=(T)=>(_,E,A)=>{if(!E)return;let C=Reflect.getOwnMetadata(y,_.constructor,E)||{};C[`argumentIndexes.${A}`]={index:A,type:G_,zodSchema:T},Reflect.defineMetadata(y,C,_.constructor,E)},xC=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(y,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:Y_},Reflect.defineMetadata(y,A,T.constructor,_)},$C=(T)=>(_,E,A)=>{if(!E)return;let C=Reflect.getOwnMetadata(y,_.constructor,E)||{};C[`argumentIndexes.${A}`]={index:A,type:V_,key:T},Reflect.defineMetadata(y,C,_.constructor,E)},KC=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(y,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:E_},Reflect.defineMetadata(y,A,T.constructor,_)};var hC=(T)=>(_)=>{let E={prefix:!T?.startsWith("/")?`/${T||""}`:T,httpMetadata:[...Reflect.getOwnMetadata(p_,_)||[]]};Reflect.defineMetadata(J_,E,_)};var OC=()=>(T)=>{Reflect.defineMetadata(O_,void 0,T)};var PC=()=>(T)=>{if(!("enforce"in T.prototype)||typeof T.prototype.enforce!=="function")return;let _=void 0;Reflect.defineMetadata(P_,_,T)};var o_=(T,_)=>(E,A,C)=>{if(!(C?.value instanceof Function))throw Error(`${_} decorator only use for class method.`);let L=Reflect.getOwnMetadata(y,E.constructor,A)||{},Q=[...Reflect.getOwnMetadata(p_,E.constructor)||[],{path:!T.startsWith("/")?`/${T}`:T,httpMethod:_.toUpperCase(),methodName:A,descriptor:C,argumentsMetadata:L}];Reflect.defineMetadata(p_,Q,E.constructor)},cC=(T="/")=>o_(T,"Get"),kC=(T="/")=>o_(T,"Post"),vC=(T="/")=>o_(T,"Put"),bC=(T="/")=>o_(T,"Patch"),mC=(T="/")=>o_(T,"Delete"),MC=(T="/")=>o_(T,"Options");var uC=(T)=>{return(_,E,A)=>{let C=Reflect.getMetadata(s_,_)||[];C[A]=T,Reflect.defineMetadata(s_,C,_)}};var gC=()=>(T)=>Reflect.defineMetadata(c_,void 0,T);var jC=()=>(T)=>{Reflect.defineMetadata(k_,void 0,T)};var yC=(T)=>(_)=>{let{middlewares:E,guards:A,dispatchers:C,controllers:L,dependencies:Q,webSockets:H}=T||{};if(E){for(let Z=0;Z<E.length;Z++)if(!Reflect.getOwnMetadataKeys(E[Z]).includes(k_))throw Error(`${E[Z].name} is not a middleware.`)}if(A){for(let Z=0;Z<A.length;Z++)if(!Reflect.getOwnMetadataKeys(A[Z]).includes(P_))throw Error(`${A[Z].name} is not a guard.`)}if(C){for(let Z=0;Z<C.length;Z++)if(!Reflect.getOwnMetadataKeys(C[Z]).includes(O_))throw Error(`${C[Z].name} is not a dispatcher.`)}if(L){for(let Z=0;Z<L.length;Z++)if(!Reflect.getOwnMetadataKeys(L[Z]).includes(J_))throw Error(`${L[Z].name} is not a controller.`)}if(Q){for(let Z=0;Z<Q.length;Z++)if(!Reflect.getOwnMetadataKeys(Q[Z]).includes(c_))throw Error(`${Q[Z].name} is not an injectable.`)}if(H){for(let Z=0;Z<H.length;Z++)if(!Reflect.getOwnMetadataKeys(H[Z]).includes(D_))throw Error(`${H[Z].name} is not a websocket gateway.`)}Reflect.defineMetadata(i_,T,_)};var IT=Symbol("__bool:webSocket.upgrade__"),lC=(T,_,E)=>{let A=new URL(_.url);return T.upgrade(_,{data:{method:_.method.toUpperCase(),pathname:A.pathname,query:E}})},nC=(T)=>(_)=>{let{prefix:E}=T||{};_.prototype[IT]=lC;let A=Object.getOwnPropertyDescriptor(_.prototype,IT),C=!A?[]:[{path:"/",httpMethod:"GET",methodName:IT,descriptor:A,argumentsMetadata:{}},{path:"/",httpMethod:"POST",methodName:IT,descriptor:A,argumentsMetadata:{}}],L={prefix:!E?.startsWith("/")?`/${E||""}`:E,events:Reflect.getOwnMetadata(v_,_)||{},http:C};Reflect.defineMetadata(D_,L,_)};var dC=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(W_,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:B_},Reflect.defineMetadata(W_,A,T.constructor,_)},pC=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(W_,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:q_},Reflect.defineMetadata(W_,A,T.constructor,_)},sC=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(W_,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:LT},Reflect.defineMetadata(W_,A,T.constructor,_)},iC=()=>(T,_,E)=>{if(!_)return;let A=Reflect.getOwnMetadata(W_,T.constructor,_)||{};A[`argumentIndexes.${E}`]={index:E,type:WT},Reflect.defineMetadata(W_,A,T.constructor,_)};var oC=(T)=>(_,E,A)=>{if(!(A.value instanceof Function))throw Error("WebSocketEvent decorator only use for class's method.");let C=Reflect.getOwnMetadata(W_,_.constructor,E),L=Object.freeze({methodName:E,descriptor:A,arguments:C}),Q={...Reflect.getOwnMetadata(v_,_.constructor)||void 0,[T]:L};Reflect.defineMetadata(v_,L,_.constructor,E),Reflect.defineMetadata(v_,Q,_.constructor)};var rC=(T)=>{return(_,E,A)=>{if(!E)return;let C=Reflect.getOwnMetadata(fT,_.constructor,E)||{};C[`paramterIndexes.${A}`]={index:A,schema:T},Reflect.defineMetadata(fT,C,_.constructor,E)}};var dW=VT(NT(),1),t0=VT(n0(),1);var Z_;(function(T){T.year="year",T.month="month",T.day="day",T.hours="hours",T.minutes="minutes",T.seconds="seconds",T.miliseconds="miliseconds"})(Z_||(Z_={}));var d0=(T,_,E=Z_.day)=>{let A=T instanceof Date?T:new Date(T);switch(E){case Z_.year:A.setFullYear(A.getFullYear()+_);break;case Z_.month:A.setMonth(A.getMonth()+_);break;case Z_.day:A.setDate(A.getDate()+_);break;case Z_.hours:A.setHours(A.getHours()+_);break;case Z_.minutes:A.setMinutes(A.getMinutes()+_);break;case Z_.seconds:A.setSeconds(A.getSeconds()+_);break;case Z_.miliseconds:A.setMilliseconds(A.getMilliseconds()+_);break}return A};class x_{static rootPattern=":([a-z0-9A-Z_-]{1,})";static innerRootPattern="([a-z0-9A-Z_-]{1,})";alias;_map=new Map;constructor(T){this.alias=this._thinAlias(T)}test(T,_){try{let E=this._map.get(_),A=this.alias.split("/"),C=this._thinAlias(T).split("/");if(!E)return;if(A.length!==C.length)return;let L=Object(),Q=this.alias.replace(new RegExp(x_.rootPattern,"g"),x_.innerRootPattern);if(!new RegExp(Q).test(this._thinAlias(T)))return;for(let H=0;H<A.length;H++){let Z=A[H],z=C[H];if(!new RegExp(x_.rootPattern,"g").test(Z)){if(Z!==z)return}else{let q=!1;if(Z.replace(new RegExp(x_.rootPattern,"g"),(V,J,X)=>{if(X===0)z.replace(new RegExp(x_.innerRootPattern,"g"),(x,w,k)=>{if(k===0)Object.assign(L,{[J]:x});return x});return V}),q)return}continue}return Object.freeze({parameters:L,model:E})}catch(E){return console.error(E),!1}}isMatch(T,_){try{if(!this._map.get(_))return;let A=this.alias.split("/"),C=this._thinAlias(T).split("/");if(A.length!==C.length)return!1;let L=Object();for(let Q=0;Q<A.length;Q++){let H=A[Q],Z=C[Q];if(!new RegExp(x_.rootPattern,"g").test(H)){if(H!==Z)return!1}else{let z=!1;if(H.replace(new RegExp(x_.rootPattern,"g"),(q,V,J)=>{if(!new RegExp(J,"g").test(Z))z=!0;else Object.assign(L,{[V]:Z});return""}),z)return!1}continue}return!0}catch(E){console.error(E);return}}get(T){if(!this._map.get("GET"))this._map.set("GET",T);return this}post(T){if(!this._map.get("POST"))this._map.set("POST",T);return this}put(T){if(!this._map.get("PUT"))this._map.set("PUT",T);return this}delete(T){if(!this._map.get("DELETE"))this._map.set("DELETE",T);return this}connect(T){if(!this._map.get("CONNECT"))return this._map.set("CONNECT",T);return this}options(T){if(!this._map.get("OPTIONS"))return this._map.set("OPTIONS",T);return this}trace(T){if(!this._map.get("TRACE"))return this._map.set("TRACE",T);return this}patch(T){if(!this._map.get("PATCH"))return this._map.set("PATCH",T);return this}_thinAlias(T){return T.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get _fullPath(){return this.alias.split("/").map((E,A)=>{let C=new RegExp(":([a-z0-9A-Z_.-]{1,})(\\(.*?\\))","g");if(!C.test(E)){if(C=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!C.test(E))return E;return E.replace(C,(L,Q)=>`${L}(.*?)`)}return E}).join("/")}get _filteredPath(){return this.alias.split("/").map((E,A)=>{let C=new RegExp(":([a-z0-9A-Z_.-]{1,})((.*?))","g");if(!C.test(E)){if(C=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!C.test(E))return E;return E.replace(C,(L,Q)=>"(.*?)")}return E.replace(C,(L,Q,H)=>H)}).join("/")}}var p0=x_;class zT{alias;_routes=new Map;constructor(T){this.alias=this._thinAlias(T)}route(T){let _=this._thinAlias(`${this.alias}/${T}`),E=this._routes.get(_),A=!E?new p0(`${this.alias}/${T}`):E;if(!E)this._routes.set(_,A);return A}_thinAlias(T){return T.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get routes(){return this._routes}}class ST{_routers=new Map;add(...T){for(let _=0;_<T.length;_++){if(this._routers.has(T[_].alias))continue;this._routers.set(T[_].alias,T[_])}return this}find(T,_){for(let E of[...this._routers.values()])for(let A of E.routes.values()){let C=A.test(T,_);if(!C)continue;return C}return}}class jT{eventName;metadata;_context=void 0;constructor({eventName:T,metadata:_}){this.eventName=T,this.metadata=_}bind(T){return this._context=T,this}execute(){return Object.freeze({methodName:this.metadata.methodName,descriptor:!this._context||typeof this.metadata.descriptor.value!=="function"?this.metadata.descriptor:this.metadata.descriptor.value.bind(this._context),arguments:this.metadata.arguments})}}class wT{rawAlias;alias;routes=[];constructor(T="/"){this.rawAlias=T;this.alias=wT.thinAlias(T)}addRoutes(...T){for(let _ of T)if(!this.routes.includes(_))this.routes.push(_);return this}bind(T){for(let _ of this.routes)_.bind(T);return this}execute(){let T=new Map;for(let _ of this.routes)T.set(`${this.alias}:::${_.eventName}`,_.execute());return T}static thinAlias(T){return T.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}class ET{rawPrefix;prefix;routers=[];constructor(T="/"){this.rawPrefix=T;this.prefix=ET.thinPrefix(T)}addRouters(...T){for(let _=0;_<T.length;_++)if(!this.routers.includes(T[_]))this.routers.push(T[_]);for(let _ of T)if(!this.routers.includes(_))this.routers.push(_);return this}execute(){let T=new Map;for(let _ of this.routers){let E=_.execute();for(let[A,C]of E.entries())T.set(`/${ET.thinPrefix(`${this.prefix}/${A}`)}`,C)}return T}static thinPrefix(T){return T.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}var GR=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 g_ extends Error{httpCode;message;data;constructor({httpCode:T,data:_,message:E}){super();this.httpCode=T,this.message=!E?.trim()?GR[T]:E.trim(),this.data=_}}var VR=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 GT extends Error{httpCode;message;data;constructor({httpCode:T,data:_,message:E}){super();this.httpCode=T,this.message=!E?.trim()?VR[T]:E.trim(),this.data=_}}var s0=(T,_=new Headers)=>{if(_.set("Content-Type","application/json"),T instanceof g_||T instanceof GT)return new Response(JSON.stringify(T),{status:T.httpCode,statusText:T.message,headers:_});return new Response(JSON.stringify((()=>{switch(typeof T){case"object":return!(T instanceof Error)?T:{message:T.message,code:T.name,cause:T.cause};case"string":return{message:T};case"number":return{code:T};default:return}})()),{status:500,statusText:"INTERNAL SERVER ERROR",headers:_})};var kW=async function(){}.constructor;var i0=Object.freeze({black:30,red:31,green:32,yellow:33,blue:34,magenta:35,cyan:36,white:37,gray:90}),o0=Object.freeze({black:40,red:41,green:42,yellow:43,blue:44,magenta:45,cyan:46,white:47,gray:100}),j_=(T,_={})=>{let{color:E,backgroundColor:A,bold:C,underline:L}=_,Q="";if(C)Q+="\x1B[1m";if(L)Q+="\x1B[4m";if(E&&i0[E])Q+=`\x1B[${i0[E]}m`;if(A&&o0[A])Q+=`\x1B[${o0[A]}m`;return`${Q}${T}\x1B[0m`};var r0=(T)=>{let{headers:_,method:E}=T,A=_.get("upgrade")?.toLowerCase()||"",C=_.get("connection")?.toLowerCase()||"";return E==="GET"&&A?.toLowerCase()==="websocket"&&C?.toLowerCase().includes("upgrade")};var yW=VT(NT(),1);class yT{_mapper=new Map;get(T){if(this._mapper.has(T))return this._mapper.get(T);if(typeof T!=="function")return;let _=Reflect.getMetadataKeys(T);if(![c_,J_,k_,P_,O_,D_].some((L)=>_.includes(L)))throw Error("Missing dependency declaration, please check @Injectable() used on dependency(ies).");let A=(Reflect.getOwnMetadata(s_,T)||[]).map((L)=>this.get(L)),C=new T(...A);return this._mapper.set(T,C),C}set(T,_){this._mapper.set(T,_)}}var NR=900,L_=(T)=>{return T.headers.set("X-Powered-By","Bool Typescript"),T},fR=({controllerConstructor:T,httpRouterGroup:_,injector:E,prefix:A})=>{if(!Reflect.getOwnMetadataKeys(T).includes(J_))throw Error(`${T.name} is not a controller.`);let C=E.get(T);if(!C)throw Error("Can not initialize controller.");let L=Reflect.getOwnMetadata(J_,T)||{prefix:"/",httpMetadata:[]},Q=new zT(`/${A||""}/${L.prefix}`);return L.httpMetadata.forEach((H)=>{if(typeof H.descriptor.value!=="function")return;let Z=Q.route(H.path),z=H.descriptor.value.bind(C),q=Object.freeze({class:T,funcName:H.methodName,func:z,argumentsMetadata:H.argumentsMetadata});switch(H.httpMethod){case"GET":return Z.get(q);case"POST":return Z.post(q);case"PUT":return Z.put(q);case"PATCH":return Z.patch(q);case"DELETE":return Z.delete(q);case"OPTIONS":return Z.options(q)}}),_.add(Q)},IR=({injector:T,httpRouterGroup:_,prefix:E,webSocketRouterGroup:A,webSocketConstructor:C})=>{if(!Reflect.getOwnMetadataKeys(C).includes(D_))throw Error(`${C.name} is not a controller.`);let L=T.get(C);if(!L)throw Error("Can not initialize webSocket.");let Q=Reflect.getOwnMetadata(D_,C)||{prefix:"/",events:[],http:[]},H=`/${E||""}/${Q.prefix}`,Z=new zT(H);for(let[q,V]of Object.entries(Q.http)){if(typeof V.descriptor?.value!=="function")continue;let J=Z.route(V.path),X=V.descriptor.value.bind(L),x=Object.freeze({class:C,funcName:V.methodName,func:X,argumentsMetadata:V.argumentsMetadata});switch(V.httpMethod){case"GET":J.get(x);break;case"POST":J.post(x);break}}_.add(Z);let z=new wT(H);for(let[q,V]of Object.entries(Q.events)){let J=new jT({eventName:q,metadata:V});z.addRoutes(J)}return z.bind(L),A.addRouters(z),Object.freeze({httpRouterGroup:_,webSocketRouterGroup:A})},j=async(T,_,E,A)=>{try{let C=await _.safeParseAsync(T);if(!C.success)throw new g_({httpCode:400,message:`Validation at the [${A.toString()}] method fails at positional argument [${E}].`,data:C.error.issues});return C.data}catch(C){if(C instanceof g_)throw C;throw new GT({httpCode:500,message:`Validation at the [${A.toString()}] method error at positional argument [${E}].`,data:!(C instanceof Error)?C:[{message:C.message,code:C.name,cause:C.cause}]})}},xR=async(T,_)=>{if(!Reflect.getOwnMetadataKeys(T).includes(i_))throw Error(`${T.name} is not a module.`);let E=new yT,A=Reflect.getOwnMetadata(i_,T);if(!A)return;let{loaders:C,middlewares:L,guards:Q,dispatchers:H,controllers:Z,dependencies:z,webSockets:q,prefix:V,config:J}=A,X=`${_.prefix||""}/${V||""}`,{config:x}=Object.freeze({config:{...typeof _.config!=="function"?_.config:await _.config(),...typeof J!=="function"?typeof J!=="object"?void 0:J:await J()}});if(E.set(sT,x),C){let K=[];for(let[R,N]of Object.entries(C))K.push(async()=>{try{let d=await N({config:x});return console.info(`${j_(" INFO ",{color:"white",backgroundColor:"blue",bold:!0})} Loader [${R}] initialized successfully.`),d}catch(d){throw console.error(`${j_(" WARN ",{color:"yellow",backgroundColor:"red",bold:!0})} Loader [${R}] initialization failed.`),_.debug&&console.error(d),d}});let O=await Promise.all(K.map((R)=>R()));for(let R=0;R<O.length;R++){let[N,d]=O[R];E.set(N,d)}}!z||z.map((K)=>E.get(K));let w=[],k=[];L&&L.forEach((K)=>{let O=E.get(K);if(O.start&&typeof O.start==="function"){let R=Reflect.getOwnMetadata(y,K,"start")||{};w.push(Object.freeze({class:K,funcName:"start",func:O.start.bind(O),argumentsMetadata:R}))}if(O.end&&typeof O.end==="function"){let R=Reflect.getOwnMetadata(y,K,"start")||{};k.push(Object.freeze({class:K,funcName:"end",func:O.end.bind(O),argumentsMetadata:R}))}});let m=!Q?[]:Q.map((K)=>{let O=E.get(K),R=Reflect.getOwnMetadata(y,K,"enforce")||{};return Object.freeze({class:K,funcName:"enforce",func:O.enforce.bind(O),argumentsMetadata:R})}),v=[],D=[];H&&H.forEach((K)=>{let O=E.get(K);if(O.open&&typeof O.open==="function"){let R=Reflect.getOwnMetadata(y,K,"open")||{};v.push(Object.freeze({class:K,funcName:"open",func:O.open.bind(O),argumentsMetadata:R}))}if(O.close&&typeof O.close==="function"){let R=Reflect.getOwnMetadata(y,K,"close")||{};D.push(Object.freeze({class:K,funcName:"close",func:O.close.bind(O),argumentsMetadata:R}))}});let F=new ST;Z&&Z.forEach((K)=>fR({controllerConstructor:K,httpRouterGroup:F,injector:E,prefix:X}));let b=new ST,S=new ET;return q&&q.forEach((K)=>IR({webSocketConstructor:K,httpRouterGroup:b,webSocketRouterGroup:S,injector:E,prefix:X})),Object.freeze({prefix:A.prefix,injector:E,startMiddlewareGroup:w,endMiddlewareGroup:k,guardGroup:m,openDispatcherGroup:v,closeDispatcherGroup:D,controllerRouterGroup:F,webSocketHttpRouterGroup:b,webSocketRouterGroup:S})},$R=async(T,_)=>{let{request:E,server:A}=T,{query:C,responseHeaders:L,route:{model:Q}}=_,H=await Q.func(...[A,E,C]);if(typeof H!=="boolean")return L_(new Response(JSON.stringify({httpCode:500,message:"Can not detect webSocket upgrade result.",data:void 0}),{status:500,statusText:"Internal server error.",headers:L}));if(!H)return L_(new Response(JSON.stringify({httpCode:500,message:"Can not upgrade.",data:void 0}),{status:500,statusText:"Internal server error.",headers:L}));return H},KR=async(T,_)=>{let{request:E,server:A}=T,{query:C,responseHeaders:L,route:{parameters:Q,model:H},moduleResolution:{startMiddlewareGroup:Z,endMiddlewareGroup:z,guardGroup:q,openDispatcherGroup:V,closeDispatcherGroup:J}}=_,X={[U_]:E.headers,[Y_]:L,[YT]:C,[T_]:Q,[E_]:H},x={get(D){return X[D]},set(D,F){if(D in X)throw Error(`${String(D)} already exists in context.`);X[D]=F}};for(let D=0;D<Z.length;D++){let F=[],{func:b,funcName:S,argumentsMetadata:K}=Z[D];for(let[O,R]of Object.entries(K))switch(R.type){case G_:F[R.index]=!R.zodSchema?E:await j(E,R.zodSchema,R.index,S);break;case S_:F[R.index]=!R.zodSchema?await E[R.parser||"json"]():await j(await E[R.parser||"json"](),R.zodSchema,R.index,S);break;case V_:F[R.index]=!R.key?x:x.get(R.key);break;case U_:F[R.index]=!R.zodSchema?E.headers:await j(E.headers.toJSON(),R.zodSchema,R.index,S);break;case Y_:F[R.index]=X[R.type];break;case z_:F[R.index]=!R.zodSchema?E.headers.get(R.key)||void 0:await j(E.headers.get(R.key)||void 0,R.zodSchema,R.index,S);break;case w_:F[R.index]=!R.zodSchema?X[T_][R.key]||void 0:await j(X[T_][R.key],R.zodSchema,R.index,S);break;case E_:F[R.index]=X[E_];break;default:F[R.index]=!R.zodSchema?!(R.type in X)?void 0:X[R.type]:await j(!(R.type in X)?void 0:X[R.type],R.zodSchema,R.index,S);break}if(X[R_]=await b(...F),X[R_]instanceof Response)return L_(X[R_])}for(let D=0;D<q.length;D++){let F=[],{func:b,funcName:S,argumentsMetadata:K}=q[D];for(let[R,N]of Object.entries(K))switch(N.type){case G_:F[N.index]=!N.zodSchema?E:await j(E,N.zodSchema,N.index,S);break;case S_:F[N.index]=!N.zodSchema?await E[N.parser||"json"]():await j(await E[N.parser||"json"](),N.zodSchema,N.index,S);break;case V_:F[N.index]=!N.key?x:x.get(N.key);break;case U_:F[N.index]=!N.zodSchema?E.headers:await j(E.headers.toJSON(),N.zodSchema,N.index,S);break;case Y_:F[N.index]=X[N.type];break;case z_:F[N.index]=!N.zodSchema?E.headers.get(N.key)||void 0:await j(E.headers.get(N.key)||void 0,N.zodSchema,N.index,S);break;case w_:F[N.index]=!N.zodSchema?X[T_][N.key]||void 0:await j(X[T_][N.key],N.zodSchema,N.index,S);break;case E_:F[N.index]=X[E_];break;default:F[N.index]=!N.zodSchema?X[N.type]:await j(X[N.type],N.zodSchema,N.index,S);break}let O=await b(...F);if(typeof O!=="boolean"||!O)throw new g_({httpCode:401,message:"Unauthorization.",data:void 0})}for(let D=0;D<V.length;D++){let F=[],{func:b,funcName:S,argumentsMetadata:K}=V[D];for(let[O,R]of Object.entries(K))switch(R.type){case G_:F[R.index]=!R.zodSchema?E:await j(E,R.zodSchema,R.index,S);break;case S_:F[R.index]=!R.zodSchema?await E[R.parser||"json"]():await j(await E[R.parser||"json"](),R.zodSchema,R.index,S);break;case V_:F[R.index]=!R.key?x:x.get(R.key);break;case U_:F[R.index]=!R.zodSchema?E.headers:await j(E.headers.toJSON(),R.zodSchema,R.index,S);break;case Y_:F[R.index]=X[R.type];break;case z_:F[R.index]=!R.zodSchema?E.headers.get(R.key)||void 0:await j(E.headers.get(R.key)||void 0,R.zodSchema,R.index,S);break;case w_:F[R.index]=!R.zodSchema?X[T_][R.key]||void 0:await j(X[T_][R.key],R.zodSchema,R.index,S);break;case E_:F[R.index]=X[E_];break;default:F[R.index]=!R.zodSchema?X[R.type]:await j(X[R.type],R.zodSchema,R.index,S);break}X[R_]=await b(...F)}let w=[],{func:k,funcName:m,argumentsMetadata:v}=H;for(let[D,F]of Object.entries(v))switch(F.type){case G_:w[F.index]=!F.zodSchema?E:await j(E,F.zodSchema,F.index,m);break;case S_:w[F.index]=!F.zodSchema?await E[F.parser||"json"]():await j(await E[F.parser||"json"](),F.zodSchema,F.index,m);break;case V_:w[F.index]=!F.key?x:x.get(F.key);break;case U_:w[F.index]=!F.zodSchema?E.headers:await j(E.headers.toJSON(),F.zodSchema,F.index,m);break;case Y_:w[F.index]=X[F.type];break;case z_:w[F.index]=!F.zodSchema?E.headers.get(F.key)||void 0:await j(E.headers.get(F.key)||void 0,F.zodSchema,F.index,m);break;case w_:w[F.index]=!F.zodSchema?X[T_][F.key]||void 0:await j(X[T_][F.key],F.zodSchema,F.index,m);break;case E_:w[F.index]=X[E_];break;default:w[F.index]=!F.zodSchema?X[F.type]:await j(X[F.type],F.zodSchema,F.index,m);break}X[R_]=await k(...w);for(let D=0;D<J.length;D++){let F=[],{func:b,funcName:S,argumentsMetadata:K}=J[D];for(let[O,R]of Object.entries(K))switch(R.type){case G_:F[R.index]=!R.zodSchema?E:await j(E,R.zodSchema,R.index,S);break;case S_:F[R.index]=!R.zodSchema?await E[R.parser||"json"]():await j(await E[R.parser||"json"](),R.zodSchema,R.index,S);break;case V_:F[R.index]=!R.key?x:x.get(R.key);break;case U_:F[R.index]=!R.zodSchema?E.headers:await j(E.headers.toJSON(),R.zodSchema,R.index,S);break;case Y_:F[R.index]=X[R.type];break;case z_:F[R.index]=!R.zodSchema?E.headers.get(R.key)||void 0:await j(E.headers.get(R.key)||void 0,R.zodSchema,R.index,S);break;case w_:F[R.index]=!R.zodSchema?X[T_][R.key]||void 0:await j(X[T_][R.key],R.zodSchema,R.index,S);break;case E_:F[R.index]=X[E_];break;default:F[R.index]=!R.zodSchema?X[R.type]:await j(X[R.type],R.zodSchema,R.index,S);break}await b(...F)}if(X[R_]instanceof Response)return L_(X[R_]);for(let D=0;D<z.length;D++){let F=[],{func:b,funcName:S,argumentsMetadata:K}=z[D];for(let[O,R]of Object.entries(K))switch(R.type){case G_:F[R.index]=!R.zodSchema?E:await j(E,R.zodSchema,R.index,S);break;case S_:F[R.index]=!R.zodSchema?await E[R.parser||"json"]():await j(await E[R.parser||"json"](),R.zodSchema,R.index,S);break;case V_:F[R.index]=!R.key?x:x.get(R.key);break;case U_:F[R.index]=!R.zodSchema?E.headers:await j(E.headers.toJSON(),R.zodSchema,R.index,S);break;case Y_:F[R.index]=X[R.type];break;case z_:F[R.index]=!R.zodSchema?E.headers.get(R.key)||void 0:await j(E.headers.get(R.key)||void 0,R.zodSchema,R.index,S);break;case w_:F[R.index]=!R.zodSchema?X[T_][R.key]||void 0:await j(X[T_][R.key],R.zodSchema,R.index,S);break;case E_:F[R.index]=X[E_];break;default:F[R.index]=!R.zodSchema?!(R.type in X)?void 0:X[R.type]:await j(!(R.type in X)?void 0:X[R.type],R.zodSchema,R.index,S);break}if(X[R_]=await b(...F),X[R_]instanceof Response)return L_(X[R_])}return L_(new Response(!X[R_]?void 0:JSON.stringify({httpCode:200,message:"SUCCESS",data:X[R_]}),{status:!X[R_]?204:200,statusText:"SUCCESS",headers:X[Y_]}))},hR=async(T,_)=>{try{let E=new Map,A=!Array.isArray(T)?[T]:T,{allowLogsMethods:C,staticOption:L,allowOrigins:Q,allowMethods:H,allowCredentials:Z,allowHeaders:z}=Object.freeze({allowLogsMethods:_?.log?.methods,staticOption:_.static,allowOrigins:!_.cors?.origins?["*"]:typeof _.cors.origins!=="string"?_.cors.origins.includes("*")||_.cors.origins.length<1?["*"]:_.cors.origins:[_.cors.origins!=="*"?_.cors.origins:"*"],allowMethods:_.cors?.methods||["GET","POST","PUT","PATCH","DELETE","OPTIONS"],allowCredentials:!_.cors?.credentials?!1:!0,allowHeaders:!_.cors?.headers||_.cors.headers.includes("*")?["*"]:_.cors.headers}),V=(await Promise.all(A.map((w)=>xR(w,_)))).filter((w)=>typeof w!=="undefined");if([...new Set(V.map((w)=>w.prefix))].length!==V.length)throw Error("Module prefix should be unique.");let X=new Map;for(let w of V){let k=w.webSocketRouterGroup.execute();for(let[m,v]of k.entries())X.set(m,v)}let x=Bun.serve({port:_.port,fetch:async(w,k)=>{let m=performance.now(),v=new URL(w.url),D=t0.default.parse(v.searchParams.toString(),_.queryParser),F=w.headers.get("origin")||"*",b=w.method.toUpperCase(),S=new Headers;try{let K=r0(w),O;if(K){for(let N of V){let d=N.webSocketHttpRouterGroup.find(v.pathname,w.method);if(d){O=Object.freeze({route:d,resolution:N});break}}if(!O)return L_(new Response(JSON.stringify({httpCode:404,message:"Route not found",data:void 0}),{status:404,statusText:"Not found.",headers:S}));let R=await $R({request:w,server:k},{query:D,responseHeaders:S,route:O.route,moduleResolution:O.resolution});return R instanceof Response?R:void 0}if(Z&&S.set("Access-Control-Allow-Credentials","true"),S.set("Access-Control-Allow-Methods",H.join(", ")),S.set("Access-Control-Allow-Headers",z.join(", ")),S.set("Access-Control-Allow-Origin",Q.includes("*")?"*":!Q.includes(F)?Q[0]:F),!H.includes(b))return L_(new Response(void 0,{status:405,statusText:"Method Not Allowed.",headers:S}));if(w.method.toUpperCase()==="OPTIONS")return L_(Q.includes("*")||Q.includes(F)?new Response(void 0,{status:204,statusText:"No Content.",headers:S}):new Response(void 0,{status:417,statusText:"Expectation Failed.",headers:S}));if(L){let{path:R,headers:N,cacheTimeInSeconds:d}=L,A_=`${R}/${v.pathname}`,__=E.get(A_);if(!__){let e=Bun.file(A_);if(await e.exists()){if(N)for(let[F_,H_]of Object.entries(N))S.set(F_,H_);return S.set("Content-Type",e.type),L_(new Response(await e.arrayBuffer(),{status:200,statusText:"SUCCESS",headers:S}))}}else{let e=new Date>__.expiredAt;if(e)E.delete(A_);let o=!e?__.file:Bun.file(A_);if(await o.exists()){if(E.set(A_,Object.freeze({expiredAt:d0(new Date,typeof d!=="number"?NR:d,Z_.seconds),file:o})),N)for(let[H_,y_]of Object.entries(N))S.set(H_,y_);return S.set("Content-Type",o.type),L_(new Response(await o.arrayBuffer(),{status:200,statusText:"SUCCESS",headers:S}))}}}for(let R of V){let N=R.controllerRouterGroup.find(v.pathname,w.method);if(N){O=Object.freeze({route:N,resolution:R});break}}if(!O)return L_(new Response(JSON.stringify({httpCode:404,message:"Route not found",data:void 0}),{status:404,statusText:"Not found.",headers:S}));return await KR({request:w,server:k},{query:D,responseHeaders:S,route:O.route,moduleResolution:O.resolution})}catch(K){return _.debug&&console.error(K),L_(s0(K,S))}finally{if(C){let K=performance.now(),O=j_(v.pathname,{color:"blue"}),R=`${Bun.color("yellow","ansi")}${process.pid}`,N=j_(w.method,{color:"yellow",backgroundColor:"blue"}),d=j_(`${w.headers.get("x-forwarded-for")||w.headers.get("x-real-ip")||k.requestIP(w)?.address||"<Unknown>"}`,{color:"yellow"}),A_=j_(`${Math.round((K-m+Number.EPSILON)*100)/100}ms`,{color:"yellow",backgroundColor:"blue"});C.includes(w.method.toUpperCase())&&console.info(`PID: ${R} - Method: ${N} - IP: ${d} - ${O} - Time: ${A_}`)}}},websocket:{open:(w)=>{let k=`${w.data.pathname}:::open`,m=X.get(k);if(!m)return;let v=m.arguments||{},D=[];for(let[F,b]of Object.entries(v))switch(b.type){case B_:D[b.index]=w;break;case q_:D[b.index]=x;break}m.descriptor.value(...D)},close:(w,k,m)=>{let v=`${w.data.pathname}:::close`,D=X.get(v);if(!D)return;let F=D.arguments||{},b=[];for(let[S,K]of Object.entries(F))switch(K.type){case B_:b[K.index]=w;break;case q_:b[K.index]=x;break;case LT:b[K.index]=k;break;case WT:b[K.index]=m;break}D.descriptor.value(...b)},message:(w,k)=>{let m=`${w.data.pathname}:::message`,v=X.get(m);if(!v)return;let D=v.arguments||{},F=[];for(let[b,S]of Object.entries(D))switch(S.type){case B_:F[S.index]=w;break;case RT:F[S.index]=k;break;case q_:F[S.index]=x;break}v.descriptor.value(...F)},drain:(w)=>{let k=`${w.data.pathname}:::drain`,m=X.get(k);if(!m)return;let v=m.arguments||{},D=[];for(let[F,b]of Object.entries(v))switch(b.type){case B_:D[b.index]=w;break;case q_:D[b.index]=x;break}m.descriptor.value(...D)},ping:(w,k)=>{let m=`${w.data.pathname}:::ping`,v=X.get(m);if(!v)return;let D=v.arguments||{},F=[];for(let[b,S]of Object.entries(D))switch(S.type){case B_:F[S.index]=w;break;case q_:F[S.index]=x;break;case RT:F[S.index]=k;break}v.descriptor.value(...F)},pong:(w,k)=>{let m=`${w.data.pathname}:::pong`,v=X.get(m);if(!v)return;let D=v.arguments||{},F=[];for(let[b,S]of Object.entries(D))switch(S.type){case B_:F[S.index]=w;break;case q_:F[S.index]=x;break;case RT:F[S.index]=k;break}v.descriptor.value(...F)}}})}catch(E){throw _.debug&&console.error(E),E}};export{s0 as jsonErrorInfer,VR as httpServerErrors,GR as httpClientErrors,rC as ZodSchema,pC as WebSocketServer,oC as WebSocketEvent,dC as WebSocketConnection,iC as WebSocketCloseReason,sC as WebSocketCloseCode,nC as WebSocket,KC as RouteModel,xC as ResponseHeaders,SC as RequestHeaders,wC as RequestHeader,GC as RequestBody,IC as Request,fC as Query,vC as Put,kC as Post,bC as Patch,VC as Params,NC as Param,MC as Options,yC as Module,jC as Middleware,kE as Keys,yT as Injector,gC as Injectable,uC as Inject,GT as HttpServerError,g_ as HttpClientError,PC as Guard,cC as Get,OC as Dispatcher,mC as Delete,hC as Controller,$C as Context,hR as BoolFactory};
@@ -9,6 +9,7 @@ export declare const injectKey: unique symbol;
9
9
  export declare const injectableKey: unique symbol;
10
10
  export declare const middlewareKey: unique symbol;
11
11
  export declare const moduleKey: unique symbol;
12
+ export declare const containerKey: unique symbol;
12
13
  export declare const zodSchemaKey: unique symbol;
13
14
  export declare const webSocketKey: unique symbol;
14
15
  export declare const webSocketEventKey: unique symbol;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bool-ts/core",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {