xmcp 0.1.7 → 0.1.8
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/cli.js +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1 -1
- package/dist/runtime/adapter-express.js +1 -1
- package/dist/runtime/adapter-nextjs.js +1 -1
- package/dist/runtime/contexts/http-request-context.d.ts +9 -0
- package/dist/runtime/headers.js +1 -1
- package/dist/runtime/http.js +1 -1
- package/dist/runtime/stdio.js +1 -1
- package/dist/types/middleware.d.ts +6 -2
- package/dist/types/tool.d.ts +53 -6
- package/package.json +1 -1
- package/dist/runtime/transports/http/http-context.d.ts +0 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { type
|
|
2
|
-
export type { ToolMetadata, ToolSchema, InferSchema } from "./types/tool";
|
|
1
|
+
export { type XmcpMiddleware } from "./types/middleware";
|
|
2
|
+
export type { ToolMetadata, ToolSchema, ToolExtraArguments, InferSchema, } from "./types/tool";
|
|
3
3
|
export type { XmcpConfigOuputSchema as XmcpConfig } from "./compiler/config";
|
|
4
|
-
export { apiKeyAuthMiddleware } from "./auth/api-key";
|
|
5
|
-
export { jwtAuthMiddleware } from "./auth/jwt";
|
|
6
4
|
export type { OAuthConfigOptions } from "./auth/oauth";
|
|
7
5
|
import "./types/declarations";
|
|
6
|
+
export { apiKeyAuthMiddleware } from "./auth/api-key";
|
|
7
|
+
export { jwtAuthMiddleware } from "./auth/jwt";
|
|
8
|
+
export { createContext } from "./utils/context";
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,()=>(()=>{var e={32:(e,t,r)=>{"use strict";const n=r(6999),s=r(229),o=r(2771),i=r(3436),a=r(1289),c=r(9140),u=r(9903),l=r(826),p=r(2223),f=r(4247),h=r(5363),d=r(7148),m=r(3306),E=r(5469),y=r(1861),v=r(6002),g=r(4104),b=r(7256),w=r(4240),S=r(7743),$=r(8200),I=r(1314),R=r(7238),O=r(236),N=r(3765),A=r(3566),T=r(5585),x=r(9003),L=r(2326),j=r(4163),P=r(4678),D=r(9313),_=r(3835),k=r(898),M=r(1913),C=r(6640),K=r(6460),V=r(1573),G=r(7713),B=r(2468),F=r(2809);e.exports={parse:a,valid:c,clean:u,inc:l,diff:p,major:f,minor:h,patch:d,prerelease:m,compare:E,rcompare:y,compareLoose:v,compareBuild:g,sort:b,rsort:w,gt:S,lt:$,eq:I,neq:R,gte:O,lte:N,cmp:A,coerce:T,Comparator:x,Range:L,satisfies:j,toComparators:P,maxSatisfying:D,minSatisfying:_,minVersion:k,validRange:M,outside:C,gtr:K,ltr:V,intersects:G,simplifyRange:B,subset:F,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},169:(e,t,r)=>{var n=r(6608).Buffer,s=r(1882),o=r(3569),i=r(2203),a=r(7265),c=r(9023),u=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function l(e){var t=e.split(".",1)[0];return function(e){if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e))return e;try{return JSON.parse(e)}catch(e){return}}(n.from(t,"base64").toString("binary"))}function p(e){return e.split(".")[2]}function f(e){return u.test(e)&&!!l(e)}function h(e,t,r){if(!t){var n=new Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}var s=p(e=a(e)),i=function(e){return e.split(".",2).join(".")}(e);return o(t).verify(i,s,r)}function d(e,t){if(t=t||{},!f(e=a(e)))return null;var r=l(e);if(!r)return null;var s=function(e,t){t=t||"utf8";var r=e.split(".")[1];return n.from(r,"base64").toString(t)}(e);return("JWT"===r.typ||t.json)&&(s=JSON.parse(s,t.encoding)),{header:r,payload:s,signature:p(e)}}function m(e){var t=(e=e||{}).secret||e.publicKey||e.key,r=new s(t);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=r,this.signature=new s(e.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}c.inherits(m,i),m.prototype.verify=function(){try{var e=h(this.signature.buffer,this.algorithm,this.key.buffer),t=d(this.signature.buffer,this.encoding);return this.emit("done",e,t),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},m.decode=d,m.isValid=f,m.verify=h,e.exports=m},181:e=>{"use strict";e.exports=require("buffer")},229:e=>{"use strict";const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},236:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>n(e,t,r)>=0},826:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t,r,s,o)=>{"string"==typeof r&&(o=s,s=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,s,o).version}catch(e){return null}}},857:e=>{"use strict";e.exports=require("os")},898:(e,t,r)=>{"use strict";const n=r(2771),s=r(2326),o=r(7743);e.exports=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let i=null;s.forEach(e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!o(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!i||r&&!o(r,i)||(r=i)}return r&&e.test(r)?r:null}},1251:e=>{var t=Object.prototype.toString,r=Array.isArray;e.exports=function(e){return"string"==typeof e||!r(e)&&function(e){return!!e&&"object"==typeof e}(e)&&"[object String]"==t.call(e)}},1289:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},1314:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>0===n(e,t,r)},1525:(e,t,r)=>{var n=r(4397),s=r(169);t.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],t.sign=n.sign,t.verify=s.verify,t.decode=s.decode,t.isValid=s.isValid,t.createSign=function(e){return new n(e)},t.createVerify=function(e){return new s(e)}},1573:(e,t,r)=>{"use strict";const n=r(6640);e.exports=(e,t,r)=>n(e,t,"<",r)},1861:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>n(t,e,r)},1882:(e,t,r)=>{var n=r(6608).Buffer,s=r(2203);function o(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=n.alloc(0),this;if("function"==typeof e.pipe)return this.buffer=n.alloc(0),e.pipe(this),this;if(e.length||"object"==typeof e)return this.buffer=e,this.writable=!1,process.nextTick(function(){this.emit("end",e),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof e+")")}r(9023).inherits(o,s),o.prototype.write=function(e){this.buffer=n.concat([this.buffer,n.from(e)]),this.emit("data",e)},o.prototype.end=function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},e.exports=o},1913:(e,t,r)=>{"use strict";const n=r(2326);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},2188:e=>{"use strict";function t(e){return(e/8|0)+(e%8==0?0:1)}var r={ES256:t(256),ES384:t(384),ES512:t(521)};e.exports=function(e){var t=r[e];if(t)return t;throw new Error('Unknown algorithm "'+e+'"')}},2203:e=>{"use strict";e.exports=require("stream")},2223:(e,t,r)=>{"use strict";const n=r(1289);e.exports=(e,t)=>{const r=n(e,null,!0),s=n(t,null,!0),o=r.compare(s);if(0===o)return null;const i=o>0,a=i?r:s,c=i?s:r,u=!!a.prerelease.length;if(c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(a))return c.minor&&!c.patch?"minor":"patch"}const l=u?"pre":"";return r.major!==s.major?l+"major":r.minor!==s.minor?l+"minor":r.patch!==s.patch?l+"patch":"prerelease"}},2326:(e,t,r)=>{"use strict";const n=/\s+/g;class s{constructor(e,t){if(t=i(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&E))+":"+e,r=o.get(t);if(r)return r;const n=this.options.loose,s=n?l[p.HYPHENRANGELOOSE]:l[p.HYPHENRANGE];e=e.replace(s,x(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(l[p.COMPARATORTRIM],f),c("comparator trim",e),e=e.replace(l[p.TILDETRIM],h),c("tilde trim",e),e=e.replace(l[p.CARETTRIM],d),c("caret trim",e);let i=e.split(" ").map(e=>b(e,this.options)).join(" ").split(/\s+/).map(e=>T(e,this.options));n&&(i=i.filter(e=>(c("loose invalid filter",e,this.options),!!e.match(l[p.COMPARATORLOOSE])))),c("range list",i);const u=new Map,v=i.map(e=>new a(e,this.options));for(const e of v){if(y(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const g=[...u.values()];return o.set(t,g),g}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some(r=>g(r,t)&&e.set.some(e=>g(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}e.exports=s;const o=new(r(2351)),i=r(2860),a=r(9003),c=r(4159),u=r(2771),{safeRe:l,t:p,comparatorTrimReplace:f,tildeTrimReplace:h,caretTrimReplace:d}=r(6999),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:E}=r(229),y=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every(e=>s.intersects(e,t)),s=n.pop();return r},b=(e,t)=>(c("comp",e,t),e=I(e,t),c("caret",e),e=S(e,t),c("tildes",e),e=O(e,t),c("xrange",e),e=A(e,t),c("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map(e=>$(e,t)).join(" "),$=(e,t)=>{const r=t.loose?l[p.TILDELOOSE]:l[p.TILDE];return e.replace(r,(t,r,n,s,o)=>{let i;return c("tilde",e,t,r,n,s,o),w(r)?i="":w(n)?i=`>=${r}.0.0 <${+r+1}.0.0-0`:w(s)?i=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(c("replaceTilde pr",o),i=`>=${r}.${n}.${s}-${o} <${r}.${+n+1}.0-0`):i=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,c("tilde return",i),i})},I=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{c("caret",e,t);const r=t.loose?l[p.CARETLOOSE]:l[p.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,s,o,i)=>{let a;return c("caret",e,t,r,s,o,i),w(r)?a="":w(s)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(o)?a="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:i?(c("replaceCaret pr",i),a="0"===r?"0"===s?`>=${r}.${s}.${o}-${i} <${r}.${s}.${+o+1}-0`:`>=${r}.${s}.${o}-${i} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${o}-${i} <${+r+1}.0.0-0`):(c("no pr"),a="0"===r?"0"===s?`>=${r}.${s}.${o}${n} <${r}.${s}.${+o+1}-0`:`>=${r}.${s}.${o}${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${o} <${+r+1}.0.0-0`),c("caret return",a),a})},O=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map(e=>N(e,t)).join(" ")),N=(e,t)=>{e=e.trim();const r=t.loose?l[p.XRANGELOOSE]:l[p.XRANGE];return e.replace(r,(r,n,s,o,i,a)=>{c("xRange",e,r,n,s,o,i,a);const u=w(s),l=u||w(o),p=l||w(i),f=p;return"="===n&&f&&(n=""),a=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(l&&(o=0),i=0,">"===n?(n=">=",l?(s=+s+1,o=0,i=0):(o=+o+1,i=0)):"<="===n&&(n="<",l?s=+s+1:o=+o+1),"<"===n&&(a="-0"),r=`${n+s}.${o}.${i}${a}`):l?r=`>=${s}.0.0${a} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${o}.0${a} <${s}.${+o+1}.0-0`),c("xRange return",r),r})},A=(e,t)=>(c("replaceStars",e,t),e.trim().replace(l[p.STAR],"")),T=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?p.GTE0PRE:p.GTE0],"")),x=e=>(t,r,n,s,o,i,a,c,u,l,p,f)=>`${r=w(n)?"":w(s)?`>=${n}.0.0${e?"-0":""}`:w(o)?`>=${n}.${s}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=w(u)?"":w(l)?`<${+u+1}.0.0-0`:w(p)?`<${u}.${+l+1}.0-0`:f?`<=${u}.${l}.${p}-${f}`:e?`<${u}.${l}.${+p+1}-0`:`<=${c}`}`.trim(),L=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(c(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},2351:e=>{"use strict";e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},2468:(e,t,r)=>{"use strict";const n=r(4163),s=r(5469);e.exports=(e,t,r)=>{const o=[];let i=null,a=null;const c=e.sort((e,t)=>s(e,t,r));for(const e of c)n(e,t,r)?(a=e,i||(i=e)):(a&&o.push([i,a]),a=null,i=null);i&&o.push([i,null]);const u=[];for(const[e,t]of o)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return l.length<p.length?l:t}},2771:(e,t,r)=>{"use strict";const n=r(4159),{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=r(229),{safeRe:i,t:a}=r(6999),c=r(2860),{compareIdentifiers:u}=r(3436);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],s=e.prerelease[t];if(n("prerelease compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return u(r,s)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],s=e.build[t];if(n("build compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return u(r,s)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[a.PRERELEASELOOSE]:i[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},2809:(e,t,r)=>{"use strict";const n=r(2326),s=r(9003),{ANY:o}=s,i=r(4163),a=r(5469),c=[new s(">=0.0.0-0")],u=[new s(">=0.0.0")],l=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?c:u}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=u}const n=new Set;let s,l,h,d,m,E,y;for(const t of e)">"===t.operator||">="===t.operator?s=p(s,t,r):"<"===t.operator||"<="===t.operator?l=f(l,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&l){if(h=a(s.semver,l.semver,r),h>0)return null;if(0===h&&(">="!==s.operator||"<="!==l.operator))return null}for(const e of n){if(s&&!i(e,String(s),r))return null;if(l&&!i(e,String(l),r))return null;for(const n of t)if(!i(e,String(n),r))return!1;return!0}let v=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,g=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;v&&1===v.prerelease.length&&"<"===l.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,E=E||"<"===e.operator||"<="===e.operator,s)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),">"===e.operator||">="===e.operator){if(d=p(s,e,r),d===e&&d!==s)return!1}else if(">="===s.operator&&!i(s.semver,String(e),r))return!1;if(l)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(m=f(l,e,r),m===e&&m!==l)return!1}else if("<="===l.operator&&!i(l.semver,String(e),r))return!1;if(!e.operator&&(l||s)&&0!==h)return!1}return!(s&&E&&!l&&0!==h||l&&y&&!s&&0!==h||g||v)},p=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},f=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let s=!1;e:for(const n of e.set){for(const e of t.set){const t=l(n,e,r);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}},2860:e=>{"use strict";const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},3306:(e,t,r)=>{"use strict";const n=r(1289);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},3418:(e,t,r)=>{const n=r(3742),s=r(5582),o=r(9572),i=r(1525),a=r(5357),c=r(6782),u=r(5250),l=r(8094),p=r(6052),f=r(1251),h=r(8430),{KeyObject:d,createSecretKey:m,createPrivateKey:E}=r(6982),y=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];s&&y.splice(3,0,"PS256","PS384","PS512");const v={expiresIn:{isValid:function(e){return u(e)||f(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return u(e)||f(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return f(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:a.bind(null,y),message:'"algorithm" must be a valid string enum value'},header:{isValid:p,message:'"header" must be an object'},encoding:{isValid:f,message:'"encoding" must be a string'},issuer:{isValid:f,message:'"issuer" must be a string'},subject:{isValid:f,message:'"subject" must be a string'},jwtid:{isValid:f,message:'"jwtid" must be a string'},noTimestamp:{isValid:c,message:'"noTimestamp" must be a boolean'},keyid:{isValid:f,message:'"keyid" must be a string'},mutatePayload:{isValid:c,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:c,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:c,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},g={iat:{isValid:l,message:'"iat" should be a number of seconds'},exp:{isValid:l,message:'"exp" should be a number of seconds'},nbf:{isValid:l,message:'"nbf" should be a number of seconds'}};function b(e,t,r,n){if(!p(r))throw new Error('Expected "'+n+'" to be a plain object.');Object.keys(r).forEach(function(s){const o=e[s];if(o){if(!o.isValid(r[s]))throw new Error(o.message)}else if(!t)throw new Error('"'+s+'" is not allowed in "'+n+'"')})}const w={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},S=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];e.exports=function(e,t,r,s){"function"==typeof r?(s=r,r={}):r=r||{};const a="object"==typeof e&&!Buffer.isBuffer(e),c=Object.assign({alg:r.algorithm||"HS256",typ:a?"JWT":void 0,kid:r.keyid},r.header);function u(e){if(s)return s(e);throw e}if(!t&&"none"!==r.algorithm)return u(new Error("secretOrPrivateKey must have a value"));if(null!=t&&!(t instanceof d))try{t=E(t)}catch(e){try{t=m("string"==typeof t?Buffer.from(t):t)}catch(e){return u(new Error("secretOrPrivateKey is not valid key material"))}}if(c.alg.startsWith("HS")&&"secret"!==t.type)return u(new Error(`secretOrPrivateKey must be a symmetric key when using ${c.alg}`));if(/^(?:RS|PS|ES)/.test(c.alg)){if("private"!==t.type)return u(new Error(`secretOrPrivateKey must be an asymmetric key when using ${c.alg}`));if(!r.allowInsecureKeySizes&&!c.alg.startsWith("ES")&&void 0!==t.asymmetricKeyDetails&&t.asymmetricKeyDetails.modulusLength<2048)return u(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${c.alg}`))}if(void 0===e)return u(new Error("payload is required"));if(a){try{!function(e){b(g,!0,e,"payload")}(e)}catch(e){return u(e)}r.mutatePayload||(e=Object.assign({},e))}else{const t=S.filter(function(e){return void 0!==r[e]});if(t.length>0)return u(new Error("invalid "+t.join(",")+" option for "+typeof e+" payload"))}if(void 0!==e.exp&&void 0!==r.expiresIn)return u(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==e.nbf&&void 0!==r.notBefore)return u(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{!function(e){b(v,!1,e,"options")}(r)}catch(e){return u(e)}if(!r.allowInvalidAsymmetricKeyTypes)try{o(c.alg,t)}catch(e){return u(e)}const l=e.iat||Math.floor(Date.now()/1e3);if(r.noTimestamp?delete e.iat:a&&(e.iat=l),void 0!==r.notBefore){try{e.nbf=n(r.notBefore,l)}catch(e){return u(e)}if(void 0===e.nbf)return u(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(void 0!==r.expiresIn&&"object"==typeof e){try{e.exp=n(r.expiresIn,l)}catch(e){return u(e)}if(void 0===e.exp)return u(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(w).forEach(function(t){const n=w[t];if(void 0!==r[t]){if(void 0!==e[n])return u(new Error('Bad "options.'+t+'" option. The payload already has an "'+n+'" property.'));e[n]=r[t]}});const p=r.encoding||"utf8";if("function"!=typeof s){let n=i.sign({header:c,payload:e,secret:t,encoding:p});if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(c.alg)&&n.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${c.alg}`);return n}s=s&&h(s),i.createSign({header:c,privateKey:t,payload:e,encoding:p}).once("error",s).once("done",function(e){if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(c.alg)&&e.length<256)return s(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${c.alg}`));s(null,e)})}},3436:e=>{"use strict";const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),s=t.test(r);return n&&s&&(e=+e,r=+r),e===r?0:n&&!s?-1:s&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},3566:(e,t,r)=>{"use strict";const n=r(1314),s=r(7238),o=r(7743),i=r(236),a=r(8200),c=r(3765);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return s(e,r,u);case">":return o(e,r,u);case">=":return i(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},3569:(e,t,r)=>{var n,s=r(6608).Buffer,o=r(6982),i=r(9053),a=r(9023),c="secret must be a string or buffer",u="key must be a string or a buffer",l="function"==typeof o.createPublicKey;function p(e){if(!s.isBuffer(e)&&"string"!=typeof e){if(!l)throw m(u);if("object"!=typeof e)throw m(u);if("string"!=typeof e.type)throw m(u);if("string"!=typeof e.asymmetricKeyType)throw m(u);if("function"!=typeof e.export)throw m(u)}}function f(e){if(!s.isBuffer(e)&&"string"!=typeof e&&"object"!=typeof e)throw m("key must be a string, a buffer or an object")}function h(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function d(e){var t=4-(e=e.toString()).length%4;if(4!==t)for(var r=0;r<t;++r)e+="=";return e.replace(/\-/g,"+").replace(/_/g,"/")}function m(e){var t=[].slice.call(arguments,1),r=a.format.bind(a,e).apply(null,t);return new TypeError(r)}function E(e){var t;return t=e,s.isBuffer(t)||"string"==typeof t||(e=JSON.stringify(e)),e}function y(e){return function(t,r){!function(e){if(!s.isBuffer(e)){if("string"==typeof e)return e;if(!l)throw m(c);if("object"!=typeof e)throw m(c);if("secret"!==e.type)throw m(c);if("function"!=typeof e.export)throw m(c)}}(r),t=E(t);var n=o.createHmac("sha"+e,r);return h((n.update(t),n.digest("base64")))}}l&&(u+=" or a KeyObject",c+="or a KeyObject");var v="timingSafeEqual"in o?function(e,t){return e.byteLength===t.byteLength&&o.timingSafeEqual(e,t)}:function(e,t){return n||(n=r(9454)),n(e,t)};function g(e){return function(t,r,n){var o=y(e)(t,n);return v(s.from(r),s.from(o))}}function b(e){return function(t,r){f(r),t=E(t);var n=o.createSign("RSA-SHA"+e);return h((n.update(t),n.sign(r,"base64")))}}function w(e){return function(t,r,n){p(n),t=E(t),r=d(r);var s=o.createVerify("RSA-SHA"+e);return s.update(t),s.verify(n,r,"base64")}}function S(e){return function(t,r){f(r),t=E(t);var n=o.createSign("RSA-SHA"+e);return h((n.update(t),n.sign({key:r,padding:o.constants.RSA_PKCS1_PSS_PADDING,saltLength:o.constants.RSA_PSS_SALTLEN_DIGEST},"base64")))}}function $(e){return function(t,r,n){p(n),t=E(t),r=d(r);var s=o.createVerify("RSA-SHA"+e);return s.update(t),s.verify({key:n,padding:o.constants.RSA_PKCS1_PSS_PADDING,saltLength:o.constants.RSA_PSS_SALTLEN_DIGEST},r,"base64")}}function I(e){var t=b(e);return function(){var r=t.apply(null,arguments);return i.derToJose(r,"ES"+e)}}function R(e){var t=w(e);return function(r,n,s){return n=i.joseToDer(n,"ES"+e).toString("base64"),t(r,n,s)}}function O(){return function(){return""}}function N(){return function(e,t){return""===t}}e.exports=function(e){var t={hs:y,rs:b,ps:S,es:I,none:O},r={hs:g,rs:w,ps:$,es:R,none:N},n=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!n)throw m('"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".',e);var s=(n[1]||n[3]).toLowerCase(),o=n[2];return{sign:t[s](o),verify:r[s](o)}}},3742:(e,t,r)=>{var n=r(3866);e.exports=function(e,t){var r=t||Math.floor(Date.now()/1e3);if("string"==typeof e){var s=n(e);if(void 0===s)return;return Math.floor(r+s/1e3)}return"number"==typeof e?r+e:void 0}},3765:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>n(e,t,r)<=0},3835:(e,t,r)=>{"use strict";const n=r(2771),s=r(2326);e.exports=(e,t,r)=>{let o=null,i=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new n(o,r)))}),o}},3866:e=>{var t=1e3,r=60*t,n=60*r,s=24*n,o=7*s;function i(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}e.exports=function(e,a){a=a||{};var c,u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*o;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===l&&isFinite(e))return a.long?(c=e,(u=Math.abs(c))>=s?i(c,u,s,"day"):u>=n?i(c,u,n,"hour"):u>=r?i(c,u,r,"minute"):u>=t?i(c,u,t,"second"):c+" ms"):function(e){var o=Math.abs(e);return o>=s?Math.round(e/s)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},4104:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t,r)=>{const s=new n(e,r),o=new n(t,r);return s.compare(o)||s.compareBuild(o)}},4159:e=>{"use strict";const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},4163:(e,t,r)=>{"use strict";const n=r(2326);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},4240:(e,t,r)=>{"use strict";const n=r(4104);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},4247:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t)=>new n(e,t).major},4397:(e,t,r)=>{var n=r(6608).Buffer,s=r(1882),o=r(3569),i=r(2203),a=r(7265),c=r(9023);function u(e,t){return n.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function l(e){var t=e.header,r=e.payload,n=e.secret||e.privateKey,s=e.encoding,i=o(t.alg),l=function(e,t,r){r=r||"utf8";var n=u(a(e),"binary"),s=u(a(t),r);return c.format("%s.%s",n,s)}(t,r,s),p=i.sign(l,n);return c.format("%s.%s",l,p)}function p(e){var t=e.secret||e.privateKey||e.key,r=new s(t);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=r,this.payload=new s(e.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}c.inherits(p,i),p.prototype.sign=function(){try{var e=l({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},p.sign=l,e.exports=p},4519:e=>{"use strict";e.exports=JSON.parse('{"name":"dotenv","version":"16.6.1","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')},4678:(e,t,r)=>{"use strict";const n=r(2326);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},5250:e=>{var t=1/0,r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,a=Object.prototype.toString;function c(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return"number"==typeof e&&e==function(e){var u=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==a.call(e)}(e))return NaN;if(c(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var u=s.test(e);return u||o.test(e)?i(e.slice(2),u?2:8):n.test(e)?NaN:+e}(e))===t||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),l=u%1;return u==u?l?u-l:u:0}(e)}},5357:e=>{var t=1/0,r=9007199254740991,n=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=/^(?:0|[1-9]\d*)$/,c=parseInt;function u(e){return e!=e}var l,p,f=Object.prototype,h=f.hasOwnProperty,d=f.toString,m=f.propertyIsEnumerable,E=(l=Object.keys,p=Object,function(e){return l(p(e))}),y=Math.max;function v(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}var g=Array.isArray;function b(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=w(e)?d.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function S(e){return!!e&&"object"==typeof e}e.exports=function(e,r,a,l){var p;e=b(e)?e:(p=e)?function(e,t){return function(e,t){for(var r=-1,n=e?e.length:0,s=Array(n);++r<n;)s[r]=t(e[r]);return s}(t,function(t){return e[t]})}(p,function(e){return b(e)?function(e,t){var r=g(e)||function(e){return function(e){return S(e)&&b(e)}(e)&&h.call(e,"callee")&&(!m.call(e,"callee")||"[object Arguments]"==d.call(e))}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,s=!!n;for(var o in e)!t&&!h.call(e,o)||s&&("length"==o||v(o,n))||r.push(o);return r}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||f))return E(e);var t,r,n=[];for(var s in Object(e))h.call(e,s)&&"constructor"!=s&&n.push(s);return n}(e)}(p)):[],a=a&&!l?function(e){var r=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||S(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(w(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=w(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var r=o.test(e);return r||i.test(e)?c(e.slice(2),r?2:8):s.test(e)?NaN:+e}(e))===t||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),a=r%1;return r==r?a?r-a:r:0}(a):0;var $=e.length;return a<0&&(a=y($+a,0)),function(e){return"string"==typeof e||!g(e)&&S(e)&&"[object String]"==d.call(e)}(e)?a<=$&&e.indexOf(r,a)>-1:!!$&&function(e,t,r){if(t!=t)return function(e,t,r){for(var n=e.length,s=r+-1;++s<n;)if(t(e[s],s,e))return s;return-1}(e,u,r);for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}(e,r,a)>-1}},5363:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t)=>new n(e,t).minor},5469:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},5582:(e,t,r)=>{var n=r(32);e.exports=n.satisfies(process.version,"^6.12.0 || >=8.0.0")},5585:(e,t,r)=>{"use strict";const n=r(2771),s=r(1289),{safeRe:o,t:i}=r(6999);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];let s;for(;(s=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),n.lastIndex=s.index+s[1].length+s[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);if(null===r)return null;const a=r[2],c=r[3]||"0",u=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",p=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${c}.${u}${l}${p}`,t)}},5612:(e,t,r)=>{const n=r(32);e.exports=n.satisfies(process.version,">=16.9.0")},6002:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t)=>n(e,t,!0)},6052:e=>{var t,r,n=Function.prototype,s=Object.prototype,o=n.toString,i=s.hasOwnProperty,a=o.call(Object),c=s.toString,u=(t=Object.getPrototypeOf,r=Object,function(e){return t(r(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=c.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=u(e);if(null===t)return!0;var r=i.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&o.call(r)==a}},6430:e=>{var t=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};(t.prototype=Object.create(Error.prototype)).constructor=t,e.exports=t},6460:(e,t,r)=>{"use strict";const n=r(6640);e.exports=(e,t,r)=>n(e,t,">",r)},6608:(e,t,r)=>{var n=r(181),s=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return s(e,t,r)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i),i.prototype=Object.create(s.prototype),o(s,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},6640:(e,t,r)=>{"use strict";const n=r(2771),s=r(9003),{ANY:o}=s,i=r(2326),a=r(4163),c=r(7743),u=r(8200),l=r(3765),p=r(236);e.exports=(e,t,r,f)=>{let h,d,m,E,y;switch(e=new n(e,f),t=new i(t,f),r){case">":h=c,d=l,m=u,E=">",y=">=";break;case"<":h=u,d=p,m=c,E="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,a=null;if(n.forEach(e=>{e.semver===o&&(e=new s(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,f)?i=e:m(e.semver,a.semver,f)&&(a=e)}),i.operator===E||i.operator===y)return!1;if((!a.operator||a.operator===E)&&d(e,a.semver))return!1;if(a.operator===y&&m(e,a.semver))return!1}return!0}},6782:e=>{var t=Object.prototype.toString;e.exports=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Boolean]"==t.call(e)}},6928:e=>{"use strict";e.exports=require("path")},6982:e=>{"use strict";e.exports=require("crypto")},6999:(e,t,r)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=r(229),i=r(4159),a=(t=e.exports={}).re=[],c=t.safeRe=[],u=t.src=[],l=t.safeSrc=[],p=t.t={};let f=0;const h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[h,s]],m=(e,t,r)=>{const n=(e=>{for(const[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),s=f++;i(e,s,t),p[e]=s,u[s]=t,l[s]=n,a[s]=new RegExp(t,r?"g":void 0),c[s]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),m("MAINVERSION",`(${u[p.NUMERICIDENTIFIER]})\\.(${u[p.NUMERICIDENTIFIER]})\\.(${u[p.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[p.NUMERICIDENTIFIERLOOSE]})\\.(${u[p.NUMERICIDENTIFIERLOOSE]})\\.(${u[p.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[p.NONNUMERICIDENTIFIER]}|${u[p.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[p.NONNUMERICIDENTIFIER]}|${u[p.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${u[p.PRERELEASEIDENTIFIER]}(?:\\.${u[p.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[p.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${h}+`),m("BUILD",`(?:\\+(${u[p.BUILDIDENTIFIER]}(?:\\.${u[p.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[p.MAINVERSION]}${u[p.PRERELEASE]}?${u[p.BUILD]}?`),m("FULL",`^${u[p.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[p.MAINVERSIONLOOSE]}${u[p.PRERELEASELOOSE]}?${u[p.BUILD]}?`),m("LOOSE",`^${u[p.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[p.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[p.XRANGEIDENTIFIER]})(?:\\.(${u[p.XRANGEIDENTIFIER]})(?:\\.(${u[p.XRANGEIDENTIFIER]})(?:${u[p.PRERELEASE]})?${u[p.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[p.XRANGEIDENTIFIERLOOSE]})(?:${u[p.PRERELEASELOOSE]})?${u[p.BUILD]}?)?)?`),m("XRANGE",`^${u[p.GTLT]}\\s*${u[p.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[p.GTLT]}\\s*${u[p.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${u[p.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[p.COERCEPLAIN]+`(?:${u[p.PRERELEASE]})?`+`(?:${u[p.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",u[p.COERCE],!0),m("COERCERTLFULL",u[p.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[p.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[p.LONETILDE]}${u[p.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[p.LONETILDE]}${u[p.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[p.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[p.LONECARET]}${u[p.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[p.LONECARET]}${u[p.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[p.GTLT]}\\s*(${u[p.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[p.GTLT]}\\s*(${u[p.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[p.GTLT]}\\s*(${u[p.LOOSEPLAIN]}|${u[p.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[p.XRANGEPLAIN]})\\s+-\\s+(${u[p.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[p.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},7014:(e,t,r)=>{const n=r(6430),s=r(9387),o=r(7147),i=r(7661),a=r(3742),c=r(9572),u=r(5582),l=r(1525),{KeyObject:p,createSecretKey:f,createPublicKey:h}=r(6982),d=["RS256","RS384","RS512"],m=["ES256","ES384","ES512"],E=["RS256","RS384","RS512"],y=["HS256","HS384","HS512"];u&&(d.splice(d.length,0,"PS256","PS384","PS512"),E.splice(E.length,0,"PS256","PS384","PS512")),e.exports=function(e,t,r,u){let v;if("function"!=typeof r||u||(u=r,r={}),r||(r={}),r=Object.assign({},r),v=u||function(e,t){if(e)throw e;return t},r.clockTimestamp&&"number"!=typeof r.clockTimestamp)return v(new n("clockTimestamp must be a number"));if(void 0!==r.nonce&&("string"!=typeof r.nonce||""===r.nonce.trim()))return v(new n("nonce must be a non-empty string"));if(void 0!==r.allowInvalidAsymmetricKeyTypes&&"boolean"!=typeof r.allowInvalidAsymmetricKeyTypes)return v(new n("allowInvalidAsymmetricKeyTypes must be a boolean"));const g=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return v(new n("jwt must be provided"));if("string"!=typeof e)return v(new n("jwt must be a string"));const b=e.split(".");if(3!==b.length)return v(new n("jwt malformed"));let w;try{w=i(e,{complete:!0})}catch(e){return v(e)}if(!w)return v(new n("invalid token"));const S=w.header;let $;if("function"==typeof t){if(!u)return v(new n("verify must be called asynchronous if secret or public key is provided as a callback"));$=t}else $=function(e,r){return r(null,t)};return $(S,function(t,i){if(t)return v(new n("error in secret or public key callback: "+t.message));const u=""!==b[2].trim();if(!u&&i)return v(new n("jwt signature is required"));if(u&&!i)return v(new n("secret or public key must be provided"));if(!u&&!r.algorithms)return v(new n('please specify "none" in "algorithms" to verify unsigned tokens'));if(null!=i&&!(i instanceof p))try{i=h(i)}catch(e){try{i=f("string"==typeof i?Buffer.from(i):i)}catch(e){return v(new n("secretOrPublicKey is not valid key material"))}}if(r.algorithms||("secret"===i.type?r.algorithms=y:["rsa","rsa-pss"].includes(i.asymmetricKeyType)?r.algorithms=E:"ec"===i.asymmetricKeyType?r.algorithms=m:r.algorithms=d),-1===r.algorithms.indexOf(w.header.alg))return v(new n("invalid algorithm"));if(S.alg.startsWith("HS")&&"secret"!==i.type)return v(new n(`secretOrPublicKey must be a symmetric key when using ${S.alg}`));if(/^(?:RS|PS|ES)/.test(S.alg)&&"public"!==i.type)return v(new n(`secretOrPublicKey must be an asymmetric key when using ${S.alg}`));if(!r.allowInvalidAsymmetricKeyTypes)try{c(S.alg,i)}catch(e){return v(e)}let $;try{$=l.verify(e,w.header.alg,i)}catch(e){return v(e)}if(!$)return v(new n("invalid signature"));const I=w.payload;if(void 0!==I.nbf&&!r.ignoreNotBefore){if("number"!=typeof I.nbf)return v(new n("invalid nbf value"));if(I.nbf>g+(r.clockTolerance||0))return v(new s("jwt not active",new Date(1e3*I.nbf)))}if(void 0!==I.exp&&!r.ignoreExpiration){if("number"!=typeof I.exp)return v(new n("invalid exp value"));if(g>=I.exp+(r.clockTolerance||0))return v(new o("jwt expired",new Date(1e3*I.exp)))}if(r.audience){const e=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(I.aud)?I.aud:[I.aud]).some(function(t){return e.some(function(e){return e instanceof RegExp?e.test(t):e===t})}))return v(new n("jwt audience invalid. expected: "+e.join(" or ")))}if(r.issuer&&("string"==typeof r.issuer&&I.iss!==r.issuer||Array.isArray(r.issuer)&&-1===r.issuer.indexOf(I.iss)))return v(new n("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&I.sub!==r.subject)return v(new n("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&I.jti!==r.jwtid)return v(new n("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&I.nonce!==r.nonce)return v(new n("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if("number"!=typeof I.iat)return v(new n("iat required when maxAge is specified"));const e=a(r.maxAge,I.iat);if(void 0===e)return v(new n('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(g>=e+(r.clockTolerance||0))return v(new o("maxAge exceeded",new Date(1e3*e)))}if(!0===r.complete){const e=w.signature;return v(null,{header:S,payload:I,signature:e})}return v(null,I)})}},7147:(e,t,r)=>{var n=r(6430),s=function(e,t){n.call(this,e),this.name="TokenExpiredError",this.expiredAt=t};(s.prototype=Object.create(n.prototype)).constructor=s,e.exports=s},7148:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t)=>new n(e,t).patch},7238:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>0!==n(e,t,r)},7256:(e,t,r)=>{"use strict";const n=r(4104);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},7265:(e,t,r)=>{var n=r(181).Buffer;e.exports=function(e){return"string"==typeof e?e:"number"==typeof e||n.isBuffer(e)?e.toString():JSON.stringify(e)}},7619:(e,t,r)=>{e.exports={decode:r(7661),verify:r(7014),sign:r(3418),JsonWebTokenError:r(6430),NotBeforeError:r(9387),TokenExpiredError:r(7147)}},7661:(e,t,r)=>{var n=r(1525);e.exports=function(e,t){t=t||{};var r=n.decode(e,t);if(!r)return null;var s=r.payload;if("string"==typeof s)try{var o=JSON.parse(s);null!==o&&"object"==typeof o&&(s=o)}catch(e){}return!0===t.complete?{header:r.header,payload:s,signature:r.signature}:s}},7713:(e,t,r)=>{"use strict";const n=r(2326);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},7743:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>n(e,t,r)>0},8050:(e,t,r)=>{const n=r(32);e.exports=n.satisfies(process.version,">=15.7.0")},8094:e=>{var t=Object.prototype.toString;e.exports=function(e){return"number"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Number]"==t.call(e)}},8200:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>n(e,t,r)<0},8430:e=>{var t=1/0,r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,a=Object.prototype.toString;function c(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return function(e,u){var l;if("function"!=typeof u)throw new TypeError("Expected a function");return e=function(e){var u=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==a.call(e)}(e))return NaN;if(c(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var u=s.test(e);return u||o.test(e)?i(e.slice(2),u?2:8):n.test(e)?NaN:+e}(e))===t||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),l=u%1;return u==u?l?u-l:u:0}(e),function(){return--e>0&&(l=u.apply(this,arguments)),e<=1&&(u=void 0),l}}(2,e)}},8583:(e,t,r)=>{const n=r(9896),s=r(6928),o=r(857),i=r(6982),a=r(4519).version,c=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function u(e){console.log(`[dotenv@${a}][DEBUG] ${e}`)}function l(e){console.log(`[dotenv@${a}] ${e}`)}function p(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function f(e,t){let r;try{r=new URL(t)}catch(e){if("ERR_INVALID_URL"===e.code){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw e.code="INVALID_DOTENV_KEY",e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");throw e.code="INVALID_DOTENV_KEY",e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");throw e.code="INVALID_DOTENV_KEY",e}const o=`DOTENV_VAULT_${s.toUpperCase()}`,i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw e.code="NOT_FOUND_DOTENV_ENVIRONMENT",e}return{ciphertext:i,key:n}}function h(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(const r of e.path)n.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=s.resolve(process.cwd(),".env.vault");return n.existsSync(t)?t:null}function d(e){return"~"===e[0]?s.join(o.homedir(),e.slice(1)):e}const m={configDotenv:function(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug),i=!e||!("quiet"in e)||e.quiet;e&&e.encoding?r=e.encoding:o&&u("No encoding is specified. UTF-8 is used by default");let a,c=[t];if(e&&e.path)if(Array.isArray(e.path)){c=[];for(const t of e.path)c.push(d(t))}else c=[d(e.path)];const p={};for(const t of c)try{const s=m.parse(n.readFileSync(t,{encoding:r}));m.populate(p,s,e)}catch(e){o&&u(`Failed to load ${t} ${e.message}`),a=e}let f=process.env;if(e&&null!=e.processEnv&&(f=e.processEnv),m.populate(f,p,e),o||!i){const e=Object.keys(p).length,t=[];for(const e of c)try{const r=s.relative(process.cwd(),e);t.push(r)}catch(t){o&&u(`Failed to load ${e} ${t.message}`),a=t}l(`injecting env (${e}) from ${t.join(",")}`)}return a?{parsed:p,error:a}:{parsed:p}},_configVault:function(e){const t=Boolean(e&&e.debug),r=!e||!("quiet"in e)||e.quiet;!t&&r||l("Loading env from encrypted .env.vault");const n=m._parseVault(e);let s=process.env;return e&&null!=e.processEnv&&(s=e.processEnv),m.populate(s,n,e),{parsed:n}},_parseVault:function(e){const t=h(e=e||{});e.path=t;const r=m.configDotenv(e);if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code="MISSING_DATA",e}const n=p(e).split(","),s=n.length;let o;for(let e=0;e<s;e++)try{const t=f(r,n[e].trim());o=m.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=s)throw t}return m.parse(o)},config:function(e){if(0===p(e).length)return m.configDotenv(e);const t=h(e);return t?m._configVault(e):(r=`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`,console.log(`[dotenv@${a}][WARN] ${r}`),m.configDotenv(e));var r},decrypt:function(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12),o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);return e.setAuthTag(o),`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError,r="Invalid key length"===e.message,n="Unsupported state or unable to authenticate data"===e.message;if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw e.code="INVALID_DOTENV_KEY",e}if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw e.code="DECRYPTION_FAILED",e}throw e}},parse:function(e){const t={};let r,n=e.toString();for(n=n.replace(/\r\n?/gm,"\n");null!=(r=c.exec(n));){const e=r[1];let n=r[2]||"";n=n.trim();const s=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),'"'===s&&(n=n.replace(/\\n/g,"\n"),n=n.replace(/\\r/g,"\r")),t[e]=n}return t},populate:function(e,t,r={}){const n=Boolean(r&&r.debug),s=Boolean(r&&r.override);if("object"!=typeof t){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw e.code="OBJECT_REQUIRED",e}for(const r of Object.keys(t))Object.prototype.hasOwnProperty.call(e,r)?(!0===s&&(e[r]=t[r]),n&&u(!0===s?`"${r}" is already defined and WAS overwritten`:`"${r}" is already defined and was NOT overwritten`)):e[r]=t[r]}};e.exports.configDotenv=m.configDotenv,e.exports._configVault=m._configVault,e.exports._parseVault=m._parseVault,e.exports.config=m.config,e.exports.decrypt=m.decrypt,e.exports.parse=m.parse,e.exports.populate=m.populate,e.exports=m},9003:(e,t,r)=>{"use strict";const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=s;const o=r(2860),{safeRe:i,t:a}=r(6999),c=r(3566),u=r(4159),l=r(2771),p=r(2326)},9023:e=>{"use strict";e.exports=require("util")},9053:(e,t,r)=>{"use strict";var n=r(6608).Buffer,s=r(2188);function o(e){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function i(e,t,r){for(var n=0;t+n<r&&0===e[t+n];)++n;return e[t+n]>=128&&--n,n}e.exports={derToJose:function(e,t){e=o(e);var r=s(t),i=r+1,a=e.length,c=0;if(48!==e[c++])throw new Error('Could not find expected "seq"');var u=e[c++];if(129===u&&(u=e[c++]),a-c<u)throw new Error('"seq" specified length of "'+u+'", only "'+(a-c)+'" remaining');if(2!==e[c++])throw new Error('Could not find expected "int" for "r"');var l=e[c++];if(a-c-2<l)throw new Error('"r" specified length of "'+l+'", only "'+(a-c-2)+'" available');if(i<l)throw new Error('"r" specified length of "'+l+'", max of "'+i+'" is acceptable');var p=c;if(c+=l,2!==e[c++])throw new Error('Could not find expected "int" for "s"');var f=e[c++];if(a-c!==f)throw new Error('"s" specified length of "'+f+'", expected "'+(a-c)+'"');if(i<f)throw new Error('"s" specified length of "'+f+'", max of "'+i+'" is acceptable');var h=c;if((c+=f)!==a)throw new Error('Expected to consume entire buffer, but "'+(a-c)+'" bytes remain');var d=r-l,m=r-f,E=n.allocUnsafe(d+l+m+f);for(c=0;c<d;++c)E[c]=0;e.copy(E,c,p+Math.max(-d,0),p+l);for(var y=c=r;c<y+m;++c)E[c]=0;return e.copy(E,c,h+Math.max(-m,0),h+f),(E=E.toString("base64")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},joseToDer:function(e,t){e=o(e);var r=s(t),a=e.length;if(a!==2*r)throw new TypeError('"'+t+'" signatures must be "'+2*r+'" bytes, saw "'+a+'"');var c=i(e,0,r),u=i(e,r,e.length),l=r-c,p=r-u,f=2+l+1+1+p,h=f<128,d=n.allocUnsafe((h?2:3)+f),m=0;return d[m++]=48,h?d[m++]=f:(d[m++]=129,d[m++]=255&f),d[m++]=2,d[m++]=l,c<0?(d[m++]=0,m+=e.copy(d,m,0,r)):m+=e.copy(d,m,c,r),d[m++]=2,d[m++]=p,u<0?(d[m++]=0,e.copy(d,m,r)):e.copy(d,m,r+u),d}}},9140:(e,t,r)=>{"use strict";const n=r(1289);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},9313:(e,t,r)=>{"use strict";const n=r(2771),s=r(2326);e.exports=(e,t,r)=>{let o=null,i=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new n(o,r)))}),o}},9387:(e,t,r)=>{var n=r(6430),s=function(e,t){n.call(this,e),this.name="NotBeforeError",this.date=t};(s.prototype=Object.create(n.prototype)).constructor=s,e.exports=s},9454:(e,t,r)=>{"use strict";var n=r(181).Buffer,s=r(181).SlowBuffer;function o(e,t){if(!n.isBuffer(e)||!n.isBuffer(t))return!1;if(e.length!==t.length)return!1;for(var r=0,s=0;s<e.length;s++)r|=e[s]^t[s];return 0===r}e.exports=o,o.install=function(){n.prototype.equal=s.prototype.equal=function(e){return o(this,e)}};var i=n.prototype.equal,a=s.prototype.equal;o.restore=function(){n.prototype.equal=i,s.prototype.equal=a}},9572:(e,t,r)=>{const n=r(8050),s=r(5612),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},i={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};e.exports=function(e,t){if(!e||!t)return;const r=t.asymmetricKeyType;if(!r)return;const a=o[r];if(!a)throw new Error(`Unknown key type "${r}".`);if(!a.includes(e))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${a.join(", ")}.`);if(n)switch(r){case"ec":const r=t.asymmetricKeyDetails.namedCurve,n=i[e];if(r!==n)throw new Error(`"alg" parameter "${e}" requires curve "${n}".`);break;case"rsa-pss":if(s){const r=parseInt(e.slice(-3),10),{hashAlgorithm:n,mgf1HashAlgorithm:s,saltLength:o}=t.asymmetricKeyDetails;if(n!==`sha${r}`||s!==n)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`);if(void 0!==o&&o>r>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}}}},9896:e=>{"use strict";e.exports=require("fs")},9903:(e,t,r)=>{"use strict";const n=r(1289);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{apiKeyAuthMiddleware:()=>a,jwtAuthMiddleware:()=>l});var e=r(8583),t=r.n(e);const s=require("zod"),o=s.z.object({apiKey:s.z.string().optional(),headerName:s.z.string().optional(),validateApiKey:s.z.function().args(s.z.string()).returns(s.z.promise(s.z.boolean())).optional()}).strict().refine(e=>void 0!==e.apiKey||void 0!==e.validateApiKey,{message:"Either 'apiKey' or 'validateApiKey' must be provided"}).refine(e=>!(void 0!==e.apiKey&&void 0!==e.validateApiKey),{message:"'apiKey' and 'validateApiKey' are mutually exclusive - provide only one"}),i="Unauthorized: Missing or invalid API key";function a(e){const t=o.safeParse(e);if(!t.success){const r="apiKey"in e,n="validateApiKey"in e;throw r&&n?new Error("'apiKey' and 'validateApiKey' are mutually exclusive - provide only one"):r||n?new Error(`Invalid configuration: ${t.error.message}`):new Error("Either 'apiKey' or 'validateApiKey' must be provided")}const r=e.headerName??"x-api-key",n="apiKey"in e?e.apiKey:void 0,s="validateApiKey"in e?e.validateApiKey:void 0;return async(t,o,a)=>{const c=t.header(r);if(c)if("apiKey"in e&&c!==n)o.status(401).json({error:i});else{if(s&&!await s(c))return void o.status(401).json({error:i});a()}else o.status(401).json({error:i})}}var c=r(7619),u=r.n(c);function l(e){return(t,r,n)=>{const s=t.header("Authorization");if(!s||!s.startsWith("Bearer "))return void r.status(401).json({error:"Unauthorized: Missing or malformed Authorization header"});const o=s.slice(7).trim();if(o)try{const{secret:r,...s}=e,i=u().verify(o,r,s);t.user=i,n()}catch(e){r.status(401).json({error:"Unauthorized: Invalid or expired token"})}else r.status(401).json({error:"Unauthorized: Missing access token"})}}t().config()})(),n})());
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,()=>(()=>{var e={32:(e,t,r)=>{"use strict";const n=r(6999),s=r(229),o=r(2771),i=r(3436),a=r(1289),c=r(9140),u=r(9903),l=r(826),p=r(2223),f=r(4247),h=r(5363),d=r(7148),m=r(3306),E=r(5469),y=r(1861),g=r(6002),v=r(4104),b=r(7256),w=r(4240),S=r(7743),$=r(8200),I=r(1314),R=r(7238),O=r(236),N=r(3765),A=r(3566),T=r(5585),x=r(9003),L=r(2326),j=r(4163),P=r(4678),D=r(9313),_=r(3835),k=r(898),C=r(1913),M=r(6640),K=r(6460),V=r(1573),G=r(7713),B=r(2468),F=r(2809);e.exports={parse:a,valid:c,clean:u,inc:l,diff:p,major:f,minor:h,patch:d,prerelease:m,compare:E,rcompare:y,compareLoose:g,compareBuild:v,sort:b,rsort:w,gt:S,lt:$,eq:I,neq:R,gte:O,lte:N,cmp:A,coerce:T,Comparator:x,Range:L,satisfies:j,toComparators:P,maxSatisfying:D,minSatisfying:_,minVersion:k,validRange:C,outside:M,gtr:K,ltr:V,intersects:G,simplifyRange:B,subset:F,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},169:(e,t,r)=>{var n=r(6608).Buffer,s=r(1882),o=r(3569),i=r(2203),a=r(7265),c=r(9023),u=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function l(e){var t=e.split(".",1)[0];return function(e){if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e))return e;try{return JSON.parse(e)}catch(e){return}}(n.from(t,"base64").toString("binary"))}function p(e){return e.split(".")[2]}function f(e){return u.test(e)&&!!l(e)}function h(e,t,r){if(!t){var n=new Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}var s=p(e=a(e)),i=function(e){return e.split(".",2).join(".")}(e);return o(t).verify(i,s,r)}function d(e,t){if(t=t||{},!f(e=a(e)))return null;var r=l(e);if(!r)return null;var s=function(e,t){t=t||"utf8";var r=e.split(".")[1];return n.from(r,"base64").toString(t)}(e);return("JWT"===r.typ||t.json)&&(s=JSON.parse(s,t.encoding)),{header:r,payload:s,signature:p(e)}}function m(e){var t=(e=e||{}).secret||e.publicKey||e.key,r=new s(t);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=r,this.signature=new s(e.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}c.inherits(m,i),m.prototype.verify=function(){try{var e=h(this.signature.buffer,this.algorithm,this.key.buffer),t=d(this.signature.buffer,this.encoding);return this.emit("done",e,t),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},m.decode=d,m.isValid=f,m.verify=h,e.exports=m},181:e=>{"use strict";e.exports=require("buffer")},229:e=>{"use strict";const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},236:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>n(e,t,r)>=0},826:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t,r,s,o)=>{"string"==typeof r&&(o=s,s=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,s,o).version}catch(e){return null}}},857:e=>{"use strict";e.exports=require("os")},898:(e,t,r)=>{"use strict";const n=r(2771),s=r(2326),o=r(7743);e.exports=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let i=null;s.forEach(e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!o(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!i||r&&!o(r,i)||(r=i)}return r&&e.test(r)?r:null}},1251:e=>{var t=Object.prototype.toString,r=Array.isArray;e.exports=function(e){return"string"==typeof e||!r(e)&&function(e){return!!e&&"object"==typeof e}(e)&&"[object String]"==t.call(e)}},1289:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},1314:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>0===n(e,t,r)},1525:(e,t,r)=>{var n=r(4397),s=r(169);t.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],t.sign=n.sign,t.verify=s.verify,t.decode=s.decode,t.isValid=s.isValid,t.createSign=function(e){return new n(e)},t.createVerify=function(e){return new s(e)}},1573:(e,t,r)=>{"use strict";const n=r(6640);e.exports=(e,t,r)=>n(e,t,"<",r)},1861:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>n(t,e,r)},1882:(e,t,r)=>{var n=r(6608).Buffer,s=r(2203);function o(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=n.alloc(0),this;if("function"==typeof e.pipe)return this.buffer=n.alloc(0),e.pipe(this),this;if(e.length||"object"==typeof e)return this.buffer=e,this.writable=!1,process.nextTick(function(){this.emit("end",e),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof e+")")}r(9023).inherits(o,s),o.prototype.write=function(e){this.buffer=n.concat([this.buffer,n.from(e)]),this.emit("data",e)},o.prototype.end=function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},e.exports=o},1913:(e,t,r)=>{"use strict";const n=r(2326);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},2188:e=>{"use strict";function t(e){return(e/8|0)+(e%8==0?0:1)}var r={ES256:t(256),ES384:t(384),ES512:t(521)};e.exports=function(e){var t=r[e];if(t)return t;throw new Error('Unknown algorithm "'+e+'"')}},2203:e=>{"use strict";e.exports=require("stream")},2223:(e,t,r)=>{"use strict";const n=r(1289);e.exports=(e,t)=>{const r=n(e,null,!0),s=n(t,null,!0),o=r.compare(s);if(0===o)return null;const i=o>0,a=i?r:s,c=i?s:r,u=!!a.prerelease.length;if(c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(a))return c.minor&&!c.patch?"minor":"patch"}const l=u?"pre":"";return r.major!==s.major?l+"major":r.minor!==s.minor?l+"minor":r.patch!==s.patch?l+"patch":"prerelease"}},2326:(e,t,r)=>{"use strict";const n=/\s+/g;class s{constructor(e,t){if(t=i(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&E))+":"+e,r=o.get(t);if(r)return r;const n=this.options.loose,s=n?l[p.HYPHENRANGELOOSE]:l[p.HYPHENRANGE];e=e.replace(s,x(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(l[p.COMPARATORTRIM],f),c("comparator trim",e),e=e.replace(l[p.TILDETRIM],h),c("tilde trim",e),e=e.replace(l[p.CARETTRIM],d),c("caret trim",e);let i=e.split(" ").map(e=>b(e,this.options)).join(" ").split(/\s+/).map(e=>T(e,this.options));n&&(i=i.filter(e=>(c("loose invalid filter",e,this.options),!!e.match(l[p.COMPARATORLOOSE])))),c("range list",i);const u=new Map,g=i.map(e=>new a(e,this.options));for(const e of g){if(y(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const v=[...u.values()];return o.set(t,v),v}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some(r=>v(r,t)&&e.set.some(e=>v(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}e.exports=s;const o=new(r(2351)),i=r(2860),a=r(9003),c=r(4159),u=r(2771),{safeRe:l,t:p,comparatorTrimReplace:f,tildeTrimReplace:h,caretTrimReplace:d}=r(6999),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:E}=r(229),y=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,v=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every(e=>s.intersects(e,t)),s=n.pop();return r},b=(e,t)=>(c("comp",e,t),e=I(e,t),c("caret",e),e=S(e,t),c("tildes",e),e=O(e,t),c("xrange",e),e=A(e,t),c("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map(e=>$(e,t)).join(" "),$=(e,t)=>{const r=t.loose?l[p.TILDELOOSE]:l[p.TILDE];return e.replace(r,(t,r,n,s,o)=>{let i;return c("tilde",e,t,r,n,s,o),w(r)?i="":w(n)?i=`>=${r}.0.0 <${+r+1}.0.0-0`:w(s)?i=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(c("replaceTilde pr",o),i=`>=${r}.${n}.${s}-${o} <${r}.${+n+1}.0-0`):i=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,c("tilde return",i),i})},I=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{c("caret",e,t);const r=t.loose?l[p.CARETLOOSE]:l[p.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,s,o,i)=>{let a;return c("caret",e,t,r,s,o,i),w(r)?a="":w(s)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(o)?a="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:i?(c("replaceCaret pr",i),a="0"===r?"0"===s?`>=${r}.${s}.${o}-${i} <${r}.${s}.${+o+1}-0`:`>=${r}.${s}.${o}-${i} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${o}-${i} <${+r+1}.0.0-0`):(c("no pr"),a="0"===r?"0"===s?`>=${r}.${s}.${o}${n} <${r}.${s}.${+o+1}-0`:`>=${r}.${s}.${o}${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${o} <${+r+1}.0.0-0`),c("caret return",a),a})},O=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map(e=>N(e,t)).join(" ")),N=(e,t)=>{e=e.trim();const r=t.loose?l[p.XRANGELOOSE]:l[p.XRANGE];return e.replace(r,(r,n,s,o,i,a)=>{c("xRange",e,r,n,s,o,i,a);const u=w(s),l=u||w(o),p=l||w(i),f=p;return"="===n&&f&&(n=""),a=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(l&&(o=0),i=0,">"===n?(n=">=",l?(s=+s+1,o=0,i=0):(o=+o+1,i=0)):"<="===n&&(n="<",l?s=+s+1:o=+o+1),"<"===n&&(a="-0"),r=`${n+s}.${o}.${i}${a}`):l?r=`>=${s}.0.0${a} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${o}.0${a} <${s}.${+o+1}.0-0`),c("xRange return",r),r})},A=(e,t)=>(c("replaceStars",e,t),e.trim().replace(l[p.STAR],"")),T=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?p.GTE0PRE:p.GTE0],"")),x=e=>(t,r,n,s,o,i,a,c,u,l,p,f)=>`${r=w(n)?"":w(s)?`>=${n}.0.0${e?"-0":""}`:w(o)?`>=${n}.${s}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=w(u)?"":w(l)?`<${+u+1}.0.0-0`:w(p)?`<${u}.${+l+1}.0-0`:f?`<=${u}.${l}.${p}-${f}`:e?`<${u}.${l}.${+p+1}-0`:`<=${c}`}`.trim(),L=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(c(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},2351:e=>{"use strict";e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},2468:(e,t,r)=>{"use strict";const n=r(4163),s=r(5469);e.exports=(e,t,r)=>{const o=[];let i=null,a=null;const c=e.sort((e,t)=>s(e,t,r));for(const e of c)n(e,t,r)?(a=e,i||(i=e)):(a&&o.push([i,a]),a=null,i=null);i&&o.push([i,null]);const u=[];for(const[e,t]of o)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return l.length<p.length?l:t}},2771:(e,t,r)=>{"use strict";const n=r(4159),{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=r(229),{safeRe:i,t:a}=r(6999),c=r(2860),{compareIdentifiers:u}=r(3436);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],s=e.prerelease[t];if(n("prerelease compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return u(r,s)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],s=e.build[t];if(n("build compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return u(r,s)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[a.PRERELEASELOOSE]:i[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},2809:(e,t,r)=>{"use strict";const n=r(2326),s=r(9003),{ANY:o}=s,i=r(4163),a=r(5469),c=[new s(">=0.0.0-0")],u=[new s(">=0.0.0")],l=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?c:u}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=u}const n=new Set;let s,l,h,d,m,E,y;for(const t of e)">"===t.operator||">="===t.operator?s=p(s,t,r):"<"===t.operator||"<="===t.operator?l=f(l,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&l){if(h=a(s.semver,l.semver,r),h>0)return null;if(0===h&&(">="!==s.operator||"<="!==l.operator))return null}for(const e of n){if(s&&!i(e,String(s),r))return null;if(l&&!i(e,String(l),r))return null;for(const n of t)if(!i(e,String(n),r))return!1;return!0}let g=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,v=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;g&&1===g.prerelease.length&&"<"===l.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,E=E||"<"===e.operator||"<="===e.operator,s)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(d=p(s,e,r),d===e&&d!==s)return!1}else if(">="===s.operator&&!i(s.semver,String(e),r))return!1;if(l)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(m=f(l,e,r),m===e&&m!==l)return!1}else if("<="===l.operator&&!i(l.semver,String(e),r))return!1;if(!e.operator&&(l||s)&&0!==h)return!1}return!(s&&E&&!l&&0!==h||l&&y&&!s&&0!==h||v||g)},p=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},f=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let s=!1;e:for(const n of e.set){for(const e of t.set){const t=l(n,e,r);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}},2860:e=>{"use strict";const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},3306:(e,t,r)=>{"use strict";const n=r(1289);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},3418:(e,t,r)=>{const n=r(3742),s=r(5582),o=r(9572),i=r(1525),a=r(5357),c=r(6782),u=r(5250),l=r(8094),p=r(6052),f=r(1251),h=r(8430),{KeyObject:d,createSecretKey:m,createPrivateKey:E}=r(6982),y=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];s&&y.splice(3,0,"PS256","PS384","PS512");const g={expiresIn:{isValid:function(e){return u(e)||f(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return u(e)||f(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return f(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:a.bind(null,y),message:'"algorithm" must be a valid string enum value'},header:{isValid:p,message:'"header" must be an object'},encoding:{isValid:f,message:'"encoding" must be a string'},issuer:{isValid:f,message:'"issuer" must be a string'},subject:{isValid:f,message:'"subject" must be a string'},jwtid:{isValid:f,message:'"jwtid" must be a string'},noTimestamp:{isValid:c,message:'"noTimestamp" must be a boolean'},keyid:{isValid:f,message:'"keyid" must be a string'},mutatePayload:{isValid:c,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:c,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:c,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},v={iat:{isValid:l,message:'"iat" should be a number of seconds'},exp:{isValid:l,message:'"exp" should be a number of seconds'},nbf:{isValid:l,message:'"nbf" should be a number of seconds'}};function b(e,t,r,n){if(!p(r))throw new Error('Expected "'+n+'" to be a plain object.');Object.keys(r).forEach(function(s){const o=e[s];if(o){if(!o.isValid(r[s]))throw new Error(o.message)}else if(!t)throw new Error('"'+s+'" is not allowed in "'+n+'"')})}const w={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},S=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];e.exports=function(e,t,r,s){"function"==typeof r?(s=r,r={}):r=r||{};const a="object"==typeof e&&!Buffer.isBuffer(e),c=Object.assign({alg:r.algorithm||"HS256",typ:a?"JWT":void 0,kid:r.keyid},r.header);function u(e){if(s)return s(e);throw e}if(!t&&"none"!==r.algorithm)return u(new Error("secretOrPrivateKey must have a value"));if(null!=t&&!(t instanceof d))try{t=E(t)}catch(e){try{t=m("string"==typeof t?Buffer.from(t):t)}catch(e){return u(new Error("secretOrPrivateKey is not valid key material"))}}if(c.alg.startsWith("HS")&&"secret"!==t.type)return u(new Error(`secretOrPrivateKey must be a symmetric key when using ${c.alg}`));if(/^(?:RS|PS|ES)/.test(c.alg)){if("private"!==t.type)return u(new Error(`secretOrPrivateKey must be an asymmetric key when using ${c.alg}`));if(!r.allowInsecureKeySizes&&!c.alg.startsWith("ES")&&void 0!==t.asymmetricKeyDetails&&t.asymmetricKeyDetails.modulusLength<2048)return u(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${c.alg}`))}if(void 0===e)return u(new Error("payload is required"));if(a){try{!function(e){b(v,!0,e,"payload")}(e)}catch(e){return u(e)}r.mutatePayload||(e=Object.assign({},e))}else{const t=S.filter(function(e){return void 0!==r[e]});if(t.length>0)return u(new Error("invalid "+t.join(",")+" option for "+typeof e+" payload"))}if(void 0!==e.exp&&void 0!==r.expiresIn)return u(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==e.nbf&&void 0!==r.notBefore)return u(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{!function(e){b(g,!1,e,"options")}(r)}catch(e){return u(e)}if(!r.allowInvalidAsymmetricKeyTypes)try{o(c.alg,t)}catch(e){return u(e)}const l=e.iat||Math.floor(Date.now()/1e3);if(r.noTimestamp?delete e.iat:a&&(e.iat=l),void 0!==r.notBefore){try{e.nbf=n(r.notBefore,l)}catch(e){return u(e)}if(void 0===e.nbf)return u(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(void 0!==r.expiresIn&&"object"==typeof e){try{e.exp=n(r.expiresIn,l)}catch(e){return u(e)}if(void 0===e.exp)return u(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(w).forEach(function(t){const n=w[t];if(void 0!==r[t]){if(void 0!==e[n])return u(new Error('Bad "options.'+t+'" option. The payload already has an "'+n+'" property.'));e[n]=r[t]}});const p=r.encoding||"utf8";if("function"!=typeof s){let n=i.sign({header:c,payload:e,secret:t,encoding:p});if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(c.alg)&&n.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${c.alg}`);return n}s=s&&h(s),i.createSign({header:c,privateKey:t,payload:e,encoding:p}).once("error",s).once("done",function(e){if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(c.alg)&&e.length<256)return s(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${c.alg}`));s(null,e)})}},3436:e=>{"use strict";const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),s=t.test(r);return n&&s&&(e=+e,r=+r),e===r?0:n&&!s?-1:s&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},3566:(e,t,r)=>{"use strict";const n=r(1314),s=r(7238),o=r(7743),i=r(236),a=r(8200),c=r(3765);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return s(e,r,u);case">":return o(e,r,u);case">=":return i(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},3569:(e,t,r)=>{var n,s=r(6608).Buffer,o=r(6982),i=r(9053),a=r(9023),c="secret must be a string or buffer",u="key must be a string or a buffer",l="function"==typeof o.createPublicKey;function p(e){if(!s.isBuffer(e)&&"string"!=typeof e){if(!l)throw m(u);if("object"!=typeof e)throw m(u);if("string"!=typeof e.type)throw m(u);if("string"!=typeof e.asymmetricKeyType)throw m(u);if("function"!=typeof e.export)throw m(u)}}function f(e){if(!s.isBuffer(e)&&"string"!=typeof e&&"object"!=typeof e)throw m("key must be a string, a buffer or an object")}function h(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function d(e){var t=4-(e=e.toString()).length%4;if(4!==t)for(var r=0;r<t;++r)e+="=";return e.replace(/\-/g,"+").replace(/_/g,"/")}function m(e){var t=[].slice.call(arguments,1),r=a.format.bind(a,e).apply(null,t);return new TypeError(r)}function E(e){var t;return t=e,s.isBuffer(t)||"string"==typeof t||(e=JSON.stringify(e)),e}function y(e){return function(t,r){!function(e){if(!s.isBuffer(e)){if("string"==typeof e)return e;if(!l)throw m(c);if("object"!=typeof e)throw m(c);if("secret"!==e.type)throw m(c);if("function"!=typeof e.export)throw m(c)}}(r),t=E(t);var n=o.createHmac("sha"+e,r);return h((n.update(t),n.digest("base64")))}}l&&(u+=" or a KeyObject",c+="or a KeyObject");var g="timingSafeEqual"in o?function(e,t){return e.byteLength===t.byteLength&&o.timingSafeEqual(e,t)}:function(e,t){return n||(n=r(9454)),n(e,t)};function v(e){return function(t,r,n){var o=y(e)(t,n);return g(s.from(r),s.from(o))}}function b(e){return function(t,r){f(r),t=E(t);var n=o.createSign("RSA-SHA"+e);return h((n.update(t),n.sign(r,"base64")))}}function w(e){return function(t,r,n){p(n),t=E(t),r=d(r);var s=o.createVerify("RSA-SHA"+e);return s.update(t),s.verify(n,r,"base64")}}function S(e){return function(t,r){f(r),t=E(t);var n=o.createSign("RSA-SHA"+e);return h((n.update(t),n.sign({key:r,padding:o.constants.RSA_PKCS1_PSS_PADDING,saltLength:o.constants.RSA_PSS_SALTLEN_DIGEST},"base64")))}}function $(e){return function(t,r,n){p(n),t=E(t),r=d(r);var s=o.createVerify("RSA-SHA"+e);return s.update(t),s.verify({key:n,padding:o.constants.RSA_PKCS1_PSS_PADDING,saltLength:o.constants.RSA_PSS_SALTLEN_DIGEST},r,"base64")}}function I(e){var t=b(e);return function(){var r=t.apply(null,arguments);return i.derToJose(r,"ES"+e)}}function R(e){var t=w(e);return function(r,n,s){return n=i.joseToDer(n,"ES"+e).toString("base64"),t(r,n,s)}}function O(){return function(){return""}}function N(){return function(e,t){return""===t}}e.exports=function(e){var t={hs:y,rs:b,ps:S,es:I,none:O},r={hs:v,rs:w,ps:$,es:R,none:N},n=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!n)throw m('"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".',e);var s=(n[1]||n[3]).toLowerCase(),o=n[2];return{sign:t[s](o),verify:r[s](o)}}},3742:(e,t,r)=>{var n=r(3866);e.exports=function(e,t){var r=t||Math.floor(Date.now()/1e3);if("string"==typeof e){var s=n(e);if(void 0===s)return;return Math.floor(r+s/1e3)}return"number"==typeof e?r+e:void 0}},3765:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>n(e,t,r)<=0},3835:(e,t,r)=>{"use strict";const n=r(2771),s=r(2326);e.exports=(e,t,r)=>{let o=null,i=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new n(o,r)))}),o}},3866:e=>{var t=1e3,r=60*t,n=60*r,s=24*n,o=7*s;function i(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}e.exports=function(e,a){a=a||{};var c,u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*o;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===l&&isFinite(e))return a.long?(c=e,(u=Math.abs(c))>=s?i(c,u,s,"day"):u>=n?i(c,u,n,"hour"):u>=r?i(c,u,r,"minute"):u>=t?i(c,u,t,"second"):c+" ms"):function(e){var o=Math.abs(e);return o>=s?Math.round(e/s)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},4104:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t,r)=>{const s=new n(e,r),o=new n(t,r);return s.compare(o)||s.compareBuild(o)}},4159:e=>{"use strict";const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},4163:(e,t,r)=>{"use strict";const n=r(2326);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},4240:(e,t,r)=>{"use strict";const n=r(4104);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},4247:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t)=>new n(e,t).major},4397:(e,t,r)=>{var n=r(6608).Buffer,s=r(1882),o=r(3569),i=r(2203),a=r(7265),c=r(9023);function u(e,t){return n.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function l(e){var t=e.header,r=e.payload,n=e.secret||e.privateKey,s=e.encoding,i=o(t.alg),l=function(e,t,r){r=r||"utf8";var n=u(a(e),"binary"),s=u(a(t),r);return c.format("%s.%s",n,s)}(t,r,s),p=i.sign(l,n);return c.format("%s.%s",l,p)}function p(e){var t=e.secret||e.privateKey||e.key,r=new s(t);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=r,this.payload=new s(e.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}c.inherits(p,i),p.prototype.sign=function(){try{var e=l({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},p.sign=l,e.exports=p},4519:e=>{"use strict";e.exports=JSON.parse('{"name":"dotenv","version":"16.6.1","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')},4678:(e,t,r)=>{"use strict";const n=r(2326);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},5250:e=>{var t=1/0,r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,a=Object.prototype.toString;function c(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return"number"==typeof e&&e==function(e){var u=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==a.call(e)}(e))return NaN;if(c(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var u=s.test(e);return u||o.test(e)?i(e.slice(2),u?2:8):n.test(e)?NaN:+e}(e))===t||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),l=u%1;return u==u?l?u-l:u:0}(e)}},5357:e=>{var t=1/0,r=9007199254740991,n=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=/^(?:0|[1-9]\d*)$/,c=parseInt;function u(e){return e!=e}var l,p,f=Object.prototype,h=f.hasOwnProperty,d=f.toString,m=f.propertyIsEnumerable,E=(l=Object.keys,p=Object,function(e){return l(p(e))}),y=Math.max;function g(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}var v=Array.isArray;function b(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=w(e)?d.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function S(e){return!!e&&"object"==typeof e}e.exports=function(e,r,a,l){var p;e=b(e)?e:(p=e)?function(e,t){return function(e,t){for(var r=-1,n=e?e.length:0,s=Array(n);++r<n;)s[r]=t(e[r]);return s}(t,function(t){return e[t]})}(p,function(e){return b(e)?function(e,t){var r=v(e)||function(e){return function(e){return S(e)&&b(e)}(e)&&h.call(e,"callee")&&(!m.call(e,"callee")||"[object Arguments]"==d.call(e))}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,s=!!n;for(var o in e)!t&&!h.call(e,o)||s&&("length"==o||g(o,n))||r.push(o);return r}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||f))return E(e);var t,r,n=[];for(var s in Object(e))h.call(e,s)&&"constructor"!=s&&n.push(s);return n}(e)}(p)):[],a=a&&!l?function(e){var r=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||S(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(w(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=w(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var r=o.test(e);return r||i.test(e)?c(e.slice(2),r?2:8):s.test(e)?NaN:+e}(e))===t||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),a=r%1;return r==r?a?r-a:r:0}(a):0;var $=e.length;return a<0&&(a=y($+a,0)),function(e){return"string"==typeof e||!v(e)&&S(e)&&"[object String]"==d.call(e)}(e)?a<=$&&e.indexOf(r,a)>-1:!!$&&function(e,t,r){if(t!=t)return function(e,t,r){for(var n=e.length,s=r+-1;++s<n;)if(t(e[s],s,e))return s;return-1}(e,u,r);for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}(e,r,a)>-1}},5363:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t)=>new n(e,t).minor},5469:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},5582:(e,t,r)=>{var n=r(32);e.exports=n.satisfies(process.version,"^6.12.0 || >=8.0.0")},5585:(e,t,r)=>{"use strict";const n=r(2771),s=r(1289),{safeRe:o,t:i}=r(6999);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];let s;for(;(s=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),n.lastIndex=s.index+s[1].length+s[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);if(null===r)return null;const a=r[2],c=r[3]||"0",u=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",p=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${c}.${u}${l}${p}`,t)}},5612:(e,t,r)=>{const n=r(32);e.exports=n.satisfies(process.version,">=16.9.0")},6002:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t)=>n(e,t,!0)},6052:e=>{var t,r,n=Function.prototype,s=Object.prototype,o=n.toString,i=s.hasOwnProperty,a=o.call(Object),c=s.toString,u=(t=Object.getPrototypeOf,r=Object,function(e){return t(r(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=c.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=u(e);if(null===t)return!0;var r=i.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&o.call(r)==a}},6430:e=>{var t=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};(t.prototype=Object.create(Error.prototype)).constructor=t,e.exports=t},6460:(e,t,r)=>{"use strict";const n=r(6640);e.exports=(e,t,r)=>n(e,t,">",r)},6608:(e,t,r)=>{var n=r(181),s=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return s(e,t,r)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i),i.prototype=Object.create(s.prototype),o(s,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},6640:(e,t,r)=>{"use strict";const n=r(2771),s=r(9003),{ANY:o}=s,i=r(2326),a=r(4163),c=r(7743),u=r(8200),l=r(3765),p=r(236);e.exports=(e,t,r,f)=>{let h,d,m,E,y;switch(e=new n(e,f),t=new i(t,f),r){case">":h=c,d=l,m=u,E=">",y=">=";break;case"<":h=u,d=p,m=c,E="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,a=null;if(n.forEach(e=>{e.semver===o&&(e=new s(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,f)?i=e:m(e.semver,a.semver,f)&&(a=e)}),i.operator===E||i.operator===y)return!1;if((!a.operator||a.operator===E)&&d(e,a.semver))return!1;if(a.operator===y&&m(e,a.semver))return!1}return!0}},6782:e=>{var t=Object.prototype.toString;e.exports=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Boolean]"==t.call(e)}},6928:e=>{"use strict";e.exports=require("path")},6982:e=>{"use strict";e.exports=require("crypto")},6999:(e,t,r)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=r(229),i=r(4159),a=(t=e.exports={}).re=[],c=t.safeRe=[],u=t.src=[],l=t.safeSrc=[],p=t.t={};let f=0;const h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[h,s]],m=(e,t,r)=>{const n=(e=>{for(const[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),s=f++;i(e,s,t),p[e]=s,u[s]=t,l[s]=n,a[s]=new RegExp(t,r?"g":void 0),c[s]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),m("MAINVERSION",`(${u[p.NUMERICIDENTIFIER]})\\.(${u[p.NUMERICIDENTIFIER]})\\.(${u[p.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[p.NUMERICIDENTIFIERLOOSE]})\\.(${u[p.NUMERICIDENTIFIERLOOSE]})\\.(${u[p.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[p.NONNUMERICIDENTIFIER]}|${u[p.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[p.NONNUMERICIDENTIFIER]}|${u[p.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${u[p.PRERELEASEIDENTIFIER]}(?:\\.${u[p.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[p.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${h}+`),m("BUILD",`(?:\\+(${u[p.BUILDIDENTIFIER]}(?:\\.${u[p.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[p.MAINVERSION]}${u[p.PRERELEASE]}?${u[p.BUILD]}?`),m("FULL",`^${u[p.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[p.MAINVERSIONLOOSE]}${u[p.PRERELEASELOOSE]}?${u[p.BUILD]}?`),m("LOOSE",`^${u[p.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[p.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[p.XRANGEIDENTIFIER]})(?:\\.(${u[p.XRANGEIDENTIFIER]})(?:\\.(${u[p.XRANGEIDENTIFIER]})(?:${u[p.PRERELEASE]})?${u[p.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[p.XRANGEIDENTIFIERLOOSE]})(?:${u[p.PRERELEASELOOSE]})?${u[p.BUILD]}?)?)?`),m("XRANGE",`^${u[p.GTLT]}\\s*${u[p.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[p.GTLT]}\\s*${u[p.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${u[p.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[p.COERCEPLAIN]+`(?:${u[p.PRERELEASE]})?`+`(?:${u[p.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",u[p.COERCE],!0),m("COERCERTLFULL",u[p.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[p.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[p.LONETILDE]}${u[p.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[p.LONETILDE]}${u[p.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[p.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[p.LONECARET]}${u[p.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[p.LONECARET]}${u[p.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[p.GTLT]}\\s*(${u[p.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[p.GTLT]}\\s*(${u[p.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[p.GTLT]}\\s*(${u[p.LOOSEPLAIN]}|${u[p.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[p.XRANGEPLAIN]})\\s+-\\s+(${u[p.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[p.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},7014:(e,t,r)=>{const n=r(6430),s=r(9387),o=r(7147),i=r(7661),a=r(3742),c=r(9572),u=r(5582),l=r(1525),{KeyObject:p,createSecretKey:f,createPublicKey:h}=r(6982),d=["RS256","RS384","RS512"],m=["ES256","ES384","ES512"],E=["RS256","RS384","RS512"],y=["HS256","HS384","HS512"];u&&(d.splice(d.length,0,"PS256","PS384","PS512"),E.splice(E.length,0,"PS256","PS384","PS512")),e.exports=function(e,t,r,u){let g;if("function"!=typeof r||u||(u=r,r={}),r||(r={}),r=Object.assign({},r),g=u||function(e,t){if(e)throw e;return t},r.clockTimestamp&&"number"!=typeof r.clockTimestamp)return g(new n("clockTimestamp must be a number"));if(void 0!==r.nonce&&("string"!=typeof r.nonce||""===r.nonce.trim()))return g(new n("nonce must be a non-empty string"));if(void 0!==r.allowInvalidAsymmetricKeyTypes&&"boolean"!=typeof r.allowInvalidAsymmetricKeyTypes)return g(new n("allowInvalidAsymmetricKeyTypes must be a boolean"));const v=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return g(new n("jwt must be provided"));if("string"!=typeof e)return g(new n("jwt must be a string"));const b=e.split(".");if(3!==b.length)return g(new n("jwt malformed"));let w;try{w=i(e,{complete:!0})}catch(e){return g(e)}if(!w)return g(new n("invalid token"));const S=w.header;let $;if("function"==typeof t){if(!u)return g(new n("verify must be called asynchronous if secret or public key is provided as a callback"));$=t}else $=function(e,r){return r(null,t)};return $(S,function(t,i){if(t)return g(new n("error in secret or public key callback: "+t.message));const u=""!==b[2].trim();if(!u&&i)return g(new n("jwt signature is required"));if(u&&!i)return g(new n("secret or public key must be provided"));if(!u&&!r.algorithms)return g(new n('please specify "none" in "algorithms" to verify unsigned tokens'));if(null!=i&&!(i instanceof p))try{i=h(i)}catch(e){try{i=f("string"==typeof i?Buffer.from(i):i)}catch(e){return g(new n("secretOrPublicKey is not valid key material"))}}if(r.algorithms||("secret"===i.type?r.algorithms=y:["rsa","rsa-pss"].includes(i.asymmetricKeyType)?r.algorithms=E:"ec"===i.asymmetricKeyType?r.algorithms=m:r.algorithms=d),-1===r.algorithms.indexOf(w.header.alg))return g(new n("invalid algorithm"));if(S.alg.startsWith("HS")&&"secret"!==i.type)return g(new n(`secretOrPublicKey must be a symmetric key when using ${S.alg}`));if(/^(?:RS|PS|ES)/.test(S.alg)&&"public"!==i.type)return g(new n(`secretOrPublicKey must be an asymmetric key when using ${S.alg}`));if(!r.allowInvalidAsymmetricKeyTypes)try{c(S.alg,i)}catch(e){return g(e)}let $;try{$=l.verify(e,w.header.alg,i)}catch(e){return g(e)}if(!$)return g(new n("invalid signature"));const I=w.payload;if(void 0!==I.nbf&&!r.ignoreNotBefore){if("number"!=typeof I.nbf)return g(new n("invalid nbf value"));if(I.nbf>v+(r.clockTolerance||0))return g(new s("jwt not active",new Date(1e3*I.nbf)))}if(void 0!==I.exp&&!r.ignoreExpiration){if("number"!=typeof I.exp)return g(new n("invalid exp value"));if(v>=I.exp+(r.clockTolerance||0))return g(new o("jwt expired",new Date(1e3*I.exp)))}if(r.audience){const e=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(I.aud)?I.aud:[I.aud]).some(function(t){return e.some(function(e){return e instanceof RegExp?e.test(t):e===t})}))return g(new n("jwt audience invalid. expected: "+e.join(" or ")))}if(r.issuer&&("string"==typeof r.issuer&&I.iss!==r.issuer||Array.isArray(r.issuer)&&-1===r.issuer.indexOf(I.iss)))return g(new n("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&I.sub!==r.subject)return g(new n("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&I.jti!==r.jwtid)return g(new n("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&I.nonce!==r.nonce)return g(new n("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if("number"!=typeof I.iat)return g(new n("iat required when maxAge is specified"));const e=a(r.maxAge,I.iat);if(void 0===e)return g(new n('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(v>=e+(r.clockTolerance||0))return g(new o("maxAge exceeded",new Date(1e3*e)))}if(!0===r.complete){const e=w.signature;return g(null,{header:S,payload:I,signature:e})}return g(null,I)})}},7147:(e,t,r)=>{var n=r(6430),s=function(e,t){n.call(this,e),this.name="TokenExpiredError",this.expiredAt=t};(s.prototype=Object.create(n.prototype)).constructor=s,e.exports=s},7148:(e,t,r)=>{"use strict";const n=r(2771);e.exports=(e,t)=>new n(e,t).patch},7238:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>0!==n(e,t,r)},7256:(e,t,r)=>{"use strict";const n=r(4104);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},7265:(e,t,r)=>{var n=r(181).Buffer;e.exports=function(e){return"string"==typeof e?e:"number"==typeof e||n.isBuffer(e)?e.toString():JSON.stringify(e)}},7619:(e,t,r)=>{e.exports={decode:r(7661),verify:r(7014),sign:r(3418),JsonWebTokenError:r(6430),NotBeforeError:r(9387),TokenExpiredError:r(7147)}},7661:(e,t,r)=>{var n=r(1525);e.exports=function(e,t){t=t||{};var r=n.decode(e,t);if(!r)return null;var s=r.payload;if("string"==typeof s)try{var o=JSON.parse(s);null!==o&&"object"==typeof o&&(s=o)}catch(e){}return!0===t.complete?{header:r.header,payload:s,signature:r.signature}:s}},7713:(e,t,r)=>{"use strict";const n=r(2326);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},7743:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>n(e,t,r)>0},8050:(e,t,r)=>{const n=r(32);e.exports=n.satisfies(process.version,">=15.7.0")},8094:e=>{var t=Object.prototype.toString;e.exports=function(e){return"number"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Number]"==t.call(e)}},8200:(e,t,r)=>{"use strict";const n=r(5469);e.exports=(e,t,r)=>n(e,t,r)<0},8430:e=>{var t=1/0,r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,a=Object.prototype.toString;function c(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return function(e,u){var l;if("function"!=typeof u)throw new TypeError("Expected a function");return e=function(e){var u=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==a.call(e)}(e))return NaN;if(c(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var u=s.test(e);return u||o.test(e)?i(e.slice(2),u?2:8):n.test(e)?NaN:+e}(e))===t||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),l=u%1;return u==u?l?u-l:u:0}(e),function(){return--e>0&&(l=u.apply(this,arguments)),e<=1&&(u=void 0),l}}(2,e)}},8583:(e,t,r)=>{const n=r(9896),s=r(6928),o=r(857),i=r(6982),a=r(4519).version,c=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function u(e){console.log(`[dotenv@${a}][DEBUG] ${e}`)}function l(e){console.log(`[dotenv@${a}] ${e}`)}function p(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function f(e,t){let r;try{r=new URL(t)}catch(e){if("ERR_INVALID_URL"===e.code){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw e.code="INVALID_DOTENV_KEY",e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");throw e.code="INVALID_DOTENV_KEY",e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");throw e.code="INVALID_DOTENV_KEY",e}const o=`DOTENV_VAULT_${s.toUpperCase()}`,i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw e.code="NOT_FOUND_DOTENV_ENVIRONMENT",e}return{ciphertext:i,key:n}}function h(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(const r of e.path)n.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=s.resolve(process.cwd(),".env.vault");return n.existsSync(t)?t:null}function d(e){return"~"===e[0]?s.join(o.homedir(),e.slice(1)):e}const m={configDotenv:function(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug),i=!e||!("quiet"in e)||e.quiet;e&&e.encoding?r=e.encoding:o&&u("No encoding is specified. UTF-8 is used by default");let a,c=[t];if(e&&e.path)if(Array.isArray(e.path)){c=[];for(const t of e.path)c.push(d(t))}else c=[d(e.path)];const p={};for(const t of c)try{const s=m.parse(n.readFileSync(t,{encoding:r}));m.populate(p,s,e)}catch(e){o&&u(`Failed to load ${t} ${e.message}`),a=e}let f=process.env;if(e&&null!=e.processEnv&&(f=e.processEnv),m.populate(f,p,e),o||!i){const e=Object.keys(p).length,t=[];for(const e of c)try{const r=s.relative(process.cwd(),e);t.push(r)}catch(t){o&&u(`Failed to load ${e} ${t.message}`),a=t}l(`injecting env (${e}) from ${t.join(",")}`)}return a?{parsed:p,error:a}:{parsed:p}},_configVault:function(e){const t=Boolean(e&&e.debug),r=!e||!("quiet"in e)||e.quiet;!t&&r||l("Loading env from encrypted .env.vault");const n=m._parseVault(e);let s=process.env;return e&&null!=e.processEnv&&(s=e.processEnv),m.populate(s,n,e),{parsed:n}},_parseVault:function(e){const t=h(e=e||{});e.path=t;const r=m.configDotenv(e);if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code="MISSING_DATA",e}const n=p(e).split(","),s=n.length;let o;for(let e=0;e<s;e++)try{const t=f(r,n[e].trim());o=m.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=s)throw t}return m.parse(o)},config:function(e){if(0===p(e).length)return m.configDotenv(e);const t=h(e);return t?m._configVault(e):(r=`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`,console.log(`[dotenv@${a}][WARN] ${r}`),m.configDotenv(e));var r},decrypt:function(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12),o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);return e.setAuthTag(o),`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError,r="Invalid key length"===e.message,n="Unsupported state or unable to authenticate data"===e.message;if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw e.code="INVALID_DOTENV_KEY",e}if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw e.code="DECRYPTION_FAILED",e}throw e}},parse:function(e){const t={};let r,n=e.toString();for(n=n.replace(/\r\n?/gm,"\n");null!=(r=c.exec(n));){const e=r[1];let n=r[2]||"";n=n.trim();const s=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),'"'===s&&(n=n.replace(/\\n/g,"\n"),n=n.replace(/\\r/g,"\r")),t[e]=n}return t},populate:function(e,t,r={}){const n=Boolean(r&&r.debug),s=Boolean(r&&r.override);if("object"!=typeof t){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw e.code="OBJECT_REQUIRED",e}for(const r of Object.keys(t))Object.prototype.hasOwnProperty.call(e,r)?(!0===s&&(e[r]=t[r]),n&&u(!0===s?`"${r}" is already defined and WAS overwritten`:`"${r}" is already defined and was NOT overwritten`)):e[r]=t[r]}};e.exports.configDotenv=m.configDotenv,e.exports._configVault=m._configVault,e.exports._parseVault=m._parseVault,e.exports.config=m.config,e.exports.decrypt=m.decrypt,e.exports.parse=m.parse,e.exports.populate=m.populate,e.exports=m},9003:(e,t,r)=>{"use strict";const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=s;const o=r(2860),{safeRe:i,t:a}=r(6999),c=r(3566),u=r(4159),l=r(2771),p=r(2326)},9023:e=>{"use strict";e.exports=require("util")},9053:(e,t,r)=>{"use strict";var n=r(6608).Buffer,s=r(2188);function o(e){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function i(e,t,r){for(var n=0;t+n<r&&0===e[t+n];)++n;return e[t+n]>=128&&--n,n}e.exports={derToJose:function(e,t){e=o(e);var r=s(t),i=r+1,a=e.length,c=0;if(48!==e[c++])throw new Error('Could not find expected "seq"');var u=e[c++];if(129===u&&(u=e[c++]),a-c<u)throw new Error('"seq" specified length of "'+u+'", only "'+(a-c)+'" remaining');if(2!==e[c++])throw new Error('Could not find expected "int" for "r"');var l=e[c++];if(a-c-2<l)throw new Error('"r" specified length of "'+l+'", only "'+(a-c-2)+'" available');if(i<l)throw new Error('"r" specified length of "'+l+'", max of "'+i+'" is acceptable');var p=c;if(c+=l,2!==e[c++])throw new Error('Could not find expected "int" for "s"');var f=e[c++];if(a-c!==f)throw new Error('"s" specified length of "'+f+'", expected "'+(a-c)+'"');if(i<f)throw new Error('"s" specified length of "'+f+'", max of "'+i+'" is acceptable');var h=c;if((c+=f)!==a)throw new Error('Expected to consume entire buffer, but "'+(a-c)+'" bytes remain');var d=r-l,m=r-f,E=n.allocUnsafe(d+l+m+f);for(c=0;c<d;++c)E[c]=0;e.copy(E,c,p+Math.max(-d,0),p+l);for(var y=c=r;c<y+m;++c)E[c]=0;return e.copy(E,c,h+Math.max(-m,0),h+f),(E=E.toString("base64")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},joseToDer:function(e,t){e=o(e);var r=s(t),a=e.length;if(a!==2*r)throw new TypeError('"'+t+'" signatures must be "'+2*r+'" bytes, saw "'+a+'"');var c=i(e,0,r),u=i(e,r,e.length),l=r-c,p=r-u,f=2+l+1+1+p,h=f<128,d=n.allocUnsafe((h?2:3)+f),m=0;return d[m++]=48,h?d[m++]=f:(d[m++]=129,d[m++]=255&f),d[m++]=2,d[m++]=l,c<0?(d[m++]=0,m+=e.copy(d,m,0,r)):m+=e.copy(d,m,c,r),d[m++]=2,d[m++]=p,u<0?(d[m++]=0,e.copy(d,m,r)):e.copy(d,m,r+u),d}}},9140:(e,t,r)=>{"use strict";const n=r(1289);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},9313:(e,t,r)=>{"use strict";const n=r(2771),s=r(2326);e.exports=(e,t,r)=>{let o=null,i=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new n(o,r)))}),o}},9387:(e,t,r)=>{var n=r(6430),s=function(e,t){n.call(this,e),this.name="NotBeforeError",this.date=t};(s.prototype=Object.create(n.prototype)).constructor=s,e.exports=s},9454:(e,t,r)=>{"use strict";var n=r(181).Buffer,s=r(181).SlowBuffer;function o(e,t){if(!n.isBuffer(e)||!n.isBuffer(t))return!1;if(e.length!==t.length)return!1;for(var r=0,s=0;s<e.length;s++)r|=e[s]^t[s];return 0===r}e.exports=o,o.install=function(){n.prototype.equal=s.prototype.equal=function(e){return o(this,e)}};var i=n.prototype.equal,a=s.prototype.equal;o.restore=function(){n.prototype.equal=i,s.prototype.equal=a}},9572:(e,t,r)=>{const n=r(8050),s=r(5612),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},i={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};e.exports=function(e,t){if(!e||!t)return;const r=t.asymmetricKeyType;if(!r)return;const a=o[r];if(!a)throw new Error(`Unknown key type "${r}".`);if(!a.includes(e))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${a.join(", ")}.`);if(n)switch(r){case"ec":const r=t.asymmetricKeyDetails.namedCurve,n=i[e];if(r!==n)throw new Error(`"alg" parameter "${e}" requires curve "${n}".`);break;case"rsa-pss":if(s){const r=parseInt(e.slice(-3),10),{hashAlgorithm:n,mgf1HashAlgorithm:s,saltLength:o}=t.asymmetricKeyDetails;if(n!==`sha${r}`||s!==n)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`);if(void 0!==o&&o>r>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}}}},9896:e=>{"use strict";e.exports=require("fs")},9903:(e,t,r)=>{"use strict";const n=r(1289);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{apiKeyAuthMiddleware:()=>a,createContext:()=>d,jwtAuthMiddleware:()=>l});var e=r(8583),t=r.n(e);const s=require("zod"),o=s.z.object({apiKey:s.z.string().optional(),headerName:s.z.string().optional(),validateApiKey:s.z.function().args(s.z.string()).returns(s.z.promise(s.z.boolean())).optional()}).strict().refine(e=>void 0!==e.apiKey||void 0!==e.validateApiKey,{message:"Either 'apiKey' or 'validateApiKey' must be provided"}).refine(e=>!(void 0!==e.apiKey&&void 0!==e.validateApiKey),{message:"'apiKey' and 'validateApiKey' are mutually exclusive - provide only one"}),i="Unauthorized: Missing or invalid API key";function a(e){const t=o.safeParse(e);if(!t.success){const r="apiKey"in e,n="validateApiKey"in e;throw r&&n?new Error("'apiKey' and 'validateApiKey' are mutually exclusive - provide only one"):r||n?new Error(`Invalid configuration: ${t.error.message}`):new Error("Either 'apiKey' or 'validateApiKey' must be provided")}const r=e.headerName??"x-api-key",n="apiKey"in e?e.apiKey:void 0,s="validateApiKey"in e?e.validateApiKey:void 0;return async(t,o,a)=>{const c=t.header(r);if(c)if("apiKey"in e&&c!==n)o.status(401).json({error:i});else{if(s&&!await s(c))return void o.status(401).json({error:i});a()}else o.status(401).json({error:i})}}var c=r(7619),u=r.n(c);function l(e){return(t,r,n)=>{const s=t.header("Authorization");if(!s||!s.startsWith("Bearer "))return void r.status(401).json({error:"Unauthorized: Missing or malformed Authorization header"});const o=s.slice(7).trim();if(o)try{const{secret:r,...s}=e,i=u().verify(o,r,s);t.user=i,n()}catch(e){r.status(401).json({error:"Unauthorized: Invalid or expired token"})}else r.status(401).json({error:"Unauthorized: Missing access token"})}}const p=require("async_hooks"),f=(e,t)=>{globalThis[e]=t},h=e=>globalThis[e];function d({name:e}){const t=Symbol.for(`xmcp-context-${e}`);if(h(t))return h(t);const r=new p.AsyncLocalStorage,n={provider:(e,t)=>r.run(e,t),getContext:()=>{const t=r.getStore();if(!t)throw new Error(`getContext() can only be used within the ${e} context.`);return t},setContext:t=>{const n=r.getStore();if(!n)throw new Error(`setContext() can only be used within the ${e} context.`);Object.assign(n,t)}};return f(t,n),n}t().config()})(),n})());
|