9 lines
945 KiB
JavaScript
Raw Normal View History

(()=>{var __webpack_modules__={7351:function(e,A,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,A,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return A[t]}})}:function(e,A,t,a){if(a===undefined)a=t;e[a]=A[t]});var r=this&&this.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:true,value:A})}:function(e,A){e["default"]=A});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(A,e,t);r(A,e);return A};Object.defineProperty(A,"__esModule",{value:true});A.issue=A.issueCommand=void 0;const i=s(t(2037));const o=t(5278);function issueCommand(e,A,t){const a=new Command(e,A,t);process.stdout.write(a.toString()+i.EOL)}A.issueCommand=issueCommand;function issue(e,A=""){issueCommand(e,{},A)}A.issue=issue;const n="::";class Command{constructor(e,A,t){if(!e){e="missing.command"}this.command=e;this.properties=A;this.message=t}toString(){let e=n+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=true;for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const a=this.properties[t];if(a){if(A){A=false}else{e+=","}e+=`${t}=${escapeProperty(a)}`}}}}e+=`${n}${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,A,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,A,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return A[t]}})}:function(e,A,t,a){if(a===undefined)a=t;e[a]=A[t]});var r=this&&this.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:true,value:A})}:function(e,A){e["default"]=A});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(A,e,t);r(A,e);return A};var i=this&&this.__awaiter||function(e,A,t,a){function adopt(e){return e instanceof t?e:new t((function(A){A(e)}))}return new(t||(t=Promise))((function(t,r){function fulfilled(e){try{step(a.next(e))}catch(e){r(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){r(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,A||[])).next())}))};Object.defineProperty(A,"__esModule",{value:true});A.getIDToken=A.getState=A.saveState=A.group=A.endGroup=A.startGroup=A.info=A.notice=A.warning=A.error=A.debug=A.isDebug=A.setFailed=A.setCommandEcho=A.setOutput=A.getBooleanInput=A.getMultilineInput=A.getInput=A.addPath=A.setSecret=A.exportVariable=A.ExitCode=void 0;const o=t(7351);const n=t(717);const p=t(5278);const d=s(t(2037));const l=s(t(1017));const c=t(8041);var g;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(g=A.ExitCode||(A.ExitCode={}));function exportVariable(e,A){const t=p.toCommandValue(A);process.env[e]=t;const a=process.env["GITHUB_ENV"]||"";if(a){return n.issueFileCommand("ENV",n.prepareKeyValueMessage(e,A))}o.issueCommand("set-env",{name:e},t)}A.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}A.setSecret=setSecret;function addPath(e){const A=process.env["GITHUB_PATH"]||"";if(A){n.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.delimiter}${process.env["PATH"]}`}A.addPath=addPath;function getInput(e,A){const t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(A&&A.required&&!t){throw new Error(`Input required and not supplied: ${e}`)}if(A&&A.trimWhitespace===false){return t}return t.trim()}A.getInput=getInput;function getMultilineInput(e,A){const t=getInput(e,A).split("\n").filter((e=>e!==""));if(A&&A.trimWhitespace===false){return t}return t.map((e=>e.trim()))}A.getMultilineInput=get
Update all dependencies + dependabot.yml configuration + node16 (#275) * Create dependabot.yml * Bump actions/checkout from 2 to 3 Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update to node16 * Bump @types/node from 12.12.24 to 18.11.9 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.24 to 18.11.9. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump glob and @types/glob Bumps [glob](https://github.com/isaacs/node-glob) and [@types/glob](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/glob). These dependencies needed to be updated together. Updates `glob` from 7.1.6 to 8.0.3 - [Release notes](https://github.com/isaacs/node-glob/releases) - [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md) - [Commits](https://github.com/isaacs/node-glob/compare/v7.1.6...v8.0.3) Updates `@types/glob` from 7.1.1 to 8.0.0 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/glob) --- updated-dependencies: - dependency-name: glob dependency-type: direct:production update-type: version-update:semver-major - dependency-name: "@types/glob" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump @actions/github from 5.0.0 to 5.1.1 Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 5.0.0 to 5.1.1. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github) --- updated-dependencies: - dependency-name: "@actions/github" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump ts-jest from 24.2.0 to 24.3.0 Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 24.2.0 to 24.3.0. - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/kulshekhar/ts-jest/compare/v24.2.0...v24.3.0) --- updated-dependencies: - dependency-name: ts-jest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump prettier from 1.19.1 to 2.7.1 Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.7.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.7.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump @octokit/plugin-retry from 3.0.9 to 4.0.3 Bumps [@octokit/plugin-retry](https://github.com/octokit/plugin-retry.js) from 3.0.9 to 4.0.3. - [Release notes](https://github.com/octokit/plugin-retry.js/releases) - [Commits](https://github.com/octokit/plugin-retry.js/compare/v3.0.9...v4.0.3) --- updated-dependencies: - dependency-name: "@octokit/plugin-retry" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Resolve conflicts * Resolve conflicts * Resolve conflicts * Bump mime and @types/mime Bumps [mime](https://github.com/broofa/mime) and [@types/mime](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mime). These dependencies needed to be updated together. Updates `mime` from 2.4.4 to 3.0.0 - [Release notes](https://github.com/broofa/mime/releases) - [Changelog](https://github.com/broofa/mime/blob/main/CHANGELOG.md) - [Commits](https://github.com/broofa/mime/compare/v2.4.4...v3.0.0) Updates `@types/mime` from 2.0.1 to 3.0.1 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mime) --- updated-dependencies: - dependency-name: mime dependency-type: direct:production update-type: version-update:semver-major - dependency-name: "@types/mime" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump @octokit/plugin-throttling from 3.7.0 to 4.3.2 Bumps [@octokit/plugin-throttling](https://github.com/octokit/plugin-throttling.js) from 3.7.0 to 4.3.2. - [Release notes](https://github.com/octokit/plugin-throttling.js/releases) - [Commits](https://github.com/octokit/plugin-throttling.js/compare/v3.7.0...v4.3.2) --- updated-dependencies: - dependency-name: "@octokit/plugin-throttling" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump @zeit/ncc from 0.21.1 to 0.22.3 Bumps [@zeit/ncc](https://github.com/zeit/ncc) from 0.21.1 to 0.22.3. - [Release notes](https://github.com/zeit/ncc/releases) - [Commits](https://github.com/zeit/ncc/compare/0.21.1...0.22.3) --- updated-dependencies: - dependency-name: "@zeit/ncc" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update dependabot.yml * Update dependabot.yml * Regenerate package-lock.json and dist folder * Update * Bump typescript from 3.9.10 to 4.8.4 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.10 to 4.8.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.10...v4.8.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Resolve conflicts * Bump jest-circus from 24.9.0 to 29.2.2 Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 24.9.0 to 29.2.2. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/commits/v29.2.2/packages/jest-circus) --- updated-dependencies: - dependency-name: jest-circus dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Resolve conflicts * Resolve conflicts * Resolve conflicts * Resolve conflicts * Bump @types/jest from 24.9.1 to 29.2.2 Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 24.9.1 to 29.2.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update main.yml * Bump jest-circus from 29.3.0 to 29.3.1 Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 29.3.0 to 29.3.1. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/commits/v29.3.1/packages/jest-circus) --- updated-dependencies: - dependency-name: jest-circus dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Bump jest from 29.3.0 to 29.3.1 Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.3.0 to 29.3.1. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/commits/v29.3.1/packages/jest) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 06:50:24 +00:00
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var A,t;if(isObject(e)===false)return false;A=e.constructor;if(A===undefined)return true;t=A.prototype;if(isObject(t)===false)return false;if(t.hasOwnProperty("isPrototypeOf")===false){return false}return true}A.isPlainObject=isPlainObject},6038:e=>{"use strict";function Mime(){this._types=Object.create(null);this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++){this.define(arguments[e])}this.define=this.define.bind(this);this.getType=this.getType.bind(this);this.getExtension=this.getExtension.bind(this)}Mime.prototype.define=function(e,A){for(let t in e){let a=e[t].map((function(e){return e.toLowerCase()}));t=t.toLowerCase();for(let e=0;e<a.length;e++){const r=a[e];if(r[0]==="*"){continue}if(!A&&r in this._types){throw new Error('Attempt to change mapping for "'+r+'" extension from "'+this._types[r]+'" to "'+t+'". Pass `force=true` to allow this, otherwise remove "'+r+'" from the list of extensions for "'+t+'".')}this._types[r]=t}if(A||!this._extensions[t]){const e=a[0];this._extensions[t]=e[0]!=="*"?e:e.substr(1)}}};Mime.prototype.getType=function(e){e=String(e);let A=e.replace(/^.*[/\\]/,"").toLowerCase();let t=A.replace(/^.*\./,"").toLowerCase();let a=A.length<e.length;let r=t.length<A.length-1;return(r||!a)&&this._types[t]||null};Mime.prototype.getExtension=function(e){e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1;return e&&this._extensions[e.toLowerCase()]||null};e.exports=Mime},9994:(e,A,t)=>{"use strict";let a=t(6038);e.exports=new a(t(3114),t(8809))},8809:e=>{e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const a=[];const r=new Uint8Array([13,10]);l=0;let s=false;for(const[A,i]of e){if(typeof i==="string"){const e=S.encode(t+`; name="${escape(normalizeLinefeeds(A))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);a.push(e);l+=e.byteLength}else{const e=S.encode(`${t}; name="${escape(normalizeLinefeeds(A))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);a.push(e,i,r);if(typeof i.size==="number"){l+=e.byteLength+i.size+r.byteLength}else{s=true}}}const i=S.encode(`--${A}--`);a.push(i);l+=i.byteLength;if(s){l=null}d=e;p=async function*(){for(const e of a){if(e.stream){yield*e.stream()}else{yield e}}};c="multipart/form-data; boundary="+A}else if(i(e)){d=e;l=e.size;if(e.type){c=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(A){throw new TypeError("keepalive")}if(r.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=e instanceof R?e:s(e)}if(typeof d==="string"||r.isBuffer(d)){l=Buffer.byteLength(d)}if(p!=null){let A;a=new R({async start(){A=p(e)[Symbol.asyncIterator]()},async pull(e){const{value:t,done:r}=await A.next();if(r){queueMicrotask((()=>{e.close()}))}else{if(!I(a)){e.enqueue(new Uint8Array(t))}}return e.desiredSize>0},async cancel(e){await A.return()},type:undefined})}const g={stream:a,source:d,length:l};return[g,c]}function safelyExtractBody(e,A=false){if(!R){R=t(5356).ReadableStream}if(e instanceof R){B(!r.isDisturbed(e),"The body has already been consumed.");B(!e.locked,"The stream is locked.")}return extractBody(e,A)}function cloneBody(e){const[A,t]=e.stream.tee();const a=E(t,{transfer:[t]});const[,r]=a.tee();e.stream=A;return{stream:r,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(w(e)){yield e}else{const A=e.stream;if(r.isDisturbed(A)){throw new TypeError("The body has already been consumed.")}if(A.locked){throw new TypeError("The stream is locked.")}A[C]=true;yield*A}}}function throwIfAborted(e){if(e.aborted){throw new u("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const A={blob(){return specConsumeBody(this,(e=>{let A=bodyMimeType(this);if(A==="failure"){A=""}else if(A){A=D(A)}return new h([e],{type:A})}),e)},arrayBuffer(){return specConsumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return specConsumeBody(this,utf8DecodeBytes,e)},json(){return specConsumeBody(this,parseJSONFromBytes,e)},async formData(){g.brandCheck(this,e);throwIfAborted(this[c]);const A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){const e={};for(const[A,t]of this.headers)e[A.toLowerCase()]=t;const A=new l;let t;try{t=new a({headers:e,preservePath:true})}catch(e){throw new u(`${e}`,"AbortError")}t.on("field",((e,t)=>{A.append(e,t)}));t.on("file",((e,t,a,r,s)=>{const i=[];if(r==="base64"||r.toLowerCase()==="base64"){let r="";t.on("data",(e=>{r+=e.toString().replace(/[\r\n]/gm,"");const A=r.length-r.length%4;i.push(Buffer.from(r.slice(0,A),"base64"));r=r.slice(A)}));t.on("end",(()=>{i.push(Buffer.from(r,"base64"));A.append(e,new k(i,a,{type:s}))}))}else{t.on("data",(e=>{i.push(e)}));t.on("end",(()=>{A.append(e,new k(i,a,{type:s}))}))}}));const r=new Promise(((e,A)=>{t.on("finish",e);t.on("error",(e=>A(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[c].body))t.write(e);t.end();await r;return A}else if(/application\/x-www-form-urlencoded/.test(A)){let e;try{let A="";const t=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[c].body)){if(!w(e)){throw new TypeError("Expected Uint8Array chunk")}A+=t.decode(e,{stream:true})}A+=t.decode();e=new URLSearchParams(A)}catch(e){throw Object.assign(new TypeError,{cause:e})}const A=new l;for(const[t,a]of e){A.append(t,a)}return A}else{await Promise.resolve();throwIfAborted(this[c]);throw g.errors.exception({he
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */s[r-4]=this.maskKey[0];s[r-3]=this.maskKey[1];s[r-2]=this.maskKey[2];s[r-1]=this.maskKey[3];s[1]=t;if(t===126){s.writeUInt16BE(A,2)}else if(t===127){s[2]=s[3]=0;s.writeUIntBE(A,4,6)}s[1]|=128;for(let e=0;e<A;e++){s[r+e]=this.frameData[e]^this.maskKey[e%4]}return s}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},1688:(e,A,t)=>{"use strict";const{Writable:a}=t(2781);const r=t(7643);const{parserStates:s,opcodes:i,states:o,emptyBuffer:n}=t(9188);const{kReadyState:p,kSentClose:d,kResponse:l,kReceivedClose:c}=t(7578);const{isValidStatusCode:g,failWebsocketConnection:u,websocketMessageReceived:E}=t(5515);const{WebsocketFrameSend:h}=t(5444);const Q={};Q.ping=r.channel("undici:websocket:ping");Q.pong=r.channel("undici:websocket:pong");class ByteParser extends a{#i=[];#o=0;#n=s.INFO;#p={};#d=[];constructor(e){super();this.ws=e}_write(e,A,t){this.#i.push(e);this.#o+=e.length;this.run(t)}run(e){while(true){if(this.#n===s.INFO){if(this.#o<2){return e()}const A=this.consume(2);this.#p.fin=(A[0]&128)!==0;this.#p.opcode=A[0]&15;this.#p.originalOpcode??=this.#p.opcode;this.#p.fragmented=!this.#p.fin&&this.#p.opcode!==i.CONTINUATION;if(this.#p.fragmented&&this.#p.opcode!==i.BINARY&&this.#p.opcode!==i.TEXT){u(this.ws,"Invalid frame type was fragmented.");return}const t=A[1]&127;if(t<=125){this.#p.payloadLength=t;this.#n=s.READ_DATA}else if(t===126){this.#n=s.PAYLOADLENGTH_16}else if(t===127){this.#n=s.PAYLOADLENGTH_64}if(this.#p.fragmented&&t>125){u(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#p.opcode===i.PING||this.#p.opcode===i.PONG||this.#p.opcode===i.CLOSE)&&t>125){u(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#p.opcode===i.CLOSE){if(t===1){u(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(t);this.#p.closeInfo=this.parseCloseBody(false,e);if(!this.ws[d]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#p.closeInfo.code,0);const A=new h(e);this.ws[l].socket.write(A.createFrame(i.CLOSE),(e=>{if(!e){this.ws[d]=true}}))}this.ws[p]=o.CLOSING;this.ws[c]=true;this.end();return}else if(this.#p.opcode===i.PING){const A=this.consume(t);if(!this.ws[c]){const e=new h(A);this.ws[l].socket.write(e.createFrame(i.PONG));if(Q.ping.hasSubscribers){Q.ping.publish({payload:A})}}this.#n=s.INFO;if(this.#o>0){continue}else{e();return}}else if(this.#p.opcode===i.PONG){const A=this.consume(t);if(Q.pong.hasSubscribers){Q.pong.publish({payload:A})}if(this.#o>0){continue}else{e();return}}}else if(this.#n===s.PAYLOADLENGTH_16){if(this.#o<2){return e()}const A=this.consume(2);this.#p.payloadLength=A.readUInt16BE(0);this.#n=s.READ_DATA}else if(this.#n===s.PAYLOADLENGTH_64){if(this.#o<8){return e()}const A=this.consume(8);const t=A.readUInt32BE(0);if(t>2**31-1){u(this.ws,"Received payload length > 2^31 bytes.");return}const a=A.readUInt32BE(4);this.#p.payloadLength=(t<<8)+a;this.#n=s.READ_DATA}else if(this.#n===s.READ_DATA){if(this.#o<this.#p.payloadLength){return e()}else if(this.#o>=this.#p.payloadLength){const e=this.consume(this.#p.payloadLength);this.#d.push(e);if(!this.#p.fragmented||this.#p.fin&&this.#p.opcode===i.CONTINUATION){const e=Buffer.concat(this.#d);E(this.ws,this.#p.originalOpcode,e);this.#p={};this.#d.length=0}this.#n=s.INFO}}if(this.#o>0){continue}else{e();break}}}consume(e){if(e>this.#o){return null}else if(e===0){return n}if(this.#i[0].length===e){this.#o-=this.#i[0].length;return this.#i.shift()}const A=Buffer.allocUnsafe(e);let t=0;while(t!==e){const a=this.#i[0];const{length:r}=a;if(r+t===e){A.set(this.#i.shift(),t);break}else if(r+t>e){A.set(a.subarray(0,e-t),t);this.#i[0]=a.subarray(e-t);break}else{A.set(this.#i.shift(),t);t+=a.length}}this.#o-=e;return A}parseCloseBody(e,A){let t;if(A.length>=2){t=A.readUInt16BE(0)}if(e){if(!g(t)){return null}return{code:t}}let a=A.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(t!==undefined&&!g(t)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:t,reason:a}}get closingIn