diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cb0675d..2baeb208 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +## [1.0.2](https://github.com/screendriver/ifttt-action/compare/v1.0.1...v1.0.2) (2021-06-19) + + +### Bug Fixes + +* **deps:** update dependency @actions/core to v1.2.7 ([73a7741](https://github.com/screendriver/ifttt-action/commit/73a774192932900816ae6fbbc5759c8d5fffbc5f)) +* **deps:** update dependency @actions/core to v1.3.0 ([363888d](https://github.com/screendriver/ifttt-action/commit/363888db56a8dd7e7305e034d5a4fe4ada0731f7)) +* **deps:** update dependency @actions/core to v1.4.0 ([498cccd](https://github.com/screendriver/ifttt-action/commit/498cccd3e1298e672b86827f3fb254e032d6510d)) +* **deps:** update dependency got to v11 ([a7cd5f9](https://github.com/screendriver/ifttt-action/commit/a7cd5f9929d530fa0e5fe1df6810b431772e1848)) +* **deps:** update dependency tslib to v2.1.0 ([81afa5c](https://github.com/screendriver/ifttt-action/commit/81afa5ced8693b3378f8bb1f93b631ac1fc1537a)) +* **deps:** update dependency tslib to v2.2.0 ([bca5150](https://github.com/screendriver/ifttt-action/commit/bca51508d6a974a5276f3e7b6aa43a2734f71f0d)) +* **deps:** update dependency tslib to v2.3.0 ([f88c107](https://github.com/screendriver/ifttt-action/commit/f88c10767bc5552701cdc83c1d3b9827e19a0544)) + ## [1.0.1](https://github.com/screendriver/ifttt-action/compare/v1.0.0...v1.0.1) (2020-10-10) diff --git a/package-lock.json b/package-lock.json index 3850cbc0..b329aed8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "ifttt-action", - "version": "1.0.0", + "version": "1.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.0.0", + "version": "1.0.2", "license": "MIT", "dependencies": { "@actions/core": "1.4.0", diff --git a/package.json b/package.json index 924c08a7..a2e1d556 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ifttt-action", - "version": "1.0.0", + "version": "1.0.2", "description": "GitHub action that triggers an IFTTT webhooks event", "main": "target/src/index.js", "author": "Christian Rackerseder ", diff --git a/target/dist/index.js b/target/dist/index.js index 3fcbacc6..982e2746 100644 --- a/target/dist/index.js +++ b/target/dist/index.js @@ -1 +1,16 @@ -module.exports=(()=>{var e={7351:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2087));const o=r(5278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(7351);const i=r(717);const a=r(5278);const c=s(r(2087));const u=s(r(5622));var f;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(f=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;i.issueCommand("ENV",n)}else{o.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){i.issueCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){o.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=f.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e){o.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){o.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){o.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},717:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5747));const o=n(r(2087));const i=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${i.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},7678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=typeof URL==="undefined"?r(8835).URL:URL;const s=Object.prototype.toString;const o=e=>t=>typeof t===e;const i=e=>!is.nullOrUndefined(e)&&!is.nullOrUndefined(e.constructor)&&is.function_(e.constructor.isBuffer)&&e.constructor.isBuffer(e);const a=e=>{const t=s.call(e).slice(8,-1);if(t){return t}return null};const c=e=>t=>a(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(Array.isArray(e)){return"Array"}if(i(e)){return"Buffer"}const t=a(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}(function(e){const t=e=>typeof e==="object";e.undefined=o("undefined");e.string=o("string");e.number=o("number");e.function_=o("function");e.null_=(e=>e===null);e.class_=(t=>e.function_(t)&&t.toString().startsWith("class "));e.boolean=(e=>e===true||e===false);e.symbol=o("symbol");e.numericString=(t=>e.string(t)&&t.length>0&&!Number.isNaN(Number(t)));e.array=Array.isArray;e.buffer=i;e.nullOrUndefined=(t=>e.null_(t)||e.undefined(t));e.object=(r=>!e.nullOrUndefined(r)&&(e.function_(r)||t(r)));e.iterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]));e.asyncIterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.asyncIterator]));e.generator=(t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw));e.nativePromise=(e=>c("Promise")(e));const r=r=>!e.null_(r)&&t(r)&&e.function_(r.then)&&e.function_(r.catch);e.promise=(t=>e.nativePromise(t)||r(t));e.generatorFunction=c("GeneratorFunction");e.asyncFunction=c("AsyncFunction");e.boundFunction=(t=>e.function_(t)&&!t.hasOwnProperty("prototype"));e.regExp=c("RegExp");e.date=c("Date");e.error=c("Error");e.map=(e=>c("Map")(e));e.set=(e=>c("Set")(e));e.weakMap=(e=>c("WeakMap")(e));e.weakSet=(e=>c("WeakSet")(e));e.int8Array=c("Int8Array");e.uint8Array=c("Uint8Array");e.uint8ClampedArray=c("Uint8ClampedArray");e.int16Array=c("Int16Array");e.uint16Array=c("Uint16Array");e.int32Array=c("Int32Array");e.uint32Array=c("Uint32Array");e.float32Array=c("Float32Array");e.float64Array=c("Float64Array");e.arrayBuffer=c("ArrayBuffer");e.sharedArrayBuffer=c("SharedArrayBuffer");e.dataView=c("DataView");e.directInstanceOf=((e,t)=>Object.getPrototypeOf(e)===t.prototype);e.urlInstance=(e=>c("URL")(e));e.urlString=(t=>{if(!e.string(t)){return false}try{new n(t);return true}catch(e){return false}});e.truthy=(e=>Boolean(e));e.falsy=(e=>!e);e.nan=(e=>Number.isNaN(e));const s=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=(t=>e.null_(t)||s.has(typeof t));e.integer=(e=>Number.isInteger(e));e.safeInteger=(e=>Number.isSafeInteger(e));e.plainObject=(e=>{let t;return a(e)==="Object"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))});const u=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=(e=>{const t=a(e);if(t===null){return false}return u.has(t)});const f=t=>e.safeInteger(t)&&t>-1;e.arrayLike=(t=>!e.nullOrUndefined(t)&&!e.function_(t)&&f(t.length));e.inRange=((t,r)=>{if(e.number(r)){return t>=Math.min(0,r)&&t<=Math.max(r,0)}if(e.array(r)&&r.length===2){return t>=Math.min(...r)&&t<=Math.max(...r)}throw new TypeError(`Invalid range: ${JSON.stringify(r)}`)});const l=1;const h=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=(t=>e.object(t)&&t.nodeType===l&&e.string(t.nodeName)&&!e.plainObject(t)&&h.every(e=>e in t));e.observable=(e=>{if(!e){return false}if(e[Symbol.observable]&&e===e[Symbol.observable]()){return true}if(e["@@observable"]&&e===e["@@observable"]()){return true}return false});e.nodeStream=(r=>!e.nullOrUndefined(r)&&t(r)&&e.function_(r.pipe)&&!e.observable(r));e.infinite=(e=>e===Infinity||e===-Infinity);const d=t=>r=>e.integer(r)&&Math.abs(r%2)===t;e.even=d(0);e.odd=d(1);const p=t=>e.string(t)&&/\S/.test(t)===false;e.emptyArray=(t=>e.array(t)&&t.length===0);e.nonEmptyArray=(t=>e.array(t)&&t.length>0);e.emptyString=(t=>e.string(t)&&t.length===0);e.nonEmptyString=(t=>e.string(t)&&t.length>0);e.emptyStringOrWhitespace=(t=>e.emptyString(t)||p(t));e.emptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length===0);e.nonEmptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length>0);e.emptySet=(t=>e.set(t)&&t.size===0);e.nonEmptySet=(t=>e.set(t)&&t.size>0);e.emptyMap=(t=>e.map(t)&&t.size===0);e.nonEmptyMap=(t=>e.map(t)&&t.size>0);const m=(t,r,n)=>{if(e.function_(r)===false){throw new TypeError(`Invalid predicate: ${JSON.stringify(r)}`)}if(n.length===0){throw new TypeError("Invalid number of values")}return t.call(n,r)};e.any=((e,...t)=>m(Array.prototype.some,e,t));e.all=((e,...t)=>m(Array.prototype.every,e,t))})(is||(is={}));Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});t.default=is;e.exports=is;e.exports.default=is},9308:(e,t,r)=>{"use strict";const n=r(7611);e.exports=(e=>{const t={start:Date.now(),socket:null,lookup:null,connect:null,upload:null,response:null,end:null,error:null,phases:{wait:null,dns:null,tcp:null,request:null,firstByte:null,download:null,total:null}};const r=e=>{const r=e.emit.bind(e);e.emit=((n,...s)=>{if(n==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=r}return r(n,...s)})};let s=false;const o=()=>{t.upload=Date.now();t.phases.request=t.upload-t.connect};r(e);e.once("socket",e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;const r=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.once("lookup",r);n(e,()=>{t.connect=Date.now();if(t.lookup===null){e.removeListener("lookup",r);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup;if(s&&!t.upload){o()}})});e.once("finish",()=>{s=true;if(t.connect){o()}});e.once("response",e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;r(e);e.once("end",()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start})});return t})},4340:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2413);e.exports=(e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const s=r==="buffer";let o=false;if(t){o=!(r||s)}else{r=r||"utf8"}if(s){r=null}const i=new n({objectMode:o});if(r){i.setEncoding(r)}let a=0;const c=[];i.on("data",e=>{c.push(e);if(o){a=c.length}else{a+=e.length}});i.getBufferedValue=(()=>{if(t){return c}return s?Buffer.concat(c,a):c.join("")});i.getBufferedLength=(()=>a);return i})},7040:(e,t,r)=>{"use strict";const{constants:n}=r(4293);const s=r(8341);const o=r(4340);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;let i;await new Promise((a,c)=>{const u=e=>{if(e&&i.getBufferedLength()<=n.MAX_LENGTH){e.bufferedData=i.getBufferedValue()}c(e)};i=s(e,o(t),e=>{if(e){u(e);return}a()});i.on("data",()=>{if(i.getBufferedLength()>r){u(new MaxBufferError)}})});return i.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},5993:e=>{"use strict";e.exports=(e=>{const t={};for(const[r,n]of Object.entries(e)){t[r.toLowerCase()]=n}return t})},8116:(e,t,r)=>{"use strict";const n=r(8614);const s=r(8835);const o=r(7952);const i=r(7040);const a=r(1002);const c=r(9004);const u=r(5993);const f=r(1312);const l=r(1531);class CacheableRequest{constructor(e,t){if(typeof e!=="function"){throw new TypeError("Parameter `request` must be a function")}this.cache=new l({uri:typeof t==="string"&&t,store:typeof t!=="string"&&t,namespace:"cacheable-request"});return this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{let l;if(typeof t==="string"){l=normalizeUrlObject(s.parse(t));t={}}else if(t instanceof s.URL){l=normalizeUrlObject(s.parse(t.toString()));t={}}else{const[e,...r]=(t.path||"").split("?");const n=r.length>0?`?${r.join("?")}`:"";l=normalizeUrlObject({...t,pathname:e,search:n})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(l)};t.headers=u(t.headers);const h=new n;const d=o(s.format(l),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const p=`${t.method}:${d}`;let m=false;let y=false;const _=t=>{y=true;let n=false;let s;const o=new Promise(e=>{s=(()=>{if(!n){n=true;e()}})});const u=e=>{if(m&&!t.forceRefresh){e.status=e.statusCode;const r=a.fromObject(m.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();e=new c(m.statusCode,t,m.body,m.url);e.cachePolicy=r.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new a(t,e,t);e.fromCache=false}let s;if(t.cache&&e.cachePolicy.storable()){s=f(e);(async()=>{try{const r=i.buffer(e);await Promise.race([o,new Promise(t=>e.once("end",t))]);if(n){return}const s=await r;const a={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?m.statusCode:e.statusCode,body:s};let c=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){c=c?Math.min(c,t.maxTtl):t.maxTtl}await this.cache.set(p,a,c)}catch(e){h.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&m){(async()=>{try{await this.cache.delete(p)}catch(e){h.emit("error",new CacheableRequest.CacheError(e))}})()}h.emit("response",s||e);if(typeof r==="function"){r(s||e)}};try{const r=e(t,u);r.once("error",s);r.once("abort",s);h.emit("request",r)}catch(e){h.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(p):undefined;if(typeof t==="undefined"){return _(e)}const n=a.fromObject(t.cachePolicy);if(n.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=n.responseHeaders();const s=new c(t.statusCode,e,t.body,t.url);s.cachePolicy=n;s.fromCache=true;h.emit("response",s);if(typeof r==="function"){r(s)}}else{m=t;e.headers=n.revalidationHeaders(e);_(e)}};const n=e=>h.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",n);h.on("response",()=>this.cache.removeListener("error",n));try{await e(t)}catch(e){if(t.automaticFailover&&!y){_(t)}h.emit("error",new CacheableRequest.CacheError(e))}})();return h}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},1312:(e,t,r)=>{"use strict";const n=r(2413).PassThrough;const s=r(2610);const o=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new n;s(e,t);return e.pipe(t)};e.exports=o},2391:(e,t,r)=>{"use strict";const n=r(2413).PassThrough;const s=r(8761);const o=r(2610);e.exports=(e=>{if(["gzip","deflate"].indexOf(e.headers["content-encoding"])===-1){return e}const t=s.createUnzip();const r=new n;o(e,r);t.on("error",e=>{if(e.code==="Z_BUF_ERROR"){r.end();return}r.emit("error",e)});e.pipe(t).pipe(r);return r})},7611:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4016);const s=(e,t)=>{let r;if(typeof t==="function"){const e=t;r={connect:e}}else{r=t}const s=typeof r.connect==="function";const o=typeof r.secureConnect==="function";const i=typeof r.close==="function";const a=()=>{if(s){r.connect()}if(e instanceof n.TLSSocket&&o){if(e.authorized){r.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",r.secureConnect)}}if(i){e.once("close",r.close)}};if(e.writable&&!e.connecting){a()}else if(e.connecting){e.once("connect",a)}else if(e.destroyed&&i){r.close(e._hadError)}};t.default=s;e.exports=s;e.exports.default=s},7994:(e,t,r)=>{"use strict";var n=r(2413);function DuplexWrapper(e,t,r){if(typeof r==="undefined"){r=t;t=e;e=null}n.Duplex.call(this,e);if(typeof r.read!=="function"){r=new n.Readable(e).wrap(r)}this._writable=t;this._readable=r;this._waiting=false;var s=this;t.once("finish",function(){s.end()});this.once("finish",function(){t.end()});r.on("readable",function(){if(s._waiting){s._waiting=false;s._read()}});r.once("end",function(){s.push(null)});if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",function(e){s.emit("error",e)});r.on("error",function(e){s.emit("error",e)})}}DuplexWrapper.prototype=Object.create(n.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,r){this._writable.write(e,t,r)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,r){return new DuplexWrapper(e,t,r)};e.exports.DuplexWrapper=DuplexWrapper},1205:(e,t,r)=>{var n=r(1223);var s=function(){};var o=function(e){return e.setHeader&&typeof e.abort==="function"};var i=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,r){if(typeof t==="function")return a(e,null,t);if(!t)t={};r=n(r||s);var c=e._writableState;var u=e._readableState;var f=t.readable||t.readable!==false&&e.readable;var l=t.writable||t.writable!==false&&e.writable;var h=false;var d=function(){if(!e.writable)p()};var p=function(){l=false;if(!f)r.call(e)};var m=function(){f=false;if(!l)r.call(e)};var y=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var _=function(t){r.call(e,t)};var b=function(){process.nextTick(g)};var g=function(){if(h)return;if(f&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"));if(l&&!(c&&(c.ended&&!c.destroyed)))return r.call(e,new Error("premature close"))};var w=function(){e.req.on("finish",p)};if(o(e)){e.on("complete",p);e.on("abort",b);if(e.req)w();else e.on("request",w)}else if(l&&!c){e.on("end",d);e.on("close",d)}if(i(e))e.on("exit",y);e.on("end",m);e.on("finish",p);if(t.error!==false)e.on("error",_);e.on("close",b);return function(){h=true;e.removeListener("complete",p);e.removeListener("abort",b);e.removeListener("request",w);if(e.req)e.req.removeListener("finish",p);e.removeListener("end",d);e.removeListener("close",d);e.removeListener("finish",p);e.removeListener("exit",y);e.removeListener("end",m);e.removeListener("error",_);e.removeListener("close",b)}};e.exports=a},1585:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2413);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:r}=e;const s=r==="buffer";let o=false;if(t){o=!(r||s)}else{r=r||"utf8"}if(s){r=null}let i=0;const a=[];const c=new n({objectMode:o});if(r){c.setEncoding(r)}c.on("data",e=>{a.push(e);if(o){i=a.length}else{i+=e.length}});c.getBufferedValue=(()=>{if(t){return a}return s?Buffer.concat(a,i):a.join("")});c.getBufferedLength=(()=>i);return c})},1766:(e,t,r)=>{"use strict";const n=r(8341);const s=r(1585);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t=Object.assign({maxBuffer:Infinity},t);const{maxBuffer:r}=t;let o;return new Promise((i,a)=>{const c=e=>{if(e){e.bufferedData=o.getBufferedValue()}a(e)};o=n(e,s(t),e=>{if(e){c(e);return}i()});o.on("data",()=>{if(o.getBufferedLength()>r){c(new MaxBufferError)}})}).then(()=>o.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},2013:(e,t,r)=>{"use strict";const n=r(8614);const s=r(1766);const o=r(7678);const i=r(9072);const a=r(5296);const{HTTPError:c,ParseError:u,ReadError:f}=r(7083);const{options:l}=r(7339);const{reNormalize:h}=r(6034);const d=e=>{const t=new n;const r=new i((r,n,i)=>{const p=a(e);i(p.abort);p.on("response",async i=>{t.emit("response",i);const a=o.null(e.encoding)?s.buffer(i):s(i,e);let m;try{m=await a}catch(t){n(new f(t,e));return}const y=e.followRedirect?299:399;i.body=m;try{for(const[t,r]of Object.entries(e.hooks.afterResponse)){i=await r(i,r=>{r=h(l(e,{...r,retry:0,throwHttpErrors:false}));r.hooks.afterResponse=e.hooks.afterResponse.slice(0,t);return d(r)})}}catch(e){n(e);return}const{statusCode:_}=i;if(e.json&&i.body){try{i.body=JSON.parse(i.body)}catch(t){if(_>=200&&_<300){const r=new u(t,_,e,m);Object.defineProperty(r,"response",{value:i});n(r);return}}}if(_!==304&&(_<200||_>y)){const t=new c(i,e);Object.defineProperty(t,"response",{value:i});if(p.retry(t)===false){if(e.throwHttpErrors){n(t);return}r(i)}return}r(i)});p.once("error",n);["request","redirect","uploadProgress","downloadProgress"].forEach(e=>p.on(e,(...r)=>t.emit(e,...r)))});r.on=((e,n)=>{t.on(e,n);return r});return r};e.exports=d},3900:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2413);const s=r(7994);const o=r(5296);const{HTTPError:i,ReadError:a}=r(7083);e.exports=(e=>{const t=new n;const r=new n;const c=s(t,r);const u=new Set;let f=false;e.retry.retries=(()=>0);if(e.body){c.write=(()=>{throw new Error("Got's stream is not writable when the `body` option is used")})}const l=o(e,t);c._destroy=l.abort;l.on("response",t=>{const{statusCode:n}=t;t.on("error",t=>{c.emit("error",new a(t,e))});if(e.throwHttpErrors&&n!==304&&(n<200||n>299)){c.emit("error",new i(t,e),null,t);return}f=true;t.pipe(r);for(const r of u){if(r.headersSent){continue}for(const[n,s]of Object.entries(t.headers)){const t=e.decompress?n!=="content-encoding":true;if(t){r.setHeader(n,s)}}r.statusCode=t.statusCode}c.emit("response",t)});["error","request","redirect","uploadProgress","downloadProgress"].forEach(e=>l.on(e,(...t)=>c.emit(e,...t)));const h=c.pipe.bind(c);const d=c.unpipe.bind(c);c.pipe=((e,t)=>{if(f){throw new Error("Failed to pipe. The response has been emitted already.")}const r=h(e,t);if(Reflect.has(e,"setHeader")){u.add(e)}return r});c.unpipe=(e=>{u.delete(e);return d(e)});return c})},6030:(e,t,r)=>{"use strict";const n=r(7083);const s=r(3900);const o=r(2013);const i=r(6034);const a=r(7339);const c=r(3970);const u=e=>e.stream?s(e):o(e);const f=["get","post","put","patch","head","delete"];const l=e=>{e=a({},e);i.preNormalize(e.options);if(!e.handler){e.handler=((e,t)=>t(e))}function got(t,r){try{return e.handler(i(t,r,e),u)}catch(e){if(r&&r.stream){throw e}else{return Promise.reject(e)}}}got.create=l;got.extend=(t=>{let r;if(t&&Reflect.has(t,"mutableDefaults")){r=t.mutableDefaults;delete t.mutableDefaults}else{r=e.mutableDefaults}return l({options:a.options(e.options,t),handler:e.handler,mutableDefaults:r})});got.mergeInstances=((...e)=>l(a.instances(e)));got.stream=((e,t)=>got(e,{...t,stream:true}));for(const e of f){got[e]=((t,r)=>got(t,{...r,method:e}));got.stream[e]=((t,r)=>got.stream(t,{...r,method:e}))}Object.assign(got,{...n,mergeOptions:a.options});Object.defineProperty(got,"defaults",{value:e.mutableDefaults?e:c(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});return got};e.exports=l},7083:(e,t,r)=>{"use strict";const n=r(8835);const s=r(8605);const o=r(9072);const i=r(7678);class GotError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,this.constructor);this.name="GotError";if(!i.undefined(t.code)){this.code=t.code}Object.assign(this,{host:r.host,hostname:r.hostname,method:r.method,path:r.path,socketPath:r.socketPath,protocol:r.protocol,url:r.href,gotOptions:r})}}e.exports.GotError=GotError;e.exports.CacheError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}};e.exports.RequestError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="RequestError"}};e.exports.ReadError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}};e.exports.ParseError=class extends GotError{constructor(e,t,r,o){super(`${e.message} in "${n.format(r)}": \n${o.slice(0,77)}...`,e,r);this.name="ParseError";this.statusCode=t;this.statusMessage=s.STATUS_CODES[this.statusCode]}};e.exports.HTTPError=class extends GotError{constructor(e,t){const{statusCode:r}=e;let{statusMessage:n}=e;if(n){n=n.replace(/\r?\n/g," ").trim()}else{n=s.STATUS_CODES[r]}super(`Response code ${r} (${n})`,{},t);this.name="HTTPError";this.statusCode=r;this.statusMessage=n;this.headers=e.headers;this.body=e.body}};e.exports.MaxRedirectsError=class extends GotError{constructor(e,t,r){super("Redirected 10 times. Aborting.",{},r);this.name="MaxRedirectsError";this.statusCode=e;this.statusMessage=s.STATUS_CODES[this.statusCode];this.redirectUrls=t}};e.exports.UnsupportedProtocolError=class extends GotError{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e);this.name="UnsupportedProtocolError"}};e.exports.TimeoutError=class extends GotError{constructor(e,t){super(e.message,{code:"ETIMEDOUT"},t);this.name="TimeoutError";this.event=e.event}};e.exports.CancelError=o.CancelError},6715:(e,t,r)=>{"use strict";const n=r(2391);const s=r(7678);const o=r(2610);const i=r(2308);e.exports=((e,t,r)=>{const a=Number(e.headers["content-length"])||null;const c=i.download(e,r,a);o(e,c);const u=t.decompress===true&&s.function(n)&&t.method!=="HEAD"?n(c):c;if(!t.decompress&&["gzip","deflate"].includes(e.headers["content-encoding"])){t.encoding=null}r.emit("response",u);r.emit("downloadProgress",{percent:0,transferred:0,total:a});e.pipe(c)})},4462:(e,t,r)=>{"use strict";const n=r(9248);const s=r(6030);const o={options:{retry:{retries:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]},headers:{"user-agent":`${n.name}/${n.version} (https://github.com/sindresorhus/got)`},hooks:{beforeRequest:[],beforeRedirect:[],beforeRetry:[],afterResponse:[]},decompress:true,throwHttpErrors:true,followRedirect:true,stream:false,form:false,json:false,cache:false,useElectronNet:false},mutableDefaults:false};const i=s(o);e.exports=i},1924:e=>{"use strict";e.exports=["beforeError","init","beforeRequest","beforeRedirect","beforeRetry","afterResponse"]},7339:(e,t,r)=>{"use strict";const{URL:n}=r(8835);const s=r(7678);const o=r(1924);const i=(e,...t)=>{for(const r of t){for(const[t,o]of Object.entries(r)){if(s.undefined(o)){continue}const r=e[t];if(s.urlInstance(r)&&(s.urlInstance(o)||s.string(o))){e[t]=new n(o,r)}else if(s.plainObject(o)){if(s.plainObject(r)){e[t]=i({},r,o)}else{e[t]=i({},o)}}else if(s.array(o)){e[t]=i([],o)}else{e[t]=o}}}return e};const a=(...e)=>{e=e.map(e=>e||{});const t=i({},...e);const r={};for(const e of o){r[e]=[]}for(const t of e){if(t.hooks){for(const e of o){r[e]=r[e].concat(t.hooks[e])}}}t.hooks=r;return t};const c=(e,t)=>{const r=e.map(e=>e.defaults.handler);const n=e.length-1;return{methods:t,options:a(...e.map(e=>e.defaults.options)),handler:(e,t)=>{let s=-1;const o=e=>r[++s](e,s===n?t:o);return o(e)}}};e.exports=i;e.exports.options=a;e.exports.instances=c},6034:(e,t,r)=>{"use strict";const{URL:n,URLSearchParams:s}=r(8835);const o=r(8835);const i=r(7678);const a=r(3194);const c=r(9662);const u=r(5491);const f=r(8272);const l=r(7339);const h=r(1924);const d=new Set([413,429,503]);const p=(e,t)=>{if(i.nullOrUndefined(e.headers)){e.headers={}}else{e.headers=c(e.headers)}if(e.baseUrl&&!e.baseUrl.toString().endsWith("/")){e.baseUrl+="/"}if(e.stream){e.json=false}if(i.nullOrUndefined(e.hooks)){e.hooks={}}else if(!i.object(e.hooks)){throw new TypeError(`Parameter \`hooks\` must be an object, not ${i(e.hooks)}`)}for(const r of h){if(i.nullOrUndefined(e.hooks[r])){if(t){e.hooks[r]=[...t.hooks[r]]}else{e.hooks[r]=[]}}}if(i.number(e.timeout)){e.gotTimeout={request:e.timeout}}else if(i.object(e.timeout)){e.gotTimeout=e.timeout}delete e.timeout;const{retry:r}=e;e.retry={retries:0,methods:[],statusCodes:[],errorCodes:[]};if(i.nonEmptyObject(t)&&r!==false){e.retry={...t.retry}}if(r!==false){if(i.number(r)){e.retry.retries=r}else{e.retry={...e.retry,...r}}}if(e.gotTimeout){e.retry.maxRetryAfter=Math.min(...[e.gotTimeout.request,e.gotTimeout.connection].filter(e=>!i.nullOrUndefined(e)))}if(i.array(e.retry.methods)){e.retry.methods=new Set(e.retry.methods.map(e=>e.toUpperCase()))}if(i.array(e.retry.statusCodes)){e.retry.statusCodes=new Set(e.retry.statusCodes)}if(i.array(e.retry.errorCodes)){e.retry.errorCodes=new Set(e.retry.errorCodes)}return e};const m=(e,t,r)=>{if(i.plainObject(e)){t={...e,...t};e=t.url||{};delete t.url}if(r){t=l({},r.options,t?p(t,r.options):{})}else{t=l({},p(t))}if(!i.string(e)&&!i.object(e)){throw new TypeError(`Parameter \`url\` must be a string or object, not ${i(e)}`)}if(i.string(e)){if(t.baseUrl){if(e.toString().startsWith("/")){e=e.toString().slice(1)}e=u(new n(e,t.baseUrl))}else{e=e.replace(/^unix:/,"http://$&");e=a(e)}}else if(i(e)==="URL"){e=u(e)}t=l({path:""},e,{protocol:e.protocol||"https:"},t);for(const e of t.hooks.init){const r=e(t);if(i.promise(r)){throw new TypeError("The `init` hook must be a synchronous function")}}const{baseUrl:o}=t;Object.defineProperty(t,"baseUrl",{set:()=>{throw new Error("Failed to set baseUrl. Options are normalized already.")},get:()=>o});const{query:c}=t;if(i.nonEmptyString(c)||i.nonEmptyObject(c)||c instanceof s){if(!i.string(c)){t.query=new s(c).toString()}t.path=`${t.path.split("?")[0]}?${t.query}`;delete t.query}if(t.hostname==="unix"){const e=/(.+?):(.+)/.exec(t.path);if(e){const[,r,n]=e;t={...t,socketPath:r,path:n,host:null}}}const{headers:h}=t;for(const[e,t]of Object.entries(h)){if(i.nullOrUndefined(t)){delete h[e]}}if(t.json&&i.undefined(h.accept)){h.accept="application/json"}if(t.decompress&&i.undefined(h["accept-encoding"])){h["accept-encoding"]="gzip, deflate"}const{body:m}=t;if(i.nullOrUndefined(m)){t.method=t.method?t.method.toUpperCase():"GET"}else{const e=i.object(m)&&!i.buffer(m)&&!i.nodeStream(m);if(!i.nodeStream(m)&&!i.string(m)&&!i.buffer(m)&&!(t.form||t.json)){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(t.json&&!(e||i.array(m))){throw new TypeError("The `body` option must be an Object or Array when the `json` option is used")}if(t.form&&!e){throw new TypeError("The `body` option must be an Object when the `form` option is used")}if(f(m)){h["content-type"]=h["content-type"]||`multipart/form-data; boundary=${m.getBoundary()}`}else if(t.form){h["content-type"]=h["content-type"]||"application/x-www-form-urlencoded";t.body=new s(m).toString()}else if(t.json){h["content-type"]=h["content-type"]||"application/json";t.body=JSON.stringify(m)}t.method=t.method?t.method.toUpperCase():"POST"}if(!i.function(t.retry.retries)){const{retries:e}=t.retry;t.retry.retries=((r,n)=>{if(r>e){return 0}if((!n||!t.retry.errorCodes.has(n.code))&&(!t.retry.methods.has(n.method)||!t.retry.statusCodes.has(n.statusCode))){return 0}if(Reflect.has(n,"headers")&&Reflect.has(n.headers,"retry-after")&&d.has(n.statusCode)){let e=Number(n.headers["retry-after"]);if(i.nan(e)){e=Date.parse(n.headers["retry-after"])-Date.now()}else{e*=1e3}if(e>t.retry.maxRetryAfter){return 0}return e}if(n.statusCode===413){return 0}const s=Math.random()*100;return 2**(r-1)*1e3+s})}return t};const y=e=>m(o.format(e),e);e.exports=m;e.exports.preNormalize=p;e.exports.reNormalize=y},2308:(e,t,r)=>{"use strict";const{Transform:n}=r(2413);e.exports={download(e,t,r){let s=0;return new n({transform(e,n,o){s+=e.length;const i=r?s/r:0;if(i<1){t.emit("downloadProgress",{percent:i,transferred:s,total:r})}o(null,e)},flush(e){t.emit("downloadProgress",{percent:1,transferred:s,total:r});e()}})},upload(e,t,r){const n=150;let s=0;let o;t.emit("uploadProgress",{percent:0,transferred:0,total:r});e.once("error",()=>{clearInterval(o)});e.once("response",()=>{clearInterval(o);t.emit("uploadProgress",{percent:1,transferred:s,total:r})});e.once("socket",i=>{const a=()=>{o=setInterval(()=>{const n=s;const o=e._header?Buffer.byteLength(e._header):0;s=i.bytesWritten-o;if(s===n||s===r){return}t.emit("uploadProgress",{percent:r?s/r:0,transferred:s,total:r})},n)};if(i.connecting){i.once("connect",a)}else if(i.writable){a()}})}}},5296:(e,t,r)=>{"use strict";const{URL:n}=r(8835);const s=r(1669);const o=r(8614);const i=r(8605);const a=r(7211);const c=r(8835);const u=r(8116);const f=r(3158);const l=r(7678);const h=r(9308);const d=r(4477);const p=r(8891);const m=r(6715);const y=r(2308);const{CacheError:_,UnsupportedProtocolError:b,MaxRedirectsError:g,RequestError:w,TimeoutError:v}=r(7083);const x=r(5491);const E=new Set([300,301,302,303,304,305,307,308]);const O=new Set([300,303,307,308]);e.exports=((e,t)=>{const r=new o;const S=[];let j;let P;let T;let C;let H=0;let A=false;const D=e.cookieJar?s.promisify(e.cookieJar.setCookie.bind(e.cookieJar)):null;const $=e.cookieJar?s.promisify(e.cookieJar.getCookieString.bind(e.cookieJar)):null;const I=l.object(e.agent)?e.agent:null;const U=async t=>{try{for(const r of e.hooks.beforeError){t=await r(t)}r.emit("error",t)}catch(e){r.emit("error",e)}};const M=async e=>{const s=T||P;if(e.protocol!=="http:"&&e.protocol!=="https:"){throw new b(e)}decodeURI(s);let o;if(l.function(e.request)){o={request:e.request}}else{o=e.protocol==="https:"?a:i}if(I){const t=e.protocol==="https:"?"https":"http";e.agent=I[t]||e.agent}if(e.useElectronNet&&process.versions.electron){const e={x:require}["yx".slice(1)];const t=e("electron");o=t.net||t.remote.net}if(e.cookieJar){const t=await $(s,{});if(l.nonEmptyString(t)){e.headers.cookie=t}}let c;const f=async t=>{try{if(e.useElectronNet){t=new Proxy(t,{get:(e,t)=>{if(t==="trailers"||t==="rawTrailers"){return[]}const r=e[t];return l.function(r)?r.bind(e):r}})}const{statusCode:o}=t;t.url=s;t.requestUrl=P;t.retryCount=H;t.timings=c;t.redirectUrls=S;t.request={gotOptions:e};const i=t.headers["set-cookie"];if(e.cookieJar&&i){await Promise.all(i.map(e=>D(e,t.url)))}if(e.followRedirect&&"location"in t.headers){if(O.has(o)||E.has(o)&&(e.method==="GET"||e.method==="HEAD")){t.resume();if(o===303){e.method="GET"}if(S.length>=10){throw new g(o,S,e)}const i=Buffer.from(t.headers.location,"binary").toString();const a=new n(i,s);T=a.toString();S.push(T);const c={...e,...x(a)};for(const t of e.hooks.beforeRedirect){await t(c)}r.emit("redirect",t,c);await M(c);return}}m(t,e,r)}catch(e){U(e)}};const p=n=>{if(A){n.once("error",()=>{});n.abort();return}j=n;n.once("error",t=>{if(n.aborted){return}if(t instanceof d.TimeoutError){t=new v(t,e)}else{t=new w(t,e)}if(r.retry(t)===false){U(t)}});c=h(n);y.upload(n,r,C);if(e.gotTimeout){d(n,e.gotTimeout,e)}r.emit("request",n);const s=()=>{n.emit("upload-complete")};try{if(l.nodeStream(e.body)){e.body.once("end",s);e.body.pipe(n);e.body=undefined}else if(e.body){n.end(e.body,s)}else if(t&&(e.method==="POST"||e.method==="PUT"||e.method==="PATCH")){t.once("end",s);t.pipe(n)}else{n.end(s)}}catch(t){U(new w(t,e))}};if(e.cache){const t=new u(o.request,e.cache);const r=t(e,f);r.once("error",t=>{if(t instanceof u.RequestError){U(new w(t,e))}else{U(new _(t,e))}});r.once("request",p)}else{try{p(o.request(e,f))}catch(t){U(new w(t,e))}}};r.retry=(t=>{let r;try{r=e.retry.retries(++H,t)}catch(e){U(e);return}if(r){const n=async e=>{try{for(const r of e.hooks.beforeRetry){await r(e,t,H)}await M(e)}catch(e){U(e)}};setTimeout(n,r,{...e,forceRefresh:true});return true}return false});r.abort=(()=>{if(j){j.once("error",()=>{});j.abort()}else{A=true}});setImmediate(async()=>{try{const{body:t}=e;if(l.buffer(t)){e.body=f(t);C=t.length}else{C=await p(e)}if(l.undefined(e.headers["content-length"])&&l.undefined(e.headers["transfer-encoding"])){if((C>0||e.method==="PUT")&&!l.null(C)){e.headers["content-length"]=C}}for(const t of e.hooks.beforeRequest){await t(e)}P=e.href||new n(e.path,c.format(e)).toString();await M(e)}catch(e){U(e)}});return r})},3970:(e,t,r)=>{"use strict";const n=r(7678);e.exports=function deepFreeze(e){for(const[t,r]of Object.entries(e)){if(n.plainObject(r)||n.array(r)){deepFreeze(e[t])}}return Object.freeze(e)}},8891:(e,t,r)=>{"use strict";const n=r(5747);const s=r(1669);const o=r(7678);const i=r(8272);e.exports=(async e=>{const{body:t}=e;if(e.headers["content-length"]){return Number(e.headers["content-length"])}if(!t&&!e.stream){return 0}if(o.string(t)){return Buffer.byteLength(t)}if(i(t)){return s.promisify(t.getLength.bind(t))()}if(t instanceof n.ReadStream){const{size:e}=await s.promisify(n.stat)(t.path);return e}return null})},8272:(e,t,r)=>{"use strict";const n=r(7678);e.exports=(e=>n.nodeStream(e)&&n.function(e.getBoundary))},4477:(e,t,r)=>{"use strict";const n=r(1631);class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.name="TimeoutError";this.code="ETIMEDOUT";this.event=t}}const s=Symbol("reentry");const o=()=>{};e.exports=((e,t,r)=>{if(e[s]){return}e[s]=true;let i=false;const a=(e,t,...r)=>{if(i){return o}let n;const s=setTimeout(()=>{n=setImmediate(t,e,...r);if(n.unref){n.unref()}},e);if(s.unref){s.unref()}const a=()=>{clearTimeout(s);clearImmediate(n)};l.push(a);return a};const{host:c,hostname:u}=r;const f=(t,r)=>{e.emit("error",new TimeoutError(t,r));e.once("error",()=>{});e.abort()};const l=[];const h=()=>{i=true;l.forEach(e=>e())};e.once("error",h);e.once("response",e=>{e.once("end",h)});if(t.request!==undefined){a(t.request,f,"request")}if(t.socket!==undefined){const r=()=>{f(t.socket,"socket")};e.setTimeout(t.socket,r);l.push(()=>e.removeListener("timeout",r))}if(t.lookup!==undefined&&!e.socketPath&&!n.isIP(u||c)){e.once("socket",e=>{if(e.connecting){const r=a(t.lookup,f,"lookup");e.once("lookup",r)}})}if(t.connect!==undefined){e.once("socket",r=>{if(r.connecting){const s=()=>a(t.connect,f,"connect");if(e.socketPath||n.isIP(u||c)){r.once("connect",s())}else{r.once("lookup",e=>{if(e===null){r.once("connect",s())}})}}})}if(t.secureConnect!==undefined&&r.protocol==="https:"){e.once("socket",e=>{if(e.connecting){e.once("connect",()=>{const r=a(t.secureConnect,f,"secureConnect");e.once("secureConnect",r)})}})}if(t.send!==undefined){e.once("socket",r=>{const n=()=>a(t.send,f,"send");if(r.connecting){r.once("connect",()=>{e.once("upload-complete",n())})}else{e.once("upload-complete",n())}})}if(t.response!==undefined){e.once("upload-complete",()=>{const r=a(t.response,f,"response");e.once("response",r)})}});e.exports.TimeoutError=TimeoutError},5491:(e,t,r)=>{"use strict";const n=r(7678);e.exports=(e=>{const t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href};if(n.string(e.port)&&e.port.length>0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username}:${e.password}`}t.path=n.null(e.search)?e.pathname:`${e.pathname}${e.search}`;return t})},1002:e=>{"use strict";const t=new Set([200,203,204,206,300,301,404,405,410,414,501]);const r=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const n=new Set([500,502,503,504]);const s={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const o={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return n.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const r=e.trim().split(/\s*,\s*/);for(const e of r){const[r,n]=e.split(/\s*=\s*/,2);t[r]=n===undefined?true:n.replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const r in e){const n=e[r];t.push(n===true?r:r+"="+n)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:r,cacheHeuristic:n,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:i}={}){if(i){this._fromObject(i);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=r!==false;this._cacheHeuristic=undefined!==n?n:.1;this._immutableMinTtl=undefined!==s?s:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(o&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&r.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const r of t){if(e.headers[r]!==this._reqHeaders[r])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const r in e){if(s[r])continue;t[r]=e[r]}if(e.connection){const r=e.connection.trim().split(/\s*,\s*/);for(const e of r){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter(e=>{return!/^\s*1[0-9][0-9]/.test(e)});if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const r=Date.parse(this._resHeaders.expires);if(Number.isNaN(r)||rr){return Math.max(e,(t-r)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const r=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,r)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const r=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(r){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter(e=>{return!/^\s*W\//.test(e)});if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let r=false;if(t.status!==undefined&&t.status!=304){r=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){r=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){r=true}}if(!r){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const n={};for(const e in this._resHeaders){n[e]=e in t.headers&&!o[e]?t.headers[e]:this._resHeaders[e]}const s=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},2820:(e,t)=>{t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var r=Array.isArray(e);t=r?"[":"{";var n=true;for(var s in e){var o="function"==typeof e[s]||!r&&"undefined"===typeof e[s];if(Object.hasOwnProperty.call(e,s)&&!o){if(!n)t+=",";n=false;if(r){if(e[s]==undefined)t+="null";else t+=stringify(e[s])}else if(e[s]!==void 0){t+=stringify(s)+":"+stringify(e[s])}}}t+=r?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return new Buffer(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t})}},1531:(e,t,r)=>{"use strict";const n=r(8614);const s=r(2820);const o=e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const r=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map};class Keyv extends n{constructor(e,t){super();this.opts=Object.assign({namespace:"keyv",serialize:s.stringify,deserialize:s.parse},typeof e==="string"?{uri:e}:e,t);if(!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=o(e)}if(typeof this.opts.store.on==="function"){this.opts.store.on("error",e=>this.emit("error",e))}this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.get(e)).then(t=>{t=typeof t==="string"?this.opts.deserialize(t):t;if(t===undefined){return undefined}if(typeof t.expires==="number"&&Date.now()>t.expires){this.delete(e);return undefined}return t.value})}set(e,t,r){e=this._getKeyPrefix(e);if(typeof r==="undefined"){r=this.opts.ttl}if(r===0){r=undefined}const n=this.opts.store;return Promise.resolve().then(()=>{const s=typeof r==="number"?Date.now()+r:null;t={value:t,expires:s};return n.set(e,this.opts.serialize(t),r)}).then(()=>true)}delete(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.delete(e))}clear(){const e=this.opts.store;return Promise.resolve().then(()=>e.clear())}}e.exports=Keyv},9662:e=>{"use strict";e.exports=function(e){var t={};var r=Object.keys(Object(e));for(var n=0;n{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=((e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}})},7952:(e,t,r)=>{"use strict";const n=typeof URL==="undefined"?r(8835).URL:URL;const s="text/plain";const o="us-ascii";const i=(e,t)=>{return t.some(t=>t instanceof RegExp?t.test(e):t===e)};const a=(e,{stripHash:t})=>{const r=e.match(/^data:(.*?),(.*?)(?:#(.*))?$/);if(!r){throw new Error(`Invalid URL: ${e}`)}const n=r[1].split(";");const i=r[2];const a=t?"":r[3];let c=false;if(n[n.length-1]==="base64"){n.pop();c=true}const u=(n.shift()||"").toLowerCase();const f=n.map(e=>{let[t,r=""]=e.split("=").map(e=>e.trim());if(t==="charset"){r=r.toLowerCase();if(r===o){return""}}return`${t}${r?`=${r}`:""}`}).filter(Boolean);const l=[...f];if(c){l.push("base64")}if(l.length!==0||u&&u!==s){l.unshift(u)}return`data:${l.join(";")},${c?i.trim():i}${a?`#${a}`:""}`};const c=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};if(Reflect.has(t,"normalizeHttps")){throw new Error("options.normalizeHttps is renamed to options.forceHttp")}if(Reflect.has(t,"normalizeHttp")){throw new Error("options.normalizeHttp is renamed to options.forceHttps")}if(Reflect.has(t,"stripFragment")){throw new Error("options.stripFragment is renamed to options.stripHash")}e=e.trim();if(/^data:/i.test(e)){return a(e,t)}const r=e.startsWith("//");const s=!r&&/^\.*\//.test(e);if(!s){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const o=new n(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&o.protocol==="https:"){o.protocol="http:"}if(t.forceHttps&&o.protocol==="http:"){o.protocol="https:"}if(t.stripAuthentication){o.username="";o.password=""}if(t.stripHash){o.hash=""}if(o.pathname){o.pathname=o.pathname.replace(/((?!:).|^)\/{2,}/g,(e,t)=>{if(/^(?!\/)/g.test(t)){return`${t}/`}return"/"})}if(o.pathname){o.pathname=decodeURI(o.pathname)}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=o.pathname.split("/");const r=e[e.length-1];if(i(r,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);o.pathname=e.slice(1).join("/")+"/"}}if(o.hostname){o.hostname=o.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(o.hostname)){o.hostname=o.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...o.searchParams.keys()]){if(i(e,t.removeQueryParameters)){o.searchParams.delete(e)}}}if(t.sortQueryParameters){o.searchParams.sort()}if(t.removeTrailingSlash){o.pathname=o.pathname.replace(/\/$/,"")}e=o.toString();if((t.removeTrailingSlash||o.pathname==="/")&&o.hash===""){e=e.replace(/\/$/,"")}if(r&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=c;e.exports.default=c},1223:(e,t,r)=>{var n=r(2940);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},9072:e=>{"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((r,n,s)=>{t.push(s);e(...t).then(r,n)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,r)=>{this._reject=r;const n=e=>{this._isPending=false;t(e)};const s=e=>{this._isPending=false;r(e)};const o=e=>{this._cancelHandlers.push(e)};Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(n,s,o)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.default=PCancelable;e.exports.CancelError=CancelError},6143:e=>{"use strict";e.exports=((e,t)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``)}e=e.trim();t=Object.assign({https:false},t);if(/^\.*\/|^(?!localhost)\w+:/.test(e)){return e}return e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")})},8341:(e,t,r)=>{var n=r(1223);var s=r(1205);var o=r(5747);var i=function(){};var a=/^v?\.0/.test(process.version);var c=function(e){return typeof e==="function"};var u=function(e){if(!a)return false;if(!o)return false;return(e instanceof(o.ReadStream||i)||e instanceof(o.WriteStream||i))&&c(e.close)};var f=function(e){return e.setHeader&&c(e.abort)};var l=function(e,t,r,o){o=n(o);var a=false;e.on("close",function(){a=true});s(e,{readable:t,writable:r},function(e){if(e)return o(e);a=true;o()});var l=false;return function(t){if(a)return;if(l)return;l=true;if(u(e))return e.close(i);if(f(e))return e.abort();if(c(e.destroy))return e.destroy();o(t||new Error("stream was destroyed"))}};var h=function(e){e()};var d=function(e,t){return e.pipe(t)};var p=function(){var e=Array.prototype.slice.call(arguments);var t=c(e[e.length-1]||i)&&e.pop()||i;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map(function(s,o){var i=o0;return l(s,i,a,function(e){if(!r)r=e;if(e)n.forEach(h);if(i)return;n.forEach(h);t(r)})});return e.reduce(d)};e.exports=p},9004:(e,t,r)=>{"use strict";const n=r(2413).Readable;const s=r(9662);class Response extends n{constructor(e,t,r,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(r instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=s(t);this.body=r;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},3158:(e,t,r)=>{"use strict";const{Readable:n}=r(2413);e.exports=(e=>new n({read(){this.push(e);this.push(null)}}))},5636:(e,t,r)=>{"use strict";r.r(t);r.d(t,{__extends:()=>__extends,__assign:()=>s,__rest:()=>__rest,__decorate:()=>__decorate,__param:()=>__param,__metadata:()=>__metadata,__awaiter:()=>__awaiter,__generator:()=>__generator,__createBinding:()=>o,__exportStar:()=>__exportStar,__values:()=>__values,__read:()=>__read,__spread:()=>__spread,__spreadArrays:()=>__spreadArrays,__await:()=>__await,__asyncGenerator:()=>__asyncGenerator,__asyncDelegator:()=>__asyncDelegator,__asyncValues:()=>__asyncValues,__makeTemplateObject:()=>__makeTemplateObject,__importStar:()=>__importStar,__importDefault:()=>__importDefault,__classPrivateFieldGet:()=>__classPrivateFieldGet,__classPrivateFieldSet:()=>__classPrivateFieldSet});var n=function(e,t){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return n(e,t)};function __extends(e,t){n(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}var s=function(){s=Object.assign||function __assign(e){for(var t,r=1,n=arguments.length;r=0;a--)if(i=e[a])o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o;return s>3&&o&&Object.defineProperty(t,r,o),o}function __param(e,t){return function(r,n){t(r,n,e)}}function __metadata(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)}function __awaiter(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})}function __generator(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,s&&(o=i[0]&2?s["return"]:i[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,i[1])).done)return o;if(s=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;s=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,o=[],i;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)o.push(s.value)}catch(e){i={error:e}}finally{try{if(s&&!s.done&&(r=n["return"]))r.call(n)}finally{if(i)throw i.error}}return o}function __spread(){for(var e=[],t=0;t1||resume(e,t)})}}function resume(e,t){try{step(n[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof __await?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),o.shift(),o.length)resume(o[0][0],o[0][1])}}function __asyncDelegator(e){var t,r;return t={},verb("next"),verb("throw",function(e){throw e}),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:n==="return"}:s?s(t):t}:s}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise(function(n,s){r=e[t](r),settle(n,s,r.done,r.value)})}}function settle(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}}function __makeTemplateObject(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e}var i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))o(t,e,r);i(t,e);return t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return t.get(e)}function __classPrivateFieldSet(e,t,r){if(!t.has(e)){throw new TypeError("attempted to set private field on non-instance")}t.set(e,r);return r}},3194:(e,t,r)=>{"use strict";const n=r(8835);const s=r(6143);e.exports=((e,t)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`)}const r=s(e,Object.assign({https:true},t));return n.parse(r)})},2940:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5636);const s=n.__importStar(r(2186));const o=n.__importDefault(r(4462));const i=r(5074);function crash(e){console.error("An error occurred:",e.message)}i.run(s,o.default).catch(crash)},5074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.run=void 0;function hasMessage(e){return typeof e==="object"&&e!==null&&"message"in e}async function run(e,t){try{const r=e.getInput("event",{required:true});const n=e.getInput("key",{required:true});const{statusCode:s,body:o}=await t.post(`https://maker.ifttt.com/trigger/${r}/with/key/${n}`);return{statusCode:s,body:o}}catch(t){if(hasMessage(t)){e.setFailed(t.message)}throw t}}t.run=run},9248:e=>{"use strict";e.exports=JSON.parse('{"name":"got","version":"9.6.0","description":"Simplified HTTP requests","license":"MIT","repository":"sindresorhus/got","main":"source","engines":{"node":">=8.6"},"scripts":{"test":"xo && nyc ava","release":"np"},"files":["source"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],"dependencies":{"@sindresorhus/is":"^0.14.0","@szmarczak/http-timer":"^1.1.2","cacheable-request":"^6.0.0","decompress-response":"^3.3.0","duplexer3":"^0.1.4","get-stream":"^4.1.0","lowercase-keys":"^1.0.1","mimic-response":"^1.0.1","p-cancelable":"^1.0.0","to-readable-stream":"^1.0.0","url-parse-lax":"^3.0.0"},"devDependencies":{"ava":"^1.1.0","coveralls":"^3.0.0","delay":"^4.1.0","form-data":"^2.3.3","get-port":"^4.0.0","np":"^3.1.0","nyc":"^13.1.0","p-event":"^2.1.0","pem":"^1.13.2","proxyquire":"^2.0.1","sinon":"^7.2.2","slow-stream":"0.0.4","tempfile":"^2.0.0","tempy":"^0.2.1","tough-cookie":"^3.0.0","xo":"^0.24.0"},"ava":{"concurrency":4},"browser":{"decompress-response":false,"electron":false},"_resolved":"https://registry.npmjs.org/got/-/got-9.6.0.tgz","_integrity":"sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==","_from":"got@9.6.0"}')},4293:e=>{"use strict";e.exports=require("buffer")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4016:e=>{"use strict";e.exports=require("tls")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var s=true;try{e[r].call(n.exports,n,n.exports,__webpack_require__);s=false}finally{if(s)delete t[r]}return n.exports}(()=>{__webpack_require__.d=((e,t)=>{for(var r in t){if(__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(8490)})(); \ No newline at end of file +(()=>{var e={7351:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(2087));const a=r(5278);function issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const s=this.properties[r];if(s){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(s)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=r(7351);const c=r(717);const u=r(5278);const l=o(r(2087));const h=o(r(5622));var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const s=process.env["GITHUB_ENV"]||"";if(s){const t="_GitHubActionsFileCommandDelimeter_";const s=`${e}<<${t}${l.EOL}${r}${l.EOL}${t}`;c.issueCommand("ENV",s)}else{a.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){c.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${h.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const s=["false","False","FALSE"];const n=getInput(e,t);if(r.includes(n))return true;if(s.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e){a.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){a.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},717:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const i=o(r(5747));const a=o(r(2087));const c=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}i.appendFileSync(r,`${c.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},7678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function isTypedArrayName(e){return r.includes(e)}const s=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","HTMLElement",...r];function isObjectTypeName(e){return s.includes(e)}const n=["null","undefined","string","number","bigint","boolean","symbol"];function isPrimitiveTypeName(e){return n.includes(e)}function isOfType(e){return t=>typeof t===e}const{toString:o}=Object.prototype;const getObjectType=e=>{const t=o.call(e).slice(8,-1);if(/HTML\w+Element/.test(t)&&is.domElement(e)){return"HTMLElement"}if(isObjectTypeName(t)){return t}return undefined};const isObjectOfType=e=>t=>getObjectType(t)===e;function is(e){if(e===null){return"null"}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(is.observable(e)){return"Observable"}if(is.array(e)){return"Array"}if(is.buffer(e)){return"Buffer"}const t=getObjectType(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}is.undefined=isOfType("undefined");is.string=isOfType("string");const i=isOfType("number");is.number=e=>i(e)&&!is.nan(e);is.bigint=isOfType("bigint");is.function_=isOfType("function");is.null_=e=>e===null;is.class_=e=>is.function_(e)&&e.toString().startsWith("class ");is.boolean=e=>e===true||e===false;is.symbol=isOfType("symbol");is.numericString=e=>is.string(e)&&!is.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e));is.array=(e,t)=>{if(!Array.isArray(e)){return false}if(!is.function_(t)){return true}return e.every(t)};is.buffer=e=>{var t,r,s,n;return(n=(s=(r=(t=e)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.isBuffer)===null||s===void 0?void 0:s.call(r,e))!==null&&n!==void 0?n:false};is.nullOrUndefined=e=>is.null_(e)||is.undefined(e);is.object=e=>!is.null_(e)&&(typeof e==="object"||is.function_(e));is.iterable=e=>{var t;return is.function_((t=e)===null||t===void 0?void 0:t[Symbol.iterator])};is.asyncIterable=e=>{var t;return is.function_((t=e)===null||t===void 0?void 0:t[Symbol.asyncIterator])};is.generator=e=>is.iterable(e)&&is.function_(e.next)&&is.function_(e.throw);is.asyncGenerator=e=>is.asyncIterable(e)&&is.function_(e.next)&&is.function_(e.throw);is.nativePromise=e=>isObjectOfType("Promise")(e);const hasPromiseAPI=e=>{var t,r;return is.function_((t=e)===null||t===void 0?void 0:t.then)&&is.function_((r=e)===null||r===void 0?void 0:r.catch)};is.promise=e=>is.nativePromise(e)||hasPromiseAPI(e);is.generatorFunction=isObjectOfType("GeneratorFunction");is.asyncGeneratorFunction=e=>getObjectType(e)==="AsyncGeneratorFunction";is.asyncFunction=e=>getObjectType(e)==="AsyncFunction";is.boundFunction=e=>is.function_(e)&&!e.hasOwnProperty("prototype");is.regExp=isObjectOfType("RegExp");is.date=isObjectOfType("Date");is.error=isObjectOfType("Error");is.map=e=>isObjectOfType("Map")(e);is.set=e=>isObjectOfType("Set")(e);is.weakMap=e=>isObjectOfType("WeakMap")(e);is.weakSet=e=>isObjectOfType("WeakSet")(e);is.int8Array=isObjectOfType("Int8Array");is.uint8Array=isObjectOfType("Uint8Array");is.uint8ClampedArray=isObjectOfType("Uint8ClampedArray");is.int16Array=isObjectOfType("Int16Array");is.uint16Array=isObjectOfType("Uint16Array");is.int32Array=isObjectOfType("Int32Array");is.uint32Array=isObjectOfType("Uint32Array");is.float32Array=isObjectOfType("Float32Array");is.float64Array=isObjectOfType("Float64Array");is.bigInt64Array=isObjectOfType("BigInt64Array");is.bigUint64Array=isObjectOfType("BigUint64Array");is.arrayBuffer=isObjectOfType("ArrayBuffer");is.sharedArrayBuffer=isObjectOfType("SharedArrayBuffer");is.dataView=isObjectOfType("DataView");is.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype;is.urlInstance=e=>isObjectOfType("URL")(e);is.urlString=e=>{if(!is.string(e)){return false}try{new URL(e);return true}catch(e){return false}};is.truthy=e=>Boolean(e);is.falsy=e=>!e;is.nan=e=>Number.isNaN(e);is.primitive=e=>is.null_(e)||isPrimitiveTypeName(typeof e);is.integer=e=>Number.isInteger(e);is.safeInteger=e=>Number.isSafeInteger(e);is.plainObject=e=>{if(o.call(e)!=="[object Object]"){return false}const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};is.typedArray=e=>isTypedArrayName(getObjectType(e));const isValidLength=e=>is.safeInteger(e)&&e>=0;is.arrayLike=e=>!is.nullOrUndefined(e)&&!is.function_(e)&&isValidLength(e.length);is.inRange=(e,t)=>{if(is.number(t)){return e>=Math.min(0,t)&&e<=Math.max(t,0)}if(is.array(t)&&t.length===2){return e>=Math.min(...t)&&e<=Math.max(...t)}throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)};const a=1;const c=["innerHTML","ownerDocument","style","attributes","nodeValue"];is.domElement=e=>is.object(e)&&e.nodeType===a&&is.string(e.nodeName)&&!is.plainObject(e)&&c.every((t=>t in e));is.observable=e=>{var t,r,s,n;if(!e){return false}if(e===((r=(t=e)[Symbol.observable])===null||r===void 0?void 0:r.call(t))){return true}if(e===((n=(s=e)["@@observable"])===null||n===void 0?void 0:n.call(s))){return true}return false};is.nodeStream=e=>is.object(e)&&is.function_(e.pipe)&&!is.observable(e);is.infinite=e=>e===Infinity||e===-Infinity;const isAbsoluteMod2=e=>t=>is.integer(t)&&Math.abs(t%2)===e;is.evenInteger=isAbsoluteMod2(0);is.oddInteger=isAbsoluteMod2(1);is.emptyArray=e=>is.array(e)&&e.length===0;is.nonEmptyArray=e=>is.array(e)&&e.length>0;is.emptyString=e=>is.string(e)&&e.length===0;is.nonEmptyString=e=>is.string(e)&&e.length>0;const isWhiteSpaceString=e=>is.string(e)&&!/\S/.test(e);is.emptyStringOrWhitespace=e=>is.emptyString(e)||isWhiteSpaceString(e);is.emptyObject=e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length===0;is.nonEmptyObject=e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length>0;is.emptySet=e=>is.set(e)&&e.size===0;is.nonEmptySet=e=>is.set(e)&&e.size>0;is.emptyMap=e=>is.map(e)&&e.size===0;is.nonEmptyMap=e=>is.map(e)&&e.size>0;const predicateOnArray=(e,t,r)=>{if(!is.function_(t)){throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`)}if(r.length===0){throw new TypeError("Invalid number of values")}return e.call(r,t)};is.any=(e,...t)=>{const r=is.array(e)?e:[e];return r.some((e=>predicateOnArray(Array.prototype.some,e,t)))};is.all=(e,...t)=>predicateOnArray(Array.prototype.every,e,t);const assertType=(e,t,r,s={})=>{if(!e){const{multipleValues:e}=s;const n=e?`received values of types ${[...new Set(r.map((e=>`\`${is(e)}\``)))].join(", ")}`:`received value of type \`${is(r)}\``;throw new TypeError(`Expected value which is \`${t}\`, ${n}.`)}};t.assert={undefined:e=>assertType(is.undefined(e),"undefined",e),string:e=>assertType(is.string(e),"string",e),number:e=>assertType(is.number(e),"number",e),bigint:e=>assertType(is.bigint(e),"bigint",e),function_:e=>assertType(is.function_(e),"Function",e),null_:e=>assertType(is.null_(e),"null",e),class_:e=>assertType(is.class_(e),"Class",e),boolean:e=>assertType(is.boolean(e),"boolean",e),symbol:e=>assertType(is.symbol(e),"symbol",e),numericString:e=>assertType(is.numericString(e),"string with a number",e),array:(e,t)=>{const r=assertType;r(is.array(e),"Array",e);if(t){e.forEach(t)}},buffer:e=>assertType(is.buffer(e),"Buffer",e),nullOrUndefined:e=>assertType(is.nullOrUndefined(e),"null or undefined",e),object:e=>assertType(is.object(e),"Object",e),iterable:e=>assertType(is.iterable(e),"Iterable",e),asyncIterable:e=>assertType(is.asyncIterable(e),"AsyncIterable",e),generator:e=>assertType(is.generator(e),"Generator",e),asyncGenerator:e=>assertType(is.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>assertType(is.nativePromise(e),"native Promise",e),promise:e=>assertType(is.promise(e),"Promise",e),generatorFunction:e=>assertType(is.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>assertType(is.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>assertType(is.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>assertType(is.boundFunction(e),"Function",e),regExp:e=>assertType(is.regExp(e),"RegExp",e),date:e=>assertType(is.date(e),"Date",e),error:e=>assertType(is.error(e),"Error",e),map:e=>assertType(is.map(e),"Map",e),set:e=>assertType(is.set(e),"Set",e),weakMap:e=>assertType(is.weakMap(e),"WeakMap",e),weakSet:e=>assertType(is.weakSet(e),"WeakSet",e),int8Array:e=>assertType(is.int8Array(e),"Int8Array",e),uint8Array:e=>assertType(is.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>assertType(is.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>assertType(is.int16Array(e),"Int16Array",e),uint16Array:e=>assertType(is.uint16Array(e),"Uint16Array",e),int32Array:e=>assertType(is.int32Array(e),"Int32Array",e),uint32Array:e=>assertType(is.uint32Array(e),"Uint32Array",e),float32Array:e=>assertType(is.float32Array(e),"Float32Array",e),float64Array:e=>assertType(is.float64Array(e),"Float64Array",e),bigInt64Array:e=>assertType(is.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>assertType(is.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>assertType(is.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>assertType(is.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>assertType(is.dataView(e),"DataView",e),urlInstance:e=>assertType(is.urlInstance(e),"URL",e),urlString:e=>assertType(is.urlString(e),"string with a URL",e),truthy:e=>assertType(is.truthy(e),"truthy",e),falsy:e=>assertType(is.falsy(e),"falsy",e),nan:e=>assertType(is.nan(e),"NaN",e),primitive:e=>assertType(is.primitive(e),"primitive",e),integer:e=>assertType(is.integer(e),"integer",e),safeInteger:e=>assertType(is.safeInteger(e),"integer",e),plainObject:e=>assertType(is.plainObject(e),"plain object",e),typedArray:e=>assertType(is.typedArray(e),"TypedArray",e),arrayLike:e=>assertType(is.arrayLike(e),"array-like",e),domElement:e=>assertType(is.domElement(e),"HTMLElement",e),observable:e=>assertType(is.observable(e),"Observable",e),nodeStream:e=>assertType(is.nodeStream(e),"Node.js Stream",e),infinite:e=>assertType(is.infinite(e),"infinite number",e),emptyArray:e=>assertType(is.emptyArray(e),"empty array",e),nonEmptyArray:e=>assertType(is.nonEmptyArray(e),"non-empty array",e),emptyString:e=>assertType(is.emptyString(e),"empty string",e),nonEmptyString:e=>assertType(is.nonEmptyString(e),"non-empty string",e),emptyStringOrWhitespace:e=>assertType(is.emptyStringOrWhitespace(e),"empty string or whitespace",e),emptyObject:e=>assertType(is.emptyObject(e),"empty object",e),nonEmptyObject:e=>assertType(is.nonEmptyObject(e),"non-empty object",e),emptySet:e=>assertType(is.emptySet(e),"empty set",e),nonEmptySet:e=>assertType(is.nonEmptySet(e),"non-empty set",e),emptyMap:e=>assertType(is.emptyMap(e),"empty map",e),nonEmptyMap:e=>assertType(is.nonEmptyMap(e),"non-empty map",e),evenInteger:e=>assertType(is.evenInteger(e),"even integer",e),oddInteger:e=>assertType(is.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>assertType(is.directInstanceOf(e,t),"T",e),inRange:(e,t)=>assertType(is.inRange(e,t),"in range",e),any:(e,...t)=>assertType(is.any(e,...t),"predicate returns truthy for any value",t,{multipleValues:true}),all:(e,...t)=>assertType(is.all(e,...t),"predicate returns truthy for all values",t,{multipleValues:true})};Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}});t.default=is;e.exports=is;e.exports.default=is;e.exports.assert=t.assert},8097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(6214);const n=Number(process.versions.node.split(".")[0]);const timer=e=>{const t={start:Date.now(),socket:undefined,lookup:undefined,connect:undefined,secureConnect:undefined,upload:undefined,response:undefined,end:undefined,error:undefined,abort:undefined,phases:{wait:undefined,dns:undefined,tcp:undefined,tls:undefined,request:undefined,firstByte:undefined,download:undefined,total:undefined}};e.timings=t;const handleError=e=>{const r=e.emit.bind(e);e.emit=(s,...n)=>{if(s==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=r}return r(s,...n)}};handleError(e);e.prependOnceListener("abort",(()=>{t.abort=Date.now();if(!t.response||n>=13){t.phases.total=Date.now()-t.start}}));const onSocket=e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;const lookupListener=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.prependOnceListener("lookup",lookupListener);s.default(e,{connect:()=>{t.connect=Date.now();if(t.lookup===undefined){e.removeListener("lookup",lookupListener);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now();t.phases.tls=t.secureConnect-t.connect}})};if(e.socket){onSocket(e.socket)}else{e.prependOnceListener("socket",onSocket)}const onUpload=()=>{var e;t.upload=Date.now();t.phases.request=t.upload-(e=t.secureConnect,e!==null&&e!==void 0?e:t.connect)};const writableFinished=()=>{if(typeof e.writableFinished==="boolean"){return e.writableFinished}return e.finished&&e.outputSize===0&&(!e.socket||e.socket.writableLength===0)};if(writableFinished()){onUpload()}else{e.prependOnceListener("finish",onUpload)}e.prependOnceListener("response",(e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;e.timings=t;handleError(e);e.prependOnceListener("end",(()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start}))}));return t};t.default=timer;e.exports=timer;e.exports.default=timer},2286:(e,t,r)=>{"use strict";const{V4MAPPED:s,ADDRCONFIG:n,ALL:o,promises:{Resolver:i},lookup:a}=r(881);const{promisify:c}=r(1669);const u=r(2087);const l=Symbol("cacheableLookupCreateConnection");const h=Symbol("cacheableLookupInstance");const d=Symbol("expires");const p=typeof o==="number";const verifyAgent=e=>{if(!(e&&typeof e.createConnection==="function")){throw new Error("Expected an Agent instance as the first argument")}};const map4to6=e=>{for(const t of e){if(t.family===6){continue}t.address=`::ffff:${t.address}`;t.family=6}};const getIfaceInfo=()=>{let e=false;let t=false;for(const r of Object.values(u.networkInterfaces())){for(const s of r){if(s.internal){continue}if(s.family==="IPv6"){t=true}else{e=true}if(e&&t){return{has4:e,has6:t}}}}return{has4:e,has6:t}};const isIterable=e=>Symbol.iterator in e;const m={ttl:true};const y={all:true};class CacheableLookup{constructor({cache:e=new Map,maxTtl:t=Infinity,fallbackDuration:r=3600,errorTtl:s=.15,resolver:n=new i,lookup:o=a}={}){this.maxTtl=t;this.errorTtl=s;this._cache=e;this._resolver=n;this._dnsLookup=c(o);if(this._resolver instanceof i){this._resolve4=this._resolver.resolve4.bind(this._resolver);this._resolve6=this._resolver.resolve6.bind(this._resolver)}else{this._resolve4=c(this._resolver.resolve4.bind(this._resolver));this._resolve6=c(this._resolver.resolve6.bind(this._resolver))}this._iface=getIfaceInfo();this._pending={};this._nextRemovalTime=false;this._hostnamesToFallback=new Set;if(r<1){this._fallback=false}else{this._fallback=true;const e=setInterval((()=>{this._hostnamesToFallback.clear()}),r*1e3);if(e.unref){e.unref()}}this.lookup=this.lookup.bind(this);this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear();this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,r){if(typeof t==="function"){r=t;t={}}else if(typeof t==="number"){t={family:t}}if(!r){throw new Error("Callback must be a function.")}this.lookupAsync(e,t).then((e=>{if(t.all){r(null,e)}else{r(null,e.address,e.family,e.expires,e.ttl)}}),r)}async lookupAsync(e,t={}){if(typeof t==="number"){t={family:t}}let r=await this.query(e);if(t.family===6){const e=r.filter((e=>e.family===6));if(t.hints&s){if(p&&t.hints&o||e.length===0){map4to6(r)}else{r=e}}else{r=e}}else if(t.family===4){r=r.filter((e=>e.family===4))}if(t.hints&n){const{_iface:e}=this;r=r.filter((t=>t.family===6?e.has6:e.has4))}if(r.length===0){const t=new Error(`cacheableLookup ENOTFOUND ${e}`);t.code="ENOTFOUND";t.hostname=e;throw t}if(t.all){return r}return r[0]}async query(e){let t=await this._cache.get(e);if(!t){const r=this._pending[e];if(r){t=await r}else{const r=this.queryAndCache(e);this._pending[e]=r;try{t=await r}finally{delete this._pending[e]}}}t=t.map((e=>({...e})));return t}async _resolve(e){const wrap=async e=>{try{return await e}catch(e){if(e.code==="ENODATA"||e.code==="ENOTFOUND"){return[]}throw e}};const[t,r]=await Promise.all([this._resolve4(e,m),this._resolve6(e,m)].map((e=>wrap(e))));let s=0;let n=0;let o=0;const i=Date.now();for(const e of t){e.family=4;e.expires=i+e.ttl*1e3;s=Math.max(s,e.ttl)}for(const e of r){e.family=6;e.expires=i+e.ttl*1e3;n=Math.max(n,e.ttl)}if(t.length>0){if(r.length>0){o=Math.min(s,n)}else{o=s}}else{o=n}return{entries:[...t,...r],cacheTtl:o}}async _lookup(e){try{const t=await this._dnsLookup(e,{all:true});return{entries:t,cacheTtl:0}}catch(e){return{entries:[],cacheTtl:0}}}async _set(e,t,r){if(this.maxTtl>0&&r>0){r=Math.min(r,this.maxTtl)*1e3;t[d]=Date.now()+r;try{await this._cache.set(e,t,r)}catch(e){this.lookupAsync=async()=>{const t=new Error("Cache Error. Please recreate the CacheableLookup instance.");t.cause=e;throw t}}if(isIterable(this._cache)){this._tick(r)}}}async queryAndCache(e){if(this._hostnamesToFallback.has(e)){return this._dnsLookup(e,y)}let t=await this._resolve(e);if(t.entries.length===0&&this._fallback){t=await this._lookup(e);if(t.entries.length!==0){this._hostnamesToFallback.add(e)}}const r=t.entries.length===0?this.errorTtl:t.cacheTtl;await this._set(e,t.entries,r);return t.entries}_tick(e){const t=this._nextRemovalTime;if(!t||e{this._nextRemovalTime=false;let e=Infinity;const t=Date.now();for(const[r,s]of this._cache){const n=s[d];if(t>=n){this._cache.delete(r)}else if(n{if(!("lookup"in t)){t.lookup=this.lookup}return e[l](t,r)}}uninstall(e){verifyAgent(e);if(e[l]){if(e[h]!==this){throw new Error("The agent is not owned by this CacheableLookup instance")}e.createConnection=e[l];delete e[l];delete e[h]}}updateInterfaceInfo(){const{_iface:e}=this;this._iface=getIfaceInfo();if(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6){this._cache.clear()}}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}}e.exports=CacheableLookup;e.exports.default=CacheableLookup},4340:(e,t,r)=>{"use strict";const{PassThrough:s}=r(2413);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n=r==="buffer";let o=false;if(t){o=!(r||n)}else{r=r||"utf8"}if(n){r=null}const i=new s({objectMode:o});if(r){i.setEncoding(r)}let a=0;const c=[];i.on("data",(e=>{c.push(e);if(o){a=c.length}else{a+=e.length}}));i.getBufferedValue=()=>{if(t){return c}return n?Buffer.concat(c,a):c.join("")};i.getBufferedLength=()=>a;return i}},7040:(e,t,r)=>{"use strict";const{constants:s}=r(4293);const n=r(8341);const o=r(4340);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;let i;await new Promise(((a,c)=>{const rejectPromise=e=>{if(e&&i.getBufferedLength()<=s.MAX_LENGTH){e.bufferedData=i.getBufferedValue()}c(e)};i=n(e,o(t),(e=>{if(e){rejectPromise(e);return}a()}));i.on("data",(()=>{if(i.getBufferedLength()>r){rejectPromise(new MaxBufferError)}}))}));return i.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=(e,t)=>getStream(e,{...t,encoding:"buffer"});e.exports.array=(e,t)=>getStream(e,{...t,array:true});e.exports.MaxBufferError=MaxBufferError},8116:(e,t,r)=>{"use strict";const s=r(8614);const n=r(8835);const o=r(7952);const i=r(7040);const a=r(1002);const c=r(9004);const u=r(9662);const l=r(1312);const h=r(1531);class CacheableRequest{constructor(e,t){if(typeof e!=="function"){throw new TypeError("Parameter `request` must be a function")}this.cache=new h({uri:typeof t==="string"&&t,store:typeof t!=="string"&&t,namespace:"cacheable-request"});return this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{let h;if(typeof t==="string"){h=normalizeUrlObject(n.parse(t));t={}}else if(t instanceof n.URL){h=normalizeUrlObject(n.parse(t.toString()));t={}}else{const[e,...r]=(t.path||"").split("?");const s=r.length>0?`?${r.join("?")}`:"";h=normalizeUrlObject({...t,pathname:e,search:s})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(h)};t.headers=u(t.headers);const d=new s;const p=o(n.format(h),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const m=`${t.method}:${p}`;let y=false;let g=false;const makeRequest=t=>{g=true;let s=false;let n;const o=new Promise((e=>{n=()=>{if(!s){s=true;e()}}}));const handler=e=>{if(y&&!t.forceRefresh){e.status=e.statusCode;const r=a.fromObject(y.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();e=new c(y.statusCode,t,y.body,y.url);e.cachePolicy=r.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new a(t,e,t);e.fromCache=false}let n;if(t.cache&&e.cachePolicy.storable()){n=l(e);(async()=>{try{const r=i.buffer(e);await Promise.race([o,new Promise((t=>e.once("end",t)))]);if(s){return}const n=await r;const a={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?y.statusCode:e.statusCode,body:n};let c=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){c=c?Math.min(c,t.maxTtl):t.maxTtl}await this.cache.set(m,a,c)}catch(e){d.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&y){(async()=>{try{await this.cache.delete(m)}catch(e){d.emit("error",new CacheableRequest.CacheError(e))}})()}d.emit("response",n||e);if(typeof r==="function"){r(n||e)}};try{const r=e(t,handler);r.once("error",n);r.once("abort",n);d.emit("request",r)}catch(e){d.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const get=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(m):undefined;if(typeof t==="undefined"){return makeRequest(e)}const s=a.fromObject(t.cachePolicy);if(s.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=s.responseHeaders();const n=new c(t.statusCode,e,t.body,t.url);n.cachePolicy=s;n.fromCache=true;d.emit("response",n);if(typeof r==="function"){r(n)}}else{y=t;e.headers=s.revalidationHeaders(e);makeRequest(e)}};const errorHandler=e=>d.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",errorHandler);d.on("response",(()=>this.cache.removeListener("error",errorHandler)));try{await get(t)}catch(e){if(t.automaticFailover&&!g){makeRequest(t)}d.emit("error",new CacheableRequest.CacheError(e))}})();return d}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},1312:(e,t,r)=>{"use strict";const s=r(2413).PassThrough;const n=r(2610);const cloneResponse=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new s;n(e,t);return e.pipe(t)};e.exports=cloneResponse},2391:(e,t,r)=>{"use strict";const{Transform:s,PassThrough:n}=r(2413);const o=r(8761);const i=r(3877);e.exports=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t)){return e}const r=t==="br";if(r&&typeof o.createBrotliDecompress!=="function"){e.destroy(new Error("Brotli is not supported on Node.js < 12"));return e}let a=true;const c=new s({transform(e,t,r){a=false;r(null,e)},flush(e){e()}});const u=new n({autoDestroy:false,destroy(t,r){e.destroy();r(t)}});const l=r?o.createBrotliDecompress():o.createUnzip();l.once("error",(t=>{if(a&&!e.readable){u.end();return}u.destroy(t)}));i(e,u);e.pipe(c).pipe(l).pipe(u);return u}},3877:e=>{"use strict";const t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=(e,r)=>{if(r._readableState.autoDestroy){throw new Error("The second stream must have the `autoDestroy` option set to `false`")}const s=new Set(Object.keys(e).concat(t));const n={};for(const t of s){if(t in r){continue}n[t]={get(){const r=e[t];const s=typeof r==="function";return s?r.bind(e):r},set(r){e[t]=r},enumerable:true,configurable:false}}Object.defineProperties(r,n);e.once("aborted",(()=>{r.destroy();r.emit("aborted")}));e.once("close",(()=>{if(e.complete){if(r.readable){r.once("end",(()=>{r.emit("close")}))}else{r.emit("close")}}else{r.emit("close")}}));return r}},6214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function isTLSSocket(e){return e.encrypted}const deferToConnect=(e,t)=>{let r;if(typeof t==="function"){const e=t;r={connect:e}}else{r=t}const s=typeof r.connect==="function";const n=typeof r.secureConnect==="function";const o=typeof r.close==="function";const onConnect=()=>{if(s){r.connect()}if(isTLSSocket(e)&&n){if(e.authorized){r.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",r.secureConnect)}}if(o){e.once("close",r.close)}};if(e.writable&&!e.connecting){onConnect()}else if(e.connecting){e.once("connect",onConnect)}else if(e.destroyed&&o){r.close(e._hadError)}};t.default=deferToConnect;e.exports=deferToConnect;e.exports.default=deferToConnect},1205:(e,t,r)=>{var s=r(1223);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=s(r||noop);var n=e._writableState;var o=e._readableState;var i=t.readable||t.readable!==false&&e.readable;var a=t.writable||t.writable!==false&&e.writable;var c=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){a=false;if(!i)r.call(e)};var onend=function(){i=false;if(!a)r.call(e)};var onexit=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var onerror=function(t){r.call(e,t)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(c)return;if(i&&!(o&&(o.ended&&!o.destroyed)))return r.call(e,new Error("premature close"));if(a&&!(n&&(n.ended&&!n.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(a&&!n){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(t.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){c=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},6457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(4597);function createRejection(e,...t){const r=(async()=>{if(e instanceof s.RequestError){try{for(const r of t){if(r){for(const t of r){e=await t(e)}}}}catch(t){e=t}}throw e})();const returnPromise=()=>r;r.json=returnPromise;r.text=returnPromise;r.buffer=returnPromise;r.on=returnPromise;return r}t.default=createRejection},6056:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))s(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});const o=r(8614);const i=r(7678);const a=r(9072);const c=r(4597);const u=r(8220);const l=r(94);const h=r(3021);const d=r(4500);const p=r(9298);const m=["request","response","redirect","uploadProgress","downloadProgress"];function asPromise(e){let t;let r;const s=new o.EventEmitter;const n=new a(((o,a,y)=>{const makeRequest=g=>{const b=new l.default(undefined,e);b.retryCount=g;b._noPipe=true;y((()=>b.destroy()));y.shouldReject=false;y((()=>a(new c.CancelError(b))));t=b;b.once("response",(async e=>{var t;e.retryCount=g;if(e.request.aborted){return}let s;try{s=await d.default(b);e.rawBody=s}catch(e){return}if(b._isAboutToError){return}const n=((t=e.headers["content-encoding"])!==null&&t!==void 0?t:"").toLowerCase();const i=["gzip","deflate","br"].includes(n);const{options:a}=b;if(i&&!a.decompress){e.body=s}else{try{e.body=u.default(e,a.responseType,a.parseJson,a.encoding)}catch(t){e.body=s.toString();if(p.isResponseOk(e)){b._beforeError(t);return}}}try{for(const[t,r]of a.hooks.afterResponse.entries()){e=await r(e,(async e=>{const r=l.default.normalizeArguments(undefined,{...e,retry:{calculateDelay:()=>0},throwHttpErrors:false,resolveBodyOnly:false},a);r.hooks.afterResponse=r.hooks.afterResponse.slice(0,t);for(const e of r.hooks.beforeRetry){await e(r)}const s=asPromise(r);y((()=>{s.catch((()=>{}));s.cancel()}));return s}))}}catch(e){b._beforeError(new c.RequestError(e.message,e,b));return}if(!p.isResponseOk(e)){b._beforeError(new c.HTTPError(e));return}r=e;o(b.options.resolveBodyOnly?e.body:e)}));const onError=e=>{if(n.isCanceled){return}const{options:t}=b;if(e instanceof c.HTTPError&&!t.throwHttpErrors){const{response:t}=e;o(b.options.resolveBodyOnly?t.body:t);return}a(e)};b.once("error",onError);const _=b.options.body;b.once("retry",((e,t)=>{var r,s;if(_===((r=t.request)===null||r===void 0?void 0:r.options.body)&&i.default.nodeStream((s=t.request)===null||s===void 0?void 0:s.options.body)){onError(t);return}makeRequest(e)}));h.default(b,s,m)};makeRequest(0)}));n.on=(e,t)=>{s.on(e,t);return n};const shortcut=e=>{const t=(async()=>{await n;const{options:t}=r.request;return u.default(r,e,t.parseJson,t.encoding)})();Object.defineProperties(t,Object.getOwnPropertyDescriptors(n));return t};n.json=()=>{const{headers:e}=t.options;if(!t.writableFinished&&e.accept===undefined){e.accept="application/json"}return shortcut("json")};n.buffer=()=>shortcut("buffer");n.text=()=>shortcut("text");return n}t.default=asPromise;n(r(4597),t)},1048:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7678);const normalizeArguments=(e,t)=>{if(s.default.null_(e.encoding)){throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead")}s.assert.any([s.default.string,s.default.undefined],e.encoding);s.assert.any([s.default.boolean,s.default.undefined],e.resolveBodyOnly);s.assert.any([s.default.boolean,s.default.undefined],e.methodRewriting);s.assert.any([s.default.boolean,s.default.undefined],e.isStream);s.assert.any([s.default.string,s.default.undefined],e.responseType);if(e.responseType===undefined){e.responseType="text"}const{retry:r}=e;if(t){e.retry={...t.retry}}else{e.retry={calculateDelay:e=>e.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:undefined}}if(s.default.object(r)){e.retry={...e.retry,...r};e.retry.methods=[...new Set(e.retry.methods.map((e=>e.toUpperCase())))];e.retry.statusCodes=[...new Set(e.retry.statusCodes)];e.retry.errorCodes=[...new Set(e.retry.errorCodes)]}else if(s.default.number(r)){e.retry.limit=r}if(s.default.undefined(e.retry.maxRetryAfter)){e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(s.default.number))}if(s.default.object(e.pagination)){if(t){e.pagination={...t.pagination,...e.pagination}}const{pagination:r}=e;if(!s.default.function_(r.transform)){throw new Error("`options.pagination.transform` must be implemented")}if(!s.default.function_(r.shouldContinue)){throw new Error("`options.pagination.shouldContinue` must be implemented")}if(!s.default.function_(r.filter)){throw new TypeError("`options.pagination.filter` must be implemented")}if(!s.default.function_(r.paginate)){throw new Error("`options.pagination.paginate` must be implemented")}}if(e.responseType==="json"&&e.headers.accept===undefined){e.headers.accept="application/json"}return e};t.default=normalizeArguments},8220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(4597);const parseBody=(e,t,r,n)=>{const{rawBody:o}=e;try{if(t==="text"){return o.toString(n)}if(t==="json"){return o.length===0?"":r(o.toString())}if(t==="buffer"){return o}throw new s.ParseError({message:`Unknown body type '${t}'`,name:"Error"},e)}catch(t){throw new s.ParseError(t,e)}};t.default=parseBody},4597:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))s(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.CancelError=t.ParseError=void 0;const o=r(94);class ParseError extends o.RequestError{constructor(e,t){const{options:r}=t.request;super(`${e.message} in "${r.url.toString()}"`,e,t.request);this.name="ParseError"}}t.ParseError=ParseError;class CancelError extends o.RequestError{constructor(e){super("Promise was canceled",{},e);this.name="CancelError"}get isCanceled(){return true}}t.CancelError=CancelError;n(r(94),t)},3462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryAfterStatusCodes=void 0;t.retryAfterStatusCodes=new Set([413,429,503]);const calculateRetryDelay=({attemptCount:e,retryOptions:t,error:r,retryAfter:s})=>{if(e>t.limit){return 0}const n=t.methods.includes(r.options.method);const o=t.errorCodes.includes(r.code);const i=r.response&&t.statusCodes.includes(r.response.statusCode);if(!n||!o&&!i){return 0}if(r.response){if(s){if(t.maxRetryAfter===undefined||s>t.maxRetryAfter){return 0}return s}if(r.response.statusCode===413){return 0}}const a=Math.random()*100;return 2**(e-1)*1e3+a};t.default=calculateRetryDelay},94:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UnsupportedProtocolError=t.ReadError=t.TimeoutError=t.UploadError=t.CacheError=t.HTTPError=t.MaxRedirectsError=t.RequestError=t.setNonEnumerableProperties=t.knownHookEvents=t.withoutBody=t.kIsNormalizedAlready=void 0;const s=r(1669);const n=r(2413);const o=r(5747);const i=r(8835);const a=r(8605);const c=r(8605);const u=r(7211);const l=r(8097);const h=r(2286);const d=r(8116);const p=r(2391);const m=r(4645);const y=r(9662);const g=r(7678);const b=r(4564);const _=r(40);const v=r(3021);const w=r(2454);const E=r(8026);const S=r(9219);const x=r(7288);const C=r(4500);const P=r(4993);const T=r(9298);const O=r(397);const k=r(1048);const j=r(3462);let A;const R=Symbol("request");const q=Symbol("response");const H=Symbol("responseSize");const I=Symbol("downloadedSize");const M=Symbol("bodySize");const L=Symbol("uploadedSize");const U=Symbol("serverResponsesPiped");const $=Symbol("unproxyEvents");const D=Symbol("isFromCache");const N=Symbol("cancelTimeouts");const B=Symbol("startedReading");const z=Symbol("stopReading");const F=Symbol("triggerRead");const V=Symbol("body");const W=Symbol("jobs");const G=Symbol("originalResponse");const J=Symbol("retryTimeout");t.kIsNormalizedAlready=Symbol("isNormalizedAlready");const K=g.default.string(process.versions.brotli);t.withoutBody=new Set(["GET","HEAD"]);t.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function validateSearchParameters(e){for(const t in e){const r=e[t];if(!g.default.string(r)&&!g.default.number(r)&&!g.default.boolean(r)&&!g.default.null_(r)&&!g.default.undefined(r)){throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}}function isClientRequest(e){return g.default.object(e)&&!("statusCode"in e)}const Z=new x.default;const waitForOpenFile=async e=>new Promise(((t,r)=>{const onError=e=>{r(e)};if(!e.pending){t()}e.once("error",onError);e.once("ready",(()=>{e.off("error",onError);t()}))}));const Q=new Set([300,301,302,303,304,307,308]);const Y=["context","body","json","form"];t.setNonEnumerableProperties=(e,t)=>{const r={};for(const t of e){if(!t){continue}for(const e of Y){if(!(e in t)){continue}r[e]={writable:true,configurable:true,enumerable:false,value:t[e]}}}Object.defineProperties(t,r)};class RequestError extends Error{constructor(e,t,r){var s;super(e);Error.captureStackTrace(this,this.constructor);this.name="RequestError";this.code=t.code;if(r instanceof Request){Object.defineProperty(this,"request",{enumerable:false,value:r});Object.defineProperty(this,"response",{enumerable:false,value:r[q]});Object.defineProperty(this,"options",{enumerable:false,value:r.options})}else{Object.defineProperty(this,"options",{enumerable:false,value:r})}this.timings=(s=this.request)===null||s===void 0?void 0:s.timings;if(g.default.string(t.stack)&&g.default.string(this.stack)){const e=this.stack.indexOf(this.message)+this.message.length;const r=this.stack.slice(e).split("\n").reverse();const s=t.stack.slice(t.stack.indexOf(t.message)+t.message.length).split("\n").reverse();while(s.length!==0&&s[0]===r[0]){r.shift()}this.stack=`${this.stack.slice(0,e)}${r.reverse().join("\n")}${s.reverse().join("\n")}`}}}t.RequestError=RequestError;class MaxRedirectsError extends RequestError{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e);this.name="MaxRedirectsError"}}t.MaxRedirectsError=MaxRedirectsError;class HTTPError extends RequestError{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request);this.name="HTTPError"}}t.HTTPError=HTTPError;class CacheError extends RequestError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}}t.CacheError=CacheError;class UploadError extends RequestError{constructor(e,t){super(e.message,e,t);this.name="UploadError"}}t.UploadError=UploadError;class TimeoutError extends RequestError{constructor(e,t,r){super(e.message,e,r);this.name="TimeoutError";this.event=e.event;this.timings=t}}t.TimeoutError=TimeoutError;class ReadError extends RequestError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}}t.ReadError=ReadError;class UnsupportedProtocolError extends RequestError{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e);this.name="UnsupportedProtocolError"}}t.UnsupportedProtocolError=UnsupportedProtocolError;const X=["socket","connect","continue","information","upgrade","timeout"];class Request extends n.Duplex{constructor(e,r={},s){super({autoDestroy:false,highWaterMark:0});this[I]=0;this[L]=0;this.requestInitialized=false;this[U]=new Set;this.redirects=[];this[z]=false;this[F]=false;this[W]=[];this.retryCount=0;this._progressCallbacks=[];const unlockWrite=()=>this._unlockWrite();const lockWrite=()=>this._lockWrite();this.on("pipe",(e=>{e.prependListener("data",unlockWrite);e.on("data",lockWrite);e.prependListener("end",unlockWrite);e.on("end",lockWrite)}));this.on("unpipe",(e=>{e.off("data",unlockWrite);e.off("data",lockWrite);e.off("end",unlockWrite);e.off("end",lockWrite)}));this.on("pipe",(e=>{if(e instanceof c.IncomingMessage){this.options.headers={...e.headers,...this.options.headers}}}));const{json:n,body:i,form:a}=r;if(n||i||a){this._lockWrite()}if(t.kIsNormalizedAlready in r){this.options=r}else{try{this.options=this.constructor.normalizeArguments(e,r,s)}catch(e){if(g.default.nodeStream(r.body)){r.body.destroy()}this.destroy(e);return}}(async()=>{var e;try{if(this.options.body instanceof o.ReadStream){await waitForOpenFile(this.options.body)}const{url:t}=this.options;if(!t){throw new TypeError("Missing `url` property")}this.requestUrl=t.toString();decodeURI(this.requestUrl);await this._finalizeBody();await this._makeRequest();if(this.destroyed){(e=this[R])===null||e===void 0?void 0:e.destroy();return}for(const e of this[W]){e()}this[W].length=0;this.requestInitialized=true}catch(e){if(e instanceof RequestError){this._beforeError(e);return}if(!this.destroyed){this.destroy(e)}}})()}static normalizeArguments(e,r,n){var o,a,c,u,l;const p=r;if(g.default.object(e)&&!g.default.urlInstance(e)){r={...n,...e,...r}}else{if(e&&r&&r.url!==undefined){throw new TypeError("The `url` option is mutually exclusive with the `input` argument")}r={...n,...r};if(e!==undefined){r.url=e}if(g.default.urlInstance(r.url)){r.url=new i.URL(r.url.toString())}}if(r.cache===false){r.cache=undefined}if(r.dnsCache===false){r.dnsCache=undefined}g.assert.any([g.default.string,g.default.undefined],r.method);g.assert.any([g.default.object,g.default.undefined],r.headers);g.assert.any([g.default.string,g.default.urlInstance,g.default.undefined],r.prefixUrl);g.assert.any([g.default.object,g.default.undefined],r.cookieJar);g.assert.any([g.default.object,g.default.string,g.default.undefined],r.searchParams);g.assert.any([g.default.object,g.default.string,g.default.undefined],r.cache);g.assert.any([g.default.object,g.default.number,g.default.undefined],r.timeout);g.assert.any([g.default.object,g.default.undefined],r.context);g.assert.any([g.default.object,g.default.undefined],r.hooks);g.assert.any([g.default.boolean,g.default.undefined],r.decompress);g.assert.any([g.default.boolean,g.default.undefined],r.ignoreInvalidCookies);g.assert.any([g.default.boolean,g.default.undefined],r.followRedirect);g.assert.any([g.default.number,g.default.undefined],r.maxRedirects);g.assert.any([g.default.boolean,g.default.undefined],r.throwHttpErrors);g.assert.any([g.default.boolean,g.default.undefined],r.http2);g.assert.any([g.default.boolean,g.default.undefined],r.allowGetBody);g.assert.any([g.default.string,g.default.undefined],r.localAddress);g.assert.any([P.isDnsLookupIpVersion,g.default.undefined],r.dnsLookupIpVersion);g.assert.any([g.default.object,g.default.undefined],r.https);g.assert.any([g.default.boolean,g.default.undefined],r.rejectUnauthorized);if(r.https){g.assert.any([g.default.boolean,g.default.undefined],r.https.rejectUnauthorized);g.assert.any([g.default.function_,g.default.undefined],r.https.checkServerIdentity);g.assert.any([g.default.string,g.default.object,g.default.array,g.default.undefined],r.https.certificateAuthority);g.assert.any([g.default.string,g.default.object,g.default.array,g.default.undefined],r.https.key);g.assert.any([g.default.string,g.default.object,g.default.array,g.default.undefined],r.https.certificate);g.assert.any([g.default.string,g.default.undefined],r.https.passphrase);g.assert.any([g.default.string,g.default.buffer,g.default.array,g.default.undefined],r.https.pfx)}g.assert.any([g.default.object,g.default.undefined],r.cacheOptions);if(g.default.string(r.method)){r.method=r.method.toUpperCase()}else{r.method="GET"}if(r.headers===(n===null||n===void 0?void 0:n.headers)){r.headers={...r.headers}}else{r.headers=y({...n===null||n===void 0?void 0:n.headers,...r.headers})}if("slashes"in r){throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.")}if("auth"in r){throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.")}if("searchParams"in r){if(r.searchParams&&r.searchParams!==(n===null||n===void 0?void 0:n.searchParams)){let e;if(g.default.string(r.searchParams)||r.searchParams instanceof i.URLSearchParams){e=new i.URLSearchParams(r.searchParams)}else{validateSearchParameters(r.searchParams);e=new i.URLSearchParams;for(const t in r.searchParams){const s=r.searchParams[t];if(s===null){e.append(t,"")}else if(s!==undefined){e.append(t,s)}}}(o=n===null||n===void 0?void 0:n.searchParams)===null||o===void 0?void 0:o.forEach(((t,r)=>{if(!e.has(r)){e.append(r,t)}}));r.searchParams=e}}r.username=(a=r.username)!==null&&a!==void 0?a:"";r.password=(c=r.password)!==null&&c!==void 0?c:"";if(g.default.undefined(r.prefixUrl)){r.prefixUrl=(u=n===null||n===void 0?void 0:n.prefixUrl)!==null&&u!==void 0?u:""}else{r.prefixUrl=r.prefixUrl.toString();if(r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")){r.prefixUrl+="/"}}if(g.default.string(r.url)){if(r.url.startsWith("/")){throw new Error("`input` must not start with a slash when using `prefixUrl`")}r.url=S.default(r.prefixUrl+r.url,r)}else if(g.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol){r.url=S.default(r.prefixUrl,r)}if(r.url){if("port"in r){delete r.port}let{prefixUrl:e}=r;Object.defineProperty(r,"prefixUrl",{set:t=>{const s=r.url;if(!s.href.startsWith(t)){throw new Error(`Cannot change \`prefixUrl\` from ${e} to ${t}: ${s.href}`)}r.url=new i.URL(t+s.href.slice(e.length));e=t},get:()=>e});let{protocol:t}=r.url;if(t==="unix:"){t="http:";r.url=new i.URL(`http://unix${r.url.pathname}${r.url.search}`)}if(r.searchParams){r.url.search=r.searchParams.toString()}if(t!=="http:"&&t!=="https:"){throw new UnsupportedProtocolError(r)}if(r.username===""){r.username=r.url.username}else{r.url.username=r.username}if(r.password===""){r.password=r.url.password}else{r.url.password=r.password}}const{cookieJar:m}=r;if(m){let{setCookie:e,getCookieString:t}=m;g.assert.function_(e);g.assert.function_(t);if(e.length===4&&t.length===0){e=s.promisify(e.bind(r.cookieJar));t=s.promisify(t.bind(r.cookieJar));r.cookieJar={setCookie:e,getCookieString:t}}}const{cache:b}=r;if(b){if(!Z.has(b)){Z.set(b,new d(((e,t)=>{const r=e[R](e,t);if(g.default.promise(r)){r.once=(e,t)=>{if(e==="error"){r.catch(t)}else if(e==="abort"){(async()=>{try{const e=await r;e.once("abort",t)}catch(e){}})()}else{throw new Error(`Unknown HTTP2 promise event: ${e}`)}return r}}return r}),b))}}r.cacheOptions={...r.cacheOptions};if(r.dnsCache===true){if(!A){A=new h.default}r.dnsCache=A}else if(!g.default.undefined(r.dnsCache)&&!r.dnsCache.lookup){throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${g.default(r.dnsCache)}`)}if(g.default.number(r.timeout)){r.timeout={request:r.timeout}}else if(n&&r.timeout!==n.timeout){r.timeout={...n.timeout,...r.timeout}}else{r.timeout={...r.timeout}}if(!r.context){r.context={}}const _=r.hooks===(n===null||n===void 0?void 0:n.hooks);r.hooks={...r.hooks};for(const e of t.knownHookEvents){if(e in r.hooks){if(g.default.array(r.hooks[e])){r.hooks[e]=[...r.hooks[e]]}else{throw new TypeError(`Parameter \`${e}\` must be an Array, got ${g.default(r.hooks[e])}`)}}else{r.hooks[e]=[]}}if(n&&!_){for(const e of t.knownHookEvents){const t=n.hooks[e];if(t.length>0){r.hooks[e]=[...n.hooks[e],...r.hooks[e]]}}}if("family"in r){O.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"')}if(n===null||n===void 0?void 0:n.https){r.https={...n.https,...r.https}}if("rejectUnauthorized"in r){O.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"')}if("checkServerIdentity"in r){O.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"')}if("ca"in r){O.default('"options.ca" was never documented, please use "options.https.certificateAuthority"')}if("key"in r){O.default('"options.key" was never documented, please use "options.https.key"')}if("cert"in r){O.default('"options.cert" was never documented, please use "options.https.certificate"')}if("passphrase"in r){O.default('"options.passphrase" was never documented, please use "options.https.passphrase"')}if("pfx"in r){O.default('"options.pfx" was never documented, please use "options.https.pfx"')}if("followRedirects"in r){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}if(r.agent){for(const e in r.agent){if(e!=="http"&&e!=="https"&&e!=="http2"){throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${e}\``)}}}r.maxRedirects=(l=r.maxRedirects)!==null&&l!==void 0?l:0;t.setNonEnumerableProperties([n,p],r);return k.default(r,n)}_lockWrite(){const onLockedWrite=()=>{throw new TypeError("The payload has been already provided")};this.write=onLockedWrite;this.end=onLockedWrite}_unlockWrite(){this.write=super.write;this.end=super.end}async _finalizeBody(){const{options:e}=this;const{headers:r}=e;const s=!g.default.undefined(e.form);const o=!g.default.undefined(e.json);const a=!g.default.undefined(e.body);const c=s||o||a;const u=t.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);this._cannotHaveBody=u;if(c){if(u){throw new TypeError(`The \`${e.method}\` method cannot be used with a body`)}if([a,s,o].filter((e=>e)).length>1){throw new TypeError("The `body`, `json` and `form` options are mutually exclusive")}if(a&&!(e.body instanceof n.Readable)&&!g.default.string(e.body)&&!g.default.buffer(e.body)&&!_.default(e.body)){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(s&&!g.default.object(e.form)){throw new TypeError("The `form` option must be an Object")}{const t=!g.default.string(r["content-type"]);if(a){if(_.default(e.body)&&t){r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`}this[V]=e.body}else if(s){if(t){r["content-type"]="application/x-www-form-urlencoded"}this[V]=new i.URLSearchParams(e.form).toString()}else{if(t){r["content-type"]="application/json"}this[V]=e.stringifyJson(e.json)}const n=await b.default(this[V],e.headers);if(g.default.undefined(r["content-length"])&&g.default.undefined(r["transfer-encoding"])){if(!u&&!g.default.undefined(n)){r["content-length"]=String(n)}}}}else if(u){this._lockWrite()}else{this._unlockWrite()}this[M]=Number(r["content-length"])||undefined}async _onResponseBase(e){const{options:t}=this;const{url:r}=t;this[G]=e;if(t.decompress){e=p(e)}const s=e.statusCode;const n=e;n.statusMessage=n.statusMessage?n.statusMessage:a.STATUS_CODES[s];n.url=t.url.toString();n.requestUrl=this.requestUrl;n.redirectUrls=this.redirects;n.request=this;n.isFromCache=e.fromCache||false;n.ip=this.ip;n.retryCount=this.retryCount;this[D]=n.isFromCache;this[H]=Number(e.headers["content-length"])||undefined;this[q]=e;e.once("end",(()=>{this[H]=this[I];this.emit("downloadProgress",this.downloadProgress)}));e.once("error",(t=>{e.destroy();this._beforeError(new ReadError(t,this))}));e.once("aborted",(()=>{this._beforeError(new ReadError({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}));this.emit("downloadProgress",this.downloadProgress);const o=e.headers["set-cookie"];if(g.default.object(t.cookieJar)&&o){let e=o.map((async e=>t.cookieJar.setCookie(e,r.toString())));if(t.ignoreInvalidCookies){e=e.map((async e=>e.catch((()=>{}))))}try{await Promise.all(e)}catch(e){this._beforeError(e);return}}if(t.followRedirect&&e.headers.location&&Q.has(s)){e.resume();if(this[R]){this[N]();delete this[R];this[$]()}const o=s===303&&t.method!=="GET"&&t.method!=="HEAD";if(o||!t.methodRewriting){t.method="GET";if("body"in t){delete t.body}if("json"in t){delete t.json}if("form"in t){delete t.form}this[V]=undefined;delete t.headers["content-length"]}if(this.redirects.length>=t.maxRedirects){this._beforeError(new MaxRedirectsError(this));return}try{const s=Buffer.from(e.headers.location,"binary").toString();const o=new i.URL(s,r);const a=o.toString();decodeURI(a);if(o.hostname!==r.hostname||o.port!==r.port){if("host"in t.headers){delete t.headers.host}if("cookie"in t.headers){delete t.headers.cookie}if("authorization"in t.headers){delete t.headers.authorization}if(t.username||t.password){t.username="";t.password=""}}else{o.username=t.username;o.password=t.password}this.redirects.push(a);t.url=o;for(const e of t.hooks.beforeRedirect){await e(t,n)}this.emit("redirect",n,t);await this._makeRequest()}catch(e){this._beforeError(e);return}return}if(t.isStream&&t.throwHttpErrors&&!T.isResponseOk(n)){this._beforeError(new HTTPError(n));return}e.on("readable",(()=>{if(this[F]){this._read()}}));this.on("resume",(()=>{e.resume()}));this.on("pause",(()=>{e.pause()}));e.once("end",(()=>{this.push(null)}));this.emit("response",e);for(const r of this[U]){if(r.headersSent){continue}for(const s in e.headers){const n=t.decompress?s!=="content-encoding":true;const o=e.headers[s];if(n){r.setHeader(s,o)}}r.statusCode=s}}async _onResponse(e){try{await this._onResponseBase(e)}catch(e){this._beforeError(e)}}_onRequest(e){const{options:t}=this;const{timeout:r,url:s}=t;l.default(e);this[N]=w.default(e,r,s);const n=t.cache?"cacheableResponse":"response";e.once(n,(e=>{void this._onResponse(e)}));e.once("error",(t=>{var r;e.destroy();(r=e.res)===null||r===void 0?void 0:r.removeAllListeners("end");t=t instanceof w.TimeoutError?new TimeoutError(t,this.timings,this):new RequestError(t.message,t,this);this._beforeError(t)}));this[$]=v.default(e,this,X);this[R]=e;this.emit("uploadProgress",this.uploadProgress);const o=this[V];const i=this.redirects.length===0?this:e;if(g.default.nodeStream(o)){o.pipe(i);o.once("error",(e=>{this._beforeError(new UploadError(e,this))}))}else{this._unlockWrite();if(!g.default.undefined(o)){this._writeRequest(o,undefined,(()=>{}));i.end();this._lockWrite()}else if(this._cannotHaveBody||this._noPipe){i.end();this._lockWrite()}}this.emit("request",e)}async _createCacheableRequest(e,t){return new Promise(((r,s)=>{Object.assign(t,E.default(e));delete t.url;let n;const o=Z.get(t.cache)(t,(async e=>{e._readableState.autoDestroy=false;if(n){(await n).emit("cacheableResponse",e)}r(e)}));t.url=e;o.once("error",s);o.once("request",(async e=>{n=e;r(n)}))}))}async _makeRequest(){var e,t,r,s,n;const{options:o}=this;const{headers:i}=o;for(const e in i){if(g.default.undefined(i[e])){delete i[e]}else if(g.default.null_(i[e])){throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${e}\` header`)}}if(o.decompress&&g.default.undefined(i["accept-encoding"])){i["accept-encoding"]=K?"gzip, deflate, br":"gzip, deflate"}if(o.cookieJar){const e=await o.cookieJar.getCookieString(o.url.toString());if(g.default.nonEmptyString(e)){o.headers.cookie=e}}for(const e of o.hooks.beforeRequest){const t=await e(o);if(!g.default.undefined(t)){o.request=()=>t;break}}if(o.body&&this[V]!==o.body){this[V]=o.body}const{agent:c,request:l,timeout:h,url:p}=o;if(o.dnsCache&&!("lookup"in o)){o.lookup=o.dnsCache.lookup}if(p.hostname==="unix"){const e=/(?.+?):(?.+)/.exec(`${p.pathname}${p.search}`);if(e===null||e===void 0?void 0:e.groups){const{socketPath:t,path:r}=e.groups;Object.assign(o,{socketPath:t,path:r,host:""})}}const y=p.protocol==="https:";let b;if(o.http2){b=m.auto}else{b=y?u.request:a.request}const _=(e=o.request)!==null&&e!==void 0?e:b;const v=o.cache?this._createCacheableRequest:_;if(c&&!o.http2){o.agent=c[y?"https":"http"]}o[R]=_;delete o.request;delete o.timeout;const w=o;w.shared=(t=o.cacheOptions)===null||t===void 0?void 0:t.shared;w.cacheHeuristic=(r=o.cacheOptions)===null||r===void 0?void 0:r.cacheHeuristic;w.immutableMinTimeToLive=(s=o.cacheOptions)===null||s===void 0?void 0:s.immutableMinTimeToLive;w.ignoreCargoCult=(n=o.cacheOptions)===null||n===void 0?void 0:n.ignoreCargoCult;if(o.dnsLookupIpVersion!==undefined){try{w.family=P.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch(e){throw new Error("Invalid `dnsLookupIpVersion` option value")}}if(o.https){if("rejectUnauthorized"in o.https){w.rejectUnauthorized=o.https.rejectUnauthorized}if(o.https.checkServerIdentity){w.checkServerIdentity=o.https.checkServerIdentity}if(o.https.certificateAuthority){w.ca=o.https.certificateAuthority}if(o.https.certificate){w.cert=o.https.certificate}if(o.https.key){w.key=o.https.key}if(o.https.passphrase){w.passphrase=o.https.passphrase}if(o.https.pfx){w.pfx=o.https.pfx}}try{let e=await v(p,w);if(g.default.undefined(e)){e=b(p,w)}o.request=l;o.timeout=h;o.agent=c;if(o.https){if("rejectUnauthorized"in o.https){delete w.rejectUnauthorized}if(o.https.checkServerIdentity){delete w.checkServerIdentity}if(o.https.certificateAuthority){delete w.ca}if(o.https.certificate){delete w.cert}if(o.https.key){delete w.key}if(o.https.passphrase){delete w.passphrase}if(o.https.pfx){delete w.pfx}}if(isClientRequest(e)){this._onRequest(e)}else if(this.writable){this.once("finish",(()=>{void this._onResponse(e)}));this._unlockWrite();this.end();this._lockWrite()}else{void this._onResponse(e)}}catch(e){if(e instanceof d.CacheError){throw new CacheError(e,this)}throw new RequestError(e.message,e,this)}}async _error(e){try{for(const t of this.options.hooks.beforeError){e=await t(e)}}catch(t){e=new RequestError(t.message,t,this)}this.destroy(e)}_beforeError(e){if(this[z]){return}const{options:t}=this;const r=this.retryCount+1;this[z]=true;if(!(e instanceof RequestError)){e=new RequestError(e.message,e,this)}const s=e;const{response:n}=s;void(async()=>{if(n&&!n.body){n.setEncoding(this._readableState.encoding);try{n.rawBody=await C.default(n);n.body=n.rawBody.toString()}catch(e){}}if(this.listenerCount("retry")!==0){let o;try{let e;if(n&&"retry-after"in n.headers){e=Number(n.headers["retry-after"]);if(Number.isNaN(e)){e=Date.parse(n.headers["retry-after"])-Date.now();if(e<=0){e=1}}else{e*=1e3}}o=await t.retry.calculateDelay({attemptCount:r,retryOptions:t.retry,error:s,retryAfter:e,computedValue:j.default({attemptCount:r,retryOptions:t.retry,error:s,retryAfter:e,computedValue:0})})}catch(e){void this._error(new RequestError(e.message,e,this));return}if(o){const retry=async()=>{try{for(const e of this.options.hooks.beforeRetry){await e(this.options,s,r)}}catch(t){void this._error(new RequestError(t.message,e,this));return}if(this.destroyed){return}this.destroy();this.emit("retry",r,e)};this[J]=setTimeout(retry,o);return}}void this._error(s)})()}_read(){this[F]=true;const e=this[q];if(e&&!this[z]){if(e.readableLength){this[F]=false}let t;while((t=e.read())!==null){this[I]+=t.length;this[B]=true;const e=this.downloadProgress;if(e.percent<1){this.emit("downloadProgress",e)}this.push(t)}}}_write(e,t,r){const write=()=>{this._writeRequest(e,t,r)};if(this.requestInitialized){write()}else{this[W].push(write)}}_writeRequest(e,t,r){if(this[R].destroyed){return}this._progressCallbacks.push((()=>{this[L]+=Buffer.byteLength(e,t);const r=this.uploadProgress;if(r.percent<1){this.emit("uploadProgress",r)}}));this[R].write(e,t,(e=>{if(!e&&this._progressCallbacks.length>0){this._progressCallbacks.shift()()}r(e)}))}_final(e){const endRequest=()=>{while(this._progressCallbacks.length!==0){this._progressCallbacks.shift()()}if(!(R in this)){e();return}if(this[R].destroyed){e();return}this[R].end((t=>{if(!t){this[M]=this[L];this.emit("uploadProgress",this.uploadProgress);this[R].emit("upload-complete")}e(t)}))};if(this.requestInitialized){endRequest()}else{this[W].push(endRequest)}}_destroy(e,t){var r;this[z]=true;clearTimeout(this[J]);if(R in this){this[N]();if(!((r=this[q])===null||r===void 0?void 0:r.complete)){this[R].destroy()}}if(e!==null&&!g.default.undefined(e)&&!(e instanceof RequestError)){e=new RequestError(e.message,e,this)}t(e)}get _isAboutToError(){return this[z]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,t,r;return((t=(e=this[R])===null||e===void 0?void 0:e.destroyed)!==null&&t!==void 0?t:this.destroyed)&&!((r=this[G])===null||r===void 0?void 0:r.complete)}get socket(){var e,t;return(t=(e=this[R])===null||e===void 0?void 0:e.socket)!==null&&t!==void 0?t:undefined}get downloadProgress(){let e;if(this[H]){e=this[I]/this[H]}else if(this[H]===this[I]){e=1}else{e=0}return{percent:e,transferred:this[I],total:this[H]}}get uploadProgress(){let e;if(this[M]){e=this[L]/this[M]}else if(this[M]===this[L]){e=1}else{e=0}return{percent:e,transferred:this[L],total:this[M]}}get timings(){var e;return(e=this[R])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[D]}pipe(e,t){if(this[B]){throw new Error("Failed to pipe. The response has been emitted already.")}if(e instanceof c.ServerResponse){this[U].add(e)}return super.pipe(e,t)}unpipe(e){if(e instanceof c.ServerResponse){this[U].delete(e)}super.unpipe(e);return this}}t.default=Request},4993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dnsLookupIpVersionToFamily=t.isDnsLookupIpVersion=void 0;const r={auto:0,ipv4:4,ipv6:6};t.isDnsLookupIpVersion=e=>e in r;t.dnsLookupIpVersionToFamily=e=>{if(t.isDnsLookupIpVersion(e)){return r[e]}throw new Error("Invalid DNS lookup IP version")}},4564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(5747);const n=r(1669);const o=r(7678);const i=r(40);const a=n.promisify(s.stat);t.default=async(e,t)=>{if(t&&"content-length"in t){return Number(t["content-length"])}if(!e){return 0}if(o.default.string(e)){return Buffer.byteLength(e)}if(o.default.buffer(e)){return e.length}if(i.default(e)){return n.promisify(e.getLength.bind(e))()}if(e instanceof s.ReadStream){const{size:t}=await a(e.path);if(t===0){return undefined}return t}return undefined}},4500:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const getBuffer=async e=>{const t=[];let r=0;for await(const s of e){t.push(s);r+=Buffer.byteLength(s)}if(Buffer.isBuffer(t[0])){return Buffer.concat(t,r)}return Buffer.from(t.join(""))};t.default=getBuffer},40:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7678);t.default=e=>s.default.nodeStream(e)&&s.default.function_(e.getBoundary)},9298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isResponseOk=void 0;t.isResponseOk=e=>{const{statusCode:t}=e;const r=e.request.options.followRedirect?299:399;return t>=200&&t<=r||t===304}},9219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(8835);const n=["protocol","host","hostname","port","pathname","search"];t.default=(e,t)=>{var r,o;if(t.path){if(t.pathname){throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.")}if(t.search){throw new TypeError("Parameters `path` and `search` are mutually exclusive.")}if(t.searchParams){throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}}if(t.search&&t.searchParams){throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.")}if(!e){if(!t.protocol){throw new TypeError("No URL protocol specified")}e=`${t.protocol}//${(o=(r=t.hostname)!==null&&r!==void 0?r:t.host)!==null&&o!==void 0?o:""}`}const i=new s.URL(e);if(t.path){const e=t.path.indexOf("?");if(e===-1){t.pathname=t.path}else{t.pathname=t.path.slice(0,e);t.search=t.path.slice(e+1)}delete t.path}for(const e of n){if(t[e]){i[e]=t[e].toString()}}return i}},3021:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function default_1(e,t,r){const s={};for(const n of r){s[n]=(...e)=>{t.emit(n,...e)};e.on(n,s[n])}return()=>{for(const t of r){e.off(t,s[t])}}}t.default=default_1},2454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TimeoutError=void 0;const s=r(1631);const n=r(1593);const o=Symbol("reentry");const noop=()=>{};class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.event=t;this.name="TimeoutError";this.code="ETIMEDOUT"}}t.TimeoutError=TimeoutError;t.default=(e,t,r)=>{if(o in e){return noop}e[o]=true;const i=[];const{once:a,unhandleAll:c}=n.default();const addTimeout=(e,t,r)=>{var s;const n=setTimeout(t,e,e,r);(s=n.unref)===null||s===void 0?void 0:s.call(n);const cancel=()=>{clearTimeout(n)};i.push(cancel);return cancel};const{host:u,hostname:l}=r;const timeoutHandler=(t,r)=>{e.destroy(new TimeoutError(t,r))};const cancelTimeouts=()=>{for(const e of i){e()}c()};e.once("error",(t=>{cancelTimeouts();if(e.listenerCount("error")===0){throw t}}));e.once("close",cancelTimeouts);a(e,"response",(e=>{a(e,"end",cancelTimeouts)}));if(typeof t.request!=="undefined"){addTimeout(t.request,timeoutHandler,"request")}if(typeof t.socket!=="undefined"){const socketTimeoutHandler=()=>{timeoutHandler(t.socket,"socket")};e.setTimeout(t.socket,socketTimeoutHandler);i.push((()=>{e.removeListener("timeout",socketTimeoutHandler)}))}a(e,"socket",(n=>{var o;const{socketPath:i}=e;if(n.connecting){const e=Boolean(i!==null&&i!==void 0?i:s.isIP((o=l!==null&&l!==void 0?l:u)!==null&&o!==void 0?o:"")!==0);if(typeof t.lookup!=="undefined"&&!e&&typeof n.address().address==="undefined"){const e=addTimeout(t.lookup,timeoutHandler,"lookup");a(n,"lookup",e)}if(typeof t.connect!=="undefined"){const timeConnect=()=>addTimeout(t.connect,timeoutHandler,"connect");if(e){a(n,"connect",timeConnect())}else{a(n,"lookup",(e=>{if(e===null){a(n,"connect",timeConnect())}}))}}if(typeof t.secureConnect!=="undefined"&&r.protocol==="https:"){a(n,"connect",(()=>{const e=addTimeout(t.secureConnect,timeoutHandler,"secureConnect");a(n,"secureConnect",e)}))}}if(typeof t.send!=="undefined"){const timeRequest=()=>addTimeout(t.send,timeoutHandler,"send");if(n.connecting){a(n,"connect",(()=>{a(e,"upload-complete",timeRequest())}))}else{a(e,"upload-complete",timeRequest())}}}));if(typeof t.response!=="undefined"){a(e,"upload-complete",(()=>{const r=addTimeout(t.response,timeoutHandler,"response");a(e,"response",r)}))}return cancelTimeouts}},1593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=()=>{const e=[];return{once(t,r,s){t.once(r,s);e.push({origin:t,event:r,fn:s})},unhandleAll(){for(const t of e){const{origin:e,event:r,fn:s}=t;e.removeListener(r,s)}e.length=0}}}},8026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7678);t.default=e=>{e=e;const t={protocol:e.protocol,hostname:s.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};if(s.default.string(e.port)&&e.port.length>0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username||""}:${e.password||""}`}return t}},7288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class WeakableMap{constructor(){this.weakMap=new WeakMap;this.map=new Map}set(e,t){if(typeof e==="object"){this.weakMap.set(e,t)}else{this.map.set(e,t)}}get(e){if(typeof e==="object"){return this.weakMap.get(e)}return this.map.get(e)}has(e){if(typeof e==="object"){return this.weakMap.has(e)}return this.map.has(e)}}t.default=WeakableMap},4337:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))s(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.defaultHandler=void 0;const o=r(7678);const i=r(6056);const a=r(6457);const c=r(94);const u=r(285);const l={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError};const delay=async e=>new Promise((t=>{setTimeout(t,e)}));const{normalizeArguments:h}=c.default;const mergeOptions=(...e)=>{let t;for(const r of e){t=h(undefined,r,t)}return t};const getPromiseOrStream=e=>e.isStream?new c.default(undefined,e):i.default(e);const isGotInstance=e=>"defaults"in e&&"options"in e.defaults;const d=["get","post","put","patch","head","delete"];t.defaultHandler=(e,t)=>t(e);const callInitHooks=(e,t)=>{if(e){for(const r of e){r(t)}}};const create=e=>{e._rawHandlers=e.handlers;e.handlers=e.handlers.map((e=>(t,r)=>{let s;const n=e(t,(e=>{s=r(e);return s}));if(n!==s&&!t.isStream&&s){const e=n;const{then:t,catch:r,finally:o}=e;Object.setPrototypeOf(e,Object.getPrototypeOf(s));Object.defineProperties(e,Object.getOwnPropertyDescriptors(s));e.then=t;e.catch=r;e.finally=o}return n}));const got=(t,r={},s)=>{var n,u;let l=0;const iterateHandlers=t=>e.handlers[l++](t,l===e.handlers.length?getPromiseOrStream:iterateHandlers);if(o.default.plainObject(t)){const e={...t,...r};c.setNonEnumerableProperties([t,r],e);r=e;t=undefined}try{let o;try{callInitHooks(e.options.hooks.init,r);callInitHooks((n=r.hooks)===null||n===void 0?void 0:n.init,r)}catch(e){o=e}const a=h(t,r,s!==null&&s!==void 0?s:e.options);a[c.kIsNormalizedAlready]=true;if(o){throw new i.RequestError(o.message,o,a)}return iterateHandlers(a)}catch(t){if(r.isStream){throw t}else{return a.default(t,e.options.hooks.beforeError,(u=r.hooks)===null||u===void 0?void 0:u.beforeError)}}};got.extend=(...r)=>{const s=[e.options];let n=[...e._rawHandlers];let o;for(const e of r){if(isGotInstance(e)){s.push(e.defaults.options);n.push(...e.defaults._rawHandlers);o=e.defaults.mutableDefaults}else{s.push(e);if("handlers"in e){n.push(...e.handlers)}o=e.mutableDefaults}}n=n.filter((e=>e!==t.defaultHandler));if(n.length===0){n.push(t.defaultHandler)}return create({options:mergeOptions(...s),handlers:n,mutableDefaults:Boolean(o)})};const paginateEach=async function*(t,r){let s=h(t,r,e.options);s.resolveBodyOnly=false;const n=s.pagination;if(!o.default.object(n)){throw new TypeError("`options.pagination` must be implemented")}const i=[];let{countLimit:a}=n;let c=0;while(c{const r=[];for await(const s of paginateEach(e,t)){r.push(s)}return r};got.paginate.each=paginateEach;got.stream=(e,t)=>got(e,{...t,isStream:true});for(const e of d){got[e]=(t,r)=>got(t,{...r,method:e});got.stream[e]=(t,r)=>got(t,{...r,method:e,isStream:true})}Object.assign(got,l);Object.defineProperty(got,"defaults",{value:e.mutableDefaults?e:u.default(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});got.mergeOptions=mergeOptions;return got};t.default=create;n(r(2613),t)},3061:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))s(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});const o=r(8835);const i=r(4337);const a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:undefined,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:undefined,dnsCache:undefined,decompress:true,throwHttpErrors:true,followRedirect:true,isStream:false,responseType:"text",resolveBodyOnly:false,maxRedirects:10,prefixUrl:"",methodRewriting:true,ignoreInvalidCookies:false,context:{},http2:false,allowGetBody:false,https:undefined,pagination:{transform:e=>{if(e.request.options.responseType==="json"){return e.body}return JSON.parse(e.body)},paginate:e=>{if(!Reflect.has(e.headers,"link")){return false}const t=e.headers.link.split(",");let r;for(const e of t){const t=e.split(";");if(t[1].includes("next")){r=t[0].trimStart().trim();r=r.slice(1,-1);break}}if(r){const e={url:new o.URL(r)};return e}return false},filter:()=>true,shouldContinue:()=>true,countLimit:Infinity,backoff:0,requestLimit:1e4,stackAllItems:true},parseJson:e=>JSON.parse(e),stringifyJson:e=>JSON.stringify(e),cacheOptions:{}},handlers:[i.defaultHandler],mutableDefaults:false};const c=i.default(a);t.default=c;e.exports=c;e.exports.default=c;e.exports.__esModule=true;n(r(4337),t);n(r(6056),t)},2613:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7678);function deepFreeze(e){for(const t of Object.values(e)){if(s.default.plainObject(t)||s.default.array(t)){deepFreeze(t)}}return Object.freeze(e)}t.default=deepFreeze},397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=new Set;t.default=e=>{if(r.has(e)){return}r.add(e);process.emitWarning(`Got: ${e}`,{type:"DeprecationWarning"})}},1002:e=>{"use strict";const t=new Set([200,203,204,206,300,301,404,405,410,414,501]);const r=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const s=new Set([500,502,503,504]);const n={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const o={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return s.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const r=e.trim().split(/\s*,\s*/);for(const e of r){const[r,s]=e.split(/\s*=\s*/,2);t[r]=s===undefined?true:s.replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const r in e){const s=e[r];t.push(s===true?r:r+"="+s)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:r,cacheHeuristic:s,immutableMinTimeToLive:n,ignoreCargoCult:o,_fromObject:i}={}){if(i){this._fromObject(i);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=r!==false;this._cacheHeuristic=undefined!==s?s:.1;this._immutableMinTtl=undefined!==n?n:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(o&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&r.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const r of t){if(e.headers[r]!==this._reqHeaders[r])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const r in e){if(n[r])continue;t[r]=e[r]}if(e.connection){const r=e.connection.trim().split(/\s*,\s*/);for(const e of r){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter((e=>!/^\s*1[0-9][0-9]/.test(e)));if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const r=Date.parse(this._resHeaders.expires);if(Number.isNaN(r)||rr){return Math.max(e,(t-r)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const r=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,r)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const r=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(r){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter((e=>!/^\s*W\//.test(e)));if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let r=false;if(t.status!==undefined&&t.status!=304){r=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){r=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){r=true}}if(!r){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const s={};for(const e in this._resHeaders){s[e]=e in t.headers&&!o[e]?t.headers[e]:this._resHeaders[e]}const n=Object.assign({},t,{status:this._status,method:this._method,headers:s});return{policy:new this.constructor(e,n,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},5461:e=>{"use strict";class QuickLRU{constructor(e={}){if(!(e.maxSize&&e.maxSize>0)){throw new TypeError("`maxSize` must be a number greater than 0")}this.maxSize=e.maxSize;this.onEviction=e.onEviction;this.cache=new Map;this.oldCache=new Map;this._size=0}_set(e,t){this.cache.set(e,t);this._size++;if(this._size>=this.maxSize){this._size=0;if(typeof this.onEviction==="function"){for(const[e,t]of this.oldCache.entries()){this.onEviction(e,t)}}this.oldCache=this.cache;this.cache=new Map}}get(e){if(this.cache.has(e)){return this.cache.get(e)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);this.oldCache.delete(e);this._set(e,t);return t}}set(e,t){if(this.cache.has(e)){this.cache.set(e,t)}else{this._set(e,t)}return this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e)){return this.cache.get(e)}if(this.oldCache.has(e)){return this.oldCache.get(e)}}delete(e){const t=this.cache.delete(e);if(t){this._size--}return this.oldCache.delete(e)||t}clear(){this.cache.clear();this.oldCache.clear();this._size=0}*keys(){for(const[e]of this){yield e}}*values(){for(const[,e]of this){yield e}}*[Symbol.iterator](){for(const e of this.cache){yield e}for(const e of this.oldCache){const[t]=e;if(!this.cache.has(t)){yield e}}}get size(){let e=0;for(const t of this.oldCache.keys()){if(!this.cache.has(t)){e++}}return Math.min(this._size+e,this.maxSize)}}e.exports=QuickLRU},9898:(e,t,r)=>{"use strict";const s=r(8614);const n=r(4016);const o=r(7565);const i=r(5461);const a=Symbol("currentStreamsCount");const c=Symbol("request");const u=Symbol("cachedOriginSet");const l=Symbol("gracefullyClosing");const h=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"];const getSortedIndex=(e,t,r)=>{let s=0;let n=e.length;while(s>>1;if(r(e[o],t)){s=o+1}else{n=o}}return s};const compareSessions=(e,t)=>e.remoteSettings.maxConcurrentStreams>t.remoteSettings.maxConcurrentStreams;const closeCoveredSessions=(e,t)=>{for(const r of e){if(r[u].lengtht[u].includes(e)))&&r[a]+t[a]<=t.remoteSettings.maxConcurrentStreams){gracefullyClose(r)}}};const closeSessionIfCovered=(e,t)=>{for(const r of e){if(t[u].lengthr[u].includes(e)))&&t[a]+r[a]<=r.remoteSettings.maxConcurrentStreams){gracefullyClose(t)}}};const getSessions=({agent:e,isFree:t})=>{const r={};for(const s in e.sessions){const n=e.sessions[s];const o=n.filter((e=>{const r=e[Agent.kCurrentStreamsCount]{e[l]=true;if(e[a]===0){e.close()}};class Agent extends s{constructor({timeout:e=6e4,maxSessions:t=Infinity,maxFreeSessions:r=10,maxCachedTlsSessions:s=100}={}){super();this.sessions={};this.queue={};this.timeout=e;this.maxSessions=t;this.maxFreeSessions=r;this._freeSessionsCount=0;this._sessionsCount=0;this.settings={enablePush:false};this.tlsSessionCache=new i({maxSize:s})}static normalizeOrigin(e,t){if(typeof e==="string"){e=new URL(e)}if(t&&e.hostname!==t){e.hostname=t}return e.origin}normalizeOptions(e){let t="";if(e){for(const r of h){if(e[r]){t+=`:${e[r]}`}}}return t}_tryToCreateNewSession(e,t){if(!(e in this.queue)||!(t in this.queue[e])){return}const r=this.queue[e][t];if(this._sessionsCount{if(Array.isArray(r)){r=[...r];s()}else{r=[{resolve:s,reject:n}]}const i=this.normalizeOptions(t);const h=Agent.normalizeOrigin(e,t&&t.servername);if(h===undefined){for(const{reject:e}of r){e(new TypeError("The `origin` argument needs to be a string or an URL object"))}return}if(i in this.sessions){const e=this.sessions[i];let t=-1;let s=-1;let n;for(const r of e){const e=r.remoteSettings.maxConcurrentStreams;if(e=e||r[l]||r.destroyed){continue}if(!n){t=e}if(o>s){n=r;s=o}}}if(n){if(r.length!==1){for(const{reject:e}of r){const t=new Error(`Expected the length of listeners to be 1, got ${r.length}.\n`+"Please report this to https://github.com/szmarczak/http2-wrapper/");e(t)}return}r[0].resolve(n);return}}if(i in this.queue){if(h in this.queue[i]){this.queue[i][h].listeners.push(...r);this._tryToCreateNewSession(i,h);return}}else{this.queue[i]={}}const removeFromQueue=()=>{if(i in this.queue&&this.queue[i][h]===entry){delete this.queue[i][h];if(Object.keys(this.queue[i]).length===0){delete this.queue[i]}}};const entry=()=>{const s=`${h}:${i}`;let n=false;try{const d=o.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(s),...t});d[a]=0;d[l]=false;const isFree=()=>d[a]{this.tlsSessionCache.set(s,e)}));d.once("error",(e=>{for(const{reject:t}of r){t(e)}this.tlsSessionCache.delete(s)}));d.setTimeout(this.timeout,(()=>{d.destroy()}));d.once("close",(()=>{if(n){if(p){this._freeSessionsCount--}this._sessionsCount--;const e=this.sessions[i];e.splice(e.indexOf(d),1);if(e.length===0){delete this.sessions[i]}}else{const e=new Error("Session closed without receiving a SETTINGS frame");e.code="HTTP2WRAPPER_NOSETTINGS";for(const{reject:t}of r){t(e)}removeFromQueue()}this._tryToCreateNewSession(i,h)}));const processListeners=()=>{if(!(i in this.queue)||!isFree()){return}for(const e of d[u]){if(e in this.queue[i]){const{listeners:t}=this.queue[i][e];while(t.length!==0&&isFree()){t.shift().resolve(d)}const r=this.queue[i];if(r[e].listeners.length===0){delete r[e];if(Object.keys(r).length===0){delete this.queue[i];break}}if(!isFree()){break}}}};d.on("origin",(()=>{d[u]=d.originSet;if(!isFree()){return}processListeners();closeCoveredSessions(this.sessions[i],d)}));d.once("remoteSettings",(()=>{d.ref();d.unref();this._sessionsCount++;if(entry.destroyed){const e=new Error("Agent has been destroyed");for(const t of r){t.reject(e)}d.destroy();return}d[u]=d.originSet;{const e=this.sessions;if(i in e){const t=e[i];t.splice(getSortedIndex(t,d,compareSessions),0,d)}else{e[i]=[d]}}this._freeSessionsCount+=1;n=true;this.emit("session",d);processListeners();removeFromQueue();if(d[a]===0&&this._freeSessionsCount>this.maxFreeSessions){d.close()}if(r.length!==0){this.getSession(h,t,r);r.length=0}d.on("remoteSettings",(()=>{processListeners();closeCoveredSessions(this.sessions[i],d)}))}));d[c]=d.request;d.request=(e,t)=>{if(d[l]){throw new Error("The session is gracefully closing. No new streams are allowed.")}const r=d[c](e,t);d.ref();++d[a];if(d[a]===d.remoteSettings.maxConcurrentStreams){this._freeSessionsCount--}r.once("close",(()=>{p=isFree();--d[a];if(!d.destroyed&&!d.closed){closeSessionIfCovered(this.sessions[i],d);if(isFree()&&!d.closed){if(!p){this._freeSessionsCount++;p=true}const e=d[a]===0;if(e){d.unref()}if(e&&(this._freeSessionsCount>this.maxFreeSessions||d[l])){d.close()}else{closeCoveredSessions(this.sessions[i],d);processListeners()}}}}));return r}}catch(e){for(const t of r){t.reject(e)}removeFromQueue()}};entry.listeners=r;entry.completed=false;entry.destroyed=false;this.queue[i][h]=entry;this._tryToCreateNewSession(i,h)}))}request(e,t,r,s){return new Promise(((n,o)=>{this.getSession(e,t,[{reject:o,resolve:e=>{try{n(e.request(r,s))}catch(e){o(e)}}}])}))}createConnection(e,t){return Agent.connect(e,t)}static connect(e,t){t.ALPNProtocols=["h2"];const r=e.port||443;const s=e.hostname||e.host;if(typeof t.servername==="undefined"){t.servername=s}return n.connect(r,s,t)}closeFreeSessions(){for(const e of Object.values(this.sessions)){for(const t of e){if(t[a]===0){t.close()}}}}destroy(e){for(const t of Object.values(this.sessions)){for(const r of t){r.destroy(e)}}for(const e of Object.values(this.queue)){for(const t of Object.values(e)){t.destroyed=true}}this.queue={}}get freeSessions(){return getSessions({agent:this,isFree:true})}get busySessions(){return getSessions({agent:this,isFree:false})}}Agent.kCurrentStreamsCount=a;Agent.kGracefullyClosing=l;e.exports={Agent:Agent,globalAgent:new Agent}},7167:(e,t,r)=>{"use strict";const s=r(8605);const n=r(7211);const o=r(6624);const i=r(5461);const a=r(9632);const c=r(1982);const u=r(2686);const l=new i({maxSize:100});const h=new Map;const installSocket=(e,t,r)=>{t._httpMessage={shouldKeepAlive:true};const onFree=()=>{e.emit("free",t,r)};t.on("free",onFree);const onClose=()=>{e.removeSocket(t,r)};t.on("close",onClose);const onRemove=()=>{e.removeSocket(t,r);t.off("close",onClose);t.off("free",onFree);t.off("agentRemove",onRemove)};t.on("agentRemove",onRemove);e.emit("free",t,r)};const resolveProtocol=async e=>{const t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!l.has(t)){if(h.has(t)){const e=await h.get(t);return e.alpnProtocol}const{path:r,agent:s}=e;e.path=e.socketPath;const i=o(e);h.set(t,i);try{const{socket:o,alpnProtocol:a}=await i;l.set(t,a);e.path=r;if(a==="h2"){o.destroy()}else{const{globalAgent:t}=n;const r=n.Agent.prototype.createConnection;if(s){if(s.createConnection===r){installSocket(s,o,e)}else{o.destroy()}}else if(t.createConnection===r){installSocket(t,o,e)}else{o.destroy()}}h.delete(t);return a}catch(e){h.delete(t);throw e}}return l.get(t)};e.exports=async(e,t,r)=>{if(typeof e==="string"||e instanceof URL){e=u(new URL(e))}if(typeof t==="function"){r=t;t=undefined}t={ALPNProtocols:["h2","http/1.1"],...e,...t,resolveSocket:true};if(!Array.isArray(t.ALPNProtocols)||t.ALPNProtocols.length===0){throw new Error("The `ALPNProtocols` option must be an Array with at least one entry")}t.protocol=t.protocol||"https:";const o=t.protocol==="https:";t.host=t.hostname||t.host||"localhost";t.session=t.tlsSession;t.servername=t.servername||c(t);t.port=t.port||(o?443:80);t._defaultAgent=o?n.globalAgent:s.globalAgent;const i=t.agent;if(i){if(i.addRequest){throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties")}t.agent=i[o?"https":"http"]}if(o){const e=await resolveProtocol(t);if(e==="h2"){if(i){t.agent=i.http2}return new a(t,r)}}return s.request(t,r)};e.exports.protocolCache=l},9632:(e,t,r)=>{"use strict";const s=r(7565);const{Writable:n}=r(2413);const{Agent:o,globalAgent:i}=r(9898);const a=r(2575);const c=r(2686);const u=r(1818);const l=r(1199);const{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_PROTOCOL:d,ERR_HTTP_HEADERS_SENT:p,ERR_INVALID_HTTP_TOKEN:m,ERR_HTTP_INVALID_HEADER_VALUE:y,ERR_INVALID_CHAR:g}=r(7087);const{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:v,HTTP2_METHOD_CONNECT:w}=s.constants;const E=Symbol("headers");const S=Symbol("origin");const x=Symbol("session");const C=Symbol("options");const P=Symbol("flushedHeaders");const T=Symbol("jobs");const O=/^[\^`\-\w!#$%&*+.|~]+$/;const k=/[^\t\u0020-\u007E\u0080-\u00FF]/;class ClientRequest extends n{constructor(e,t,r){super({autoDestroy:false});const s=typeof e==="string"||e instanceof URL;if(s){e=c(e instanceof URL?e:new URL(e))}if(typeof t==="function"||t===undefined){r=t;t=s?e:{...e}}else{t={...e,...t}}if(t.h2session){this[x]=t.h2session}else if(t.agent===false){this.agent=new o({maxFreeSessions:0})}else if(typeof t.agent==="undefined"||t.agent===null){if(typeof t.createConnection==="function"){this.agent=new o({maxFreeSessions:0});this.agent.createConnection=t.createConnection}else{this.agent=i}}else if(typeof t.agent.request==="function"){this.agent=t.agent}else{throw new h("options.agent",["Agent-like Object","undefined","false"],t.agent)}if(t.protocol&&t.protocol!=="https:"){throw new d(t.protocol,"https:")}const n=t.port||t.defaultPort||this.agent&&this.agent.defaultPort||443;const a=t.hostname||t.host||"localhost";delete t.hostname;delete t.host;delete t.port;const{timeout:u}=t;t.timeout=undefined;this[E]=Object.create(null);this[T]=[];this.socket=null;this.connection=null;this.method=t.method||"GET";this.path=t.path;this.res=null;this.aborted=false;this.reusedSocket=false;if(t.headers){for(const[e,r]of Object.entries(t.headers)){this.setHeader(e,r)}}if(t.auth&&!("authorization"in this[E])){this[E].authorization="Basic "+Buffer.from(t.auth).toString("base64")}t.session=t.tlsSession;t.path=t.socketPath;this[C]=t;if(n===443){this[S]=`https://${a}`;if(!(":authority"in this[E])){this[E][":authority"]=a}}else{this[S]=`https://${a}:${n}`;if(!(":authority"in this[E])){this[E][":authority"]=`${a}:${n}`}}if(u){this.setTimeout(u)}if(r){this.once("response",r)}this[P]=false}get method(){return this[E][_]}set method(e){if(e){this[E][_]=e.toUpperCase()}}get path(){return this[E][v]}set path(e){if(e){this[E][v]=e}}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,t,r){if(this._mustNotHaveABody){r(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();const callWrite=()=>this._request.write(e,t,r);if(this._request){callWrite()}else{this[T].push(callWrite)}}_final(e){if(this.destroyed){return}this.flushHeaders();const callEnd=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};if(this._request){callEnd()}else{this[T].push(callEnd)}}abort(){if(this.res&&this.res.complete){return}if(!this.aborted){process.nextTick((()=>this.emit("abort")))}this.aborted=true;this.destroy()}_destroy(e,t){if(this.res){this.res._dump()}if(this._request){this._request.destroy()}t(e)}async flushHeaders(){if(this[P]||this.destroyed){return}this[P]=true;const e=this.method===w;const onStream=t=>{this._request=t;if(this.destroyed){t.destroy();return}if(!e){u(t,this,["timeout","continue","close","error"])}const waitForEnd=e=>(...t)=>{if(!this.writable&&!this.destroyed){e(...t)}else{this.once("finish",(()=>{e(...t)}))}};t.once("response",waitForEnd(((r,s,n)=>{const o=new a(this.socket,t.readableHighWaterMark);this.res=o;o.req=this;o.statusCode=r[b];o.headers=r;o.rawHeaders=n;o.once("end",(()=>{if(this.aborted){o.aborted=true;o.emit("aborted")}else{o.complete=true;o.socket=null;o.connection=null}}));if(e){o.upgrade=true;if(this.emit("connect",o,t,Buffer.alloc(0))){this.emit("close")}else{t.destroy()}}else{t.on("data",(e=>{if(!o._dumped&&!o.push(e)){t.pause()}}));t.once("end",(()=>{o.push(null)}));if(!this.emit("response",o)){o._dump()}}})));t.once("headers",waitForEnd((e=>this.emit("information",{statusCode:e[b]}))));t.once("trailers",waitForEnd(((e,t,r)=>{const{res:s}=this;s.trailers=e;s.rawTrailers=r})));const{socket:r}=t.session;this.socket=r;this.connection=r;for(const e of this[T]){e()}this.emit("socket",this.socket)};if(this[x]){try{onStream(this[x].request(this[E]))}catch(e){this.emit("error",e)}}else{this.reusedSocket=true;try{onStream(await this.agent.request(this[S],this[C],this[E]))}catch(e){this.emit("error",e)}}}getHeader(e){if(typeof e!=="string"){throw new h("name","string",e)}return this[E][e.toLowerCase()]}get headersSent(){return this[P]}removeHeader(e){if(typeof e!=="string"){throw new h("name","string",e)}if(this.headersSent){throw new p("remove")}delete this[E][e.toLowerCase()]}setHeader(e,t){if(this.headersSent){throw new p("set")}if(typeof e!=="string"||!O.test(e)&&!l(e)){throw new m("Header name",e)}if(typeof t==="undefined"){throw new y(t,e)}if(k.test(t)){throw new g("header content",e)}this[E][e.toLowerCase()]=t}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,t){const applyTimeout=()=>this._request.setTimeout(e,t);if(this._request){applyTimeout()}else{this[T].push(applyTimeout)}return this}get maxHeadersCount(){if(!this.destroyed&&this._request){return this._request.session.localSettings.maxHeaderListSize}return undefined}set maxHeadersCount(e){}}e.exports=ClientRequest},2575:(e,t,r)=>{"use strict";const{Readable:s}=r(2413);class IncomingMessage extends s{constructor(e,t){super({highWaterMark:t,autoDestroy:false});this.statusCode=null;this.statusMessage="";this.httpVersion="2.0";this.httpVersionMajor=2;this.httpVersionMinor=0;this.headers={};this.trailers={};this.req=null;this.aborted=false;this.complete=false;this.upgrade=null;this.rawHeaders=[];this.rawTrailers=[];this.socket=e;this.connection=e;this._dumped=false}_destroy(e){this.req._request.destroy(e)}setTimeout(e,t){this.req.setTimeout(e,t);return this}_dump(){if(!this._dumped){this._dumped=true;this.removeAllListeners("data");this.resume()}}_read(){if(this.req){this.req._request.resume()}}}e.exports=IncomingMessage},4645:(e,t,r)=>{"use strict";const s=r(7565);const n=r(9898);const o=r(9632);const i=r(2575);const a=r(7167);const request=(e,t,r)=>new o(e,t,r);const get=(e,t,r)=>{const s=new o(e,t,r);s.end();return s};e.exports={...s,ClientRequest:o,IncomingMessage:i,...n,request:request,get:get,auto:a}},1982:(e,t,r)=>{"use strict";const s=r(1631);e.exports=e=>{let t=e.host;const r=e.headers&&e.headers.host;if(r){if(r.startsWith("[")){const e=r.indexOf("]");if(e===-1){t=r}else{t=r.slice(1,-1)}}else{t=r.split(":",1)[0]}}if(s.isIP(t)){return""}return t}},7087:e=>{"use strict";const makeError=(t,r,s)=>{e.exports[r]=class NodeError extends t{constructor(...e){super(typeof s==="string"?s:s(e));this.name=`${super.name} [${r}]`;this.code=r}}};makeError(TypeError,"ERR_INVALID_ARG_TYPE",(e=>{const t=e[0].includes(".")?"property":"argument";let r=e[1];const s=Array.isArray(r);if(s){r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`}return`The "${e[0]}" ${t} must be ${s?"one of":"of"} type ${r}. Received ${typeof e[2]}`}));makeError(TypeError,"ERR_INVALID_PROTOCOL",(e=>`Protocol "${e[0]}" not supported. Expected "${e[1]}"`));makeError(Error,"ERR_HTTP_HEADERS_SENT",(e=>`Cannot ${e[0]} headers after they are sent to the client`));makeError(TypeError,"ERR_INVALID_HTTP_TOKEN",(e=>`${e[0]} must be a valid HTTP token [${e[1]}]`));makeError(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",(e=>`Invalid value "${e[0]} for header "${e[1]}"`));makeError(TypeError,"ERR_INVALID_CHAR",(e=>`Invalid character in ${e[0]} [${e[1]}]`))},1199:e=>{"use strict";e.exports=e=>{switch(e){case":method":case":scheme":case":authority":case":path":return true;default:return false}}},1818:e=>{"use strict";e.exports=(e,t,r)=>{for(const s of r){e.on(s,((...e)=>t.emit(s,...e)))}}},2686:e=>{"use strict";e.exports=e=>{const t={protocol:e.protocol,hostname:typeof e.hostname==="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};if(typeof e.port==="string"&&e.port.length!==0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username||""}:${e.password||""}`}return t}},2820:(e,t)=>{t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var r=Array.isArray(e);t=r?"[":"{";var s=true;for(var n in e){var o="function"==typeof e[n]||!r&&"undefined"===typeof e[n];if(Object.hasOwnProperty.call(e,n)&&!o){if(!s)t+=",";s=false;if(r){if(e[n]==undefined)t+="null";else t+=stringify(e[n])}else if(e[n]!==void 0){t+=stringify(n)+":"+stringify(e[n])}}}t+=r?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,(function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return Buffer.from(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t}))}},1531:(e,t,r)=>{"use strict";const s=r(8614);const n=r(2820);const loadStore=e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const r=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map};class Keyv extends s{constructor(e,t){super();this.opts=Object.assign({namespace:"keyv",serialize:n.stringify,deserialize:n.parse},typeof e==="string"?{uri:e}:e,t);if(!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=loadStore(e)}if(typeof this.opts.store.on==="function"){this.opts.store.on("error",(e=>this.emit("error",e)))}this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e,t){const r=this._getKeyPrefix(e);const{store:s}=this.opts;return Promise.resolve().then((()=>s.get(r))).then((e=>typeof e==="string"?this.opts.deserialize(e):e)).then((r=>{if(r===undefined){return undefined}if(typeof r.expires==="number"&&Date.now()>r.expires){this.delete(e);return undefined}return t&&t.raw?r:r.value}))}set(e,t,r){const s=this._getKeyPrefix(e);if(typeof r==="undefined"){r=this.opts.ttl}if(r===0){r=undefined}const{store:n}=this.opts;return Promise.resolve().then((()=>{const e=typeof r==="number"?Date.now()+r:null;t={value:t,expires:e};return this.opts.serialize(t)})).then((e=>n.set(s,e,r))).then((()=>true))}delete(e){const t=this._getKeyPrefix(e);const{store:r}=this.opts;return Promise.resolve().then((()=>r.delete(t)))}clear(){const{store:e}=this.opts;return Promise.resolve().then((()=>e.clear()))}}e.exports=Keyv},9662:e=>{"use strict";e.exports=e=>{const t={};for(const[r,s]of Object.entries(e)){t[r.toLowerCase()]=s}return t}},2610:e=>{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=(e,r)=>{const s=new Set(Object.keys(e).concat(t));for(const t of s){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}}},7952:e=>{"use strict";const t="text/plain";const r="us-ascii";const testParameter=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e));const normalizeDataURL=(e,{stripHash:s})=>{const n=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(e);if(!n){throw new Error(`Invalid URL: ${e}`)}let{type:o,data:i,hash:a}=n.groups;const c=o.split(";");a=s?"":a;let u=false;if(c[c.length-1]==="base64"){c.pop();u=true}const l=(c.shift()||"").toLowerCase();const h=c.map((e=>{let[t,s=""]=e.split("=").map((e=>e.trim()));if(t==="charset"){s=s.toLowerCase();if(s===r){return""}}return`${t}${s?`=${s}`:""}`})).filter(Boolean);const d=[...h];if(u){d.push("base64")}if(d.length!==0||l&&l!==t){d.unshift(l)}return`data:${d.join(";")},${u?i.trim():i}${a?`#${a}`:""}`};const normalizeUrl=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripTextFragment:true,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeSingleSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};e=e.trim();if(/^data:/i.test(e)){return normalizeDataURL(e,t)}if(/^view-source:/i.test(e)){throw new Error("`view-source:` is not supported as it is a non-standard protocol")}const r=e.startsWith("//");const s=!r&&/^\.*\//.test(e);if(!s){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const n=new URL(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&n.protocol==="https:"){n.protocol="http:"}if(t.forceHttps&&n.protocol==="http:"){n.protocol="https:"}if(t.stripAuthentication){n.username="";n.password=""}if(t.stripHash){n.hash=""}else if(t.stripTextFragment){n.hash=n.hash.replace(/#?:~:text.*?$/i,"")}if(n.pathname){n.pathname=n.pathname.replace(/(?0){let e=n.pathname.split("/");const r=e[e.length-1];if(testParameter(r,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);n.pathname=e.slice(1).join("/")+"/"}}if(n.hostname){n.hostname=n.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(n.hostname)){n.hostname=n.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...n.searchParams.keys()]){if(testParameter(e,t.removeQueryParameters)){n.searchParams.delete(e)}}}if(t.sortQueryParameters){n.searchParams.sort()}if(t.removeTrailingSlash){n.pathname=n.pathname.replace(/\/$/,"")}const o=e;e=n.toString();if(!t.removeSingleSlash&&n.pathname==="/"&&!o.endsWith("/")&&n.hash===""){e=e.replace(/\/$/,"")}if((t.removeTrailingSlash||n.pathname==="/")&&n.hash===""&&t.removeSingleSlash){e=e.replace(/\/$/,"")}if(r&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=normalizeUrl},1223:(e,t,r)=>{var s=r(2940);e.exports=s(once);e.exports.strict=s(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},9072:e=>{"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>new PCancelable(((r,s,n)=>{t.push(n);e(...t).then(r,s)}))}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise(((t,r)=>{this._reject=r;const onResolve=e=>{if(!this._isCanceled||!onCancel.shouldReject){this._isPending=false;t(e)}};const onReject=e=>{this._isPending=false;r(e)};const onCancel=e=>{if(!this._isPending){throw new Error("The `onCancel` handler was attached after the promise settled.")}this._cancelHandlers.push(e)};Object.defineProperties(onCancel,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(onResolve,onReject,onCancel)}))}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}this._isCanceled=true;if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e);return}}if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.CancelError=CancelError},8341:(e,t,r)=>{var s=r(1223);var n=r(1205);var o=r(5747);var noop=function(){};var i=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!i)return false;if(!o)return false;return(e instanceof(o.ReadStream||noop)||e instanceof(o.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,t,r,o){o=s(o);var i=false;e.on("close",(function(){i=true}));n(e,{readable:t,writable:r},(function(e){if(e)return o(e);i=true;o()}));var a=false;return function(t){if(i)return;if(a)return;a=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();o(t||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,t){return e.pipe(t)};var pump=function(){var e=Array.prototype.slice.call(arguments);var t=isFn(e[e.length-1]||noop)&&e.pop()||noop;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var s=e.map((function(n,o){var i=o0;return destroyer(n,i,a,(function(e){if(!r)r=e;if(e)s.forEach(call);if(i)return;s.forEach(call);t(r)}))}));return e.reduce(pipe)};e.exports=pump},6624:(e,t,r)=>{"use strict";const s=r(4016);e.exports=(e={})=>new Promise(((t,r)=>{let n=false;const callback=async()=>{o.off("timeout",onTimeout);o.off("error",r);if(e.resolveSocket){t({alpnProtocol:o.alpnProtocol,socket:o,timeout:n});if(n){await Promise.resolve();o.emit("timeout")}}else{o.destroy();t({alpnProtocol:o.alpnProtocol,timeout:n})}};const onTimeout=async()=>{n=true;callback()};const o=s.connect(e,callback);o.on("error",r);o.once("timeout",onTimeout)}))},9004:(e,t,r)=>{"use strict";const s=r(2413).Readable;const n=r(9662);class Response extends s{constructor(e,t,r,s){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(r instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof s!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=n(t);this.body=r;this.url=s}_read(){this.push(this.body);this.push(null)}}e.exports=Response},4351:e=>{ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var t;var r;var s;var n;var o;var i;var a;var c;var u;var l;var h;var d;var p;var m;var y;var g;var b;var _;var v;var w;var E;var S;var x;var C;(function(t){var r=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(r,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(r,createExporter(e.exports)))}else{t(createExporter(r))}function createExporter(e,t){if(e!==r){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(r,s){return e[r]=t?t(r,s):s}}})((function(e){var P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");P(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};r=Object.assign||function(e){for(var t,r=1,s=arguments.length;r=0;a--)if(i=e[a])o=(n<3?i(o):n>3?i(t,r,o):i(t,r))||o;return n>3&&o&&Object.defineProperty(t,r,o),o};o=function(e,t){return function(r,s){t(r,s,e)}};i=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};a=function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};c=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,n,o,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(s)throw new TypeError("Generator is already executing.");while(r)try{if(s=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;n=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]=e.length)e=void 0;return{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};h=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=s.next()).done)o.push(n.value)}catch(e){i={error:e}}finally{try{if(n&&!n.done&&(r=s["return"]))r.call(s)}finally{if(i)throw i.error}}return o};d=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(s[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof y?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),o.shift(),o.length)resume(o[0][0],o[0][1])}};b=function(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(s,n){t[s]=e[s]?function(t){return(r=!r)?{value:y(e[s](t)),done:s==="return"}:n?n(t):t}:n}};_=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof l==="function"?l(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(s,n){r=e[t](r),settle(s,n,r.done,r.value)}))}}function settle(e,t,r,s){Promise.resolve(s).then((function(t){e({value:t,done:r})}),t)}};v=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};w=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))C(t,e,r);T(t,e);return t};E=function(e){return e&&e.__esModule?e:{default:e}};S=function(e,t,r,s){if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?s:r==="a"?s.call(e):s?s.value:t.get(e)};x=function(e,t,r,s,n){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r};e("__extends",t);e("__assign",r);e("__rest",s);e("__decorate",n);e("__param",o);e("__metadata",i);e("__awaiter",a);e("__generator",c);e("__exportStar",u);e("__createBinding",C);e("__values",l);e("__read",h);e("__spread",d);e("__spreadArrays",p);e("__spreadArray",m);e("__await",y);e("__asyncGenerator",g);e("__asyncDelegator",b);e("__asyncValues",_);e("__makeTemplateObject",v);e("__importStar",w);e("__importDefault",E);e("__classPrivateFieldGet",S);e("__classPrivateFieldSet",x)}))},2940:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.run=void 0;function hasMessage(e){return typeof e==="object"&&e!==null&&"message"in e}async function run(e,t){try{const r=e.getInput("event",{required:true});const s=e.getInput("key",{required:true});const{statusCode:n,body:o}=await t.post(`https://maker.ifttt.com/trigger/${r}/with/key/${s}`);return{statusCode:n,body:o}}catch(t){if(hasMessage(t)){e.setFailed(t.message)}throw t}}t.run=run},4293:e=>{"use strict";e.exports=require("buffer")},881:e=>{"use strict";e.exports=require("dns")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7565:e=>{"use strict";e.exports=require("http2")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4016:e=>{"use strict";e.exports=require("tls")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={exports:{}};var o=true;try{e[r].call(n.exports,n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:true});const t=__nccwpck_require__(4351);const s=t.__importStar(__nccwpck_require__(2186));const n=t.__importDefault(__nccwpck_require__(3061));const o=__nccwpck_require__(5074);function crash(e){console.error("An error occurred:",e.message)}o.run(s,n.default).catch(crash)})();module.exports=r})(); \ No newline at end of file